
    oq'j                    *    d Z ddlmZ ddlmZ d
dZd	S )z``hermes profile`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callablecmd_profiler   returnNonec               @	   |                      dd          }|                    d          }|                     dd           |                     dd	          }|                    d
d           |                     dd          }|                    d
d           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    ddd            |                     d!d"          }|                    d
d#           |                    d$d%dd&           |                     d'd(          }|                    d
d)dd*+           |                    d,dd-            |                    d.dd/           |                    d0dd1           |                    d2d3dd45           |                     d6d7          }|                    d
d8           |                     d9d:          }	|	                    d
d;           |	                    d<dd=           |	                    d>d?d@dAB           |                     dCdD          }
|
                    dEdF           |
                    dGdH           |                     dIdJ          }|                    d
dK           |                    dLdMddN            |                     dOdP          }|                    dQdR           |                    d>dSd@dTB           |                     dUdVdWX          }|                    dYdZ           |                    d>d[d@d\B           |                    d]dd^           |                    d_dd`           |                    d$d%dda           |                     dbdcddX          }|                    d
de           |                    dfddg           |                    d$d%ddh           |                     didj          }|                    d
dk           |                    |l           dS )mz4Attach the ``profile`` subcommand to ``subparsers``.profileu6   Manage profiles — multiple isolated Hermes instances)helpprofile_action)destlistzList all profilesusezSet sticky default profileprofile_namezProfile name (or 'default')createzCreate a new profilez&Profile name (lowercase, alphanumeric)z--clone
store_truez3Copy config.yaml, .env, SOUL.md from active profile)actionr
   z--clone-allz'Full copy of active profile (all state)z--clone-fromSOURCEz.Source profile to clone from (default: active))metavarr
   z
--no-aliaszSkip wrapper script creationz--no-skillszWCreate an empty profile with no bundled skills (opts out of `hermes update` skill sync)z--descriptionNzOne- or two-sentence description of what this profile is good at. Used by the kanban decomposer to route tasks based on role instead of profile name alone. Skip and add later via `hermes profile describe`.)defaultr
   deletezDelete a profilezProfile to deletez-yz--yeszSkip confirmation promptdescribezERead or set a profile's description (used by the kanban orchestrator)?z6Profile to describe (omit + use --all --auto to sweep))nargsr   r
   z--textzHSet description to this exact text (overwrites any existing description)z--autozRAuto-generate description via the auxiliary LLM (uses auxiliary.profile_describer)z--overwritezsWith --auto, replace user-authored descriptions too (default: only fill in missing or previously-auto descriptions)z--allall_missingz7With --auto, run on every profile missing a description)r   r   r
   showzShow profile detailszProfile to showaliaszManage wrapper scriptszProfile namez--removezRemove the wrapper scriptz--name
alias_nameNAMEz)Custom alias name (default: profile name))r   r   r
   renamezRename a profileold_namezCurrent profile namenew_namezNew profile nameexportzExport a profile to archivezProfile to exportz-oz--outputz$Output file (default: <name>.tar.gz)importzImport a profile from archivearchivezPath to .tar.gz archiveimport_namez-Profile name (default: inferred from archive)installz@Install a profile distribution from a git URL or local directoryzInstall a Hermes profile distribution. SOURCE can be a git URL (github.com/user/repo, https://..., git@...) or a local directory containing distribution.yaml at its root.)r
   descriptionsourcez0Distribution source (git URL or local directory)install_namez3Override profile name (default: read from manifest)z--aliasz6Create a shell wrapper alias for the installed profilez--forcezDOverwrite an existing profile of the same name (user data preserved)z"Skip manifest preview confirmationupdatez>Re-pull a distribution and apply updates (user data preserved)zFetch the distribution from its recorded source and overwrite distribution-owned files (SOUL.md, skills/, cron/, mcp.json). User data (memories, sessions, auth, .env) is never touched. config.yaml is preserved unless --force-config is passed.zProfile to updatez--force-configzFAlso overwrite config.yaml (normally preserved to keep user overrides)zSkip confirmationinfozFShow a profile's distribution manifest (version, requirements, source)zProfile to inspect)func)
add_parseradd_subparsersadd_argumentset_defaults)
subparsersr   profile_parserprofile_subparsersprofile_useprofile_createprofile_deleteprofile_describeprofile_showprofile_aliasprofile_renameprofile_exportprofile_importprofile_installprofile_updateprofile_infos                   C/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/profile.pybuild_profile_parserrA      s   
  **E +  N (66<L6MM!!&/B!CCC$//0 0  K ^2OPPP'22- 3  N E      B     
 6     
 =     
 \0N      f     
 X      (228BT2UUN5HIIIgl1K      *44T 5   !!E	 "    !!W "   
 !!2 "    !!@ "    !!F	 "    &00>T0UULn3DEEE&11. 2  M ~NCCC<.I     8	     (228BT2UUN
1GHHH
1CDDD'224 3  N 5HIIIj$-S      (226 3  N 	0IJJJ<	      )33OB	 4  O   ? !      ~vB !      ,E !      ,S !      gl1 !   
 (22MH	 3 	 	N 5HIIIU      gl      
 &00U 1  L n3GHHH[11111    N)r   r   r   r   )__doc__
__future__r   typingr   rA    rB   r@   <module>rG      sY     # " " " " "      2 2 2 2 2 2rB   