From c19fd5c5056e1cfc24136f99cbb04d4797b87137 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 29 Jul 2026 00:54:14 -0700 Subject: [PATCH] fix(cli): wire hermes import-agent parser into main argparse tree The import-agent subcommand (24c3c27ba8) shipped with its parser builder and handler logic but build_import_agent_parser() was never called from main.py, making the documented and unit-tested command uninvocable. Register it alongside the other subcommand builders. --- hermes_cli/main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hermes_cli/main.py b/hermes_cli/main.py index f11b21991f8..ba4730ce71c 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -450,6 +450,7 @@ from hermes_cli.subcommands.dump import build_dump_parser from hermes_cli.subcommands.debug import build_debug_parser from hermes_cli.subcommands.backup import build_backup_parser from hermes_cli.subcommands.import_cmd import build_import_cmd_parser +from hermes_cli.subcommands.import_agent import build_import_agent_parser from hermes_cli.subcommands.config import build_config_parser from hermes_cli.subcommands.skin import build_skin_parser from hermes_cli.subcommands.console import build_console_parser @@ -15425,7 +15426,7 @@ _BUILTIN_SUBCOMMANDS = frozenset( "acp", "approvals", "auth", "backup", "bundles", "checkpoints", "claw", "completion", "computer-use", "config", "console", "cron", "curator", "dashboard", "serve", "debug", "doctor", - "dump", "egress", "fallback", "gateway", "hooks", "import", "insights", + "dump", "egress", "fallback", "gateway", "hooks", "import", "import-agent", "insights", "gui", "desktop", "kanban", "login", "logout", "logs", "lsp", "mcp", "memory", "migrate", "moa", "journey", "memory-graph", "learning", "model", "pairing", "pets", "plugins", "portal", "profile", @@ -16337,6 +16338,15 @@ def main(): # ========================================================================= build_import_cmd_parser(subparsers, cmd_import=cmd_import) + # ========================================================================= + # import-agent command (parser: hermes_cli/subcommands/import_agent.py) + # ========================================================================= + def cmd_import_agent(args): + from hermes_cli.agent_import import import_agent_command + import_agent_command(args) + + build_import_agent_parser(subparsers, cmd_import_agent=cmd_import_agent) + # ========================================================================= # config command (parser built in hermes_cli/subcommands/config.py) # =========================================================================