+
    jHàj«  ã                  ó–   € R t ^ RIHt ^ RIHt ^ RIt]P                  ! ]4      t^ RI	H
t ]! RR04      tRR R lltR	 R
 ltR R ltR# )u“  Capability answers for models served by the managed runtime.

Capability lookups (vision, and whatever comes next) consult cloud-shaped catalogs that have never
heard of a local GGUF, so a vision-capable local model reads as text-only and images detour to an
auxiliary cloud model â€” the wrong behavior twice over for a local-first user (broken feature, and a
screenshot silently leaving the machine).
)Úannotations)ÚsuppressN)ÚLLAMACPP_ALIASESz	image/pngz
image/jpegc               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚproviderÚstrÚbase_urlÚreturnÚbool© )Úformats   "ÚJ/home/ubuntu/.hermes/hermes-agent/hermes_cli/local_runtime/capabilities.pyÚ__annotate__r      s!   € ÷ ñ  #ð °ð ¸dñ ó    c                ó  € T ;'       g    RP                  4       P                  4       pV\        9   d   R# VR8w  g	   V'       g   R# \        \        4      ;_uu_ 4        ^ RIHp V! V4      uuRRR4       #   + '       g   i     R# ; i)u²   True when this provider/base_url pair points at the managed server. ``custom`` only counts
when the base_url IS the managed endpoint â€” never claim someone else's custom server.Ú TÚcustomF)Úis_managed_endpointN)ÚstripÚlowerÚ_LLAMACPP_ALIASESr   Ú	ExceptionÚhermes_cli.local_runtime.growthr   )r   r	   Úpr   s   &&  r   Úis_managed_providerr      sc   € ð 
�ˆ�R×ÑÓ ×&Ñ&Ó(€AØÔÔÙØˆH„}ŸHÙÜ	”)×	Õ	ÝGá" 8Ó,÷ 
×	×	Ñ	ñ ús   ÁA7Á7B	c               ó    € V ^8„  d   QhRRRR/# ©r   Úmodel_idr   r
   zbool | Noner   )r   s   "r   r   r   (   s   € ÷ ñ  ð ¨ñ r   c           	     ój  € \        \        4      ;_uu_ 4        ^ RIHpHpHp V! 4       pVf    RRR4       R# V! . VORV! V 4       2N5R^/ P                  R4      p\        V\        4      '       d$   RV9   d   \        VR,          4      uuRRR4       # RRR4       R#   + '       g   i     R# ; i)z›Ask the running server whether this loaded child sees images. None when the server is down,
the model isn't loaded, or the build doesn't report modalities.)Úchild_queryÚmanaged_get_jsonÚmanaged_rootNz/props?Ú	timeout_sÚ
modalitiesÚvision)
r   r   Ú!hermes_cli.local_runtime.endpointr    r!   r"   ÚgetÚ
isinstanceÚdictr   )r   r    r!   r"   Úepr$   s   &     r   Ú_props_modalitiesr+   (   sž   € ô 
”)×	Õ	ßaÑaá‹^ˆØŠ:Ø÷ 
Ñ	ñ &ÐZ rÐZ¨W±[ÀÓ5JÐ4KÐ+LÒZÐXYÑZ×^Ñ^Ð_kÓlˆ
Ü�j¤$×'Ò'¨H¸
Ô,BÜ˜
 8Õ,Ó-÷ 
×	Ò	ñ ÷ 
Ö	ñ ús   ˜B!¹AB!Â!B2	c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r   r   r   7   s   € ÷ ñ ¨Cð °Kñ r   c                óº  € V '       g   R# \        \        4      ;_uu_ 4        ^ RIHpHp ^ RIHp W! 4       9  d    RRR4       R# \        V 4      pVe   VuuRRR4       # V! V 4      pVf    RRR4       R# VP                  RJ;'       d1    V! 4       VP                  P                  ,          P                  4       uuRRR4       #   + '       g   i     R# ; i)z‡Ground-truth vision capability for a staged model, or None when the model isn't ours /
nothing is known (caller keeps falling through).N)Ú
assets_dirÚstaged_model_ids)Úentry_for_model)r   r   Ú"hermes_cli.local_runtime.bootstrapr.   r/   Ú hermes_cli.local_runtime.catalogr0   r+   ÚmmprojÚ
local_nameÚexists)r   r.   r/   r0   ÚliveÚentrys   &     r   Úmanaged_model_supports_visionr8   7   s¸   € ÷ Ùä	”)×	Õ	ßSÝDð Ð+Ó-Ô-Ø÷ 
Ñ	ô ! Ó*ˆØÒØ÷ 
Ò	ñ   Ó)ˆØŠ=Ø÷ 
Ñ	ð  —‘ DÐ(÷ Fð FÙ“\ E§L¡L×$;Ñ$;Õ;×CÑCÓE÷# 
×	×	Ñ	ñ$ ús#   ¢C	ÁC	Á"C	Á9C	Â0C	Ã	C	)r   )Ú__doc__Ú
__future__r   Ú
contextlibr   ÚloggingÚ	getLoggerÚ__name__Úloggerr&   r   r   Ú	frozensetÚACCEPTED_IMAGE_MIMESr   r+   r8   r   r   r   Ú<module>rB      sI   ðñõ #å Û à	×	Ò	˜8Ó	$€å Sñ ! +¨|Ð!<Ó=Ð ÷õ÷r   