@adhdev/daemon-standalone 0.9.82-rc.319 → 0.9.82-rc.320
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 +25 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30075,10 +30075,10 @@ var require_dist3 = __commonJS({
|
|
|
30075
30075
|
}
|
|
30076
30076
|
function getDaemonBuildInfo() {
|
|
30077
30077
|
if (cached2) return cached2;
|
|
30078
|
-
const commit = readInjected(true ? "
|
|
30079
|
-
const commitShort = readInjected(true ? "
|
|
30080
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30081
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
30078
|
+
const commit = readInjected(true ? "bbaf30f95c09531cec77fb48a8cf6d38b3b6d7f9" : void 0) ?? "unknown";
|
|
30079
|
+
const commitShort = readInjected(true ? "bbaf30f9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30080
|
+
const version2 = readInjected(true ? "0.9.82-rc.320" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30081
|
+
const builtAt = readInjected(true ? "2026-06-19T01:17:04.320Z" : void 0);
|
|
30082
30082
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30083
30083
|
return cached2;
|
|
30084
30084
|
}
|
|
@@ -38949,6 +38949,13 @@ Next step: ${nextStep}`;
|
|
|
38949
38949
|
markAutoLaunch(meshId, task.id, { status: "skipped", reason: "target_session_constraint" });
|
|
38950
38950
|
continue;
|
|
38951
38951
|
}
|
|
38952
|
+
if (task.autoLaunch?.status === "completed" && task.autoLaunch.sessionId) {
|
|
38953
|
+
const launchedAtMs = Date.parse(task.autoLaunch.updatedAt);
|
|
38954
|
+
if (Number.isFinite(launchedAtMs) && Date.now() - launchedAtMs < AUTO_LAUNCH_AWAIT_CLAIM_MS) {
|
|
38955
|
+
recordAutoLaunchEvent(meshId, { phase: "skipped", taskId: task.id, reason: "awaiting_launched_session_claim", nodeId: task.autoLaunch.nodeId, sessionId: task.autoLaunch.sessionId });
|
|
38956
|
+
continue;
|
|
38957
|
+
}
|
|
38958
|
+
}
|
|
38952
38959
|
const candidateNodes = Array.isArray(mesh?.nodes) ? mesh.nodes.filter((node) => {
|
|
38953
38960
|
if (task.targetNodeId && readMeshNodeId(node) !== task.targetNodeId) return false;
|
|
38954
38961
|
if (task.requiredTags?.length) {
|
|
@@ -39666,7 +39673,13 @@ Next step: ${nextStep}`;
|
|
|
39666
39673
|
metadataEvent: args.metadataEvent,
|
|
39667
39674
|
recoveryContext
|
|
39668
39675
|
});
|
|
39669
|
-
if (!messageText)
|
|
39676
|
+
if (!messageText) {
|
|
39677
|
+
const isSilentClaimRelevantEvent = args.event === "agent:ready" || args.event === "agent:generating_started";
|
|
39678
|
+
const coordinatorIsRemote = !!workerCoordinatorDaemonId && !resolveCoordinatorDrainDaemonIds(components).includes(workerCoordinatorDaemonId);
|
|
39679
|
+
if (!(isSilentClaimRelevantEvent && coordinatorIsRemote)) {
|
|
39680
|
+
return { success: false, error: "unsupported mesh event" };
|
|
39681
|
+
}
|
|
39682
|
+
}
|
|
39670
39683
|
const pendingEvent = {
|
|
39671
39684
|
event: args.event,
|
|
39672
39685
|
meshId: args.meshId,
|
|
@@ -39677,7 +39690,11 @@ Next step: ${nextStep}`;
|
|
|
39677
39690
|
...args.metadataEvent,
|
|
39678
39691
|
...recoveryContext ? { recoveryContext } : {}
|
|
39679
39692
|
},
|
|
39680
|
-
|
|
39693
|
+
// Silent lifecycle events (agent:ready / agent:generating_started) carry no
|
|
39694
|
+
// coordinator message; they are queued only so the coordinator re-runs the
|
|
39695
|
+
// remote-claim state machine on pull. injectPendingIntoCoordinator skips
|
|
39696
|
+
// entries without a coordinatorMessage, so a live CLI coordinator is not spammed.
|
|
39697
|
+
...messageText ? { coordinatorMessage: messageText } : {},
|
|
39681
39698
|
queuedAt: Date.now(),
|
|
39682
39699
|
...workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}
|
|
39683
39700
|
};
|
|
@@ -39840,6 +39857,7 @@ Next step: ${nextStep}`;
|
|
|
39840
39857
|
var autoLaunchInProgress;
|
|
39841
39858
|
var autoLaunchCooldownUntil;
|
|
39842
39859
|
var AUTO_LAUNCH_COOLDOWN_MS;
|
|
39860
|
+
var AUTO_LAUNCH_AWAIT_CLAIM_MS;
|
|
39843
39861
|
var lastAutoLaunchLedgerKey;
|
|
39844
39862
|
var AUTO_LAUNCH_LEDGER_DEDUP_MAX;
|
|
39845
39863
|
var MESH_COORDINATOR_EVENTS;
|
|
@@ -39875,6 +39893,7 @@ Next step: ${nextStep}`;
|
|
|
39875
39893
|
autoLaunchInProgress = /* @__PURE__ */ new Set();
|
|
39876
39894
|
autoLaunchCooldownUntil = /* @__PURE__ */ new Map();
|
|
39877
39895
|
AUTO_LAUNCH_COOLDOWN_MS = 5e3;
|
|
39896
|
+
AUTO_LAUNCH_AWAIT_CLAIM_MS = 9e4;
|
|
39878
39897
|
lastAutoLaunchLedgerKey = /* @__PURE__ */ new Map();
|
|
39879
39898
|
AUTO_LAUNCH_LEDGER_DEDUP_MAX = 2e3;
|
|
39880
39899
|
MESH_COORDINATOR_EVENTS = /* @__PURE__ */ new Set([
|