@rivetkit/rivetkit-wasm 0.0.0-codex-rivetkit-cli-preview.e0b3ae0 → 0.0.0-codex-rivetkit-cli-preview.446d935

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.e0b3ae0",
3
+ "version": "0.0.0-codex-rivetkit-cli-preview.446d935",
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 uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
4
+ export function bridgeRivetErrorPrefix(): string;
3
5
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
4
6
  export function awaitPromise(promise: Promise<any>): Promise<any>;
5
7
  export function start(): void;
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;
@@ -225,28 +225,13 @@ function _assertClass(instance, klass) {
225
225
  * @param {Uint8Array} bytes
226
226
  * @returns {Uint8Array}
227
227
  */
228
- export function roundTripBytes(bytes) {
228
+ export function uint8ArrayFromBytes(bytes) {
229
229
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
230
230
  const len0 = WASM_VECTOR_LEN;
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;
235
- }
236
-
237
- /**
238
- * @param {Promise<any>} promise
239
- * @returns {Promise<any>}
240
- */
241
- export function awaitPromise(promise) {
242
- const ret = wasm.awaitPromise(promise);
231
+ const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
243
232
  return ret;
244
233
  }
245
234
 
246
- export function start() {
247
- wasm.start();
248
- }
249
-
250
235
  /**
251
236
  * @returns {string}
252
237
  */
@@ -267,13 +252,28 @@ export function bridgeRivetErrorPrefix() {
267
252
  * @param {Uint8Array} bytes
268
253
  * @returns {Uint8Array}
269
254
  */
270
- export function uint8ArrayFromBytes(bytes) {
255
+ export function roundTripBytes(bytes) {
271
256
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
272
257
  const len0 = WASM_VECTOR_LEN;
273
- const ret = wasm.uint8ArrayFromBytes(ptr0, len0);
258
+ const ret = wasm.roundTripBytes(ptr0, len0);
259
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
260
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
261
+ return v2;
262
+ }
263
+
264
+ /**
265
+ * @param {Promise<any>} promise
266
+ * @returns {Promise<any>}
267
+ */
268
+ export function awaitPromise(promise) {
269
+ const ret = wasm.awaitPromise(promise);
274
270
  return ret;
275
271
  }
276
272
 
273
+ export function start() {
274
+ wasm.start();
275
+ }
276
+
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
278
  wasm.closure1598_externref_shim(arg0, arg1, arg2);
279
279
  }
Binary file