feat(cli): add topology sub-command group

decnet topology {generate,list,show,deploy,teardown} wraps the new
persistence and deployer APIs. Structured text output, no ASCII art —
visual DAG rendering belongs in the web dashboard. Group is master-only
via MASTER_ONLY_GROUPS and a _require_master_mode guard on each body.
This commit is contained in:
2026-04-20 16:56:02 -04:00
parent 2a030bf3a9
commit 14d96778e3
3 changed files with 212 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ MASTER_ONLY_COMMANDS: frozenset[str] = frozenset({
"services", "distros", "correlate", "archetypes", "web",
"db-reset",
})
MASTER_ONLY_GROUPS: frozenset[str] = frozenset({"swarm"})
MASTER_ONLY_GROUPS: frozenset[str] = frozenset({"swarm", "topology"})
def _agent_mode_active() -> bool: