@rivetkit/rivetkit-wasm 0.0.0-codex-rivetkit-cli-preview.5e414a8 → 0.0.0-codex-rivetkit-cli-preview.e0b3ae0

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": "@rivetkit/rivetkit-wasm",
3
- "version": "0.0.0-codex-rivetkit-cli-preview.5e414a8",
3
+ "version": "0.0.0-codex-rivetkit-cli-preview.e0b3ae0",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function start(): void;
4
- export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
- export function awaitPromise(promise: Promise<any>): Promise<any>;
6
3
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
4
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
5
+ export function start(): void;
7
6
  export function bridgeRivetErrorPrefix(): string;
7
+ export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): void;
@@ -221,20 +221,17 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
-
225
- export function start() {
226
- wasm.start();
227
- }
228
-
229
224
  /**
230
225
  * @param {Uint8Array} bytes
231
226
  * @returns {Uint8Array}
232
227
  */
233
- export function uint8ArrayFromBytes(bytes) {
228
+ export function roundTripBytes(bytes) {
234
229
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
235
230
  const len0 = WASM_VECTOR_LEN;
236
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
237
- return ret;
231
+ const ret = wasm.roundTripBytes(ptr0, len0);
232
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
233
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
234
+ return v2;
238
235
  }
239
236
 
240
237
  /**
@@ -246,17 +243,8 @@ export function awaitPromise(promise) {
246
243
  return ret;
247
244
  }
248
245
 
249
- /**
250
- * @param {Uint8Array} bytes
251
- * @returns {Uint8Array}
252
- */
253
- export function roundTripBytes(bytes) {
254
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
255
- const len0 = WASM_VECTOR_LEN;
256
- const ret = wasm.roundTripBytes(ptr0, len0);
257
- var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
258
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
259
- return v2;
246
+ export function start() {
247
+ wasm.start();
260
248
  }
261
249
 
262
250
  /**
@@ -275,6 +263,17 @@ export function bridgeRivetErrorPrefix() {
275
263
  }
276
264
  }
277
265
 
266
+ /**
267
+ * @param {Uint8Array} bytes
268
+ * @returns {Uint8Array}
269
+ */
270
+ export function uint8ArrayFromBytes(bytes) {
271
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
272
+ const len0 = WASM_VECTOR_LEN;
273
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
274
+ return ret;
275
+ }
276
+
278
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
279
278
  wasm.closure1598_externref_shim(arg0, arg1, arg2);
280
279
  }
Binary file