+
    „WÝjœ  ã                   ó    € R t RRRRR/R lltR# )au  Provider readiness probe for the session authority's ``setup.runtime_check``.

Answers with the legacy ``tui_gateway/methods_config.py`` handler's payload so a client reads one
contract whichever backend it reached: ``ok``/``provider``/``model``/``source``, ``error`` on
failure (naming the configured pin, never the fallback chain's tail), ``free_tier_route`` on success.
NÚstrict_profile_scopeFÚresolvec               óæ  aa€ ^ RI Hp ^ RIHp ^ RIHp ^ RIHpHp V! 4       pVP                  R4      p	\        V	\        4      '       dI   \        V	P                  R4      ;'       g    V	P                  R4      ;'       g    R4      ;'       g    Rp
M"\        V	\        4      '       d   V	'       d   T	MRp
Ve   V! 4       w  opM]V '       d   V
oV! W
R	7      pMIV! WŠR
7      w  r¼T;'       g    / P                  R4      ;'       g    T
;'       g    VP                  R4      o\        V! VR7      4      pVP                  R4      ;'       g    Rp\        VP                  R4      ;'       g    R4      pT ;'       gK    \        V	\        4      '       d3   \        V	P                  R4      ;'       g    R4      P                  4       MRpT;'       g    ToVV3R lpV'       g   VR8X  d   VR9   d
   V! RV4      # VP                  R4      p\        V4      '       d   RM"\        T;'       g    R4      P                  4       p\        V4      '       gR   VR9   gK   V! V4      '       g=   \        VP                  R4      4      '       g   V! RS R2VP                  R4      4      # ^ RIHp RRRVP                  R4      RSRVP                  R4      RVR8H  ;'       d    V! VP                  R4      4      /# )up  ok/error verdict for the runtime a session would be built with.

Without ``requested`` the probe runs the SAME resolver as session creation (the configured
model + provider pin, then the configured fallback chain) â€” a probe that ignores the chain
shows onboarding for a backend whose sessions build fine (#111775). ``resolve`` replaces that
resolver with the caller's own ``() -> (model, runtime)``. An explicit ``requested`` provider
stays a strict single-provider check so onboarding can verify the provider just connected
without another provider's fallback masking a failed connection. Both branches report the model.
)Úhas_usable_secret)Úload_config)Ú_has_any_provider_configured)Úresolve_runtime_providerÚresolve_runtime_with_fallbackÚmodelÚdefaultÚ N)Ú	requestedÚtarget_model)r   )r   ÚproviderÚsourcec           
      ó   <€ R RRSRSRVRV /# )ÚokFr   r
   r   Úerror© )r   ÚsrcÚblamedr
   s   &&€€ÚPC:\Users\johnn\AppData\Local\hermes\hermes-agent\hermes_cli\runtime_readiness.pyÚfailÚ%check_runtime_readiness.<locals>.fail.   s    ø€ Ø�e˜Z¨°¸%ÀÈ3ÐPWÐY^Ð_Ð_ó    Úbedrockz!No Hermes provider is configured.Úapi_keyÚcommandz No usable credentials found for Ú.)Úroute_is_welcome_hostr   TÚfree_tier_routeÚnousÚbase_url>   úiam-roleúaws-sdk-default-chain>   úaws-sdkúno-key-required)Úhermes_cli.authr   Úhermes_cli.configr   Úhermes_cli.mainr   Úhermes_cli.runtime_providerr   r	   ÚgetÚ
isinstanceÚdictÚstrÚboolÚstripÚcallableÚhermes_cli.anon_authr   )r   r   r   r   r   r   r   r	   ÚconfigÚ	cfg_modelÚconfigured_modelÚruntimeÚentryÚ
configuredr   r   Úpinnedr   r   Úapi_key_textr   r   r
   s   &$$                  @@r   Úcheck_runtime_readinessr;   	   st  ù€ õ 2Ý-Ý<ßcá‹]€FØ—
‘
˜7Ó#€IÜ�)œT×"Ò"Ü˜yŸ}™}¨YÓ7×WÐW¸9¿=¹=ÈÓ;Q×WÐWÐUWÓX×`Ð`Ð\`Ñä(2°9¼c×(BÒ(BÇy™9ÐVZÐØÒÙ ›‰ˆ‰wß	Ø ˆÙ*°YÔ^‰á6°vÔ]‰ˆØ—�˜"×!Ñ! 'Ó*×VÐVÐ.>×VÐVÀ'Ç+Á+ÈgÓBVˆÜÑ2ÐH\Ô]Ó^€JØ�{‰{˜:Ó&×4Ð4¨*€HÜ�—‘˜XÓ&×,Ð,¨"Ó-€Fð ×oÐoÌ:ÐV_Ôae×KfÒKfœ3˜yŸ}™}¨ZÓ8×>Ð>¸BÓ?×EÑEÔGÐln€FØ×Ð�x€Fö`÷ ˜( iÔ/°FÐ>cÔ4cÙÐ7¸Ó@Ð@Ø�k‰k˜)Ó$€GÜ! '×*Ò*‘2´°G·M°M¸rÓ0B×0HÑ0HÓ0J€LÜ�W×Ò Ð1OÔ!OÙ  ×.Ò.´$°w·{±{À9Ó7M×2NÒ2NÙÐ6°v°h¸aÐ@À'Ç+Á+ÈhÓBWÓXÐXÝ:ð �$˜
 G§K¡K°
Ó$;¸WÀeÈXÐW^×WbÑWbÐckÓWlØ˜x¨6Ñ1×dÐdÑ6KÈGÏKÉKÐXbÓLcÓ6dðfð fr   )N)Ú__doc__r;   r   r   r   Ú<module>r=      s!   ðññ3fÀEð 3fÐSW÷ 3fr   