nanocodex 0.6.6 → 0.6.7
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/README.md +297 -6
- package/THIRD-PARTY-LICENSES +23 -0
- package/browser/Agent.d.mts +5 -4
- package/browser/Agent.mjs +4 -0
- package/browser/Claude.d.mts +4 -0
- package/browser/Claude.mjs +11 -0
- package/browser/InlineAgent.mjs +19 -1
- package/browser/host.d.mts +54 -1
- package/browser/host.mjs +65 -16
- package/browser/hostManagedWebSocket.mjs +11 -2
- package/browser/index.d.mts +3 -10
- package/browser/index.mjs +2 -5
- package/browser/socket-observations.mjs +203 -0
- package/cloud/Decorator.d.mts +2 -2
- package/cloud/Decorator.mjs +1 -0
- package/cloud/Dialog.d.mts +13 -0
- package/cloud/Dialog.mjs +52 -6
- package/cloud/Transport.d.mts +0 -11
- package/cloud/Transport.mjs +1 -386
- package/cloud/actions/account.d.mts +12 -0
- package/cloud/actions/account.mjs +11 -0
- package/cloud/actions/agent.mjs +3 -0
- package/cloud/actions/connection.d.mts +3 -1
- package/cloud/actions/connection.mjs +19 -4
- package/cloud/index.d.mts +1 -1
- package/cloud/index.mjs +1 -1
- package/cloud/internal.mjs +19 -4
- package/cloud/mercator.mjs +1 -1
- package/cloud/mock.d.mts +17 -0
- package/cloud/mock.mjs +392 -0
- package/cloud/types.d.mts +3 -1
- package/cloudflare/Agent.d.mts +2 -0
- package/cloudflare/Agent.mjs +88 -2
- package/cloudflare/agent-settings.d.mts +1 -1
- package/cloudflare/agent-settings.mjs +9 -0
- package/cloudflare/egress.mjs +9 -6
- package/cloudflare/gateway-responses.d.mts +1 -0
- package/cloudflare/gateway-responses.mjs +2 -2
- package/cloudflare/managed-auth.d.mts +4 -4
- package/cloudflare/managed-auth.mjs +14 -2
- package/cloudflare/managed-live.d.mts +6 -0
- package/cloudflare/managed-live.mjs +56 -1
- package/cloudflare/workers-ai-responses.d.mts +2 -1
- package/cloudflare/workers-ai-responses.mjs +80 -6
- package/host/Agent.d.mts +6 -2
- package/host/Claude.d.mts +3 -0
- package/host/Claude.mjs +2 -0
- package/host/index.d.mts +6 -10
- package/host/index.mjs +2 -5
- package/index.d.mts +11 -10
- package/index.mjs +0 -5
- package/internal.mjs +28 -3
- package/managed/Agent.d.mts +6 -2
- package/managed/Agent.mjs +39 -5
- package/managed/ManagedError.d.mts +3 -0
- package/node/Agent.d.mts +6 -2
- package/node/Agent.mjs +14 -1
- package/node/Claude.d.mts +4 -0
- package/node/Claude.mjs +24 -0
- package/node/host.mjs +18 -9
- package/node/index.d.mts +6 -10
- package/node/index.mjs +2 -5
- package/package.json +41 -9
- package/pkg-node/nanocodex.d.ts +109 -0
- package/pkg-node/nanocodex.js +818 -51
- package/pkg-node/nanocodex_bg.wasm.d.ts +47 -3
- package/pkg-web/.nanocodex-bindgen-stamp +3 -3
- package/pkg-web/nanocodex-build.json +1 -1
- package/pkg-web/nanocodex.d.ts +156 -3
- package/pkg-web/nanocodex.js +813 -51
- package/pkg-web/nanocodex_bg.js +813 -51
- package/pkg-web/nanocodex_bg.wasm +0 -0
- package/pkg-web/nanocodex_bg.wasm.d.ts +47 -3
- package/pkg-web/nanocodex_worker.js +1 -1
- package/runtime/claude-host.mjs +308 -0
- package/runtime/claude-subscription.mjs +79 -0
- package/runtime/claude.d.mts +112 -0
- package/runtime/claude.mjs +221 -0
- package/runtime/code-effect-identity.mjs +123 -0
- package/runtime/harnesses.mjs +51 -0
- package/runtime/mcp-payment.mjs +8 -0
- package/runtime/mcp-runtime.d.mts +10 -0
- package/runtime/mcp-runtime.mjs +242 -57
- package/runtime/mercator.mjs +2 -0
- package/runtime/quickjs-evaluator.mjs +23 -11
- package/runtime/response-controls.mjs +1 -6
- package/runtime/responses-http.mjs +4 -2
- package/runtime/retry-after.d.mts +10 -0
- package/runtime/retry-after.mjs +86 -0
- package/runtime/steer-receipt.mjs +8 -1
- package/runtime/subagent-routing.d.mts +4 -2
- package/runtime/subagent-routing.mjs +7 -2
- package/runtime/subagents.d.mts +8 -3
- package/services/account.d.mts +76 -0
- package/services/account.mjs +151 -0
- package/services/hosted.mjs +72 -0
- package/services/index.d.mts +95 -0
- package/services/index.mjs +192 -0
- package/services/scope.mjs +36 -0
- package/{runtime/tempo-provider.d.mts → tempo/index.d.mts} +20 -1
- package/{runtime/tempo-provider.mjs → tempo/index.mjs} +39 -3
- package/tools/browser/browserShell.mjs +18 -8
- package/tools/browser/python.worker.mjs +17 -1
- package/tools/browser/threadGit.mjs +12 -2
- package/tools/environment.d.mts +8 -0
- package/tools/environment.mjs +10 -0
- package/tools/index.d.mts +6 -3
- package/types.d.mts +104 -4
- package/worker/Claude.d.mts +4 -0
- package/worker/Claude.mjs +11 -0
- package/worker/ClaudeSubscription.d.mts +24 -0
- package/worker/ClaudeSubscription.mjs +9 -0
- package/worker/index.d.mts +9 -0
- package/worker/index.mjs +4 -0
package/pkg-node/nanocodex.js
CHANGED
|
@@ -599,6 +599,204 @@ class ChatGptSubscription {
|
|
|
599
599
|
if (Symbol.dispose) ChatGptSubscription.prototype[Symbol.dispose] = ChatGptSubscription.prototype.free;
|
|
600
600
|
exports.ChatGptSubscription = ChatGptSubscription;
|
|
601
601
|
|
|
602
|
+
/**
|
|
603
|
+
* Host-only lifecycle handle. Authorization URL/status are the only browser-safe results.
|
|
604
|
+
*/
|
|
605
|
+
class ClaudeSubscription {
|
|
606
|
+
static __wrap(ptr) {
|
|
607
|
+
const obj = Object.create(ClaudeSubscription.prototype);
|
|
608
|
+
obj.__wbg_ptr = ptr;
|
|
609
|
+
ClaudeSubscriptionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
610
|
+
return obj;
|
|
611
|
+
}
|
|
612
|
+
__destroy_into_raw() {
|
|
613
|
+
const ptr = this.__wbg_ptr;
|
|
614
|
+
this.__wbg_ptr = 0;
|
|
615
|
+
ClaudeSubscriptionFinalization.unregister(this);
|
|
616
|
+
return ptr;
|
|
617
|
+
}
|
|
618
|
+
free() {
|
|
619
|
+
const ptr = this.__destroy_into_raw();
|
|
620
|
+
wasm.__wbg_claudesubscription_free(ptr, 0);
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* @param {string} private_code
|
|
624
|
+
* @returns {Promise<string>}
|
|
625
|
+
*/
|
|
626
|
+
completeLogin(private_code) {
|
|
627
|
+
const ptr0 = passStringToWasm0(private_code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
628
|
+
const len0 = WASM_VECTOR_LEN;
|
|
629
|
+
const ret = wasm.claudesubscription_completeLogin(this.__wbg_ptr, ptr0, len0);
|
|
630
|
+
return takeObject(ret);
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Private capability: never expose through account API, tool result, or trace.
|
|
634
|
+
* @returns {Promise<string>}
|
|
635
|
+
*/
|
|
636
|
+
credential() {
|
|
637
|
+
const ret = wasm.claudesubscription_credential(this.__wbg_ptr);
|
|
638
|
+
return takeObject(ret);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @returns {Promise<void>}
|
|
642
|
+
*/
|
|
643
|
+
logout() {
|
|
644
|
+
const ret = wasm.claudesubscription_logout(this.__wbg_ptr);
|
|
645
|
+
return takeObject(ret);
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @param {string} encoded
|
|
649
|
+
* @returns {Promise<ClaudeSubscription>}
|
|
650
|
+
*/
|
|
651
|
+
static open(encoded) {
|
|
652
|
+
const ptr0 = passStringToWasm0(encoded, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
653
|
+
const len0 = WASM_VECTOR_LEN;
|
|
654
|
+
const ret = wasm.claudesubscription_open(ptr0, len0);
|
|
655
|
+
return takeObject(ret);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Invalidate only the rejected credential; next credential() performs bounded refresh.
|
|
659
|
+
* @param {string} encoded
|
|
660
|
+
* @returns {Promise<boolean>}
|
|
661
|
+
*/
|
|
662
|
+
recover(encoded) {
|
|
663
|
+
const ptr0 = passStringToWasm0(encoded, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
664
|
+
const len0 = WASM_VECTOR_LEN;
|
|
665
|
+
const ret = wasm.claudesubscription_recover(this.__wbg_ptr, ptr0, len0);
|
|
666
|
+
return takeObject(ret);
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* @returns {Promise<string>}
|
|
670
|
+
*/
|
|
671
|
+
startLogin() {
|
|
672
|
+
const ret = wasm.claudesubscription_startLogin(this.__wbg_ptr);
|
|
673
|
+
return takeObject(ret);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* @returns {Promise<string>}
|
|
677
|
+
*/
|
|
678
|
+
status() {
|
|
679
|
+
const ret = wasm.claudesubscription_status(this.__wbg_ptr);
|
|
680
|
+
return takeObject(ret);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
if (Symbol.dispose) ClaudeSubscription.prototype[Symbol.dispose] = ClaudeSubscription.prototype.free;
|
|
684
|
+
exports.ClaudeSubscription = ClaudeSubscription;
|
|
685
|
+
|
|
686
|
+
class IntoUnderlyingByteSource {
|
|
687
|
+
__destroy_into_raw() {
|
|
688
|
+
const ptr = this.__wbg_ptr;
|
|
689
|
+
this.__wbg_ptr = 0;
|
|
690
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
691
|
+
return ptr;
|
|
692
|
+
}
|
|
693
|
+
free() {
|
|
694
|
+
const ptr = this.__destroy_into_raw();
|
|
695
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* @returns {number}
|
|
699
|
+
*/
|
|
700
|
+
get autoAllocateChunkSize() {
|
|
701
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
702
|
+
return ret >>> 0;
|
|
703
|
+
}
|
|
704
|
+
cancel() {
|
|
705
|
+
const ptr = this.__destroy_into_raw();
|
|
706
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* @param {ReadableByteStreamController} controller
|
|
710
|
+
* @returns {Promise<any>}
|
|
711
|
+
*/
|
|
712
|
+
pull(controller) {
|
|
713
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
|
|
714
|
+
return takeObject(ret);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @param {ReadableByteStreamController} controller
|
|
718
|
+
*/
|
|
719
|
+
start(controller) {
|
|
720
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* @returns {ReadableStreamType}
|
|
724
|
+
*/
|
|
725
|
+
get type() {
|
|
726
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
727
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
731
|
+
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
732
|
+
|
|
733
|
+
class IntoUnderlyingSink {
|
|
734
|
+
__destroy_into_raw() {
|
|
735
|
+
const ptr = this.__wbg_ptr;
|
|
736
|
+
this.__wbg_ptr = 0;
|
|
737
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
738
|
+
return ptr;
|
|
739
|
+
}
|
|
740
|
+
free() {
|
|
741
|
+
const ptr = this.__destroy_into_raw();
|
|
742
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @param {any} reason
|
|
746
|
+
* @returns {Promise<any>}
|
|
747
|
+
*/
|
|
748
|
+
abort(reason) {
|
|
749
|
+
const ptr = this.__destroy_into_raw();
|
|
750
|
+
const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
|
|
751
|
+
return takeObject(ret);
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* @returns {Promise<any>}
|
|
755
|
+
*/
|
|
756
|
+
close() {
|
|
757
|
+
const ptr = this.__destroy_into_raw();
|
|
758
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
759
|
+
return takeObject(ret);
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @param {any} chunk
|
|
763
|
+
* @returns {Promise<any>}
|
|
764
|
+
*/
|
|
765
|
+
write(chunk) {
|
|
766
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
|
|
767
|
+
return takeObject(ret);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
771
|
+
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
772
|
+
|
|
773
|
+
class IntoUnderlyingSource {
|
|
774
|
+
__destroy_into_raw() {
|
|
775
|
+
const ptr = this.__wbg_ptr;
|
|
776
|
+
this.__wbg_ptr = 0;
|
|
777
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
778
|
+
return ptr;
|
|
779
|
+
}
|
|
780
|
+
free() {
|
|
781
|
+
const ptr = this.__destroy_into_raw();
|
|
782
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
783
|
+
}
|
|
784
|
+
cancel() {
|
|
785
|
+
const ptr = this.__destroy_into_raw();
|
|
786
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* @param {ReadableStreamDefaultController} controller
|
|
790
|
+
* @returns {Promise<any>}
|
|
791
|
+
*/
|
|
792
|
+
pull(controller) {
|
|
793
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
|
|
794
|
+
return takeObject(ret);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
798
|
+
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
799
|
+
|
|
602
800
|
/**
|
|
603
801
|
* Standalone Rust-owned browser voice protocol for a remote managed Agent.
|
|
604
802
|
*
|
|
@@ -1260,6 +1458,297 @@ class ManagedBrowserVoice {
|
|
|
1260
1458
|
if (Symbol.dispose) ManagedBrowserVoice.prototype[Symbol.dispose] = ManagedBrowserVoice.prototype.free;
|
|
1261
1459
|
exports.ManagedBrowserVoice = ManagedBrowserVoice;
|
|
1262
1460
|
|
|
1461
|
+
/**
|
|
1462
|
+
* Opt-in Claude-native WASM lifecycle. Authentication remains host-owned.
|
|
1463
|
+
*/
|
|
1464
|
+
class Nanoclaude {
|
|
1465
|
+
static __wrap(ptr) {
|
|
1466
|
+
const obj = Object.create(Nanoclaude.prototype);
|
|
1467
|
+
obj.__wbg_ptr = ptr;
|
|
1468
|
+
NanoclaudeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1469
|
+
return obj;
|
|
1470
|
+
}
|
|
1471
|
+
__destroy_into_raw() {
|
|
1472
|
+
const ptr = this.__wbg_ptr;
|
|
1473
|
+
this.__wbg_ptr = 0;
|
|
1474
|
+
NanoclaudeFinalization.unregister(this);
|
|
1475
|
+
return ptr;
|
|
1476
|
+
}
|
|
1477
|
+
free() {
|
|
1478
|
+
const ptr = this.__destroy_into_raw();
|
|
1479
|
+
wasm.__wbg_nanoclaude_free(ptr, 0);
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* @returns {string}
|
|
1483
|
+
*/
|
|
1484
|
+
get agentId() {
|
|
1485
|
+
let deferred1_0;
|
|
1486
|
+
let deferred1_1;
|
|
1487
|
+
try {
|
|
1488
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1489
|
+
wasm.nanoclaude_agentId(retptr, this.__wbg_ptr);
|
|
1490
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1491
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1492
|
+
deferred1_0 = r0;
|
|
1493
|
+
deferred1_1 = r1;
|
|
1494
|
+
return getStringFromWasm0(r0, r1);
|
|
1495
|
+
} finally {
|
|
1496
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1497
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Cancels nonterminal prompts issued by this handle (not an in-flight compact).
|
|
1502
|
+
* @returns {Promise<void>}
|
|
1503
|
+
*/
|
|
1504
|
+
cancel() {
|
|
1505
|
+
const ret = wasm.nanoclaude_cancel(this.__wbg_ptr);
|
|
1506
|
+
return takeObject(ret);
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* @returns {string}
|
|
1510
|
+
*/
|
|
1511
|
+
checkpoint() {
|
|
1512
|
+
let deferred2_0;
|
|
1513
|
+
let deferred2_1;
|
|
1514
|
+
try {
|
|
1515
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1516
|
+
wasm.nanoclaude_checkpoint(retptr, this.__wbg_ptr);
|
|
1517
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1518
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1519
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1520
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1521
|
+
var ptr1 = r0;
|
|
1522
|
+
var len1 = r1;
|
|
1523
|
+
if (r3) {
|
|
1524
|
+
ptr1 = 0; len1 = 0;
|
|
1525
|
+
throw takeObject(r2);
|
|
1526
|
+
}
|
|
1527
|
+
deferred2_0 = ptr1;
|
|
1528
|
+
deferred2_1 = len1;
|
|
1529
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1530
|
+
} finally {
|
|
1531
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1532
|
+
wasm.__wbindgen_export5(deferred2_0, deferred2_1, 1);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* @param {string} task
|
|
1537
|
+
* @returns {Promise<string>}
|
|
1538
|
+
*/
|
|
1539
|
+
closeSubagent(task) {
|
|
1540
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1541
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1542
|
+
const ret = wasm.nanoclaude_closeSubagent(this.__wbg_ptr, ptr0, len0);
|
|
1543
|
+
return takeObject(ret);
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @returns {Promise<void>}
|
|
1547
|
+
*/
|
|
1548
|
+
compact() {
|
|
1549
|
+
const ret = wasm.nanoclaude_compact(this.__wbg_ptr);
|
|
1550
|
+
return takeObject(ret);
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Creates only explicitly supplied Claude capabilities.
|
|
1554
|
+
* @param {string} config_json
|
|
1555
|
+
* @returns {Promise<Nanoclaude>}
|
|
1556
|
+
*/
|
|
1557
|
+
static create(config_json) {
|
|
1558
|
+
const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1559
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1560
|
+
const ret = wasm.nanoclaude_create(ptr0, len0);
|
|
1561
|
+
return takeObject(ret);
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* @param {string} task
|
|
1565
|
+
* @returns {Promise<string>}
|
|
1566
|
+
*/
|
|
1567
|
+
interruptSubagent(task) {
|
|
1568
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1569
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1570
|
+
const ret = wasm.nanoclaude_interruptSubagent(this.__wbg_ptr, ptr0, len0);
|
|
1571
|
+
return takeObject(ret);
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* @param {string} task
|
|
1575
|
+
* @returns {Promise<string>}
|
|
1576
|
+
*/
|
|
1577
|
+
listSubagents(task) {
|
|
1578
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1579
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1580
|
+
const ret = wasm.nanoclaude_listSubagents(this.__wbg_ptr, ptr0, len0);
|
|
1581
|
+
return takeObject(ret);
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Accepts text using the shared Turn/TurnResult and durable request-ID path.
|
|
1585
|
+
* @param {string} input
|
|
1586
|
+
* @param {string | null} [request_id]
|
|
1587
|
+
* @param {boolean | null} [cancel_on_admission]
|
|
1588
|
+
* @returns {Turn}
|
|
1589
|
+
*/
|
|
1590
|
+
prompt(input, request_id, cancel_on_admission) {
|
|
1591
|
+
try {
|
|
1592
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1593
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1595
|
+
var ptr1 = isLikeNone(request_id) ? 0 : passStringToWasm0(request_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1596
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1597
|
+
wasm.nanoclaude_prompt(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(cancel_on_admission) ? 0xFFFFFF : cancel_on_admission ? 1 : 0);
|
|
1598
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1599
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1600
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1601
|
+
if (r2) {
|
|
1602
|
+
throw takeObject(r1);
|
|
1603
|
+
}
|
|
1604
|
+
return Turn.__wrap(r0);
|
|
1605
|
+
} finally {
|
|
1606
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
/**
|
|
1610
|
+
* Accepts ordered multimodal JSON content: text, image URLs or data URLs,
|
|
1611
|
+
* and inline `file` documents (PDF or plain text). Local paths are rejected.
|
|
1612
|
+
* @param {string} content_json
|
|
1613
|
+
* @param {string | null} [request_id]
|
|
1614
|
+
* @param {boolean | null} [cancel_on_admission]
|
|
1615
|
+
* @returns {Turn}
|
|
1616
|
+
*/
|
|
1617
|
+
promptContent(content_json, request_id, cancel_on_admission) {
|
|
1618
|
+
try {
|
|
1619
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1620
|
+
const ptr0 = passStringToWasm0(content_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1621
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1622
|
+
var ptr1 = isLikeNone(request_id) ? 0 : passStringToWasm0(request_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1623
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1624
|
+
wasm.nanoclaude_promptContent(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(cancel_on_admission) ? 0xFFFFFF : cancel_on_admission ? 1 : 0);
|
|
1625
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1626
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1627
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1628
|
+
if (r2) {
|
|
1629
|
+
throw takeObject(r1);
|
|
1630
|
+
}
|
|
1631
|
+
return Turn.__wrap(r0);
|
|
1632
|
+
} finally {
|
|
1633
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Atomically steers the active Claude turn or starts a new one, for live
|
|
1638
|
+
* frontends such as realtime voice. Returns `undefined` when steered.
|
|
1639
|
+
* @param {string} instruction
|
|
1640
|
+
* @returns {Promise<Turn | undefined>}
|
|
1641
|
+
*/
|
|
1642
|
+
routePrompt(instruction) {
|
|
1643
|
+
const ptr0 = passStringToWasm0(instruction, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1644
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1645
|
+
const ret = wasm.nanoclaude_routePrompt(this.__wbg_ptr, ptr0, len0);
|
|
1646
|
+
return takeObject(ret);
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* @param {string} task
|
|
1650
|
+
* @returns {Promise<string>}
|
|
1651
|
+
*/
|
|
1652
|
+
sendSubagentMessage(task) {
|
|
1653
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1654
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1655
|
+
const ret = wasm.nanoclaude_sendSubagentMessage(this.__wbg_ptr, ptr0, len0);
|
|
1656
|
+
return takeObject(ret);
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* @returns {string}
|
|
1660
|
+
*/
|
|
1661
|
+
get sessionId() {
|
|
1662
|
+
let deferred1_0;
|
|
1663
|
+
let deferred1_1;
|
|
1664
|
+
try {
|
|
1665
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1666
|
+
wasm.nanoclaude_sessionId(retptr, this.__wbg_ptr);
|
|
1667
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1668
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1669
|
+
deferred1_0 = r0;
|
|
1670
|
+
deferred1_1 = r1;
|
|
1671
|
+
return getStringFromWasm0(r0, r1);
|
|
1672
|
+
} finally {
|
|
1673
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1674
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
/**
|
|
1678
|
+
* @param {boolean} enabled
|
|
1679
|
+
*/
|
|
1680
|
+
setEventForwarding(enabled) {
|
|
1681
|
+
wasm.nanoclaude_setEventForwarding(this.__wbg_ptr, enabled);
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
* @returns {Promise<void>}
|
|
1685
|
+
*/
|
|
1686
|
+
shutdown() {
|
|
1687
|
+
const ret = wasm.nanoclaude_shutdown(this.__wbg_ptr);
|
|
1688
|
+
return takeObject(ret);
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* Claude checkpoints are stored natively by durability, not OpenAI snapshots.
|
|
1692
|
+
* @returns {string}
|
|
1693
|
+
*/
|
|
1694
|
+
snapshot() {
|
|
1695
|
+
let deferred2_0;
|
|
1696
|
+
let deferred2_1;
|
|
1697
|
+
try {
|
|
1698
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1699
|
+
wasm.nanoclaude_snapshot(retptr, this.__wbg_ptr);
|
|
1700
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1701
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1702
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1703
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1704
|
+
var ptr1 = r0;
|
|
1705
|
+
var len1 = r1;
|
|
1706
|
+
if (r3) {
|
|
1707
|
+
ptr1 = 0; len1 = 0;
|
|
1708
|
+
throw takeObject(r2);
|
|
1709
|
+
}
|
|
1710
|
+
deferred2_0 = ptr1;
|
|
1711
|
+
deferred2_1 = len1;
|
|
1712
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1713
|
+
} finally {
|
|
1714
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1715
|
+
wasm.__wbindgen_export5(deferred2_0, deferred2_1, 1);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* @param {string} task
|
|
1720
|
+
* @returns {Promise<string>}
|
|
1721
|
+
*/
|
|
1722
|
+
spawnSubagent(task) {
|
|
1723
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1724
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1725
|
+
const ret = wasm.nanoclaude_spawnSubagent(this.__wbg_ptr, ptr0, len0);
|
|
1726
|
+
return takeObject(ret);
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* @param {string} tasks_json
|
|
1730
|
+
* @returns {Promise<string>}
|
|
1731
|
+
*/
|
|
1732
|
+
spawnSubagents(tasks_json) {
|
|
1733
|
+
const ptr0 = passStringToWasm0(tasks_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1735
|
+
const ret = wasm.nanoclaude_spawnSubagents(this.__wbg_ptr, ptr0, len0);
|
|
1736
|
+
return takeObject(ret);
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* @param {string} task
|
|
1740
|
+
* @returns {Promise<string>}
|
|
1741
|
+
*/
|
|
1742
|
+
waitSubagents(task) {
|
|
1743
|
+
const ptr0 = passStringToWasm0(task, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1744
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1745
|
+
const ret = wasm.nanoclaude_waitSubagents(this.__wbg_ptr, ptr0, len0);
|
|
1746
|
+
return takeObject(ret);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
if (Symbol.dispose) Nanoclaude.prototype[Symbol.dispose] = Nanoclaude.prototype.free;
|
|
1750
|
+
exports.Nanoclaude = Nanoclaude;
|
|
1751
|
+
|
|
1263
1752
|
/**
|
|
1264
1753
|
* JavaScript binding over the shared Rust agent lifecycle.
|
|
1265
1754
|
*/
|
|
@@ -1832,6 +2321,14 @@ class Turn {
|
|
|
1832
2321
|
const ret = wasm.turn_cancel(this.__wbg_ptr);
|
|
1833
2322
|
return takeObject(ret);
|
|
1834
2323
|
}
|
|
2324
|
+
/**
|
|
2325
|
+
* Host-only lifecycle identity, including turns without a durable request ID.
|
|
2326
|
+
* @returns {Promise<string>}
|
|
2327
|
+
*/
|
|
2328
|
+
hostTurnId() {
|
|
2329
|
+
const ret = wasm.turn_hostTurnId(this.__wbg_ptr);
|
|
2330
|
+
return takeObject(ret);
|
|
2331
|
+
}
|
|
1835
2332
|
/**
|
|
1836
2333
|
* Waits for the final assistant message.
|
|
1837
2334
|
*
|
|
@@ -2090,19 +2587,48 @@ function __wbg_get_imports() {
|
|
|
2090
2587
|
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
2091
2588
|
getObject(arg0)._wbg_cb_unref();
|
|
2092
2589
|
},
|
|
2093
|
-
|
|
2590
|
+
__wbg_abort_8bae0f33e7833997: function(arg0) {
|
|
2591
|
+
getObject(arg0).abort();
|
|
2592
|
+
},
|
|
2593
|
+
__wbg_abort_eee9248a6d680839: function(arg0, arg1) {
|
|
2594
|
+
getObject(arg0).abort(getObject(arg1));
|
|
2595
|
+
},
|
|
2596
|
+
__wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2597
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2598
|
+
}, arguments); },
|
|
2599
|
+
__wbg_beforeCompaction_c3974a542cf0ed4e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2094
2600
|
const ret = globalThis.nanocodexHost.beforeCompaction(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2095
2601
|
return addHeapObject(ret);
|
|
2096
2602
|
}, arguments); },
|
|
2097
|
-
|
|
2603
|
+
__wbg_beginCodeTurn_96154dc6504a8ce3: function(arg0, arg1) {
|
|
2098
2604
|
globalThis.nanocodexHost.beginCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2099
2605
|
},
|
|
2100
|
-
|
|
2606
|
+
__wbg_bindSubagentRoute_45f6b2abf6024db2: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2101
2607
|
globalThis.nanocodexHost.bindSubagentRoute(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2102
2608
|
}, arguments); },
|
|
2103
|
-
|
|
2609
|
+
__wbg_bindSubagentSession_3a39bc5dd82b5a98: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
2104
2610
|
globalThis.nanocodexHost.bindSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), arg7 === 0 ? undefined : getStringFromWasm0(arg7, arg8));
|
|
2105
2611
|
}, arguments); },
|
|
2612
|
+
__wbg_body_18c9f2ac15ead4b2: function(arg0) {
|
|
2613
|
+
const ret = getObject(arg0).body;
|
|
2614
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2615
|
+
},
|
|
2616
|
+
__wbg_buffer_54b87055582c8a81: function(arg0) {
|
|
2617
|
+
const ret = getObject(arg0).buffer;
|
|
2618
|
+
return addHeapObject(ret);
|
|
2619
|
+
},
|
|
2620
|
+
__wbg_byobRequest_06b654bb15590436: function(arg0) {
|
|
2621
|
+
const ret = getObject(arg0).byobRequest;
|
|
2622
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2623
|
+
},
|
|
2624
|
+
__wbg_byteLength_41862ca4020b9c43: function(arg0) {
|
|
2625
|
+
const ret = getObject(arg0).byteLength;
|
|
2626
|
+
return ret;
|
|
2627
|
+
},
|
|
2628
|
+
__wbg_byteOffset_d42e18c4441f628b: function(arg0) {
|
|
2629
|
+
const ret = getObject(arg0).byteOffset;
|
|
2630
|
+
return ret;
|
|
2631
|
+
},
|
|
2106
2632
|
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
2107
2633
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
2108
2634
|
return addHeapObject(ret);
|
|
@@ -2111,62 +2637,130 @@ function __wbg_get_imports() {
|
|
|
2111
2637
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2112
2638
|
return addHeapObject(ret);
|
|
2113
2639
|
}, arguments); },
|
|
2114
|
-
|
|
2640
|
+
__wbg_cancelBeforeCompaction_57fe9b96b0735a10: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2115
2641
|
globalThis.nanocodexHost.cancelBeforeCompaction(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2116
2642
|
}, arguments); },
|
|
2117
|
-
|
|
2643
|
+
__wbg_cancelCodeTurn_fc474e962d1ada1b: function(arg0, arg1) {
|
|
2118
2644
|
globalThis.nanocodexHost.cancelCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2119
2645
|
},
|
|
2120
|
-
|
|
2646
|
+
__wbg_cancelCode_34c8d884f55b1dc1: function(arg0, arg1) {
|
|
2121
2647
|
globalThis.nanocodexHost.cancelCode(getStringFromWasm0(arg0, arg1));
|
|
2122
2648
|
},
|
|
2649
|
+
__wbg_cancel_3983a93e24cc66b3: function(arg0) {
|
|
2650
|
+
const ret = getObject(arg0).cancel();
|
|
2651
|
+
return addHeapObject(ret);
|
|
2652
|
+
},
|
|
2653
|
+
__wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
|
|
2654
|
+
const ret = getObject(arg0).catch(getObject(arg1));
|
|
2655
|
+
return addHeapObject(ret);
|
|
2656
|
+
},
|
|
2123
2657
|
__wbg_chatgptsubscription_new: function(arg0) {
|
|
2124
2658
|
const ret = ChatGptSubscription.__wrap(arg0);
|
|
2125
2659
|
return addHeapObject(ret);
|
|
2126
2660
|
},
|
|
2127
|
-
|
|
2661
|
+
__wbg_claudeAuth_de7d96796f4c2dbf: function() { return handleError(function (arg0) {
|
|
2662
|
+
const ret = globalThis.nanocodexHost.claudeAuth(arg0 >>> 0);
|
|
2663
|
+
return addHeapObject(ret);
|
|
2664
|
+
}, arguments); },
|
|
2665
|
+
__wbg_claudeSubscriptionCompareAndSwap_26247fc444849e47: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2666
|
+
const ret = globalThis.nanocodexClaudeSubscriptionHost.claudeSubscriptionCompareAndSwap(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2667
|
+
return addHeapObject(ret);
|
|
2668
|
+
}, arguments); },
|
|
2669
|
+
__wbg_claudeSubscriptionLoad_efd89b2066322314: function() { return handleError(function (arg0, arg1) {
|
|
2670
|
+
const ret = globalThis.nanocodexClaudeSubscriptionHost.claudeSubscriptionLoad(getStringFromWasm0(arg0, arg1));
|
|
2671
|
+
return addHeapObject(ret);
|
|
2672
|
+
}, arguments); },
|
|
2673
|
+
__wbg_claudeSubscriptionRequest_bc8ba6647efd0256: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2674
|
+
const ret = globalThis.nanocodexClaudeSubscriptionHost.claudeSubscriptionRequest(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2675
|
+
return addHeapObject(ret);
|
|
2676
|
+
}, arguments); },
|
|
2677
|
+
__wbg_claudesubscription_new: function(arg0) {
|
|
2678
|
+
const ret = ClaudeSubscription.__wrap(arg0);
|
|
2679
|
+
return addHeapObject(ret);
|
|
2680
|
+
},
|
|
2681
|
+
__wbg_clearTimeout_333bba87532ab9d3: function(arg0) {
|
|
2682
|
+
const ret = clearTimeout(takeObject(arg0));
|
|
2683
|
+
return addHeapObject(ret);
|
|
2684
|
+
},
|
|
2685
|
+
__wbg_close_1b20f3c6073ca95e: function(arg0) {
|
|
2128
2686
|
globalThis.nanocodexHost.close(arg0 >>> 0);
|
|
2129
2687
|
},
|
|
2130
|
-
|
|
2688
|
+
__wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
|
|
2689
|
+
getObject(arg0).close();
|
|
2690
|
+
}, arguments); },
|
|
2691
|
+
__wbg_close_72d318d9c16e83ef: function() { return handleError(function (arg0) {
|
|
2692
|
+
getObject(arg0).close();
|
|
2693
|
+
}, arguments); },
|
|
2694
|
+
__wbg_connect_06d89932ed399537: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) {
|
|
2131
2695
|
const ret = globalThis.nanocodexHost.connect(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5), arg6 !== 0, getStringFromWasm0(arg7, arg8), getStringFromWasm0(arg9, arg10), arg11 === 0 ? undefined : getStringFromWasm0(arg11, arg12));
|
|
2132
2696
|
return addHeapObject(ret);
|
|
2133
2697
|
}, arguments); },
|
|
2134
|
-
|
|
2698
|
+
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
2699
|
+
const ret = getObject(arg0).done;
|
|
2700
|
+
return ret;
|
|
2701
|
+
},
|
|
2702
|
+
__wbg_durabilityAcquire_0d96c4c3d306e1fb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2135
2703
|
const ret = globalThis.nanocodexHost.durabilityAcquire(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2136
2704
|
return addHeapObject(ret);
|
|
2137
2705
|
}, arguments); },
|
|
2138
|
-
|
|
2706
|
+
__wbg_durabilityReadRecord_6041d7c493d8cf50: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2139
2707
|
const ret = globalThis.nanocodexHost.durabilityReadRecord(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2140
2708
|
return addHeapObject(ret);
|
|
2141
2709
|
}, arguments); },
|
|
2142
|
-
|
|
2710
|
+
__wbg_durabilityReadRecords_2867b16e396700b0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2143
2711
|
const ret = globalThis.nanocodexHost.durabilityReadRecords(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2144
2712
|
return addHeapObject(ret);
|
|
2145
2713
|
}, arguments); },
|
|
2146
|
-
|
|
2714
|
+
__wbg_durabilityReplace_59b2d7c08d812e12: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) {
|
|
2147
2715
|
const ret = globalThis.nanocodexHost.durabilityReplace(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7), getStringFromWasm0(arg8, arg9), getStringFromWasm0(arg10, arg11), getStringFromWasm0(arg12, arg13));
|
|
2148
2716
|
return addHeapObject(ret);
|
|
2149
2717
|
}, arguments); },
|
|
2150
|
-
|
|
2718
|
+
__wbg_emitEvent_82b82594ab2345c4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2151
2719
|
globalThis.nanocodexHost.emitEvent(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 >>> 0, arg5 === 0 ? undefined : getStringFromWasm0(arg5, arg6));
|
|
2152
2720
|
}, arguments); },
|
|
2153
|
-
|
|
2721
|
+
__wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
|
|
2722
|
+
getObject(arg0).enqueue(getObject(arg1));
|
|
2723
|
+
}, arguments); },
|
|
2724
|
+
__wbg_entries_900cefd6f70eb290: function(arg0) {
|
|
2725
|
+
const ret = getObject(arg0).entries();
|
|
2726
|
+
return addHeapObject(ret);
|
|
2727
|
+
},
|
|
2728
|
+
__wbg_error_92af2833242631eb: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2154
2729
|
console.error(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
2155
2730
|
}, arguments); },
|
|
2156
|
-
|
|
2157
|
-
const ret = globalThis.nanocodexHost.
|
|
2731
|
+
__wbg_executeClaudeTool_ce6676835794a420: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) {
|
|
2732
|
+
const ret = globalThis.nanocodexHost.executeClaudeTool(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), getStringFromWasm0(arg7, arg8), getStringFromWasm0(arg9, arg10), getStringFromWasm0(arg11, arg12), getStringFromWasm0(arg13, arg14), getObject(arg15));
|
|
2158
2733
|
return addHeapObject(ret);
|
|
2159
2734
|
}, arguments); },
|
|
2160
|
-
|
|
2735
|
+
__wbg_executeCode_61662df69d524e30: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) {
|
|
2736
|
+
const ret = globalThis.nanocodexHost.executeCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7), arg8 === 0 ? undefined : getStringFromWasm0(arg8, arg9), getStringFromWasm0(arg10, arg11), getObject(arg12));
|
|
2737
|
+
return addHeapObject(ret);
|
|
2738
|
+
}, arguments); },
|
|
2739
|
+
__wbg_executeTool_e11c9b9ca7d13167: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2161
2740
|
const ret = globalThis.nanocodexHost.executeTool(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7), getStringFromWasm0(arg8, arg9), arg10 === 0 ? undefined : getStringFromWasm0(arg10, arg11));
|
|
2162
2741
|
return addHeapObject(ret);
|
|
2163
2742
|
}, arguments); },
|
|
2743
|
+
__wbg_fetch_074561c3e313c86f: function(arg0) {
|
|
2744
|
+
const ret = fetch(getObject(arg0));
|
|
2745
|
+
return addHeapObject(ret);
|
|
2746
|
+
},
|
|
2747
|
+
__wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
|
|
2748
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
2749
|
+
return addHeapObject(ret);
|
|
2750
|
+
},
|
|
2164
2751
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
2165
2752
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2166
2753
|
}, arguments); },
|
|
2754
|
+
__wbg_getRandomValues_cc7f052a444bb2ce: function() { return handleError(function (arg0, arg1) {
|
|
2755
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2756
|
+
}, arguments); },
|
|
2167
2757
|
__wbg_getRandomValues_ceb34d8ffce7e87f: function() { return handleError(function (arg0, arg1) {
|
|
2168
2758
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2169
2759
|
}, arguments); },
|
|
2760
|
+
__wbg_getReader_9facd4f899beac89: function() { return handleError(function (arg0) {
|
|
2761
|
+
const ret = getObject(arg0).getReader();
|
|
2762
|
+
return addHeapObject(ret);
|
|
2763
|
+
}, arguments); },
|
|
2170
2764
|
__wbg_getTime_d6f070c088c9b5ed: function(arg0) {
|
|
2171
2765
|
const ret = getObject(arg0).getTime();
|
|
2172
2766
|
return ret;
|
|
@@ -2175,29 +2769,59 @@ function __wbg_get_imports() {
|
|
|
2175
2769
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
2176
2770
|
return ret;
|
|
2177
2771
|
},
|
|
2772
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
2773
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2774
|
+
return addHeapObject(ret);
|
|
2775
|
+
},
|
|
2178
2776
|
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
2179
2777
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
2180
2778
|
return addHeapObject(ret);
|
|
2181
2779
|
}, arguments); },
|
|
2780
|
+
__wbg_get_done_670108eb06ecbe46: function(arg0) {
|
|
2781
|
+
const ret = getObject(arg0).done;
|
|
2782
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2783
|
+
},
|
|
2182
2784
|
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
2183
2785
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2184
2786
|
return addHeapObject(ret);
|
|
2185
2787
|
},
|
|
2186
|
-
|
|
2788
|
+
__wbg_get_value_f465f5be30aa0963: function(arg0) {
|
|
2789
|
+
const ret = getObject(arg0).value;
|
|
2790
|
+
return addHeapObject(ret);
|
|
2791
|
+
},
|
|
2792
|
+
__wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
|
|
2793
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
2794
|
+
return ret;
|
|
2795
|
+
}, arguments); },
|
|
2796
|
+
__wbg_headers_cf9c80f30e2a4eff: function(arg0) {
|
|
2797
|
+
const ret = getObject(arg0).headers;
|
|
2798
|
+
return addHeapObject(ret);
|
|
2799
|
+
},
|
|
2800
|
+
__wbg_httpClose_6e9956b723397bff: function(arg0) {
|
|
2187
2801
|
globalThis.nanocodexHost.httpClose(arg0 >>> 0);
|
|
2188
2802
|
},
|
|
2189
|
-
|
|
2803
|
+
__wbg_httpNext_27a80781436653fb: function() { return handleError(function (arg0) {
|
|
2190
2804
|
const ret = globalThis.nanocodexHost.httpNext(arg0 >>> 0);
|
|
2191
2805
|
return addHeapObject(ret);
|
|
2192
2806
|
}, arguments); },
|
|
2193
|
-
|
|
2807
|
+
__wbg_httpOpen_35f84941f0190520: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) {
|
|
2194
2808
|
const ret = globalThis.nanocodexHost.httpOpen(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5), arg6 !== 0, getStringFromWasm0(arg7, arg8), getStringFromWasm0(arg9, arg10), arg11 === 0 ? undefined : getStringFromWasm0(arg11, arg12), getStringFromWasm0(arg13, arg14));
|
|
2195
2809
|
return ret;
|
|
2196
2810
|
}, arguments); },
|
|
2197
|
-
|
|
2811
|
+
__wbg_httpReady_cb37644c543815d3: function() { return handleError(function (arg0) {
|
|
2198
2812
|
const ret = globalThis.nanocodexHost.httpReady(arg0 >>> 0);
|
|
2199
2813
|
return addHeapObject(ret);
|
|
2200
2814
|
}, arguments); },
|
|
2815
|
+
__wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
|
|
2816
|
+
let result;
|
|
2817
|
+
try {
|
|
2818
|
+
result = getObject(arg0) instanceof Response;
|
|
2819
|
+
} catch (_) {
|
|
2820
|
+
result = false;
|
|
2821
|
+
}
|
|
2822
|
+
const ret = result;
|
|
2823
|
+
return ret;
|
|
2824
|
+
},
|
|
2201
2825
|
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
2202
2826
|
let result;
|
|
2203
2827
|
try {
|
|
@@ -2220,6 +2844,10 @@ function __wbg_get_imports() {
|
|
|
2220
2844
|
const ret = getObject(arg0).length;
|
|
2221
2845
|
return ret;
|
|
2222
2846
|
},
|
|
2847
|
+
__wbg_nanoclaude_new: function(arg0) {
|
|
2848
|
+
const ret = Nanoclaude.__wrap(arg0);
|
|
2849
|
+
return addHeapObject(ret);
|
|
2850
|
+
},
|
|
2223
2851
|
__wbg_nanocodex_new: function(arg0) {
|
|
2224
2852
|
const ret = Nanocodex.__wrap(arg0);
|
|
2225
2853
|
return addHeapObject(ret);
|
|
@@ -2228,10 +2856,18 @@ function __wbg_get_imports() {
|
|
|
2228
2856
|
const ret = new Date();
|
|
2229
2857
|
return addHeapObject(ret);
|
|
2230
2858
|
},
|
|
2859
|
+
__wbg_new_0d809930cd1354c6: function() { return handleError(function () {
|
|
2860
|
+
const ret = new Headers();
|
|
2861
|
+
return addHeapObject(ret);
|
|
2862
|
+
}, arguments); },
|
|
2231
2863
|
__wbg_new_32b398fb48b6d94a: function() {
|
|
2232
2864
|
const ret = new Array();
|
|
2233
2865
|
return addHeapObject(ret);
|
|
2234
2866
|
},
|
|
2867
|
+
__wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
|
|
2868
|
+
const ret = new AbortController();
|
|
2869
|
+
return addHeapObject(ret);
|
|
2870
|
+
}, arguments); },
|
|
2235
2871
|
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
2236
2872
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2237
2873
|
return addHeapObject(ret);
|
|
@@ -2263,7 +2899,7 @@ function __wbg_get_imports() {
|
|
|
2263
2899
|
const a = state0.a;
|
|
2264
2900
|
state0.a = 0;
|
|
2265
2901
|
try {
|
|
2266
|
-
return
|
|
2902
|
+
return __wasm_bindgen_func_elem_31683(a, state0.b, arg0, arg1);
|
|
2267
2903
|
} finally {
|
|
2268
2904
|
state0.a = a;
|
|
2269
2905
|
}
|
|
@@ -2274,11 +2910,23 @@ function __wbg_get_imports() {
|
|
|
2274
2910
|
state0.a = 0;
|
|
2275
2911
|
}
|
|
2276
2912
|
},
|
|
2277
|
-
|
|
2913
|
+
__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
|
|
2914
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2915
|
+
return addHeapObject(ret);
|
|
2916
|
+
},
|
|
2917
|
+
__wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2918
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
2919
|
+
return addHeapObject(ret);
|
|
2920
|
+
}, arguments); },
|
|
2921
|
+
__wbg_nextCodeUpdate_a1bf4ecd07e893e1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2278
2922
|
const ret = globalThis.nanocodexHost.nextCodeUpdate(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2279
2923
|
return addHeapObject(ret);
|
|
2280
2924
|
}, arguments); },
|
|
2281
|
-
|
|
2925
|
+
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
2926
|
+
const ret = getObject(arg0).next();
|
|
2927
|
+
return addHeapObject(ret);
|
|
2928
|
+
}, arguments); },
|
|
2929
|
+
__wbg_next_765c8b856a35aea7: function() { return handleError(function (arg0) {
|
|
2282
2930
|
const ret = globalThis.nanocodexHost.next(arg0 >>> 0);
|
|
2283
2931
|
return addHeapObject(ret);
|
|
2284
2932
|
}, arguments); },
|
|
@@ -2298,6 +2946,9 @@ function __wbg_get_imports() {
|
|
|
2298
2946
|
const ret = getObject(arg0).performance;
|
|
2299
2947
|
return addHeapObject(ret);
|
|
2300
2948
|
},
|
|
2949
|
+
__wbg_preemptCodeTurn_72174c51e3da0bb7: function(arg0, arg1) {
|
|
2950
|
+
globalThis.nanocodexHost.preemptCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2951
|
+
},
|
|
2301
2952
|
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
2302
2953
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2303
2954
|
},
|
|
@@ -2308,14 +2959,21 @@ function __wbg_get_imports() {
|
|
|
2308
2959
|
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
2309
2960
|
queueMicrotask(getObject(arg0));
|
|
2310
2961
|
},
|
|
2311
|
-
|
|
2962
|
+
__wbg_readWorkspaceFile_d840045c957ddbe2: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2312
2963
|
const ret = globalThis.nanocodexHost.readWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2313
2964
|
return addHeapObject(ret);
|
|
2314
2965
|
}, arguments); },
|
|
2315
|
-
|
|
2966
|
+
__wbg_read_8afa15f12a160ef8: function(arg0) {
|
|
2967
|
+
const ret = getObject(arg0).read();
|
|
2968
|
+
return addHeapObject(ret);
|
|
2969
|
+
},
|
|
2970
|
+
__wbg_releaseLock_5b92874cad775644: function(arg0) {
|
|
2971
|
+
getObject(arg0).releaseLock();
|
|
2972
|
+
},
|
|
2973
|
+
__wbg_releaseSubagentSession_76354bfd6fd22f53: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2316
2974
|
globalThis.nanocodexHost.releaseSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2317
2975
|
}, arguments); },
|
|
2318
|
-
|
|
2976
|
+
__wbg_removeWorkspaceFile_3c37cb40bd07d59b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2319
2977
|
const ret = globalThis.nanocodexHost.removeWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2320
2978
|
return addHeapObject(ret);
|
|
2321
2979
|
}, arguments); },
|
|
@@ -2327,23 +2985,58 @@ function __wbg_get_imports() {
|
|
|
2327
2985
|
const ret = getObject(arg0).resolvedOptions();
|
|
2328
2986
|
return addHeapObject(ret);
|
|
2329
2987
|
},
|
|
2330
|
-
|
|
2988
|
+
__wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
|
|
2989
|
+
getObject(arg0).respond(arg1 >>> 0);
|
|
2990
|
+
}, arguments); },
|
|
2991
|
+
__wbg_routeSubagent_8c800a0cb064ecaa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2331
2992
|
const ret = globalThis.nanocodexHost.routeSubagent(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2332
2993
|
return addHeapObject(ret);
|
|
2333
2994
|
}, arguments); },
|
|
2334
|
-
|
|
2995
|
+
__wbg_send_84985dc616f26925: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2335
2996
|
const ret = globalThis.nanocodexHost.send(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2336
2997
|
return addHeapObject(ret);
|
|
2337
2998
|
}, arguments); },
|
|
2338
|
-
|
|
2999
|
+
__wbg_setTimeout_3a808dd861dd3c12: function(arg0, arg1) {
|
|
3000
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
3001
|
+
return addHeapObject(ret);
|
|
3002
|
+
},
|
|
3003
|
+
__wbg_setTimeout_c792ec4a223b56e4: function(arg0, arg1) {
|
|
2339
3004
|
const ret = globalThis.setTimeout(getObject(arg0), arg1);
|
|
2340
3005
|
return addHeapObject(ret);
|
|
2341
3006
|
},
|
|
3007
|
+
__wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
|
|
3008
|
+
getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
|
|
3009
|
+
},
|
|
2342
3010
|
__wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2343
3011
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2344
3012
|
return ret;
|
|
2345
3013
|
}, arguments); },
|
|
2346
|
-
|
|
3014
|
+
__wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
|
|
3015
|
+
getObject(arg0).body = getObject(arg1);
|
|
3016
|
+
},
|
|
3017
|
+
__wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
|
|
3018
|
+
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
3019
|
+
},
|
|
3020
|
+
__wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
|
|
3021
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
3022
|
+
},
|
|
3023
|
+
__wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
|
|
3024
|
+
getObject(arg0).headers = getObject(arg1);
|
|
3025
|
+
},
|
|
3026
|
+
__wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
|
|
3027
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
3028
|
+
},
|
|
3029
|
+
__wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
|
|
3030
|
+
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
|
3031
|
+
},
|
|
3032
|
+
__wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
|
|
3033
|
+
getObject(arg0).signal = getObject(arg1);
|
|
3034
|
+
},
|
|
3035
|
+
__wbg_signal_dad7cb35193abd31: function(arg0) {
|
|
3036
|
+
const ret = getObject(arg0).signal;
|
|
3037
|
+
return addHeapObject(ret);
|
|
3038
|
+
},
|
|
3039
|
+
__wbg_sleep_b9ef35fe51a7b144: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2347
3040
|
const ret = globalThis.nanocodexHost.sleep(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
|
|
2348
3041
|
return addHeapObject(ret);
|
|
2349
3042
|
}, arguments); },
|
|
@@ -2363,18 +3056,26 @@ function __wbg_get_imports() {
|
|
|
2363
3056
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2364
3057
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2365
3058
|
},
|
|
2366
|
-
|
|
3059
|
+
__wbg_status_c45b3b9b3033184a: function(arg0) {
|
|
3060
|
+
const ret = getObject(arg0).status;
|
|
3061
|
+
return ret;
|
|
3062
|
+
},
|
|
3063
|
+
__wbg_subscriptionCompareAndSwap_bfac73e681a99f2e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2367
3064
|
const ret = globalThis.nanocodexHost.subscriptionCompareAndSwap(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2368
3065
|
return addHeapObject(ret);
|
|
2369
3066
|
}, arguments); },
|
|
2370
|
-
|
|
3067
|
+
__wbg_subscriptionLoad_ef654d6c79ba8005: function() { return handleError(function (arg0, arg1) {
|
|
2371
3068
|
const ret = globalThis.nanocodexHost.subscriptionLoad(getStringFromWasm0(arg0, arg1));
|
|
2372
3069
|
return addHeapObject(ret);
|
|
2373
3070
|
}, arguments); },
|
|
2374
|
-
|
|
3071
|
+
__wbg_subscriptionRequest_631ccc21d3ed848d: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2375
3072
|
const ret = globalThis.nanocodexHost.subscriptionRequest(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2376
3073
|
return addHeapObject(ret);
|
|
2377
3074
|
}, arguments); },
|
|
3075
|
+
__wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
|
|
3076
|
+
const ret = getObject(arg0).text();
|
|
3077
|
+
return addHeapObject(ret);
|
|
3078
|
+
}, arguments); },
|
|
2378
3079
|
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
2379
3080
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2380
3081
|
return addHeapObject(ret);
|
|
@@ -2383,14 +3084,14 @@ function __wbg_get_imports() {
|
|
|
2383
3084
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
2384
3085
|
return addHeapObject(ret);
|
|
2385
3086
|
},
|
|
2386
|
-
|
|
3087
|
+
__wbg_toolDefinitions_2ea9ce37e4f07610: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2387
3088
|
const ret = globalThis.nanocodexHost.toolDefinitions(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2388
3089
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2389
3090
|
const len1 = WASM_VECTOR_LEN;
|
|
2390
3091
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2391
3092
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2392
3093
|
}, arguments); },
|
|
2393
|
-
|
|
3094
|
+
__wbg_toolMode_4d113cad7e02d04a: function(arg0, arg1, arg2, arg3) {
|
|
2394
3095
|
const ret = globalThis.nanocodexHost.toolMode(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2395
3096
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2396
3097
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2405,30 +3106,55 @@ function __wbg_get_imports() {
|
|
|
2405
3106
|
const ret = TurnResult.__wrap(arg0);
|
|
2406
3107
|
return addHeapObject(ret);
|
|
2407
3108
|
},
|
|
2408
|
-
|
|
3109
|
+
__wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
|
|
3110
|
+
const ret = getObject(arg1).url;
|
|
3111
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3112
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3113
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3114
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3115
|
+
},
|
|
3116
|
+
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
3117
|
+
const ret = getObject(arg0).value;
|
|
3118
|
+
return addHeapObject(ret);
|
|
3119
|
+
},
|
|
3120
|
+
__wbg_view_21f1d4a4f175dfa9: function(arg0) {
|
|
3121
|
+
const ret = getObject(arg0).view;
|
|
3122
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
3123
|
+
},
|
|
3124
|
+
__wbg_waitCode_348735f594e098ad: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2409
3125
|
const ret = globalThis.nanocodexHost.waitCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2410
3126
|
return addHeapObject(ret);
|
|
2411
3127
|
}, arguments); },
|
|
2412
|
-
|
|
3128
|
+
__wbg_writeWorkspaceFile_847abb565632fd1e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2413
3129
|
const ret = globalThis.nanocodexHost.writeWorkspaceFile(getStringFromWasm0(arg0, arg1), getObject(arg2), getStringFromWasm0(arg3, arg4));
|
|
2414
3130
|
return addHeapObject(ret);
|
|
2415
3131
|
}, arguments); },
|
|
2416
3132
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2417
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2418
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3133
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2985, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3134
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_18576);
|
|
2419
3135
|
return addHeapObject(ret);
|
|
2420
3136
|
},
|
|
2421
3137
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2422
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2423
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3138
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4292, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3139
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_31681);
|
|
3140
|
+
return addHeapObject(ret);
|
|
3141
|
+
},
|
|
3142
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3143
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String, String, String], shim_idx: 6, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
3144
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2405);
|
|
2424
3145
|
return addHeapObject(ret);
|
|
2425
3146
|
},
|
|
2426
|
-
|
|
3147
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3148
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2949, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3149
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_18364);
|
|
3150
|
+
return addHeapObject(ret);
|
|
3151
|
+
},
|
|
3152
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
2427
3153
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2428
3154
|
const ret = arg0;
|
|
2429
3155
|
return addHeapObject(ret);
|
|
2430
3156
|
},
|
|
2431
|
-
|
|
3157
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2432
3158
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2433
3159
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2434
3160
|
return addHeapObject(ret);
|
|
@@ -2447,14 +3173,18 @@ function __wbg_get_imports() {
|
|
|
2447
3173
|
};
|
|
2448
3174
|
}
|
|
2449
3175
|
|
|
2450
|
-
function
|
|
2451
|
-
wasm.
|
|
3176
|
+
function __wasm_bindgen_func_elem_18364(arg0, arg1) {
|
|
3177
|
+
wasm.__wasm_bindgen_func_elem_18364(arg0, arg1);
|
|
2452
3178
|
}
|
|
2453
3179
|
|
|
2454
|
-
function
|
|
3180
|
+
function __wasm_bindgen_func_elem_18576(arg0, arg1, arg2) {
|
|
3181
|
+
wasm.__wasm_bindgen_func_elem_18576(arg0, arg1, addHeapObject(arg2));
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
function __wasm_bindgen_func_elem_31681(arg0, arg1, arg2) {
|
|
2455
3185
|
try {
|
|
2456
3186
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2457
|
-
wasm.
|
|
3187
|
+
wasm.__wasm_bindgen_func_elem_31681(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2458
3188
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2459
3189
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2460
3190
|
if (r1) {
|
|
@@ -2465,19 +3195,56 @@ function __wasm_bindgen_func_elem_25544(arg0, arg1, arg2) {
|
|
|
2465
3195
|
}
|
|
2466
3196
|
}
|
|
2467
3197
|
|
|
2468
|
-
function
|
|
2469
|
-
wasm.
|
|
3198
|
+
function __wasm_bindgen_func_elem_31683(arg0, arg1, arg2, arg3) {
|
|
3199
|
+
wasm.__wasm_bindgen_func_elem_31683(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2470
3200
|
}
|
|
2471
3201
|
|
|
3202
|
+
function __wasm_bindgen_func_elem_2405(arg0, arg1, arg2, arg3, arg4) {
|
|
3203
|
+
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3204
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3205
|
+
const ptr1 = passStringToWasm0(arg3, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3206
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3207
|
+
const ptr2 = passStringToWasm0(arg4, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3208
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3209
|
+
const ret = wasm.__wasm_bindgen_func_elem_2405(arg0, arg1, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3210
|
+
return takeObject(ret);
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
|
|
3214
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
3215
|
+
|
|
3216
|
+
|
|
3217
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
3221
|
+
|
|
3222
|
+
|
|
3223
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
2472
3224
|
const BrowserVoiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2473
3225
|
? { register: () => {}, unregister: () => {} }
|
|
2474
3226
|
: new FinalizationRegistry(ptr => wasm.__wbg_browservoice_free(ptr, 1));
|
|
2475
3227
|
const ChatGptSubscriptionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2476
3228
|
? { register: () => {}, unregister: () => {} }
|
|
2477
3229
|
: new FinalizationRegistry(ptr => wasm.__wbg_chatgptsubscription_free(ptr, 1));
|
|
3230
|
+
const ClaudeSubscriptionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3231
|
+
? { register: () => {}, unregister: () => {} }
|
|
3232
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_claudesubscription_free(ptr, 1));
|
|
3233
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3234
|
+
? { register: () => {}, unregister: () => {} }
|
|
3235
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
3236
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3237
|
+
? { register: () => {}, unregister: () => {} }
|
|
3238
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
3239
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3240
|
+
? { register: () => {}, unregister: () => {} }
|
|
3241
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
2478
3242
|
const ManagedBrowserVoiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2479
3243
|
? { register: () => {}, unregister: () => {} }
|
|
2480
3244
|
: new FinalizationRegistry(ptr => wasm.__wbg_managedbrowservoice_free(ptr, 1));
|
|
3245
|
+
const NanoclaudeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3246
|
+
? { register: () => {}, unregister: () => {} }
|
|
3247
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nanoclaude_free(ptr, 1));
|
|
2481
3248
|
const NanocodexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2482
3249
|
? { register: () => {}, unregister: () => {} }
|
|
2483
3250
|
: new FinalizationRegistry(ptr => wasm.__wbg_nanocodex_free(ptr, 1));
|