@rkat/web 0.5.2 → 0.6.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.
- package/dist/auth.d.ts +181 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +134 -0
- package/dist/auth.js.map +1 -0
- package/dist/events.d.ts +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +3 -0
- package/dist/events.js.map +1 -1
- package/dist/generated/auth.d.ts +247 -0
- package/dist/generated/auth.d.ts.map +1 -0
- package/dist/generated/auth.js +502 -0
- package/dist/generated/auth.js.map +1 -0
- package/dist/generated/events.d.ts +232 -54
- package/dist/generated/events.d.ts.map +1 -1
- package/dist/generated/events.js +5 -3
- package/dist/generated/events.js.map +1 -1
- package/dist/generated/mob.d.ts +50 -0
- package/dist/generated/mob.d.ts.map +1 -0
- package/dist/generated/mob.js +4 -0
- package/dist/generated/mob.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mob.d.ts +23 -21
- package/dist/mob.d.ts.map +1 -1
- package/dist/mob.js +510 -47
- package/dist/mob.js.map +1 -1
- package/dist/runtime.d.ts +8 -8
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +29 -8
- package/dist/runtime.js.map +1 -1
- package/dist/session.d.ts +9 -6
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +44 -33
- package/dist/session.js.map +1 -1
- package/dist/types.d.ts +91 -45
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +67 -1
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/wasm/.meerkat-wasm-build.json +5 -0
- package/wasm/meerkat_web_runtime.d.ts +68 -34
- package/wasm/meerkat_web_runtime.js +132 -67
- package/wasm/meerkat_web_runtime_bg.wasm +0 -0
- package/wasm/meerkat_web_runtime_bg.wasm.d.ts +12 -8
- 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`: `{ "
|
|
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`: `{ "
|
|
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}
|
|
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,
|
|
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(
|
|
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
|
|
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}
|
|
394
|
+
* @param {string} agent_identity
|
|
383
395
|
* @returns {Promise<void>}
|
|
384
396
|
*/
|
|
385
|
-
export function mob_force_cancel(mob_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(
|
|
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
|
|
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
|
|
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
|
|
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}
|
|
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,
|
|
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(
|
|
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}
|
|
487
|
+
* @param {string} agent_identity
|
|
475
488
|
* @returns {Promise<any>}
|
|
476
489
|
*/
|
|
477
|
-
export function mob_member_status(mob_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(
|
|
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}
|
|
508
|
+
* @param {string} agent_identity
|
|
496
509
|
* @returns {Promise<number>}
|
|
497
510
|
*/
|
|
498
|
-
export function mob_member_subscribe(mob_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(
|
|
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
|
|
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}
|
|
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,
|
|
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(
|
|
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
|
|
541
|
+
* Retire a member from a mob.
|
|
529
542
|
* @param {string} mob_id
|
|
530
|
-
* @param {string}
|
|
543
|
+
* @param {string} agent_identity
|
|
531
544
|
* @returns {Promise<void>}
|
|
532
545
|
*/
|
|
533
|
-
export function mob_retire(mob_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(
|
|
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
|
|
576
|
+
* Spawn one or more members in a mob.
|
|
564
577
|
*
|
|
565
|
-
* `specs_json`: JSON array of `{ "profile": "...", "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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}
|
|
966
|
+
* @param {string} agent_a
|
|
930
967
|
* @param {string} mob_b
|
|
931
|
-
* @param {string}
|
|
968
|
+
* @param {string} agent_b
|
|
932
969
|
* @returns {Promise<void>}
|
|
933
970
|
*/
|
|
934
|
-
export function wire_cross_mob(mob_a,
|
|
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(
|
|
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(
|
|
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
|
|
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:
|
|
1400
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1464
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4558, function: Function { arguments: [], shim_idx: 4559, 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:
|
|
1405
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
1469
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7060, function: Function { arguments: [], shim_idx: 7061, 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:
|
|
1410
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1474
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7083, function: Function { arguments: [Externref], shim_idx: 7084, 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
|
|
1445
|
-
wasm.
|
|
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
|
|
1449
|
-
wasm.
|
|
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
|
|
1453
|
-
wasm.
|
|
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
|
|
1457
|
-
wasm.
|
|
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
|
|
@@ -42,9 +42,13 @@ export const poll_subscription: (a: number) => [number, number, number, number];
|
|
|
42
42
|
export const register_js_tool: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
43
43
|
export const register_tool_callback: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
|
|
44
44
|
export const runtime_version: () => [number, number];
|
|
45
|
-
export const start_turn: (a: number, b: number, c: number
|
|
45
|
+
export const start_turn: (a: number, b: number, c: number) => any;
|
|
46
46
|
export const wire_cross_mob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
47
47
|
export const clear_tool_callbacks: () => void;
|
|
48
|
+
export const has_external_auth_resolver: () => number;
|
|
49
|
+
export const register_external_auth_resolver: (a: any) => [number, number];
|
|
50
|
+
export const __meerkat_agent_factory_policy_build_v3_3580f27ef1264307: (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_3580f27ef1264307: (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
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
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;
|