@rkat/web 0.5.2 → 0.6.0

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 (47) hide show
  1. package/dist/auth.d.ts +181 -0
  2. package/dist/auth.d.ts.map +1 -0
  3. package/dist/auth.js +134 -0
  4. package/dist/auth.js.map +1 -0
  5. package/dist/events.d.ts +1 -1
  6. package/dist/events.d.ts.map +1 -1
  7. package/dist/events.js +3 -0
  8. package/dist/events.js.map +1 -1
  9. package/dist/generated/auth.d.ts +247 -0
  10. package/dist/generated/auth.d.ts.map +1 -0
  11. package/dist/generated/auth.js +502 -0
  12. package/dist/generated/auth.js.map +1 -0
  13. package/dist/generated/events.d.ts +226 -54
  14. package/dist/generated/events.d.ts.map +1 -1
  15. package/dist/generated/events.js +5 -3
  16. package/dist/generated/events.js.map +1 -1
  17. package/dist/generated/mob.d.ts +50 -0
  18. package/dist/generated/mob.d.ts.map +1 -0
  19. package/dist/generated/mob.js +4 -0
  20. package/dist/generated/mob.js.map +1 -0
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/mob.d.ts +23 -21
  26. package/dist/mob.d.ts.map +1 -1
  27. package/dist/mob.js +510 -47
  28. package/dist/mob.js.map +1 -1
  29. package/dist/runtime.d.ts +8 -8
  30. package/dist/runtime.d.ts.map +1 -1
  31. package/dist/runtime.js +29 -8
  32. package/dist/runtime.js.map +1 -1
  33. package/dist/session.d.ts +9 -6
  34. package/dist/session.d.ts.map +1 -1
  35. package/dist/session.js +44 -33
  36. package/dist/session.js.map +1 -1
  37. package/dist/types.d.ts +91 -45
  38. package/dist/types.d.ts.map +1 -1
  39. package/dist/types.js +67 -1
  40. package/dist/types.js.map +1 -1
  41. package/package.json +2 -2
  42. package/wasm/.meerkat-wasm-build.json +5 -0
  43. package/wasm/meerkat_web_runtime.d.ts +68 -34
  44. package/wasm/meerkat_web_runtime.js +132 -67
  45. package/wasm/meerkat_web_runtime_bg.wasm +0 -0
  46. package/wasm/meerkat_web_runtime_bg.wasm.d.ts +12 -8
  47. package/wasm/package.json +1 -1
@@ -226,11 +226,22 @@ export function get_session_state(handle) {
226
226
  }
227
227
  }
228
228
 
229
+ /**
230
+ * Returns `true` if a JS-side external-auth resolver has been
231
+ * registered. Exposed to the browser so host pages can verify their
232
+ * registration before creating a session.
233
+ * @returns {boolean}
234
+ */
235
+ export function has_external_auth_resolver() {
236
+ const ret = wasm.has_external_auth_resolver();
237
+ return ret !== 0;
238
+ }
239
+
229
240
  /**
230
241
  * Primary bootstrap: parse a mobpack and create service infrastructure.
231
242
  *
232
243
  * `mobpack_bytes`: tar.gz mobpack archive.
233
- * `credentials_json`: `{ "api_key": "sk-...", "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5" }`
244
+ * `credentials_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5" }`
234
245
  *
235
246
  * Stores an `EphemeralSessionService<FactoryAgentBuilder>` and a `MobMcpState`
236
247
  * in a `thread_local! RuntimeState` for subsequent mob/comms calls.
@@ -253,7 +264,7 @@ export function init_runtime(mobpack_bytes, credentials_json) {
253
264
  /**
254
265
  * Advanced bare-bones bootstrap without a mobpack.
255
266
  *
256
- * `config_json`: `{ "api_key"?: "sk-...", "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5", "max_sessions"?: 64 }`
267
+ * `config_json`: `{ "anthropic_api_key"?: "...", "openai_api_key"?: "...", "gemini_api_key"?: "...", "model"?: "claude-sonnet-4-5", "max_sessions"?: 100000 }`
257
268
  * @param {string} config_json
258
269
  * @returns {any}
259
270
  */
@@ -296,14 +307,14 @@ export function inspect_mobpack(mobpack_bytes) {
296
307
  /**
297
308
  * Append runtime system context to an individual mob member's session.
298
309
  * @param {string} mob_id
299
- * @param {string} meerkat_id
310
+ * @param {string} agent_identity
300
311
  * @param {string} request_json
301
312
  * @returns {Promise<any>}
302
313
  */
303
- export function mob_append_system_context(mob_id, meerkat_id, request_json) {
314
+ export function mob_append_system_context(mob_id, agent_identity, request_json) {
304
315
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
305
316
  const len0 = WASM_VECTOR_LEN;
306
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
317
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
307
318
  const len1 = WASM_VECTOR_LEN;
308
319
  const ptr2 = passStringToWasm0(request_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
309
320
  const len2 = WASM_VECTOR_LEN;
@@ -362,7 +373,8 @@ export function mob_events(mob_id, after_cursor, limit) {
362
373
  /**
363
374
  * Read flow run status.
364
375
  *
365
- * Returns JSON with run state and ledgers, or null if not found.
376
+ * Returns a generated `MobFlowStatusResult` JSON envelope whose `run` field
377
+ * carries run state and ledgers, or null when not found.
366
378
  * @param {string} mob_id
367
379
  * @param {string} run_id
368
380
  * @returns {Promise<any>}
@@ -379,13 +391,13 @@ export function mob_flow_status(mob_id, run_id) {
379
391
  /**
380
392
  * Force-cancel an active mob member turn.
381
393
  * @param {string} mob_id
382
- * @param {string} meerkat_id
394
+ * @param {string} agent_identity
383
395
  * @returns {Promise<void>}
384
396
  */
385
- export function mob_force_cancel(mob_id, meerkat_id) {
397
+ export function mob_force_cancel(mob_id, agent_identity) {
386
398
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
387
399
  const len0 = WASM_VECTOR_LEN;
388
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
400
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
389
401
  const len1 = WASM_VECTOR_LEN;
390
402
  const ret = wasm.mob_force_cancel(ptr0, len0, ptr1, len1);
391
403
  return ret;
@@ -409,7 +421,8 @@ export function mob_fork_helper(mob_id, request_json) {
409
421
  /**
410
422
  * Perform a lifecycle action on a mob.
411
423
  *
412
- * `action`: one of "stop", "resume", "complete", "reset", "destroy".
424
+ * `action` is a compatibility string carrier that is immediately
425
+ * deserialized into the typed wire lifecycle action contract.
413
426
  * @param {string} mob_id
414
427
  * @param {string} action
415
428
  * @returns {Promise<void>}
@@ -426,7 +439,7 @@ export function mob_lifecycle(mob_id, action) {
426
439
  /**
427
440
  * List all mobs.
428
441
  *
429
- * Returns JSON array of `{ mob_id, state }`.
442
+ * Returns a generated `MobListResult` JSON envelope.
430
443
  * @returns {Promise<any>}
431
444
  */
432
445
  export function mob_list() {
@@ -449,18 +462,18 @@ export function mob_list_members(mob_id) {
449
462
  }
450
463
 
451
464
  /**
452
- * Send external work to a spawned meerkat through the canonical member path.
465
+ * Send external work to a spawned member through the canonical member path.
453
466
  *
454
467
  * Returns a JSON-encoded delivery receipt.
455
468
  * @param {string} mob_id
456
- * @param {string} meerkat_id
469
+ * @param {string} agent_identity
457
470
  * @param {string} request_json
458
471
  * @returns {Promise<string>}
459
472
  */
460
- export function mob_member_send(mob_id, meerkat_id, request_json) {
473
+ export function mob_member_send(mob_id, agent_identity, request_json) {
461
474
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
462
475
  const len0 = WASM_VECTOR_LEN;
463
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
476
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
464
477
  const len1 = WASM_VECTOR_LEN;
465
478
  const ptr2 = passStringToWasm0(request_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
466
479
  const len2 = WASM_VECTOR_LEN;
@@ -471,13 +484,13 @@ export function mob_member_send(mob_id, meerkat_id, request_json) {
471
484
  /**
472
485
  * Read the current execution snapshot for a mob member.
473
486
  * @param {string} mob_id
474
- * @param {string} meerkat_id
487
+ * @param {string} agent_identity
475
488
  * @returns {Promise<any>}
476
489
  */
477
- export function mob_member_status(mob_id, meerkat_id) {
490
+ export function mob_member_status(mob_id, agent_identity) {
478
491
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
479
492
  const len0 = WASM_VECTOR_LEN;
480
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
493
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
481
494
  const len1 = WASM_VECTOR_LEN;
482
495
  const ret = wasm.mob_member_status(ptr0, len0, ptr1, len1);
483
496
  return ret;
@@ -492,31 +505,31 @@ export function mob_member_status(mob_id, meerkat_id) {
492
505
  * The subscription captures ALL agent activity: text deltas, tool calls
493
506
  * (including comms send_message/peers), turn completions, etc.
494
507
  * @param {string} mob_id
495
- * @param {string} meerkat_id
508
+ * @param {string} agent_identity
496
509
  * @returns {Promise<number>}
497
510
  */
498
- export function mob_member_subscribe(mob_id, meerkat_id) {
511
+ export function mob_member_subscribe(mob_id, agent_identity) {
499
512
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
500
513
  const len0 = WASM_VECTOR_LEN;
501
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
514
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
502
515
  const len1 = WASM_VECTOR_LEN;
503
516
  const ret = wasm.mob_member_subscribe(ptr0, len0, ptr1, len1);
504
517
  return ret;
505
518
  }
506
519
 
507
520
  /**
508
- * Retire and re-spawn a meerkat with the same profile.
521
+ * Retire and re-spawn a member with the same profile.
509
522
  *
510
523
  * Returns JSON result envelope with receipt.
511
524
  * @param {string} mob_id
512
- * @param {string} meerkat_id
525
+ * @param {string} agent_identity
513
526
  * @param {string | null} [initial_message]
514
527
  * @returns {Promise<any>}
515
528
  */
516
- export function mob_respawn(mob_id, meerkat_id, initial_message) {
529
+ export function mob_respawn(mob_id, agent_identity, initial_message) {
517
530
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
518
531
  const len0 = WASM_VECTOR_LEN;
519
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
532
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
520
533
  const len1 = WASM_VECTOR_LEN;
521
534
  var ptr2 = isLikeNone(initial_message) ? 0 : passStringToWasm0(initial_message, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
522
535
  var len2 = WASM_VECTOR_LEN;
@@ -525,15 +538,15 @@ export function mob_respawn(mob_id, meerkat_id, initial_message) {
525
538
  }
526
539
 
527
540
  /**
528
- * Retire a meerkat from a mob.
541
+ * Retire a member from a mob.
529
542
  * @param {string} mob_id
530
- * @param {string} meerkat_id
543
+ * @param {string} agent_identity
531
544
  * @returns {Promise<void>}
532
545
  */
533
- export function mob_retire(mob_id, meerkat_id) {
546
+ export function mob_retire(mob_id, agent_identity) {
534
547
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
535
548
  const len0 = WASM_VECTOR_LEN;
536
- const ptr1 = passStringToWasm0(meerkat_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
549
+ const ptr1 = passStringToWasm0(agent_identity, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
537
550
  const len1 = WASM_VECTOR_LEN;
538
551
  const ret = wasm.mob_retire(ptr0, len0, ptr1, len1);
539
552
  return ret;
@@ -560,12 +573,12 @@ export function mob_run_flow(mob_id, flow_id, params_json) {
560
573
  }
561
574
 
562
575
  /**
563
- * Spawn one or more meerkats in a mob.
576
+ * Spawn one or more members in a mob.
564
577
  *
565
- * `specs_json`: JSON array of `{ "profile": "...", "meerkat_id": "...", "initial_message"?: "...",
578
+ * `specs_json`: JSON array of `{ "profile": "...", "agent_identity": "...", "initial_message"?: "...",
566
579
  * "runtime_mode"?: "autonomous_host"|"turn_driven", "backend"?: "session"|"external" }`
567
580
  *
568
- * Returns JSON array of results per spec.
581
+ * Returns JSON array of typed result entries per spec.
569
582
  * @param {string} mob_id
570
583
  * @param {string} specs_json
571
584
  * @returns {Promise<any>}
@@ -597,7 +610,7 @@ export function mob_spawn_helper(mob_id, request_json) {
597
610
  /**
598
611
  * Get the status of a mob.
599
612
  *
600
- * Returns JSON with the mob state.
613
+ * Returns JSON with the generated mob status plus the legacy state projection.
601
614
  * @param {string} mob_id
602
615
  * @returns {Promise<any>}
603
616
  */
@@ -615,7 +628,7 @@ export function mob_status(mob_id) {
615
628
  * buffered events. Each call returns all events since the last poll.
616
629
  *
617
630
  * Unlike `mob_member_subscribe` which streams a single member's agent events,
618
- * this streams [`AttributedEvent`]s tagged with source meerkat_id and profile
631
+ * this streams [`AttributedEvent`]s tagged with source runtime identity and role
619
632
  * for every member in the mob, automatically tracking roster changes.
620
633
  * @param {string} mob_id
621
634
  * @returns {Promise<number>}
@@ -628,7 +641,7 @@ export function mob_subscribe_events(mob_id) {
628
641
  }
629
642
 
630
643
  /**
631
- * Unwire bidirectional trust between two meerkats.
644
+ * Unwire bidirectional trust between two members.
632
645
  * @param {string} mob_id
633
646
  * @param {string} a
634
647
  * @param {string} b
@@ -664,7 +677,7 @@ export function mob_unwire_peer(mob_id, member, peer_json) {
664
677
  }
665
678
 
666
679
  /**
667
- * Unwire a local meerkat from a local or external peer target.
680
+ * Unwire a local member from a local or external peer target.
668
681
  * @param {string} mob_id
669
682
  * @param {string} local
670
683
  * @param {string} target_json
@@ -682,7 +695,7 @@ export function mob_unwire_target(mob_id, local, target_json) {
682
695
  }
683
696
 
684
697
  /**
685
- * Wire bidirectional trust between two meerkats.
698
+ * Wire bidirectional trust between two members.
686
699
  * @param {string} mob_id
687
700
  * @param {string} a
688
701
  * @param {string} b
@@ -718,7 +731,7 @@ export function mob_wire_peer(mob_id, member, peer_json) {
718
731
  }
719
732
 
720
733
  /**
721
- * Wire a local meerkat to a local or external peer target.
734
+ * Wire a local member to a local or external peer target.
722
735
  * @param {string} mob_id
723
736
  * @param {string} local
724
737
  * @param {string} target_json
@@ -767,6 +780,8 @@ export function poll_events(handle) {
767
780
  *
768
781
  * Returns a JSON array of event objects. Drains all buffered events
769
782
  * since the last poll. Non-blocking: returns `[]` if no new events.
783
+ * If any buffered event cannot be projected to JSON, returns a typed
784
+ * `serialize_error` instead of silently omitting the event.
770
785
  *
771
786
  * For per-member subscriptions (`mob_member_subscribe`), returns
772
787
  * `EventEnvelope<AgentEvent>` objects. For mob-wide subscriptions
@@ -794,6 +809,31 @@ export function poll_subscription(handle) {
794
809
  }
795
810
  }
796
811
 
812
+ /**
813
+ * Register a JS-side external-auth resolver. The callback receives a
814
+ * structural auth binding reference argument (`{ realm, binding, profile? }`)
815
+ * and must return a Promise that resolves to a JSON-serializable
816
+ * `ResolvedAuthEnvelope` object.
817
+ *
818
+ * Lease-bearing credentials must use the typed object form:
819
+ * `{ kind: "inline_secret", secret, metadata, expires_at? }`.
820
+ * Structured failures should reject the Promise with a wire auth error
821
+ * object, e.g. `{ kind: "interactive_login_required" }` or
822
+ * `{ kind: "refresh_failed", detail }`.
823
+ *
824
+ * Subsequent registrations overwrite the previous one. Passing
825
+ * `undefined` clears the registration.
826
+ *
827
+ * Plan §Phase 4d.wasm.1.
828
+ * @param {any} callback
829
+ */
830
+ export function register_external_auth_resolver(callback) {
831
+ const ret = wasm.register_external_auth_resolver(callback);
832
+ if (ret[1]) {
833
+ throw takeFromExternrefTable0(ret[0]);
834
+ }
835
+ }
836
+
797
837
  /**
798
838
  * Register a fire-and-forget tool from JavaScript.
799
839
  *
@@ -896,15 +936,12 @@ export function runtime_version() {
896
936
  * Agent-level errors (LLM failure, timeout) resolve with `status: "failed"` + `error` field.
897
937
  * @param {number} handle
898
938
  * @param {string} prompt
899
- * @param {string} options_json
900
939
  * @returns {Promise<any>}
901
940
  */
902
- export function start_turn(handle, prompt, options_json) {
941
+ export function start_turn(handle, prompt) {
903
942
  const ptr0 = passStringToWasm0(prompt, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
904
943
  const len0 = WASM_VECTOR_LEN;
905
- const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
906
- const len1 = WASM_VECTOR_LEN;
907
- const ret = wasm.start_turn(handle, ptr0, len0, ptr1, len1);
944
+ const ret = wasm.start_turn(handle, ptr0, len0);
908
945
  return ret;
909
946
  }
910
947
 
@@ -926,19 +963,19 @@ export function task_worker_entry_point(ptr) {
926
963
  * mob boundaries by accessing each member's comms runtime through the shared
927
964
  * session service. Both members must have comms enabled.
928
965
  * @param {string} mob_a
929
- * @param {string} meerkat_a
966
+ * @param {string} agent_a
930
967
  * @param {string} mob_b
931
- * @param {string} meerkat_b
968
+ * @param {string} agent_b
932
969
  * @returns {Promise<void>}
933
970
  */
934
- export function wire_cross_mob(mob_a, meerkat_a, mob_b, meerkat_b) {
971
+ export function wire_cross_mob(mob_a, agent_a, mob_b, agent_b) {
935
972
  const ptr0 = passStringToWasm0(mob_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
936
973
  const len0 = WASM_VECTOR_LEN;
937
- const ptr1 = passStringToWasm0(meerkat_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
974
+ const ptr1 = passStringToWasm0(agent_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
938
975
  const len1 = WASM_VECTOR_LEN;
939
976
  const ptr2 = passStringToWasm0(mob_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
940
977
  const len2 = WASM_VECTOR_LEN;
941
- const ptr3 = passStringToWasm0(meerkat_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
978
+ const ptr3 = passStringToWasm0(agent_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
942
979
  const len3 = WASM_VECTOR_LEN;
943
980
  const ret = wasm.wire_cross_mob(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
944
981
  return ret;
@@ -958,6 +995,10 @@ function __wbg_get_imports() {
958
995
  const ret = typeof(arg0) === 'function';
959
996
  return ret;
960
997
  },
998
+ __wbg___wbindgen_is_null_ac34f5003991759a: function(arg0) {
999
+ const ret = arg0 === null;
1000
+ return ret;
1001
+ },
961
1002
  __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
962
1003
  const val = arg0;
963
1004
  const ret = typeof(val) === 'object' && val !== null;
@@ -1106,6 +1147,26 @@ function __wbg_get_imports() {
1106
1147
  const ret = arg0.headers;
1107
1148
  return ret;
1108
1149
  },
1150
+ __wbg_instanceof_Error_8573fe0b0b480f46: function(arg0) {
1151
+ let result;
1152
+ try {
1153
+ result = arg0 instanceof Error;
1154
+ } catch (_) {
1155
+ result = false;
1156
+ }
1157
+ const ret = result;
1158
+ return ret;
1159
+ },
1160
+ __wbg_instanceof_Promise_0094681e3519d6ec: function(arg0) {
1161
+ let result;
1162
+ try {
1163
+ result = arg0 instanceof Promise;
1164
+ } catch (_) {
1165
+ result = false;
1166
+ }
1167
+ const ret = result;
1168
+ return ret;
1169
+ },
1109
1170
  __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
1110
1171
  let result;
1111
1172
  try {
@@ -1165,6 +1226,10 @@ function __wbg_get_imports() {
1165
1226
  wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
1166
1227
  }
1167
1228
  }, arguments); },
1229
+ __wbg_message_9ddc4b9a62a7c379: function(arg0) {
1230
+ const ret = arg0.message;
1231
+ return ret;
1232
+ },
1168
1233
  __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
1169
1234
  const ret = arg0.msCrypto;
1170
1235
  return ret;
@@ -1192,7 +1257,7 @@ function __wbg_get_imports() {
1192
1257
  const a = state0.a;
1193
1258
  state0.a = 0;
1194
1259
  try {
1195
- return wasm_bindgen__convert__closures_____invoke__h027fc7640278d6db(a, state0.b, arg0, arg1);
1260
+ return wasm_bindgen__convert__closures_____invoke__h000908a3022707e8(a, state0.b, arg0, arg1);
1196
1261
  } finally {
1197
1262
  state0.a = a;
1198
1263
  }
@@ -1247,10 +1312,6 @@ function __wbg_get_imports() {
1247
1312
  const ret = arg0.now();
1248
1313
  return ret;
1249
1314
  },
1250
- __wbg_now_37839916ec63896b: function() { return handleError(function () {
1251
- const ret = Date.now();
1252
- return ret;
1253
- }, arguments); },
1254
1315
  __wbg_now_a3af9a2f4bbaa4d1: function() {
1255
1316
  const ret = Date.now();
1256
1317
  return ret;
@@ -1308,6 +1369,10 @@ function __wbg_get_imports() {
1308
1369
  __wbg_setTimeout_8b62ed7f9b0524db: function(arg0, arg1) {
1309
1370
  globalThis.setTimeout(arg0, arg1);
1310
1371
  },
1372
+ __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
1373
+ const ret = Reflect.set(arg0, arg1, arg2);
1374
+ return ret;
1375
+ }, arguments); },
1311
1376
  __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
1312
1377
  arg0.body = arg1;
1313
1378
  },
@@ -1396,18 +1461,18 @@ function __wbg_get_imports() {
1396
1461
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1397
1462
  },
1398
1463
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1399
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2188, function: Function { arguments: [], shim_idx: 2189, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1400
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h106b5dbd8202a7df, wasm_bindgen__convert__closures_____invoke__hd7b55e518cfe0f3a);
1464
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4559, function: Function { arguments: [], shim_idx: 4560, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1465
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8d4c756ab63d9770, wasm_bindgen__convert__closures_____invoke__hc044ecd2c461ff5b);
1401
1466
  return ret;
1402
1467
  },
1403
1468
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1404
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4576, function: Function { arguments: [], shim_idx: 4577, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1405
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h7f34be0b3a836172, wasm_bindgen__convert__closures_____invoke__h7415d9853ffcc319);
1469
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7067, function: Function { arguments: [], shim_idx: 7068, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1470
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5aa0d731ff57d357, wasm_bindgen__convert__closures_____invoke__hf7f43c07d2237779);
1406
1471
  return ret;
1407
1472
  },
1408
1473
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1409
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4599, function: Function { arguments: [Externref], shim_idx: 4600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1410
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h77919cec1c17ae69, wasm_bindgen__convert__closures_____invoke__hd13d9d6a8fb8d666);
1474
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7090, function: Function { arguments: [Externref], shim_idx: 7091, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1475
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h973cae16c57d7463, wasm_bindgen__convert__closures_____invoke__h5b49a0460cf7b45a);
1411
1476
  return ret;
1412
1477
  },
1413
1478
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -1441,20 +1506,20 @@ function __wbg_get_imports() {
1441
1506
  };
1442
1507
  }
1443
1508
 
1444
- function wasm_bindgen__convert__closures_____invoke__hd7b55e518cfe0f3a(arg0, arg1) {
1445
- wasm.wasm_bindgen__convert__closures_____invoke__hd7b55e518cfe0f3a(arg0, arg1);
1509
+ function wasm_bindgen__convert__closures_____invoke__hc044ecd2c461ff5b(arg0, arg1) {
1510
+ wasm.wasm_bindgen__convert__closures_____invoke__hc044ecd2c461ff5b(arg0, arg1);
1446
1511
  }
1447
1512
 
1448
- function wasm_bindgen__convert__closures_____invoke__h7415d9853ffcc319(arg0, arg1) {
1449
- wasm.wasm_bindgen__convert__closures_____invoke__h7415d9853ffcc319(arg0, arg1);
1513
+ function wasm_bindgen__convert__closures_____invoke__hf7f43c07d2237779(arg0, arg1) {
1514
+ wasm.wasm_bindgen__convert__closures_____invoke__hf7f43c07d2237779(arg0, arg1);
1450
1515
  }
1451
1516
 
1452
- function wasm_bindgen__convert__closures_____invoke__hd13d9d6a8fb8d666(arg0, arg1, arg2) {
1453
- wasm.wasm_bindgen__convert__closures_____invoke__hd13d9d6a8fb8d666(arg0, arg1, arg2);
1517
+ function wasm_bindgen__convert__closures_____invoke__h5b49a0460cf7b45a(arg0, arg1, arg2) {
1518
+ wasm.wasm_bindgen__convert__closures_____invoke__h5b49a0460cf7b45a(arg0, arg1, arg2);
1454
1519
  }
1455
1520
 
1456
- function wasm_bindgen__convert__closures_____invoke__h027fc7640278d6db(arg0, arg1, arg2, arg3) {
1457
- wasm.wasm_bindgen__convert__closures_____invoke__h027fc7640278d6db(arg0, arg1, arg2, arg3);
1521
+ function wasm_bindgen__convert__closures_____invoke__h000908a3022707e8(arg0, arg1, arg2, arg3) {
1522
+ wasm.wasm_bindgen__convert__closures_____invoke__h000908a3022707e8(arg0, arg1, arg2, arg3);
1458
1523
  }
1459
1524
 
1460
1525
 
Binary file
@@ -1,6 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const has_external_auth_resolver: () => number;
5
+ export const register_external_auth_resolver: (a: any) => [number, number];
4
6
  export const append_system_context: (a: number, b: number, c: number) => any;
5
7
  export const close_subscription: (a: number) => [number, number];
6
8
  export const create_session: (a: number, b: number, c: number, d: number) => [number, number, number];
@@ -42,9 +44,11 @@ export const poll_subscription: (a: number) => [number, number, number, number];
42
44
  export const register_js_tool: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
43
45
  export const register_tool_callback: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
44
46
  export const runtime_version: () => [number, number];
45
- export const start_turn: (a: number, b: number, c: number, d: number, e: number) => any;
47
+ export const start_turn: (a: number, b: number, c: number) => any;
46
48
  export const wire_cross_mob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
47
49
  export const clear_tool_callbacks: () => void;
50
+ export const __meerkat_agent_factory_policy_build_v3_22bac767e5ac2bbb: (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_22bac767e5ac2bbb: (a: number, b: number) => number;
48
52
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
49
53
  export const intounderlyingsource_cancel: (a: number) => void;
50
54
  export const intounderlyingsource_pull: (a: number, b: any) => any;
@@ -59,13 +63,13 @@ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
59
63
  export const intounderlyingbytesource_start: (a: number, b: any) => void;
60
64
  export const intounderlyingbytesource_type: (a: number) => number;
61
65
  export const task_worker_entry_point: (a: number) => [number, number];
62
- export const wasm_bindgen__closure__destroy__h106b5dbd8202a7df: (a: number, b: number) => void;
63
- export const wasm_bindgen__closure__destroy__h7f34be0b3a836172: (a: number, b: number) => void;
64
- export const wasm_bindgen__closure__destroy__h77919cec1c17ae69: (a: number, b: number) => void;
65
- export const wasm_bindgen__convert__closures_____invoke__h027fc7640278d6db: (a: number, b: number, c: any, d: any) => void;
66
- export const wasm_bindgen__convert__closures_____invoke__hd13d9d6a8fb8d666: (a: number, b: number, c: any) => void;
67
- export const wasm_bindgen__convert__closures_____invoke__hd7b55e518cfe0f3a: (a: number, b: number) => void;
68
- export const wasm_bindgen__convert__closures_____invoke__h7415d9853ffcc319: (a: number, b: number) => void;
66
+ export const wasm_bindgen__closure__destroy__h8d4c756ab63d9770: (a: number, b: number) => void;
67
+ export const wasm_bindgen__closure__destroy__h5aa0d731ff57d357: (a: number, b: number) => void;
68
+ export const wasm_bindgen__closure__destroy__h973cae16c57d7463: (a: number, b: number) => void;
69
+ export const wasm_bindgen__convert__closures_____invoke__h000908a3022707e8: (a: number, b: number, c: any, d: any) => void;
70
+ export const wasm_bindgen__convert__closures_____invoke__h5b49a0460cf7b45a: (a: number, b: number, c: any) => void;
71
+ export const wasm_bindgen__convert__closures_____invoke__hc044ecd2c461ff5b: (a: number, b: number) => void;
72
+ export const wasm_bindgen__convert__closures_____invoke__hf7f43c07d2237779: (a: number, b: number) => void;
69
73
  export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
70
74
  export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
71
75
  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.5.2",
7
+ "version": "0.6.0",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",