@adhdev/daemon-core 0.9.82-rc.296 → 0.9.82-rc.298
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 +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/mesh/mesh-events-coordinator.ts +5 -2
- package/src/mesh/mesh-events-stale.ts +8 -1
- package/src/mesh/mesh-routing.ts +23 -7
- package/src/providers/types/interactive-prompt.ts +19 -11
package/dist/index.js
CHANGED
|
@@ -275,10 +275,10 @@ function readInjected(value) {
|
|
|
275
275
|
}
|
|
276
276
|
function getDaemonBuildInfo() {
|
|
277
277
|
if (cached) return cached;
|
|
278
|
-
const commit = readInjected(true ? "
|
|
279
|
-
const commitShort = readInjected(true ? "
|
|
280
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
281
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
278
|
+
const commit = readInjected(true ? "d05ccb2cbb8bc9e6a3a1282486507c3392076f14" : void 0) ?? "unknown";
|
|
279
|
+
const commitShort = readInjected(true ? "d05ccb2c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
280
|
+
const version = readInjected(true ? "0.9.82-rc.298" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
281
|
+
const builtAt = readInjected(true ? "2026-06-16T18:33:45.789Z" : void 0);
|
|
282
282
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
283
283
|
return cached;
|
|
284
284
|
}
|
|
@@ -7170,7 +7170,7 @@ function findRecentTerminalLedgerEvidence(args) {
|
|
|
7170
7170
|
if (args.sessionId && entry.sessionId === args.sessionId) {
|
|
7171
7171
|
return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
|
|
7172
7172
|
}
|
|
7173
|
-
if (!args.sessionId && args.nodeId && entry
|
|
7173
|
+
if (!args.sessionId && args.nodeId && meshNodeIdMatches(entry, args.nodeId)) {
|
|
7174
7174
|
return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
|
|
7175
7175
|
}
|
|
7176
7176
|
}
|
|
@@ -7383,6 +7383,7 @@ var init_mesh_events_stale = __esm({
|
|
|
7383
7383
|
init_mesh_delivery_policy();
|
|
7384
7384
|
init_mesh_events_pending();
|
|
7385
7385
|
init_mesh_events_utils();
|
|
7386
|
+
init_dist();
|
|
7386
7387
|
}
|
|
7387
7388
|
});
|
|
7388
7389
|
|
|
@@ -7567,9 +7568,10 @@ function resolveWorkerDelegateRouting(components, instanceId, deps) {
|
|
|
7567
7568
|
const mesh = meshIdFromRuntime ? deps.getMeshById(meshIdFromRuntime) : deps.getMeshByWorkspace(workspace);
|
|
7568
7569
|
const meshId = meshIdFromRuntime || readNonEmptyString2(mesh?.id);
|
|
7569
7570
|
if (!meshId) return reject("mesh_unresolved");
|
|
7570
|
-
const
|
|
7571
|
-
const
|
|
7572
|
-
const
|
|
7571
|
+
const stampedNode = runtimeNodeId ? mesh?.nodes?.find((n) => meshNodeIdMatches(n, runtimeNodeId)) : void 0;
|
|
7572
|
+
const targetNode = stampedNode || mesh?.nodes?.find((n) => n.workspace === workspace);
|
|
7573
|
+
const nodeId = runtimeNodeId || readNonEmptyString2(targetNode?.id);
|
|
7574
|
+
const nodeLabel = nodeId ? `Node '${nodeId}'` : `Agent at ${workspace}`;
|
|
7573
7575
|
return {
|
|
7574
7576
|
isDelegate: true,
|
|
7575
7577
|
meshId,
|
|
@@ -7650,6 +7652,7 @@ var init_mesh_routing = __esm({
|
|
|
7650
7652
|
init_mesh_ledger();
|
|
7651
7653
|
init_logger();
|
|
7652
7654
|
init_mesh_events_utils();
|
|
7655
|
+
init_dist();
|
|
7653
7656
|
UNROUTABLE_DIAGNOSTIC_STREAM = "__unroutable__";
|
|
7654
7657
|
UNROUTABLE_DIAGNOSTIC_DEDUP_MS = 60 * 1e3;
|
|
7655
7658
|
recentUnroutableDiagnostics = /* @__PURE__ */ new Map();
|
|
@@ -7808,7 +7811,7 @@ function hasRecentIntentionalCleanupStop(meshId, sessionId, nodeId) {
|
|
|
7808
7811
|
if (!Number.isNaN(timestamp) && timestamp < cutoff) break;
|
|
7809
7812
|
if (!isIntentionalCleanupStopEntry(entry)) continue;
|
|
7810
7813
|
if (sessionId && entry.sessionId === sessionId) return true;
|
|
7811
|
-
if (!sessionId && nodeId && entry
|
|
7814
|
+
if (!sessionId && nodeId && meshNodeIdMatches(entry, nodeId)) return true;
|
|
7812
7815
|
}
|
|
7813
7816
|
return false;
|
|
7814
7817
|
}
|
|
@@ -15832,9 +15835,8 @@ function buildClaudeInteractiveTuiAnswerSteps(prompt, response) {
|
|
|
15832
15835
|
const selectedIndex = question.options.findIndex((option) => option.label === label);
|
|
15833
15836
|
if (selectedIndex < 0) throw new Error(`Unknown option for ${question.questionId}: ${label}`);
|
|
15834
15837
|
steps.push(String(selectedIndex + 1));
|
|
15835
|
-
steps.push(" ");
|
|
15836
15838
|
}
|
|
15837
|
-
steps.push("
|
|
15839
|
+
steps.push(" ");
|
|
15838
15840
|
} else if (freeformText) {
|
|
15839
15841
|
const typeOptionIndex = question.options.findIndex((o) => /^Type something\.?$/i.test(o.label));
|
|
15840
15842
|
const optionNumber = typeOptionIndex >= 0 ? typeOptionIndex + 1 : question.options.length;
|