@adhdev/daemon-standalone 0.9.82-rc.250 → 0.9.82-rc.251
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 +18 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35483,6 +35483,9 @@ Next step: ${nextStep}`;
|
|
|
35483
35483
|
}
|
|
35484
35484
|
function buildPendingEventFingerprint(event) {
|
|
35485
35485
|
const metadata = readRecord3(event.metadataEvent) || {};
|
|
35486
|
+
if (event.event === "worktree_bootstrap_complete" || event.event === "worktree_bootstrap_failed") {
|
|
35487
|
+
return [event.meshId, event.event, event.nodeId || ""].join("::");
|
|
35488
|
+
}
|
|
35486
35489
|
const sessionId = resolveEventSessionId(metadata);
|
|
35487
35490
|
const providerSessionId = readNonEmptyString2(metadata.providerSessionId);
|
|
35488
35491
|
const taskId = readNonEmptyString2(metadata.taskId) || readNonEmptyString2(readRecord3(metadata.payload)?.taskId);
|
|
@@ -37325,24 +37328,21 @@ Next step: ${nextStep}`;
|
|
|
37325
37328
|
}
|
|
37326
37329
|
return { success: true, forwarded: 0 };
|
|
37327
37330
|
}
|
|
37328
|
-
|
|
37329
|
-
|
|
37330
|
-
|
|
37331
|
-
|
|
37332
|
-
|
|
37333
|
-
|
|
37334
|
-
|
|
37335
|
-
|
|
37336
|
-
|
|
37337
|
-
|
|
37338
|
-
|
|
37339
|
-
|
|
37340
|
-
|
|
37341
|
-
|
|
37342
|
-
|
|
37343
|
-
})) {
|
|
37344
|
-
LOG2.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
37345
|
-
}
|
|
37331
|
+
if (queuePendingMeshCoordinatorEvent({
|
|
37332
|
+
event: args.event,
|
|
37333
|
+
meshId: args.meshId,
|
|
37334
|
+
nodeLabel: args.nodeLabel,
|
|
37335
|
+
nodeId: args.nodeId || void 0,
|
|
37336
|
+
workspace: readNonEmptyString2(args.metadataEvent.workspace),
|
|
37337
|
+
metadataEvent: {
|
|
37338
|
+
...args.metadataEvent,
|
|
37339
|
+
...recoveryContext ? { recoveryContext } : {}
|
|
37340
|
+
},
|
|
37341
|
+
coordinatorMessage: messageText,
|
|
37342
|
+
queuedAt: Date.now(),
|
|
37343
|
+
...workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}
|
|
37344
|
+
})) {
|
|
37345
|
+
LOG2.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
37346
37346
|
}
|
|
37347
37347
|
for (const coord of coordinatorInstances) {
|
|
37348
37348
|
const coordState = coord.getState();
|