mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
[verified] feat(cli): add tool governance presets and setup visibility
This commit is contained in:
parent
1bf574fb7b
commit
bffa79f947
10 changed files with 505 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue