@adhdev/daemon-core 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 +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/mesh/mesh-events-coordinator.ts +15 -3
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 ? "396cb9c4084ea658cd3606b76948987cd875f138" : void 0) ?? "unknown";
|
|
279
|
+
const commitShort = readInjected(true ? "396cb9c4" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
280
|
+
const version = readInjected(true ? "0.9.82-rc.290" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
281
|
+
const builtAt = readInjected(true ? "2026-06-16T06:39:46.948Z" : void 0);
|
|
282
282
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
283
283
|
return cached;
|
|
284
284
|
}
|
|
@@ -7526,7 +7526,7 @@ function isDuplicateRefineTerminalEvent(meshId, eventName, metadataEvent) {
|
|
|
7526
7526
|
}
|
|
7527
7527
|
function tryAssignQueueTask(components, meshId, nodeId, sessionId, providerType) {
|
|
7528
7528
|
const mesh = getMeshWithCache(components, meshId);
|
|
7529
|
-
const node = mesh?.nodes.find((n) => n
|
|
7529
|
+
const node = mesh?.nodes.find((n) => readMeshNodeId(n) === nodeId);
|
|
7530
7530
|
const capabilityTags = buildMeshNodeCapabilityTags(node, providerType);
|
|
7531
7531
|
const task = claimNextTask(meshId, nodeId, sessionId, capabilityTags);
|
|
7532
7532
|
if (!task) {
|
|
@@ -7793,6 +7793,9 @@ async function resolveUsableProvider(components, nodeId, node, requiredTags) {
|
|
|
7793
7793
|
}
|
|
7794
7794
|
return { reason: `provider_priority_unusable: ${failed.join("; ") || nodeId}` };
|
|
7795
7795
|
}
|
|
7796
|
+
function readMeshNodeId(node) {
|
|
7797
|
+
return readNonEmptyString2(node?.id) || readNonEmptyString2(node?.nodeId) || readNonEmptyString2(node?.node_id);
|
|
7798
|
+
}
|
|
7796
7799
|
async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
7797
7800
|
const queue = getQueue(meshId);
|
|
7798
7801
|
const pending = queue.filter((task) => task.status === "pending");
|
|
@@ -7808,7 +7811,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
|
7808
7811
|
continue;
|
|
7809
7812
|
}
|
|
7810
7813
|
const candidateNodes = Array.isArray(mesh?.nodes) ? mesh.nodes.filter((node) => {
|
|
7811
|
-
if (task.targetNodeId && node
|
|
7814
|
+
if (task.targetNodeId && readMeshNodeId(node) !== task.targetNodeId) return false;
|
|
7812
7815
|
if (task.requiredTags?.length) {
|
|
7813
7816
|
const priorities = normalizeProviderPriority(node?.policy);
|
|
7814
7817
|
const providerCandidates = priorities.length ? priorities : [void 0];
|
|
@@ -7823,7 +7826,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
|
7823
7826
|
continue;
|
|
7824
7827
|
}
|
|
7825
7828
|
for (const node of candidateNodes) {
|
|
7826
|
-
const nodeId =
|
|
7829
|
+
const nodeId = readMeshNodeId(node);
|
|
7827
7830
|
if (!nodeId) continue;
|
|
7828
7831
|
const launchKey = `${meshId}:${nodeId}`;
|
|
7829
7832
|
const now = Date.now();
|