@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.mjs
CHANGED
|
@@ -7543,7 +7543,6 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7543
7543
|
if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
|
|
7544
7544
|
return true;
|
|
7545
7545
|
});
|
|
7546
|
-
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7547
7546
|
if (coordinatorInstances.length === 0) {
|
|
7548
7547
|
if (queuePendingMeshCoordinatorEvent({
|
|
7549
7548
|
event: args.event,
|
|
@@ -7563,14 +7562,8 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7563
7562
|
}
|
|
7564
7563
|
return { success: true, forwarded: 0 };
|
|
7565
7564
|
}
|
|
7566
|
-
const
|
|
7567
|
-
|
|
7568
|
-
const s = coord.getState();
|
|
7569
|
-
const status = readNonEmptyString2(s.status).toLowerCase();
|
|
7570
|
-
const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
|
|
7571
|
-
return activeStatuses.has(status) || activeStatuses.has(activeChatStatus);
|
|
7572
|
-
});
|
|
7573
|
-
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
7565
|
+
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
7566
|
+
if (!isTerminalEvent) {
|
|
7574
7567
|
if (queuePendingMeshCoordinatorEvent({
|
|
7575
7568
|
event: args.event,
|
|
7576
7569
|
meshId: args.meshId,
|
|
@@ -7585,16 +7578,9 @@ function injectMeshSystemMessage(components, args) {
|
|
|
7585
7578
|
queuedAt: Date.now(),
|
|
7586
7579
|
...workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}
|
|
7587
7580
|
})) {
|
|
7588
|
-
|
|
7589
|
-
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`);
|
|
7590
|
-
} else {
|
|
7591
|
-
LOG.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
7592
|
-
}
|
|
7581
|
+
LOG.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
7593
7582
|
}
|
|
7594
7583
|
}
|
|
7595
|
-
if (allCoordinatorsGenerating) {
|
|
7596
|
-
return { success: true, forwarded: 0, bufferedForGeneratingCoordinator: true };
|
|
7597
|
-
}
|
|
7598
7584
|
for (const coord of coordinatorInstances) {
|
|
7599
7585
|
const coordState = coord.getState();
|
|
7600
7586
|
LOG.info("MeshEvents", `Forwarding mesh event to coordinator ${coordState.instanceId}`);
|