@deepstrike/wasm-kernel 0.2.30 → 0.2.31

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.
@@ -96,6 +96,14 @@ export interface RuntimeSignal {
96
96
  summary: string;
97
97
  payload: string;
98
98
  dedupeKey?: string;
99
+ /**
100
+ * Target a specific session loop (sessionId). Omitted ⇒ broadcast.
101
+ */
102
+ recipient?: string;
103
+ /**
104
+ * Optional pub/sub topic (carried through; routing deferred).
105
+ */
106
+ topic?: string;
99
107
  timestampMs: number;
100
108
  }
101
109
 
@@ -191,6 +199,11 @@ export class SignalRouter {
191
199
  * Pull the next queued signal (highest priority first).
192
200
  */
193
201
  next(): RuntimeSignal | undefined;
202
+ /**
203
+ * Pull the next queued signal visible to `recipient` (broadcasts plus signals
204
+ * addressed to it); other recipients' signals stay queued. Omit ⇒ no filter.
205
+ */
206
+ nextFor(recipient?: string | null): RuntimeSignal | undefined;
194
207
  }
195
208
 
196
209
  /**
@@ -294,6 +294,18 @@ export class SignalRouter {
294
294
  const ret = wasm.signalrouter_next(this.__wbg_ptr);
295
295
  return takeObject(ret);
296
296
  }
297
+ /**
298
+ * Pull the next queued signal visible to `recipient` (broadcasts plus signals
299
+ * addressed to it); other recipients' signals stay queued. Omit ⇒ no filter.
300
+ * @param {string | null} [recipient]
301
+ * @returns {RuntimeSignal | undefined}
302
+ */
303
+ nextFor(recipient) {
304
+ var ptr0 = isLikeNone(recipient) ? 0 : passStringToWasm0(recipient, wasm.__wbindgen_export, wasm.__wbindgen_export2);
305
+ var len0 = WASM_VECTOR_LEN;
306
+ const ret = wasm.signalrouter_nextFor(this.__wbg_ptr, ptr0, len0);
307
+ return takeObject(ret);
308
+ }
297
309
  }
298
310
  if (Symbol.dispose) SignalRouter.prototype[Symbol.dispose] = SignalRouter.prototype.free;
299
311
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@deepstrike/wasm-kernel",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for DeepStrike runtime kernel",
5
- "version": "0.2.30",
5
+ "version": "0.2.31",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "deepstrike_wasm_bg.wasm",