@kya-os/checkpoint-express 1.0.0 → 1.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/CHANGELOG.md +55 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +8 -445
- package/dist/index.mjs +8 -445
- package/dist/policy.js +0 -2
- package/dist/policy.mjs +0 -2
- package/package.json +4 -4
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/policy.js.map +0 -1
- package/dist/policy.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -653,18 +653,18 @@ function createAutoPipelineProxy(_redis, namespace = "root") {
|
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
var
|
|
656
|
+
var __defProp2, __export2, error_exports, UpstashError, UrlError, UpstashJSONParseError, MAX_BUFFER_SIZE, HttpClient, defaultSerializer, Command, ExecCommand, FIELD_TYPES, SearchIndex, HRandFieldCommand, AppendCommand, BitCountCommand, BitFieldCommand, BitOpCommand, BitPosCommand, ClientSetInfoCommand, CopyCommand, DBSizeCommand, DecrCommand, DecrByCommand, DelCommand, EchoCommand, EvalROCommand, EvalCommand, EvalshaROCommand, EvalshaCommand, ExistsCommand, ExpireCommand, ExpireAtCommand, FCallCommand, FCallRoCommand, FlushAllCommand, FlushDBCommand, FunctionDeleteCommand, FunctionFlushCommand, FunctionListCommand, FunctionLoadCommand, FunctionStatsCommand, GeoAddCommand, GeoDistCommand, GeoHashCommand, GeoPosCommand, GeoSearchCommand, GeoSearchStoreCommand, GetCommand, GetBitCommand, GetDelCommand, GetExCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HExpireCommand, HExpireAtCommand, HExpireTimeCommand, HPersistCommand, HPExpireCommand, HPExpireAtCommand, HPExpireTimeCommand, HPTtlCommand, HGetCommand, HGetAllCommand, HMGetCommand, HGetDelCommand, HGetExCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMSetCommand, HScanCommand, HSetCommand, HSetExCommand, HSetNXCommand, HStrLenCommand, HTtlCommand, HValsCommand, IncrCommand, IncrByCommand, IncrByFloatCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMergeCommand, JsonMGetCommand, JsonMSetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LMoveCommand, LmPopCommand, LPopCommand, LPosCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PersistCommand, PExpireCommand, PExpireAtCommand, PfAddCommand, PfCountCommand, PfMergeCommand, PingCommand, PSetEXCommand, PTtlCommand, PublishCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, RPopCommand, RPushCommand, RPushXCommand, SAddCommand, ScanCommand, SCardCommand, ScriptExistsCommand, ScriptFlushCommand, ScriptLoadCommand, SDiffCommand, SDiffStoreCommand, SetCommand, SetBitCommand, SetExCommand, SetNxCommand, SetRangeCommand, SInterCommand, SInterCardCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMIsMemberCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, StrLenCommand, SUnionCommand, SUnionStoreCommand, TimeCommand, TouchCommand, TtlCommand, TypeCommand, UnlinkCommand, XAckCommand, XAckDelCommand, XAddCommand, XAutoClaim, XClaimCommand, XDelCommand, XDelExCommand, XGroupCommand, XInfoCommand, XLenCommand, XPendingCommand, XRangeCommand, UNBALANCED_XREAD_ERR, XReadCommand, UNBALANCED_XREADGROUP_ERR, XReadGroupCommand, XRevRangeCommand, XTrimCommand, ZAddCommand, ZCardCommand, ZCountCommand, ZIncrByCommand, ZInterStoreCommand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRangeCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand, ZUnionCommand, ZUnionStoreCommand, ZDiffStoreCommand, ZMScoreCommand, Pipeline, EXCLUDE_COMMANDS, AutoPipelineExecutor, PSubscribeCommand, Subscriber, SubscribeCommand, parseWithTryCatch, Script, ScriptRO, Redis, VERSION;
|
|
657
657
|
var init_chunk_IH7W44G6 = __esm({
|
|
658
658
|
"../../node_modules/.pnpm/@upstash+redis@1.37.0/node_modules/@upstash/redis/chunk-IH7W44G6.mjs"() {
|
|
659
659
|
init_crypto_node();
|
|
660
660
|
init_crypto_node();
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
__defProp2 = Object.defineProperty;
|
|
662
|
+
__export2 = (target, all) => {
|
|
663
663
|
for (var name in all)
|
|
664
|
-
|
|
664
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
665
665
|
};
|
|
666
666
|
error_exports = {};
|
|
667
|
-
|
|
667
|
+
__export2(error_exports, {
|
|
668
668
|
UpstashError: () => UpstashError,
|
|
669
669
|
UpstashJSONParseError: () => UpstashJSONParseError,
|
|
670
670
|
UrlError: () => UrlError
|
|
@@ -5192,443 +5192,7 @@ var init_nodejs = __esm({
|
|
|
5192
5192
|
}
|
|
5193
5193
|
});
|
|
5194
5194
|
|
|
5195
|
-
// ../checkpoint-wasm-runtime/dist/orchestrator.mjs
|
|
5196
|
-
var __defProp2 = Object.defineProperty;
|
|
5197
|
-
var __export2 = (target, all) => {
|
|
5198
|
-
for (var name in all)
|
|
5199
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5200
|
-
};
|
|
5201
|
-
var kya_os_engine_exports = {};
|
|
5202
|
-
__export2(kya_os_engine_exports, {
|
|
5203
|
-
default: () => kya_os_engine_default,
|
|
5204
|
-
initSync: () => initSync,
|
|
5205
|
-
verify: () => verify
|
|
5206
|
-
});
|
|
5207
|
-
function getUint8ArrayMemory0() {
|
|
5208
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
5209
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
5210
|
-
}
|
|
5211
|
-
return cachedUint8ArrayMemory0;
|
|
5212
|
-
}
|
|
5213
|
-
function decodeText(ptr, len) {
|
|
5214
|
-
numBytesDecoded += len;
|
|
5215
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
5216
|
-
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
5217
|
-
cachedTextDecoder.decode();
|
|
5218
|
-
numBytesDecoded = len;
|
|
5219
|
-
}
|
|
5220
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
5221
|
-
}
|
|
5222
|
-
function getStringFromWasm0(ptr, len) {
|
|
5223
|
-
ptr = ptr >>> 0;
|
|
5224
|
-
return decodeText(ptr, len);
|
|
5225
|
-
}
|
|
5226
|
-
function addHeapObject(obj) {
|
|
5227
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
5228
|
-
const idx = heap_next;
|
|
5229
|
-
heap_next = heap[idx];
|
|
5230
|
-
heap[idx] = obj;
|
|
5231
|
-
return idx;
|
|
5232
|
-
}
|
|
5233
|
-
function getObject(idx) {
|
|
5234
|
-
return heap[idx];
|
|
5235
|
-
}
|
|
5236
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
5237
|
-
if (realloc === void 0) {
|
|
5238
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
5239
|
-
const ptr2 = malloc(buf.length, 1) >>> 0;
|
|
5240
|
-
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
|
5241
|
-
WASM_VECTOR_LEN = buf.length;
|
|
5242
|
-
return ptr2;
|
|
5243
|
-
}
|
|
5244
|
-
let len = arg.length;
|
|
5245
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
5246
|
-
const mem = getUint8ArrayMemory0();
|
|
5247
|
-
let offset = 0;
|
|
5248
|
-
for (; offset < len; offset++) {
|
|
5249
|
-
const code = arg.charCodeAt(offset);
|
|
5250
|
-
if (code > 127) break;
|
|
5251
|
-
mem[ptr + offset] = code;
|
|
5252
|
-
}
|
|
5253
|
-
if (offset !== len) {
|
|
5254
|
-
if (offset !== 0) {
|
|
5255
|
-
arg = arg.slice(offset);
|
|
5256
|
-
}
|
|
5257
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
5258
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
5259
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
5260
|
-
offset += ret.written;
|
|
5261
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
5262
|
-
}
|
|
5263
|
-
WASM_VECTOR_LEN = offset;
|
|
5264
|
-
return ptr;
|
|
5265
|
-
}
|
|
5266
|
-
function getDataViewMemory0() {
|
|
5267
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
5268
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
5269
|
-
}
|
|
5270
|
-
return cachedDataViewMemory0;
|
|
5271
|
-
}
|
|
5272
|
-
function isLikeNone(x) {
|
|
5273
|
-
return x === void 0 || x === null;
|
|
5274
|
-
}
|
|
5275
|
-
function debugString(val) {
|
|
5276
|
-
const type = typeof val;
|
|
5277
|
-
if (type == "number" || type == "boolean" || val == null) {
|
|
5278
|
-
return `${val}`;
|
|
5279
|
-
}
|
|
5280
|
-
if (type == "string") {
|
|
5281
|
-
return `"${val}"`;
|
|
5282
|
-
}
|
|
5283
|
-
if (type == "symbol") {
|
|
5284
|
-
const description = val.description;
|
|
5285
|
-
if (description == null) {
|
|
5286
|
-
return "Symbol";
|
|
5287
|
-
} else {
|
|
5288
|
-
return `Symbol(${description})`;
|
|
5289
|
-
}
|
|
5290
|
-
}
|
|
5291
|
-
if (type == "function") {
|
|
5292
|
-
const name = val.name;
|
|
5293
|
-
if (typeof name == "string" && name.length > 0) {
|
|
5294
|
-
return `Function(${name})`;
|
|
5295
|
-
} else {
|
|
5296
|
-
return "Function";
|
|
5297
|
-
}
|
|
5298
|
-
}
|
|
5299
|
-
if (Array.isArray(val)) {
|
|
5300
|
-
const length = val.length;
|
|
5301
|
-
let debug = "[";
|
|
5302
|
-
if (length > 0) {
|
|
5303
|
-
debug += debugString(val[0]);
|
|
5304
|
-
}
|
|
5305
|
-
for (let i = 1; i < length; i++) {
|
|
5306
|
-
debug += ", " + debugString(val[i]);
|
|
5307
|
-
}
|
|
5308
|
-
debug += "]";
|
|
5309
|
-
return debug;
|
|
5310
|
-
}
|
|
5311
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
5312
|
-
let className;
|
|
5313
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
5314
|
-
className = builtInMatches[1];
|
|
5315
|
-
} else {
|
|
5316
|
-
return toString.call(val);
|
|
5317
|
-
}
|
|
5318
|
-
if (className == "Object") {
|
|
5319
|
-
try {
|
|
5320
|
-
return "Object(" + JSON.stringify(val) + ")";
|
|
5321
|
-
} catch (_) {
|
|
5322
|
-
return "Object";
|
|
5323
|
-
}
|
|
5324
|
-
}
|
|
5325
|
-
if (val instanceof Error) {
|
|
5326
|
-
return `${val.name}: ${val.message}
|
|
5327
|
-
${val.stack}`;
|
|
5328
|
-
}
|
|
5329
|
-
return className;
|
|
5330
|
-
}
|
|
5331
|
-
function handleError(f, args) {
|
|
5332
|
-
try {
|
|
5333
|
-
return f.apply(this, args);
|
|
5334
|
-
} catch (e) {
|
|
5335
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
5336
|
-
}
|
|
5337
|
-
}
|
|
5338
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
5339
|
-
ptr = ptr >>> 0;
|
|
5340
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
5341
|
-
}
|
|
5342
|
-
function dropObject(idx) {
|
|
5343
|
-
if (idx < 132) return;
|
|
5344
|
-
heap[idx] = heap_next;
|
|
5345
|
-
heap_next = idx;
|
|
5346
|
-
}
|
|
5347
|
-
function takeObject(idx) {
|
|
5348
|
-
const ret = getObject(idx);
|
|
5349
|
-
dropObject(idx);
|
|
5350
|
-
return ret;
|
|
5351
|
-
}
|
|
5352
|
-
function verify(input_js, ctx_js) {
|
|
5353
|
-
try {
|
|
5354
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5355
|
-
wasm.verify(retptr, addHeapObject(input_js), addHeapObject(ctx_js));
|
|
5356
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5357
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5358
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5359
|
-
if (r2) {
|
|
5360
|
-
throw takeObject(r1);
|
|
5361
|
-
}
|
|
5362
|
-
return takeObject(r0);
|
|
5363
|
-
} finally {
|
|
5364
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5365
|
-
}
|
|
5366
|
-
}
|
|
5367
|
-
function __wbg_get_imports() {
|
|
5368
|
-
const imports = {};
|
|
5369
|
-
imports.wbg = {};
|
|
5370
|
-
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
5371
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
5372
|
-
return addHeapObject(ret);
|
|
5373
|
-
};
|
|
5374
|
-
imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
5375
|
-
const ret = Number(getObject(arg0));
|
|
5376
|
-
return ret;
|
|
5377
|
-
};
|
|
5378
|
-
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
5379
|
-
const ret = String(getObject(arg1));
|
|
5380
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5381
|
-
const len1 = WASM_VECTOR_LEN;
|
|
5382
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5383
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5384
|
-
};
|
|
5385
|
-
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
5386
|
-
const v = getObject(arg1);
|
|
5387
|
-
const ret = typeof v === "bigint" ? v : void 0;
|
|
5388
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
5389
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5390
|
-
};
|
|
5391
|
-
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
5392
|
-
const v = getObject(arg0);
|
|
5393
|
-
const ret = typeof v === "boolean" ? v : void 0;
|
|
5394
|
-
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
5395
|
-
};
|
|
5396
|
-
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
5397
|
-
const ret = debugString(getObject(arg1));
|
|
5398
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5399
|
-
const len1 = WASM_VECTOR_LEN;
|
|
5400
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5401
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5402
|
-
};
|
|
5403
|
-
imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
5404
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
5405
|
-
return ret;
|
|
5406
|
-
};
|
|
5407
|
-
imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
5408
|
-
const ret = typeof getObject(arg0) === "bigint";
|
|
5409
|
-
return ret;
|
|
5410
|
-
};
|
|
5411
|
-
imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
5412
|
-
const ret = typeof getObject(arg0) === "function";
|
|
5413
|
-
return ret;
|
|
5414
|
-
};
|
|
5415
|
-
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
5416
|
-
const val = getObject(arg0);
|
|
5417
|
-
const ret = typeof val === "object" && val !== null;
|
|
5418
|
-
return ret;
|
|
5419
|
-
};
|
|
5420
|
-
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
5421
|
-
const ret = typeof getObject(arg0) === "string";
|
|
5422
|
-
return ret;
|
|
5423
|
-
};
|
|
5424
|
-
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
5425
|
-
const ret = getObject(arg0) === void 0;
|
|
5426
|
-
return ret;
|
|
5427
|
-
};
|
|
5428
|
-
imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
5429
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
5430
|
-
return ret;
|
|
5431
|
-
};
|
|
5432
|
-
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
5433
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
5434
|
-
return ret;
|
|
5435
|
-
};
|
|
5436
|
-
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
5437
|
-
const obj = getObject(arg1);
|
|
5438
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
5439
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5440
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5441
|
-
};
|
|
5442
|
-
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
5443
|
-
const obj = getObject(arg1);
|
|
5444
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
5445
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5446
|
-
var len1 = WASM_VECTOR_LEN;
|
|
5447
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5448
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5449
|
-
};
|
|
5450
|
-
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
5451
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5452
|
-
};
|
|
5453
|
-
imports.wbg.__wbg_call_e762c39fa8ea36bf = function() {
|
|
5454
|
-
return handleError(function(arg0, arg1) {
|
|
5455
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
5456
|
-
return addHeapObject(ret);
|
|
5457
|
-
}, arguments);
|
|
5458
|
-
};
|
|
5459
|
-
imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
5460
|
-
const ret = getObject(arg0).done;
|
|
5461
|
-
return ret;
|
|
5462
|
-
};
|
|
5463
|
-
imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
5464
|
-
const ret = Object.entries(getObject(arg0));
|
|
5465
|
-
return addHeapObject(ret);
|
|
5466
|
-
};
|
|
5467
|
-
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
5468
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5469
|
-
return addHeapObject(ret);
|
|
5470
|
-
};
|
|
5471
|
-
imports.wbg.__wbg_get_efcb449f58ec27c2 = function() {
|
|
5472
|
-
return handleError(function(arg0, arg1) {
|
|
5473
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5474
|
-
return addHeapObject(ret);
|
|
5475
|
-
}, arguments);
|
|
5476
|
-
};
|
|
5477
|
-
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
5478
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
5479
|
-
return addHeapObject(ret);
|
|
5480
|
-
};
|
|
5481
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
5482
|
-
let result;
|
|
5483
|
-
try {
|
|
5484
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
5485
|
-
} catch (_) {
|
|
5486
|
-
result = false;
|
|
5487
|
-
}
|
|
5488
|
-
const ret = result;
|
|
5489
|
-
return ret;
|
|
5490
|
-
};
|
|
5491
|
-
imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
5492
|
-
let result;
|
|
5493
|
-
try {
|
|
5494
|
-
result = getObject(arg0) instanceof Map;
|
|
5495
|
-
} catch (_) {
|
|
5496
|
-
result = false;
|
|
5497
|
-
}
|
|
5498
|
-
const ret = result;
|
|
5499
|
-
return ret;
|
|
5500
|
-
};
|
|
5501
|
-
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
5502
|
-
let result;
|
|
5503
|
-
try {
|
|
5504
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
5505
|
-
} catch (_) {
|
|
5506
|
-
result = false;
|
|
5507
|
-
}
|
|
5508
|
-
const ret = result;
|
|
5509
|
-
return ret;
|
|
5510
|
-
};
|
|
5511
|
-
imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
5512
|
-
const ret = Array.isArray(getObject(arg0));
|
|
5513
|
-
return ret;
|
|
5514
|
-
};
|
|
5515
|
-
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
5516
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
5517
|
-
return ret;
|
|
5518
|
-
};
|
|
5519
|
-
imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
|
|
5520
|
-
const ret = Symbol.iterator;
|
|
5521
|
-
return addHeapObject(ret);
|
|
5522
|
-
};
|
|
5523
|
-
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
5524
|
-
const ret = getObject(arg0).length;
|
|
5525
|
-
return ret;
|
|
5526
|
-
};
|
|
5527
|
-
imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
5528
|
-
const ret = getObject(arg0).length;
|
|
5529
|
-
return ret;
|
|
5530
|
-
};
|
|
5531
|
-
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
5532
|
-
const ret = new Object();
|
|
5533
|
-
return addHeapObject(ret);
|
|
5534
|
-
};
|
|
5535
|
-
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
5536
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
5537
|
-
return addHeapObject(ret);
|
|
5538
|
-
};
|
|
5539
|
-
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
5540
|
-
const ret = /* @__PURE__ */ new Map();
|
|
5541
|
-
return addHeapObject(ret);
|
|
5542
|
-
};
|
|
5543
|
-
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
5544
|
-
const ret = new Array();
|
|
5545
|
-
return addHeapObject(ret);
|
|
5546
|
-
};
|
|
5547
|
-
imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() {
|
|
5548
|
-
return handleError(function(arg0) {
|
|
5549
|
-
const ret = getObject(arg0).next();
|
|
5550
|
-
return addHeapObject(ret);
|
|
5551
|
-
}, arguments);
|
|
5552
|
-
};
|
|
5553
|
-
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
5554
|
-
const ret = getObject(arg0).next;
|
|
5555
|
-
return addHeapObject(ret);
|
|
5556
|
-
};
|
|
5557
|
-
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
5558
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
5559
|
-
};
|
|
5560
|
-
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
5561
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5562
|
-
};
|
|
5563
|
-
imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
5564
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5565
|
-
return addHeapObject(ret);
|
|
5566
|
-
};
|
|
5567
|
-
imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
5568
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5569
|
-
};
|
|
5570
|
-
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
5571
|
-
const ret = getObject(arg0).value;
|
|
5572
|
-
return addHeapObject(ret);
|
|
5573
|
-
};
|
|
5574
|
-
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
5575
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
5576
|
-
return addHeapObject(ret);
|
|
5577
|
-
};
|
|
5578
|
-
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
5579
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
5580
|
-
return addHeapObject(ret);
|
|
5581
|
-
};
|
|
5582
|
-
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
5583
|
-
const ret = arg0;
|
|
5584
|
-
return addHeapObject(ret);
|
|
5585
|
-
};
|
|
5586
|
-
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
5587
|
-
const ret = arg0;
|
|
5588
|
-
return addHeapObject(ret);
|
|
5589
|
-
};
|
|
5590
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
5591
|
-
const ret = getObject(arg0);
|
|
5592
|
-
return addHeapObject(ret);
|
|
5593
|
-
};
|
|
5594
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
5595
|
-
takeObject(arg0);
|
|
5596
|
-
};
|
|
5597
|
-
return imports;
|
|
5598
|
-
}
|
|
5599
|
-
function __wbg_finalize_init(instance, module) {
|
|
5600
|
-
wasm = instance.exports;
|
|
5601
|
-
cachedDataViewMemory0 = null;
|
|
5602
|
-
cachedUint8ArrayMemory0 = null;
|
|
5603
|
-
return wasm;
|
|
5604
|
-
}
|
|
5605
|
-
function initSync(module) {
|
|
5606
|
-
if (wasm !== void 0) return wasm;
|
|
5607
|
-
if (typeof module !== "undefined") {
|
|
5608
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
5609
|
-
({ module } = module);
|
|
5610
|
-
} else {
|
|
5611
|
-
console.warn("using deprecated parameters for `initSync()`; pass a single object instead");
|
|
5612
|
-
}
|
|
5613
|
-
}
|
|
5614
|
-
const imports = __wbg_get_imports();
|
|
5615
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
5616
|
-
module = new WebAssembly.Module(module);
|
|
5617
|
-
}
|
|
5618
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
5619
|
-
return __wbg_finalize_init(instance);
|
|
5620
|
-
}
|
|
5621
|
-
var wasm;
|
|
5622
|
-
var cachedUint8ArrayMemory0;
|
|
5623
|
-
var cachedTextDecoder;
|
|
5624
|
-
var MAX_SAFARI_DECODE_BYTES;
|
|
5625
|
-
var numBytesDecoded;
|
|
5626
|
-
var heap;
|
|
5627
|
-
var heap_next;
|
|
5628
|
-
var WASM_VECTOR_LEN;
|
|
5629
|
-
var cachedTextEncoder;
|
|
5630
|
-
var cachedDataViewMemory0;
|
|
5631
|
-
var kya_os_engine_default;
|
|
5195
|
+
// ../checkpoint-wasm-runtime/dist/orchestrator-node.mjs
|
|
5632
5196
|
var BLOCKED_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "metadata", "metadata.google.internal"]);
|
|
5633
5197
|
var UnsafeOutboundUrl = class extends Error {
|
|
5634
5198
|
kind = "UnsafeOutboundUrl";
|
|
@@ -7070,7 +6634,8 @@ function buildVerifyOpts(config) {
|
|
|
7070
6634
|
tenantHost: config.tenantHost,
|
|
7071
6635
|
enforcementMode: config.enforcementMode ?? "enforce",
|
|
7072
6636
|
reputationBaseline: config.reputationBaseline,
|
|
7073
|
-
argusUrl: config.argusUrl
|
|
6637
|
+
argusUrl: config.argusUrl,
|
|
6638
|
+
legacyEnvelopeFallback: config.legacyEnvelopeFallback ?? false
|
|
7074
6639
|
};
|
|
7075
6640
|
}
|
|
7076
6641
|
async function dispatchOnResult(config, result, req) {
|
|
@@ -7479,5 +7044,3 @@ var VERSION2 = "1.0.0";
|
|
|
7479
7044
|
*/
|
|
7480
7045
|
|
|
7481
7046
|
export { ExpressSessionTracker, MemoryStorageAdapter, RedisStorageAdapter, VERSION2 as VERSION, agentShield, applyPolicy, createAgentShieldMiddleware, createContextFromDetection, createEnhancedAgentShieldMiddleware, createStorageAdapter, evaluatePolicyForDetection, getPolicy, handlePolicyDecision, sendBlockedResponse, sendRedirectResponse, withCheckpoint, withSessionTracking };
|
|
7482
|
-
//# sourceMappingURL=index.mjs.map
|
|
7483
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/policy.js
CHANGED
|
@@ -70,5 +70,3 @@ exports.handlePolicyDecision = handlePolicyDecision;
|
|
|
70
70
|
exports.sendBlockedResponse = sendBlockedResponse;
|
|
71
71
|
exports.sendChallengeResponse = sendChallengeResponse;
|
|
72
72
|
exports.sendRedirectResponse = sendRedirectResponse;
|
|
73
|
-
//# sourceMappingURL=policy.js.map
|
|
74
|
-
//# sourceMappingURL=policy.js.map
|
package/dist/policy.mjs
CHANGED
|
@@ -45,5 +45,3 @@ async function applyPolicy(_req, _res, _detection, _config) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export { applyPolicy, createContextFromDetection, evaluatePolicyForDetection, getPolicy, handlePolicyDecision, sendBlockedResponse, sendChallengeResponse, sendRedirectResponse };
|
|
48
|
-
//# sourceMappingURL=policy.mjs.map
|
|
49
|
-
//# sourceMappingURL=policy.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/checkpoint-express",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Express.js middleware for Checkpoint — engine-backed AI agent detection and MCP-I verification",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"express",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@kya-os/checkpoint
|
|
72
|
-
"@kya-os/checkpoint": "1.0.0"
|
|
71
|
+
"@kya-os/checkpoint": "1.0.0",
|
|
72
|
+
"@kya-os/checkpoint-shared": "1.0.0"
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
75
|
"@upstash/redis": "^1.35.0",
|
|
76
|
-
"@kya-os/checkpoint-wasm-runtime": "1.
|
|
76
|
+
"@kya-os/checkpoint-wasm-runtime": "^1.1.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "tsup",
|