
    `gj                    (    d Z ddlmZ ddlmZ ddZy)z``hermes security`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callablec                  | j                  ddd      }|j                  dd      }|j                  dd	d
      }|j                  ddd       |j                  ddg dd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  |       |j                  |       y)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)
subparserscmd_securitysecurity_parsersecurity_subparsersaudit_parsers        R/root/.hermes/venv/lib/python3.12/site-packages/hermes_cli/subcommands/security.pybuild_security_parserr       s     !++NV	 , 	O *88 9 
 '110V 2 L
 H  
 7U	   3  
 6  
 >  
 <0  l 3    N)r   r   returnNone)__doc__
__future__r   typingr   r     r!   r   <module>r(      s    # 24r!   