Previous
AI spend rollup for the workspace over `windowDays`. Supports grouping by
common dimensions — the UI renders one chart per groupBy choice.
Heavy aggregations kept SQL-side via `groupBy` so we don't pull thousands
of rows into Node. Top 20 by cost to keep