gsxdsm
7f3bd80dbe
FN-7297: include ephemeral agents in activity stats
Count ephemeral task-worker runs in dashboard activity analytics so active-agent stats reflect task execution.
- Include agentRuns agent ids alongside usage_events when computing active-agent range totals and daily series.
- Preserve distinct per-agent counting across both activity sources and handle missing agentRuns tables.
- Cover activity analytics, API route fixtures, and Command Center UI expectations for run-only task workers.
- Document the Command Center activity semantics and add a patch changeset for the published CLI bundle.
Files changed:
.changeset/fn-7297-ephemeral-activity.md | 7 ++
docs/dashboard-guide.md | 5 +-
.../core/src/__tests__/activity-analytics.test.ts | 70 ++++++++++++--
packages/core/src/activity-analytics.ts | 101 ++++++++++++++++++---
.../__tests__/CommandCenter.test.tsx | 32 ++++++-
.../register-command-center-routes.test.ts | 47 +++++++++-
6 files changed, 234 insertions(+), 28 deletions(-)
Fusion-Task-Id: FN-7297
Fusion-Task-Lineage: 51e46b3c-64f3-4546-954f-97d82b8426fb
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-06-30 13:30:28 -07:00
..
2026-06-30 13:30:28 -07:00
2026-06-28 12:49:55 -07:00
2026-06-28 12:49:55 -07:00
2026-04-18 23:41:47 -07:00
2026-06-20 10:28:25 -07:00