@adhdev/daemon-standalone 0.9.82-rc.233 → 0.9.82-rc.235
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
CHANGED
|
@@ -37306,7 +37306,7 @@ Next step: ${nextStep}`;
|
|
|
37306
37306
|
if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
|
|
37307
37307
|
return true;
|
|
37308
37308
|
});
|
|
37309
|
-
const
|
|
37309
|
+
const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
|
|
37310
37310
|
if (coordinatorInstances.length === 0) {
|
|
37311
37311
|
if (queuePendingMeshCoordinatorEvent({
|
|
37312
37312
|
event: args.event,
|
|
@@ -37326,13 +37326,13 @@ Next step: ${nextStep}`;
|
|
|
37326
37326
|
}
|
|
37327
37327
|
return { success: true, forwarded: 0 };
|
|
37328
37328
|
}
|
|
37329
|
-
const allCoordinatorsGenerating =
|
|
37329
|
+
const allCoordinatorsGenerating = isTerminalEvent && coordinatorInstances.every((inst) => {
|
|
37330
37330
|
const s = inst.getState();
|
|
37331
37331
|
const status = readNonEmptyString2(s.status).toLowerCase();
|
|
37332
37332
|
const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
|
|
37333
37333
|
return status === "generating" || status === "streaming" || status === "long_generating" || activeChatStatus === "generating" || activeChatStatus === "streaming";
|
|
37334
37334
|
});
|
|
37335
|
-
if (!
|
|
37335
|
+
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
37336
37336
|
if (queuePendingMeshCoordinatorEvent({
|
|
37337
37337
|
event: args.event,
|
|
37338
37338
|
meshId: args.meshId,
|