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

Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).
Handler injected to avoid importing ``main``.
    )annotations)Callablec                  | j                  ddd      }|j                  d      }|j                  ddd	      }|j                  d
d       |j                  ddd       |j                  dddgdd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  dd       |j                  dg dd d!       |j                  d"d#dd$       |j                  d%d&gd'd()      }|j                  d
d*       |j                  ddd+       |j                  d"d#dd$       |j                  |,       y-).z1Attach the ``claw`` subcommand to ``subparsers``.clawzOpenClaw migration toolszHMigrate settings, memories, skills, and API keys from OpenClaw to Hermes)helpdescriptionclaw_action)destmigratezMigrate from OpenClaw to Hermesz|Import settings, memories, skills, and API keys from an OpenClaw installation. Always shows a preview before making changes.z--sourcez1Path to OpenClaw directory (default: ~/.openclaw))r   z	--dry-run
store_trueu:   Preview only — stop after showing what would be migrated)actionr   z--presetz	user-datafullup   Migration preset (default: full). Neither preset imports secrets — pass --migrate-secrets to include API keys.)choicesdefaultr   z--overwritezOOverwrite existing files (default: refuse to apply when the plan has conflicts)z--migrate-secretszdInclude allowlisted secrets (TELEGRAM_BOT_TOKEN, API keys, etc.). Required even under --preset full.z--no-backupzSkip the pre-migration zip snapshot of ~/.hermes/ (by default a single restore-point archive is written to ~/.hermes/backups/ before apply; restorable with 'hermes import').z--workspace-targetz1Absolute path to copy workspace instructions intoz--skill-conflict)skip	overwriterenamer   z2How to handle skill name conflicts (default: skip)z--yesz-yzSkip confirmation promptscleanupcleanz5Archive leftover OpenClaw directories after migrationzQScan for and archive leftover OpenClaw directories to prevent state fragmentation)aliasesr   r   z1Path to a specific OpenClaw directory to clean upz5Preview what would be archived without making changes)funcN)
add_parseradd_subparsersadd_argumentset_defaults)
subparserscmd_clawclaw_parserclaw_subparsersclaw_migrateclaw_cleanups         N/root/.hermes/venv/lib/python3.12/site-packages/hermes_cli/subcommands/claw.pybuild_claw_parserr#      s   '''^ ( K
 "00m0DO #--.8 . L L   I  
 f%6	   ^  
 -   :   #V   /A	   l1L  
 #--	Dg	 . L L   D  
 l1L   (+    N)r   r   returnNone)__doc__
__future__r   typingr   r#    r$   r"   <module>r+      s    # P,r$   