feat: phase 2 — am web : dashboard web local + API JSON (contrats --json, 127.0.0.1, tiny_http, frontend embarqué) (closes #54)
release / linux (push) Successful in 14m16s
release / windows (push) Canceled after 0s
release / macos (push) Canceled after 0s

This commit is contained in:
2026-08-18 16:40:15 -04:00
parent 7f4d74f811
commit fa51cdb339
20 changed files with 1392 additions and 40 deletions
+19
View File
@@ -299,6 +299,25 @@ pub static HELP_SPECS: &[HelpSpec] = &[
HelpExample { desc: "JSON stream for scripts.", code: "monitor --json --interval 10" },
],
},
HelpSpec {
name: "web",
category: "Commands",
usage: "web {flags}",
about: "Local read-only web dashboard: overview, charts, sessions, events, projects (issue #54). Serves an embedded page and a JSON API with the same stable contracts as the CLI --json outputs; bound to 127.0.0.1 only.",
search_terms: &["web", "dashboard", "html", "http", "api", "graph", "chart", "navigateur", "browser", "port"],
flags: &[
HelpFlag { short: "", long: "--port", value: "PORT", desc: "Port to listen on (default 7878)" },
HelpFlag { short: "", long: "--no-open", value: "", desc: "Do not open the browser automatically" },
],
subcommands: &[],
parameters: &[],
io: None,
examples: &[
HelpExample { desc: "Open the dashboard in the browser.", code: "web" },
HelpExample { desc: "Serve on another port, no browser.", code: "web --port 9090 --no-open" },
HelpExample { desc: "API routes: /api/health, /api/overview, /api/stats, /api/sessions, /api/events, /api/projects.", code: "curl http://127.0.0.1:7878/api/health" },
],
},
HelpSpec {
name: "history",
category: "Commands",