nanocodex 0.6.0 → 0.6.4
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 +158 -6
- package/browser/InlineAgent.mjs +2 -0
- package/browser/Transport.d.mts +3 -0
- package/browser/Transport.mjs +1 -0
- package/browser/Voice.d.mts +2 -0
- package/browser/Voice.mjs +12 -6
- package/browser/VoiceSession.mjs +71 -21
- package/browser/WorkerAgent.mjs +2 -1
- package/browser/host.d.mts +7 -0
- package/browser/host.mjs +19 -0
- package/cloud/Decorator.d.mts +9 -0
- package/cloud/Decorator.mjs +9 -0
- package/cloud/Transport.mjs +6 -0
- package/cloud/actions/connection.mjs +3 -0
- package/cloud/actions/connector.d.mts +18 -0
- package/cloud/actions/connector.mjs +22 -0
- package/cloud/actions/index.d.mts +2 -0
- package/cloud/actions/index.mjs +2 -0
- package/cloud/internal.mjs +5 -0
- package/cloud/types.d.mts +2 -0
- package/cloudflare/Agent.mjs +7 -1
- package/cloudflare/egress.d.mts +3 -1
- package/cloudflare/egress.mjs +14 -0
- package/cloudflare/managed-access.d.mts +23 -0
- package/cloudflare/managed-access.mjs +120 -0
- package/internal.mjs +27 -0
- package/managed/Access.d.mts +5 -0
- package/managed/Access.mjs +66 -0
- package/managed/Agent.d.mts +16 -7
- package/managed/Agent.mjs +28 -7
- package/managed/Voice.mjs +1 -0
- package/managed/index.d.mts +1 -0
- package/managed/index.mjs +1 -0
- package/node/host.mjs +12 -0
- package/package.json +11 -2
- package/pkg-node/nanocodex.js +55 -40
- package/pkg-node/nanocodex_bg.wasm.d.ts +3 -3
- package/pkg-web/.nanocodex-bindgen-stamp +1 -1
- package/pkg-web/nanocodex-build.json +1 -1
- package/pkg-web/nanocodex.d.ts +3 -3
- package/pkg-web/nanocodex.js +55 -40
- package/pkg-web/nanocodex_bg.js +55 -40
- package/pkg-web/nanocodex_bg.wasm +0 -0
- package/pkg-web/nanocodex_bg.wasm.d.ts +3 -3
- package/runtime/code-evaluator.worker.mjs +28 -22
- package/runtime/managed-transport.mjs +1 -0
- package/runtime/quickjs-evaluator.mjs +59 -17
- package/runtime/response-controls.mjs +41 -24
- package/runtime/responses-http.mjs +69 -0
- package/tools/browser/accountInfo.mjs +53 -8
- package/tools/browser/browserShell.mjs +2 -2
- package/tools/browser/index.mjs +3 -3
- package/tools/environment.d.mts +34 -0
- package/tools/environment.mjs +59 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nanocodex",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Viem-style Node and browser bindings for the Nanocodex WASM agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"types": "./cloudflare/index.d.mts",
|
|
52
52
|
"import": "./cloudflare/index.mjs"
|
|
53
53
|
},
|
|
54
|
+
"./cloudflare/managed-access": {
|
|
55
|
+
"types": "./cloudflare/managed-access.d.mts",
|
|
56
|
+
"import": "./cloudflare/managed-access.mjs"
|
|
57
|
+
},
|
|
54
58
|
"./cloudflare/egress": {
|
|
55
59
|
"types": "./cloudflare/egress.d.mts",
|
|
56
60
|
"import": "./cloudflare/egress.mjs"
|
|
@@ -126,6 +130,10 @@
|
|
|
126
130
|
"./wasm": {
|
|
127
131
|
"types": "./wasm.d.mts",
|
|
128
132
|
"import": "./pkg-web/nanocodex_bg.wasm"
|
|
133
|
+
},
|
|
134
|
+
"./tools/environment": {
|
|
135
|
+
"types": "./tools/environment.d.mts",
|
|
136
|
+
"import": "./tools/environment.mjs"
|
|
129
137
|
}
|
|
130
138
|
},
|
|
131
139
|
"files": [
|
|
@@ -163,7 +171,7 @@
|
|
|
163
171
|
"isomorphic-git": "^1.41.5",
|
|
164
172
|
"minisearch": "7.2.0",
|
|
165
173
|
"mppx": "0.9.1",
|
|
166
|
-
"nanocodex-tools": "0.6.
|
|
174
|
+
"nanocodex-tools": "0.6.4",
|
|
167
175
|
"ox": "1.6.2",
|
|
168
176
|
"pako": "2.1.0",
|
|
169
177
|
"pyodide": "314.0.5",
|
|
@@ -175,6 +183,7 @@
|
|
|
175
183
|
"devDependencies": {
|
|
176
184
|
"@jitl/quickjs-wasmfile-release-asyncify": "0.32.0",
|
|
177
185
|
"binaryen": "132.0.0",
|
|
186
|
+
"esbuild": "0.28.1",
|
|
178
187
|
"hyparquet-writer": "0.16.6",
|
|
179
188
|
"pkg-pr-new": "0.0.79",
|
|
180
189
|
"quickjs-emscripten-core": "0.32.0",
|
package/pkg-node/nanocodex.js
CHANGED
|
@@ -2078,10 +2078,10 @@ function __wbg_get_imports() {
|
|
|
2078
2078
|
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
2079
2079
|
getObject(arg0)._wbg_cb_unref();
|
|
2080
2080
|
},
|
|
2081
|
-
|
|
2081
|
+
__wbg_beginCodeTurn_0a7124b7eee451a5: function(arg0, arg1) {
|
|
2082
2082
|
globalThis.nanocodexHost.beginCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2083
2083
|
},
|
|
2084
|
-
|
|
2084
|
+
__wbg_bindSubagentSession_94bff1e8dd70d1d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
2085
2085
|
globalThis.nanocodexHost.bindSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), arg7 === 0 ? undefined : getStringFromWasm0(arg7, arg8));
|
|
2086
2086
|
}, arguments); },
|
|
2087
2087
|
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2092,50 +2092,50 @@ function __wbg_get_imports() {
|
|
|
2092
2092
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2093
2093
|
return addHeapObject(ret);
|
|
2094
2094
|
}, arguments); },
|
|
2095
|
-
|
|
2095
|
+
__wbg_cancelCodeTurn_cd5a2ff077ecc94f: function(arg0, arg1) {
|
|
2096
2096
|
globalThis.nanocodexHost.cancelCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2097
2097
|
},
|
|
2098
|
-
|
|
2098
|
+
__wbg_cancelCode_c598a558677e0400: function(arg0, arg1) {
|
|
2099
2099
|
globalThis.nanocodexHost.cancelCode(getStringFromWasm0(arg0, arg1));
|
|
2100
2100
|
},
|
|
2101
2101
|
__wbg_chatgptsubscription_new: function(arg0) {
|
|
2102
2102
|
const ret = ChatGptSubscription.__wrap(arg0);
|
|
2103
2103
|
return addHeapObject(ret);
|
|
2104
2104
|
},
|
|
2105
|
-
|
|
2105
|
+
__wbg_close_fdf88ca6545d2dfa: function(arg0) {
|
|
2106
2106
|
globalThis.nanocodexHost.close(arg0 >>> 0);
|
|
2107
2107
|
},
|
|
2108
|
-
|
|
2108
|
+
__wbg_connect_a4aca5683039d7a7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) {
|
|
2109
2109
|
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));
|
|
2110
2110
|
return addHeapObject(ret);
|
|
2111
2111
|
}, arguments); },
|
|
2112
|
-
|
|
2112
|
+
__wbg_durabilityAcquire_2ef4917a34fa75f2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2113
2113
|
const ret = globalThis.nanocodexHost.durabilityAcquire(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2114
2114
|
return addHeapObject(ret);
|
|
2115
2115
|
}, arguments); },
|
|
2116
|
-
|
|
2116
|
+
__wbg_durabilityReadRecord_539304eeef4f34de: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2117
2117
|
const ret = globalThis.nanocodexHost.durabilityReadRecord(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2118
2118
|
return addHeapObject(ret);
|
|
2119
2119
|
}, arguments); },
|
|
2120
|
-
|
|
2120
|
+
__wbg_durabilityReadRecords_d858dd4d53e07fad: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2121
2121
|
const ret = globalThis.nanocodexHost.durabilityReadRecords(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2122
2122
|
return addHeapObject(ret);
|
|
2123
2123
|
}, arguments); },
|
|
2124
|
-
|
|
2124
|
+
__wbg_durabilityReplace_98e18f8a4e1ffa87: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) {
|
|
2125
2125
|
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));
|
|
2126
2126
|
return addHeapObject(ret);
|
|
2127
2127
|
}, arguments); },
|
|
2128
|
-
|
|
2128
|
+
__wbg_emitEvent_ea060841206c3e75: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2129
2129
|
globalThis.nanocodexHost.emitEvent(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 >>> 0, arg5 === 0 ? undefined : getStringFromWasm0(arg5, arg6));
|
|
2130
2130
|
}, arguments); },
|
|
2131
|
-
|
|
2131
|
+
__wbg_error_90a3fc8068d88664: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2132
2132
|
console.error(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
2133
2133
|
}, arguments); },
|
|
2134
|
-
|
|
2134
|
+
__wbg_executeCode_1f043e54c74768ed: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2135
2135
|
const ret = globalThis.nanocodexHost.executeCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2136
2136
|
return addHeapObject(ret);
|
|
2137
2137
|
}, arguments); },
|
|
2138
|
-
|
|
2138
|
+
__wbg_executeTool_77f3e9a52b85860c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2139
2139
|
const ret = globalThis.nanocodexHost.executeTool(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7), getStringFromWasm0(arg8, arg9));
|
|
2140
2140
|
return addHeapObject(ret);
|
|
2141
2141
|
}, arguments); },
|
|
@@ -2161,6 +2161,21 @@ function __wbg_get_imports() {
|
|
|
2161
2161
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2162
2162
|
return addHeapObject(ret);
|
|
2163
2163
|
},
|
|
2164
|
+
__wbg_httpClose_bb7d713b151b9a56: function(arg0) {
|
|
2165
|
+
globalThis.nanocodexHost.httpClose(arg0 >>> 0);
|
|
2166
|
+
},
|
|
2167
|
+
__wbg_httpNext_4cb6bce08da7fadb: function() { return handleError(function (arg0) {
|
|
2168
|
+
const ret = globalThis.nanocodexHost.httpNext(arg0 >>> 0);
|
|
2169
|
+
return addHeapObject(ret);
|
|
2170
|
+
}, arguments); },
|
|
2171
|
+
__wbg_httpOpen_7b0f76ffd6c246d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) {
|
|
2172
|
+
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));
|
|
2173
|
+
return ret;
|
|
2174
|
+
}, arguments); },
|
|
2175
|
+
__wbg_httpReady_472d23f7f1654a26: function() { return handleError(function (arg0) {
|
|
2176
|
+
const ret = globalThis.nanocodexHost.httpReady(arg0 >>> 0);
|
|
2177
|
+
return addHeapObject(ret);
|
|
2178
|
+
}, arguments); },
|
|
2164
2179
|
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
2165
2180
|
let result;
|
|
2166
2181
|
try {
|
|
@@ -2226,7 +2241,7 @@ function __wbg_get_imports() {
|
|
|
2226
2241
|
const a = state0.a;
|
|
2227
2242
|
state0.a = 0;
|
|
2228
2243
|
try {
|
|
2229
|
-
return
|
|
2244
|
+
return __wasm_bindgen_func_elem_24935(a, state0.b, arg0, arg1);
|
|
2230
2245
|
} finally {
|
|
2231
2246
|
state0.a = a;
|
|
2232
2247
|
}
|
|
@@ -2237,11 +2252,11 @@ function __wbg_get_imports() {
|
|
|
2237
2252
|
state0.a = 0;
|
|
2238
2253
|
}
|
|
2239
2254
|
},
|
|
2240
|
-
|
|
2255
|
+
__wbg_nextCodeUpdate_8f3d030aa1cf40cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2241
2256
|
const ret = globalThis.nanocodexHost.nextCodeUpdate(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2242
2257
|
return addHeapObject(ret);
|
|
2243
2258
|
}, arguments); },
|
|
2244
|
-
|
|
2259
|
+
__wbg_next_73a833f68917f36e: function() { return handleError(function (arg0) {
|
|
2245
2260
|
const ret = globalThis.nanocodexHost.next(arg0 >>> 0);
|
|
2246
2261
|
return addHeapObject(ret);
|
|
2247
2262
|
}, arguments); },
|
|
@@ -2271,14 +2286,14 @@ function __wbg_get_imports() {
|
|
|
2271
2286
|
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
2272
2287
|
queueMicrotask(getObject(arg0));
|
|
2273
2288
|
},
|
|
2274
|
-
|
|
2289
|
+
__wbg_readWorkspaceFile_aa4a72507d05aff1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2275
2290
|
const ret = globalThis.nanocodexHost.readWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2276
2291
|
return addHeapObject(ret);
|
|
2277
2292
|
}, arguments); },
|
|
2278
|
-
|
|
2293
|
+
__wbg_releaseSubagentSession_1a80c6837d2f614c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2279
2294
|
globalThis.nanocodexHost.releaseSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2280
2295
|
}, arguments); },
|
|
2281
|
-
|
|
2296
|
+
__wbg_removeWorkspaceFile_142bc3149a6ebc97: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2282
2297
|
const ret = globalThis.nanocodexHost.removeWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2283
2298
|
return addHeapObject(ret);
|
|
2284
2299
|
}, arguments); },
|
|
@@ -2290,11 +2305,11 @@ function __wbg_get_imports() {
|
|
|
2290
2305
|
const ret = getObject(arg0).resolvedOptions();
|
|
2291
2306
|
return addHeapObject(ret);
|
|
2292
2307
|
},
|
|
2293
|
-
|
|
2308
|
+
__wbg_send_4a0833d63a63b91f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2294
2309
|
const ret = globalThis.nanocodexHost.send(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2295
2310
|
return addHeapObject(ret);
|
|
2296
2311
|
}, arguments); },
|
|
2297
|
-
|
|
2312
|
+
__wbg_setTimeout_c6205ad5adcd1a59: function(arg0, arg1) {
|
|
2298
2313
|
const ret = globalThis.setTimeout(getObject(arg0), arg1);
|
|
2299
2314
|
return addHeapObject(ret);
|
|
2300
2315
|
},
|
|
@@ -2302,7 +2317,7 @@ function __wbg_get_imports() {
|
|
|
2302
2317
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2303
2318
|
return ret;
|
|
2304
2319
|
}, arguments); },
|
|
2305
|
-
|
|
2320
|
+
__wbg_sleep_3921e17fb319947c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2306
2321
|
const ret = globalThis.nanocodexHost.sleep(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
|
|
2307
2322
|
return addHeapObject(ret);
|
|
2308
2323
|
}, arguments); },
|
|
@@ -2322,15 +2337,15 @@ function __wbg_get_imports() {
|
|
|
2322
2337
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2323
2338
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2324
2339
|
},
|
|
2325
|
-
|
|
2340
|
+
__wbg_subscriptionCompareAndSwap_a9d25cd277d5d0ef: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2326
2341
|
const ret = globalThis.nanocodexHost.subscriptionCompareAndSwap(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2327
2342
|
return addHeapObject(ret);
|
|
2328
2343
|
}, arguments); },
|
|
2329
|
-
|
|
2344
|
+
__wbg_subscriptionLoad_26d28b5db170c54b: function() { return handleError(function (arg0, arg1) {
|
|
2330
2345
|
const ret = globalThis.nanocodexHost.subscriptionLoad(getStringFromWasm0(arg0, arg1));
|
|
2331
2346
|
return addHeapObject(ret);
|
|
2332
2347
|
}, arguments); },
|
|
2333
|
-
|
|
2348
|
+
__wbg_subscriptionRequest_cedb47bd8ab61075: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2334
2349
|
const ret = globalThis.nanocodexHost.subscriptionRequest(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2335
2350
|
return addHeapObject(ret);
|
|
2336
2351
|
}, arguments); },
|
|
@@ -2342,14 +2357,14 @@ function __wbg_get_imports() {
|
|
|
2342
2357
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
2343
2358
|
return addHeapObject(ret);
|
|
2344
2359
|
},
|
|
2345
|
-
|
|
2360
|
+
__wbg_toolDefinitions_1a0d8e90ad1fa7f9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2346
2361
|
const ret = globalThis.nanocodexHost.toolDefinitions(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2347
2362
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2348
2363
|
const len1 = WASM_VECTOR_LEN;
|
|
2349
2364
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2350
2365
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2351
2366
|
}, arguments); },
|
|
2352
|
-
|
|
2367
|
+
__wbg_toolMode_a1078d9aa4c7dda3: function(arg0, arg1, arg2, arg3) {
|
|
2353
2368
|
const ret = globalThis.nanocodexHost.toolMode(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2354
2369
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2355
2370
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2364,22 +2379,22 @@ function __wbg_get_imports() {
|
|
|
2364
2379
|
const ret = TurnResult.__wrap(arg0);
|
|
2365
2380
|
return addHeapObject(ret);
|
|
2366
2381
|
},
|
|
2367
|
-
|
|
2382
|
+
__wbg_waitCode_a3ad47cf509664d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2368
2383
|
const ret = globalThis.nanocodexHost.waitCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2369
2384
|
return addHeapObject(ret);
|
|
2370
2385
|
}, arguments); },
|
|
2371
|
-
|
|
2386
|
+
__wbg_writeWorkspaceFile_6285745ca0de9e76: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2372
2387
|
const ret = globalThis.nanocodexHost.writeWorkspaceFile(getStringFromWasm0(arg0, arg1), getObject(arg2), getStringFromWasm0(arg3, arg4));
|
|
2373
2388
|
return addHeapObject(ret);
|
|
2374
2389
|
}, arguments); },
|
|
2375
2390
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2376
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2377
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2391
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3664, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2392
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_24933);
|
|
2378
2393
|
return addHeapObject(ret);
|
|
2379
2394
|
},
|
|
2380
2395
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2381
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2382
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2396
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 529, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2397
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4744);
|
|
2383
2398
|
return addHeapObject(ret);
|
|
2384
2399
|
},
|
|
2385
2400
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -2406,14 +2421,14 @@ function __wbg_get_imports() {
|
|
|
2406
2421
|
};
|
|
2407
2422
|
}
|
|
2408
2423
|
|
|
2409
|
-
function
|
|
2410
|
-
wasm.
|
|
2424
|
+
function __wasm_bindgen_func_elem_4744(arg0, arg1) {
|
|
2425
|
+
wasm.__wasm_bindgen_func_elem_4744(arg0, arg1);
|
|
2411
2426
|
}
|
|
2412
2427
|
|
|
2413
|
-
function
|
|
2428
|
+
function __wasm_bindgen_func_elem_24933(arg0, arg1, arg2) {
|
|
2414
2429
|
try {
|
|
2415
2430
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2416
|
-
wasm.
|
|
2431
|
+
wasm.__wasm_bindgen_func_elem_24933(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2417
2432
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2418
2433
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2419
2434
|
if (r1) {
|
|
@@ -2424,8 +2439,8 @@ function __wasm_bindgen_func_elem_19791(arg0, arg1, arg2) {
|
|
|
2424
2439
|
}
|
|
2425
2440
|
}
|
|
2426
2441
|
|
|
2427
|
-
function
|
|
2428
|
-
wasm.
|
|
2442
|
+
function __wasm_bindgen_func_elem_24935(arg0, arg1, arg2, arg3) {
|
|
2443
|
+
wasm.__wasm_bindgen_func_elem_24935(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2429
2444
|
}
|
|
2430
2445
|
|
|
2431
2446
|
const BrowserVoiceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -95,9 +95,9 @@ export const turn_withdrawSteer: (a: number, b: number, c: number) => number;
|
|
|
95
95
|
export const turnresult_finalMessage: (a: number, b: number) => void;
|
|
96
96
|
export const turnresult_snapshot: (a: number, b: number) => void;
|
|
97
97
|
export const turnresult_usage: (a: number, b: number) => void;
|
|
98
|
-
export const
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
98
|
+
export const __wasm_bindgen_func_elem_24933: (a: number, b: number, c: number, d: number) => void;
|
|
99
|
+
export const __wasm_bindgen_func_elem_24935: (a: number, b: number, c: number, d: number) => void;
|
|
100
|
+
export const __wasm_bindgen_func_elem_4744: (a: number, b: number) => void;
|
|
101
101
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
102
102
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
103
103
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"revision":"
|
|
1
|
+
{"schema":1,"revision":"6f5dadf6d32e9592733957dd54056a3b2563b745","dirty":false,"sourceWasmSha256":"04d42aeb3c4e236ece174adc2636166c1920ff08f546d9e02e765ea31844ce24","artifacts":{"nanocodex.js":"90651421cbac4382e6777f7d705937896f6914c97a07d9dc97139888aaf7ce1d","nanocodex.d.ts":"d2d1787f608641010a9c6e960ee10445ee393535b05b5f6f8028bbfb8452f35c","nanocodex_bg.js":"62585f8faa01f3c36a9b2f3e6e8d9cb68edd5b27a212035012dc3bf0db0fbf08","nanocodex_bg.wasm":"a62c90ae4a34d7d95b2e7098689a83974b2fe4c4eb736b23c36ce710639b682c","nanocodex_worker.js":"cc34f0bba38a928752eb147dc75fc1c6b9ced408027b07f7cf237451152a8de9","package.json":"1239d4d885dcad42201a27ed9324f8f0f760b78700d8db9ced39a511cffe7eae"}}
|
package/pkg-web/nanocodex.d.ts
CHANGED
|
@@ -773,9 +773,9 @@ export interface InitOutput {
|
|
|
773
773
|
readonly turnresult_finalMessage: (a: number, b: number) => void;
|
|
774
774
|
readonly turnresult_snapshot: (a: number, b: number) => void;
|
|
775
775
|
readonly turnresult_usage: (a: number, b: number) => void;
|
|
776
|
-
readonly
|
|
777
|
-
readonly
|
|
778
|
-
readonly
|
|
776
|
+
readonly __wasm_bindgen_func_elem_24933: (a: number, b: number, c: number, d: number) => void;
|
|
777
|
+
readonly __wasm_bindgen_func_elem_24935: (a: number, b: number, c: number, d: number) => void;
|
|
778
|
+
readonly __wasm_bindgen_func_elem_4744: (a: number, b: number) => void;
|
|
779
779
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
780
780
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
781
781
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg-web/nanocodex.js
CHANGED
|
@@ -2069,10 +2069,10 @@ function __wbg_get_imports() {
|
|
|
2069
2069
|
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
2070
2070
|
getObject(arg0)._wbg_cb_unref();
|
|
2071
2071
|
},
|
|
2072
|
-
|
|
2072
|
+
__wbg_beginCodeTurn_0a7124b7eee451a5: function(arg0, arg1) {
|
|
2073
2073
|
globalThis.nanocodexHost.beginCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2074
2074
|
},
|
|
2075
|
-
|
|
2075
|
+
__wbg_bindSubagentSession_94bff1e8dd70d1d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
2076
2076
|
globalThis.nanocodexHost.bindSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), arg7 === 0 ? undefined : getStringFromWasm0(arg7, arg8));
|
|
2077
2077
|
}, arguments); },
|
|
2078
2078
|
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2083,50 +2083,50 @@ function __wbg_get_imports() {
|
|
|
2083
2083
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2084
2084
|
return addHeapObject(ret);
|
|
2085
2085
|
}, arguments); },
|
|
2086
|
-
|
|
2086
|
+
__wbg_cancelCodeTurn_cd5a2ff077ecc94f: function(arg0, arg1) {
|
|
2087
2087
|
globalThis.nanocodexHost.cancelCodeTurn(getStringFromWasm0(arg0, arg1));
|
|
2088
2088
|
},
|
|
2089
|
-
|
|
2089
|
+
__wbg_cancelCode_c598a558677e0400: function(arg0, arg1) {
|
|
2090
2090
|
globalThis.nanocodexHost.cancelCode(getStringFromWasm0(arg0, arg1));
|
|
2091
2091
|
},
|
|
2092
2092
|
__wbg_chatgptsubscription_new: function(arg0) {
|
|
2093
2093
|
const ret = ChatGptSubscription.__wrap(arg0);
|
|
2094
2094
|
return addHeapObject(ret);
|
|
2095
2095
|
},
|
|
2096
|
-
|
|
2096
|
+
__wbg_close_fdf88ca6545d2dfa: function(arg0) {
|
|
2097
2097
|
globalThis.nanocodexHost.close(arg0 >>> 0);
|
|
2098
2098
|
},
|
|
2099
|
-
|
|
2099
|
+
__wbg_connect_a4aca5683039d7a7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) {
|
|
2100
2100
|
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));
|
|
2101
2101
|
return addHeapObject(ret);
|
|
2102
2102
|
}, arguments); },
|
|
2103
|
-
|
|
2103
|
+
__wbg_durabilityAcquire_2ef4917a34fa75f2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2104
2104
|
const ret = globalThis.nanocodexHost.durabilityAcquire(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2105
2105
|
return addHeapObject(ret);
|
|
2106
2106
|
}, arguments); },
|
|
2107
|
-
|
|
2107
|
+
__wbg_durabilityReadRecord_539304eeef4f34de: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2108
2108
|
const ret = globalThis.nanocodexHost.durabilityReadRecord(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2109
2109
|
return addHeapObject(ret);
|
|
2110
2110
|
}, arguments); },
|
|
2111
|
-
|
|
2111
|
+
__wbg_durabilityReadRecords_d858dd4d53e07fad: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2112
2112
|
const ret = globalThis.nanocodexHost.durabilityReadRecords(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2113
2113
|
return addHeapObject(ret);
|
|
2114
2114
|
}, arguments); },
|
|
2115
|
-
|
|
2115
|
+
__wbg_durabilityReplace_98e18f8a4e1ffa87: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) {
|
|
2116
2116
|
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));
|
|
2117
2117
|
return addHeapObject(ret);
|
|
2118
2118
|
}, arguments); },
|
|
2119
|
-
|
|
2119
|
+
__wbg_emitEvent_ea060841206c3e75: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2120
2120
|
globalThis.nanocodexHost.emitEvent(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), arg4 >>> 0, arg5 === 0 ? undefined : getStringFromWasm0(arg5, arg6));
|
|
2121
2121
|
}, arguments); },
|
|
2122
|
-
|
|
2122
|
+
__wbg_error_90a3fc8068d88664: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2123
2123
|
console.error(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
2124
2124
|
}, arguments); },
|
|
2125
|
-
|
|
2125
|
+
__wbg_executeCode_1f043e54c74768ed: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2126
2126
|
const ret = globalThis.nanocodexHost.executeCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2127
2127
|
return addHeapObject(ret);
|
|
2128
2128
|
}, arguments); },
|
|
2129
|
-
|
|
2129
|
+
__wbg_executeTool_77f3e9a52b85860c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2130
2130
|
const ret = globalThis.nanocodexHost.executeTool(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7), getStringFromWasm0(arg8, arg9));
|
|
2131
2131
|
return addHeapObject(ret);
|
|
2132
2132
|
}, arguments); },
|
|
@@ -2152,6 +2152,21 @@ function __wbg_get_imports() {
|
|
|
2152
2152
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2153
2153
|
return addHeapObject(ret);
|
|
2154
2154
|
},
|
|
2155
|
+
__wbg_httpClose_bb7d713b151b9a56: function(arg0) {
|
|
2156
|
+
globalThis.nanocodexHost.httpClose(arg0 >>> 0);
|
|
2157
|
+
},
|
|
2158
|
+
__wbg_httpNext_4cb6bce08da7fadb: function() { return handleError(function (arg0) {
|
|
2159
|
+
const ret = globalThis.nanocodexHost.httpNext(arg0 >>> 0);
|
|
2160
|
+
return addHeapObject(ret);
|
|
2161
|
+
}, arguments); },
|
|
2162
|
+
__wbg_httpOpen_7b0f76ffd6c246d1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) {
|
|
2163
|
+
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));
|
|
2164
|
+
return ret;
|
|
2165
|
+
}, arguments); },
|
|
2166
|
+
__wbg_httpReady_472d23f7f1654a26: function() { return handleError(function (arg0) {
|
|
2167
|
+
const ret = globalThis.nanocodexHost.httpReady(arg0 >>> 0);
|
|
2168
|
+
return addHeapObject(ret);
|
|
2169
|
+
}, arguments); },
|
|
2155
2170
|
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
2156
2171
|
let result;
|
|
2157
2172
|
try {
|
|
@@ -2217,7 +2232,7 @@ function __wbg_get_imports() {
|
|
|
2217
2232
|
const a = state0.a;
|
|
2218
2233
|
state0.a = 0;
|
|
2219
2234
|
try {
|
|
2220
|
-
return
|
|
2235
|
+
return __wasm_bindgen_func_elem_24935(a, state0.b, arg0, arg1);
|
|
2221
2236
|
} finally {
|
|
2222
2237
|
state0.a = a;
|
|
2223
2238
|
}
|
|
@@ -2228,11 +2243,11 @@ function __wbg_get_imports() {
|
|
|
2228
2243
|
state0.a = 0;
|
|
2229
2244
|
}
|
|
2230
2245
|
},
|
|
2231
|
-
|
|
2246
|
+
__wbg_nextCodeUpdate_8f3d030aa1cf40cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2232
2247
|
const ret = globalThis.nanocodexHost.nextCodeUpdate(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2233
2248
|
return addHeapObject(ret);
|
|
2234
2249
|
}, arguments); },
|
|
2235
|
-
|
|
2250
|
+
__wbg_next_73a833f68917f36e: function() { return handleError(function (arg0) {
|
|
2236
2251
|
const ret = globalThis.nanocodexHost.next(arg0 >>> 0);
|
|
2237
2252
|
return addHeapObject(ret);
|
|
2238
2253
|
}, arguments); },
|
|
@@ -2262,14 +2277,14 @@ function __wbg_get_imports() {
|
|
|
2262
2277
|
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
2263
2278
|
queueMicrotask(getObject(arg0));
|
|
2264
2279
|
},
|
|
2265
|
-
|
|
2280
|
+
__wbg_readWorkspaceFile_aa4a72507d05aff1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2266
2281
|
const ret = globalThis.nanocodexHost.readWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2267
2282
|
return addHeapObject(ret);
|
|
2268
2283
|
}, arguments); },
|
|
2269
|
-
|
|
2284
|
+
__wbg_releaseSubagentSession_1a80c6837d2f614c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2270
2285
|
globalThis.nanocodexHost.releaseSubagentSession(arg0 >>> 0, getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2271
2286
|
}, arguments); },
|
|
2272
|
-
|
|
2287
|
+
__wbg_removeWorkspaceFile_142bc3149a6ebc97: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2273
2288
|
const ret = globalThis.nanocodexHost.removeWorkspaceFile(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2274
2289
|
return addHeapObject(ret);
|
|
2275
2290
|
}, arguments); },
|
|
@@ -2281,11 +2296,11 @@ function __wbg_get_imports() {
|
|
|
2281
2296
|
const ret = getObject(arg0).resolvedOptions();
|
|
2282
2297
|
return addHeapObject(ret);
|
|
2283
2298
|
},
|
|
2284
|
-
|
|
2299
|
+
__wbg_send_4a0833d63a63b91f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2285
2300
|
const ret = globalThis.nanocodexHost.send(arg0 >>> 0, getStringFromWasm0(arg1, arg2));
|
|
2286
2301
|
return addHeapObject(ret);
|
|
2287
2302
|
}, arguments); },
|
|
2288
|
-
|
|
2303
|
+
__wbg_setTimeout_c6205ad5adcd1a59: function(arg0, arg1) {
|
|
2289
2304
|
const ret = globalThis.setTimeout(getObject(arg0), arg1);
|
|
2290
2305
|
return addHeapObject(ret);
|
|
2291
2306
|
},
|
|
@@ -2293,7 +2308,7 @@ function __wbg_get_imports() {
|
|
|
2293
2308
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2294
2309
|
return ret;
|
|
2295
2310
|
}, arguments); },
|
|
2296
|
-
|
|
2311
|
+
__wbg_sleep_3921e17fb319947c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2297
2312
|
const ret = globalThis.nanocodexHost.sleep(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
|
|
2298
2313
|
return addHeapObject(ret);
|
|
2299
2314
|
}, arguments); },
|
|
@@ -2313,15 +2328,15 @@ function __wbg_get_imports() {
|
|
|
2313
2328
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2314
2329
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2315
2330
|
},
|
|
2316
|
-
|
|
2331
|
+
__wbg_subscriptionCompareAndSwap_a9d25cd277d5d0ef: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2317
2332
|
const ret = globalThis.nanocodexHost.subscriptionCompareAndSwap(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2318
2333
|
return addHeapObject(ret);
|
|
2319
2334
|
}, arguments); },
|
|
2320
|
-
|
|
2335
|
+
__wbg_subscriptionLoad_26d28b5db170c54b: function() { return handleError(function (arg0, arg1) {
|
|
2321
2336
|
const ret = globalThis.nanocodexHost.subscriptionLoad(getStringFromWasm0(arg0, arg1));
|
|
2322
2337
|
return addHeapObject(ret);
|
|
2323
2338
|
}, arguments); },
|
|
2324
|
-
|
|
2339
|
+
__wbg_subscriptionRequest_cedb47bd8ab61075: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2325
2340
|
const ret = globalThis.nanocodexHost.subscriptionRequest(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2326
2341
|
return addHeapObject(ret);
|
|
2327
2342
|
}, arguments); },
|
|
@@ -2333,14 +2348,14 @@ function __wbg_get_imports() {
|
|
|
2333
2348
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
2334
2349
|
return addHeapObject(ret);
|
|
2335
2350
|
},
|
|
2336
|
-
|
|
2351
|
+
__wbg_toolDefinitions_1a0d8e90ad1fa7f9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2337
2352
|
const ret = globalThis.nanocodexHost.toolDefinitions(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2338
2353
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2339
2354
|
const len1 = WASM_VECTOR_LEN;
|
|
2340
2355
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2341
2356
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2342
2357
|
}, arguments); },
|
|
2343
|
-
|
|
2358
|
+
__wbg_toolMode_a1078d9aa4c7dda3: function(arg0, arg1, arg2, arg3) {
|
|
2344
2359
|
const ret = globalThis.nanocodexHost.toolMode(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
2345
2360
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2346
2361
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2355,22 +2370,22 @@ function __wbg_get_imports() {
|
|
|
2355
2370
|
const ret = TurnResult.__wrap(arg0);
|
|
2356
2371
|
return addHeapObject(ret);
|
|
2357
2372
|
},
|
|
2358
|
-
|
|
2373
|
+
__wbg_waitCode_a3ad47cf509664d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2359
2374
|
const ret = globalThis.nanocodexHost.waitCode(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
|
|
2360
2375
|
return addHeapObject(ret);
|
|
2361
2376
|
}, arguments); },
|
|
2362
|
-
|
|
2377
|
+
__wbg_writeWorkspaceFile_6285745ca0de9e76: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2363
2378
|
const ret = globalThis.nanocodexHost.writeWorkspaceFile(getStringFromWasm0(arg0, arg1), getObject(arg2), getStringFromWasm0(arg3, arg4));
|
|
2364
2379
|
return addHeapObject(ret);
|
|
2365
2380
|
}, arguments); },
|
|
2366
2381
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2367
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2368
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2382
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3664, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2383
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_24933);
|
|
2369
2384
|
return addHeapObject(ret);
|
|
2370
2385
|
},
|
|
2371
2386
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2372
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2373
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2387
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 529, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2388
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4744);
|
|
2374
2389
|
return addHeapObject(ret);
|
|
2375
2390
|
},
|
|
2376
2391
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -2397,14 +2412,14 @@ function __wbg_get_imports() {
|
|
|
2397
2412
|
};
|
|
2398
2413
|
}
|
|
2399
2414
|
|
|
2400
|
-
function
|
|
2401
|
-
wasm.
|
|
2415
|
+
function __wasm_bindgen_func_elem_4744(arg0, arg1) {
|
|
2416
|
+
wasm.__wasm_bindgen_func_elem_4744(arg0, arg1);
|
|
2402
2417
|
}
|
|
2403
2418
|
|
|
2404
|
-
function
|
|
2419
|
+
function __wasm_bindgen_func_elem_24933(arg0, arg1, arg2) {
|
|
2405
2420
|
try {
|
|
2406
2421
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2407
|
-
wasm.
|
|
2422
|
+
wasm.__wasm_bindgen_func_elem_24933(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2408
2423
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2409
2424
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2410
2425
|
if (r1) {
|
|
@@ -2415,8 +2430,8 @@ function __wasm_bindgen_func_elem_19791(arg0, arg1, arg2) {
|
|
|
2415
2430
|
}
|
|
2416
2431
|
}
|
|
2417
2432
|
|
|
2418
|
-
function
|
|
2419
|
-
wasm.
|
|
2433
|
+
function __wasm_bindgen_func_elem_24935(arg0, arg1, arg2, arg3) {
|
|
2434
|
+
wasm.__wasm_bindgen_func_elem_24935(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2420
2435
|
}
|
|
2421
2436
|
|
|
2422
2437
|
const BrowserVoiceFinalization = (typeof FinalizationRegistry === 'undefined')
|