The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: `hermes auth import-agent` no longer suggests a nonexistent login command
Tekniumc20d96fdaa61
diff --git a/hermes_cli/left_core_migration.py b/hermes_cli/left_core_migration.pyindex 5b31ffdbafe..6c5254707fc 100644--- a/hermes_cli/left_core_migration.py+++ b/hermes_cli/left_core_migration.py@@ -217,16 +217,16 @@ class LeftCoreFeature:# prefixes it shared with the feature's tools (stripped only when the source runs the adapter).enable_env: tuple[str, ...] = ()channel_env_prefixes: tuple[str, ...] = ()- # Top-level command the plugin registers: in place of core's ``hermes auth <cli>`` login- # (``hermes <cli> login|status|logout``), or core's own top-level command kept under the same name- # (``hermes import-agent``). :func:`moved_command_hint` points the old spelling at the plugin.+ # Top-level command the plugin registers in place of core's ``hermes auth <cli>`` login+ # (``hermes <cli> login|status|logout``); :func:`moved_command_hint` points the old spelling at it.cli: str = ""- # Top-level command the plugin registers in place of core's nested ``old_command``- # (``hermes mcp serve`` -> ``hermes mcp-serve``); :func:`moved_command_hint` points the old spelling at it.+ # Top-level command the plugin registers: core's own command kept under its name (``hermes+ # import-agent``), or in place of core's nested ``old_command`` (``hermes mcp serve`` -> ``hermes+ # mcp-serve``); :func:`moved_command_hint` points the old spelling at it.command: str = ""old_command: str = ""# Other top-level commands core shipped that the same plugin now registers (``hermes claw``, the- # OpenClaw migration's spelling before ``hermes import-agent openclaw``); hinted like *cli*.+ # OpenClaw migration's spelling before ``hermes import-agent openclaw``); hinted like *command*.old_cli: tuple[str, ...] = ()# Key of the bundled plugin core shipped (``observability/langfuse``). It stays an alias of the# catalog plugin in ``plugins.enabled`` / ``plugins.disabled`` (the loader's gate, an@@ -274,7 +274,7 @@ LEFT_CORE: tuple[LeftCoreFeature, ...] = (LeftCoreFeature(plugin="agent-importers", label="`hermes import-agent`", in_use=agent_imports_in_use,unchanged="`hermes import-agent`, its flags and your import-sync.json sync sources are unchanged",- cli="import-agent", old_cli=("claw",),+ command="import-agent", old_cli=("claw",),),)diff --git a/tests/hermes_cli/test_agent_import_left_core.py b/tests/hermes_cli/test_agent_import_left_core.pyindex 27a8789bb21..0f452f0c1f7 100644--- a/tests/hermes_cli/test_agent_import_left_core.py+++ b/tests/hermes_cli/test_agent_import_left_core.py@@ -37,6 +37,7 @@ def test_old_spelling_without_the_plugin_names_the_install(argv, tmp_path, monkeassert exc.value.code == 2assert f"`hermes {argv[0]}` moved out of core into the 'agent-importers' plugin, which is not loaded" in errassert "hermes plugins install agent-importers" in err+ assert lcm.moved_command_hint("hermes auth", argv[0]) == "" # never a `hermes auth` login spellingdef test_only_a_home_with_registered_imports_gets_the_plugin(tmp_path):