@rkat/web 0.5.1 → 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 +228 -48
  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 +9 -9
  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 +11 -8
  34. package/dist/session.d.ts.map +1 -1
  35. package/dist/session.js +46 -35
  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 +3 -3
  42. package/wasm/.meerkat-wasm-build.json +5 -0
  43. package/wasm/meerkat_web_runtime.d.ts +70 -36
  44. package/wasm/meerkat_web_runtime.js +134 -72
  45. package/wasm/meerkat_web_runtime_bg.wasm +0 -0
  46. package/wasm/meerkat_web_runtime_bg.wasm.d.ts +13 -9
  47. package/wasm/package.json +1 -1
@@ -115,16 +115,13 @@ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderly
115
115
  * Append runtime system context to a browser session handle.
116
116
  * @param {number} handle
117
117
  * @param {string} request_json
118
- * @returns {any}
118
+ * @returns {Promise<any>}
119
119
  */
120
120
  export function append_system_context(handle, request_json) {
121
121
  const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
122
122
  const len0 = WASM_VECTOR_LEN;
123
123
  const ret = wasm.append_system_context(handle, ptr0, len0);
124
- if (ret[2]) {
125
- throw takeFromExternrefTable0(ret[1]);
126
- }
127
- return takeFromExternrefTable0(ret[0]);
124
+ return ret;
128
125
  }
129
126
 
130
127
  /**
@@ -229,11 +226,22 @@ export function get_session_state(handle) {
229
226
  }
230
227
  }
231
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
+
232
240
  /**
233
241
  * Primary bootstrap: parse a mobpack and create service infrastructure.
234
242
  *
235
243
  * `mobpack_bytes`: tar.gz mobpack archive.
236
- * `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" }`
237
245
  *
238
246
  * Stores an `EphemeralSessionService<FactoryAgentBuilder>` and a `MobMcpState`
239
247
  * in a `thread_local! RuntimeState` for subsequent mob/comms calls.
@@ -256,7 +264,7 @@ export function init_runtime(mobpack_bytes, credentials_json) {
256
264
  /**
257
265
  * Advanced bare-bones bootstrap without a mobpack.
258
266
  *
259
- * `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 }`
260
268
  * @param {string} config_json
261
269
  * @returns {any}
262
270
  */
@@ -299,14 +307,14 @@ export function inspect_mobpack(mobpack_bytes) {
299
307
  /**
300
308
  * Append runtime system context to an individual mob member's session.
301
309
  * @param {string} mob_id
302
- * @param {string} meerkat_id
310
+ * @param {string} agent_identity
303
311
  * @param {string} request_json
304
312
  * @returns {Promise<any>}
305
313
  */
306
- 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) {
307
315
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
308
316
  const len0 = WASM_VECTOR_LEN;
309
- 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);
310
318
  const len1 = WASM_VECTOR_LEN;
311
319
  const ptr2 = passStringToWasm0(request_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
312
320
  const len2 = WASM_VECTOR_LEN;
@@ -365,7 +373,8 @@ export function mob_events(mob_id, after_cursor, limit) {
365
373
  /**
366
374
  * Read flow run status.
367
375
  *
368
- * 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.
369
378
  * @param {string} mob_id
370
379
  * @param {string} run_id
371
380
  * @returns {Promise<any>}
@@ -382,13 +391,13 @@ export function mob_flow_status(mob_id, run_id) {
382
391
  /**
383
392
  * Force-cancel an active mob member turn.
384
393
  * @param {string} mob_id
385
- * @param {string} meerkat_id
394
+ * @param {string} agent_identity
386
395
  * @returns {Promise<void>}
387
396
  */
388
- export function mob_force_cancel(mob_id, meerkat_id) {
397
+ export function mob_force_cancel(mob_id, agent_identity) {
389
398
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
390
399
  const len0 = WASM_VECTOR_LEN;
391
- 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);
392
401
  const len1 = WASM_VECTOR_LEN;
393
402
  const ret = wasm.mob_force_cancel(ptr0, len0, ptr1, len1);
394
403
  return ret;
@@ -412,7 +421,8 @@ export function mob_fork_helper(mob_id, request_json) {
412
421
  /**
413
422
  * Perform a lifecycle action on a mob.
414
423
  *
415
- * `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.
416
426
  * @param {string} mob_id
417
427
  * @param {string} action
418
428
  * @returns {Promise<void>}
@@ -429,7 +439,7 @@ export function mob_lifecycle(mob_id, action) {
429
439
  /**
430
440
  * List all mobs.
431
441
  *
432
- * Returns JSON array of `{ mob_id, state }`.
442
+ * Returns a generated `MobListResult` JSON envelope.
433
443
  * @returns {Promise<any>}
434
444
  */
435
445
  export function mob_list() {
@@ -452,18 +462,18 @@ export function mob_list_members(mob_id) {
452
462
  }
453
463
 
454
464
  /**
455
- * 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.
456
466
  *
457
467
  * Returns a JSON-encoded delivery receipt.
458
468
  * @param {string} mob_id
459
- * @param {string} meerkat_id
469
+ * @param {string} agent_identity
460
470
  * @param {string} request_json
461
471
  * @returns {Promise<string>}
462
472
  */
463
- export function mob_member_send(mob_id, meerkat_id, request_json) {
473
+ export function mob_member_send(mob_id, agent_identity, request_json) {
464
474
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
465
475
  const len0 = WASM_VECTOR_LEN;
466
- 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);
467
477
  const len1 = WASM_VECTOR_LEN;
468
478
  const ptr2 = passStringToWasm0(request_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
469
479
  const len2 = WASM_VECTOR_LEN;
@@ -474,13 +484,13 @@ export function mob_member_send(mob_id, meerkat_id, request_json) {
474
484
  /**
475
485
  * Read the current execution snapshot for a mob member.
476
486
  * @param {string} mob_id
477
- * @param {string} meerkat_id
487
+ * @param {string} agent_identity
478
488
  * @returns {Promise<any>}
479
489
  */
480
- export function mob_member_status(mob_id, meerkat_id) {
490
+ export function mob_member_status(mob_id, agent_identity) {
481
491
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
482
492
  const len0 = WASM_VECTOR_LEN;
483
- 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);
484
494
  const len1 = WASM_VECTOR_LEN;
485
495
  const ret = wasm.mob_member_status(ptr0, len0, ptr1, len1);
486
496
  return ret;
@@ -495,31 +505,31 @@ export function mob_member_status(mob_id, meerkat_id) {
495
505
  * The subscription captures ALL agent activity: text deltas, tool calls
496
506
  * (including comms send_message/peers), turn completions, etc.
497
507
  * @param {string} mob_id
498
- * @param {string} meerkat_id
508
+ * @param {string} agent_identity
499
509
  * @returns {Promise<number>}
500
510
  */
501
- export function mob_member_subscribe(mob_id, meerkat_id) {
511
+ export function mob_member_subscribe(mob_id, agent_identity) {
502
512
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
503
513
  const len0 = WASM_VECTOR_LEN;
504
- 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);
505
515
  const len1 = WASM_VECTOR_LEN;
506
516
  const ret = wasm.mob_member_subscribe(ptr0, len0, ptr1, len1);
507
517
  return ret;
508
518
  }
509
519
 
510
520
  /**
511
- * Retire and re-spawn a meerkat with the same profile.
521
+ * Retire and re-spawn a member with the same profile.
512
522
  *
513
523
  * Returns JSON result envelope with receipt.
514
524
  * @param {string} mob_id
515
- * @param {string} meerkat_id
525
+ * @param {string} agent_identity
516
526
  * @param {string | null} [initial_message]
517
527
  * @returns {Promise<any>}
518
528
  */
519
- export function mob_respawn(mob_id, meerkat_id, initial_message) {
529
+ export function mob_respawn(mob_id, agent_identity, initial_message) {
520
530
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
521
531
  const len0 = WASM_VECTOR_LEN;
522
- 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);
523
533
  const len1 = WASM_VECTOR_LEN;
524
534
  var ptr2 = isLikeNone(initial_message) ? 0 : passStringToWasm0(initial_message, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
525
535
  var len2 = WASM_VECTOR_LEN;
@@ -528,15 +538,15 @@ export function mob_respawn(mob_id, meerkat_id, initial_message) {
528
538
  }
529
539
 
530
540
  /**
531
- * Retire a meerkat from a mob.
541
+ * Retire a member from a mob.
532
542
  * @param {string} mob_id
533
- * @param {string} meerkat_id
543
+ * @param {string} agent_identity
534
544
  * @returns {Promise<void>}
535
545
  */
536
- export function mob_retire(mob_id, meerkat_id) {
546
+ export function mob_retire(mob_id, agent_identity) {
537
547
  const ptr0 = passStringToWasm0(mob_id, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
538
548
  const len0 = WASM_VECTOR_LEN;
539
- 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);
540
550
  const len1 = WASM_VECTOR_LEN;
541
551
  const ret = wasm.mob_retire(ptr0, len0, ptr1, len1);
542
552
  return ret;
@@ -563,12 +573,12 @@ export function mob_run_flow(mob_id, flow_id, params_json) {
563
573
  }
564
574
 
565
575
  /**
566
- * Spawn one or more meerkats in a mob.
576
+ * Spawn one or more members in a mob.
567
577
  *
568
- * `specs_json`: JSON array of `{ "profile": "...", "meerkat_id": "...", "initial_message"?: "...",
578
+ * `specs_json`: JSON array of `{ "profile": "...", "agent_identity": "...", "initial_message"?: "...",
569
579
  * "runtime_mode"?: "autonomous_host"|"turn_driven", "backend"?: "session"|"external" }`
570
580
  *
571
- * Returns JSON array of results per spec.
581
+ * Returns JSON array of typed result entries per spec.
572
582
  * @param {string} mob_id
573
583
  * @param {string} specs_json
574
584
  * @returns {Promise<any>}
@@ -600,7 +610,7 @@ export function mob_spawn_helper(mob_id, request_json) {
600
610
  /**
601
611
  * Get the status of a mob.
602
612
  *
603
- * Returns JSON with the mob state.
613
+ * Returns JSON with the generated mob status plus the legacy state projection.
604
614
  * @param {string} mob_id
605
615
  * @returns {Promise<any>}
606
616
  */
@@ -618,7 +628,7 @@ export function mob_status(mob_id) {
618
628
  * buffered events. Each call returns all events since the last poll.
619
629
  *
620
630
  * Unlike `mob_member_subscribe` which streams a single member's agent events,
621
- * this streams [`AttributedEvent`]s tagged with source meerkat_id and profile
631
+ * this streams [`AttributedEvent`]s tagged with source runtime identity and role
622
632
  * for every member in the mob, automatically tracking roster changes.
623
633
  * @param {string} mob_id
624
634
  * @returns {Promise<number>}
@@ -631,7 +641,7 @@ export function mob_subscribe_events(mob_id) {
631
641
  }
632
642
 
633
643
  /**
634
- * Unwire bidirectional trust between two meerkats.
644
+ * Unwire bidirectional trust between two members.
635
645
  * @param {string} mob_id
636
646
  * @param {string} a
637
647
  * @param {string} b
@@ -667,7 +677,7 @@ export function mob_unwire_peer(mob_id, member, peer_json) {
667
677
  }
668
678
 
669
679
  /**
670
- * Unwire a local meerkat from a local or external peer target.
680
+ * Unwire a local member from a local or external peer target.
671
681
  * @param {string} mob_id
672
682
  * @param {string} local
673
683
  * @param {string} target_json
@@ -685,7 +695,7 @@ export function mob_unwire_target(mob_id, local, target_json) {
685
695
  }
686
696
 
687
697
  /**
688
- * Wire bidirectional trust between two meerkats.
698
+ * Wire bidirectional trust between two members.
689
699
  * @param {string} mob_id
690
700
  * @param {string} a
691
701
  * @param {string} b
@@ -721,7 +731,7 @@ export function mob_wire_peer(mob_id, member, peer_json) {
721
731
  }
722
732
 
723
733
  /**
724
- * Wire a local meerkat to a local or external peer target.
734
+ * Wire a local member to a local or external peer target.
725
735
  * @param {string} mob_id
726
736
  * @param {string} local
727
737
  * @param {string} target_json
@@ -770,6 +780,8 @@ export function poll_events(handle) {
770
780
  *
771
781
  * Returns a JSON array of event objects. Drains all buffered events
772
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.
773
785
  *
774
786
  * For per-member subscriptions (`mob_member_subscribe`), returns
775
787
  * `EventEnvelope<AgentEvent>` objects. For mob-wide subscriptions
@@ -797,6 +809,31 @@ export function poll_subscription(handle) {
797
809
  }
798
810
  }
799
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
+
800
837
  /**
801
838
  * Register a fire-and-forget tool from JavaScript.
802
839
  *
@@ -899,15 +936,12 @@ export function runtime_version() {
899
936
  * Agent-level errors (LLM failure, timeout) resolve with `status: "failed"` + `error` field.
900
937
  * @param {number} handle
901
938
  * @param {string} prompt
902
- * @param {string} options_json
903
939
  * @returns {Promise<any>}
904
940
  */
905
- export function start_turn(handle, prompt, options_json) {
941
+ export function start_turn(handle, prompt) {
906
942
  const ptr0 = passStringToWasm0(prompt, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
907
943
  const len0 = WASM_VECTOR_LEN;
908
- const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
909
- const len1 = WASM_VECTOR_LEN;
910
- const ret = wasm.start_turn(handle, ptr0, len0, ptr1, len1);
944
+ const ret = wasm.start_turn(handle, ptr0, len0);
911
945
  return ret;
912
946
  }
913
947
 
@@ -929,19 +963,19 @@ export function task_worker_entry_point(ptr) {
929
963
  * mob boundaries by accessing each member's comms runtime through the shared
930
964
  * session service. Both members must have comms enabled.
931
965
  * @param {string} mob_a
932
- * @param {string} meerkat_a
966
+ * @param {string} agent_a
933
967
  * @param {string} mob_b
934
- * @param {string} meerkat_b
968
+ * @param {string} agent_b
935
969
  * @returns {Promise<void>}
936
970
  */
937
- 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) {
938
972
  const ptr0 = passStringToWasm0(mob_a, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
939
973
  const len0 = WASM_VECTOR_LEN;
940
- 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);
941
975
  const len1 = WASM_VECTOR_LEN;
942
976
  const ptr2 = passStringToWasm0(mob_b, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
943
977
  const len2 = WASM_VECTOR_LEN;
944
- 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);
945
979
  const len3 = WASM_VECTOR_LEN;
946
980
  const ret = wasm.wire_cross_mob(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
947
981
  return ret;
@@ -961,6 +995,10 @@ function __wbg_get_imports() {
961
995
  const ret = typeof(arg0) === 'function';
962
996
  return ret;
963
997
  },
998
+ __wbg___wbindgen_is_null_ac34f5003991759a: function(arg0) {
999
+ const ret = arg0 === null;
1000
+ return ret;
1001
+ },
964
1002
  __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
965
1003
  const val = arg0;
966
1004
  const ret = typeof(val) === 'object' && val !== null;
@@ -1109,6 +1147,26 @@ function __wbg_get_imports() {
1109
1147
  const ret = arg0.headers;
1110
1148
  return ret;
1111
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
+ },
1112
1170
  __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
1113
1171
  let result;
1114
1172
  try {
@@ -1168,6 +1226,10 @@ function __wbg_get_imports() {
1168
1226
  wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
1169
1227
  }
1170
1228
  }, arguments); },
1229
+ __wbg_message_9ddc4b9a62a7c379: function(arg0) {
1230
+ const ret = arg0.message;
1231
+ return ret;
1232
+ },
1171
1233
  __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
1172
1234
  const ret = arg0.msCrypto;
1173
1235
  return ret;
@@ -1195,7 +1257,7 @@ function __wbg_get_imports() {
1195
1257
  const a = state0.a;
1196
1258
  state0.a = 0;
1197
1259
  try {
1198
- 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);
1199
1261
  } finally {
1200
1262
  state0.a = a;
1201
1263
  }
@@ -1250,10 +1312,6 @@ function __wbg_get_imports() {
1250
1312
  const ret = arg0.now();
1251
1313
  return ret;
1252
1314
  },
1253
- __wbg_now_37839916ec63896b: function() { return handleError(function () {
1254
- const ret = Date.now();
1255
- return ret;
1256
- }, arguments); },
1257
1315
  __wbg_now_a3af9a2f4bbaa4d1: function() {
1258
1316
  const ret = Date.now();
1259
1317
  return ret;
@@ -1311,6 +1369,10 @@ function __wbg_get_imports() {
1311
1369
  __wbg_setTimeout_8b62ed7f9b0524db: function(arg0, arg1) {
1312
1370
  globalThis.setTimeout(arg0, arg1);
1313
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); },
1314
1376
  __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
1315
1377
  arg0.body = arg1;
1316
1378
  },
@@ -1399,18 +1461,18 @@ function __wbg_get_imports() {
1399
1461
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1400
1462
  },
1401
1463
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1402
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2139, function: Function { arguments: [], shim_idx: 2140, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1403
- 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);
1404
1466
  return ret;
1405
1467
  },
1406
1468
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1407
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4535, function: Function { arguments: [], shim_idx: 4536, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1408
- 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);
1409
1471
  return ret;
1410
1472
  },
1411
1473
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1412
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4558, function: Function { arguments: [Externref], shim_idx: 4559, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1413
- 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);
1414
1476
  return ret;
1415
1477
  },
1416
1478
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -1444,20 +1506,20 @@ function __wbg_get_imports() {
1444
1506
  };
1445
1507
  }
1446
1508
 
1447
- function wasm_bindgen__convert__closures_____invoke__hd7b55e518cfe0f3a(arg0, arg1) {
1448
- 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);
1449
1511
  }
1450
1512
 
1451
- function wasm_bindgen__convert__closures_____invoke__h7415d9853ffcc319(arg0, arg1) {
1452
- 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);
1453
1515
  }
1454
1516
 
1455
- function wasm_bindgen__convert__closures_____invoke__hd13d9d6a8fb8d666(arg0, arg1, arg2) {
1456
- 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);
1457
1519
  }
1458
1520
 
1459
- function wasm_bindgen__convert__closures_____invoke__h027fc7640278d6db(arg0, arg1, arg2, arg3) {
1460
- 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);
1461
1523
  }
1462
1524
 
1463
1525
 
Binary file
@@ -1,7 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const append_system_context: (a: number, b: number, c: number) => [number, number, number];
4
+ export const has_external_auth_resolver: () => number;
5
+ export const register_external_auth_resolver: (a: any) => [number, number];
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];
7
9
  export const create_session_simple: (a: number, b: 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.1",
7
+ "version": "0.6.0",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",