@adhdev/daemon-standalone 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 CHANGED
@@ -29983,10 +29983,10 @@ var require_dist3 = __commonJS({
29983
29983
  }
29984
29984
  function getDaemonBuildInfo() {
29985
29985
  if (cached2) return cached2;
29986
- const commit = readInjected(true ? "473dc8f049daf72ff7977b90e35ddde4e54f1c2f" : void 0) ?? "unknown";
29987
- const commitShort = readInjected(true ? "473dc8f0" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
- const version2 = readInjected(true ? "0.9.82-rc.296" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
- const builtAt = readInjected(true ? "2026-06-16T14:24:57.627Z" : void 0);
29986
+ const commit = readInjected(true ? "d05ccb2cbb8bc9e6a3a1282486507c3392076f14" : void 0) ?? "unknown";
29987
+ const commitShort = readInjected(true ? "d05ccb2c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
+ const version2 = readInjected(true ? "0.9.82-rc.298" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
+ const builtAt = readInjected(true ? "2026-06-16T18:34:10.679Z" : void 0);
29990
29990
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
29991
29991
  return cached2;
29992
29992
  }
@@ -36930,7 +36930,7 @@ Next step: ${nextStep}`;
36930
36930
  if (args.sessionId && entry.sessionId === args.sessionId) {
36931
36931
  return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
36932
36932
  }
36933
- if (!args.sessionId && args.nodeId && entry.nodeId === args.nodeId) {
36933
+ if (!args.sessionId && args.nodeId && meshNodeIdMatches(entry, args.nodeId)) {
36934
36934
  return { id: entry.id, kind: entry.kind, payload: entry.payload || {}, timestamp: entry.timestamp };
36935
36935
  }
36936
36936
  }
@@ -37143,6 +37143,7 @@ Next step: ${nextStep}`;
37143
37143
  init_mesh_delivery_policy();
37144
37144
  init_mesh_events_pending();
37145
37145
  init_mesh_events_utils();
37146
+ init_dist();
37146
37147
  }
37147
37148
  });
37148
37149
  function parseVersion(raw) {
@@ -37326,9 +37327,10 @@ Next step: ${nextStep}`;
37326
37327
  const mesh = meshIdFromRuntime ? deps.getMeshById(meshIdFromRuntime) : deps.getMeshByWorkspace(workspace);
37327
37328
  const meshId = meshIdFromRuntime || readNonEmptyString2(mesh?.id);
37328
37329
  if (!meshId) return reject("mesh_unresolved");
37329
- const targetNode = mesh?.nodes?.find((n) => n.workspace === workspace);
37330
- const nodeId = readNonEmptyString2(targetNode?.id) || runtimeNodeId;
37331
- const nodeLabel = targetNode ? `Node '${targetNode.id}'` : runtimeNodeId ? `Node '${runtimeNodeId}'` : `Agent at ${workspace}`;
37330
+ const stampedNode = runtimeNodeId ? mesh?.nodes?.find((n) => meshNodeIdMatches(n, runtimeNodeId)) : void 0;
37331
+ const targetNode = stampedNode || mesh?.nodes?.find((n) => n.workspace === workspace);
37332
+ const nodeId = runtimeNodeId || readNonEmptyString2(targetNode?.id);
37333
+ const nodeLabel = nodeId ? `Node '${nodeId}'` : `Agent at ${workspace}`;
37332
37334
  return {
37333
37335
  isDelegate: true,
37334
37336
  meshId,
@@ -37411,6 +37413,7 @@ Next step: ${nextStep}`;
37411
37413
  init_mesh_ledger();
37412
37414
  init_logger();
37413
37415
  init_mesh_events_utils();
37416
+ init_dist();
37414
37417
  UNROUTABLE_DIAGNOSTIC_STREAM = "__unroutable__";
37415
37418
  UNROUTABLE_DIAGNOSTIC_DEDUP_MS = 60 * 1e3;
37416
37419
  recentUnroutableDiagnostics = /* @__PURE__ */ new Map();
@@ -37567,7 +37570,7 @@ Next step: ${nextStep}`;
37567
37570
  if (!Number.isNaN(timestamp) && timestamp < cutoff) break;
37568
37571
  if (!isIntentionalCleanupStopEntry(entry)) continue;
37569
37572
  if (sessionId && entry.sessionId === sessionId) return true;
37570
- if (!sessionId && nodeId && entry.nodeId === nodeId) return true;
37573
+ if (!sessionId && nodeId && meshNodeIdMatches(entry, nodeId)) return true;
37571
37574
  }
37572
37575
  return false;
37573
37576
  }
@@ -45599,9 +45602,8 @@ ${lastSnapshot}`;
45599
45602
  const selectedIndex = question.options.findIndex((option) => option.label === label);
45600
45603
  if (selectedIndex < 0) throw new Error(`Unknown option for ${question.questionId}: ${label}`);
45601
45604
  steps.push(String(selectedIndex + 1));
45602
- steps.push(" ");
45603
45605
  }
45604
- steps.push("\r");
45606
+ steps.push(" ");
45605
45607
  } else if (freeformText) {
45606
45608
  const typeOptionIndex = question.options.findIndex((o) => /^Type something\.?$/i.test(o.label));
45607
45609
  const optionNumber = typeOptionIndex >= 0 ? typeOptionIndex + 1 : question.options.length;