@adhdev/daemon-standalone 0.9.77-rc.19 → 0.9.77-rc.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-standalone",
3
- "version": "0.9.77-rc.19",
3
+ "version": "0.9.77-rc.20",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -26346,6 +26346,15 @@ function injectMeshSystemMessage(components, args) {
26346
26346
  }, 500);
26347
26347
  }
26348
26348
  }
26349
+ } else if (args.event === "agent:ready") {
26350
+ const sessionId = readNonEmptyString(args.metadataEvent.targetSessionId);
26351
+ const nodeId = readNonEmptyString(args.metadataEvent.nodeId) || readNonEmptyString(args.metadataEvent.meshNodeId);
26352
+ const providerType = readNonEmptyString(args.metadataEvent.providerType);
26353
+ if (sessionId && nodeId && providerType) {
26354
+ setTimeout(() => {
26355
+ tryAssignQueueTask(components, args.meshId, nodeId, sessionId, providerType);
26356
+ }, 500);
26357
+ }
26349
26358
  } else if (args.event === "agent:stopped") {
26350
26359
  const sessionId = readNonEmptyString(args.metadataEvent.targetSessionId);
26351
26360
  if (sessionId) {
@@ -41341,6 +41350,7 @@ Follow these recovery rules:
41341
41350
  "agent:generating_completed",
41342
41351
  "agent:waiting_approval",
41343
41352
  "agent:stopped",
41353
+ "agent:ready",
41344
41354
  "monitor:long_generating"
41345
41355
  ]);
41346
41356
  EVENT_TO_LEDGER_KIND = {
@@ -48310,6 +48320,8 @@ ${effect.notification.body || ""}`.trim();
48310
48320
  this.completedDebounceTimer = null;
48311
48321
  }, 3e3);
48312
48322
  }
48323
+ } else if (newStatus === "idle" && this.lastStatus === "starting") {
48324
+ this.pushEvent({ event: "agent:ready", chatTitle, timestamp: now });
48313
48325
  } else if (newStatus === "stopped") {
48314
48326
  if (this.generatingDebounceTimer) {
48315
48327
  clearTimeout(this.generatingDebounceTimer);