From c091d8a4b59ecbd3c85c9d506f5bc6f965a19554 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 22 Jun 2026 19:09:53 +0200 Subject: [PATCH] docs(web-ui): align dashboard endpoint list with the /api FE routes The 'Dashboard endpoints' list was half-migrated: newer routes were documented under /api/* but the older ones (approve, deny, the rebuild/kill/restart/start/destroy lifecycle group, purge-tombstone, answer-question, cancel-question, request-spawn, update-all, op-send) were still listed bare. The dashboard FE calls all of them under /api/ since the route migration, so the doc was stale. Prefix the bare entries (plus the two inline references) to match what the FE actually requests. Documentation-only; no behaviour change. --- docs/web-ui/dashboard.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/web-ui/dashboard.md b/docs/web-ui/dashboard.md index 639bbdec..c5e59c09 100644 --- a/docs/web-ui/dashboard.md +++ b/docs/web-ui/dashboard.md @@ -193,7 +193,7 @@ each row keeps its `logs →` link out to the full L0GS history. **K3PT ST4T3** — destroyed-but-state-kept tombstones (size + age + claude-creds badge). Two actions: `⊕ R3V1V3` (queues a Spawn approval; existing state is reused), `PURG3` (wipes -state + applied dirs; `POST /purge-tombstone/{name}`). +state + applied dirs; `POST /api/purge-tombstone/{name}`). **C0NT41N3R L04D** — live CPU + memory per agent container, read straight from cgroup v2 on the host (`cpu.stat`, `memory.current`, @@ -581,7 +581,7 @@ in and force awkward narrow-column wraps. `min-width: 0` keeps than its container. Sticky-bottom auto-scroll + "↓ N new" pill. Below the stream sits a terminal-style compose box: `@name` picks the recipient (sticky via localStorage; auto-complete from the live container list, -Tab/Enter to confirm; `@*` broadcasts). `POST /op-send` drops +Tab/Enter to confirm; `@*` broadcasts). `POST /api/op-send` drops `{from:"operator", to, body}` into the broker; the resulting SSE frame re-renders the terminal row. Manager is addressed as `@root`. @@ -1007,10 +1007,10 @@ that's a browser-level decision, not ours. ## Dashboard endpoints -- `POST /approve/{id}` — approve a pending approval. Fires +- `POST /api/approve/{id}` — approve a pending approval. Fires `ApprovalResolved` on the dashboard event channel; client updates derived approvals state from the event. -- `POST /deny/{id}` (`note=`, optional) — deny a pending +- `POST /api/deny/{id}` (`note=`, optional) — deny a pending approval with an optional operator-supplied reason. The reason travels to the manager as `HelperEvent::ApprovalResolved.note` and also rides on the dashboard's `ApprovalResolved` event. @@ -1018,14 +1018,14 @@ that's a browser-level decision, not ours. click — a resizable `