- cc-collector.py: extract input/output/cache tokens from JSONL usage fields and calculate cost_usd using model-based pricing table - Session model: add input_tokens, output_tokens, cost_usd columns - Migration 0010: ALTER TABLE sessions ADD cost columns - Ingest: persist cost fields on upsert (updated on every sync) - Dashboard /projects: aggregate total_cost_usd per project from sessions - ProjectHours schema + ProjectSummary TS type: expose total_cost_usd - ProjectsView: replace Budget% column with "Cost $" showing total spend; Grid cards show CC Cost row when cost > 0 - backfill_session_costs.py: one-time script to populate cost for all historical sessions from local JSONL files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .env.example | ||
| .eslintrc.cjs | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||