|
|
35d8cb5de6
|
feat: tui.js — live ANSI terminal dashboard (B.A. objective)
Implements token-monitor#3 objective 3:
node tui.js starts a live terminal dashboard:
- Full layout: Anthropic Teams (severity-colored) + xAI section
- 60s auto-refresh with 1s countdown
- Flicker-free via cursor-home (not clear-screen)
- [r] forces immediate refresh
- [q] or Ctrl-C exits cleanly, restores terminal + cursor
- Severity coloring: green=ok, yellow=warning, red=critical/maxed
- xAI section hidden when XAI_MANAGEMENT_KEY not set (graceful degradation)
- Budget decision: recommended provider + avoid list prominently displayed
- Alerts section (up to 3, warning/critical only)
- No external npm dependencies — pure Node stdlib + project analyze.js
Data source: spawns analyze.js --budget-json internally (reuses cached probe
data if fresh, avoids double-probe on each TUI refresh)
Co-authored-by: Hannibal Smith <hannibal@a-team>
|
2026-04-08 08:29:40 +00:00 |
|