+
    .pÐjÄ{  ã                  ó^  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIHtHtH	t	H
t
Ht ^ RIHtHt ^ RIHt ^ RIHt ]P&                  ! R4      tRTtR tR	 R
 ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R lt R R lt!RR /R! R" llt"R# R$ lt#R%RRR /R& R' llt$R( R) lt%R* R+ lt&R, R- lt'R. R/ lt(R0 R1 lt)R2 R3 lt*R4RR5RR6R/R7 R8 llt+R9 R: lt,RUR; R< llt-R= R> lt.R? R@ lt/RA RB lt0RC RD lt1RERF/t2RG]3RH&   RI RJ lt4RK RL lt5RM RN lt6RORRPRRQR/RR RS llt7R# )VuÙ  Custom-provider resolution: ``providers:`` / ``custom_providers:`` lookup, identity recovery,
custom credential pools, and the named-custom runtime builder. Extracted from
:mod:`hermes_cli.runtime_provider`; origin-internal collaborators
(``load_config``, ``_get_model_config``, ``load_pool``, ``has_usable_secret``, â€¦) are looked up on
the origin module AT CALL TIME via :func:`_rp` so ``monkeypatch.setattr(runtime_provider, name, â€¦)``
keeps working for moved bodies.)ÚannotationsN)ÚAnyÚCallableÚDictÚOptionalÚTuple)Úcustom_provider_aliasesÚcustom_provider_slug)Úget_secret_str)Úbase_url_hostnamezhermes_cli.runtime_providerc                 ó   € ^ RI Hp  V # )zUOrigin module, late-bound so test patches on ``hermes_cli.runtime_provider.*`` apply.N)Úhermes_cli.runtime_providerÚruntime_provider)Úorigins    Ú1/opt/hermes/hermes_cli/runtime_provider_custom.pyÚ_rpr      s
   € å0Ø€Mó    c               ó    € V ^8„  d   QhRRRR/# )é   ÚvalueÚstrÚreturn© )Úformats   "r   Ú__annotate__r      s   € ÷ 3ñ 3¨3ð 3°3ñ 3r   c                ó^   € V P                  4       P                  4       P                  R R4      # )Ú Ú-)ÚstripÚlowerÚreplace©r   s   &r   Ú_normalize_custom_provider_namer"      s$   € Ø�;‰;‹=×ÑÓ ×(Ñ(¨¨cÓ2Ð2r   c               ó   € V ^8„  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   !   s   € ÷ 8ñ 8¨Cñ 8r   c                ó‚   € \        T ;'       g    R 4      P                  4       P                  R4      P                  4       # )Ú Ú/)r   r   Úrstripr   r!   s   &r   Ú_normalize_base_url_for_matchr(   !   s0   € Üˆu�{ˆ{˜Ó×!Ñ!Ó#×*Ñ*¨3Ó/×5Ñ5Ó7Ð7r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   r   r   )r   s   "r   r   r   %   s   € ÷ $ñ $�#ð $˜#ñ $r   c                óH   € \        T ;'       g    R 4      P                  4       # )r%   )r   r   r!   s   &r   Ú_cleanr+   %   s   € Üˆu�{ˆ{˜Ó×!Ñ!Ó#Ð#r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úentryúdict[str, Any]Úlabelr   r   r   )r   s   "r   r   r   )   s!   € ÷ ñ ˜>ð °#ð ¸#ñ r   c                óð   € \        V P                  R4      ;'       g    V P                  R4      4      pV'       g   R# \        VR4      P                  4       pV'       g   \        P                  RW4       V# )u   The credential named by ``key_env`` / ``api_key_env`` on a config block, or "".

A declared variable that resolves to nothing is logged: every custom rung substitutes
``no-key-required`` for an empty key (keyless local servers), so a misnamed or unexported
variable otherwise surfaces only as the provider's 401/403 (#67453). A block with no key_env at
all stays silent â€” that IS the keyless-server configuration.
Úkey_envÚapi_key_envr%   u�   %s: key_env %s is set but the variable is empty/unset â€” the request will carry the placeholder no-key-required and the endpoint will reject it)r+   Úgetr
   r   ÚloggerÚwarning)r-   r/   r1   r   s   &&  r   Ú_key_env_secretr6   )   sa   € ô �U—Y‘Y˜yÓ)×EÐE¨U¯Y©Y°}Ó-EÓF€GßÙÜ˜7 BÓ'×-Ñ-Ó/€EßÜ�‰ð UØV[ô	fà€Lr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Ú	model_cfgr.   Úbase_urlr   r   r   )r   s   "r   r   r   ;   s!   € ÷ /ñ / nð /Àð /Èñ /r   c                ó¾   € \        V P                  R4      4      P                  R4      pV'       d    V\        V4      P                  R4      8w  d   R# \        V R4      # )uâ   ``model.key_env`` for a bare ``provider: custom`` runtime, only when ``base_url`` IS the
configured ``model.base_url`` â€” the key was declared for that endpoint, never for a direct alias
or CUSTOM_BASE_URL pointing elsewhere.r9   r&   r%   Úmodel)r+   r3   r'   r6   )r8   r9   Úcfg_base_urls   && r   Ú_model_cfg_key_env_forr=   ;   sL   € ô ˜)Ÿ-™-¨
Ó3Ó4×;Ñ;¸CÓ@€Lß˜<¬6°(Ó+;×+BÑ+BÀ3Ó+GÔGÙÜ˜9 gÓ.Ð.r   c               ó    € V ^8„  d   QhRRRR/# )r   r-   r.   r   r   r   )r   s   "r   r   r   E   s   € ÷ Oñ O�nð O¨ñ Or   c                óœ   € V P                  R 4      ;'       g5    V P                  R4      ;'       g    V P                  R4      ;'       g    R# )ÚapiÚurlr9   r%   )r3   )r-   s   &r   Ú
_entry_urlrB   E   s;   € Ø�9‰9�UÓ×NÐN˜uŸy™y¨Ó/×NÐN°5·9±9¸ZÓ3H×NÐNÈBÐNr   c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   zdict[str, bool]r   )r   s   "r   r   r   L   s   € ÷ Zñ Z ð Z¨ñ Zr   c                óæ   € \        V \        4      '       g   / # V P                  4        UUu/ uF7  w  r\        V\        4      '       g   K  \        V\        4      '       g   K5  WbK9  	  upp# u uppi )zAReturn the string-keyed boolean capabilities accepted at runtime.)Ú
isinstanceÚdictÚitemsr   Úbool)r   ÚkÚvs   &  r   Ú_filter_capabilitiesrK   L   sN   € ä�eœT×"Ò"Øˆ	Ø"Ÿ[™[œ]ÔY™]‘T�Q¬j¸¼C×.@ŒDÄZÐPQÔSW×EXŒDˆAŠD™]ÒYÐYùÓYs   ¬A-ÁA-Á#A-c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r-   r.   r;   úOptional[str]Úresultr   ÚNoner   )r   s   "r   r   r   S   s*   € ÷ .ñ . Nð .¸=ð .ÐR`ð .Ðeiñ .r   c                ó:  € \        V P                  R4      4      pV P                  R4      p\        V\        4      '       d   V'       d   VP                  V4      MRp\        V\        4      '       d   VP	                  \        V4      4       V'       d   W2R&   R# R# )z>Copy explicit boolean per-model capabilities into the runtime.ÚcapabilitiesÚmodelsN)rK   r3   rE   rF   Úupdate)r-   r;   rN   rQ   rR   Úmodel_configs   &&&   r   Ú_lift_model_capabilitiesrU   S   ss   € ä'¨¯	©	°.Ó(AÓB€LØ�Y‰Y�xÓ €FÜ(2°6¼4×(@Ò(@ÇU�6—:‘:˜eÔ$ÐPT€LÜ�,¤×%Ò%Ø×ÑÔ0°Ó>Ô?ßØ!-ˆ~Óñ r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r-   r.   rN   r   rO   r   )r   s   "r   r   r   _   s!   € ÷ 0ñ 0˜~ð 0°~ð 0È$ñ 0r   c                ór   € \        4       P                  V P                  R4      4      pV'       d   W!R&   R# R# )uZ   Copy a validated ``extra_headers`` dict. SECURITY: values carry credentials â€” never log.Úextra_headersN)r   Únormalize_extra_headersr3   )r-   rN   rX   s   && r   Ú_lift_extra_headersrZ   _   s-   € ä“E×1Ñ1°%·)±)¸OÓ2LÓM€MßØ"/ˆÓñ r   c               ó0   € V ^8„  d   QhRRRRRRRRRRR	R
/# )r   r-   r.   rN   Úprovider_keyr   r1   Úapi_moderM   r   rO   r   )r   s   "r   r   r   f   s:   € ÷ 2ñ 2 nð 2¸nð 2Ð_bð 2Ðmpð 2Ø)6ð2Ø;?ñ2r   c               óè   € V'       d   W1R&   V'       d   W!R&   V P                  R4      p\        V\        4      '       d   \        V4      VR&   \        W4       V'       d   WAR&   \	        V RV4       R# )z[Copy the optional fields shared by ``providers:`` and legacy ``custom_providers:`` entries.r1   r\   Ú
extra_bodyr]   N)r3   rE   rF   rZ   rU   )r-   rN   r\   r1   r]   r_   s   &&$$$ r   Ú_lift_common_custom_fieldsr`   f   sc   € ÷ Ø#ˆyÑßØ!-ˆ~ÑØ—‘˜<Ó(€JÜ�*œd×#Ò#Ü# JÓ/ˆˆ|ÑÜ˜Ô&ßØ%ˆzÑä˜U D¨&Ö1r   c               ó    € V ^8„  d   QhRRRR/# )r   Úrequested_normr   r   rH   r   )r   s   "r   r   r   z   s   € ÷ ?ñ ?¨ð ?°ñ ?r   c                ó  € V R8X  g   V P                  R4      '       d   R# \        4       p VP                  P                  V 4      pT;'       g    RP                  4       P                  4       T 8H  #   TP                   d     R# i ; i)uë  Raw names map to custom providers only when they are not canonical built-ins. Explicit
``custom:<name>`` keys always target the saved entry, and bare ``custom`` is exempt: a user may
literally name a ``providers:`` entry "custom" (returning None before the config scan made such
cron jobs fail with ``auth_unavailable``). Defer to the built-in only when the raw name IS the
canonical provider (``nous``); an entry matching merely an alias (``kimi`` â†’ ``kimi-coding``)
is the user's target.Úcustomzcustom:Fr%   )Ú
startswithr   Úauth_modÚresolve_providerÚ	AuthErrorr   r   )rb   ÚrpÚ	canonicals   &  r   Ú_shadowed_by_builtinrk   z   s|   € ð ˜Ô! ^×%>Ñ%>¸y×%IÒ%IÙÜ	‹€BðØ—K‘K×0Ñ0°Ó@ˆ	ð �OˆO˜×"Ñ"Ó$×*Ñ*Ó,°Ñ>Ð>øð �<‰<ô Úðús   ¬A2 Á2BÂBÚresolve_credentialsTc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   rb   r   Ú	providersr.   rl   rH   r   úOptional[dict[str, Any]]r   )r   s   "r   r   r   ‹   s,   € ÷  ñ  Øð Ø$2ð ØLPð àñ r   c               ó²  € ^ RI Hp \        4       pVP                  4        EF±  w  rV\	        V\
        4      '       d   V! V4      '       g   K,  T \        \        VP                  RR4      ;'       g    T4      \        V4      4      9  d   Kk  \        V4      pV'       g   K€  \        VP                  R4      ;'       g    VP                  R4      4      pV'       d#   V'       d   \        VR4      P                  4       MRp	RVP                  RV4      RVP                  4       RT	;'       g    \        VP                  RR4      4      RVP                  R	R4      /p
\        VP                  R
R4      4      pV'       d   WºR
&   \        Yj\        V4      TTP                  VP                  R4      ;'       g    VP                  R4      4      R7       V
u # 	  R# )z>Scan ``providers:`` (new-style, keyed) for ``requested_norm``.)Úis_provider_enabledÚnamer%   r1   r2   r9   Úapi_keyr;   Údefault_modelÚkey_cmdr]   Ú	transport©r\   r1   r]   N)Úhermes_cli.configrq   r   rG   rE   rF   r   r   r3   rB   r+   r
   r   r`   Ú_parse_api_mode)rb   rn   rl   rq   ri   Úep_namer-   r9   r1   rs   rN   ru   s   &&$         r   Ú_match_new_style_providerr{   ‹   sŽ  € õ 6Ü	‹€BØ#Ÿ/™/×+‰ˆä˜%¤×&Ò&Ñ.AÀ%×.HÒ.HÙØÔ!8¼¸U¿Y¹YÀvÈrÓ=R×=]Ð=]ÐV]Ó9^Ô`cÐdkÓ`lÓ!mÔmÙÜ˜eÓ$ˆßÙô ˜Ÿ™ 9Ó-×IÐI°·±¸=Ó1IÓJˆß9@×EX”. ¨"Ó-×3Ñ3Ô5Ð^`ˆØ"(¨%¯)©)°F¸GÓ*DÀjÐRZ×R`ÑR`ÓRbØ"+¨W×-XÐ-X¼¸u¿y¹yÈÐTVÓ?WÓ8XÐZaÐch×clÑclÐm|ð  Aó  dBð"Cˆô ˜Ÿ™ 9¨bÓ1Ó2ˆßØ '�9Ñô 	#Ø¬¨w«ÀØ×'Ñ'¨¯	©	°*Ó(=×(WÐ(WÀÇÁÈ;ÓAWÓXõ	
ð Šñ3 ,ñ4 r   c               ó    € V ^8„  d   QhRRRR/# )r   rb   r   r   ro   r   )r   s   "r   r   r   ®   s   € ÷ ñ °#ð ÐLdñ r   c                ó°  € V EFN  p\        V\        4      '       d#   VP                  R4      VP                  R4      3MRw  r4\        V\        4      '       d   \        V\        4      '       g   Kn  \	        VP                  RR4      4      pV \        W54      9  d   K›  RVP                  4       RVP                  4       R\	        VP                  RR4      4      /p\	        VP                  RR4      4      pV'       d   WvR&   \        W&V\	        VP                  RR4      4      \        4       P                  VP                  R	4      4      R
7       Vu # 	  R# )zBScan the legacy ``custom_providers:`` list for ``requested_norm``.rr   r9   Nr\   r%   rs   r;   r1   r]   rw   ©NN)
rE   rF   r3   r   r+   r   r   r`   r   ry   )rb   Úcustom_providersr-   rr   r9   r\   rN   Ú
model_names   &&      r   Ú_match_legacy_custom_providerr�   ®   s  € ä!ˆÜGQÐRWÔY]×G^ÒG^˜%Ÿ)™) FÓ+¨U¯Y©Y°zÓ-BÑCÐdp‰ˆÜ˜$¤×$Ò$¬J°xÄ×,EÒ,EÙÜ˜eŸi™i¨¸Ó;Ó<ˆØÔ!8¸Ó!LÔLÙØ˜$Ÿ*™*›,¨
°H·N±NÓ4DÀiÔQWÐX]×XaÑXaÐbkÐmoÓXpÓQqÐrˆÜ˜EŸI™I g¨rÓ2Ó3ˆ
ßØ(�7‰OÜ" 5¸|ÔU[Ð\a×\eÑ\eÐfoÐqsÓ\tÓUuÜ,/«E×,AÑ,AÀ%Ç)Á)ÈJÓBWÓ,Xõ	ZàŠñ "ñ r   Úconfigc               ó(   € V ^8„  d   QhRRRRRRRR/# )r   Úrequested_providerr   r‚   ro   rl   rH   r   r   )r   s   "r   r   r   Á   s4   € ÷ iñ iØðiØ(@ðiàðið ñir   c               óð  € \        T ;'       g    R4      pV'       d   VR8X  g   \        V4      '       d   R# \        4       pVf   VP                  4       pVP	                  R4      p\        V\        4      '       d   \        W5VR7      MRpV'       d   V# \        VP	                  R4      \        4      '       d   \        P                  R4       R# VP                  V4      pV'       d   \        W74      # R# )z³Resolve a named endpoint. Creation-time config copying supplies its own config snapshot
and skips credential reads; ordinary runtime callers keep their existing scoped resolution.r%   ÚautoNrn   )rl   r   z…custom_providers in config.yaml is a dict, not a list. Each entry must be prefixed with '-' in YAML. Run 'hermes doctor' for details.)r"   rk   r   Úload_configr3   rE   rF   r{   r4   r5   Úget_compatible_custom_providersr�   )r„   r‚   rl   rb   ri   rn   Úfoundr   s   &$$     r   Ú_get_named_custom_providerrŠ   Á   sÕ   € ô 5Ð5G×5MÐ5MÈ2ÓN€Nß˜^¨vÔ5Ô9MÈn×9]Ò9]ÙÜ	‹€BØ‚~Ø—‘Ó!ˆØ—
‘
˜;Ó'€Iô �i¤×&Ò&ô 	" .ÐQdÕeØ,0ð 
÷ ØˆÜ�&—*‘*Ð/Ó0´$×7Ò7Ü�‰ð :ô 	;ñ Ø×9Ñ9¸&ÓAÐßN^Ô(¨ÓJÐhÐdhÐhr   c               ó    € V ^8„  d   QhRRRR/# )r   r„   r   r   rH   r   )r   s   "r   r   r   Ý   s   € ÷ ñ °#ð ¸$ñ r   c                ó^   €  \        4       P                  V 4      RJ#   \         d     R# i ; i)z¬True when config defines a ``providers:`` / ``custom_providers:`` entry matching the request
(public wrapper so e.g. the cronjob tool need not reach into a private helper).NF)r   rŠ   Ú	Exception)r„   s   &r   Úhas_named_custom_providerrŽ   Ý   s2   € ðÜ‹u×/Ñ/Ð0BÓCÈ4ÐOÐOøÜô Úðús   ‚ �,«,c               ó    € V ^8„  d   QhRRRR/# )r   r„   r   r   rM   r   )r   s   "r   r   r   æ   s   € ÷ }ñ }°ð }¸ñ }r   c                óˆ  € \        T ;'       g    R4      R9   d   R#  \        4       P                  V 4      pT'       g   R# \	        \        TP                  R4      ;'       g    R4      \        TP                  R4      ;'       g    R4      4      P                  R^4      ^,          ;'       g    R#   \         d     R# i ; i)uz  Codex ``[model_providers.<id>]`` key for a configured named custom provider â€” its ``custom:``
identity without the prefix (the ``providers:`` config key; legacy ``custom_providers:`` entries
use their normalized display name). None for bare ``custom``, aliases that resolve to custom
(ollama, vllm, â€¦) and unknown names: codex has no stable id to look up for those (#75186).r%   Nrr   r\   Ú:>   r%   rd   )r"   r   rŠ   r�   r	   r   r3   Úsplit)r„   r-   s   & r   Úcodex_model_provider_idr“   æ   s©   € ô
 'Ð'9×'?Ð'?¸RÓ@ÀNÔRÙðÜ“×0Ñ0Ð1CÓDˆ÷ ÙÜ¤ E§I¡I¨fÓ$5×$;Ð$;¸Ó <¼cÀ%Ç)Á)ÈNÓB[×BaÐBaÐ_aÓ>bÓc×iÑiÐjmÐopÓqÐrsÕt×|Ð|Ðx|Ð|øô	 ô Úðús   žB2 Â2CÃ Cc               ó    € V ^8„  d   QhRRRR/# )r   Úmatchesz Callable[[dict[str, Any]], bool]r   rM   r   )r   s   "r   r   r   ù   s   € ÷ ñ Ð#Cð Èñ r   c           
     ó  € \        4       p VP                  4       pTP                  R4      p\	        T\
        4      '       d`   TP                  4        FK  w  rE\	        T\
        4      '       g   K  T ! T4      '       g   K-  \        \        T4      \        T4      4      u # 	   TP                  T4      pT;'       g    .  F›  p\	        T\
        4      '       d   TP                  R4      MRp\	        T\        4      '       g   KD  TP                  4       '       g   K\  T ! T4      '       g   Kl  \        T\        TP                  RR4      ;'       g    R4      4      u # 	  R#   \         d     R# i ; i  \         d    Rp LÎi ; i)zˆFirst entry in ``providers:`` then legacy ``custom_providers:`` where ``matches(entry)``
holds, as its canonical ``custom:<name>`` slug.Nrn   rr   r\   r%   )r   r‡   r�   r3   rE   rF   rG   r	   r   rˆ   r   )r•   ri   r‚   rn   rz   r-   r   rr   s   &       r   Ú_find_custom_identityr—   ù   s3  € ô 
‹€BðØ—‘Ó!ˆð —
‘
˜;Ó'€IÜ�)œT×"Ò"Ø'Ÿo™oÖ/‰NˆGÜ˜%¤×&Ô&©7°5¯>¬>Ü+¬C°«L¼#¸g»,ÓGÒGñ 0ð Ø×=Ñ=¸fÓEÐð "×'Ð' RÒ'ˆÜ$.¨u´d×$;Ò$;ˆu�y‰y˜Ô ÀˆÜ�dœC× Ô  T§Z¡Z§\¤\±g¸e·n´nÜ'¨¬c°%·)±)¸NÈBÓ2O×2UÐ2UÐSUÓ.VÓWÒWñ (ñ øô ô Úðûô ô  ØÒð ús#   ŒE! Â#E3 Å!E0Å/E0Å3FÆFc               ó    € V ^8„  d   QhRRRR/# )r   r9   r   r   rM   r   )r   s   "r   r   r     s   € ÷ kñ k¨Cð k°Mñ kr   c                óL   a€ \        V 4      oS'       g   R# \        V3R l4      # )u  Map an endpoint URL back to its canonical ``custom:<name>`` menu key. Session persistence
stores the agent's *resolved* provider, which for every named custom endpoint is the literal
string ``"custom"`` â€” the entry name is lost, and the api_key is deliberately never persisted.Nc                ó2   <€ \        \        V 4      4      S8H  # ©N)r(   rB   )r-   Útargets   &€r   Ú<lambda>Ú/find_custom_provider_identity.<locals>.<lambda>  s   ø€ Ô/LÌZÐX]ÓM^Ó/_ÐciÒ/ir   )r(   r—   )r9   rœ   s   &@r   Úfind_custom_provider_identityrŸ     s!   ø€ ô +¨8Ó4€FßÙÜ Ô!iÓjÐjr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r   r   rœ   r   r   rH   r   )r   s   "r   r   r     s&   € ÷ Fñ F˜Sð F¨#ð F°$ñ Fr   c                ót   € \        V \        4      ;'       d"    V P                  4       P                  4       V8H  # r›   )rE   r   r   r   )r   rœ   s   &&r   Ú_model_id_matchesr¢     s+   € Ü�eœSÓ!×EÐE e§k¡k£m×&9Ñ&9Ó&;¸vÑ&EÐEr   c               ó    € V ^8„  d   QhRRRR/# )r   r;   r   r   rM   r   )r   s   "r   r   r     s   € ÷ 6ñ 6°#ð 6¸-ñ 6r   c                ó¢   a€ \        T ;'       g    R4      P                  4       P                  4       oS'       g   R# R V3R llp\        V4      # )uè   Map a model id back to the ``custom:<name>`` entry that serves it â€” companion to
:func:`find_custom_provider_identity` for persistence paths where no base_url survived the
round-trip (the session row always stores the model name).r%   Nc               ó    € V ^8„  d   QhRRRR/# )r   r-   r.   r   rH   r   )r   s   "r   r   Ú<find_custom_provider_identity_by_model.<locals>.__annotate__'  s   € ÷ 	ñ 	 >ð 	°dñ 	r   c                óô  <a € \         ;QJ d     V V3R  lR 4       F  '       g   K   RM	  RM! V V3R  lR 4       4      '       d   R# S P                  R4      p\        V\        4      '       d;   \         ;QJ d    V3R lV 4       F  '       g   K   R# 	  R# ! V3R lV 4       4      # \        V\        4      '       d;   \         ;QJ d    V3R lV 4       F  '       g   K   R# 	  R# ! V3R lV 4       4      # R# )c              3  óZ   <"  € T F   p\        SP                  V4      S4      x € K"  	  R # 5ir›   )r¢   r3   )Ú.0Úkeyr-   rœ   s   & €€r   Ú	<genexpr>ÚVfind_custom_provider_identity_by_model.<locals>._entry_serves_model.<locals>.<genexpr>(  s&   øé € Ð_ÑD^¸SÔ  §¡¨3£°×8Ð8ÓD^ùs   ƒ(+TFrR   c              3  óx   <"  € T F/  p\        V4      P                  4       P                  4       S8H  x € K1  	  R # 5ir›   ©r   r   r   )r©   Úmidrœ   s   & €r   r«   r¬   ,  s*   øé € ÐLÁV¸c”s˜3“x—~‘~Ó'×-Ñ-Ó/°6Ö9ÃVùs   ƒ7:c              3  ó¼   <"  € T FQ  p\        \        V\        4      '       d+   VP                  R 4      ;'       g    VP                  R4      MTS4      x € KS  	  R# 5i)Úidrr   N)r¢   rE   rF   r3   )r©   Úitemrœ   s   & €r   r«   r¬   .  sN   øé € ð +Ù#)˜4ô )ÌzÐZ^Ô`d×OeÒOe¨¯©°$«×)KÐ)K¸4¿8¹8ÀFÓ;KøÐkoÐqw×xÐxÛ#)ùs
   ƒ7A»!A)r;   rt   )Úanyr3   rE   rF   Úlist)r-   rR   rœ   s   f €r   Ú_entry_serves_modelÚCfind_custom_provider_identity_by_model.<locals>._entry_serves_model'  s¸   ù€ ß‹3Õ_ÑD^Ó_�3�3Š3Õ_ÑD^Ó_×_Ò_ÙØ—‘˜8Ó$ˆÜ�fœd×#Ò#ß“3ÔLÁVÓL—3”3ÐL’3ÐL�3ÔLÁVÓLÓLÐLÜ�fœd×#Ò#ß“3ô +Ù#)ó+—3”3ð +’3ð +�3ô +Ù#)ó+ó +ð +ár   )r   r   r   r—   )r;   rµ   rœ   s   & @r   Ú&find_custom_provider_identity_by_modelr·     sE   ø€ ô �—�˜"Ó×#Ñ#Ó%×+Ñ+Ó-€FßÙ÷	ð 	ô !Ð!4Ó5Ð5r   r9   Úconfig_providerr;   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r9   rM   r¸   r;   r   r   )r   s   "r   r   r   5  s+   € ÷ -<ñ -<¨=ð -<ÐR_ð -<Ø%2ð-<Ø>Kñ-<r   c                óœ  € \        4       pV '       dM   \        V 4      pV'       d   V# ^ RIHp V! 4       pV'       d#   \	        V 4      \	        VR,          4      8X  d   R# V'       d   \        V4      MRpV'       d   V# \        T;'       g    R4      P                  4       pV'       gB    \        VP                  4       P                  R4      ;'       g    R4      P                  4       pV'       g/   \        P                  P                  RR4      P                  4       p\        V4      pV'       d   VR9   d   R#  VP                  V4      p	T	f   R#  \        \        T	P                  R4      ;'       g    R4      4      pT;'       g    \        T4      #   \         d    Rp L¼i ; i  \         d     R# i ; i  \         d     R# i ; i)	zëRecover the durable menu identity for a bare custom provider. Match a configured
endpoint first, then the ownership-checked managed server, then a configured model or
provider. Every session persistence/restore path shares this lookup.)Ú_state_endpointr9   ÚllamacppNr%   ÚproviderÚHERMES_INFERENCE_PROVIDER>   r†   rd   Ú
openrouter)r   rŸ   Ú!hermes_cli.local_runtime.endpointr»   r(   r·   r   r   Ú_get_model_configr3   r�   ÚosÚenvironr"   rŠ   r	   )
r9   r¸   r;   ri   Úidentityr»   ÚendpointÚ	candidateÚcandidate_normr-   s
   $$$       r   Úcanonical_custom_identityrÈ   5  sˆ  € ô
 
‹€BßÜ0°Ó:ˆßØˆOõ 	FÙ"Ó$ˆßÔ5°hÓ?ÔC`ÐaiÐjtÕauÓCvÔvÙß@EÔ5°eÔ<È4€HßØˆÜ�O×)Ð) rÓ*×0Ñ0Ó2€Ißð	Ü˜B×0Ñ0Ó2×6Ñ6°zÓB×HÐHÀbÓI×OÑOÓQˆI÷ Ü—J‘J—N‘NÐ#>ÀÓC×IÑIÓKˆ	Ü4°YÓ?€Nç˜^Ð/OÔOÙð
Ø×-Ñ-¨iÓ8ˆð ‚}ÙðÜ0´°U·Y±Y¸zÓ5J×5PÐ5PÈbÓ1QÓRˆð ×;Ð;Ô+¨NÓ;Ð;øô- ô 	ØŠIð	ûô ô Úðûô ô ÚðúsB   Â**F ÃF Ä=F* Å!F< Å7F< ÆF'Æ&F'Æ*F9Æ8F9Æ<GÇ
Gc               ó    € V ^8„  d   QhRRRR/# )r   r½   rM   r   rH   r   )r   s   "r   r   r   e  s   € ÷ ñ  =ð °Tñ r   c                ól  € \        T ;'       g    R4      P                  4       pV'       d   VP                  4       R8X  d   R# VP                  4       R8X  d   R#  ^ RIHp \        4       pVP                  4       pV! WP                  R4      VP                  V4      4      RJ#   \         d     R# i ; i)	uÏ  Whether a provider name currently resolves to a routable route. Empty/None/``auto`` is
vacuously routable (agent build falls back to the configured default). Bare ``custom`` is the
resolved billing class shared by every named entry â€” not a routable identity; restore paths
must heal it (:func:`canonical_custom_identity`) or fall back. Anything else is routable iff the
full chain (built-in -> ``providers:`` -> ``custom_providers:`` -> models.dev) resolves it.r%   r†   Trd   F)Úresolve_provider_fullrn   N)
r   r   r   Úhermes_cli.providersrË   r   r‡   r3   rˆ   r�   )r½   rr   rË   ri   r‚   s   &    r   Úis_routable_providerrÍ   e  s–   € ô ˆx�~ˆ~˜2Ó×$Ñ$Ó&€Dß�4—:‘:“< 6Ô)ÙØ‡z�zƒ|�xÔÙðÝ>Ü‹UˆØ—‘Ó!ˆÙ$ T¯:©:°kÓ+BÀB×DfÑDfÐgmÓDnÓoÐw{Ð{Ð{øÜô Úðús   ÁAB$ Â$B3Â2B3c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r   r9   r   Úprovider_labelÚapi_mode_overriderM   Úprovider_namer   ro   r   )r   s   "r   r   r   |  s4   € ÷ ñ ØðØ#&ðØ;HðØ`mðàñr   c           
     ó¤  € \        4       p \        VP                  W4      4      p\        \        P                  R R V 4        4       4      4      pV FÒ  p VP                  V4      pVP                  4       '       d   VP                  4       MRp	V	e   VP                  V	4      MRp
V
'       g   K^  VP                  V
4      '       g#   VP                  \        V 4      4      '       d   Rp
TP                  Y;'       g    VP                  V 4      ;'       g    RW
RV 2VR7      u # 	  R#   \         d    . p ELi ; i  \         d     Kú  i ; i)	zVRuntime dict from the first credential pool that owns this custom endpoint, else None.c              3  ó8   "  € T F  q'       g   K  Vx € K  	  R # 5ir›   r   )r©   rI   s   & r   r«   Ú0_try_resolve_from_custom_pool.<locals>.<genexpr>†  s   é € Ð#iÑ/c¨!Ógh§A¢AÓ/cùs   ‚	�
c              3  ó„   "  € T F6  p\        T;'       g    R 4      P                  4       P                  4       x € K8  	  R# 5i)r%   Nr®   )r©   rª   s   & r   r«   rÔ   †  s2   é € Ð/cÑZbÐSV´°C·I°I¸2³×0DÑ0DÓ0F×0LÑ0L×0NÐ0NÓZbùs
   ‚A •+A Nr%   úno-key-requiredÚchat_completionszpool:)ÚsourceÚcredential_pool)r   r´   Ú#custom_provider_pool_key_candidatesr�   rF   ÚfromkeysÚ	load_poolÚhas_credentialsÚselectÚ_pool_entry_api_keyÚhas_usable_secretÚ_loopback_hostnamer   Ú_runtimeÚ_detect_api_mode_for_url)r9   rÏ   rÐ   rÑ   ri   Úraw_keysÚ
candidatesÚpool_keyÚpoolr-   Úpool_api_keys   &&&&       r   Ú_try_resolve_from_custom_poolré   |  s@  € ô 
‹€BðÜ˜×>Ñ>¸xÓWÓXˆô ”d—m‘mÑ#iÑ/cÑZbÔ/cÓ#iÓiÓj€JÛˆð	Ø—<‘< Ó)ˆDØ%)×%9Ñ%9×%;Ò%;�D—K‘K”MÀˆEØ<AÒ<M˜2×1Ñ1°%Ô8ÐSUˆLßÙØ×'Ñ'¨×5Ò5¸"×:OÑ:OÔPaÐbjÓPk×:lÒ:lð  1�Ø—;‘;˜~×/Ð/ÀB×D_ÑD_Ð`hÓDi×/Ð/ÐmØ'ÀÀhÀZÐ>PÐbfð ó hò hñ! ñ( øô1 ô Ø‹ðûô, ô 	Úð	ús<   ŒD, ÁAE Â2E Ã	5E Ã?E ÄE Ä,D=Ä<D=Å EÅEc               ó    € V ^8„  d   QhRRRR/# )r   Úcustom_providerr.   r   r   )r   s   "r   r   r   ž  s   € ÷ ,ñ ,¸ð ,È>ñ ,r   c                ó~   € V P                  R 4      p\        V\        4      '       d	   V'       g   / # R \        V4      /# )r_   )r3   rE   rF   )rë   r_   s   & r   Ú"_custom_provider_request_overridesrí   ž  s6   € Ø ×$Ñ$ \Ó2€JÜ�j¤$×'Ò'¯zØˆ	Øœ$˜zÓ*Ð+Ð+r   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   rë   r.   Útarget_modelrM   rN   r   rO   r   )r   s   "r   r   r   ¥  s1   € ÷ gñ g°>ð gÐQ^ð gÐhvð gÐ{ñ gr   c                ó2  € T;'       g    V P                  R4      pV'       d   W2R&   \        WV4       V P                  R4      '       d   \        V R,          4      VR&   \        V 4      pV'       d%   / VP                  R4      ;'       g    / CVCVR&   R# R# )uN  Copy model / capabilities / extra_headers / request_overrides onto a
resolved custom runtime. An explicit ``target_model`` wins over the provider's configured
default (auxiliary slots / background-review resolve a concrete model and must not fall back to
``default_model``). ``extra_headers`` may carry credentials â€” NEVER log them.r;   rX   Úrequest_overridesN)r3   rU   rF   rí   )rë   rï   rN   r€   rñ   s   &&&  r   Ú_apply_custom_provider_extrasrò   ¥  s�   € ð
 ×=Ð= ×!4Ñ!4°WÓ!=€JßØ$ˆw‰Ü˜_¸&ÔAà×Ñ˜?×+Ò+Ü"& °Õ'GÓ"HˆˆÑÜ:¸?ÓKÐßØ&f¨&¯*©*Ð5HÓ*I×*OÐ*OÈRÐ&fÐTeÐ&fˆÐ"Ó#ñ r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r„   r   Úexplicit_api_keyrM   r   r.   r   )r   s   "r   r   r   ¶  s"   € ÷ ñ °#ð Èð Ð[iñ r   c           	     ó  € \        4       p ^ RIHp V! VP                  4       R7      pV'       dR   TP                  RRVR,          T;'       g    RP                  4       ;'       g    VR,          ;'       g    R	R
V R7      #  \        VP                  4       P                  R4      ;'       g    / P                  R4      4      pV'       d   \        R4      h\        R4      h  \         d    Rp LÈi ; i  \         d    Rp L@i ; i)uW  Managed llama.cpp runtime: the supervised (or detected external) server, or a typed error.
No server => say so and stop; falling through to the generic custom path would surface "local
server is off" as OpenRouter's baffling "401 Invalid API key". The switch's state picks the
message (server off â†’ point at the switch; else the setup pane).)Úresolve_llamacpp_endpoint)r‚   Nrd   r×   r9   r%   rs   rÖ   zlocal-runtime©rØ   r„   Úlocal_runtimeÚenabledFu‹   The local model server isn't running. It may still be starting â€” try again in a moment, or check Settings â†’ Providers â†’ Local models.u}   The local model server is turned off. Turn it back on in Settings â†’ Providers â†’ Local models, or switch to another model.)
r   rÀ   rö   r‡   r�   râ   r   rH   r3   Ú
ValueError)r„   rô   ri   rö   rÅ   rù   s   &&    r   Ú_resolve_llamacpp_runtimerû   ¶  s  € ô
 
‹€BðÝOÙ,°B·N±NÓ4DÔEˆ÷ Ø�{‰{˜8Ð%7¸À*Õ9MØ,×2Ð2°×9Ñ9Ó;×gÐg¸xÈ	Õ?R×gÐgÐVgÐpØ.@ð ó Bð 	BðÜ˜Ÿ™Ó(×,Ñ,¨_Ó=×CÐCÀ×HÑHÈÓSÓTˆ÷ Üð 7ó 8ð 	8ô ð ó ð øô ô ØŠðûô ô ØŠðús)   ŒC" Â*C5 Â.C5 Ã"C2Ã1C2Ã5DÄDc          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r   r9   r   rs   r   r]   rM   Úextrar   r.   r   )r   s   "r   r   r   Ò  s1   € ÷ >ñ > #ð >°ð >¸}ð >ÐWZð >Ð_mñ >r   c                óˆ   € V P                   ! RT;'       g    V P                  V4      ;'       g    RTT;'       g    R3/ VB # )zX``custom`` runtime dict with URL-detected api_mode fallback and the no-auth placeholder.rd   r×   rÖ   )râ   rã   )ri   r9   rs   r]   rý   s   &&&&,r   Ú_custom_runtimerÿ   Ò  sJ   € à�;Š;�x ×!hÐ!h¨R×-HÑ-HÈÓ-R×!hÐ!hÐVhÐjrØ×3Ð3Ð"3ñ>Ø7<ñ>ð >r   Úopenaizhttps://api.openai.com/v1zdict[str, str]Ú_DIRECT_API_BASE_URLSc               ó$   € V ^8„  d   QhRRRRRR/# )r   r½   rM   Úexisting_baser   z#tuple[Optional[str], Optional[str]]r   )r   s   "r   r   r   Þ  s'   € ÷ ñ  mð ÀMð ÐVyñ r   c                ól  € V '       g   W3# \         P                  V P                  4       P                  4       4      pVe   \	        4       P                  V 4      e   W3# RT;'       g    RP                  4       ;'       g4    \        RR4      P                  4       P                  R4      ;'       g    T3# )uT  ``provider: openai`` â†’ custom + the user's OpenAI endpoint, api.openai.com/v1 only as the last resort.

The ONE normalization both aux paths (``agent.auxiliary_client`` and ``resolve_runtime_provider``)
apply, so the same ``auxiliary.<task>.provider`` value routes identically everywhere. A
``providers.openai`` entry keeps the provider name so the named-custom branch applies its base_url
and key; otherwise ``OPENAI_BASE_URL`` (a proxy/gateway the OPENAI_API_KEY was issued for) wins over
the public endpoint â€” sending the proxy key to api.openai.com 401s and then quarantines a valid key.
rd   r%   ÚOPENAI_BASE_URLr&   )r  r3   r   r   r   rŠ   r
   r'   )r½   r  Útarget_bases   && r   Úexpand_direct_api_aliasr  Þ  sœ   € ÷ ØÐ&Ð&Ü'×+Ñ+¨H¯N©NÓ,<×,BÑ,BÓ,DÓE€KØÒœc›e×>Ñ>¸xÓHÒTØÐ&Ð&Ø�m×)Ð) r×0Ñ0Ó2×~Ð~´nÐEVÐXZÓ6[×6aÑ6aÓ6c×6jÑ6jÐknÓ6o×~Ð~Ðs~Ð~Ð~r   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r„   r   rô   rM   Úexplicit_base_urlr   r.   r   )r   s   "r   r   r   ï  s0   € ÷ vñ v°cð vÈ]ð vØ58ðvØ=Kñvr   c           	     ót  a€ \        4       oVP                  4       P                  R4      pSP                  VRR4      pV'       d   RVR&   V# T;'       g    RP                  4       \	        SP                  4       V4      .SP                  VRR7      Op\        V3R	 lV 4       R4      p\        SW6RRV R
7      # )zMBare ``custom`` + explicit base_url (e.g. a ``model_aliases:`` direct alias).r&   rd   Nzdirect-aliasrØ   r%   T©Úollamac              3  óZ   <"  € T F   pSP                  V4      '       g   K  Vx € K"  	  R # 5ir›   ©rà   ©r©   Úcri   s   & €r   r«   Ú0_resolve_direct_alias_runtime.<locals>.<genexpr>ÿ  s    øé € ÐE™z˜!¨R×-AÑ-AÀ!×-D—A’A›zùó   ƒ+¡
+r÷   )	r   r   r'   ré   r=   rÁ   Ú_host_gated_env_key_candidatesÚnextrÿ   )r„   rô   r	  r9   Úpool_resultrå   rs   ri   s   &&&    @r   Ú_resolve_direct_alias_runtimer  ï  s¿   ø€ ô 
‹€BØ ×&Ñ&Ó(×/Ñ/°Ó4€Hð ×2Ñ2°8¸XÀtÓL€KßØ .ˆ�HÑØÐð $×)Ð) r×0Ñ0Ó2Ô4JÈ2×K_ÑK_ÓKaÐckÓ4lð MØ×4Ñ4°XÀdÐ4ÓKðM€JäÔE™zÓEÀrÓJ€GÜ˜2˜x°$¸~ÐbtÔuÐur   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r„   r   r9   r   rM   r   )r   s   "r   r   r     s!   € ÷ ñ °Cð À3ð È=ñ r   c                óÄ   € ^ RI Hp V! V 4      pVe   V#  \        V4      P                  4       R8X  d   RVP                  4       9   d   R# R#  R#   \         d     R# i ; i)zXOpenCode family by provider name, else by opencode.ai host (``/zen/go`` => opencode-go).)Úopencode_provider_familyNzopencode.aiz/zen/gozopencode-gozopencode-zen)Úhermes_cli.modelsr  r   r   r�   )r„   r9   r  Úfamilys   &&  r   Ú_opencode_family_for_customr    ss   € õ ;Ù%Ð&8Ó9€FØÒØˆðÜ˜XÓ&×,Ñ,Ó.°-Ô?Ø$-°·±Ó1AÔ$A�=ÐUÀ~ÐUð @ñ øô ô ØÙðús   –4A ÁA ÁAÁArô   r	  rï   c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r   r„   r   rô   rM   r	  rï   r   ro   r   )r   s   "r   r   r     s:   € ÷ Dñ D¸ð DÐP]ð DØ5BðDà0=ðDàIañDr   c                óè  a€ \        4       oT ;'       g    RP                  4       P                  4       pRpV\        9   d-   V'       g%   SP	                  V 4      pV'       g   \        W4      # V'       d!   VR8w  d   SP                  V4      '       d   RpVR8X  d   V'       d   \        WV4      # T;'       g    SP	                  V 4      pV'       g   R# T;'       g    RP                  4       ;'       g    VP                  RR4      P                  R4      pV'       g   R# SP                  TRVP                  R4      VP                  R4      ;'       g    VP                  R4      R	7      pV'       d   \        WSV4       V# T;'       g    RP                  4       pV\        VP                  R
R4      4      \        VRVP                  RV 4       R24      .SP                  VRR7      Op	\        V3R lV	 4       R4      p
\        VP                  RR4      4      pV'       dP   SP!                  V4      '       g9   ^ RIHp T! T\'        VP                  RV 4      ;'       g    R4      4      pVe   Tp
\)        SWjVP                  R4      RVP                  RV 4       2V R7      p\        WSV4       \+        W4      pVe±   VP                  R4      '       gš   ^ RIHpHp \'        T;'       gC    VP                  R4      ;'       g*    SP3                  4       P                  R4      ;'       g    R4      P                  4       pV'       d   V! VV4      VR&   V! WþR,          VR,          4      VR&   V# )u(  Runtime for a llamacpp alias, a bare-custom direct alias, or a configured custom entry.
Aliases resolving to "custom" (ollama, vllm, llamacpp, â€¦) are treated like bare ``custom``. A
llamacpp alias with no explicit base_url resolves to the managed server first; an explicit
base_url always wins.r%   Nrd   r9   r&   r]   r\   rr   )rÑ   rs   zcustom provider 'Ú'Fr  c              3  óZ   <"  € T F   pSP                  V4      '       g   K  Vx € K"  	  R # 5ir›   r  r  s   & €r   r«   Ú0_resolve_named_custom_runtime.<locals>.<genexpr>A  s    øé € ÐJ¡J˜q°"×2FÑ2FÀq×2IŸš£Jùr  ru   )Úbuild_command_token_providerzcustom_provider:r÷   )Únormalize_opencode_base_urlÚopencode_model_api_moder;   Údefault)r   r   r   Ú_LLAMACPP_ALIASESrŠ   rû   Ú_resolves_to_customr  r3   r'   ré   rò   r+   r6   r  r  rà   Úagent.command_token_sourcer"  r   rÿ   r  r  r#  r$  rÁ   )r„   rô   r	  rï   rb   rë   r9   r  Úexplicit_keyrå   rs   ru   r"  Útoken_providerrN   r  r#  r$  Úeffective_modelri   s   $$$$               @r   Ú_resolve_named_custom_runtimer,    s6  ø€ ô 
‹€Bð )×.Ð.¨B×5Ñ5Ó7×=Ñ=Ó?€NØ€OØÔ*Ô*×3DØ×7Ñ7Ð8JÓKˆßÜ,Ð-?ÓRÐRß˜.¨HÔ4¸×9OÑ9OÐP^×9_Ò9_Ø!ˆØ˜Ô!×&7Ü,Ð-?ÐSdÓeÐeØ%×ZÐZ¨×)FÑ)FÐGYÓ)Z€OßÙØ"×(Ð( b×/Ñ/Ó1×XÐX°_×5HÑ5HÈÐUWÓ5X×`Ñ`ÐadÓe€HßÙØ×2Ñ2Ø�(˜O×/Ñ/°
Ó;Ø%×)Ñ)¨.Ó9×XÐX¸_×=PÑ=PÐQWÓ=Xð 3ó €K÷ ä% oÀ[ÔQØÐØ$×*Ð*¨×1Ñ1Ó3€LàÜˆ×"Ñ" 9¨bÓ1Ó2Ü˜Ð+<¸_×=PÑ=PÐQWÐYkÓ=lÐ<mÐmnÐ)oÓpðð 
×	*Ñ	*¨8¸EÐ	*Ó	Bð	€Jô ÔJ¡JÓJÈBÓO€Gô �_×(Ñ(¨°BÓ7Ó8€Gß�r×+Ñ+¨L×9Ò9ÝKÙ5°g¼sÀ?×CVÑCVÐW]Ð_qÓCr×C~ÐC~Ðv~Ó?ó  AˆØÒ%Ø$ˆGÜ˜R °O×4GÑ4GÈ
Ó4SØ&6°×7JÑ7JÈ6ÐSeÓ7fÐ6gÐ$hØ0BôD€Fô " /ÀÔHô )Ð);ÓF€FØÒ /×"5Ñ"5°j×"AÒ"AßZÜ˜l×yÐy¨o×.AÑ.AÀ'Ó.J×yÐyÈb×NbÑNbÓNd×NhÑNhÐirÓNs×yÐyÐwyÓz÷  Añ  Aó  CˆßÙ!8¸ÀÓ!QˆF�:ÑÙ8¸È
ÕASÐU[Ð\fÕUgÓhˆˆzÑØ€Mr   )r¼   z	llama.cppz	llama-cppr~   )8Ú__conditional_annotations__Ú__doc__Ú
__future__r   ÚloggingrÂ   Útypingr   r   r   r   r   rÌ   r   r	   Úagent.secret_scoper
   Úutilsr   Ú	getLoggerr4   r&  r   r"   r(   r+   r6   r=   rB   rK   rU   rZ   r`   rk   r{   r�   rŠ   rŽ   r“   r—   rŸ   r¢   r·   rÈ   rÍ   ré   rí   rò   rû   rÿ   r  Ú__annotations__r  r  r  r,  )r-  s   @r   Ú<module>r6     sN  øðô#õ #ã Û 	ß 7Õ 7ç NÝ -Ý #à	×	Ò	Ð8Ó	9€à:Ð òõ3õ8õ$õõ$/õOõZõ.õ0õ2õ(?ð" ØSW÷ õFð&iØCGðià $÷iõ8õ}õ&õ0kõFõ6ð,-<¸4ð -<Ðbfð -<Ø59÷-<õ`÷.õD,õgõ"õ8>ð *2Ð3NÐ(OÐ �~Ó Oõõ"võ(ð$DÐ`dð DØEIðDà@D÷Dñ Dr   