[verified] feat(cli): add tool governance presets and setup visibility

This commit is contained in:
Remotework 2026-04-21 06:54:29 -04:00
parent 1bf574fb7b
commit bffa79f947
10 changed files with 505 additions and 4 deletions

View file

@ -226,6 +226,7 @@ class TestNonInteractiveSetup:
"Messaging Platforms (Gateway)",
"Tools",
"Agent Settings",
"Security & Governance",
"Exit",
]
@ -244,3 +245,19 @@ class TestNonInteractiveSetup:
main_mod.main()
assert received["section"] == "tts"
def test_main_accepts_security_setup_section(self, monkeypatch):
"""`hermes setup security` should parse and dispatch like other setup sections."""
from hermes_cli import main as main_mod
received = {}
def fake_cmd_setup(args):
received["section"] = args.section
monkeypatch.setattr(main_mod, "cmd_setup", fake_cmd_setup)
monkeypatch.setattr("sys.argv", ["hermes", "setup", "security"])
main_mod.main()
assert received["section"] == "security"