colibri/packaging
Sam & Claude 44434228f1 feat(mother): cost dashboard — human gallery + agent JSON with screenshot proof
Three new files in packaging/mother/dashboard/:

  index.html (460 lines) — Self-contained cost dashboard:
  - Cost cards with cache-hit bars (green cache / grey fresh)
  - Node-grouped rows with summary stats (task count, cost, success rate)
  - ▸ proof badge on cards with linked tmux-screenshot PNGs
  - Lightbox viewer for terminal screenshots at task completion time
  - JSON toggle for agent-friendly structured data
  - Filters: node, provider, success/failure
  - Dark terminal theme, monospace, responsive
  - Auto-refresh every 60s

  export-costs.sh (75 lines) — PostgreSQL → JSON export:
  - Denormalizes task_costs + hive_nodes into dashboard data file
  - Computes summary (total cost, avg, success rate, cache-hit ratio)
  - Groups by node with per-node stats
  - Limits to 200 most recent tasks

  deploy.sh (45 lines) — Idempotent mother deploy:
  - Copies dashboard files to /usr/local/www/clawdie/dashboard/
  - Installs cron job (every 60s)
  - Runs initial export

  Schema:
  - task_costs.screenshot_uuid column (TEXT, nullable)
  - report-task-cost SSH command updated: node_hostname→node_id lookup,
    screenshot_uuid field, NULLIF for empty strings

  Wiki:
  - cost-dashboard.md — architecture, data sources, deploy flow,
    agent-friendly JSON format, screenshot proof design
  - Index updated (EN)

  184 wiki refs, clean lint, cargo fmt pass.
2026-06-27 14:29:18 +02:00
..
freebsd feat(daemon): hw register with mother on autospawn (belt + suspenders) 2026-06-26 08:25:18 +02:00
linux refactor: kill→stop across API surface, CLI, TUI, and docs 2026-06-26 14:40:10 +02:00
mother feat(mother): cost dashboard — human gallery + agent JSON with screenshot proof 2026-06-27 14:29:18 +02:00