§
    oq'j¾  ã                  ó*   — d Z ddlmZ ddlmZ d
d„Zd	S )z ``hermes security`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
é    )Úannotations)ÚCallableÚcmd_securityr   ÚreturnÚNonec               óâ  — |                       ddd¬¦  «        }|                     dd¬¦  «        }|                      dd	d
¬¦  «        }|                     ddd¬¦  «         |                     ddg d¢d¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     |¬¦  «         |                     |¬¦  «         dS )z5Attach the ``security`` subcommand to ``subparsers``.Úsecurityz?Supply-chain audit (OSV.dev) for venv, plugins, and MCP serversa  On-demand vulnerability scan against OSV.dev. Covers the Hermes venv (installed PyPI dists), Python deps declared by plugins under ~/.hermes/plugins/, and pinned npx/uvx MCP servers in config.yaml. Does NOT scan globally-installed packages or editor/browser extensions.)ÚhelpÚdescriptionÚsecurity_commandz<subcommand>)ÚdestÚmetavarÚauditz!Run a one-shot supply-chain auditz@Query OSV.dev for known vulnerabilities in installed components.z--jsonÚ
store_truez9Emit machine-readable JSON instead of human-readable text)Úactionr
   z	--fail-onÚcritical)ÚlowÚmoderateÚhighr   zFExit non-zero when any finding meets this severity (default: critical))ÚdefaultÚchoicesr
   z--skip-venvz$Skip scanning the Hermes Python venvz--skip-pluginsz'Skip scanning plugin requirements filesz
--skip-mcpz/Skip scanning pinned MCP servers in config.yaml)ÚfuncN)Ú
add_parserÚadd_subparsersÚadd_argumentÚset_defaults)Ú
subparsersr   Úsecurity_parserÚsecurity_subparsersÚaudit_parsers        úD/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/security.pyÚbuild_security_parserr"      sy  € ð !×+Ò+ØØNðVð	 ,ñ 	ô 	€Oð *×8Ò8ØØð 9ñ ô Ðð
 '×1Ò1ØØ0ØVð 2ñ ô €Lð
 ×ÒØØØHð ñ ô ð ð
 ×ÒØØØ7Ð7Ð7ØUð	 ñ ô ð ð ×ÒØØØ3ð ñ ô ð ð
 ×ÒØØØ6ð ñ ô ð ð
 ×ÒØØØ>ð ñ ô ð ð
 ×Ò <ÐÑ0Ô0Ð0Ø× Ò  lÐ Ñ3Ô3Ð3Ð3Ð3ó    N)r   r   r   r   )Ú__doc__Ú
__future__r   Útypingr   r"   © r#   r!   ú<module>r(      sS   ððð ð #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð ð24ð 24ð 24ð 24ð 24ð 24r#   