@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.
- package/deepstrike_wasm.d.ts +13 -0
- package/deepstrike_wasm_bg.js +12 -0
- package/deepstrike_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/deepstrike_wasm.d.ts
CHANGED
|
@@ -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
|
/**
|
package/deepstrike_wasm_bg.js
CHANGED
|
@@ -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
|
|
package/deepstrike_wasm_bg.wasm
CHANGED
|
Binary file
|