@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.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 ? "396cb9c4084ea658cd3606b76948987cd875f138" : void 0) ?? "unknown";
|
|
274
|
+
const commitShort = readInjected(true ? "396cb9c4" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
275
|
+
const version = readInjected(true ? "0.9.82-rc.290" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
276
|
+
const builtAt = readInjected(true ? "2026-06-16T06:39:46.948Z" : void 0);
|
|
277
277
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
278
278
|
return cached;
|
|
279
279
|
}
|
|
@@ -7520,7 +7520,7 @@ function isDuplicateRefineTerminalEvent(meshId, eventName, metadataEvent) {
|
|
|
7520
7520
|
}
|
|
7521
7521
|
function tryAssignQueueTask(components, meshId, nodeId, sessionId, providerType) {
|
|
7522
7522
|
const mesh = getMeshWithCache(components, meshId);
|
|
7523
|
-
const node = mesh?.nodes.find((n) => n
|
|
7523
|
+
const node = mesh?.nodes.find((n) => readMeshNodeId(n) === nodeId);
|
|
7524
7524
|
const capabilityTags = buildMeshNodeCapabilityTags(node, providerType);
|
|
7525
7525
|
const task = claimNextTask(meshId, nodeId, sessionId, capabilityTags);
|
|
7526
7526
|
if (!task) {
|
|
@@ -7787,6 +7787,9 @@ async function resolveUsableProvider(components, nodeId, node, requiredTags) {
|
|
|
7787
7787
|
}
|
|
7788
7788
|
return { reason: `provider_priority_unusable: ${failed.join("; ") || nodeId}` };
|
|
7789
7789
|
}
|
|
7790
|
+
function readMeshNodeId(node) {
|
|
7791
|
+
return readNonEmptyString2(node?.id) || readNonEmptyString2(node?.nodeId) || readNonEmptyString2(node?.node_id);
|
|
7792
|
+
}
|
|
7790
7793
|
async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
7791
7794
|
const queue = getQueue(meshId);
|
|
7792
7795
|
const pending = queue.filter((task) => task.status === "pending");
|
|
@@ -7802,7 +7805,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
|
7802
7805
|
continue;
|
|
7803
7806
|
}
|
|
7804
7807
|
const candidateNodes = Array.isArray(mesh?.nodes) ? mesh.nodes.filter((node) => {
|
|
7805
|
-
if (task.targetNodeId && node
|
|
7808
|
+
if (task.targetNodeId && readMeshNodeId(node) !== task.targetNodeId) return false;
|
|
7806
7809
|
if (task.requiredTags?.length) {
|
|
7807
7810
|
const priorities = normalizeProviderPriority(node?.policy);
|
|
7808
7811
|
const providerCandidates = priorities.length ? priorities : [void 0];
|
|
@@ -7817,7 +7820,7 @@ async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
|
|
|
7817
7820
|
continue;
|
|
7818
7821
|
}
|
|
7819
7822
|
for (const node of candidateNodes) {
|
|
7820
|
-
const nodeId =
|
|
7823
|
+
const nodeId = readMeshNodeId(node);
|
|
7821
7824
|
if (!nodeId) continue;
|
|
7822
7825
|
const launchKey = `${meshId}:${nodeId}`;
|
|
7823
7826
|
const now = Date.now();
|