@adhdev/daemon-standalone 0.9.82-rc.109 → 0.9.82-rc.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +97 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +9 -1
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1274,6 +1274,13 @@ async function collectLiveStatusSessions(ctx, node) {
|
|
|
1274
1274
|
return [];
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
+
async function collectMeshViewQueueNodesWithLiveSessions(ctx) {
|
|
1278
|
+
const nodes = await Promise.all(ctx.mesh.nodes.map(async (node) => {
|
|
1279
|
+
const liveSessions = await collectLiveStatusSessions(ctx, node);
|
|
1280
|
+
return liveSessions.length > 0 ? { ...node, sessions: liveSessions } : node;
|
|
1281
|
+
}));
|
|
1282
|
+
return nodes;
|
|
1283
|
+
}
|
|
1277
1284
|
function readNumeric(value, fallback = 0) {
|
|
1278
1285
|
const parsed = Number(value);
|
|
1279
1286
|
return Number.isFinite(parsed) ? parsed : fallback;
|
|
@@ -2186,11 +2193,12 @@ async function meshViewQueue(ctx, args) {
|
|
|
2186
2193
|
const summary = buildQueueStatusSummary(fullQueue);
|
|
2187
2194
|
const visibleSummary = buildQueueStatusSummary(queue);
|
|
2188
2195
|
const maintenance = buildQueueMaintenanceReport(fullQueue);
|
|
2196
|
+
const liveNodes = await collectMeshViewQueueNodesWithLiveSessions(ctx);
|
|
2189
2197
|
const activeWorkEvidence = (0, import_daemon_core.buildMeshActiveWork)({
|
|
2190
2198
|
meshId: ctx.mesh.id,
|
|
2191
2199
|
queue: fullQueue,
|
|
2192
2200
|
ledgerEntries: (0, import_daemon_core.readLedgerEntries)(ctx.mesh.id, { tail: 500 }),
|
|
2193
|
-
nodes:
|
|
2201
|
+
nodes: liveNodes
|
|
2194
2202
|
});
|
|
2195
2203
|
const staleAssignedTasks = maintenance.staleAssignedTasks || [];
|
|
2196
2204
|
const requestedHistoricalRows = queue.some((task) => HISTORICAL_QUEUE_STATUSES.has(String(task?.status || "")));
|