§
    oq'j¯  ã                  ó&   — d Z ddlmZ ddlZd	d„ZdS )
ay  Shared parser helpers used across multiple CLI subcommand builders.

These were module-level helpers in ``hermes_cli/main.py``. They are pulled
into a neutral module so both ``main.py`` and every
``hermes_cli/subcommands/<group>.py`` builder can import them without an
import cycle. ``main.py`` re-exports them for backwards compatibility, so
existing references keep working.
é    )ÚannotationsNÚparserúargparse.ArgumentParserÚreturnÚNonec                óL   — |                       ddt          j        d¬¦  «         dS )zƒAttach the ``--accept-hooks`` flag.

    Shared across every agent subparser so the flag works regardless of CLI
    position.
    z--accept-hooksÚ
store_truezuAuto-approve unseen shell hooks without a TTY prompt (equivalent to HERMES_ACCEPT_HOOKS=1 / hooks_auto_accept: true).)ÚactionÚdefaultÚhelpN)Úadd_argumentÚargparseÚSUPPRESS)r   s    úC/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/_shared.pyÚadd_accept_hooks_flagr      s=   € ð ×ÒØØÝÔ!ðOð ñ ô ð ð ð ó    )r   r   r   r   )Ú__doc__Ú
__future__r   r   r   © r   r   ú<module>r      sJ   ððð ð #Ð "Ð "Ð "Ð "Ð "à €€€ðð ð ð ð ð r   