The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): --help lists gateway status and the --profile long form; trim epilogue tests
teknium11d46d0305ba4
diff --git a/hermes_cli/_parser.py b/hermes_cli/_parser.pyindex ff3d1732821..8b4460a215e 100644--- a/hermes_cli/_parser.py+++ b/hermes_cli/_parser.py@@ -99,13 +99,14 @@ Examples:hermes config edit Edit config in $EDITORhermes config set model gpt-4 Set a config valuehermes gateway Run messaging gateway+ hermes gateway install Install gateway background servicehermes gateway start Start the installed gateway servicehermes gateway stop Stop the gateway service+ hermes gateway status Show gateway statushermes -p <profile> <cmd> Run any command against a named profile's- home — e.g. hermes -p coder gateway stop+ home (also --profile) — e.g. hermes -p coder gateway stophermes -s hermes-agent-dev,github-authhermes -w Start in isolated git worktree- hermes gateway install Install gateway background servicehermes sessions list List past sessionshermes sessions browse Interactive session pickerhermes sessions rename ID T Rename/title a sessiondiff --git a/tests/hermes_cli/test_parser_epilogue_gateway_profile.py b/tests/hermes_cli/test_parser_epilogue_gateway_profile.pyindex 79dedc03206..e5c650f67d2 100644--- a/tests/hermes_cli/test_parser_epilogue_gateway_profile.py+++ b/tests/hermes_cli/test_parser_epilogue_gateway_profile.py@@ -3,25 +3,28 @@``-p/--profile`` is consumed before argparse (``main._apply_profile_override``), so it neverappears among the parser's option rows — the epilogue examples are the only place ``--help``can teach the ``hermes -p <profile> gateway <action>`` form that generated service units and-user-facing copy already rely on (#114495). Contract, not snapshot: assert the verbs and the-profile flag are named, not the exact wording.+user-facing copy already rely on. Contract, not snapshot: assert the verbs and the profile flag+are named in the RENDERED help (the wiring, not just the constant), not the exact wording."""-from hermes_cli._parser import _EPILOGUE, build_top_level_parser+from hermes_cli._parser import PRE_ARGPARSE_INHERITED_FLAGS, build_top_level_parser-def test_epilogue_documents_the_profile_scoped_command_form():- assert "-p <profile>" in _EPILOGUE- assert "hermes -p coder gateway stop" in _EPILOGUE+def _rendered_help() -> str:+ return build_top_level_parser()[0].format_help()-def test_epilogue_documents_the_gateway_service_verbs():- for verb in ("gateway start", "gateway stop", "gateway install"):- assert f"hermes {verb}" in _EPILOGUE+def test_rendered_help_documents_the_profile_scoped_command_form():+ help_text = _rendered_help()+ assert "hermes -p <profile>" in help_text+ assert "--profile" in help_text+ assert "hermes -p coder gateway stop" in help_text+ # The flag stays pre-argparse: documented in the epilogue, never registered as an option.+ assert ("-p", True) in PRE_ARGPARSE_INHERITED_FLAGS+ assert "-p PROFILE" not in help_text and "--profile PROFILE" not in help_text-def test_rendered_help_carries_the_epilogue_rows():- """The wiring, not just the constant: the rows must reach what argparse prints."""- help_text = build_top_level_parser()[0].format_help()- assert "hermes gateway start" in help_text- assert "hermes -p coder gateway stop" in help_text+def test_rendered_help_documents_the_gateway_service_verbs():+ help_text = _rendered_help()+ for verb in ("install", "start", "stop", "status"):+ assert f"hermes gateway {verb}" in help_text, verb