flexi767
b2cf2db106
fix(core): add task dimension to command-center token grouping
...
The command-center token endpoint accepts groupBy=task, but the
dimension was never wired through: TokenGroupBy did not include "task",
groupKeyFor had no task case, VALID_GROUP_BY rejected it, and
groupAttributes emitted no attribute. As a result groupBy=task silently
fell back to ungrouped totals — the per-task rollup returned zero groups
even though tasks.tokenUsage* is populated per task.
Thread "task" through all four enumeration sites (the union type makes
the two switches compiler-exhaustive). Task rows group by task id; chat
rows have no task and return null, mirroring the existing node case.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-04 19:29:47 +00:00
..
2026-07-04 10:42:20 -07:00
2026-07-04 19:29:47 +00:00
2026-07-02 11:38:35 -07:00
2026-07-02 13:58:13 -07:00
2026-06-26 17:38:41 -07:00
2026-06-26 17:38:41 -07:00
2026-06-26 17:38:41 -07:00
2026-07-02 13:38:02 -07:00
2026-06-16 22:20:49 -07:00
2026-05-16 22:26:42 -07:00
2026-06-04 23:39:07 -07:00
2026-06-28 16:51:49 -07:00
2026-06-04 22:54:49 -07:00
2026-07-02 15:00:40 -07:00
2026-06-05 02:38:38 -07:00
2026-07-03 21:45:20 -07:00
2026-06-05 03:56:29 -07:00
2026-06-15 02:30:41 -07:00
2026-06-05 03:41:54 -07:00
2026-07-02 15:00:40 -07:00
2026-06-21 13:25:41 -07:00
2026-06-29 23:17:49 -07:00
2026-06-30 00:03:37 -07:00
2026-06-10 10:34:36 -07:00
2026-05-20 04:41:04 -07:00
2026-05-16 12:56:31 -07:00
2026-05-18 04:01:51 -07:00
2026-06-18 19:12:58 -07:00
2026-06-10 10:34:36 -07:00
2026-06-01 08:13:36 -07:00
2026-06-24 23:32:51 -07:00
2026-07-02 19:01:09 -07:00
2026-07-02 11:38:34 -07:00
2026-07-02 11:38:34 -07:00
2026-07-02 11:38:34 -07:00
2026-07-02 12:34:35 -07:00
2026-07-02 11:38:34 -07:00
2026-07-02 11:38:34 -07:00
2026-07-02 12:34:35 -07:00
2026-06-16 15:08:24 -07:00
2026-07-02 11:38:34 -07:00
2026-05-18 14:46:20 -07:00
2026-06-26 17:38:41 -07:00
2026-06-15 20:34:52 -07:00
2026-06-15 20:34:52 -07:00
2026-06-30 00:09:36 -07:00
2026-06-30 00:09:36 -07:00
2026-06-25 08:35:44 -07:00
2026-06-16 15:11:09 -07:00
2026-06-16 15:11:09 -07:00
2026-06-16 05:56:11 -07:00
2026-06-27 12:25:53 -07:00
2026-07-02 13:58:13 -07:00
2026-07-01 08:01:59 -07:00
2026-06-26 16:14:44 -07:00
2026-06-28 01:17:22 -07:00
2026-06-16 15:08:24 -07:00
2026-06-27 21:39:40 -07:00
2026-07-02 14:31:16 -07:00
2026-05-17 23:21:34 -07:00
2026-07-02 11:38:34 -07:00
2026-07-03 21:47:00 -07:00
2026-07-02 11:38:35 -07:00
2026-06-22 11:49:52 -07:00
2026-07-01 15:39:34 -07:00
2026-06-26 17:38:41 -07:00
2026-07-01 23:44:05 -07:00
2026-07-01 15:39:34 -07:00
2026-07-02 11:38:31 -07:00
2026-06-09 20:08:18 -07:00
2026-06-26 17:38:41 -07:00
2026-07-03 21:45:20 -07:00
2026-07-01 15:39:34 -07:00
2026-06-21 20:28:33 -07:00