+
    jHàjÚ  ã                  ó.   € R t ^ RIHt ^ RIHt R R ltR# )z#``hermes hooks`` subcommand parser.)Úannotations)ÚCallablec               ó    € V ^8„  d   QhRRRR/# )é   Ú	cmd_hooksr   ÚreturnÚNone© )Úformats   "ÚA/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/hooks.pyÚ__annotate__r      s   € ÷ %.ñ %.°ð %.¸dñ %.ó    c               ó¸  € V P                  RRRR7      pVP                  RR7      pVP                  RR.R	R
7       VP                  RRR7      pVP                  RRR7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRR.RR
7      pVP                  RRR7       VP                  RRR7       VP                  VR 7       R# )!z2Attach the ``hooks`` subcommand to ``subparsers``.Úhooksz%Inspect and manage shell-script hooksz·Inspect shell-script hooks declared in ~/.hermes/config.yaml, test them against synthetic payloads, and manage the first-use consent allowlist at ~/.hermes/shell-hooks-allowlist.json.)ÚhelpÚdescriptionÚhooks_action)ÚdestÚlistÚlsz?List configured hooks with matcher, timeout, and consent status)Úaliasesr   Útestz<Fire every hook matching <event> against a synthetic payload)r   ÚeventzAHook event name (e.g. pre_tool_call, pre_llm_call, subagent_stop)z
--for-toolÚfor_toolNz^Only fire hooks whose matcher matches this tool name (used for pre_tool_call / post_tool_call))r   Údefaultr   z--payload-fileÚpayload_filezYPath to a JSON file whose contents are merged into the synthetic payload before executionÚrevokeÚremoveÚrmzYRemove a command's allowlist entries (a running gateway drops it within about 30 seconds)Úcommandz?The exact command string to revoke (as declared in config.yaml)ÚdoctorzeCheck each configured hook: exec bit, allowlist, mtime drift, JSON validity, and synthetic run timing)Úfunc)Ú
add_parserÚadd_subparsersÚadd_argumentÚset_defaults)Ú
subparsersr   Úhooks_parserÚhooks_subparsersÚ_hk_testÚ
_hk_revokes   &$    r   Úbuild_hooks_parserr+      sA  € à×(Ñ(ØÐ=ðIð )ó J€Lð
 $×2Ñ2¸Ð2ÓGÐà×ÑØ˜˜ØNð  ô Pð  ×*Ñ*ØÐSð +ó U€Hà×ÑØÐYð ô [à×ÑØ˜:¨tð8ð ô 9ð ×ÑØ˜~°tð1ð ô 2ð
 "×,Ñ,Ø˜8 TÐ*Øhð -ó j€Jð ×ÑØÐYð ô [ð ×ÑØð6ð  ô 7ð
 ×Ñ 9ÐÖ-r   N)Ú__doc__Ú
__future__r   Útypingr   r+   r	   r   r   Ú<module>r/      s   ðÙ )å "å ÷%.r   