objectiveai-ensemble-js 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.
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Objective Artificial Intelligence, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
function addToExternrefTable0(obj) {
|
|
7
|
+
const idx = wasm.__externref_table_alloc();
|
|
8
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
9
|
+
return idx;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function debugString(val) {
|
|
13
|
+
// primitive types
|
|
14
|
+
const type = typeof val;
|
|
15
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
16
|
+
return `${val}`;
|
|
17
|
+
}
|
|
18
|
+
if (type == 'string') {
|
|
19
|
+
return `"${val}"`;
|
|
20
|
+
}
|
|
21
|
+
if (type == 'symbol') {
|
|
22
|
+
const description = val.description;
|
|
23
|
+
if (description == null) {
|
|
24
|
+
return 'Symbol';
|
|
25
|
+
} else {
|
|
26
|
+
return `Symbol(${description})`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (type == 'function') {
|
|
30
|
+
const name = val.name;
|
|
31
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
32
|
+
return `Function(${name})`;
|
|
33
|
+
} else {
|
|
34
|
+
return 'Function';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// objects
|
|
38
|
+
if (Array.isArray(val)) {
|
|
39
|
+
const length = val.length;
|
|
40
|
+
let debug = '[';
|
|
41
|
+
if (length > 0) {
|
|
42
|
+
debug += debugString(val[0]);
|
|
43
|
+
}
|
|
44
|
+
for(let i = 1; i < length; i++) {
|
|
45
|
+
debug += ', ' + debugString(val[i]);
|
|
46
|
+
}
|
|
47
|
+
debug += ']';
|
|
48
|
+
return debug;
|
|
49
|
+
}
|
|
50
|
+
// Test for built-in
|
|
51
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
52
|
+
let className;
|
|
53
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
54
|
+
className = builtInMatches[1];
|
|
55
|
+
} else {
|
|
56
|
+
// Failed to match the standard '[object ClassName]'
|
|
57
|
+
return toString.call(val);
|
|
58
|
+
}
|
|
59
|
+
if (className == 'Object') {
|
|
60
|
+
// we're a user defined class or Object
|
|
61
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
62
|
+
// easier than looping through ownProperties of `val`.
|
|
63
|
+
try {
|
|
64
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
65
|
+
} catch (_) {
|
|
66
|
+
return 'Object';
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// errors
|
|
70
|
+
if (val instanceof Error) {
|
|
71
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
72
|
+
}
|
|
73
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
74
|
+
return className;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
78
|
+
ptr = ptr >>> 0;
|
|
79
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
let cachedDataViewMemory0 = null;
|
|
83
|
+
function getDataViewMemory0() {
|
|
84
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
85
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
86
|
+
}
|
|
87
|
+
return cachedDataViewMemory0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function getStringFromWasm0(ptr, len) {
|
|
91
|
+
ptr = ptr >>> 0;
|
|
92
|
+
return decodeText(ptr, len);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let cachedUint8ArrayMemory0 = null;
|
|
96
|
+
function getUint8ArrayMemory0() {
|
|
97
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
98
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
99
|
+
}
|
|
100
|
+
return cachedUint8ArrayMemory0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function handleError(f, args) {
|
|
104
|
+
try {
|
|
105
|
+
return f.apply(this, args);
|
|
106
|
+
} catch (e) {
|
|
107
|
+
const idx = addToExternrefTable0(e);
|
|
108
|
+
wasm.__wbindgen_exn_store(idx);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function isLikeNone(x) {
|
|
113
|
+
return x === undefined || x === null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
117
|
+
if (realloc === undefined) {
|
|
118
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
119
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
120
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
121
|
+
WASM_VECTOR_LEN = buf.length;
|
|
122
|
+
return ptr;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
let len = arg.length;
|
|
126
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
127
|
+
|
|
128
|
+
const mem = getUint8ArrayMemory0();
|
|
129
|
+
|
|
130
|
+
let offset = 0;
|
|
131
|
+
|
|
132
|
+
for (; offset < len; offset++) {
|
|
133
|
+
const code = arg.charCodeAt(offset);
|
|
134
|
+
if (code > 0x7F) break;
|
|
135
|
+
mem[ptr + offset] = code;
|
|
136
|
+
}
|
|
137
|
+
if (offset !== len) {
|
|
138
|
+
if (offset !== 0) {
|
|
139
|
+
arg = arg.slice(offset);
|
|
140
|
+
}
|
|
141
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
142
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
143
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
144
|
+
|
|
145
|
+
offset += ret.written;
|
|
146
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
WASM_VECTOR_LEN = offset;
|
|
150
|
+
return ptr;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function takeFromExternrefTable0(idx) {
|
|
154
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
155
|
+
wasm.__externref_table_dealloc(idx);
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
160
|
+
cachedTextDecoder.decode();
|
|
161
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
162
|
+
let numBytesDecoded = 0;
|
|
163
|
+
function decodeText(ptr, len) {
|
|
164
|
+
numBytesDecoded += len;
|
|
165
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
166
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
167
|
+
cachedTextDecoder.decode();
|
|
168
|
+
numBytesDecoded = len;
|
|
169
|
+
}
|
|
170
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const cachedTextEncoder = new TextEncoder();
|
|
174
|
+
|
|
175
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
176
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
177
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
178
|
+
view.set(buf);
|
|
179
|
+
return {
|
|
180
|
+
read: arg.length,
|
|
181
|
+
written: buf.length
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
let WASM_VECTOR_LEN = 0;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @param {any} ensemble
|
|
190
|
+
* @returns {any}
|
|
191
|
+
*/
|
|
192
|
+
export function validateEnsemble(ensemble) {
|
|
193
|
+
const ret = wasm.validateEnsemble(ensemble);
|
|
194
|
+
if (ret[2]) {
|
|
195
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
196
|
+
}
|
|
197
|
+
return takeFromExternrefTable0(ret[0]);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @param {any} llm
|
|
202
|
+
* @returns {any}
|
|
203
|
+
*/
|
|
204
|
+
export function validateEnsembleLlm(llm) {
|
|
205
|
+
const ret = wasm.validateEnsembleLlm(llm);
|
|
206
|
+
if (ret[2]) {
|
|
207
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
208
|
+
}
|
|
209
|
+
return takeFromExternrefTable0(ret[0]);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
|
|
213
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
214
|
+
return ret;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export function __wbg_Number_2d1dcfcf4ec51736(arg0) {
|
|
218
|
+
const ret = Number(arg0);
|
|
219
|
+
return ret;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export function __wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d(arg0, arg1) {
|
|
223
|
+
const v = arg1;
|
|
224
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
225
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
226
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
|
|
230
|
+
const v = arg0;
|
|
231
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
232
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
|
|
236
|
+
const ret = debugString(arg1);
|
|
237
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len1 = WASM_VECTOR_LEN;
|
|
239
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
240
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
|
|
244
|
+
const ret = arg0 in arg1;
|
|
245
|
+
return ret;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export function __wbg___wbindgen_is_bigint_0e1a2e3f55cfae27(arg0) {
|
|
249
|
+
const ret = typeof(arg0) === 'bigint';
|
|
250
|
+
return ret;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
|
|
254
|
+
const ret = typeof(arg0) === 'function';
|
|
255
|
+
return ret;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
|
|
259
|
+
const val = arg0;
|
|
260
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
261
|
+
return ret;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
|
|
265
|
+
const ret = typeof(arg0) === 'string';
|
|
266
|
+
return ret;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
|
|
270
|
+
const ret = arg0 === undefined;
|
|
271
|
+
return ret;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export function __wbg___wbindgen_jsval_eq_b6101cc9cef1fe36(arg0, arg1) {
|
|
275
|
+
const ret = arg0 === arg1;
|
|
276
|
+
return ret;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
|
|
280
|
+
const ret = arg0 == arg1;
|
|
281
|
+
return ret;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
|
|
285
|
+
const obj = arg1;
|
|
286
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
287
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
288
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
|
|
292
|
+
const obj = arg1;
|
|
293
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
294
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
295
|
+
var len1 = WASM_VECTOR_LEN;
|
|
296
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
297
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
|
|
301
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
|
|
305
|
+
const ret = arg0.call(arg1);
|
|
306
|
+
return ret;
|
|
307
|
+
}, arguments) };
|
|
308
|
+
|
|
309
|
+
export function __wbg_done_62ea16af4ce34b24(arg0) {
|
|
310
|
+
const ret = arg0.done;
|
|
311
|
+
return ret;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export function __wbg_entries_83c79938054e065f(arg0) {
|
|
315
|
+
const ret = Object.entries(arg0);
|
|
316
|
+
return ret;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
|
|
320
|
+
const ret = arg0[arg1 >>> 0];
|
|
321
|
+
return ret;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
|
|
325
|
+
const ret = Reflect.get(arg0, arg1);
|
|
326
|
+
return ret;
|
|
327
|
+
}, arguments) };
|
|
328
|
+
|
|
329
|
+
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
330
|
+
const ret = arg0[arg1];
|
|
331
|
+
return ret;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
335
|
+
let result;
|
|
336
|
+
try {
|
|
337
|
+
result = arg0 instanceof ArrayBuffer;
|
|
338
|
+
} catch (_) {
|
|
339
|
+
result = false;
|
|
340
|
+
}
|
|
341
|
+
const ret = result;
|
|
342
|
+
return ret;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
export function __wbg_instanceof_Map_084be8da74364158(arg0) {
|
|
346
|
+
let result;
|
|
347
|
+
try {
|
|
348
|
+
result = arg0 instanceof Map;
|
|
349
|
+
} catch (_) {
|
|
350
|
+
result = false;
|
|
351
|
+
}
|
|
352
|
+
const ret = result;
|
|
353
|
+
return ret;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
357
|
+
let result;
|
|
358
|
+
try {
|
|
359
|
+
result = arg0 instanceof Uint8Array;
|
|
360
|
+
} catch (_) {
|
|
361
|
+
result = false;
|
|
362
|
+
}
|
|
363
|
+
const ret = result;
|
|
364
|
+
return ret;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
export function __wbg_isArray_51fd9e6422c0a395(arg0) {
|
|
368
|
+
const ret = Array.isArray(arg0);
|
|
369
|
+
return ret;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
export function __wbg_isSafeInteger_ae7d3f054d55fa16(arg0) {
|
|
373
|
+
const ret = Number.isSafeInteger(arg0);
|
|
374
|
+
return ret;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export function __wbg_iterator_27b7c8b35ab3e86b() {
|
|
378
|
+
const ret = Symbol.iterator;
|
|
379
|
+
return ret;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export function __wbg_length_22ac23eaec9d8053(arg0) {
|
|
383
|
+
const ret = arg0.length;
|
|
384
|
+
return ret;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
export function __wbg_length_d45040a40c570362(arg0) {
|
|
388
|
+
const ret = arg0.length;
|
|
389
|
+
return ret;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
export function __wbg_new_1ba21ce319a06297() {
|
|
393
|
+
const ret = new Object();
|
|
394
|
+
return ret;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export function __wbg_new_25f239778d6112b9() {
|
|
398
|
+
const ret = new Array();
|
|
399
|
+
return ret;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export function __wbg_new_6421f6084cc5bc5a(arg0) {
|
|
403
|
+
const ret = new Uint8Array(arg0);
|
|
404
|
+
return ret;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
export function __wbg_new_b546ae120718850e() {
|
|
408
|
+
const ret = new Map();
|
|
409
|
+
return ret;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export function __wbg_next_138a17bbf04e926c(arg0) {
|
|
413
|
+
const ret = arg0.next;
|
|
414
|
+
return ret;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
|
|
418
|
+
const ret = arg0.next();
|
|
419
|
+
return ret;
|
|
420
|
+
}, arguments) };
|
|
421
|
+
|
|
422
|
+
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
423
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
427
|
+
arg0[arg1] = arg2;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
|
|
431
|
+
arg0[arg1 >>> 0] = arg2;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
|
|
435
|
+
const ret = arg0.set(arg1, arg2);
|
|
436
|
+
return ret;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
export function __wbg_value_57b7b035e117f7ee(arg0) {
|
|
440
|
+
const ret = arg0.value;
|
|
441
|
+
return ret;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
445
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
446
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
447
|
+
return ret;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
451
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
452
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
453
|
+
return ret;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
457
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
458
|
+
const ret = arg0;
|
|
459
|
+
return ret;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
463
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
464
|
+
const ret = arg0;
|
|
465
|
+
return ret;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
export function __wbindgen_init_externref_table() {
|
|
469
|
+
const table = wasm.__wbindgen_externrefs;
|
|
470
|
+
const offset = table.grow(4);
|
|
471
|
+
table.set(0, undefined);
|
|
472
|
+
table.set(offset + 0, undefined);
|
|
473
|
+
table.set(offset + 1, null);
|
|
474
|
+
table.set(offset + 2, true);
|
|
475
|
+
table.set(offset + 3, false);
|
|
476
|
+
};
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "objectiveai-ensemble-js",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"ObjectiveAI <admin@objective-ai.io>"
|
|
6
|
+
],
|
|
7
|
+
"description": "JavaScript WebAssembly bindings for objectiveai-ensemble",
|
|
8
|
+
"version": "0.1.1",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/ObjectiveAI/objectiveai-ensemble"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"objectiveai_ensemble_js_bg.wasm",
|
|
16
|
+
"objectiveai_ensemble_js.js",
|
|
17
|
+
"objectiveai_ensemble_js_bg.js",
|
|
18
|
+
"objectiveai_ensemble_js.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"main": "objectiveai_ensemble_js.js",
|
|
21
|
+
"homepage": "https://objective-ai.io",
|
|
22
|
+
"types": "objectiveai_ensemble_js.d.ts",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"./objectiveai_ensemble_js.js",
|
|
25
|
+
"./snippets/*"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"llm",
|
|
29
|
+
"ai",
|
|
30
|
+
"ensemble",
|
|
31
|
+
"wasm",
|
|
32
|
+
"javascript"
|
|
33
|
+
],
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
}
|
|
37
|
+
}
|