+
    jHàj0
  ã                  óx   € R t ^ RIHt ^ RIt^ RIt]P
                  ! ]4      t^xtR t	]P                  R 4       tR# )uC  The masked skill-secret prompt for a local viewer's turn.

Main's classic CLI registered ``set_secret_capture_callback`` in process: a skill whose
``required_environment_variables`` are missing opened the masked "Skill Setup Required" panel and the
value was saved to the profile ``.env`` (``save_env_value_secure``) without ever reaching the model.
On the session authority the skill runs in the gateway, where a gateway surface only got the
"secret entry is not available" hint. For a local viewer's turn the owner now sends main's ``secret``
serverâ†’client request (``tui_gateway/contracts/server_requests.py``: ``SecretRequestParams`` â†’
``ValueResult``) to the attached viewers, saves a non-empty answer in this profile's ``.env`` here,
and returns main's callback result. The value travels only in the viewer's response frame.
)ÚannotationsNc                ó   € R RRVRV RRRRRV/# )ÚsuccessTÚreasonÚ	stored_asÚ	validatedFÚskippedÚmessage© )Úvar_namer   r	   s   &&&ÚB/home/ubuntu/.hermes/hermes-agent/gateway/session_secret_prompt.pyÚ_skippedr      s'   € Ø�t˜X v¨{¸HÀkÐSXØ�t˜Y¨ð1ð 1ó    c              #  óê   aaa"  € ^ RI Hp V! V 4      '       g   Rx € R# ^ RIHp V P                  w  oopRVVV3R llpV! V4      ;_uu_ 4        Rx € RRR4       R#   + '       g   i     R# ; i5i)z]Bind this turn's secret-capture callback (a ContextVar, so parallel tool workers inherit it).)Úlocal_viewer_turnN)Úbind_turn_secret_capturec           	     ó&  <€ ^ RI Hp S	P                  P                  S
4      pVf   \	        V RR4      # RV RV/V'       d   RV/M/ CpV! VP
                  S
RV\        V3R lR	7      pV'       g   \	        V RR4      # ^ R
IHp / V! W4      CRRRR/C# )é    )Ú
ask_viewerÚ	cancelledzSecret setup was skipped.Úenv_varÚpromptÚmetadataÚsecretc                 ó0   <€ \        \        S R R4      4      # )Ú_interrupt_requestedF)ÚboolÚgetattr)Úagents   €r   Ú<lambda>Ú7secret_prompt_scope.<locals>.callback.<locals>.<lambda>,   s   ø€ ¬T´'¸%ÐAWÐY^Ó2_Ô-`r   )Útimeoutr   )Úsave_env_value_securer   Fr	   zFSecret stored securely. The secret value was not exposed to the model.)	Úgateway.session_server_requestsr   ÚsessionsÚgetr   Úevent_streamÚSECRET_TIMEOUT_SÚhermes_cli.configr"   )r   r   r   r   ÚliveÚparamsÚvaluer"   r   Ú	authorityÚ
session_ids   &&&     €€€r   ÚcallbackÚ%secret_prompt_scope.<locals>.callback%   s®   ø€ Ý>Ø×!Ñ!×%Ñ% jÓ1ˆØŠ<Ü˜H kÐ3NÓOÐOØ˜X x°Ðh×V^¸ZÈÑ<RÐdfÐhˆÙ˜4×,Ñ,¨j¸(ÀFÔTdÜ%`ôbˆçÜ˜H kÐ3NÓOÐOÝ;ðeÑ'¨Ó8ð e¸)ÀUØÐcñeð 	er   )N)Úgateway.run_turn_progressr   Útools.skills_toolr   Ú_approval_owner)Úturnr   r   r   Ú_generationr.   r,   r-   s   &f    @@r   Úsecret_prompt_scoper5      s[   úé € õ <Ù˜T×"Ò"ÛÙÝ:Ø)-×)=Ñ)=Ñ&€Iˆz˜;÷eñ eñ 
" (×	+Õ	+Û÷ 
,×	+×	+Ò	+üs   …AA3ÁAÁ
A3ÁA0	Á*	A3)Ú__doc__Ú
__future__r   Ú
contextlibÚloggingÚ	getLoggerÚ__name__Úloggerr'   r   Úcontextmanagerr5   r
   r   r   Ú<module>r>      sJ   ðñ
õ #ã Û à	×	Ò	˜8Ó	$€àÐ ò1ð
 ×Ññó òr   