@weftos/core 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,112 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The `ReadableStreamType` enum.
5
+ *
6
+ * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
+ */
8
+
9
+ type ReadableStreamType = "bytes";
10
+
11
+ export class IntoUnderlyingByteSource {
12
+ private constructor();
13
+ free(): void;
14
+ [Symbol.dispose](): void;
15
+ cancel(): void;
16
+ pull(controller: ReadableByteStreamController): Promise<any>;
17
+ start(controller: ReadableByteStreamController): void;
18
+ readonly autoAllocateChunkSize: number;
19
+ readonly type: ReadableStreamType;
20
+ }
21
+
22
+ export class IntoUnderlyingSink {
23
+ private constructor();
24
+ free(): void;
25
+ [Symbol.dispose](): void;
26
+ abort(reason: any): Promise<any>;
27
+ close(): Promise<any>;
28
+ write(chunk: any): Promise<any>;
29
+ }
30
+
31
+ export class IntoUnderlyingSource {
32
+ private constructor();
33
+ free(): void;
34
+ [Symbol.dispose](): void;
35
+ cancel(): void;
36
+ pull(controller: ReadableStreamDefaultController): Promise<any>;
37
+ }
38
+
39
+ /**
40
+ * Initialize the clawft-wasm browser runtime.
41
+ *
42
+ * Parses the provided JSON config and sets up a BrowserLlmClient.
43
+ * Must be called once before `send_message`.
44
+ */
45
+ export function init(config_json: string): Promise<void>;
46
+
47
+ /**
48
+ * Send a message through the clawft LLM pipeline.
49
+ *
50
+ * Appends the user message to the conversation history, sends it
51
+ * to the configured LLM provider via BrowserLlmClient, and returns
52
+ * the assistant's response.
53
+ */
54
+ export function send_message(text: string): Promise<string>;
55
+
56
+ /**
57
+ * Set an environment variable on the BrowserPlatform.
58
+ */
59
+ export function set_env(_key: string, _value: string): void;
60
+
61
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
62
+
63
+ export interface InitOutput {
64
+ readonly memory: WebAssembly.Memory;
65
+ readonly init: (a: number, b: number) => number;
66
+ readonly send_message: (a: number, b: number) => number;
67
+ readonly set_env: (a: number, b: number, c: number, d: number) => void;
68
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
69
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
70
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
71
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
72
+ readonly intounderlyingbytesource_cancel: (a: number) => void;
73
+ readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
74
+ readonly intounderlyingbytesource_start: (a: number, b: number) => void;
75
+ readonly intounderlyingbytesource_type: (a: number) => number;
76
+ readonly intounderlyingsink_abort: (a: number, b: number) => number;
77
+ readonly intounderlyingsink_close: (a: number) => number;
78
+ readonly intounderlyingsink_write: (a: number, b: number) => number;
79
+ readonly intounderlyingsource_cancel: (a: number) => void;
80
+ readonly intounderlyingsource_pull: (a: number, b: number) => number;
81
+ readonly __wasm_bindgen_func_elem_570: (a: number, b: number) => void;
82
+ readonly __wasm_bindgen_func_elem_702: (a: number, b: number) => void;
83
+ readonly __wasm_bindgen_func_elem_1402: (a: number, b: number, c: number, d: number) => void;
84
+ readonly __wasm_bindgen_func_elem_703: (a: number, b: number, c: number) => void;
85
+ readonly __wasm_bindgen_func_elem_571: (a: number, b: number) => void;
86
+ readonly __wbindgen_export: (a: number, b: number) => number;
87
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
88
+ readonly __wbindgen_export3: (a: number) => void;
89
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
90
+ }
91
+
92
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
93
+
94
+ /**
95
+ * Instantiates the given `module`, which can either be bytes or
96
+ * a precompiled `WebAssembly.Module`.
97
+ *
98
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
99
+ *
100
+ * @returns {InitOutput}
101
+ */
102
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
103
+
104
+ /**
105
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
106
+ * for everything else, calls `WebAssembly.instantiate` directly.
107
+ *
108
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
109
+ *
110
+ * @returns {Promise<InitOutput>}
111
+ */
112
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
package/clawft_wasm.js ADDED
@@ -0,0 +1,883 @@
1
+ /* @ts-self-types="./clawft_wasm.d.ts" */
2
+
3
+ export class IntoUnderlyingByteSource {
4
+ __destroy_into_raw() {
5
+ const ptr = this.__wbg_ptr;
6
+ this.__wbg_ptr = 0;
7
+ IntoUnderlyingByteSourceFinalization.unregister(this);
8
+ return ptr;
9
+ }
10
+ free() {
11
+ const ptr = this.__destroy_into_raw();
12
+ wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
13
+ }
14
+ /**
15
+ * @returns {number}
16
+ */
17
+ get autoAllocateChunkSize() {
18
+ const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
19
+ return ret >>> 0;
20
+ }
21
+ cancel() {
22
+ const ptr = this.__destroy_into_raw();
23
+ wasm.intounderlyingbytesource_cancel(ptr);
24
+ }
25
+ /**
26
+ * @param {ReadableByteStreamController} controller
27
+ * @returns {Promise<any>}
28
+ */
29
+ pull(controller) {
30
+ const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
31
+ return takeObject(ret);
32
+ }
33
+ /**
34
+ * @param {ReadableByteStreamController} controller
35
+ */
36
+ start(controller) {
37
+ wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
38
+ }
39
+ /**
40
+ * @returns {ReadableStreamType}
41
+ */
42
+ get type() {
43
+ const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
44
+ return __wbindgen_enum_ReadableStreamType[ret];
45
+ }
46
+ }
47
+ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
48
+
49
+ export class IntoUnderlyingSink {
50
+ __destroy_into_raw() {
51
+ const ptr = this.__wbg_ptr;
52
+ this.__wbg_ptr = 0;
53
+ IntoUnderlyingSinkFinalization.unregister(this);
54
+ return ptr;
55
+ }
56
+ free() {
57
+ const ptr = this.__destroy_into_raw();
58
+ wasm.__wbg_intounderlyingsink_free(ptr, 0);
59
+ }
60
+ /**
61
+ * @param {any} reason
62
+ * @returns {Promise<any>}
63
+ */
64
+ abort(reason) {
65
+ const ptr = this.__destroy_into_raw();
66
+ const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
67
+ return takeObject(ret);
68
+ }
69
+ /**
70
+ * @returns {Promise<any>}
71
+ */
72
+ close() {
73
+ const ptr = this.__destroy_into_raw();
74
+ const ret = wasm.intounderlyingsink_close(ptr);
75
+ return takeObject(ret);
76
+ }
77
+ /**
78
+ * @param {any} chunk
79
+ * @returns {Promise<any>}
80
+ */
81
+ write(chunk) {
82
+ const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
83
+ return takeObject(ret);
84
+ }
85
+ }
86
+ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
87
+
88
+ export class IntoUnderlyingSource {
89
+ __destroy_into_raw() {
90
+ const ptr = this.__wbg_ptr;
91
+ this.__wbg_ptr = 0;
92
+ IntoUnderlyingSourceFinalization.unregister(this);
93
+ return ptr;
94
+ }
95
+ free() {
96
+ const ptr = this.__destroy_into_raw();
97
+ wasm.__wbg_intounderlyingsource_free(ptr, 0);
98
+ }
99
+ cancel() {
100
+ const ptr = this.__destroy_into_raw();
101
+ wasm.intounderlyingsource_cancel(ptr);
102
+ }
103
+ /**
104
+ * @param {ReadableStreamDefaultController} controller
105
+ * @returns {Promise<any>}
106
+ */
107
+ pull(controller) {
108
+ const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
109
+ return takeObject(ret);
110
+ }
111
+ }
112
+ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
113
+
114
+ /**
115
+ * Initialize the clawft-wasm browser runtime.
116
+ *
117
+ * Parses the provided JSON config and sets up a BrowserLlmClient.
118
+ * Must be called once before `send_message`.
119
+ * @param {string} config_json
120
+ * @returns {Promise<void>}
121
+ */
122
+ export function init(config_json) {
123
+ const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
124
+ const len0 = WASM_VECTOR_LEN;
125
+ const ret = wasm.init(ptr0, len0);
126
+ return takeObject(ret);
127
+ }
128
+
129
+ /**
130
+ * Send a message through the clawft LLM pipeline.
131
+ *
132
+ * Appends the user message to the conversation history, sends it
133
+ * to the configured LLM provider via BrowserLlmClient, and returns
134
+ * the assistant's response.
135
+ * @param {string} text
136
+ * @returns {Promise<string>}
137
+ */
138
+ export function send_message(text) {
139
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
140
+ const len0 = WASM_VECTOR_LEN;
141
+ const ret = wasm.send_message(ptr0, len0);
142
+ return takeObject(ret);
143
+ }
144
+
145
+ /**
146
+ * Set an environment variable on the BrowserPlatform.
147
+ * @param {string} _key
148
+ * @param {string} _value
149
+ */
150
+ export function set_env(_key, _value) {
151
+ const ptr0 = passStringToWasm0(_key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
152
+ const len0 = WASM_VECTOR_LEN;
153
+ const ptr1 = passStringToWasm0(_value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
154
+ const len1 = WASM_VECTOR_LEN;
155
+ wasm.set_env(ptr0, len0, ptr1, len1);
156
+ }
157
+
158
+ function __wbg_get_imports() {
159
+ const import0 = {
160
+ __proto__: null,
161
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
162
+ const ret = debugString(getObject(arg1));
163
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
164
+ const len1 = WASM_VECTOR_LEN;
165
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
166
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
167
+ },
168
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
169
+ const ret = typeof(getObject(arg0)) === 'function';
170
+ return ret;
171
+ },
172
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
173
+ const val = getObject(arg0);
174
+ const ret = typeof(val) === 'object' && val !== null;
175
+ return ret;
176
+ },
177
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
178
+ const ret = getObject(arg0) === undefined;
179
+ return ret;
180
+ },
181
+ __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
182
+ const obj = getObject(arg1);
183
+ const ret = typeof(obj) === 'string' ? obj : undefined;
184
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
185
+ var len1 = WASM_VECTOR_LEN;
186
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
187
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
188
+ },
189
+ __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
190
+ throw new Error(getStringFromWasm0(arg0, arg1));
191
+ },
192
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
193
+ getObject(arg0)._wbg_cb_unref();
194
+ },
195
+ __wbg_abort_2f0584e03e8e3950: function(arg0) {
196
+ getObject(arg0).abort();
197
+ },
198
+ __wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
199
+ getObject(arg0).abort(getObject(arg1));
200
+ },
201
+ __wbg_append_5050a4a2867113b7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
202
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
203
+ }, arguments); },
204
+ __wbg_append_68324d5b44b13a25: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
205
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3), getStringFromWasm0(arg4, arg5));
206
+ }, arguments); },
207
+ __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
208
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
209
+ }, arguments); },
210
+ __wbg_append_f397817515023c29: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
211
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
212
+ }, arguments); },
213
+ __wbg_arrayBuffer_bb54076166006c39: function() { return handleError(function (arg0) {
214
+ const ret = getObject(arg0).arrayBuffer();
215
+ return addHeapObject(ret);
216
+ }, arguments); },
217
+ __wbg_buffer_26d0910f3a5bc899: function(arg0) {
218
+ const ret = getObject(arg0).buffer;
219
+ return addHeapObject(ret);
220
+ },
221
+ __wbg_byobRequest_80e594e6da4e1af7: function(arg0) {
222
+ const ret = getObject(arg0).byobRequest;
223
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
224
+ },
225
+ __wbg_byteLength_3417f266f4bf562a: function(arg0) {
226
+ const ret = getObject(arg0).byteLength;
227
+ return ret;
228
+ },
229
+ __wbg_byteOffset_f88547ca47c86358: function(arg0) {
230
+ const ret = getObject(arg0).byteOffset;
231
+ return ret;
232
+ },
233
+ __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
234
+ const ret = getObject(arg0).call(getObject(arg1));
235
+ return addHeapObject(ret);
236
+ }, arguments); },
237
+ __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
238
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
239
+ return addHeapObject(ret);
240
+ }, arguments); },
241
+ __wbg_clearTimeout_42d9ccd50822fd3a: function(arg0) {
242
+ const ret = clearTimeout(takeObject(arg0));
243
+ return addHeapObject(ret);
244
+ },
245
+ __wbg_close_06dfa0a815b9d71f: function() { return handleError(function (arg0) {
246
+ getObject(arg0).close();
247
+ }, arguments); },
248
+ __wbg_close_a79afee31de55b36: function() { return handleError(function (arg0) {
249
+ getObject(arg0).close();
250
+ }, arguments); },
251
+ __wbg_done_57b39ecd9addfe81: function(arg0) {
252
+ const ret = getObject(arg0).done;
253
+ return ret;
254
+ },
255
+ __wbg_enqueue_2c63f2044f257c3e: function() { return handleError(function (arg0, arg1) {
256
+ getObject(arg0).enqueue(getObject(arg1));
257
+ }, arguments); },
258
+ __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
259
+ let deferred0_0;
260
+ let deferred0_1;
261
+ try {
262
+ deferred0_0 = arg0;
263
+ deferred0_1 = arg1;
264
+ console.error(getStringFromWasm0(arg0, arg1));
265
+ } finally {
266
+ wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
267
+ }
268
+ },
269
+ __wbg_fetch_6bbc32f991730587: function(arg0) {
270
+ const ret = fetch(getObject(arg0));
271
+ return addHeapObject(ret);
272
+ },
273
+ __wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
274
+ const ret = getObject(arg0).fetch(getObject(arg1));
275
+ return addHeapObject(ret);
276
+ },
277
+ __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
278
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
279
+ return addHeapObject(ret);
280
+ }, arguments); },
281
+ __wbg_has_d4e53238966c12b6: function() { return handleError(function (arg0, arg1) {
282
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
283
+ return ret;
284
+ }, arguments); },
285
+ __wbg_headers_59a2938db9f80985: function(arg0) {
286
+ const ret = getObject(arg0).headers;
287
+ return addHeapObject(ret);
288
+ },
289
+ __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
290
+ let result;
291
+ try {
292
+ result = getObject(arg0) instanceof Response;
293
+ } catch (_) {
294
+ result = false;
295
+ }
296
+ const ret = result;
297
+ return ret;
298
+ },
299
+ __wbg_iterator_6ff6560ca1568e55: function() {
300
+ const ret = Symbol.iterator;
301
+ return addHeapObject(ret);
302
+ },
303
+ __wbg_length_32ed9a279acd054c: function(arg0) {
304
+ const ret = getObject(arg0).length;
305
+ return ret;
306
+ },
307
+ __wbg_log_6b5ca2e6124b2808: function(arg0) {
308
+ console.log(getObject(arg0));
309
+ },
310
+ __wbg_new_361308b2356cecd0: function() {
311
+ const ret = new Object();
312
+ return addHeapObject(ret);
313
+ },
314
+ __wbg_new_3eb36ae241fe6f44: function() {
315
+ const ret = new Array();
316
+ return addHeapObject(ret);
317
+ },
318
+ __wbg_new_64284bd487f9d239: function() { return handleError(function () {
319
+ const ret = new Headers();
320
+ return addHeapObject(ret);
321
+ }, arguments); },
322
+ __wbg_new_72b49615380db768: function(arg0, arg1) {
323
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
324
+ return addHeapObject(ret);
325
+ },
326
+ __wbg_new_738c2e238e869a5e: function() { return handleError(function () {
327
+ const ret = new FormData();
328
+ return addHeapObject(ret);
329
+ }, arguments); },
330
+ __wbg_new_8a6f238a6ece86ea: function() {
331
+ const ret = new Error();
332
+ return addHeapObject(ret);
333
+ },
334
+ __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
335
+ try {
336
+ var state0 = {a: arg0, b: arg1};
337
+ var cb0 = (arg0, arg1) => {
338
+ const a = state0.a;
339
+ state0.a = 0;
340
+ try {
341
+ return __wasm_bindgen_func_elem_1402(a, state0.b, arg0, arg1);
342
+ } finally {
343
+ state0.a = a;
344
+ }
345
+ };
346
+ const ret = new Promise(cb0);
347
+ return addHeapObject(ret);
348
+ } finally {
349
+ state0.a = state0.b = 0;
350
+ }
351
+ },
352
+ __wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
353
+ const ret = new AbortController();
354
+ return addHeapObject(ret);
355
+ }, arguments); },
356
+ __wbg_new_dd2b680c8bf6ae29: function(arg0) {
357
+ const ret = new Uint8Array(getObject(arg0));
358
+ return addHeapObject(ret);
359
+ },
360
+ __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
361
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
362
+ return addHeapObject(ret);
363
+ },
364
+ __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
365
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
366
+ return addHeapObject(ret);
367
+ },
368
+ __wbg_new_with_byte_offset_and_length_aa261d9c9da49eb1: function(arg0, arg1, arg2) {
369
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
370
+ return addHeapObject(ret);
371
+ },
372
+ __wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
373
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
374
+ return addHeapObject(ret);
375
+ }, arguments); },
376
+ __wbg_new_with_u8_array_sequence_and_options_cc0f8f2c1ef62e68: function() { return handleError(function (arg0, arg1) {
377
+ const ret = new Blob(getObject(arg0), getObject(arg1));
378
+ return addHeapObject(ret);
379
+ }, arguments); },
380
+ __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
381
+ const ret = getObject(arg0).next();
382
+ return addHeapObject(ret);
383
+ }, arguments); },
384
+ __wbg_next_418f80d8f5303233: function(arg0) {
385
+ const ret = getObject(arg0).next;
386
+ return addHeapObject(ret);
387
+ },
388
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
389
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
390
+ },
391
+ __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
392
+ const ret = getObject(arg0).push(getObject(arg1));
393
+ return ret;
394
+ },
395
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
396
+ const ret = getObject(arg0).queueMicrotask;
397
+ return addHeapObject(ret);
398
+ },
399
+ __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
400
+ queueMicrotask(getObject(arg0));
401
+ },
402
+ __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
403
+ const ret = Promise.resolve(getObject(arg0));
404
+ return addHeapObject(ret);
405
+ },
406
+ __wbg_respond_bf6ab10399ca8722: function() { return handleError(function (arg0, arg1) {
407
+ getObject(arg0).respond(arg1 >>> 0);
408
+ }, arguments); },
409
+ __wbg_setTimeout_4ec014681668a581: function(arg0, arg1) {
410
+ const ret = setTimeout(getObject(arg0), arg1);
411
+ return addHeapObject(ret);
412
+ },
413
+ __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
414
+ getObject(arg0).body = getObject(arg1);
415
+ },
416
+ __wbg_set_cache_315a3ed773a41543: function(arg0, arg1) {
417
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
418
+ },
419
+ __wbg_set_cc56eefd2dd91957: function(arg0, arg1, arg2) {
420
+ getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
421
+ },
422
+ __wbg_set_credentials_c4a58d2e05ef24fb: function(arg0, arg1) {
423
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
424
+ },
425
+ __wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
426
+ getObject(arg0).headers = getObject(arg1);
427
+ },
428
+ __wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
429
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
430
+ },
431
+ __wbg_set_mode_b13642c312648202: function(arg0, arg1) {
432
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
433
+ },
434
+ __wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
435
+ getObject(arg0).signal = getObject(arg1);
436
+ },
437
+ __wbg_set_type_148de20768639245: function(arg0, arg1, arg2) {
438
+ getObject(arg0).type = getStringFromWasm0(arg1, arg2);
439
+ },
440
+ __wbg_signal_d1285ecab4ebc5ad: function(arg0) {
441
+ const ret = getObject(arg0).signal;
442
+ return addHeapObject(ret);
443
+ },
444
+ __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
445
+ const ret = getObject(arg1).stack;
446
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
447
+ const len1 = WASM_VECTOR_LEN;
448
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
449
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
450
+ },
451
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
452
+ const ret = typeof global === 'undefined' ? null : global;
453
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
454
+ },
455
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
456
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
457
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
458
+ },
459
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
460
+ const ret = typeof self === 'undefined' ? null : self;
461
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
462
+ },
463
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
464
+ const ret = typeof window === 'undefined' ? null : window;
465
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
466
+ },
467
+ __wbg_status_89d7e803db911ee7: function(arg0) {
468
+ const ret = getObject(arg0).status;
469
+ return ret;
470
+ },
471
+ __wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
472
+ const ret = JSON.stringify(getObject(arg0));
473
+ return addHeapObject(ret);
474
+ }, arguments); },
475
+ __wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
476
+ const ret = getObject(arg0).text();
477
+ return addHeapObject(ret);
478
+ }, arguments); },
479
+ __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
480
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
481
+ return addHeapObject(ret);
482
+ },
483
+ __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
484
+ const ret = getObject(arg0).then(getObject(arg1));
485
+ return addHeapObject(ret);
486
+ },
487
+ __wbg_url_c484c26b1fbf5126: function(arg0, arg1) {
488
+ const ret = getObject(arg1).url;
489
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
490
+ const len1 = WASM_VECTOR_LEN;
491
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
492
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
493
+ },
494
+ __wbg_value_0546255b415e96c1: function(arg0) {
495
+ const ret = getObject(arg0).value;
496
+ return addHeapObject(ret);
497
+ },
498
+ __wbg_view_6c32e7184b8606ad: function(arg0) {
499
+ const ret = getObject(arg0).view;
500
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
501
+ },
502
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
503
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 188, function: Function { arguments: [], shim_idx: 189, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
504
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_570, __wasm_bindgen_func_elem_571);
505
+ return addHeapObject(ret);
506
+ },
507
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
508
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 242, function: Function { arguments: [Externref], shim_idx: 243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
509
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_702, __wasm_bindgen_func_elem_703);
510
+ return addHeapObject(ret);
511
+ },
512
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
513
+ // Cast intrinsic for `Ref(String) -> Externref`.
514
+ const ret = getStringFromWasm0(arg0, arg1);
515
+ return addHeapObject(ret);
516
+ },
517
+ __wbindgen_object_clone_ref: function(arg0) {
518
+ const ret = getObject(arg0);
519
+ return addHeapObject(ret);
520
+ },
521
+ __wbindgen_object_drop_ref: function(arg0) {
522
+ takeObject(arg0);
523
+ },
524
+ };
525
+ return {
526
+ __proto__: null,
527
+ "./clawft_wasm_bg.js": import0,
528
+ };
529
+ }
530
+
531
+ function __wasm_bindgen_func_elem_571(arg0, arg1) {
532
+ wasm.__wasm_bindgen_func_elem_571(arg0, arg1);
533
+ }
534
+
535
+ function __wasm_bindgen_func_elem_703(arg0, arg1, arg2) {
536
+ wasm.__wasm_bindgen_func_elem_703(arg0, arg1, addHeapObject(arg2));
537
+ }
538
+
539
+ function __wasm_bindgen_func_elem_1402(arg0, arg1, arg2, arg3) {
540
+ wasm.__wasm_bindgen_func_elem_1402(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
541
+ }
542
+
543
+
544
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
545
+
546
+
547
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
548
+
549
+
550
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
551
+
552
+
553
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
554
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
555
+ ? { register: () => {}, unregister: () => {} }
556
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
557
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
558
+ ? { register: () => {}, unregister: () => {} }
559
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
560
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
561
+ ? { register: () => {}, unregister: () => {} }
562
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
563
+
564
+ function addHeapObject(obj) {
565
+ if (heap_next === heap.length) heap.push(heap.length + 1);
566
+ const idx = heap_next;
567
+ heap_next = heap[idx];
568
+
569
+ heap[idx] = obj;
570
+ return idx;
571
+ }
572
+
573
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
574
+ ? { register: () => {}, unregister: () => {} }
575
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
576
+
577
+ function debugString(val) {
578
+ // primitive types
579
+ const type = typeof val;
580
+ if (type == 'number' || type == 'boolean' || val == null) {
581
+ return `${val}`;
582
+ }
583
+ if (type == 'string') {
584
+ return `"${val}"`;
585
+ }
586
+ if (type == 'symbol') {
587
+ const description = val.description;
588
+ if (description == null) {
589
+ return 'Symbol';
590
+ } else {
591
+ return `Symbol(${description})`;
592
+ }
593
+ }
594
+ if (type == 'function') {
595
+ const name = val.name;
596
+ if (typeof name == 'string' && name.length > 0) {
597
+ return `Function(${name})`;
598
+ } else {
599
+ return 'Function';
600
+ }
601
+ }
602
+ // objects
603
+ if (Array.isArray(val)) {
604
+ const length = val.length;
605
+ let debug = '[';
606
+ if (length > 0) {
607
+ debug += debugString(val[0]);
608
+ }
609
+ for(let i = 1; i < length; i++) {
610
+ debug += ', ' + debugString(val[i]);
611
+ }
612
+ debug += ']';
613
+ return debug;
614
+ }
615
+ // Test for built-in
616
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
617
+ let className;
618
+ if (builtInMatches && builtInMatches.length > 1) {
619
+ className = builtInMatches[1];
620
+ } else {
621
+ // Failed to match the standard '[object ClassName]'
622
+ return toString.call(val);
623
+ }
624
+ if (className == 'Object') {
625
+ // we're a user defined class or Object
626
+ // JSON.stringify avoids problems with cycles, and is generally much
627
+ // easier than looping through ownProperties of `val`.
628
+ try {
629
+ return 'Object(' + JSON.stringify(val) + ')';
630
+ } catch (_) {
631
+ return 'Object';
632
+ }
633
+ }
634
+ // errors
635
+ if (val instanceof Error) {
636
+ return `${val.name}: ${val.message}\n${val.stack}`;
637
+ }
638
+ // TODO we could test for more things here, like `Set`s and `Map`s.
639
+ return className;
640
+ }
641
+
642
+ function dropObject(idx) {
643
+ if (idx < 132) return;
644
+ heap[idx] = heap_next;
645
+ heap_next = idx;
646
+ }
647
+
648
+ function getArrayU8FromWasm0(ptr, len) {
649
+ ptr = ptr >>> 0;
650
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
651
+ }
652
+
653
+ let cachedDataViewMemory0 = null;
654
+ function getDataViewMemory0() {
655
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
656
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
657
+ }
658
+ return cachedDataViewMemory0;
659
+ }
660
+
661
+ function getStringFromWasm0(ptr, len) {
662
+ ptr = ptr >>> 0;
663
+ return decodeText(ptr, len);
664
+ }
665
+
666
+ let cachedUint8ArrayMemory0 = null;
667
+ function getUint8ArrayMemory0() {
668
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
669
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
670
+ }
671
+ return cachedUint8ArrayMemory0;
672
+ }
673
+
674
+ function getObject(idx) { return heap[idx]; }
675
+
676
+ function handleError(f, args) {
677
+ try {
678
+ return f.apply(this, args);
679
+ } catch (e) {
680
+ wasm.__wbindgen_export3(addHeapObject(e));
681
+ }
682
+ }
683
+
684
+ let heap = new Array(128).fill(undefined);
685
+ heap.push(undefined, null, true, false);
686
+
687
+ let heap_next = heap.length;
688
+
689
+ function isLikeNone(x) {
690
+ return x === undefined || x === null;
691
+ }
692
+
693
+ function makeMutClosure(arg0, arg1, dtor, f) {
694
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
695
+ const real = (...args) => {
696
+
697
+ // First up with a closure we increment the internal reference
698
+ // count. This ensures that the Rust closure environment won't
699
+ // be deallocated while we're invoking it.
700
+ state.cnt++;
701
+ const a = state.a;
702
+ state.a = 0;
703
+ try {
704
+ return f(a, state.b, ...args);
705
+ } finally {
706
+ state.a = a;
707
+ real._wbg_cb_unref();
708
+ }
709
+ };
710
+ real._wbg_cb_unref = () => {
711
+ if (--state.cnt === 0) {
712
+ state.dtor(state.a, state.b);
713
+ state.a = 0;
714
+ CLOSURE_DTORS.unregister(state);
715
+ }
716
+ };
717
+ CLOSURE_DTORS.register(real, state, state);
718
+ return real;
719
+ }
720
+
721
+ function passStringToWasm0(arg, malloc, realloc) {
722
+ if (realloc === undefined) {
723
+ const buf = cachedTextEncoder.encode(arg);
724
+ const ptr = malloc(buf.length, 1) >>> 0;
725
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
726
+ WASM_VECTOR_LEN = buf.length;
727
+ return ptr;
728
+ }
729
+
730
+ let len = arg.length;
731
+ let ptr = malloc(len, 1) >>> 0;
732
+
733
+ const mem = getUint8ArrayMemory0();
734
+
735
+ let offset = 0;
736
+
737
+ for (; offset < len; offset++) {
738
+ const code = arg.charCodeAt(offset);
739
+ if (code > 0x7F) break;
740
+ mem[ptr + offset] = code;
741
+ }
742
+ if (offset !== len) {
743
+ if (offset !== 0) {
744
+ arg = arg.slice(offset);
745
+ }
746
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
747
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
748
+ const ret = cachedTextEncoder.encodeInto(arg, view);
749
+
750
+ offset += ret.written;
751
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
752
+ }
753
+
754
+ WASM_VECTOR_LEN = offset;
755
+ return ptr;
756
+ }
757
+
758
+ function takeObject(idx) {
759
+ const ret = getObject(idx);
760
+ dropObject(idx);
761
+ return ret;
762
+ }
763
+
764
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
765
+ cachedTextDecoder.decode();
766
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
767
+ let numBytesDecoded = 0;
768
+ function decodeText(ptr, len) {
769
+ numBytesDecoded += len;
770
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
771
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
772
+ cachedTextDecoder.decode();
773
+ numBytesDecoded = len;
774
+ }
775
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
776
+ }
777
+
778
+ const cachedTextEncoder = new TextEncoder();
779
+
780
+ if (!('encodeInto' in cachedTextEncoder)) {
781
+ cachedTextEncoder.encodeInto = function (arg, view) {
782
+ const buf = cachedTextEncoder.encode(arg);
783
+ view.set(buf);
784
+ return {
785
+ read: arg.length,
786
+ written: buf.length
787
+ };
788
+ };
789
+ }
790
+
791
+ let WASM_VECTOR_LEN = 0;
792
+
793
+ let wasmModule, wasm;
794
+ function __wbg_finalize_init(instance, module) {
795
+ wasm = instance.exports;
796
+ wasmModule = module;
797
+ cachedDataViewMemory0 = null;
798
+ cachedUint8ArrayMemory0 = null;
799
+ return wasm;
800
+ }
801
+
802
+ async function __wbg_load(module, imports) {
803
+ if (typeof Response === 'function' && module instanceof Response) {
804
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
805
+ try {
806
+ return await WebAssembly.instantiateStreaming(module, imports);
807
+ } catch (e) {
808
+ const validResponse = module.ok && expectedResponseType(module.type);
809
+
810
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
811
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
812
+
813
+ } else { throw e; }
814
+ }
815
+ }
816
+
817
+ const bytes = await module.arrayBuffer();
818
+ return await WebAssembly.instantiate(bytes, imports);
819
+ } else {
820
+ const instance = await WebAssembly.instantiate(module, imports);
821
+
822
+ if (instance instanceof WebAssembly.Instance) {
823
+ return { instance, module };
824
+ } else {
825
+ return instance;
826
+ }
827
+ }
828
+
829
+ function expectedResponseType(type) {
830
+ switch (type) {
831
+ case 'basic': case 'cors': case 'default': return true;
832
+ }
833
+ return false;
834
+ }
835
+ }
836
+
837
+ function initSync(module) {
838
+ if (wasm !== undefined) return wasm;
839
+
840
+
841
+ if (module !== undefined) {
842
+ if (Object.getPrototypeOf(module) === Object.prototype) {
843
+ ({module} = module)
844
+ } else {
845
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
846
+ }
847
+ }
848
+
849
+ const imports = __wbg_get_imports();
850
+ if (!(module instanceof WebAssembly.Module)) {
851
+ module = new WebAssembly.Module(module);
852
+ }
853
+ const instance = new WebAssembly.Instance(module, imports);
854
+ return __wbg_finalize_init(instance, module);
855
+ }
856
+
857
+ async function __wbg_init(module_or_path) {
858
+ if (wasm !== undefined) return wasm;
859
+
860
+
861
+ if (module_or_path !== undefined) {
862
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
863
+ ({module_or_path} = module_or_path)
864
+ } else {
865
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
866
+ }
867
+ }
868
+
869
+ if (module_or_path === undefined) {
870
+ module_or_path = new URL('clawft_wasm_bg.wasm', import.meta.url);
871
+ }
872
+ const imports = __wbg_get_imports();
873
+
874
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
875
+ module_or_path = fetch(module_or_path);
876
+ }
877
+
878
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
879
+
880
+ return __wbg_finalize_init(instance, module);
881
+ }
882
+
883
+ export { initSync, __wbg_init as default };
Binary file
@@ -0,0 +1,28 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const init: (a: number, b: number) => number;
5
+ export const send_message: (a: number, b: number) => number;
6
+ export const set_env: (a: number, b: number, c: number, d: number) => void;
7
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
8
+ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
9
+ export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
10
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
11
+ export const intounderlyingbytesource_cancel: (a: number) => void;
12
+ export const intounderlyingbytesource_pull: (a: number, b: number) => number;
13
+ export const intounderlyingbytesource_start: (a: number, b: number) => void;
14
+ export const intounderlyingbytesource_type: (a: number) => number;
15
+ export const intounderlyingsink_abort: (a: number, b: number) => number;
16
+ export const intounderlyingsink_close: (a: number) => number;
17
+ export const intounderlyingsink_write: (a: number, b: number) => number;
18
+ export const intounderlyingsource_cancel: (a: number) => void;
19
+ export const intounderlyingsource_pull: (a: number, b: number) => number;
20
+ export const __wasm_bindgen_func_elem_570: (a: number, b: number) => void;
21
+ export const __wasm_bindgen_func_elem_702: (a: number, b: number) => void;
22
+ export const __wasm_bindgen_func_elem_1402: (a: number, b: number, c: number, d: number) => void;
23
+ export const __wasm_bindgen_func_elem_703: (a: number, b: number, c: number) => void;
24
+ export const __wasm_bindgen_func_elem_571: (a: number, b: number) => void;
25
+ export const __wbindgen_export: (a: number, b: number) => number;
26
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
27
+ export const __wbindgen_export3: (a: number) => void;
28
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@weftos/core",
3
+ "version": "0.1.1",
4
+ "description": "WeftOS WASM core — browser runtime for the clawft agent framework",
5
+ "keywords": ["wasm", "wasi", "ai", "agent", "edge", "weftos"],
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/weave-logic-ai/weftos"
10
+ },
11
+ "files": [
12
+ "clawft_wasm_bg.wasm",
13
+ "clawft_wasm.js",
14
+ "clawft_wasm.d.ts",
15
+ "clawft_wasm_bg.wasm.d.ts"
16
+ ],
17
+ "module": "clawft_wasm.js",
18
+ "types": "clawft_wasm.d.ts",
19
+ "type": "module",
20
+ "sideEffects": [
21
+ "./clawft_wasm.js",
22
+ "./snippets/*"
23
+ ]
24
+ }