@rkat/web 0.8.46 → 0.8.49

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.
@@ -676,6 +676,28 @@ export function mob_status(mob_id) {
676
676
  return ret;
677
677
  }
678
678
 
679
+ /**
680
+ * Run-fenced Stop of one exact mob member run. Resolves to the JSON
681
+ * `WireRunStopReceipt`; a stale run id is the `not_current` receipt.
682
+ * @param {string} mob_id
683
+ * @param {string} agent_identity
684
+ * @param {string} run_id
685
+ * @param {string} reason
686
+ * @returns {Promise<any>}
687
+ */
688
+ export function mob_stop_member_run(mob_id, agent_identity, run_id, reason) {
689
+ const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
690
+ const len0 = WASM_VECTOR_LEN;
691
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
692
+ const len1 = WASM_VECTOR_LEN;
693
+ const ptr2 = passStringToWasm0(run_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
694
+ const len2 = WASM_VECTOR_LEN;
695
+ const ptr3 = passStringToWasm0(reason, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
696
+ const len3 = WASM_VECTOR_LEN;
697
+ const ret = wasm.mob_stop_member_run(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
698
+ return ret;
699
+ }
700
+
679
701
  /**
680
702
  * Subscribe to mob-wide events (all members, continuously updated).
681
703
  *
@@ -987,6 +1009,24 @@ export function start_turn(handle, prompt, options_json) {
987
1009
  return ret;
988
1010
  }
989
1011
 
1012
+ /**
1013
+ * Run-fenced Stop: stop the exact `run_id` of this session and terminalize
1014
+ * every contributor bound to it. Resolves to the JSON `WireRunStopReceipt`;
1015
+ * a stale run id is the `not_current` receipt, never an error.
1016
+ * @param {number} handle
1017
+ * @param {string} run_id
1018
+ * @param {string} reason
1019
+ * @returns {Promise<any>}
1020
+ */
1021
+ export function stop_session_run(handle, run_id, reason) {
1022
+ const ptr0 = passStringToWasm0(run_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
1023
+ const len0 = WASM_VECTOR_LEN;
1024
+ const ptr1 = passStringToWasm0(reason, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
1025
+ const len1 = WASM_VECTOR_LEN;
1026
+ const ret = wasm.stop_session_run(handle, ptr0, len0, ptr1, len1);
1027
+ return ret;
1028
+ }
1029
+
990
1030
  /**
991
1031
  * Entry point invoked by JavaScript in a worker.
992
1032
  * @param {number} ptr
@@ -1087,13 +1127,13 @@ function __wbg_get_imports() {
1087
1127
  const ret = arg0.catch(arg1);
1088
1128
  return ret;
1089
1129
  },
1130
+ __wbg_clearTimeout_23281353cedf6cfb: function(arg0) {
1131
+ globalThis.clearTimeout(arg0);
1132
+ },
1090
1133
  __wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
1091
1134
  const ret = clearTimeout(arg0);
1092
1135
  return ret;
1093
1136
  },
1094
- __wbg_clearTimeout_e1d818fa323cfc1e: function(arg0) {
1095
- globalThis.clearTimeout(arg0);
1096
- },
1097
1137
  __wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
1098
1138
  arg0.close();
1099
1139
  }, arguments); },
@@ -1374,7 +1414,7 @@ function __wbg_get_imports() {
1374
1414
  __wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
1375
1415
  arg0.respond(arg1 >>> 0);
1376
1416
  }, arguments); },
1377
- __wbg_setTimeout_a3bab300624bd51b: function(arg0, arg1) {
1417
+ __wbg_setTimeout_628498ba9b7cf75a: function(arg0, arg1) {
1378
1418
  const ret = globalThis.setTimeout(arg0, arg1);
1379
1419
  return ret;
1380
1420
  },
@@ -1474,23 +1514,23 @@ function __wbg_get_imports() {
1474
1514
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1475
1515
  },
1476
1516
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1477
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 10329, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1517
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 10225, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1478
1518
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha7346b5e9b6fa88d);
1479
1519
  return ret;
1480
1520
  },
1481
1521
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1482
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 14096, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1522
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 14014, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1483
1523
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2c6cb6d1a06496b7);
1484
1524
  return ret;
1485
1525
  },
1486
1526
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1487
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 10287, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1527
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 10183, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1488
1528
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h70f9de3e771e3fb0);
1489
1529
  return ret;
1490
1530
  },
1491
1531
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
1492
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 12081, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1493
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h563325fc293da55b);
1532
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 11999, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1533
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hbd22eaa285bee005);
1494
1534
  return ret;
1495
1535
  },
1496
1536
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -1528,8 +1568,8 @@ function wasm_bindgen__convert__closures_____invoke__h70f9de3e771e3fb0(arg0, arg
1528
1568
  wasm.wasm_bindgen__convert__closures_____invoke__h70f9de3e771e3fb0(arg0, arg1);
1529
1569
  }
1530
1570
 
1531
- function wasm_bindgen__convert__closures_____invoke__h563325fc293da55b(arg0, arg1) {
1532
- wasm.wasm_bindgen__convert__closures_____invoke__h563325fc293da55b(arg0, arg1);
1571
+ function wasm_bindgen__convert__closures_____invoke__hbd22eaa285bee005(arg0, arg1) {
1572
+ wasm.wasm_bindgen__convert__closures_____invoke__hbd22eaa285bee005(arg0, arg1);
1533
1573
  }
1534
1574
 
1535
1575
  function wasm_bindgen__convert__closures_____invoke__ha7346b5e9b6fa88d(arg0, arg1, arg2) {
Binary file
@@ -33,6 +33,7 @@ export const mob_run_flow: (a: number, b: number, c: number, d: number, e: numbe
33
33
  export const mob_spawn: (a: number, b: number, c: number, d: number) => any;
34
34
  export const mob_spawn_helper: (a: number, b: number, c: number, d: number) => any;
35
35
  export const mob_status: (a: number, b: number) => any;
36
+ export const mob_stop_member_run: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
36
37
  export const mob_subscribe_events: (a: number, b: number) => any;
37
38
  export const mob_unwire: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
38
39
  export const mob_unwire_peer: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
@@ -45,6 +46,7 @@ export const register_tool_callback: (a: number, b: number, c: number, d: number
45
46
  export const runtime_version: () => [number, number];
46
47
  export const session_wire_peer: (a: number, b: number) => any;
47
48
  export const start_turn: (a: number, b: number, c: number, d: number, e: number) => any;
49
+ export const stop_session_run: (a: number, b: number, c: number, d: number, e: number) => any;
48
50
  export const has_external_auth_resolver: () => number;
49
51
  export const register_external_auth_resolver: (a: any) => [number, number];
50
52
  export const __meerkat_core_mob_generated_comms_trust_authority_build_v1_036fb4d02d9dbed7: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
@@ -90,7 +92,7 @@ export const wasm_bindgen__convert__closures_____invoke__h2c6cb6d1a06496b7: (a:
90
92
  export const wasm_bindgen__convert__closures_____invoke__h3cba0c4cd3462e0e: (a: number, b: number, c: any, d: any) => void;
91
93
  export const wasm_bindgen__convert__closures_____invoke__ha7346b5e9b6fa88d: (a: number, b: number, c: any) => void;
92
94
  export const wasm_bindgen__convert__closures_____invoke__h70f9de3e771e3fb0: (a: number, b: number) => void;
93
- export const wasm_bindgen__convert__closures_____invoke__h563325fc293da55b: (a: number, b: number) => void;
95
+ export const wasm_bindgen__convert__closures_____invoke__hbd22eaa285bee005: (a: number, b: number) => void;
94
96
  export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
95
97
  export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
96
98
  export const __wbindgen_exn_store_command_export: (a: number) => void;
package/wasm/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Luka Crnkovic-Friis"
6
6
  ],
7
- "version": "0.8.46",
7
+ "version": "0.8.49",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",