style: fix pre-existing Prettier drift in 3 docs (structured-reports, cost-dashboard, mother-hive) #247
3 changed files with 10 additions and 7 deletions
|
|
@ -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. `<project-root>/tmp/status` (default)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue