From 6e9afe3e54ab6fb0162393150b7892655b4561d4 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 18:19:13 +0200 Subject: refactor(node): move the CLI out of daemon.py into cli/ Each `if args.command == ...` branch of main() becomes a function in cli/ (one module per family of verbs); the parser, the process setup and a VERBS table go to cli/parser.py and cli/dispatch.py. daemon.main runs the verb or starts the daemon. Tests patch the CLI through conftest.patch_cli; the CLI golden is unchanged. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md index 5caa28d..a585549 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -896,7 +896,7 @@ here are kept only where they are a rule about *editing* the code. | Link previews | `meshbay_node/linkpreview.py` — `safe_url` | §6.5. SSRF gate | | Audit log | `meshbay_node/audit.py` | legal compliance | | Hub socket client | `meshbay_node/hub_client.py` | `login()` (Ed25519) + `maintain_ws()` | -| Daemon, CLI, config | `meshbay_node/daemon.py`, `config.py`, `platform.py` | §6.7, §6.8 | +| Daemon, CLI, config | `meshbay_node/daemon.py`, `cli/` (`dispatch.py` → one module per family of verbs; `tests/golden/cli.json` pins their output), `config.py`, `platform.py` | §6.7, §6.8 | ### Hub -- cgit v1.2.3