From fece199390b4e7114c3d0ca5f51f765f4c4f1eb9 Mon Sep 17 00:00:00 2001 From: 123kupola <123kupola@gmail.com> Date: Sat, 27 Jun 2026 23:47:50 +0200 Subject: [PATCH] style: fix pre-existing Prettier drift in 3 docs (structured-reports, cost-dashboard, mother-hive) --- docs/guide/operate/structured-reports.md | 1 - docs/wiki/cost-dashboard.md | 15 +++++++++------ docs/wiki/mother-hive.md | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/guide/operate/structured-reports.md b/docs/guide/operate/structured-reports.md index 9408e4f..a77658c 100644 --- a/docs/guide/operate/structured-reports.md +++ b/docs/guide/operate/structured-reports.md @@ -93,7 +93,6 @@ does not write itself. The contract: The status directory resolves with this precedence (matched by both the wrapper and `getDefaultStatusDir()` in `src/reports/test-report.ts`): - 1. `$AGENT_STATUS_DIR` if set 2. `$CLAWDIE_VAR_DIR` if set (legacy) 3. `/tmp/status` (default) diff --git a/docs/wiki/cost-dashboard.md b/docs/wiki/cost-dashboard.md index a84f20c..dcaecc2 100644 --- a/docs/wiki/cost-dashboard.md +++ b/docs/wiki/cost-dashboard.md @@ -33,6 +33,7 @@ rendering — static HTML with a JSON data file refreshed every 60s by cron. ``` Each cost card shows: + - **Cache-hit bar:** green (cache) vs grey (fresh) — visual cache efficiency - **Provider:** deepseek / claude / gemini / ollama / local - **Cost:** with `▸ screenshot` badge if visual proof exists, `▸ text` for glasspane evidence @@ -42,12 +43,12 @@ Click a card with `▸` → lightbox opens the terminal screenshot at task compl ## Data sources -| Source | What | Refresh | -|---|---|---| -| `task_costs` (PostgreSQL) | Per-task cost rows pushed by daemon heartbeat | Real-time (SSH push on completion) | -| `hive_nodes` (PostgreSQL) | Node metadata, capabilities, LLM tier | Node heartbeat | -| `task_costs JSON file` | Denormalized JSON for the dashboard page | Every 60s (cron) | -| `proof_text` (inline JSON) | glasspane state snapshot | On task completion (daemon heartbeat) | +| Source | What | Refresh | +| -------------------------- | --------------------------------------------- | ------------------------------------- | +| `task_costs` (PostgreSQL) | Per-task cost rows pushed by daemon heartbeat | Real-time (SSH push on completion) | +| `hive_nodes` (PostgreSQL) | Node metadata, capabilities, LLM tier | Node heartbeat | +| `task_costs JSON file` | Denormalized JSON for the dashboard page | Every 60s (cron) | +| `proof_text` (inline JSON) | glasspane state snapshot | On task completion (daemon heartbeat) | ## Architecture @@ -79,6 +80,7 @@ cd /usr/local/src/colibri/packaging/mother/dashboard ``` This places: + - `/usr/local/www/clawdie/dashboard/index.html` — the dashboard page - `export-costs.sh` — JSON export script (in mother webroot) - `/usr/local/etc/cron.d/clawdie-dashboard` — cron job (every 60s) @@ -124,6 +126,7 @@ cache-hit on DeepSeek — route non-urgent tasks there." The `▸ screenshot` badge on cost cards opens a lightbox with the terminal PNG. The `▸ text` badge shows the glasspane state snapshot inline. screenshot UUID is stored alongside the cost row. Clicking opens the lightbox with: + - The full terminal PNG at task completion time - Task ID, provider, and cost in the overlay - The screenshot metadata (pane title, command, path, timestamp) diff --git a/docs/wiki/mother-hive.md b/docs/wiki/mother-hive.md index ca26e4a..59fd6b9 100644 --- a/docs/wiki/mother-hive.md +++ b/docs/wiki/mother-hive.md @@ -131,6 +131,7 @@ FK — correct behaviour (register first, then report costs). [`daemon.rs`](../../crates/colibri-daemon/src/daemon.rs) (`push_cost_to_mother`) ## See also + 107| 108|- [agent-harness](./agent-harness.md) — the zot/Colibri split; autospawn 109|- [naming-decisions](./naming-decisions.md) — `usb_nodes → hive_nodes`, autospawn flag rename -- 2.45.3