gsxdsm
8bcda7325c
FN-7082: add live running-agent count seam
Add a side-effect-safe core seam so global concurrency reads can report live running-agent counts.
- Add core helpers to register a running-agent count source and derive active project totals.
- Wire CentralCore and dashboard server setup to read live counts from already-open stores without starting runtimes.
- Update the global concurrency route to preserve slot bookkeeping while sourcing currentlyActive/projectsActive from the live seam.
- Cover the seam, dashboard store resolver, server wiring, and route behavior with focused tests and document the multi-project behavior.
Files changed:
.changeset/fn-7082-live-running-agent-count-seam.md | 7 ++
docs/multi-project.md | 2 +-
packages/core/src/__tests__/central-core.test.ts | 106 +++++++++++++++++++++
packages/core/src/central-core.ts | 28 ++++++
packages/core/src/index.ts | 7 ++
packages/core/src/live-agent-count.ts | 38 ++++++++
.../dashboard/src/__tests__/project-routes.test.ts | 20 +++-
.../src/__tests__/project-store-resolver.test.ts | 71 ++++++++++++++
packages/dashboard/src/__tests__/server.test.ts | 45 ++++++++-
packages/dashboard/src/project-store-resolver.ts | 24 +++++
packages/dashboard/src/routes.ts | 25 +----
packages/dashboard/src/server.ts | 42 +++++++-
12 files changed, 387 insertions(+), 28 deletions(-)
Fusion-Task-Id: FN-7082
Fusion-Task-Lineage: 4dbca204-8bea-4de5-b56b-7468b61575ce
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-06-26 18:19:41 -07:00
..
2026-06-18 01:45:18 -07:00
2026-06-26 18:19:41 -07:00
2026-04-28 14:25:56 -07:00
2026-06-26 00:28:31 -07:00
2026-05-06 21:36:31 -07:00
2026-06-07 18:51:46 -07:00
2026-05-06 21:36:31 -07:00
2026-06-03 01:10:18 -07:00
2026-06-03 01:10:18 -07:00
2026-05-14 13:59:10 -07:00
2026-06-05 00:57:49 -07:00
2026-04-08 01:39:15 -07:00
2026-06-22 17:58:27 -07:00
2026-05-10 15:34:58 -07:00
2026-06-12 19:45:37 -07:00
2026-05-16 20:48:00 -07:00
2026-05-13 22:41:29 -07:00
2026-06-02 18:46:33 -07:00
2026-06-12 13:12:55 -07:00
2026-04-09 15:14:19 -07:00
2026-05-17 01:01:52 -07:00
2026-06-20 13:24:38 -07:00
2026-05-03 02:02:25 -07:00
2026-06-26 02:45:29 -07:00
2026-06-21 13:32:19 -07:00
2026-06-01 21:55:10 -07:00
2026-05-14 15:49:55 -07:00
2026-06-07 20:43:44 -07:00
2026-03-25 18:32:10 -04:00
2026-06-03 13:51:13 -07:00
2026-06-03 09:23:44 -07:00
2026-06-26 00:06:31 -07:00
2026-06-26 00:06:31 -07:00
2026-06-25 18:16:59 -07:00
2026-06-21 23:15:46 -07:00
2026-06-21 23:15:46 -07:00
2026-06-26 01:09:45 -07:00
2026-06-22 19:48:50 -07:00
2026-06-25 18:16:59 -07:00
2026-06-08 23:38:32 -07:00
2026-06-26 00:26:03 -07:00
2026-06-12 14:39:51 -07:00
2026-06-25 23:34:07 -07:00
2026-05-13 06:29:35 -07:00
2026-06-26 18:19:41 -07:00
2026-06-24 23:51:52 -07:00
2026-06-05 02:38:38 -07:00
2026-06-05 02:38:38 -07:00
2026-06-04 22:52:20 -07:00
2026-06-04 22:52:20 -07:00
2026-06-05 00:57:49 -07:00
2026-06-05 13:59:50 -07:00
2026-06-15 19:44:10 -07:00
2026-05-27 21:31:12 -07:00
2026-04-24 08:55:02 -07:00
2026-06-26 02:29:32 -07:00
2026-06-26 17:33:06 -07:00
2026-06-11 18:08:17 -07:00
2026-05-19 03:21:16 -07:00
2026-06-26 14:55:01 -07:00
2026-05-12 18:33:13 -07:00
2026-05-03 14:10:11 -07:00
2026-06-04 08:00:33 -07:00
2026-05-18 23:14:27 -07:00
2026-06-04 08:00:33 -07:00
2026-05-18 08:02:21 -07:00
2026-04-23 23:02:36 -07:00
2026-05-05 13:42:39 -07:00
2026-05-06 11:09:05 -07:00
2026-05-08 12:05:46 -07:00
2026-05-14 05:35:12 -07:00
2026-05-06 13:38:23 -07:00
2026-05-29 10:23:59 -07:00
2026-05-14 00:58:44 -07:00
2026-05-14 00:12:03 -07:00
2026-06-26 08:40:59 -07:00
2026-05-20 14:28:45 -07:00
2026-06-25 05:08:04 -07:00
2026-05-23 04:18:55 -07:00
2026-05-03 02:02:25 -07:00
2026-06-12 09:24:02 -07:00
2026-05-28 22:59:18 -07:00
2026-06-24 09:02:02 -07:00
2026-06-21 09:00:40 -07:00
2026-05-10 08:28:07 -07:00
2026-06-25 23:17:02 -07:00
2026-05-30 22:53:24 -07:00
2026-05-28 10:32:16 -07:00
2026-05-28 10:32:16 -07:00
2026-06-17 04:51:31 -07:00
2026-05-20 14:29:07 -07:00
2026-06-26 18:19:41 -07:00
2026-05-03 02:36:07 -07:00
2026-05-18 14:46:20 -07:00
2026-05-04 23:47:26 -07:00
2026-06-26 18:19:41 -07:00
2026-04-24 08:54:25 -07:00
2026-06-12 11:10:12 -07:00
2026-05-17 22:45:29 -07:00
2026-06-25 21:01:15 -07:00
2026-06-26 11:56:12 -07:00
2026-05-05 06:32:33 -07:00
2026-05-09 14:41:58 -07:00
2026-06-26 16:14:44 -07:00
2026-05-05 06:32:33 -07:00
2026-05-11 17:46:42 -07:00
2026-05-03 15:13:08 -07:00
2026-05-10 19:13:05 -07:00
2026-05-07 00:05:34 -07:00
2026-05-27 18:47:52 +02:00
2026-05-23 04:18:55 -07:00
2026-05-23 04:18:55 -07:00
2026-06-25 08:35:44 -07:00
2026-06-11 23:22:07 -07:00
2026-05-23 03:09:00 -07:00
2026-06-23 01:14:11 -07:00
2026-06-15 19:57:20 -07:00
2026-06-15 19:57:20 -07:00
2026-06-11 20:53:01 -07:00
2026-06-14 15:29:35 -07:00
2026-06-25 03:44:22 -07:00
2026-06-15 02:29:08 -07:00
2026-06-13 02:54:57 -07:00
2026-04-18 12:21:14 -07:00
2026-04-08 14:58:34 -07:00
2026-04-28 14:25:55 -07:00
2026-06-13 23:20:06 -07:00
2026-06-15 20:19:16 -07:00
2026-06-09 12:51:20 -07:00
2026-06-19 16:47:33 -07:00
2026-06-04 01:43:26 -07:00
2026-06-19 16:47:33 -07:00
2026-05-07 02:15:14 -07:00
2026-06-25 08:35:44 -07:00
2026-06-07 20:43:44 -07:00
2026-06-15 19:44:17 -07:00
2026-05-19 17:19:02 -07:00
2026-06-19 17:25:35 -07:00
2026-05-23 04:18:55 -07:00
2026-05-14 13:59:10 -07:00
2026-05-19 17:27:20 -07:00
2026-05-15 07:45:49 -07:00
2026-06-05 03:56:29 -07:00
2026-04-19 20:48:13 -07:00
2026-05-12 17:04:32 -07:00
2026-05-04 22:17:10 -07:00
2026-05-13 06:29:36 -07:00
2026-05-14 15:25:08 -07:00
2026-05-15 12:51:41 -07:00
2026-05-03 02:02:25 -07:00
2026-04-16 23:07:40 -07:00
2026-05-19 17:19:02 -07:00
2026-05-15 12:02:44 -07:00
2026-05-15 22:56:31 -07:00
2026-05-15 12:02:44 -07:00
2026-05-17 00:21:12 -07:00
2026-05-16 21:00:48 -07:00
2026-05-17 23:29:20 -07:00
2026-05-17 12:58:01 -07:00
2026-05-17 07:26:21 -07:00
2026-06-05 01:53:42 -07:00
2026-06-26 18:11:41 -07:00
2026-06-25 21:01:15 -07:00
2026-05-08 14:03:17 -07:00
2026-06-26 00:28:31 -07:00
2026-06-25 16:48:56 -07:00
2026-04-29 07:58:58 -07:00
2026-05-20 14:29:07 -07:00
2026-05-20 14:29:07 -07:00
2026-05-13 06:29:34 -07:00
2026-06-04 12:26:05 -07:00
2026-06-26 18:11:41 -07:00
2026-06-21 13:32:19 -07:00
2026-06-04 08:00:33 -07:00
2026-05-15 21:08:04 -07:00
2026-06-04 13:19:55 -07:00
2026-05-21 15:45:48 -07:00
2026-05-19 05:16:37 -07:00
2026-06-19 06:51:57 -07:00
2026-06-18 03:24:57 -07:00
2026-06-13 05:06:05 -07:00
2026-06-24 10:45:21 -07:00
2026-06-17 04:51:31 -07:00
2026-05-18 15:01:20 -07:00
2026-06-23 01:14:11 -07:00
2026-04-29 12:02:56 -07:00
2026-04-25 21:43:38 -07:00
2026-06-23 01:14:11 -07:00
2026-06-17 21:45:50 -07:00
2026-06-04 02:13:48 -07:00
2026-06-04 00:19:57 -07:00
2026-06-04 00:19:58 -07:00
2026-06-04 00:19:58 -07:00
2026-06-26 18:11:41 -07:00
2026-06-17 21:45:50 -07:00
2026-06-03 13:48:02 -07:00
2026-06-08 23:38:32 -07:00
2026-06-23 08:21:10 -07:00
2026-06-26 00:26:03 -07:00
2026-06-24 23:32:52 -07:00
2026-06-22 19:48:50 -07:00
2026-06-07 21:19:10 -07:00
2026-06-07 20:43:44 -07:00
2026-06-22 23:56:34 -07:00
2026-06-26 01:09:45 -07:00
2026-06-26 01:09:45 -07:00
2026-06-26 00:06:31 -07:00
2026-06-04 02:13:48 -07:00
2026-06-21 21:23:41 -07:00
2026-06-04 12:03:29 -07:00
2026-06-05 16:46:04 -07:00
2026-06-04 22:12:38 -07:00
2026-06-20 22:47:38 -07:00
2026-06-04 00:41:12 -07:00
2026-05-16 07:16:05 -07:00
2026-06-13 21:17:20 -07:00