@adhdev/daemon-standalone 0.9.82-rc.248 → 0.9.82-rc.250

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,6 @@ Next step: ${nextStep}`;
37306
37306
  if (workerCoordinatorDaemonId && localDaemonId && workerCoordinatorDaemonId !== localDaemonId) return false;
37307
37307
  return true;
37308
37308
  });
37309
- const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
37310
37309
  if (coordinatorInstances.length === 0) {
37311
37310
  if (queuePendingMeshCoordinatorEvent({
37312
37311
  event: args.event,
@@ -37326,14 +37325,8 @@ Next step: ${nextStep}`;
37326
37325
  }
37327
37326
  return { success: true, forwarded: 0 };
37328
37327
  }
37329
- const activeStatuses = /* @__PURE__ */ new Set(["generating", "streaming", "long_generating", "working", "starting", "waiting_approval"]);
37330
- const allCoordinatorsGenerating = isTerminalEvent && coordinatorInstances.every((coord) => {
37331
- const s = coord.getState();
37332
- const status = readNonEmptyString2(s.status).toLowerCase();
37333
- const activeChatStatus = readNonEmptyString2(s.activeChat?.status).toLowerCase();
37334
- return activeStatuses.has(status) || activeStatuses.has(activeChatStatus);
37335
- });
37336
- if (!isTerminalEvent || allCoordinatorsGenerating) {
37328
+ const isTerminalEvent = (/* @__PURE__ */ new Set(["refine:completed", "refine:failed", "agent:generating_completed", "agent:stopped"])).has(args.event);
37329
+ if (!isTerminalEvent) {
37337
37330
  if (queuePendingMeshCoordinatorEvent({
37338
37331
  event: args.event,
37339
37332
  meshId: args.meshId,
@@ -37348,16 +37341,9 @@ Next step: ${nextStep}`;
37348
37341
  queuedAt: Date.now(),
37349
37342
  ...workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}
37350
37343
  })) {
37351
- if (allCoordinatorsGenerating) {
37352
- LOG2.info("MeshEvents", `Queued ${args.event} for generating CLI coordinator (mesh ${args.meshId}) \u2014 will be delivered via auto-flush when coordinator returns to idle`);
37353
- } else {
37354
- LOG2.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
37355
- }
37344
+ LOG2.info("MeshEvents", `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
37356
37345
  }
37357
37346
  }
37358
- if (allCoordinatorsGenerating) {
37359
- return { success: true, forwarded: 0, bufferedForGeneratingCoordinator: true };
37360
- }
37361
37347
  for (const coord of coordinatorInstances) {
37362
37348
  const coordState = coord.getState();
37363
37349
  LOG2.info("MeshEvents", `Forwarding mesh event to coordinator ${coordState.instanceId}`);