diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-24 18:19:13 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-24 18:19:13 +0200 |
| commit | 6e9afe3e54ab6fb0162393150b7892655b4561d4 (patch) | |
| tree | f1cf20d891bf0d75dd206953bcec781f47ab7b15 /CLAUDE.md | |
| parent | a408a25af7b91abf729ec5fac7e5506437a86049 (diff) | |
| download | meshbay-6e9afe3e54ab6fb0162393150b7892655b4561d4.tar.gz | |
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 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |