No description
Find a file
Vadym Samoilenko fde9b61465 feat(cost): track Claude Code token usage and cost per project
- 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>
2026-05-13 12:47:26 +01:00
.claude feat(planka): add Planka kanban to docker-compose + wire UI 2026-05-07 12:15:25 +01:00
.github/workflows feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
.playwright-mcp feat(planka): add Planka kanban to docker-compose + wire UI 2026-05-07 12:15:25 +01:00
alembic feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
planka-custom fix: Planka admin user + branding CSS; project job_number edit form; report filename; devops title 2026-05-07 13:49:00 +01:00
scripts feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
src feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
web feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
.dockerignore add .dockerignore to exclude __pycache__ from image 2026-03-26 13:02:16 +00:00
.env.example feat: replace Planka with in-app Kanban + add OMG page 2026-05-07 14:09:36 +01:00
.gitignore Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
.pre-commit-config.yaml feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
AGENTS.md feat: AI assistant widget, design system upgrade via 21st-dev Magic 2026-05-06 19:34:17 +01:00
apache.conf feat: replace Planka with in-app Kanban + add OMG page 2026-05-07 14:09:36 +01:00
deploy.sh fix: healthcheck uses host curl, not exec inside container 2026-05-06 19:35:26 +01:00
docker-compose.yml feat: replace Planka with in-app Kanban + add OMG page 2026-05-07 14:09:36 +01:00
Dockerfile fix: alembic config path in Dockerfile CMD 2026-03-26 12:59:10 +00:00
pyproject.toml feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
requirements.txt fix: add pytest/pytest-asyncio/aiosqlite to requirements for test suite 2026-05-06 18:47:20 +01:00