@rkat/web 0.6.34 → 0.7.1

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.
Files changed (40) hide show
  1. package/dist/generated/auth.d.ts +1 -1
  2. package/dist/generated/auth.d.ts.map +1 -1
  3. package/dist/generated/auth.js +3 -1
  4. package/dist/generated/auth.js.map +1 -1
  5. package/dist/generated/events.d.ts +84 -29
  6. package/dist/generated/events.d.ts.map +1 -1
  7. package/dist/generated/events.js.map +1 -1
  8. package/dist/generated/mob.d.ts +15 -5
  9. package/dist/generated/mob.d.ts.map +1 -1
  10. package/dist/generated/runtime.d.ts +85 -0
  11. package/dist/generated/runtime.d.ts.map +1 -0
  12. package/dist/generated/runtime.js +40 -0
  13. package/dist/generated/runtime.js.map +1 -0
  14. package/dist/generated/session.d.ts +42 -0
  15. package/dist/generated/session.d.ts.map +1 -0
  16. package/dist/generated/session.js +2 -0
  17. package/dist/generated/session.js.map +1 -0
  18. package/dist/mob.d.ts +34 -19
  19. package/dist/mob.d.ts.map +1 -1
  20. package/dist/mob.js +144 -81
  21. package/dist/mob.js.map +1 -1
  22. package/dist/runtime.d.ts +16 -20
  23. package/dist/runtime.d.ts.map +1 -1
  24. package/dist/runtime.js +26 -16
  25. package/dist/runtime.js.map +1 -1
  26. package/dist/session.d.ts +44 -2
  27. package/dist/session.d.ts.map +1 -1
  28. package/dist/session.js +132 -34
  29. package/dist/session.js.map +1 -1
  30. package/dist/types.d.ts +92 -104
  31. package/dist/types.d.ts.map +1 -1
  32. package/dist/types.js +1 -3
  33. package/dist/types.js.map +1 -1
  34. package/package.json +1 -1
  35. package/wasm/.meerkat-wasm-build.json +3 -3
  36. package/wasm/meerkat_web_runtime.d.ts +114 -67
  37. package/wasm/meerkat_web_runtime.js +114 -125
  38. package/wasm/meerkat_web_runtime_bg.wasm +0 -0
  39. package/wasm/meerkat_web_runtime_bg.wasm.d.ts +41 -24
  40. package/wasm/package.json +1 -1
@@ -133,10 +133,12 @@ export function clear_tool_callbacks() {
133
133
 
134
134
  /**
135
135
  * Close a subscription and free resources.
136
- * @param {number} handle
136
+ * @param {string} stream_id
137
137
  */
138
- export function close_subscription(handle) {
139
- const ret = wasm.close_subscription(handle);
138
+ export function close_subscription(stream_id) {
139
+ const ptr0 = passStringToWasm0(stream_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
140
+ const len0 = WASM_VECTOR_LEN;
141
+ const ret = wasm.close_subscription(ptr0, len0);
140
142
  if (ret[1]) {
141
143
  throw takeFromExternrefTable0(ret[0]);
142
144
  }
@@ -147,6 +149,12 @@ export function close_subscription(handle) {
147
149
  *
148
150
  * Allocates a real session through the initialized runtime-backed session
149
151
  * service, then returns a browser-local session handle for convenience.
152
+ *
153
+ * The pack's skills/definition become session prompt truth here, so this
154
+ * ingress runs the same canonical [`meerkat_mob_pack::trust`] verification
155
+ * as `init_runtime` — never the local parse-only path. The trust store is
156
+ * the one the host installed at bootstrap (Strict + empty when none was
157
+ * supplied, so unsigned/unknown-signer packs fail closed).
150
158
  * @param {Uint8Array} mobpack_bytes
151
159
  * @param {string} config_json
152
160
  * @returns {number}
@@ -165,6 +173,11 @@ export function create_session(mobpack_bytes, config_json) {
165
173
 
166
174
  /**
167
175
  * Create a standalone session through initialized runtime state.
176
+ *
177
+ * When the runtime was bootstrapped from a trust-verified mobpack
178
+ * (`init_runtime`), that pack's skills and definition are folded into the
179
+ * system prompt so the verified bootstrap pack is actually consumed rather
180
+ * than discarded.
168
181
  * @param {string} config_json
169
182
  * @returns {number}
170
183
  */
@@ -193,6 +206,12 @@ export function destroy_runtime() {
193
206
 
194
207
  /**
195
208
  * Remove a session.
209
+ *
210
+ * The browser-local handle is retired on success: subsequent
211
+ * `get_session_state`/`start_turn`/`poll_events` on this handle fail closed
212
+ * with `invalid_session_handle` rather than returning an addressable archived
213
+ * projection. The handle is only removed after cleanup succeeds, so a failed
214
+ * destroy leaves the handle live for retry.
196
215
  * @param {number} handle
197
216
  */
198
217
  export function destroy_session(handle) {
@@ -238,10 +257,19 @@ export function has_external_auth_resolver() {
238
257
  }
239
258
 
240
259
  /**
241
- * Primary bootstrap: parse a mobpack and create service infrastructure.
260
+ * Primary bootstrap: trust-verify a mobpack and create service infrastructure.
242
261
  *
243
- * `mobpack_bytes`: tar.gz mobpack archive.
244
- * `credentials_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5" }`
262
+ * `mobpack_bytes`: tar.gz mobpack archive. Verified via the canonical
263
+ * [`meerkat_mob_pack::trust`] authority under the host-supplied
264
+ * `mobpack_trust` configuration ([`TrustPolicy::Strict`] + empty trust store
265
+ * when omitted) — an unsigned or unknown-signer pack fails closed with a
266
+ * typed error unless the host registered the signer (or explicitly opted in
267
+ * to `permissive`).
268
+ * `credentials_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...",
269
+ * "gemini_api_key"?: "...", "model"?: "<catalog default for configured provider>",
270
+ * "max_sessions"?: 100000,
271
+ * "mobpack_trust"?: { "policy"?: "strict"|"permissive",
272
+ * "trusted_signers"?: { "signers": { "<signer_id>": "<ed25519 pubkey hex>" } } } }`
245
273
  *
246
274
  * Stores an `EphemeralSessionService<FactoryAgentBuilder>` and a `MobMcpState`
247
275
  * in a `thread_local! RuntimeState` for subsequent mob/comms calls.
@@ -264,7 +292,9 @@ export function init_runtime(mobpack_bytes, credentials_json) {
264
292
  /**
265
293
  * Advanced bare-bones bootstrap without a mobpack.
266
294
  *
267
- * `config_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5", "max_sessions"?: 100000 }`
295
+ * `config_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...",
296
+ * "gemini_api_key"?: "...", "model"?: "<catalog default for configured provider>",
297
+ * "max_sessions"?: 100000 }`
268
298
  * @param {string} config_json
269
299
  * @returns {any}
270
300
  */
@@ -280,6 +310,11 @@ export function init_runtime_from_config(config_json) {
280
310
 
281
311
  /**
282
312
  * Inspect a mobpack without creating a session.
313
+ *
314
+ * Read-only metadata projection: nothing from the pack is consumed as
315
+ * runtime/prompt authority here, so (matching `rkat mob inspect`) unsigned
316
+ * packs are inspectable and trust verification is deliberately not applied.
317
+ * Every consuming ingress (`init_runtime`, `create_session`) verifies trust.
283
318
  * @param {Uint8Array} mobpack_bytes
284
319
  * @returns {string}
285
320
  */
@@ -356,17 +391,22 @@ export function mob_create(definition_json) {
356
391
  *
357
392
  * Returns JSON array of mob events.
358
393
  *
359
- * Note: `after_cursor` is u32 at the JS boundary (wasm_bindgen limitation),
360
- * internally widened to u64. Cursors beyond 4B are not supported via this export.
394
+ * `after_cursor` is carried as an opaque string so the full u64 runtime cursor
395
+ * survives the JS boundary JS numbers cannot represent all u64 values and the
396
+ * prior `u32` parameter both truncated and (on the SDK side) silently rewound
397
+ * the stream to position 0 for large/non-finite values. An empty string means
398
+ * "from the start" (cursor 0); a non-numeric cursor fails closed.
361
399
  * @param {string} mob_id
362
- * @param {number} after_cursor
400
+ * @param {string} after_cursor
363
401
  * @param {number} limit
364
402
  * @returns {Promise<any>}
365
403
  */
366
404
  export function mob_events(mob_id, after_cursor, limit) {
367
405
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
368
406
  const len0 = WASM_VECTOR_LEN;
369
- const ret = wasm.mob_events(ptr0, len0, after_cursor, limit);
407
+ const ptr1 = passStringToWasm0(after_cursor, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
408
+ const len1 = WASM_VECTOR_LEN;
409
+ const ret = wasm.mob_events(ptr0, len0, ptr1, len1, limit);
370
410
  return ret;
371
411
  }
372
412
 
@@ -423,9 +463,14 @@ export function mob_fork_helper(mob_id, request_json) {
423
463
  *
424
464
  * `action` is a compatibility string carrier that is immediately
425
465
  * deserialized into the typed wire lifecycle action contract.
466
+ *
467
+ * Returns the canonical [`meerkat_contracts::MobLifecycleResult`] envelope as
468
+ * JSON, mirroring the public MCP/RPC shape. For `destroy`, this carries the
469
+ * structured `MobDestroyReport` (destroyed bridge sessions, retained mobs,
470
+ * cleanup errors) instead of discarding it.
426
471
  * @param {string} mob_id
427
472
  * @param {string} action
428
- * @returns {Promise<void>}
473
+ * @returns {Promise<any>}
429
474
  */
430
475
  export function mob_lifecycle(mob_id, action) {
431
476
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
@@ -499,14 +544,15 @@ export function mob_member_status(mob_id, agent_identity) {
499
544
  /**
500
545
  * Subscribe to a mob member's session event stream.
501
546
  *
502
- * Returns a subscription handle. Use `poll_subscription(handle)` to drain
503
- * buffered events. Each call returns all events since the last poll.
547
+ * Returns a canonical `stream_id` string ([`StreamRef`] wire form). Use
548
+ * `poll_subscription(stream_id)` to drain buffered events. Each call returns
549
+ * all events since the last poll.
504
550
  *
505
551
  * The subscription captures ALL agent activity: text deltas, tool calls
506
552
  * (including comms send_message/peers), turn completions, etc.
507
553
  * @param {string} mob_id
508
554
  * @param {string} agent_identity
509
- * @returns {Promise<number>}
555
+ * @returns {Promise<string>}
510
556
  */
511
557
  export function mob_member_subscribe(mob_id, agent_identity) {
512
558
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
@@ -610,7 +656,7 @@ export function mob_spawn_helper(mob_id, request_json) {
610
656
  /**
611
657
  * Get the status of a mob.
612
658
  *
613
- * Returns JSON with the generated mob status plus the legacy state projection.
659
+ * Returns the generated `MobStatusResult` JSON envelope.
614
660
  * @param {string} mob_id
615
661
  * @returns {Promise<any>}
616
662
  */
@@ -624,14 +670,15 @@ export function mob_status(mob_id) {
624
670
  /**
625
671
  * Subscribe to mob-wide events (all members, continuously updated).
626
672
  *
627
- * Returns a subscription handle. Use `poll_subscription(handle)` to drain
628
- * buffered events. Each call returns all events since the last poll.
673
+ * Returns a canonical `stream_id` string ([`StreamRef`] wire form). Use
674
+ * `poll_subscription(stream_id)` to drain buffered events. Each call returns
675
+ * all events since the last poll.
629
676
  *
630
677
  * Unlike `mob_member_subscribe` which streams a single member's agent events,
631
678
  * this streams [`AttributedEvent`]s tagged with source runtime identity and role
632
679
  * for every member in the mob, automatically tracking roster changes.
633
680
  * @param {string} mob_id
634
- * @returns {Promise<number>}
681
+ * @returns {Promise<string>}
635
682
  */
636
683
  export function mob_subscribe_events(mob_id) {
637
684
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
@@ -676,24 +723,6 @@ export function mob_unwire_peer(mob_id, member, peer_json) {
676
723
  return ret;
677
724
  }
678
725
 
679
- /**
680
- * Unwire a local member from a local or external peer target.
681
- * @param {string} mob_id
682
- * @param {string} local
683
- * @param {string} target_json
684
- * @returns {Promise<void>}
685
- */
686
- export function mob_unwire_target(mob_id, local, target_json) {
687
- const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
688
- const len0 = WASM_VECTOR_LEN;
689
- const ptr1 = passStringToWasm0(local, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
690
- const len1 = WASM_VECTOR_LEN;
691
- const ptr2 = passStringToWasm0(target_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
692
- const len2 = WASM_VECTOR_LEN;
693
- const ret = wasm.mob_unwire_target(ptr0, len0, ptr1, len1, ptr2, len2);
694
- return ret;
695
- }
696
-
697
726
  /**
698
727
  * Wire bidirectional trust between two members.
699
728
  * @param {string} mob_id
@@ -730,24 +759,6 @@ export function mob_wire_peer(mob_id, member, peer_json) {
730
759
  return ret;
731
760
  }
732
761
 
733
- /**
734
- * Wire a local member to a local or external peer target.
735
- * @param {string} mob_id
736
- * @param {string} local
737
- * @param {string} target_json
738
- * @returns {Promise<void>}
739
- */
740
- export function mob_wire_target(mob_id, local, target_json) {
741
- const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
742
- const len0 = WASM_VECTOR_LEN;
743
- const ptr1 = passStringToWasm0(local, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
744
- const len1 = WASM_VECTOR_LEN;
745
- const ptr2 = passStringToWasm0(target_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
746
- const len2 = WASM_VECTOR_LEN;
747
- const ret = wasm.mob_wire_target(ptr0, len0, ptr1, len1, ptr2, len2);
748
- return ret;
749
- }
750
-
751
762
  /**
752
763
  * Drain and return all pending agent events from the last turn(s).
753
764
  *
@@ -784,28 +795,31 @@ export function poll_events(handle) {
784
795
  * `serialize_error` instead of silently omitting the event.
785
796
  *
786
797
  * For per-member subscriptions (`mob_member_subscribe`), returns
787
- * `EventEnvelope<AgentEvent>` objects. For mob-wide subscriptions
788
- * (`mob_subscribe_events`), returns `AttributedEvent` objects with
789
- * `source`, `profile`, and `envelope` fields.
790
- * @param {number} handle
798
+ * `EventEnvelope<AgentEvent>` objects a lagging receiver yields the
799
+ * generated `AgentEvent::StreamTruncated` envelope, exactly like the RPC
800
+ * event stream. For mob-wide subscriptions (`mob_subscribe_events`), returns
801
+ * `AttributedEvent` objects with `source`, `profile`, and `envelope` fields.
802
+ * @param {string} stream_id
791
803
  * @returns {string}
792
804
  */
793
- export function poll_subscription(handle) {
794
- let deferred2_0;
795
- let deferred2_1;
805
+ export function poll_subscription(stream_id) {
806
+ let deferred3_0;
807
+ let deferred3_1;
796
808
  try {
797
- const ret = wasm.poll_subscription(handle);
798
- var ptr1 = ret[0];
799
- var len1 = ret[1];
809
+ const ptr0 = passStringToWasm0(stream_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
810
+ const len0 = WASM_VECTOR_LEN;
811
+ const ret = wasm.poll_subscription(ptr0, len0);
812
+ var ptr2 = ret[0];
813
+ var len2 = ret[1];
800
814
  if (ret[3]) {
801
- ptr1 = 0; len1 = 0;
815
+ ptr2 = 0; len2 = 0;
802
816
  throw takeFromExternrefTable0(ret[2]);
803
817
  }
804
- deferred2_0 = ptr1;
805
- deferred2_1 = len1;
806
- return getStringFromWasm0(ptr1, len1);
818
+ deferred3_0 = ptr2;
819
+ deferred3_1 = len2;
820
+ return getStringFromWasm0(ptr2, len2);
807
821
  } finally {
808
- wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
822
+ wasm.__wbindgen_free_command_export(deferred3_0, deferred3_1, 1);
809
823
  }
810
824
  }
811
825
 
@@ -929,11 +943,16 @@ export function runtime_version() {
929
943
  /**
930
944
  * Run a turn through the runtime-backed session service.
931
945
  *
932
- * Returns JSON: `{ "text", "usage", "status", "session_id", "turns", "tool_calls" }`
946
+ * On success, resolves (Ok) with a JSON-serialized [`meerkat_contracts::WireRunResult`]
947
+ * — the same canonical wire shape RPC's `turn/start` returns — exposing
948
+ * `terminal_cause_kind` so callers read the runtime-owned terminal class
949
+ * instead of a fabricated status string.
933
950
  *
934
- * Convention: always resolves (Ok). Check `status` field for "completed" vs "failed".
935
- * Only rejects (Err) for infrastructure errors (session not found, busy, etc).
936
- * Agent-level errors (LLM failure, timeout) resolve with `status: "failed"` + `error` field.
951
+ * On any [`meerkat_core::SessionError`] (including `Agent`), rejects (Err)
952
+ * with the typed error envelope (`{ code, message }`), carrying the stable
953
+ * `SessionError::code()`. Agent-level failures surface on the Err channel as
954
+ * `AGENT_ERROR`; they are NOT laundered into an Ok value with a `status`
955
+ * string.
937
956
  * @param {number} handle
938
957
  * @param {string} prompt
939
958
  * @returns {Promise<any>}
@@ -956,31 +975,6 @@ export function task_worker_entry_point(ptr) {
956
975
  }
957
976
  }
958
977
 
959
- /**
960
- * Wire bidirectional comms trust between meerkats in DIFFERENT mobs.
961
- *
962
- * Unlike `mob_wire` (which is intra-mob), this establishes peer trust across
963
- * mob boundaries by accessing each member's comms runtime through the shared
964
- * session service. Both members must have comms enabled.
965
- * @param {string} mob_a
966
- * @param {string} agent_a
967
- * @param {string} mob_b
968
- * @param {string} agent_b
969
- * @returns {Promise<void>}
970
- */
971
- export function wire_cross_mob(mob_a, agent_a, mob_b, agent_b) {
972
- const ptr0 = passStringToWasm0(mob_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
973
- const len0 = WASM_VECTOR_LEN;
974
- const ptr1 = passStringToWasm0(agent_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
975
- const len1 = WASM_VECTOR_LEN;
976
- const ptr2 = passStringToWasm0(mob_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
977
- const len2 = WASM_VECTOR_LEN;
978
- const ptr3 = passStringToWasm0(agent_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
979
- const len3 = WASM_VECTOR_LEN;
980
- const ret = wasm.wire_cross_mob(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
981
- return ret;
982
- }
983
-
984
978
  function __wbg_get_imports() {
985
979
  const import0 = {
986
980
  __proto__: null,
@@ -1113,12 +1107,12 @@ function __wbg_get_imports() {
1113
1107
  __wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
1114
1108
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1115
1109
  }, arguments); },
1116
- __wbg_getRandomValues_9b655bdd369112f2: function() { return handleError(function (arg0, arg1) {
1117
- globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1118
- }, arguments); },
1119
1110
  __wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
1120
1111
  arg0.getRandomValues(arg1);
1121
1112
  }, arguments); },
1113
+ __wbg_getRandomValues_cfa3e51efd7b03ad: function() { return handleError(function (arg0, arg1) {
1114
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1115
+ }, arguments); },
1122
1116
  __wbg_getReader_48e00749fe3f6089: function() { return handleError(function (arg0) {
1123
1117
  const ret = arg0.getReader();
1124
1118
  return ret;
@@ -1257,7 +1251,7 @@ function __wbg_get_imports() {
1257
1251
  const a = state0.a;
1258
1252
  state0.a = 0;
1259
1253
  try {
1260
- return wasm_bindgen__convert__closures_____invoke__h05fc08dbf10243fb(a, state0.b, arg0, arg1);
1254
+ return wasm_bindgen__convert__closures_____invoke__h78395309139ae66e(a, state0.b, arg0, arg1);
1261
1255
  } finally {
1262
1256
  state0.a = a;
1263
1257
  }
@@ -1312,7 +1306,7 @@ function __wbg_get_imports() {
1312
1306
  const ret = arg0.now();
1313
1307
  return ret;
1314
1308
  },
1315
- __wbg_now_37839916ec63896b: function() { return handleError(function () {
1309
+ __wbg_now_79ff468e8684c80c: function() { return handleError(function () {
1316
1310
  const ret = Date.now();
1317
1311
  return ret;
1318
1312
  }, arguments); },
@@ -1465,31 +1459,26 @@ function __wbg_get_imports() {
1465
1459
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1466
1460
  },
1467
1461
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1468
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4881, function: Function { arguments: [], shim_idx: 4882, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1469
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0c356ef0a5cea603, wasm_bindgen__convert__closures_____invoke__h6c0ce486df807cd6);
1462
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4687, function: Function { arguments: [], shim_idx: 4689, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1463
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3d635b500c28087d, wasm_bindgen__convert__closures_____invoke__h1f1def1b077165d5);
1470
1464
  return ret;
1471
1465
  },
1472
1466
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1473
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7627, function: Function { arguments: [], shim_idx: 7628, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1474
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb9425d9e23a9d6e3, wasm_bindgen__convert__closures_____invoke__hd9d99acd02017ac0);
1467
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7405, function: Function { arguments: [], shim_idx: 7416, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1468
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he5a3e8c7a4c47308, wasm_bindgen__convert__closures_____invoke__hcb95b65c3fdb947b);
1475
1469
  return ret;
1476
1470
  },
1477
1471
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1478
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7650, function: Function { arguments: [Externref], shim_idx: 7651, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1479
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h650c11e6baa55c49, wasm_bindgen__convert__closures_____invoke__had033df66a0cb233);
1472
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7431, function: Function { arguments: [Externref], shim_idx: 7433, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1473
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h635ec94650d9deab, wasm_bindgen__convert__closures_____invoke__ha64c8385490fcaa0);
1480
1474
  return ret;
1481
1475
  },
1482
- __wbindgen_cast_0000000000000004: function(arg0) {
1483
- // Cast intrinsic for `F64 -> Externref`.
1484
- const ret = arg0;
1485
- return ret;
1486
- },
1487
- __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1476
+ __wbindgen_cast_0000000000000004: function(arg0, arg1) {
1488
1477
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1489
1478
  const ret = getArrayU8FromWasm0(arg0, arg1);
1490
1479
  return ret;
1491
1480
  },
1492
- __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1481
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1493
1482
  // Cast intrinsic for `Ref(String) -> Externref`.
1494
1483
  const ret = getStringFromWasm0(arg0, arg1);
1495
1484
  return ret;
@@ -1510,20 +1499,20 @@ function __wbg_get_imports() {
1510
1499
  };
1511
1500
  }
1512
1501
 
1513
- function wasm_bindgen__convert__closures_____invoke__h6c0ce486df807cd6(arg0, arg1) {
1514
- wasm.wasm_bindgen__convert__closures_____invoke__h6c0ce486df807cd6(arg0, arg1);
1502
+ function wasm_bindgen__convert__closures_____invoke__h1f1def1b077165d5(arg0, arg1) {
1503
+ wasm.wasm_bindgen__convert__closures_____invoke__h1f1def1b077165d5(arg0, arg1);
1515
1504
  }
1516
1505
 
1517
- function wasm_bindgen__convert__closures_____invoke__hd9d99acd02017ac0(arg0, arg1) {
1518
- wasm.wasm_bindgen__convert__closures_____invoke__hd9d99acd02017ac0(arg0, arg1);
1506
+ function wasm_bindgen__convert__closures_____invoke__hcb95b65c3fdb947b(arg0, arg1) {
1507
+ wasm.wasm_bindgen__convert__closures_____invoke__hcb95b65c3fdb947b(arg0, arg1);
1519
1508
  }
1520
1509
 
1521
- function wasm_bindgen__convert__closures_____invoke__had033df66a0cb233(arg0, arg1, arg2) {
1522
- wasm.wasm_bindgen__convert__closures_____invoke__had033df66a0cb233(arg0, arg1, arg2);
1510
+ function wasm_bindgen__convert__closures_____invoke__ha64c8385490fcaa0(arg0, arg1, arg2) {
1511
+ wasm.wasm_bindgen__convert__closures_____invoke__ha64c8385490fcaa0(arg0, arg1, arg2);
1523
1512
  }
1524
1513
 
1525
- function wasm_bindgen__convert__closures_____invoke__h05fc08dbf10243fb(arg0, arg1, arg2, arg3) {
1526
- wasm.wasm_bindgen__convert__closures_____invoke__h05fc08dbf10243fb(arg0, arg1, arg2, arg3);
1514
+ function wasm_bindgen__convert__closures_____invoke__h78395309139ae66e(arg0, arg1, arg2, arg3) {
1515
+ wasm.wasm_bindgen__convert__closures_____invoke__h78395309139ae66e(arg0, arg1, arg2, arg3);
1527
1516
  }
1528
1517
 
1529
1518
 
Binary file
@@ -2,20 +2,20 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const append_system_context: (a: number, b: number, c: number) => any;
5
- export const close_subscription: (a: number) => [number, number];
5
+ export const clear_tool_callbacks: () => void;
6
+ export const close_subscription: (a: number, b: number) => [number, number];
6
7
  export const create_session: (a: number, b: number, c: number, d: number) => [number, number, number];
7
8
  export const create_session_simple: (a: number, b: number) => [number, number, number];
8
9
  export const destroy_runtime: () => [number, number];
9
10
  export const destroy_session: (a: number) => [number, number];
10
11
  export const get_session_state: (a: number) => [number, number, number, number];
11
- export const has_external_auth_resolver: () => number;
12
12
  export const init_runtime: (a: number, b: number, c: number, d: number) => [number, number, number];
13
13
  export const init_runtime_from_config: (a: number, b: number) => [number, number, number];
14
14
  export const inspect_mobpack: (a: number, b: number) => [number, number, number, number];
15
15
  export const mob_append_system_context: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
16
16
  export const mob_cancel_flow: (a: number, b: number, c: number, d: number) => any;
17
17
  export const mob_create: (a: number, b: number) => any;
18
- export const mob_events: (a: number, b: number, c: number, d: number) => any;
18
+ export const mob_events: (a: number, b: number, c: number, d: number, e: number) => any;
19
19
  export const mob_flow_status: (a: number, b: number, c: number, d: number) => any;
20
20
  export const mob_force_cancel: (a: number, b: number, c: number, d: number) => any;
21
21
  export const mob_fork_helper: (a: number, b: number, c: number, d: number) => any;
@@ -34,21 +34,44 @@ export const mob_status: (a: number, b: number) => any;
34
34
  export const mob_subscribe_events: (a: number, b: number) => any;
35
35
  export const mob_unwire: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
36
36
  export const mob_unwire_peer: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
37
- export const mob_unwire_target: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
38
37
  export const mob_wire: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
39
38
  export const mob_wire_peer: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
40
- export const mob_wire_target: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
41
39
  export const poll_events: (a: number) => [number, number, number, number];
42
- export const poll_subscription: (a: number) => [number, number, number, number];
43
- export const register_external_auth_resolver: (a: any) => [number, number];
40
+ export const poll_subscription: (a: number, b: number) => [number, number, number, number];
44
41
  export const register_js_tool: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
45
42
  export const register_tool_callback: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
46
43
  export const runtime_version: () => [number, number];
47
44
  export const start_turn: (a: number, b: number, c: number) => any;
48
- export const wire_cross_mob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
49
- export const clear_tool_callbacks: () => void;
50
- export const __meerkat_agent_factory_policy_build_v3_17aa258daa389517: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
51
- export const __meerkat_agent_factory_policy_bridge_token_is_valid_v1_17aa258daa389517: (a: number, b: number) => number;
45
+ export const has_external_auth_resolver: () => number;
46
+ export const register_external_auth_resolver: (a: any) => [number, number];
47
+ export const __meerkat_core_mob_generated_comms_trust_authority_build_v1_2a74f40695b02b6b: (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;
48
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_member_trust_wiring_2a74f40695b02b6b: (a: number, b: number) => number;
49
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_external_peer_reciprocal_trust_2a74f40695b02b6b: (a: number, b: number) => number;
50
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_external_peer_trust_repair_2a74f40695b02b6b: (a: number, b: number) => number;
51
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_member_trust_unwiring_2a74f40695b02b6b: (a: number, b: number) => number;
52
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_external_peer_trust_wiring_2a74f40695b02b6b: (a: number, b: number) => number;
53
+ export const __meerkat_mob_generated_authority_bridge_token_is_valid_v1_mob_external_peer_trust_unwiring_2a74f40695b02b6b: (a: number, b: number) => number;
54
+ export const __meerkat_agent_factory_parent_tool_composition_authority_new_v1_28173aef5e818afd: (a: number, b: number, c: number) => void;
55
+ export const __meerkat_agent_factory_policy_build_v3_28173aef5e818afd: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
56
+ export const __meerkat_agent_factory_parent_tool_composition_authority_set_tool_scope_v1_28173aef5e818afd: (a: number, b: number, c: number, d: number, e: number) => void;
57
+ export const __meerkat_agent_factory_policy_bridge_token_is_valid_v1_28173aef5e818afd: (a: number, b: number) => number;
58
+ export const __meerkat_core_runtime_generated_tool_visibility_owner_build_v1_2a74f40695b02b6b: (a: number, b: number, c: number, d: number, e: number) => void;
59
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_tool_visibility_owner_2a74f40695b02b6b: (a: number, b: number) => number;
60
+ export const __meerkat_core_runtime_generated_comms_trust_authority_build_v1_2a74f40695b02b6b: (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;
61
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_comms_trust_reconcile_2a74f40695b02b6b: (a: number, b: number) => number;
62
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_supervisor_trust_publish_2a74f40695b02b6b: (a: number, b: number) => number;
63
+ export const __meerkat_core_runtime_generated_mob_tool_authority_context_build_v1_2a74f40695b02b6b: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
64
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_mob_operator_authority_2a74f40695b02b6b: (a: number, b: number) => number;
65
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_supervisor_trust_revoke_2a74f40695b02b6b: (a: number, b: number) => number;
66
+ export const __meerkat_core_runtime_generated_auth_lease_handle_build_v1_2a74f40695b02b6b: (a: number, b: number, c: number, d: number, e: number) => void;
67
+ export const __meerkat_core_runtime_generated_auth_lease_transition_build_v1_2a74f40695b02b6b: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: bigint, i: bigint) => void;
68
+ export const __meerkat_runtime_generated_authority_bridge_token_is_valid_v1_auth_lease_lifecycle_publication_2a74f40695b02b6b: (a: number, b: number) => number;
69
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
70
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
71
+ export const intounderlyingbytesource_cancel: (a: number) => void;
72
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
73
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
74
+ export const intounderlyingbytesource_type: (a: number) => number;
52
75
  export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
53
76
  export const intounderlyingsink_abort: (a: number, b: any) => any;
54
77
  export const intounderlyingsink_close: (a: number) => any;
@@ -56,20 +79,14 @@ export const intounderlyingsink_write: (a: number, b: any) => any;
56
79
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
57
80
  export const intounderlyingsource_cancel: (a: number) => void;
58
81
  export const intounderlyingsource_pull: (a: number, b: any) => any;
59
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
60
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
61
- export const intounderlyingbytesource_cancel: (a: number) => void;
62
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
63
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
64
- export const intounderlyingbytesource_type: (a: number) => number;
65
82
  export const task_worker_entry_point: (a: number) => [number, number];
66
- export const wasm_bindgen__closure__destroy__h0c356ef0a5cea603: (a: number, b: number) => void;
67
- export const wasm_bindgen__closure__destroy__hb9425d9e23a9d6e3: (a: number, b: number) => void;
68
- export const wasm_bindgen__closure__destroy__h650c11e6baa55c49: (a: number, b: number) => void;
69
- export const wasm_bindgen__convert__closures_____invoke__h05fc08dbf10243fb: (a: number, b: number, c: any, d: any) => void;
70
- export const wasm_bindgen__convert__closures_____invoke__had033df66a0cb233: (a: number, b: number, c: any) => void;
71
- export const wasm_bindgen__convert__closures_____invoke__h6c0ce486df807cd6: (a: number, b: number) => void;
72
- export const wasm_bindgen__convert__closures_____invoke__hd9d99acd02017ac0: (a: number, b: number) => void;
83
+ export const wasm_bindgen__closure__destroy__h3d635b500c28087d: (a: number, b: number) => void;
84
+ export const wasm_bindgen__closure__destroy__he5a3e8c7a4c47308: (a: number, b: number) => void;
85
+ export const wasm_bindgen__closure__destroy__h635ec94650d9deab: (a: number, b: number) => void;
86
+ export const wasm_bindgen__convert__closures_____invoke__h78395309139ae66e: (a: number, b: number, c: any, d: any) => void;
87
+ export const wasm_bindgen__convert__closures_____invoke__ha64c8385490fcaa0: (a: number, b: number, c: any) => void;
88
+ export const wasm_bindgen__convert__closures_____invoke__h1f1def1b077165d5: (a: number, b: number) => void;
89
+ export const wasm_bindgen__convert__closures_____invoke__hcb95b65c3fdb947b: (a: number, b: number) => void;
73
90
  export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
74
91
  export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
75
92
  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.6.34",
7
+ "version": "0.7.1",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",