feat: add usage tracking with live throughput rates and analytics dashboard
shinmentakezo07+1: Claude
e8f2acc
Track per-request token usage (input/output/cache/reasoning) plus full
prompts (capped at 64 KB) in a JSON ring buffer at ~/.fcc/usage.json,
captured through a transparent UsageTrackingStream over the executor
stream. Expose GET /admin/api/usage and a new Usage page in the admin UI
with KPI cards, token mix, volume area chart, top endpoints, routing
sankey, and hourly heatmap, auto-refreshing every 10 seconds.
Throughput rates use a trailing 60-second live window on both backend
and frontend so they track real-time traffic and decay to zero when
idle; tokens/second counts output tokens only, tokens/minute counts
input plus output.
Bump 4.25.0 -> 4.27.0.
Co-Authored-By: Claude <noreply@anthropic.com>