@adhdev/daemon-standalone 0.9.82-rc.18 → 0.9.82-rc.19
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 +30 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-CsEmn20l.css +1 -0
- package/public/assets/{index-BfLqOvWH.js → index-Deb1Bk0M.js} +27 -27
- package/public/index.html +2 -2
- package/vendor/mcp-server/index.js +5 -0
- package/vendor/mcp-server/index.js.map +1 -1
- package/public/assets/index-DYP5yBTS.css +0 -1
package/dist/index.js
CHANGED
|
@@ -46529,25 +46529,35 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46529
46529
|
}
|
|
46530
46530
|
getCachedInlineMesh(meshId, inlineMesh) {
|
|
46531
46531
|
if (inlineMesh && typeof inlineMesh === "object") {
|
|
46532
|
-
this.
|
|
46533
|
-
return inlineMesh;
|
|
46532
|
+
return this.warmInlineMeshCache(meshId, inlineMesh);
|
|
46534
46533
|
}
|
|
46535
46534
|
return this.inlineMeshCache.get(meshId);
|
|
46536
46535
|
}
|
|
46536
|
+
warmInlineMeshCache(meshId, inlineMesh) {
|
|
46537
|
+
if (!inlineMesh || typeof inlineMesh !== "object") return void 0;
|
|
46538
|
+
const cached2 = this.inlineMeshCache.get(meshId);
|
|
46539
|
+
if (cached2) return cached2;
|
|
46540
|
+
this.inlineMeshCache.set(meshId, inlineMesh);
|
|
46541
|
+
return inlineMesh;
|
|
46542
|
+
}
|
|
46537
46543
|
async getMeshForCommand(meshId, inlineMesh, options) {
|
|
46538
46544
|
const preferInline = options?.preferInline === true;
|
|
46539
46545
|
if (preferInline) {
|
|
46540
|
-
const cached22 = this.getCachedInlineMesh(meshId
|
|
46541
|
-
if (cached22) return { mesh: cached22, inline: true };
|
|
46546
|
+
const cached22 = this.getCachedInlineMesh(meshId);
|
|
46547
|
+
if (cached22) return { mesh: cached22, inline: true, source: "inline_cache" };
|
|
46548
|
+
const warmedInline2 = this.warmInlineMeshCache(meshId, inlineMesh);
|
|
46549
|
+
if (warmedInline2) return { mesh: warmedInline2, inline: true, source: "inline_bootstrap" };
|
|
46542
46550
|
}
|
|
46543
46551
|
try {
|
|
46544
46552
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
46545
46553
|
const mesh = getMesh3(meshId);
|
|
46546
|
-
if (mesh) return { mesh, inline: false };
|
|
46554
|
+
if (mesh) return { mesh, inline: false, source: "local_config" };
|
|
46547
46555
|
} catch {
|
|
46548
46556
|
}
|
|
46549
|
-
const cached2 = this.getCachedInlineMesh(meshId
|
|
46550
|
-
|
|
46557
|
+
const cached2 = this.getCachedInlineMesh(meshId);
|
|
46558
|
+
if (cached2) return { mesh: cached2, inline: true, source: "inline_cache" };
|
|
46559
|
+
const warmedInline = this.warmInlineMeshCache(meshId, inlineMesh);
|
|
46560
|
+
return warmedInline ? { mesh: warmedInline, inline: true, source: "inline_bootstrap" } : null;
|
|
46551
46561
|
}
|
|
46552
46562
|
updateInlineMeshNode(meshId, mesh, node) {
|
|
46553
46563
|
if (!mesh || !Array.isArray(mesh.nodes) || !node?.id) return;
|
|
@@ -46776,6 +46786,7 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46776
46786
|
const deletedSessionIds = [];
|
|
46777
46787
|
const skippedSessionIds = [];
|
|
46778
46788
|
const skippedLiveSessionIds = [];
|
|
46789
|
+
const skippedCoordinatorSessionIds = [];
|
|
46779
46790
|
const deleteUnsupportedSessionIds = [];
|
|
46780
46791
|
const recordsRemainSessionIds = [];
|
|
46781
46792
|
const errors = [];
|
|
@@ -46808,6 +46819,12 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46808
46819
|
const completed = this.isCompletedHostedSession(record2);
|
|
46809
46820
|
const surfaceKind = getSessionHostSurfaceKind(record2);
|
|
46810
46821
|
const liveRuntime = surfaceKind === "live_runtime";
|
|
46822
|
+
const coordinatorSession = readStringValue(record2?.meta?.meshCoordinatorFor) === args.meshId;
|
|
46823
|
+
if (!hasExplicitSessionIds && coordinatorSession) {
|
|
46824
|
+
skippedSessionIds.push(sessionId);
|
|
46825
|
+
skippedCoordinatorSessionIds.push(sessionId);
|
|
46826
|
+
continue;
|
|
46827
|
+
}
|
|
46811
46828
|
if (!hasExplicitSessionIds && liveRuntime) {
|
|
46812
46829
|
skippedSessionIds.push(sessionId);
|
|
46813
46830
|
skippedLiveSessionIds.push(sessionId);
|
|
@@ -46873,6 +46890,7 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
|
|
|
46873
46890
|
deletedSessionIds,
|
|
46874
46891
|
skippedSessionIds,
|
|
46875
46892
|
skippedLiveSessionIds,
|
|
46893
|
+
skippedCoordinatorSessionIds,
|
|
46876
46894
|
...deleteUnsupported ? {
|
|
46877
46895
|
deleteUnsupported: true,
|
|
46878
46896
|
effectiveCleanup: args.mode === "stop_and_delete" ? "stopped_only_records_remain" : "delete_unsupported_records_remain",
|
|
@@ -48495,6 +48513,11 @@ ${block}`);
|
|
|
48495
48513
|
repoIdentity: mesh.repoIdentity,
|
|
48496
48514
|
defaultBranch: mesh.defaultBranch,
|
|
48497
48515
|
refreshedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
48516
|
+
sourceOfTruth: {
|
|
48517
|
+
membership: meshRecord?.source === "inline_cache" ? "coordinator_inline_mesh_cache" : meshRecord?.source === "local_config" ? "local_mesh_config" : "inline_bootstrap_snapshot",
|
|
48518
|
+
coordinatorOwnsLiveTruth: meshRecord?.source !== "inline_bootstrap",
|
|
48519
|
+
historicalEvidenceOnly: ["recoveryHints", "ledger.summary", "queue.summary"]
|
|
48520
|
+
},
|
|
48498
48521
|
nodes: nodeStatuses,
|
|
48499
48522
|
queue: { tasks: queue, summary: queueSummary },
|
|
48500
48523
|
ledger: { entries: ledgerEntries, summary: ledgerSummary }
|