@adhdev/daemon-core 0.9.82-rc.248 → 0.9.82-rc.249
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 +3 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -17
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events-coordinator.d.ts +0 -21
- package/package.json +1 -1
- package/src/mesh/mesh-events-coordinator.ts +7 -23
package/dist/index.js
CHANGED
|
@@ -7549,7 +7549,6 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7549
7549
|
if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
|
|
7550
7550
|
return true;
|
|
7551
7551
|
});
|
|
7552
|
-
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7553
7552
|
if (coordinatorInstances.length === 0) {
|
|
7554
7553
|
if (queuePendingMeshCoordinatorEvent({
|
|
7555
7554
|
event: args.event,
|
|
@@ -7569,14 +7568,8 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7569
7568
|
}
|
|
7570
7569
|
return { success: true, forwarded: 0 };
|
|
7571
7570
|
}
|
|
7572
|
-
const
|
|
7573
|
-
|
|
7574
|
-
const s = coord.getState();
|
|
7575
|
-
const status = readNonEmptyString2(s.status).toLowerCase();
|
|
7576
|
-
const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
|
|
7577
|
-
return activeStatuses.has(status) || activeStatuses.has(activeChatStatus);
|
|
7578
|
-
});
|
|
7579
|
-
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
7571
|
+
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7572
|
+
if (!isTerminalEvent) {
|
|
7580
7573
|
if (queuePendingMeshCoordinatorEvent({
|
|
7581
7574
|
event: args.event,
|
|
7582
7575
|
meshId: args.meshId,
|
|
@@ -7591,16 +7584,9 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7591
7584
|
queuedAt: Date.now(),
|
|
7592
7585
|
...workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}
|
|
7593
7586
|
})) {
|
|
7594
|
-
|
|
7595
|
-
LOG.info("MeshEvents", `Queued ${args.event} for generating CLI coordinator (mesh ${args.meshId}) \u2014 will be delivered via auto-flush when coordinator returns to idle`);
|
|
7596
|
-
} else {
|
|
7597
|
-
LOG.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
7598
|
-
}
|
|
7587
|
+
LOG.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
7599
7588
|
}
|
|
7600
7589
|
}
|
|
7601
|
-
if (allCoordinatorsGenerating) {
|
|
7602
|
-
return { success: true, forwarded: 0, bufferedForGeneratingCoordinator: true };
|
|
7603
|
-
}
|
|
7604
7590
|
for (const coord of coordinatorInstances) {
|
|
7605
7591
|
const coordState = coord.getState();
|
|
7606
7592
|
LOG.info("MeshEvents", `Forwarding mesh event to coordinator ${coordState.instanceId}`);
|