@adhdev/daemon-standalone 0.9.82-rc.289 → 0.9.82-rc.290

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 ? "76c7a53ab668410cb9115c63a03070fb48fd7cb5" : void 0) ?? "unknown";
29987
- const commitShort = readInjected(true ? "76c7a53a" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
- const version2 = readInjected(true ? "0.9.82-rc.289" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
- const builtAt = readInjected(true ? "2026-06-16T05:38:25.113Z" : void 0);
29986
+ const commit = readInjected(true ? "396cb9c4084ea658cd3606b76948987cd875f138" : void 0) ?? "unknown";
29987
+ const commitShort = readInjected(true ? "396cb9c4" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
+ const version2 = readInjected(true ? "0.9.82-rc.290" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
+ const builtAt = readInjected(true ? "2026-06-16T06:40:12.704Z" : void 0);
29990
29990
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
29991
29991
  return cached2;
29992
29992
  }
@@ -37286,7 +37286,7 @@ Next step: ${nextStep}`;
37286
37286
  }
37287
37287
  function tryAssignQueueTask(components, meshId, nodeId, sessionId, providerType) {
37288
37288
  const mesh = getMeshWithCache(components, meshId);
37289
- const node = mesh?.nodes.find((n) => n.id === nodeId);
37289
+ const node = mesh?.nodes.find((n) => readMeshNodeId(n) === nodeId);
37290
37290
  const capabilityTags = buildMeshNodeCapabilityTags(node, providerType);
37291
37291
  const task = claimNextTask(meshId, nodeId, sessionId, capabilityTags);
37292
37292
  if (!task) {
@@ -37553,6 +37553,9 @@ Next step: ${nextStep}`;
37553
37553
  }
37554
37554
  return { reason: `provider_priority_unusable: ${failed.join("; ") || nodeId}` };
37555
37555
  }
37556
+ function readMeshNodeId(node) {
37557
+ return readNonEmptyString2(node?.id) || readNonEmptyString2(node?.nodeId) || readNonEmptyString2(node?.node_id);
37558
+ }
37556
37559
  async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
37557
37560
  const queue = getQueue(meshId);
37558
37561
  const pending = queue.filter((task) => task.status === "pending");
@@ -37568,7 +37571,7 @@ Next step: ${nextStep}`;
37568
37571
  continue;
37569
37572
  }
37570
37573
  const candidateNodes = Array.isArray(mesh?.nodes) ? mesh.nodes.filter((node) => {
37571
- if (task.targetNodeId && node?.id !== task.targetNodeId) return false;
37574
+ if (task.targetNodeId && readMeshNodeId(node) !== task.targetNodeId) return false;
37572
37575
  if (task.requiredTags?.length) {
37573
37576
  const priorities = normalizeProviderPriority(node?.policy);
37574
37577
  const providerCandidates = priorities.length ? priorities : [void 0];
@@ -37583,7 +37586,7 @@ Next step: ${nextStep}`;
37583
37586
  continue;
37584
37587
  }
37585
37588
  for (const node of candidateNodes) {
37586
- const nodeId = readNonEmptyString2(node?.id);
37589
+ const nodeId = readMeshNodeId(node);
37587
37590
  if (!nodeId) continue;
37588
37591
  const launchKey = `${meshId}:${nodeId}`;
37589
37592
  const now = Date.now();