@kya-os/checkpoint-wasm-runtime 1.3.0 → 1.4.0
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/CHANGELOG.md +110 -1
- package/dist/adapters.d.mts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/engine-edge.d.mts +2 -2
- package/dist/engine-edge.d.ts +2 -2
- package/dist/engine-edge.js +3 -509
- package/dist/engine-edge.mjs +3 -508
- package/dist/engine-node.d.mts +46 -0
- package/dist/engine-node.d.ts +46 -0
- package/dist/engine-node.js +31 -0
- package/dist/engine-node.mjs +10 -0
- package/dist/engine.d.mts +25 -4
- package/dist/engine.d.ts +25 -4
- package/dist/engine.js +2 -457
- package/dist/engine.mjs +2 -464
- package/dist/index.d.mts +531 -3
- package/dist/index.d.ts +531 -3
- package/dist/index.js +2 -28
- package/dist/index.mjs +2 -29
- package/dist/node.d.mts +524 -3
- package/dist/node.d.ts +524 -3
- package/dist/node.js +2 -26
- package/dist/node.mjs +2 -26
- package/dist/orchestrator-edge.d.mts +24 -10
- package/dist/orchestrator-edge.d.ts +24 -10
- package/dist/orchestrator-edge.js +5 -510
- package/dist/orchestrator-edge.mjs +5 -509
- package/dist/orchestrator-node.d.mts +60 -52
- package/dist/orchestrator-node.d.ts +60 -52
- package/dist/orchestrator-node.js +50 -487
- package/dist/orchestrator-node.mjs +34 -497
- package/dist/orchestrator.d.mts +356 -4
- package/dist/orchestrator.d.ts +356 -4
- package/dist/orchestrator.js +37 -1001
- package/dist/orchestrator.mjs +37 -1005
- package/dist/{types-ByrdPLL2.d.ts → types-KPEcVvac.d.mts} +31 -1
- package/dist/{types-ByrdPLL2.d.mts → types-KPEcVvac.d.ts} +31 -1
- package/package.json +13 -2
- package/wasm/kya-os-engine/kya_os_engine_bg.wasm +0 -0
- package/wasm/kya-os-engine/package.json +24 -4
- package/wasm/kya-os-engine-bundler/kya_os_engine.d.ts +24 -0
- package/wasm/kya-os-engine-bundler/kya_os_engine.js +4 -0
- package/wasm/kya-os-engine-bundler/kya_os_engine_bg.js +522 -0
- package/wasm/kya-os-engine-bundler/kya_os_engine_bg.wasm +0 -0
- package/wasm/kya-os-engine-bundler/kya_os_engine_bg.wasm.d.ts +8 -0
- package/wasm/kya-os-engine-web/kya_os_engine_bg.wasm +0 -0
- package/wasm/kya-os-engine-web/package.json +25 -3
- package/dist/kya_os_engine_bg.wasm +0 -0
- package/dist/rules-detector-ZIKHN-_y.d.mts +0 -532
- package/dist/rules-detector-ZIKHN-_y.d.ts +0 -532
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
let cachedUint8ArrayMemory0 = null;
|
|
8
|
+
|
|
9
|
+
function getUint8ArrayMemory0() {
|
|
10
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
11
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
+
}
|
|
13
|
+
return cachedUint8ArrayMemory0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
+
|
|
18
|
+
cachedTextDecoder.decode();
|
|
19
|
+
|
|
20
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
21
|
+
let numBytesDecoded = 0;
|
|
22
|
+
function decodeText(ptr, len) {
|
|
23
|
+
numBytesDecoded += len;
|
|
24
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
25
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
26
|
+
cachedTextDecoder.decode();
|
|
27
|
+
numBytesDecoded = len;
|
|
28
|
+
}
|
|
29
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getStringFromWasm0(ptr, len) {
|
|
33
|
+
ptr = ptr >>> 0;
|
|
34
|
+
return decodeText(ptr, len);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let heap = new Array(128).fill(undefined);
|
|
38
|
+
|
|
39
|
+
heap.push(undefined, null, true, false);
|
|
40
|
+
|
|
41
|
+
let heap_next = heap.length;
|
|
42
|
+
|
|
43
|
+
function addHeapObject(obj) {
|
|
44
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
+
const idx = heap_next;
|
|
46
|
+
heap_next = heap[idx];
|
|
47
|
+
|
|
48
|
+
heap[idx] = obj;
|
|
49
|
+
return idx;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function getObject(idx) { return heap[idx]; }
|
|
53
|
+
|
|
54
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
56
|
+
const cachedTextEncoder = new TextEncoder();
|
|
57
|
+
|
|
58
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
59
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
60
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
61
|
+
view.set(buf);
|
|
62
|
+
return {
|
|
63
|
+
read: arg.length,
|
|
64
|
+
written: buf.length
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
70
|
+
|
|
71
|
+
if (realloc === undefined) {
|
|
72
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
73
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
74
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
75
|
+
WASM_VECTOR_LEN = buf.length;
|
|
76
|
+
return ptr;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
let len = arg.length;
|
|
80
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
81
|
+
|
|
82
|
+
const mem = getUint8ArrayMemory0();
|
|
83
|
+
|
|
84
|
+
let offset = 0;
|
|
85
|
+
|
|
86
|
+
for (; offset < len; offset++) {
|
|
87
|
+
const code = arg.charCodeAt(offset);
|
|
88
|
+
if (code > 0x7F) break;
|
|
89
|
+
mem[ptr + offset] = code;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (offset !== len) {
|
|
93
|
+
if (offset !== 0) {
|
|
94
|
+
arg = arg.slice(offset);
|
|
95
|
+
}
|
|
96
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
97
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
98
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
99
|
+
|
|
100
|
+
offset += ret.written;
|
|
101
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
WASM_VECTOR_LEN = offset;
|
|
105
|
+
return ptr;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let cachedDataViewMemory0 = null;
|
|
109
|
+
|
|
110
|
+
function getDataViewMemory0() {
|
|
111
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
112
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
113
|
+
}
|
|
114
|
+
return cachedDataViewMemory0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function isLikeNone(x) {
|
|
118
|
+
return x === undefined || x === null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function debugString(val) {
|
|
122
|
+
// primitive types
|
|
123
|
+
const type = typeof val;
|
|
124
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
125
|
+
return `${val}`;
|
|
126
|
+
}
|
|
127
|
+
if (type == 'string') {
|
|
128
|
+
return `"${val}"`;
|
|
129
|
+
}
|
|
130
|
+
if (type == 'symbol') {
|
|
131
|
+
const description = val.description;
|
|
132
|
+
if (description == null) {
|
|
133
|
+
return 'Symbol';
|
|
134
|
+
} else {
|
|
135
|
+
return `Symbol(${description})`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (type == 'function') {
|
|
139
|
+
const name = val.name;
|
|
140
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
141
|
+
return `Function(${name})`;
|
|
142
|
+
} else {
|
|
143
|
+
return 'Function';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// objects
|
|
147
|
+
if (Array.isArray(val)) {
|
|
148
|
+
const length = val.length;
|
|
149
|
+
let debug = '[';
|
|
150
|
+
if (length > 0) {
|
|
151
|
+
debug += debugString(val[0]);
|
|
152
|
+
}
|
|
153
|
+
for(let i = 1; i < length; i++) {
|
|
154
|
+
debug += ', ' + debugString(val[i]);
|
|
155
|
+
}
|
|
156
|
+
debug += ']';
|
|
157
|
+
return debug;
|
|
158
|
+
}
|
|
159
|
+
// Test for built-in
|
|
160
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
161
|
+
let className;
|
|
162
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
163
|
+
className = builtInMatches[1];
|
|
164
|
+
} else {
|
|
165
|
+
// Failed to match the standard '[object ClassName]'
|
|
166
|
+
return toString.call(val);
|
|
167
|
+
}
|
|
168
|
+
if (className == 'Object') {
|
|
169
|
+
// we're a user defined class or Object
|
|
170
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
171
|
+
// easier than looping through ownProperties of `val`.
|
|
172
|
+
try {
|
|
173
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
174
|
+
} catch (_) {
|
|
175
|
+
return 'Object';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// errors
|
|
179
|
+
if (val instanceof Error) {
|
|
180
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
181
|
+
}
|
|
182
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
183
|
+
return className;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function handleError(f, args) {
|
|
187
|
+
try {
|
|
188
|
+
return f.apply(this, args);
|
|
189
|
+
} catch (e) {
|
|
190
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
195
|
+
ptr = ptr >>> 0;
|
|
196
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function dropObject(idx) {
|
|
200
|
+
if (idx < 132) return;
|
|
201
|
+
heap[idx] = heap_next;
|
|
202
|
+
heap_next = idx;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function takeObject(idx) {
|
|
206
|
+
const ret = getObject(idx);
|
|
207
|
+
dropObject(idx);
|
|
208
|
+
return ret;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Cross-boundary `verify` wrapper. The JS host calls `engine.verify(input,
|
|
212
|
+
* ctxSpec)`; on success it gets a [`VerifyResult`] JSON object; on
|
|
213
|
+
* infrastructure failure (or malformed input) it gets a thrown JS error
|
|
214
|
+
* whose message names the failure mode.
|
|
215
|
+
*
|
|
216
|
+
* **Error semantics**:
|
|
217
|
+
*
|
|
218
|
+
* - Verification *verdicts* (Block/Challenge/etc.) surface inside the
|
|
219
|
+
* returned `VerifyResult` — they are not thrown.
|
|
220
|
+
* - Engine [`VerifyError`][crate::error::VerifyError] (resolver / cache /
|
|
221
|
+
* reputation / policy infra failures) surface as thrown JS errors.
|
|
222
|
+
* - Serde deserialisation failures (malformed JS input) surface as thrown
|
|
223
|
+
* JS errors too, mirroring the typed-vs-thrown split.
|
|
224
|
+
*
|
|
225
|
+
* # JS signature
|
|
226
|
+
*
|
|
227
|
+
* ```ts
|
|
228
|
+
* function verify(input: AgentRequest, ctx: ContextSpec): VerifyResult;
|
|
229
|
+
* ```
|
|
230
|
+
* @param {any} input_js
|
|
231
|
+
* @param {any} ctx_js
|
|
232
|
+
* @returns {any}
|
|
233
|
+
*/
|
|
234
|
+
export function verify(input_js, ctx_js) {
|
|
235
|
+
try {
|
|
236
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
237
|
+
wasm.verify(retptr, addHeapObject(input_js), addHeapObject(ctx_js));
|
|
238
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
239
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
240
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
241
|
+
if (r2) {
|
|
242
|
+
throw takeObject(r1);
|
|
243
|
+
}
|
|
244
|
+
return takeObject(r0);
|
|
245
|
+
} finally {
|
|
246
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
251
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
252
|
+
return addHeapObject(ret);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export function __wbg_Number_bb48ca12f395cd08(arg0) {
|
|
256
|
+
const ret = Number(getObject(arg0));
|
|
257
|
+
return ret;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
261
|
+
const ret = String(getObject(arg1));
|
|
262
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
263
|
+
const len1 = WASM_VECTOR_LEN;
|
|
264
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
265
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
|
|
269
|
+
const v = getObject(arg1);
|
|
270
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
271
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
272
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
|
|
276
|
+
const v = getObject(arg0);
|
|
277
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
278
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
282
|
+
const ret = debugString(getObject(arg1));
|
|
283
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
284
|
+
const len1 = WASM_VECTOR_LEN;
|
|
285
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
286
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
|
|
290
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
291
|
+
return ret;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
|
|
295
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
296
|
+
return ret;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
300
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
301
|
+
return ret;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
305
|
+
const val = getObject(arg0);
|
|
306
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
307
|
+
return ret;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
|
|
311
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
312
|
+
return ret;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
|
|
316
|
+
const ret = getObject(arg0) === undefined;
|
|
317
|
+
return ret;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
|
|
321
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
322
|
+
return ret;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
|
|
326
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
327
|
+
return ret;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
|
|
331
|
+
const obj = getObject(arg1);
|
|
332
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
333
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
334
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
338
|
+
const obj = getObject(arg1);
|
|
339
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
340
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
341
|
+
var len1 = WASM_VECTOR_LEN;
|
|
342
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
343
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
347
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
|
|
351
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
352
|
+
return addHeapObject(ret);
|
|
353
|
+
}, arguments) };
|
|
354
|
+
|
|
355
|
+
export function __wbg_done_2042aa2670fb1db1(arg0) {
|
|
356
|
+
const ret = getObject(arg0).done;
|
|
357
|
+
return ret;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export function __wbg_entries_e171b586f8f6bdbf(arg0) {
|
|
361
|
+
const ret = Object.entries(getObject(arg0));
|
|
362
|
+
return addHeapObject(ret);
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
366
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
367
|
+
return addHeapObject(ret);
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
371
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
372
|
+
return addHeapObject(ret);
|
|
373
|
+
}, arguments) };
|
|
374
|
+
|
|
375
|
+
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
376
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
377
|
+
return addHeapObject(ret);
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
381
|
+
let result;
|
|
382
|
+
try {
|
|
383
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
384
|
+
} catch (_) {
|
|
385
|
+
result = false;
|
|
386
|
+
}
|
|
387
|
+
const ret = result;
|
|
388
|
+
return ret;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
|
|
392
|
+
let result;
|
|
393
|
+
try {
|
|
394
|
+
result = getObject(arg0) instanceof Map;
|
|
395
|
+
} catch (_) {
|
|
396
|
+
result = false;
|
|
397
|
+
}
|
|
398
|
+
const ret = result;
|
|
399
|
+
return ret;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
403
|
+
let result;
|
|
404
|
+
try {
|
|
405
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
406
|
+
} catch (_) {
|
|
407
|
+
result = false;
|
|
408
|
+
}
|
|
409
|
+
const ret = result;
|
|
410
|
+
return ret;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
export function __wbg_isArray_96e0af9891d0945d(arg0) {
|
|
414
|
+
const ret = Array.isArray(getObject(arg0));
|
|
415
|
+
return ret;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
|
|
419
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
420
|
+
return ret;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
export function __wbg_iterator_e5822695327a3c39() {
|
|
424
|
+
const ret = Symbol.iterator;
|
|
425
|
+
return addHeapObject(ret);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
429
|
+
const ret = getObject(arg0).length;
|
|
430
|
+
return ret;
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
434
|
+
const ret = getObject(arg0).length;
|
|
435
|
+
return ret;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export function __wbg_new_1acc0b6eea89d040() {
|
|
439
|
+
const ret = new Object();
|
|
440
|
+
return addHeapObject(ret);
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
444
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
445
|
+
return addHeapObject(ret);
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
export function __wbg_new_68651c719dcda04e() {
|
|
449
|
+
const ret = new Map();
|
|
450
|
+
return addHeapObject(ret);
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export function __wbg_new_e17d9f43105b08be() {
|
|
454
|
+
const ret = new Array();
|
|
455
|
+
return addHeapObject(ret);
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
|
|
459
|
+
const ret = getObject(arg0).next();
|
|
460
|
+
return addHeapObject(ret);
|
|
461
|
+
}, arguments) };
|
|
462
|
+
|
|
463
|
+
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
464
|
+
const ret = getObject(arg0).next;
|
|
465
|
+
return addHeapObject(ret);
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
469
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
473
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
477
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
478
|
+
return addHeapObject(ret);
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
482
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
export function __wbg_value_692627309814bb8c(arg0) {
|
|
486
|
+
const ret = getObject(arg0).value;
|
|
487
|
+
return addHeapObject(ret);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
491
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
492
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
493
|
+
return addHeapObject(ret);
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
497
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
498
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
499
|
+
return addHeapObject(ret);
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
503
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
504
|
+
const ret = arg0;
|
|
505
|
+
return addHeapObject(ret);
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
509
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
510
|
+
const ret = arg0;
|
|
511
|
+
return addHeapObject(ret);
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
515
|
+
const ret = getObject(arg0);
|
|
516
|
+
return addHeapObject(ret);
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
520
|
+
takeObject(arg0);
|
|
521
|
+
};
|
|
522
|
+
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const verify: (a: number, b: number, c: number) => void;
|
|
5
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
6
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
7
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
8
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
Binary file
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "kya-os-engine
|
|
2
|
+
"name": "kya-os-engine",
|
|
3
3
|
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"KnowThat.ai Team"
|
|
6
|
+
],
|
|
7
|
+
"description": "Verification engine for the KYA-OS ecosystem. The single source of truth for detection, identity, scope, revocation, policy, and reputation across every host runtime. See ADR-001.",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"license": "MIT OR Apache-2.0",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/knowthat-ai/agentshield"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"kya_os_engine_bg.wasm",
|
|
16
|
+
"kya_os_engine.js"
|
|
17
|
+
],
|
|
4
18
|
"main": "kya_os_engine.js",
|
|
5
|
-
"
|
|
6
|
-
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"./snippets/*"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"kya-os",
|
|
24
|
+
"verification",
|
|
25
|
+
"mcp-i",
|
|
26
|
+
"agent",
|
|
27
|
+
"did"
|
|
28
|
+
]
|
|
7
29
|
}
|
|
Binary file
|