Ë
    âß²j'  ã                  ó@   — d Z ddlmZ dZdZdZdd„Zdd„Zdd„Zdd	„Z	y
)uc  Shared wording for the exec-approval prompt every messaging surface renders.

The button card (``BasePlatformAdapter._format_exec_approval``) and the plain-text
``/approve`` fallback (``gateway.run._format_exec_approval_fallback``) must tell the user
the same three things: what Hermes wants to run, why it was flagged, and that silence means
the command does NOT run once ``approvals.timeout`` elapses. Keeping the text here means one
edit changes every platform; adapters only wrap these strings in their own markup.

No imports from ``gateway.platforms.base`` or ``gateway.run`` â€” both import this module.
é    )Úannotationsz0Hermes wants to run a command that needs your OKzWhy it was flaggedu—   âŒ› Approval timed out after {window} â€” the command was NOT run. Ask me to try again if you still want it, or raise approvals.timeout in config.yaml.c                 ó   — ddl m}   | «       S )zZThe configured ``approvals.timeout`` (default 300s); module attribute so tests can pin it.r   ©Ú_get_approval_timeout)Útools.approval_contextr   r   s    úI/home/ubuntu/.hermes/hermes-agent/gateway/platforms/base_exec_approval.pyÚapproval_timeout_secondsr	      s   € å<Ù Ó"Ð"ó    c                ó   — ddl m}  || «      S )uÁ   Human wording for a timeout (300 â†’ "5 minutes"); one formatter shared with the CLI notice and
    the tool result's ``user_summary`` â€” see ``tools.approval_context.format_approval_window``.r   ©Úformat_approval_window)r   r   )ÚsecondsÚ_shareds     r   r   r      s   € õ IÙ�7ÓÐr
   c                ó    — dt        | «      › d�S )zCThe last line of every approval prompt: doing nothing is a safe no.zIf you don't answer within z it will NOT run.r   ©Ú	timeout_ss    r   Úformat_approval_deadline_liner   %   s   € à(Ô)?À	Ó)JÐ(KÐK\Ð]Ð]r
   c                ó@   — t         j                  t        | «      ¬«      S )N)Úwindow)ÚAPPROVAL_TIMED_OUT_NOTICEÚformatr   r   s    r   Ú format_approval_timed_out_noticer   *   s   € Ü$×+Ñ+Ô3IÈ)Ó3TÐ+ÓUÐUr
   N)ÚreturnÚint)r   r   r   Ústr)r   r   r   r   )
Ú__doc__Ú
__future__r   ÚEA_HEADER_TEXTÚEA_REASON_LABEL_TEXTr   r	   r   r   r   © r
   r   ú<module>r!      s>   ðñ	õ #ð D€Ø+Ð ð[ð ó
#óó^ô
Vr
   