March 11, 20261.0.136v1.0.136RSS

v1.0.136 — feat: Per-Project AI Cost & Token Usage Dashboard with Budget Alerts

Release v1.0.136: Per-Project AI Cost & Token Usage Dashboard

Date: 2026-03-11
Status: ⚠️ Merge blocked — CI typecheck errors pending resolution

What changed

  • New dashboard at /dashboard/products/[id]/ai-cost showing credit spend broken down by agent type, with horizontal bar charts and token counts
  • 6-month spend trend chart and a table of the most expensive pipeline runs
  • Configurable monthly budget limit with a progress bar that turns yellow at 80% and red at 100%
  • New Operations section in the product sidebar housing the AI Cost & Budget link
  • New aiCost tRPC router (getMonthlySummary, getMonthlyTrend, getCrossProjectSummary, setBudgetLimit, getRecentTransactions) joining creditTransactions → agentJobs → pipelineRuns

Why it matters

The platform deducts credits per agent run but previously had no UI to show where they went. This closes that gap — teams can now see exactly which agents are consuming budget on which project and set limits before costs run away.

Technical notes

  • Budget limits stored in billingSettings under key ai_budget_monthly_limit
  • Page uses force-dynamic for auth safety
  • Not yet merged — blocked by missing router stubs (platform-billing, agent-coordination, mcp, chat, rollback, portfolio) referenced in root.ts

Release Notes

The CI check failed with TypeScript errors in src/lib/trpc/root.ts — several imported router modules cannot be found. These are pre-existing issues in the repo that are blocking the merge. Here's the full picture:


❌ Merge Failed — CI Typecheck Errors

PR #137Per-Project AI Cost & Token Usage Dashboard with Budget Alertscould not be merged because the TypeScript typecheck CI job failed with the following errors in src/lib/trpc/root.ts:

ErrorFile
TS2307: Cannot find module '@/lib/routers/platform-billing'src/lib/trpc/root.ts:14
TS2307: Cannot find module '@/lib/routers/agent-coordination'src/lib/trpc/root.ts:45
TS2307: Cannot find module '@/lib/routers/mcp'src/lib/trpc/root.ts:46
TS2307: Cannot find module '@/lib/routers/chat'src/lib/trpc/root.ts:47
TS2307: Cannot find module '@/lib/routers/rollback'src/lib/trpc/root.ts:48
TS2307: Cannot find module '@/lib/routers/portfolio'src/lib/trpc/root.ts:49

What This Means

These are missing router files referenced in root.ts — several of them were imported by this PR's changes to root.ts (notably platform-billing), and others appear to be pre-existing stubs or other in-flight PRs that haven't landed yet. Until all referenced modules exist and typecheck passes, the merge is blocked.

Next Steps to Unblock

  1. Create the missing router stubs (e.g. stub out platform-billing, agent-coordination, mcp, chat, rollback, portfolio) so TypeScript can resolve the imports, or
  2. Remove the imports for modules not yet ready from root.ts until those PRs land, or
  3. Fix the underlying PRs that were supposed to deliver those routers first

Would you like me to create stub router files to unblock the typecheck and retry the merge?