+
    jHàj«b  ã                   ó(  a € R t0 t R t^ RIt^ RIt^ RIt^ RIHt RR.t] ^ k ]! 0 Rm4      t	] ^k ]! RR04      t
] ^k R R lt]! ^R7      R R	 l4       tR
 R ltR tRtR R ltR R ltR R ltR R lt ! R R]P(                  4      tR tR# )u*  Top-level argparse construction for the hermes CLI.

Only the top-level parser and the ``chat`` subparser live here. Every other subparser (model,
gateway, sessions, â€¦) is built by ``hermes_cli/subcommands/<group>.py`` and wired in
``main._build_cli_parser`` with its ``cmd_*`` handler injected.
N)Ú	lru_cacheú-cú
--continuec                ó$   € V ^8„  d   QhR\         /# ©é   Úreturn©Ústr)Úformats   "Ú7/home/ubuntu/.hermes/hermes-agent/hermes_cli/_parser.pyÚ__annotate__r      s   € ÷ 
Kñ 
K”3ñ 
Kó    c                 ó2   € ^ RI Hp Hp V ! V! 4       4       R2# )aÂ  ``~/.hermes/config.yaml`` spelled for the active profile, for help text.

``main._apply_profile_override`` builds this parser (via ``top_level_value_flag_sets``) BEFORE
it re-homes the process to the sticky ``active_profile``; ``get_hermes_home()`` would emit the
"[HERMES_HOME fallback] ... wrong profile" warning on every ``hermes`` command for that
throwaway help string. Read the process home directly: after the override it IS the profile home.
©Údisplay_hermes_homeÚget_process_hermes_homez/config.yaml)Úhermes_constantsr   r   r   s     r   Ú	_cfg_pathr      s   € ÷ Ná!Ñ"9Ó";Ó<Ð=¸\ÐJÐJr   )Úmaxsizec                ór   € V ^8„  d   QhR\         \        \        ,          \        \        ,          3,          /# r   )ÚtupleÚ	frozensetr
   )r   s   "r   r   r   +   s(   € ÷ Eñ E¤5¬´3­¼Ä3½Ð)GÕ#Hñ Er   c                 ó„  €  \        4       ^ ,          p \        4       p\        4       pV P                   FX  pVP                  '       d   VP                  ^ 8X  d   K(  VP                  R8X  d   TMTpVP                  VP                  4       KZ  	  \        V4      \        V4      3#   \         d    \        \        3u # i ; i)uG  (required-value, optional-value) top-level flags, derived from the REAL parser.

Introspects ``build_top_level_parser()`` (every option with nargs != 0) so the argv scanners in
``main.py`` (``_first_positional_argv``, ``_apply_profile_override``) can never drift from the
argparse surface â€” the drift that made ``hermes --reasoning high chat â€¦`` misread ``high`` as
the subcommand and forced eager plugin discovery.

Mirrors the ``update_cmd._holder_value_flags`` precedent, including the handwritten-snapshot fallback
for a broken parser import. Cached per process. See #93530.
Ú?)
Úbuild_top_level_parserÚsetÚ_actionsÚoption_stringsÚnargsÚupdater   Ú	ExceptionÚ_VALUE_FLAGS_FALLBACKÚ_OPTIONAL_VALUE_FLAGS_FALLBACK)ÚparserÚrequiredÚoptionalÚactionÚtargets        r   Útop_level_value_flag_setsr)   *   s£   € ðEÜ'Ó)¨!Õ,ˆÜ ›UˆÜ ›UˆØ—o”oˆFØ×(×(Ð(¨F¯L©L¸AÔ,=ÙØ!'§¡°Ô!4‘X¸(ˆFØ�M‰M˜&×/Ñ/Ö0ñ	 &ô
 ˜Ó"¤I¨hÓ$7Ð7Ð7øÜô EÜ$Ô&DÐDÒDðEús   ‚B"B% Â%B?Â>B?c                ó\   € V ^8„  d   QhR\         \        ,          R\         \        ,          /# )r   Úargvr   )Úlistr
   )r   s   "r   r   r   D   s"   € ÷ ñ ”tœC•yð ¤T¬#¥Yñ r   c                ó|  € \        4       w  rW,          \         UUu0 uF  w  r4V'       g   K  VkK  	  upp,          p^ pV\        V 4      8  dg   W,          pVR8X  d   W^,           R # VP                  R4      '       g   WR # TRV9  d    Wu9   d   V^,           \        V 4      8  d   ^M^,          pKv  . # u uppi )zISubcommand and its arguments, excluding top-level flags and their values.z--NÚ-Ú=)r)   ÚPRE_ARGPARSE_INHERITED_FLAGSÚlenÚ
startswith)r+   r%   r&   ÚflagÚtakes_valueÚvalue_flagsÚiÚtokens   &       r   Úcommand_argvr8   D   s­   € ä2Ó4Ñ€HØÕ%ÕGcÔ(sÑGcÑ2C°$Ôgr¯¨ÑGcÒ(sÕs€KØ	€AØ
Œc�$‹iŒ-Ø•ˆØ�DŒ=Ø˜A�˜�<ÐØ×Ñ ×$Ò$Ø˜�8ˆOØ	�#˜UÔ" uÔ';ÀÀAÅÌÈDË	Ô@Q‰QÐWXÕXŠØ€Iùó )ts
   �B8®B8c                ó8   € V P                   ! V/ VB pRVn        V# )z]``parser.add_argument`` + tag the Action ``inherit_on_relaunch`` for ``hermes_cli.relaunch``.T)Úadd_argumentÚinherit_on_relaunch)r$   ÚargsÚkwargsr'   s   &*, r   Ú_inherited_flagr>   S   s$   € à× Ò  $Ð1¨&Ñ1€FØ!%€FÔØ€Mr   u[  
Examples:
    hermes                        Start interactive chat
    hermes chat -q "Hello"        Single query mode
    hermes --tui                  Launch the modern TUI (or set display.interface: tui)
    hermes --cli                  Force the classic REPL (overrides display.interface: tui)
    hermes -c                     Resume the most recent session
    hermes -c "my project"        Resume a session by name (latest in lineage)
    hermes --resume <session_id>  Resume a specific session by ID
    hermes --resume latest        Resume the most recent session (same as -c)
    hermes --tui --resume latest --in ./dir   Resume ./dir's latest session in the TUI
    hermes setup                  Run setup wizard
    hermes logout                 Clear stored authentication
    hermes auth add <provider>    Add a pooled credential
    hermes auth list              List pooled credentials
    hermes auth remove <p> <t>    Remove pooled credential by index, id, or label
    hermes auth reset <p> [t]     Clear exhaustion status for a provider, or one credential
    hermes auth priority <p> <t> <n>  Move a pooled credential to priority n (0 = tried first)
    hermes auth refresh <p> [t]   Refresh a pooled OAuth credential and clear its cooldown
    hermes model                  Select default model
    hermes fallback [list]        Show fallback provider chain
    hermes fallback add           Add a fallback provider (same picker as `hermes model`)
    hermes fallback remove        Remove a fallback provider from the chain
    hermes config                 View configuration
    hermes config edit            Edit config in $EDITOR
    hermes config set model gpt-4 Set a config value
    hermes gateway                Run messaging gateway
    hermes gateway install        Install gateway background service
    hermes gateway start          Start the installed gateway service
    hermes gateway stop           Stop the gateway service
    hermes gateway status         Show gateway status
    hermes -p <profile> <cmd>     Run any command against a named profile's
                                  home (also --profile) â€” e.g. hermes -p coder gateway stop
    hermes -s hermes-agent-dev,github-auth
    hermes -w                     Start in isolated git worktree
    hermes sessions list          List past sessions
    hermes sessions browse        Interactive session picker
    hermes sessions rename ID T   Rename/title a session
    hermes logs                   View agent.log (last 50 lines)
    hermes logs -f                Follow agent.log in real time
    hermes logs errors            View errors.log
    hermes logs --since 1h        Lines from the last hour
    hermes debug share             Upload debug report for support
    hermes console                Open the safe Hermes command console
    hermes update                 Update to latest version
    hermes dashboard              Start web UI dashboard (port 9119)
    hermes dashboard --stop       Stop running dashboard processes
    hermes dashboard --status     List running dashboard processes

For more help on a command:
    hermes <command> --help
c                ó<   € V ^8„  d   QhR\         P                  RR/# )r   r$   r   N©ÚargparseÚArgumentParser)r   s   "r   r   r   �   s(   € ÷ GSñ GS¤×!8Ñ!8ð GS¸Tñ GSr   c                ó´  € V P                   \        r!V! RRRRR7       V! RRRR	R
R7       V! RRR	RR7       V! V RRR	RR7       V! V RR	RR7       V! V RR	RRR7       V! RRR	RR7       V! RRRR	RR7       V! R RR!R"R#7       V! R$R%R&R	R'R(7       V! R)R*R+R,R-R	R.R/R07       V! R1R2RR!R3R#7       V! V R4RR!R5R#7       V! V R6R7R8R	R9R#7       V! V R:RR!R;R#7       V! V R<RR!R=R#7       V! V R>RR!R?R#7       V! V R@RR!RA\        4        RB2R#7       V! V RCRR!RDR#7       V! V RERR!RFR#7       V! V RGRR!RHR#7       V! V RIRJRKRR!RLRM7       V! V RNRR!ROR#7       V! V RPRQRR!RRRM7       R	# )SzVTop-level (pre-subcommand) flags; ``-m/--provider`` pair with ``-z`` without ``chat``.z	--versionz-VÚ
store_truezShow version and exit©r'   Úhelpú-zú	--oneshotÚPROMPTNa  One-shot mode: send a single prompt and print ONLY the final response text to stdout. No banner, no spinner, no tool previews, no session_id line. Tools, memory, rules, and AGENTS.md in the CWD are loaded as normal; approvals are auto-bypassed. Intended for scripts / pipes.©ÚmetavarÚdefaultrF   ú--usage-fileÚPATHzðOne-shot mode only: after the run, write a JSON usage report (estimated cost, token counts, model, api_calls) to PATH. The report is written even when the run fails, so pipelines can always account for spend. No effect outside -z/--oneshot.ú-mú--modelz›Model override for this invocation (e.g. anthropic/claude-sonnet-4.6). Applies to -z/--oneshot and --tui. Also settable via HERMES_INFERENCE_MODEL env var.©rL   rF   ú
--provideruÞ   Provider override for this invocation (e.g. openrouter, anthropic). Applies to -z/--oneshot and --tui. The persistent provider lives in config.yaml under model.provider â€” use `hermes setup` or edit the file to change it.ú--reasoningÚLEVELzñReasoning effort for this invocation: none, minimal, low, medium, high, xhigh, max, or ultra. Overrides agent.reasoning_effort in config.yaml for this run only; the persistent level lives there (or per-model under agent.reasoning_overrides).©rL   rK   rF   ú-tú
--toolsetszZComma-separated toolsets to enable for this invocation. Applies to -z/--oneshot and --tui.ú--resumeú-rÚSESSIONzResume a previous session by ID or title, or pass 'latest' for the most recent session (workspace-scoped, like -c with no name)ú--no-restore-cwdFú=Don't cd into a resumed session's recorded working directory.©r'   rL   rF   ú--inÚin_dirÚDIRzÉChange into DIR before starting or resuming. Combined with '--resume latest' or -c, the most recent session for DIR's workspace is picked, and the session stays in DIR (skips the recorded-cwd restore).©ÚdestrK   rL   rF   r   r   Úcontinue_lastr   TÚSESSION_NAMEú=Resume a session by name, or the most recent if no name given©rb   r   ÚconstrL   rK   rF   ú
--worktreeú-wz5Run in an isolated git worktree (for parallel agents)ú--accept-hookszÏAuto-approve any unseen shell hooks declared in config.yaml without a TTY prompt.  Equivalent to HERMES_ACCEPT_HOOKS=1 or hooks_auto_accept: true in config.yaml.  Use on CI / headless runs that can't prompt.ú--skillsú-sÚappendúJPreload one or more skills for the session (repeat flag or comma-separate)ú--yoloúDBypass all dangerous command approval prompts (use at your own risk)ú--pass-session-idú3Include the session ID in the agent's system promptú--checkpointsú[Enable filesystem checkpoints before destructive file operations (use /rollback to restore)ú--ignore-user-configúIgnore zJ and fall back to built-in defaults (credentials in .env are still loaded)ú--ignore-ruleszUSkip auto-injection of AGENTS.md, SOUL.md, .cursorrules, memory, and preloaded skillsú--safe-modeu¨   Troubleshooting mode: disable ALL customizations â€” user config, AGENTS.md/memory injection, plugins, and MCP servers (implies --ignore-user-config and --ignore-rules)ú--tuiú1Launch the modern TUI instead of the classic REPLú--nativeú--tui-nativeÚ
tui_nativezEWith --tui: use native terminal scrollback and disable mouse tracking©rb   r'   rL   rF   ú--cliúGForce the classic prompt_toolkit REPL (overrides display.interface=tui)ú--devÚtui_devú<With --tui: run TypeScript sources via tsx (skip dist build))r:   r>   r   )r$   ÚaddÚ	inheriteds   &  r   Ú_add_top_level_flagsr†   �   s'  € à×(Ñ(¬/ˆÙˆ�T ,Ð5LÕMÙˆˆk 8°Tð	7õ9ñ ˆ °ð	HõJñ ˆf�d˜I¨tð	_õañ ˆf�l¨Dð	UõWñ ˆf�m¨T¸7ð	:õ<ñ
 ˆˆl DØiõkáˆ
�D )°Tð	KõMñ Ð <¸ØLõNáˆ�X u°dð	!õ#ñ
 ˆ�d ¸À4ÐQUØÐ%dõfáˆ�d <¸ØDõFáˆfÐ&¨|ÀUð	"õ$ñ
 ˆf�j $¨xÀØ_õaáˆf�h |¸UØYõ[áˆfÐ)°,ÈØHõJáˆf�o¨lÀEØpõráˆfÐ,°\È5ØœY›[˜MÐ)sÐtõváˆfÐ&¨|ÀUØjõláˆf�m¨LÀ%ð ~õáˆf�g l¸EØFõHáˆf�j .°|ÈLÐbgØZõ\áˆf�g l¸EØ\õ^áˆf�g I°lÈEØQ÷Sr   c                ó8   € V ^8„  d   QhR\         P                  /# r   r@   )r   s   "r   r   r   Ú   s   € ÷ mñ m¤h×&=Ñ&=ñ mr   c                óH  € V P                  RRRR7      pVP                  \        \        P                  rCpVP                  4       pVP                  RRRR7       VP                  R	R
RR7       V! RRRRRR7       V! RRR7       V! VRRVRR7       V! RRVRR7       V! VRVRRR7       V! VR R!R"VR#R$7       V! VR%VR&R7       V! R'R(VR)R*R+7       V! R,R-VR.R/R+7       V! R0R1RVR2R$7       V! R3R4RR5R67       V! R7R8R9.R8R:R;R<7       V! R=R>R?VR@RA7       V! RBRVRCR$7       V! RDRERFVRGRH7       V! RIRJRKRLRMVRNRORP7       V! RQRVRRR$7       V! RSRTRVRUR$7       V! VRVRVRWR$7       V! VRXRVRYR$7       V! RZ\        R[R\R]R^7       V! R_\        R[R`RaRbRc7       V! VRdRVReR$7       V! VRfRVRgR$7       V! VRhRVRi\        4        Rj2R$7       V! VRkRVRlR$7       V! VRmRVRnR$7       V! RoR[RpR7       V! VRqRVRrR$7       V! VRsRtRuRVRvR7       V! VRwRVRxR$7       V! VRyRzRVR{R7       V# )|u  The ``chat`` subparser (also the implicit default command).

Flags ALSO declared on the top-level parser use ``default=argparse.SUPPRESS``: for
``hermes -m foo chat`` argparse first sets ``args.model`` from the top-level parser, then
dispatches to the chat subparser, which shares the namespace and ``dest`` â€” a plain ``None``
default would silently clobber the top-level value. SUPPRESS keeps the subparser action a no-op
unless the flag is actually passed after the subcommand (tests/hermes_cli/
test_argparse_flag_propagation.py).
ÚchatzInteractive chat with the agentz3Start an interactive chat session with Hermes Agent)rF   Údescriptionz-qz--queryz²Query to run. On a real TTY the prompt seeds an interactive session (submitted literally as the first turn); combined with --oneshot or -Q, or on a non-TTY, it answers and exits.)rF   z--query-filerN   zÜRead the single query from a file instead of the command line ('-' reads stdin). Safe for arbitrary text: nothing is shell-interpreted, so quotes, $(...), and backticks are preserved verbatim. Mutually exclusive with -q.)rK   rF   rH   Úoneshot_exitrD   Fz¥With -q/--query-file: answer the query and exit (legacy single-query behavior) instead of seeding an interactive session. Implied on non-TTY stdio and by -Q/--quiet.r~   z--imagez5Optional local image path to attach to a single queryrO   rP   z.Model to use (e.g., anthropic/claude-sonnet-4)rQ   rV   rW   z"Comma-separated toolsets to enablerS   rT   z¼Reasoning effort for this session: none, minimal, low, medium, high, xhigh, max, or ultra. Overrides agent.reasoning_effort for this run only (same levels as the /reasoning slash command).rU   rl   rk   rm   rn   r]   rR   zeInference provider (default: auto). Built-in or a user-defined name from `providers:` in config.yaml.z
--base-urlÚbase_urlÚURLzQOpenAI-compatible endpoint for --provider custom (e.g. http://127.0.0.1:8000/v1).)rb   rL   rK   rF   z	--api-keyÚapi_keyÚKEYz,API key for this launch only; not persisted.z-vz	--verbosezVerbose outputz-Qz--quietz~Quiet mode for programmatic use: suppress banner, spinner, and tool previews. Only output the final response and session info.rE   z--formatÚtextzstream-jsonÚoutput_formatzÒOutput format for single-query mode (-q). 'text' prints the final response as plain text (default). 'stream-json' emits newline-delimited JSON events (JSONL), implies --quiet, and cannot be combined with --tui.)ÚchoicesrL   rb   rF   rX   rY   Ú
SESSION_IDzXResume a previous session by ID (shown on exit), or 'latest' for the most recent sessionrJ   r[   r\   r^   r_   r`   zgChange into DIR before starting or resuming (scopes '--resume latest' / -c lookups to DIR's workspace).ra   r   r   rc   r   Trd   re   rf   z--create-if-missingzéWith -c/--continue <name>: if no session matches the name, create a new session with that title and proceed (instead of failing with a not-found error). Programmatic callers that want 'send to this named thread, making it if needed'.rh   ri   zFRun in an isolated git worktree (for parallel agents on the same repo)rj   zžAuto-approve any unseen shell hooks declared in config.yaml without a TTY prompt (see also HERMES_ACCEPT_HOOKS env var and hooks_auto_accept: in config.yaml).rs   rt   z--max-turnsNÚNzbMaximum tool-calling iterations per conversation turn (default: 500, or agent.max_turns in config))ÚtyperL   rK   rF   z--run-budgetÚSECONDSÚ
run_budgetaq  Optional wall-clock budget in seconds for each conversation run. At 80%% elapsed the agent gets a one-time wrap-up notice, and implicit provider stale timeouts are capped to the remaining budget so one hung call can't consume the run. Unset = off. Also configurable as agent.run_budget_seconds in config.yaml. Intended for one-shot/eval invocations with a hard ceiling.)r•   rL   rK   rb   rF   ro   rp   rq   rr   ru   rv   z” and fall back to built-in defaults (credentials in .env are still loaded). Useful for isolated CI runs, reproduction, and third-party integrations.rw   z’Skip auto-injection of AGENTS.md, SOUL.md, .cursorrules, memory, and preloaded skills. Combine with --ignore-user-config for a fully isolated run.rx   u÷   Troubleshooting mode: disable ALL customizations â€” user config, AGENTS.md/memory injection, plugins, and MCP servers (implies --ignore-user-config and --ignore-rules). Use to isolate whether a problem comes from your setup or from Hermes itself.z--sourcez†Session source tag for filtering (default: cli). Use 'tool' for third-party integrations that should not appear in user session lists.ry   rz   r{   r|   r}   z9Use native terminal scrollback and disable mouse trackingr   r€   r�   r‚   rƒ   )	Ú
add_parserr:   r>   rA   ÚSUPPRESSÚadd_mutually_exclusive_groupÚintÚfloatr   )Ú
subparsersÚchat_parserr„   r…   r™   Ú_query_groups   &     r   Ú_build_chat_parserr    Ú   sU  € ð ×'Ñ'ØÐ6ØIð (ó K€Kð  +×7Ñ7¼Ì(×J[ÑJ[�H€CØ×;Ñ;Ó=€LØ×Ñ˜d Ið	Bð ô Dð ×Ñ˜n°fð	0ð ô 2ñ ˆ˜.°Àuð	?õAñ ˆ	ÐOÕPÙˆk˜4 °HØCõEáˆˆl HÐ3WÕXÙˆk˜=°(ÀGð	GõIñ ˆk˜4 °HÀhØ_õañ ˆk˜<°Øzõ|ñ ˆ˜:¨xÀØ`õbáˆ˜)¨X¸uØ;õ=áˆˆk ,¸ÐGWÕXÙˆˆi ð NõOáˆ
˜V ]Ð3¸VÈ/ð	yõ{ñ ˆ
�D ,¸ð	&õ(ñ Ð <¸ØLõNáˆ�X u°hð	>õ@ñ ˆ�d ¸À4ÐQYØÐ%dõfáÐ l¸Hð	AõCñ
 ˆ�d <¸ØUõWáˆkÐ+°LÈ(ð	.õ0ñ ˆk˜?°<ÈØpõráˆœC¨°sØqõsáˆœU¨D¸)È,ð	FõHñ ˆk˜8¨LÀ(ØYõ[áˆkÐ.°|ÈXØHõJáˆkÐ1¸,ÐPXØœY›[˜Mð  *~ð  õ@áˆkÐ+°LÈ(ð hõiáˆk˜=°Àxð MõNáˆ
˜Dð VõWáˆk˜7¨<ÀØFõHáˆk˜: ~¸LÐQ]ÐgoØNõPáˆk˜7¨<ÀØ\õ^áˆk˜7¨¸<ÐQYØQõSàÐr   c                ó0   € V ^8„  d   QhR\         R\         /# )r   ÚprogÚvaluer	   )r   s   "r   r   r   J  s   € ÷ ñ ¤sð ´3ñ r   c                ó¸   € V R8w  g   \         P                  ! RV4      '       g   R#  ^ RIHp V! V4      e   R# ^ RIHp V! VRR7      #   \         d     R# i ; i)z·Install command when *value* names a catalog memory plugin that resolves nowhere: its
``hermes <name>`` command exists only once the plugin is installed. Top level only; never raises.Úhermesz[a-z0-9_-]{1,64}N)Úfind_provider_dir)Úcatalog_install_hintÚmemory)Úcategory)ÚreÚ	fullmatchÚplugins.memoryr¦   Ú$hermes_cli.memory_provider_migrationr§   r!   )r¢   r£   r¦   r§   s   &&  r   Ú_plugin_command_install_hintr®   J  sX   € ð ˆxÔœrŸ|š|Ð,?À×GÒGÙðÝ4Ù˜UÓ#Ò/ÙÝMÙ# E°HÔ=Ð=øÜô Úðús   ¨A
 ºA
 Á
AÁAc                ó<   € V ^8„  d   QhR\         R\         R\         /# )r   r¢   r£   r   r	   )r   s   "r   r   r   Y  s!   € ÷ +ñ +œcð +¬#ð +´#ñ +r   c                ó   € ^ RI Hp V! W4      # )zYWhere a command that left core went (``hermes auth spotify``, ``hermes mcp serve``, ...).)Úmoved_command_hint)Úhermes_cli.left_core_migrationr±   )r¢   r£   r±   s   && r   Ú_moved_command_hintr³   Y  s   € åAÙ˜dÓ*Ð*r   c                   ó6   a a€ ] tR tRt oRtV 3R ltRtVtV ;t# )ÚHermesArgumentParseri_  u~  argparse parser whose unknown-subcommand error is three short lines, not a 70-name dump.

Stock argparse prints the full usage block plus ``(choose from 'chat', 'model', â€¦)`` when
the first positional is not a registered subcommand. That buries the only useful fact
(the word is not a command) and offers no closest match. Every other error keeps the
stock usage + message shape.
c                ó   <€ \        V\        P                  4      '       Ed]   W!P                  9  EdL   V P                   R V RV P                   R2.p\
        P                  ! \        V4      \        VP                  4      ^RR7      p\        V P                  \        V4      4      pV'       d   RM\        V P                  \        V4      4      pV'       d   VP                  RV RV 24       MFV'       d   VP                  V4       M,V'       d%   VP                  RR	P                  V4       R
24       VP                  RV P                   R24       V P                  ^RP                  V4      R,           4       \        SV `=  W4       R# )z: 'z' is not a `z
` command.g333333ã?)ÚnÚcutoffÚ zThe 'z3' memory plugin is not installed. Install it with: zDid you mean: z, r   zRun `z --help` to see all commands.Ú
N)Ú
isinstancerA   Ú_SubParsersActionr’   r¢   ÚdifflibÚget_close_matchesr
   r,   r®   r³   rm   ÚjoinÚexitÚsuperÚ_check_value)Úselfr'   r£   ÚlinesÚcloseÚinstallÚmovedÚ	__class__s   &&&    €r   rÂ   Ú!HermesArgumentParser._check_valueh  s)  ø€ Ü�fœh×8Ñ8×9Ó9¸eÏ>É>Õ>Yð Ÿ	™	�{ # e W¨L¸¿¹¸À:ÐNÐOˆEÜ×-Ò-¬c°%«j¼$¸v¿~¹~Ó:NÐRSÐ\_Ô`ˆEÜ2°4·9±9¼cÀ%»jÓIˆGß!‘BÔ':¸4¿9¹9ÄcÈ%ÃjÓ'QˆEßà—‘˜u U GÐ+^Ð_fÐ^gÐhÕißØ—‘˜UÕ#ßØ—‘˜~¨d¯i©i¸Ó.>Ð-?¸qÐAÔBØ�L‰L˜5 §¡ Ð+HÐIÔJØ�I‰I�a˜Ÿ™ 5Ó)¨DÕ0Ô1Ü‰Ñ˜VÖ+r   © )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rÂ   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)rÈ   Ú__classdict__s   @@r   rµ   rµ   _  s   ù‡ € ñ÷,õ ,r   rµ   c                 óœ   € \        RR\        P                  \        R7      p \	        V 4       V P                  RRRR7      pW\        V4      3# )a  Build the top-level parser, the subparsers action, and the ``chat`` subparser.

Returns ``(parser, subparsers, chat_parser)``; the caller wires
``chat_parser.set_defaults(func= cmd_chat)`` and registers further subparsers via
``subparsers.add_parser(...)``.
r¥   z:Hermes Agent - AI assistant with tool-calling capabilities)r¢   rŠ   Úformatter_classÚepilogÚcommandzCommand to runz	<command>)rb   rF   rK   )rµ   rA   ÚRawDescriptionHelpFormatterÚ	_EPILOGUEr†   Úadd_subparsersr    )r$   r�   s     r   r   r   |  sV   € ô "ØÐ#_Ü ×<Ñ<ÄYôP€Fô ˜Ô ð ×&Ñ&¨IÐ<LÐVaÐ&Ób€JØÔ1°*Ó=Ð=Ð=r   c                óô   € V ^8„  d   Qh/ ^ \         9   d&   \        \        \        \        3,          ,          ;R&   ^\         9   d   \
        \        ,          ;R&   ^\         9   d   \
        \        ,          ;R&   # )r   r0   r"   r#   )Ú__conditional_annotations__r,   r   r
   Úboolr   )r   s   "r   r   r      s^   € ÷ ñ ÷ [Ò Zœd¤5¬¬d¨Õ#3Õ4Ñ Zñ÷*ò ”y¤•~ñ ñ+÷2 QÒ P¤	¬#¥Ñ Pò3r   )z	--profileT)z-pT>   rO   rY   rl   rV   rG   r^   rP   rX   rk   rH   rR   rW   rS   rM   )rÜ   rÏ   rA   r½   rª   Ú	functoolsr   r0   r   r"   r#   r   r)   r8   r>   rÙ   r†   r    r®   r³   rB   rµ   r   r   )rÜ   s   @r   Ú<module>rß      s¹   øðöó Û Û 	Ý ð
 9LÈ\Ð7ZÐ Ó Zñ )2ò 3ó )Ð ó ñ 2;¸DÀ,Ð;OÓ1PÐ Ó Põ
Kñ �1ÔôEó ðEõ2òð3€	õlGSõTmõ`õ+ô,˜8×2Ñ2ô ,ô:>r   