@standardagents/builder 0.30.0 → 0.30.2

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
@@ -35314,6 +35314,17 @@ var DurableUserHub = class extends DurableObject {
35314
35314
  this.clientInfo.delete(ws);
35315
35315
  }
35316
35316
  }
35317
+ const wakeEvent = JSON.stringify({
35318
+ event: "standardagents.wake",
35319
+ data: { thread_id: threadId }
35320
+ });
35321
+ for (const ws of this.streamSockets()) {
35322
+ try {
35323
+ ws.send(wakeEvent);
35324
+ delivered = true;
35325
+ } catch {
35326
+ }
35327
+ }
35317
35328
  return { delivered };
35318
35329
  }
35319
35330
  // ─── Account-wide KV (sharded off the singleton) ───────────────────────────