@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.mjs
CHANGED
|
@@ -270,10 +270,10 @@ function readInjected(value) {
|
|
|
270
270
|
}
|
|
271
271
|
function getDaemonBuildInfo() {
|
|
272
272
|
if (cached) return cached;
|
|
273
|
-
const commit = readInjected(true ? "
|
|
274
|
-
const commitShort = readInjected(true ? "
|
|
275
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
276
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
273
|
+
const commit = readInjected(true ? "d05ccb2cbb8bc9e6a3a1282486507c3392076f14" : void 0) ?? "unknown";
|
|
274
|
+
const commitShort = readInjected(true ? "d05ccb2c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
275
|
+
const version = readInjected(true ? "0.9.82-rc.298" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
276
|
+
const builtAt = readInjected(true ? "2026-06-16T18:33:45.789Z" : void 0);
|
|
277
277
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
278
278
|
return cached;
|
|
279
279
|
}
|
|
@@ -7164,7 +7164,7 @@ function findRecentTerminalLedgerEvidence(args) {
|
|
|
7164
7164
|
if (args.sessionId && entry.sessionId === args.sessionId) {
|
|
7165
7165
|
return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
|
|
7166
7166
|
}
|
|
7167
|
-
if (!args.sessionId && args.nodeId && entry
|
|
7167
|
+
if (!args.sessionId && args.nodeId && meshNodeIdMatches(entry, args.nodeId)) {
|
|
7168
7168
|
return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
|
|
7169
7169
|
}
|
|
7170
7170
|
}
|
|
@@ -7377,6 +7377,7 @@ var init_mesh_events_stale = __esm({
|
|
|
7377
7377
|
init_mesh_delivery_policy();
|
|
7378
7378
|
init_mesh_events_pending();
|
|
7379
7379
|
init_mesh_events_utils();
|
|
7380
|
+
init_dist();
|
|
7380
7381
|
}
|
|
7381
7382
|
});
|
|
7382
7383
|
|
|
@@ -7560,9 +7561,10 @@ function resolveWorkerDelegateRouting(components, instanceId, deps) {
|
|
|
7560
7561
|
const mesh = meshIdFromRuntime ? deps.getMeshById(meshIdFromRuntime) : deps.getMeshByWorkspace(workspace);
|
|
7561
7562
|
const meshId = meshIdFromRuntime || readNonEmptyString2(mesh?.id);
|
|
7562
7563
|
if (!meshId) return reject("mesh_unresolved");
|
|
7563
|
-
const
|
|
7564
|
-
const
|
|
7565
|
-
const
|
|
7564
|
+
const stampedNode = runtimeNodeId ? mesh?.nodes?.find((n) => meshNodeIdMatches(n, runtimeNodeId)) : void 0;
|
|
7565
|
+
const targetNode = stampedNode || mesh?.nodes?.find((n) => n.workspace === workspace);
|
|
7566
|
+
const nodeId = runtimeNodeId || readNonEmptyString2(targetNode?.id);
|
|
7567
|
+
const nodeLabel = nodeId ? `Node '${nodeId}'` : `Agent at ${workspace}`;
|
|
7566
7568
|
return {
|
|
7567
7569
|
isDelegate: true,
|
|
7568
7570
|
meshId,
|
|
@@ -7643,6 +7645,7 @@ var init_mesh_routing = __esm({
|
|
|
7643
7645
|
init_mesh_ledger();
|
|
7644
7646
|
init_logger();
|
|
7645
7647
|
init_mesh_events_utils();
|
|
7648
|
+
init_dist();
|
|
7646
7649
|
UNROUTABLE_DIAGNOSTIC_STREAM = "__unroutable__";
|
|
7647
7650
|
UNROUTABLE_DIAGNOSTIC_DEDUP_MS = 60 * 1e3;
|
|
7648
7651
|
recentUnroutableDiagnostics = /* @__PURE__ */ new Map();
|
|
@@ -7802,7 +7805,7 @@ function hasRecentIntentionalCleanupStop(meshId, sessionId, nodeId) {
|
|
|
7802
7805
|
if (!Number.isNaN(timestamp) && timestamp < cutoff) break;
|
|
7803
7806
|
if (!isIntentionalCleanupStopEntry(entry)) continue;
|
|
7804
7807
|
if (sessionId && entry.sessionId === sessionId) return true;
|
|
7805
|
-
if (!sessionId && nodeId && entry
|
|
7808
|
+
if (!sessionId && nodeId && meshNodeIdMatches(entry, nodeId)) return true;
|
|
7806
7809
|
}
|
|
7807
7810
|
return false;
|
|
7808
7811
|
}
|
|
@@ -15491,9 +15494,8 @@ function buildClaudeInteractiveTuiAnswerSteps(prompt, response) {
|
|
|
15491
15494
|
const selectedIndex = question.options.findIndex((option) => option.label === label);
|
|
15492
15495
|
if (selectedIndex < 0) throw new Error(`Unknown option for ${question.questionId}: ${label}`);
|
|
15493
15496
|
steps.push(String(selectedIndex + 1));
|
|
15494
|
-
steps.push(" ");
|
|
15495
15497
|
}
|
|
15496
|
-
steps.push("
|
|
15498
|
+
steps.push(" ");
|
|
15497
15499
|
} else if (freeformText) {
|
|
15498
15500
|
const typeOptionIndex = question.options.findIndex((o) => /^Type something\.?$/i.test(o.label));
|
|
15499
15501
|
const optionNumber = typeOptionIndex >= 0 ? typeOptionIndex + 1 : question.options.length;
|