@adhdev/daemon-standalone 0.9.82-rc.89 → 0.9.82-rc.90
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 +179 -43
- 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
|
@@ -529,18 +529,26 @@ function queueAssignmentStaleReason(task, liveness) {
|
|
|
529
529
|
}
|
|
530
530
|
function buildQueueStatusSummary(queue) {
|
|
531
531
|
const counts = { pending: 0, assigned: 0, completed: 0, failed: 0, cancelled: 0 };
|
|
532
|
+
let staleAssigned = 0;
|
|
532
533
|
for (const task of queue) {
|
|
533
534
|
const status = typeof task?.status === "string" ? task.status : void 0;
|
|
534
535
|
if (status && Object.prototype.hasOwnProperty.call(counts, status)) {
|
|
535
536
|
counts[status] += 1;
|
|
536
537
|
}
|
|
538
|
+
if (status === "assigned" && task?.staleAssigned === true) staleAssigned += 1;
|
|
537
539
|
}
|
|
540
|
+
const liveAssigned = Math.max(0, counts.assigned - staleAssigned);
|
|
538
541
|
return {
|
|
539
542
|
totalCount: queue.length,
|
|
540
|
-
activeCount: counts.pending +
|
|
543
|
+
activeCount: counts.pending + liveAssigned,
|
|
541
544
|
historicalCount: counts.completed + counts.failed + counts.cancelled,
|
|
542
545
|
counts,
|
|
543
546
|
activeCounts: {
|
|
547
|
+
pending: counts.pending,
|
|
548
|
+
assigned: liveAssigned
|
|
549
|
+
},
|
|
550
|
+
staleAssignedCount: staleAssigned,
|
|
551
|
+
rawActiveCounts: {
|
|
544
552
|
pending: counts.pending,
|
|
545
553
|
assigned: counts.assigned
|
|
546
554
|
},
|