@adhdev/daemon-standalone 0.9.82-rc.77 → 0.9.82-rc.78
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 +163 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +9 -2
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1809,6 +1809,7 @@ async function meshStatus(ctx) {
|
|
|
1809
1809
|
},
|
|
1810
1810
|
nodes: results,
|
|
1811
1811
|
activeWork: activeWorkEvidence.activeWork,
|
|
1812
|
+
staleDirectWork: activeWorkEvidence.staleDirectWork,
|
|
1812
1813
|
activeWorkSummary: activeWorkEvidence.summary,
|
|
1813
1814
|
branchConvergenceSummary: summarizeBranchConvergence(results)
|
|
1814
1815
|
};
|
|
@@ -1827,12 +1828,17 @@ async function meshStatus(ctx) {
|
|
|
1827
1828
|
}
|
|
1828
1829
|
async function meshTaskHistory(ctx, args) {
|
|
1829
1830
|
const { mesh } = ctx;
|
|
1830
|
-
await drainCoordinatorPendingEvents(ctx);
|
|
1831
|
+
const pendingEvents = await drainCoordinatorPendingEvents(ctx);
|
|
1831
1832
|
const tail = typeof args.tail === "number" && args.tail > 0 ? args.tail : 20;
|
|
1832
1833
|
const kind = typeof args.kind === "string" && args.kind.trim() ? [args.kind.trim()] : void 0;
|
|
1833
1834
|
const entries = (0, import_daemon_core.readLedgerEntries)(mesh.id, { tail, kind });
|
|
1834
1835
|
const summary = (0, import_daemon_core.getLedgerSummary)(mesh.id);
|
|
1835
|
-
return JSON.stringify({
|
|
1836
|
+
return JSON.stringify({
|
|
1837
|
+
meshId: mesh.id,
|
|
1838
|
+
entries,
|
|
1839
|
+
summary,
|
|
1840
|
+
...pendingEvents.length > 0 ? { pendingCoordinatorEvents: pendingEvents } : {}
|
|
1841
|
+
}, null, 2);
|
|
1836
1842
|
}
|
|
1837
1843
|
async function meshReconcileLedger(ctx, args) {
|
|
1838
1844
|
await refreshMeshFromDaemon(ctx);
|
|
@@ -2022,6 +2028,7 @@ async function meshViewQueue(ctx, args) {
|
|
|
2022
2028
|
queue,
|
|
2023
2029
|
visibleQueue: queue,
|
|
2024
2030
|
activeWork: activeWorkEvidence.activeWork,
|
|
2031
|
+
staleDirectWork: activeWorkEvidence.staleDirectWork,
|
|
2025
2032
|
activeWorkSummary: activeWorkEvidence.summary,
|
|
2026
2033
|
visibleSummary,
|
|
2027
2034
|
summary,
|