@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
package/dist/engine.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentRequest, C as ContextSpec, V as VerifyResult } from './types-
|
|
2
|
-
export { a as A2ARequest, b as A2PRequest, B as BlockReason, c as ChallengeParams, D as Decision, d as DidDocument, E as EnforcementMode, e as EngineInfo, H as HttpSignedRequest, I as InstructPayload, K as KeyType, M as McpIRequest, P as PlainHttpRequest, R as RedirectTarget, S as SuggestedAction,
|
|
1
|
+
import { A as AgentRequest, C as ContextSpec, V as VerifyResult } from './types-KPEcVvac.mjs';
|
|
2
|
+
export { a as A2ARequest, b as A2PRequest, B as BlockReason, c as ChallengeParams, D as Decision, d as DidDocument, E as EnforcementMode, e as EngineConfig, f as EngineInfo, H as HttpSignedRequest, I as InstructPayload, K as KeyType, M as McpIRequest, P as PlainHttpRequest, R as RedirectTarget, S as SuggestedAction, T as Tier3Action, g as VerificationMethod } from './types-KPEcVvac.mjs';
|
|
3
3
|
export { DetectionDetail, McpIPayload } from '@kya-os/checkpoint-shared';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -15,8 +15,29 @@ export { DetectionDetail, McpIPayload } from '@kya-os/checkpoint-shared';
|
|
|
15
15
|
* builds in-memory lookup-table adapters that satisfy the engine's
|
|
16
16
|
* five sync DI traits — no JS callbacks cross the boundary.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* ## Bundler-target import (SDK-Next.js-Integration-Audit-1 / #2618)
|
|
19
|
+
*
|
|
20
|
+
* This module imports the wasm-bindgen `--target bundler` output —
|
|
21
|
+
* the artifact's entry does `import * as wasm from "./*.wasm"`, which
|
|
22
|
+
* every modern bundler (Turbopack, Webpack 5 w/ asyncWebAssembly,
|
|
23
|
+
* Vite, esbuild) handles natively. Switching from `--target nodejs`
|
|
24
|
+
* obviates four prior workarounds:
|
|
25
|
+
*
|
|
26
|
+
* 1. The `(void 0)` esbuild tree-shake fix (read `.verify` at call
|
|
27
|
+
* time, not module-load) — bundler entry uses real ESM `export`,
|
|
28
|
+
* no CJS `exports.verify` to misread.
|
|
29
|
+
* 2. The `wasm/kya-os-engine/package.json` `"type": "commonjs"` pin
|
|
30
|
+
* — bundler entry is ESM by design.
|
|
31
|
+
* 3. The tsup `onSuccess` copy of `.wasm` next to `dist/` — bundler
|
|
32
|
+
* entry's direct `import * as wasm from "./*.wasm"` lets the
|
|
33
|
+
* consumer's bundler resolve the artifact from `node_modules/`.
|
|
34
|
+
* 4. The dynamic-loader `eval('typeof import.meta…')` runtime
|
|
35
|
+
* detection probes — bundler entry runs the same JS in every
|
|
36
|
+
* runtime; no detection needed.
|
|
37
|
+
*
|
|
38
|
+
* Consumers that don't use a bundler (raw Node + ESM, no transpile)
|
|
39
|
+
* should use the explicit `./node` subpath which keeps the
|
|
40
|
+
* `--target nodejs` artifact and its band-aids.
|
|
20
41
|
*/
|
|
21
42
|
|
|
22
43
|
/**
|
package/dist/engine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentRequest, C as ContextSpec, V as VerifyResult } from './types-
|
|
2
|
-
export { a as A2ARequest, b as A2PRequest, B as BlockReason, c as ChallengeParams, D as Decision, d as DidDocument, E as EnforcementMode, e as EngineInfo, H as HttpSignedRequest, I as InstructPayload, K as KeyType, M as McpIRequest, P as PlainHttpRequest, R as RedirectTarget, S as SuggestedAction,
|
|
1
|
+
import { A as AgentRequest, C as ContextSpec, V as VerifyResult } from './types-KPEcVvac.js';
|
|
2
|
+
export { a as A2ARequest, b as A2PRequest, B as BlockReason, c as ChallengeParams, D as Decision, d as DidDocument, E as EnforcementMode, e as EngineConfig, f as EngineInfo, H as HttpSignedRequest, I as InstructPayload, K as KeyType, M as McpIRequest, P as PlainHttpRequest, R as RedirectTarget, S as SuggestedAction, T as Tier3Action, g as VerificationMethod } from './types-KPEcVvac.js';
|
|
3
3
|
export { DetectionDetail, McpIPayload } from '@kya-os/checkpoint-shared';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -15,8 +15,29 @@ export { DetectionDetail, McpIPayload } from '@kya-os/checkpoint-shared';
|
|
|
15
15
|
* builds in-memory lookup-table adapters that satisfy the engine's
|
|
16
16
|
* five sync DI traits — no JS callbacks cross the boundary.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* ## Bundler-target import (SDK-Next.js-Integration-Audit-1 / #2618)
|
|
19
|
+
*
|
|
20
|
+
* This module imports the wasm-bindgen `--target bundler` output —
|
|
21
|
+
* the artifact's entry does `import * as wasm from "./*.wasm"`, which
|
|
22
|
+
* every modern bundler (Turbopack, Webpack 5 w/ asyncWebAssembly,
|
|
23
|
+
* Vite, esbuild) handles natively. Switching from `--target nodejs`
|
|
24
|
+
* obviates four prior workarounds:
|
|
25
|
+
*
|
|
26
|
+
* 1. The `(void 0)` esbuild tree-shake fix (read `.verify` at call
|
|
27
|
+
* time, not module-load) — bundler entry uses real ESM `export`,
|
|
28
|
+
* no CJS `exports.verify` to misread.
|
|
29
|
+
* 2. The `wasm/kya-os-engine/package.json` `"type": "commonjs"` pin
|
|
30
|
+
* — bundler entry is ESM by design.
|
|
31
|
+
* 3. The tsup `onSuccess` copy of `.wasm` next to `dist/` — bundler
|
|
32
|
+
* entry's direct `import * as wasm from "./*.wasm"` lets the
|
|
33
|
+
* consumer's bundler resolve the artifact from `node_modules/`.
|
|
34
|
+
* 4. The dynamic-loader `eval('typeof import.meta…')` runtime
|
|
35
|
+
* detection probes — bundler entry runs the same JS in every
|
|
36
|
+
* runtime; no detection needed.
|
|
37
|
+
*
|
|
38
|
+
* Consumers that don't use a bundler (raw Node + ESM, no transpile)
|
|
39
|
+
* should use the explicit `./node` subpath which keeps the
|
|
40
|
+
* `--target nodejs` artifact and its band-aids.
|
|
20
41
|
*/
|
|
21
42
|
|
|
22
43
|
/**
|
package/dist/engine.js
CHANGED
|
@@ -1,465 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
10
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
|
-
}) : x)(function(x) {
|
|
12
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
13
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
-
});
|
|
15
|
-
var __esm = (fn, res) => function __init() {
|
|
16
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
17
|
-
};
|
|
18
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
19
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(from))
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
|
|
38
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.15.32_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js
|
|
39
|
-
var init_cjs_shims = __esm({
|
|
40
|
-
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.15.32_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@5.9.3_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js"() {
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// wasm/kya-os-engine/kya_os_engine.js
|
|
45
|
-
var require_kya_os_engine = __commonJS({
|
|
46
|
-
"wasm/kya-os-engine/kya_os_engine.js"(exports$1, module) {
|
|
47
|
-
init_cjs_shims();
|
|
48
|
-
var imports = {};
|
|
49
|
-
imports["__wbindgen_placeholder__"] = module.exports;
|
|
50
|
-
var cachedUint8ArrayMemory0 = null;
|
|
51
|
-
function getUint8ArrayMemory0() {
|
|
52
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
53
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
54
|
-
}
|
|
55
|
-
return cachedUint8ArrayMemory0;
|
|
56
|
-
}
|
|
57
|
-
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
58
|
-
cachedTextDecoder.decode();
|
|
59
|
-
function decodeText(ptr, len) {
|
|
60
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
61
|
-
}
|
|
62
|
-
function getStringFromWasm0(ptr, len) {
|
|
63
|
-
ptr = ptr >>> 0;
|
|
64
|
-
return decodeText(ptr, len);
|
|
65
|
-
}
|
|
66
|
-
var heap = new Array(128).fill(void 0);
|
|
67
|
-
heap.push(void 0, null, true, false);
|
|
68
|
-
var heap_next = heap.length;
|
|
69
|
-
function addHeapObject(obj) {
|
|
70
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
71
|
-
const idx = heap_next;
|
|
72
|
-
heap_next = heap[idx];
|
|
73
|
-
heap[idx] = obj;
|
|
74
|
-
return idx;
|
|
75
|
-
}
|
|
76
|
-
function getObject(idx) {
|
|
77
|
-
return heap[idx];
|
|
78
|
-
}
|
|
79
|
-
var WASM_VECTOR_LEN = 0;
|
|
80
|
-
var cachedTextEncoder = new TextEncoder();
|
|
81
|
-
if (!("encodeInto" in cachedTextEncoder)) {
|
|
82
|
-
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
83
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
84
|
-
view.set(buf);
|
|
85
|
-
return {
|
|
86
|
-
read: arg.length,
|
|
87
|
-
written: buf.length
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
92
|
-
if (realloc === void 0) {
|
|
93
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
94
|
-
const ptr2 = malloc(buf.length, 1) >>> 0;
|
|
95
|
-
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
|
96
|
-
WASM_VECTOR_LEN = buf.length;
|
|
97
|
-
return ptr2;
|
|
98
|
-
}
|
|
99
|
-
let len = arg.length;
|
|
100
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
101
|
-
const mem = getUint8ArrayMemory0();
|
|
102
|
-
let offset = 0;
|
|
103
|
-
for (; offset < len; offset++) {
|
|
104
|
-
const code = arg.charCodeAt(offset);
|
|
105
|
-
if (code > 127) break;
|
|
106
|
-
mem[ptr + offset] = code;
|
|
107
|
-
}
|
|
108
|
-
if (offset !== len) {
|
|
109
|
-
if (offset !== 0) {
|
|
110
|
-
arg = arg.slice(offset);
|
|
111
|
-
}
|
|
112
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
113
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
114
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
115
|
-
offset += ret.written;
|
|
116
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
117
|
-
}
|
|
118
|
-
WASM_VECTOR_LEN = offset;
|
|
119
|
-
return ptr;
|
|
120
|
-
}
|
|
121
|
-
var cachedDataViewMemory0 = null;
|
|
122
|
-
function getDataViewMemory0() {
|
|
123
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
124
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
125
|
-
}
|
|
126
|
-
return cachedDataViewMemory0;
|
|
127
|
-
}
|
|
128
|
-
function isLikeNone(x) {
|
|
129
|
-
return x === void 0 || x === null;
|
|
130
|
-
}
|
|
131
|
-
function debugString(val) {
|
|
132
|
-
const type = typeof val;
|
|
133
|
-
if (type == "number" || type == "boolean" || val == null) {
|
|
134
|
-
return `${val}`;
|
|
135
|
-
}
|
|
136
|
-
if (type == "string") {
|
|
137
|
-
return `"${val}"`;
|
|
138
|
-
}
|
|
139
|
-
if (type == "symbol") {
|
|
140
|
-
const description = val.description;
|
|
141
|
-
if (description == null) {
|
|
142
|
-
return "Symbol";
|
|
143
|
-
} else {
|
|
144
|
-
return `Symbol(${description})`;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
if (type == "function") {
|
|
148
|
-
const name = val.name;
|
|
149
|
-
if (typeof name == "string" && name.length > 0) {
|
|
150
|
-
return `Function(${name})`;
|
|
151
|
-
} else {
|
|
152
|
-
return "Function";
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
if (Array.isArray(val)) {
|
|
156
|
-
const length = val.length;
|
|
157
|
-
let debug = "[";
|
|
158
|
-
if (length > 0) {
|
|
159
|
-
debug += debugString(val[0]);
|
|
160
|
-
}
|
|
161
|
-
for (let i = 1; i < length; i++) {
|
|
162
|
-
debug += ", " + debugString(val[i]);
|
|
163
|
-
}
|
|
164
|
-
debug += "]";
|
|
165
|
-
return debug;
|
|
166
|
-
}
|
|
167
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
168
|
-
let className;
|
|
169
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
170
|
-
className = builtInMatches[1];
|
|
171
|
-
} else {
|
|
172
|
-
return toString.call(val);
|
|
173
|
-
}
|
|
174
|
-
if (className == "Object") {
|
|
175
|
-
try {
|
|
176
|
-
return "Object(" + JSON.stringify(val) + ")";
|
|
177
|
-
} catch (_) {
|
|
178
|
-
return "Object";
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
if (val instanceof Error) {
|
|
182
|
-
return `${val.name}: ${val.message}
|
|
183
|
-
${val.stack}`;
|
|
184
|
-
}
|
|
185
|
-
return className;
|
|
186
|
-
}
|
|
187
|
-
function handleError(f, args) {
|
|
188
|
-
try {
|
|
189
|
-
return f.apply(this, args);
|
|
190
|
-
} catch (e) {
|
|
191
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
195
|
-
ptr = ptr >>> 0;
|
|
196
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
197
|
-
}
|
|
198
|
-
function dropObject(idx) {
|
|
199
|
-
if (idx < 132) return;
|
|
200
|
-
heap[idx] = heap_next;
|
|
201
|
-
heap_next = idx;
|
|
202
|
-
}
|
|
203
|
-
function takeObject(idx) {
|
|
204
|
-
const ret = getObject(idx);
|
|
205
|
-
dropObject(idx);
|
|
206
|
-
return ret;
|
|
207
|
-
}
|
|
208
|
-
exports$1.verify = function(input_js, ctx_js) {
|
|
209
|
-
try {
|
|
210
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
211
|
-
wasm.verify(retptr, addHeapObject(input_js), addHeapObject(ctx_js));
|
|
212
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
213
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
214
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
215
|
-
if (r2) {
|
|
216
|
-
throw takeObject(r1);
|
|
217
|
-
}
|
|
218
|
-
return takeObject(r0);
|
|
219
|
-
} finally {
|
|
220
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
exports$1.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
224
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
225
|
-
return addHeapObject(ret);
|
|
226
|
-
};
|
|
227
|
-
exports$1.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
228
|
-
const ret = Number(getObject(arg0));
|
|
229
|
-
return ret;
|
|
230
|
-
};
|
|
231
|
-
exports$1.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
232
|
-
const ret = String(getObject(arg1));
|
|
233
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
234
|
-
const len1 = WASM_VECTOR_LEN;
|
|
235
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
236
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
237
|
-
};
|
|
238
|
-
exports$1.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
239
|
-
const v = getObject(arg1);
|
|
240
|
-
const ret = typeof v === "bigint" ? v : void 0;
|
|
241
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
242
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
243
|
-
};
|
|
244
|
-
exports$1.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
245
|
-
const v = getObject(arg0);
|
|
246
|
-
const ret = typeof v === "boolean" ? v : void 0;
|
|
247
|
-
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
248
|
-
};
|
|
249
|
-
exports$1.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
250
|
-
const ret = debugString(getObject(arg1));
|
|
251
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
252
|
-
const len1 = WASM_VECTOR_LEN;
|
|
253
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
254
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
255
|
-
};
|
|
256
|
-
exports$1.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
257
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
258
|
-
return ret;
|
|
259
|
-
};
|
|
260
|
-
exports$1.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
261
|
-
const ret = typeof getObject(arg0) === "bigint";
|
|
262
|
-
return ret;
|
|
263
|
-
};
|
|
264
|
-
exports$1.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
265
|
-
const ret = typeof getObject(arg0) === "function";
|
|
266
|
-
return ret;
|
|
267
|
-
};
|
|
268
|
-
exports$1.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
269
|
-
const val = getObject(arg0);
|
|
270
|
-
const ret = typeof val === "object" && val !== null;
|
|
271
|
-
return ret;
|
|
272
|
-
};
|
|
273
|
-
exports$1.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
274
|
-
const ret = typeof getObject(arg0) === "string";
|
|
275
|
-
return ret;
|
|
276
|
-
};
|
|
277
|
-
exports$1.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
278
|
-
const ret = getObject(arg0) === void 0;
|
|
279
|
-
return ret;
|
|
280
|
-
};
|
|
281
|
-
exports$1.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
282
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
283
|
-
return ret;
|
|
284
|
-
};
|
|
285
|
-
exports$1.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
286
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
287
|
-
return ret;
|
|
288
|
-
};
|
|
289
|
-
exports$1.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
290
|
-
const obj = getObject(arg1);
|
|
291
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
292
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
293
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
294
|
-
};
|
|
295
|
-
exports$1.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
296
|
-
const obj = getObject(arg1);
|
|
297
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
298
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
299
|
-
var len1 = WASM_VECTOR_LEN;
|
|
300
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
301
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
302
|
-
};
|
|
303
|
-
exports$1.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
304
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
305
|
-
};
|
|
306
|
-
exports$1.__wbg_call_e762c39fa8ea36bf = function() {
|
|
307
|
-
return handleError(function(arg0, arg1) {
|
|
308
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
309
|
-
return addHeapObject(ret);
|
|
310
|
-
}, arguments);
|
|
311
|
-
};
|
|
312
|
-
exports$1.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
313
|
-
const ret = getObject(arg0).done;
|
|
314
|
-
return ret;
|
|
315
|
-
};
|
|
316
|
-
exports$1.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
317
|
-
const ret = Object.entries(getObject(arg0));
|
|
318
|
-
return addHeapObject(ret);
|
|
319
|
-
};
|
|
320
|
-
exports$1.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
321
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
322
|
-
return addHeapObject(ret);
|
|
323
|
-
};
|
|
324
|
-
exports$1.__wbg_get_efcb449f58ec27c2 = function() {
|
|
325
|
-
return handleError(function(arg0, arg1) {
|
|
326
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
327
|
-
return addHeapObject(ret);
|
|
328
|
-
}, arguments);
|
|
329
|
-
};
|
|
330
|
-
exports$1.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
331
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
332
|
-
return addHeapObject(ret);
|
|
333
|
-
};
|
|
334
|
-
exports$1.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
335
|
-
let result;
|
|
336
|
-
try {
|
|
337
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
338
|
-
} catch (_) {
|
|
339
|
-
result = false;
|
|
340
|
-
}
|
|
341
|
-
const ret = result;
|
|
342
|
-
return ret;
|
|
343
|
-
};
|
|
344
|
-
exports$1.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
345
|
-
let result;
|
|
346
|
-
try {
|
|
347
|
-
result = getObject(arg0) instanceof Map;
|
|
348
|
-
} catch (_) {
|
|
349
|
-
result = false;
|
|
350
|
-
}
|
|
351
|
-
const ret = result;
|
|
352
|
-
return ret;
|
|
353
|
-
};
|
|
354
|
-
exports$1.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
355
|
-
let result;
|
|
356
|
-
try {
|
|
357
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
358
|
-
} catch (_) {
|
|
359
|
-
result = false;
|
|
360
|
-
}
|
|
361
|
-
const ret = result;
|
|
362
|
-
return ret;
|
|
363
|
-
};
|
|
364
|
-
exports$1.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
365
|
-
const ret = Array.isArray(getObject(arg0));
|
|
366
|
-
return ret;
|
|
367
|
-
};
|
|
368
|
-
exports$1.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
369
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
370
|
-
return ret;
|
|
371
|
-
};
|
|
372
|
-
exports$1.__wbg_iterator_e5822695327a3c39 = function() {
|
|
373
|
-
const ret = Symbol.iterator;
|
|
374
|
-
return addHeapObject(ret);
|
|
375
|
-
};
|
|
376
|
-
exports$1.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
377
|
-
const ret = getObject(arg0).length;
|
|
378
|
-
return ret;
|
|
379
|
-
};
|
|
380
|
-
exports$1.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
381
|
-
const ret = getObject(arg0).length;
|
|
382
|
-
return ret;
|
|
383
|
-
};
|
|
384
|
-
exports$1.__wbg_new_1acc0b6eea89d040 = function() {
|
|
385
|
-
const ret = new Object();
|
|
386
|
-
return addHeapObject(ret);
|
|
387
|
-
};
|
|
388
|
-
exports$1.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
389
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
390
|
-
return addHeapObject(ret);
|
|
391
|
-
};
|
|
392
|
-
exports$1.__wbg_new_68651c719dcda04e = function() {
|
|
393
|
-
const ret = /* @__PURE__ */ new Map();
|
|
394
|
-
return addHeapObject(ret);
|
|
395
|
-
};
|
|
396
|
-
exports$1.__wbg_new_e17d9f43105b08be = function() {
|
|
397
|
-
const ret = new Array();
|
|
398
|
-
return addHeapObject(ret);
|
|
399
|
-
};
|
|
400
|
-
exports$1.__wbg_next_020810e0ae8ebcb0 = function() {
|
|
401
|
-
return handleError(function(arg0) {
|
|
402
|
-
const ret = getObject(arg0).next();
|
|
403
|
-
return addHeapObject(ret);
|
|
404
|
-
}, arguments);
|
|
405
|
-
};
|
|
406
|
-
exports$1.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
407
|
-
const ret = getObject(arg0).next;
|
|
408
|
-
return addHeapObject(ret);
|
|
409
|
-
};
|
|
410
|
-
exports$1.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
411
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
412
|
-
};
|
|
413
|
-
exports$1.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
414
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
415
|
-
};
|
|
416
|
-
exports$1.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
417
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
418
|
-
return addHeapObject(ret);
|
|
419
|
-
};
|
|
420
|
-
exports$1.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
421
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
422
|
-
};
|
|
423
|
-
exports$1.__wbg_value_692627309814bb8c = function(arg0) {
|
|
424
|
-
const ret = getObject(arg0).value;
|
|
425
|
-
return addHeapObject(ret);
|
|
426
|
-
};
|
|
427
|
-
exports$1.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
428
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
429
|
-
return addHeapObject(ret);
|
|
430
|
-
};
|
|
431
|
-
exports$1.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
432
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
433
|
-
return addHeapObject(ret);
|
|
434
|
-
};
|
|
435
|
-
exports$1.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
436
|
-
const ret = arg0;
|
|
437
|
-
return addHeapObject(ret);
|
|
438
|
-
};
|
|
439
|
-
exports$1.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
440
|
-
const ret = arg0;
|
|
441
|
-
return addHeapObject(ret);
|
|
442
|
-
};
|
|
443
|
-
exports$1.__wbindgen_object_clone_ref = function(arg0) {
|
|
444
|
-
const ret = getObject(arg0);
|
|
445
|
-
return addHeapObject(ret);
|
|
446
|
-
};
|
|
447
|
-
exports$1.__wbindgen_object_drop_ref = function(arg0) {
|
|
448
|
-
takeObject(arg0);
|
|
449
|
-
};
|
|
450
|
-
var wasmPath = `${__dirname}/kya_os_engine_bg.wasm`;
|
|
451
|
-
var wasmBytes = __require("fs").readFileSync(wasmPath);
|
|
452
|
-
var wasmModule2 = new WebAssembly.Module(wasmBytes);
|
|
453
|
-
var wasm = exports$1.__wasm = new WebAssembly.Instance(wasmModule2, imports).exports;
|
|
454
|
-
}
|
|
455
|
-
});
|
|
3
|
+
var kya_os_engine_js = require('@kya-os/checkpoint-wasm-runtime/wasm/kya-os-engine-bundler/kya_os_engine.js');
|
|
456
4
|
|
|
457
5
|
// src/engine/index.ts
|
|
458
|
-
init_cjs_shims();
|
|
459
|
-
var wasmModule = __toESM(require_kya_os_engine());
|
|
460
6
|
function engineVerify(input, ctx) {
|
|
461
|
-
|
|
462
|
-
return verify2(input, ctx);
|
|
7
|
+
return kya_os_engine_js.verify(input, ctx);
|
|
463
8
|
}
|
|
464
9
|
|
|
465
10
|
exports.engineVerify = engineVerify;
|