@cavelon/cli 0.2.9 → 0.2.11
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/dist/commands/init.js +2 -2
- package/dist/commands/tenants.js +3 -2
- package/dist/native-assets/THIRD-PARTY-NOTICES +2 -2
- package/dist/native-assets/kilo-server.mjs +50 -1
- package/dist/native-assets/kilo-tui.mjs +38 -1
- package/dist/native-assets/manifest.json +15 -15
- package/dist/native-assets/omp-extension.mjs +209 -281
- package/dist/native-assets/opencode-server.mjs +50 -1
- package/dist/native-assets/opencode-tui.mjs +38 -1
- package/dist/native-assets/pi-extension.mjs +209 -281
- package/dist/setup-agents.js +10 -4
- package/dist/skills/cavelon-authoring/SKILL.md +11 -0
- package/dist/skills/cavelon-authoring/references/canvas-entrypoints.md +83 -0
- package/dist/skills/cavelon-long-running/SKILL.md +6 -0
- package/dist/skills/cavelon-loop/SKILL.md +5 -0
- package/dist/skills/cavelon-testing/SKILL.md +38 -0
- package/dist/update-check.js +1 -1
- package/package.json +3 -3
|
@@ -15055,14 +15055,6 @@ var Metrics = {
|
|
|
15055
15055
|
update: 0
|
|
15056
15056
|
};
|
|
15057
15057
|
|
|
15058
|
-
// node_modules/typebox/build/system/settings/settings.mjs
|
|
15059
|
-
var settings_exports = {};
|
|
15060
|
-
__export(settings_exports, {
|
|
15061
|
-
Get: () => Get,
|
|
15062
|
-
Reset: () => Reset,
|
|
15063
|
-
Set: () => Set2
|
|
15064
|
-
});
|
|
15065
|
-
|
|
15066
15058
|
// node_modules/typebox/build/guard/guard.mjs
|
|
15067
15059
|
var guard_exports = {};
|
|
15068
15060
|
__export(guard_exports, {
|
|
@@ -15336,88 +15328,13 @@ function IsDeepEqual(left, right) {
|
|
|
15336
15328
|
return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
|
|
15337
15329
|
}
|
|
15338
15330
|
|
|
15339
|
-
// node_modules/typebox/build/guard/globals.mjs
|
|
15340
|
-
var globals_exports = {};
|
|
15341
|
-
__export(globals_exports, {
|
|
15342
|
-
IsBigInt64Array: () => IsBigInt64Array,
|
|
15343
|
-
IsBigUint64Array: () => IsBigUint64Array,
|
|
15344
|
-
IsBoolean: () => IsBoolean2,
|
|
15345
|
-
IsDate: () => IsDate,
|
|
15346
|
-
IsFloat32Array: () => IsFloat32Array,
|
|
15347
|
-
IsFloat64Array: () => IsFloat64Array,
|
|
15348
|
-
IsInt16Array: () => IsInt16Array,
|
|
15349
|
-
IsInt32Array: () => IsInt32Array,
|
|
15350
|
-
IsInt8Array: () => IsInt8Array,
|
|
15351
|
-
IsMap: () => IsMap,
|
|
15352
|
-
IsNumber: () => IsNumber2,
|
|
15353
|
-
IsRegExp: () => IsRegExp,
|
|
15354
|
-
IsSet: () => IsSet,
|
|
15355
|
-
IsString: () => IsString2,
|
|
15356
|
-
IsTypeArray: () => IsTypeArray,
|
|
15357
|
-
IsUint16Array: () => IsUint16Array,
|
|
15358
|
-
IsUint32Array: () => IsUint32Array,
|
|
15359
|
-
IsUint8Array: () => IsUint8Array,
|
|
15360
|
-
IsUint8ClampedArray: () => IsUint8ClampedArray
|
|
15361
|
-
});
|
|
15362
|
-
function IsBoolean2(value) {
|
|
15363
|
-
return value instanceof Boolean;
|
|
15364
|
-
}
|
|
15365
|
-
function IsNumber2(value) {
|
|
15366
|
-
return value instanceof Number;
|
|
15367
|
-
}
|
|
15368
|
-
function IsString2(value) {
|
|
15369
|
-
return value instanceof String;
|
|
15370
|
-
}
|
|
15371
|
-
function IsTypeArray(value) {
|
|
15372
|
-
return globalThis.ArrayBuffer.isView(value);
|
|
15373
|
-
}
|
|
15374
|
-
function IsInt8Array(value) {
|
|
15375
|
-
return value instanceof globalThis.Int8Array;
|
|
15376
|
-
}
|
|
15377
|
-
function IsUint8Array(value) {
|
|
15378
|
-
return value instanceof globalThis.Uint8Array;
|
|
15379
|
-
}
|
|
15380
|
-
function IsUint8ClampedArray(value) {
|
|
15381
|
-
return value instanceof globalThis.Uint8ClampedArray;
|
|
15382
|
-
}
|
|
15383
|
-
function IsInt16Array(value) {
|
|
15384
|
-
return value instanceof globalThis.Int16Array;
|
|
15385
|
-
}
|
|
15386
|
-
function IsUint16Array(value) {
|
|
15387
|
-
return value instanceof globalThis.Uint16Array;
|
|
15388
|
-
}
|
|
15389
|
-
function IsInt32Array(value) {
|
|
15390
|
-
return value instanceof globalThis.Int32Array;
|
|
15391
|
-
}
|
|
15392
|
-
function IsUint32Array(value) {
|
|
15393
|
-
return value instanceof globalThis.Uint32Array;
|
|
15394
|
-
}
|
|
15395
|
-
function IsFloat32Array(value) {
|
|
15396
|
-
return value instanceof globalThis.Float32Array;
|
|
15397
|
-
}
|
|
15398
|
-
function IsFloat64Array(value) {
|
|
15399
|
-
return value instanceof globalThis.Float64Array;
|
|
15400
|
-
}
|
|
15401
|
-
function IsBigInt64Array(value) {
|
|
15402
|
-
return value instanceof globalThis.BigInt64Array;
|
|
15403
|
-
}
|
|
15404
|
-
function IsBigUint64Array(value) {
|
|
15405
|
-
return value instanceof globalThis.BigUint64Array;
|
|
15406
|
-
}
|
|
15407
|
-
function IsRegExp(value) {
|
|
15408
|
-
return value instanceof globalThis.RegExp;
|
|
15409
|
-
}
|
|
15410
|
-
function IsDate(value) {
|
|
15411
|
-
return value instanceof globalThis.Date;
|
|
15412
|
-
}
|
|
15413
|
-
function IsSet(value) {
|
|
15414
|
-
return value instanceof globalThis.Set;
|
|
15415
|
-
}
|
|
15416
|
-
function IsMap(value) {
|
|
15417
|
-
return value instanceof globalThis.Map;
|
|
15418
|
-
}
|
|
15419
|
-
|
|
15420
15331
|
// node_modules/typebox/build/system/settings/settings.mjs
|
|
15332
|
+
var settings_exports = {};
|
|
15333
|
+
__export(settings_exports, {
|
|
15334
|
+
Get: () => Get,
|
|
15335
|
+
Reset: () => Reset,
|
|
15336
|
+
Set: () => Set2
|
|
15337
|
+
});
|
|
15421
15338
|
var settings = {
|
|
15422
15339
|
immutableTypes: false,
|
|
15423
15340
|
maxErrors: 8,
|
|
@@ -15452,31 +15369,55 @@ function Get() {
|
|
|
15452
15369
|
return settings;
|
|
15453
15370
|
}
|
|
15454
15371
|
|
|
15455
|
-
// node_modules/typebox/build/system/memory/
|
|
15456
|
-
function
|
|
15457
|
-
return
|
|
15372
|
+
// node_modules/typebox/build/system/memory/keys.mjs
|
|
15373
|
+
function Keys2(value) {
|
|
15374
|
+
return [...guard_exports.Keys(value), ...guard_exports.Symbols(value)];
|
|
15375
|
+
}
|
|
15376
|
+
|
|
15377
|
+
// node_modules/typebox/build/system/memory/finalize.mjs
|
|
15378
|
+
function Freeze(value, seen) {
|
|
15379
|
+
if (seen.has(value))
|
|
15380
|
+
return;
|
|
15381
|
+
seen.add(value);
|
|
15382
|
+
for (const key of Keys2(value)) {
|
|
15383
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15384
|
+
if (!descriptor || !("value" in descriptor))
|
|
15385
|
+
continue;
|
|
15386
|
+
if (guard_exports.IsObject(descriptor.value))
|
|
15387
|
+
Freeze(descriptor.value, seen);
|
|
15388
|
+
}
|
|
15389
|
+
Object.freeze(value);
|
|
15390
|
+
}
|
|
15391
|
+
function Finalize(value) {
|
|
15392
|
+
if (!settings_exports.Get().immutableTypes)
|
|
15393
|
+
return value;
|
|
15394
|
+
Freeze(value, /* @__PURE__ */ new WeakSet());
|
|
15395
|
+
return value;
|
|
15458
15396
|
}
|
|
15459
15397
|
|
|
15460
15398
|
// node_modules/typebox/build/system/memory/assign.mjs
|
|
15461
15399
|
function Assign(left, right) {
|
|
15462
15400
|
Metrics.assign += 1;
|
|
15463
|
-
|
|
15401
|
+
const result = {}, rightKeys = Keys2(right), leftKeys = Keys2(left);
|
|
15402
|
+
for (const key of leftKeys) {
|
|
15403
|
+
if (rightKeys.includes(key))
|
|
15404
|
+
continue;
|
|
15405
|
+
Object.defineProperty(result, key, Object.getOwnPropertyDescriptor(left, key));
|
|
15406
|
+
}
|
|
15407
|
+
for (const key of rightKeys) {
|
|
15408
|
+
Object.defineProperty(result, key, Object.getOwnPropertyDescriptor(right, key));
|
|
15409
|
+
}
|
|
15410
|
+
return Finalize(result);
|
|
15464
15411
|
}
|
|
15465
15412
|
|
|
15466
15413
|
// node_modules/typebox/build/system/memory/clone.mjs
|
|
15467
|
-
function
|
|
15468
|
-
|
|
15469
|
-
}
|
|
15470
|
-
function IsSchemaObject(value) {
|
|
15471
|
-
return guard_exports.HasPropertyKey(value, "~kind") || guard_exports.HasPropertyKey(value, "~unsafe");
|
|
15472
|
-
}
|
|
15473
|
-
function FromSchemaObject(value) {
|
|
15414
|
+
function Clone(value) {
|
|
15415
|
+
Metrics.clone += 1;
|
|
15474
15416
|
const result = {};
|
|
15475
|
-
for (const key of
|
|
15417
|
+
for (const key of Keys2(value)) {
|
|
15476
15418
|
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15477
15419
|
continue;
|
|
15478
15420
|
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15479
|
-
descriptor.value = FromValue(descriptor.value);
|
|
15480
15421
|
if (guard_exports.IsEqual(descriptor.enumerable, true)) {
|
|
15481
15422
|
result[key] = descriptor.value;
|
|
15482
15423
|
} else {
|
|
@@ -15485,46 +15426,12 @@ function FromSchemaObject(value) {
|
|
|
15485
15426
|
}
|
|
15486
15427
|
return result;
|
|
15487
15428
|
}
|
|
15488
|
-
function FromPlainObject(value) {
|
|
15489
|
-
const result = {};
|
|
15490
|
-
for (const key of guard_exports.Keys(value)) {
|
|
15491
|
-
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15492
|
-
continue;
|
|
15493
|
-
result[key] = FromValue(value[key]);
|
|
15494
|
-
}
|
|
15495
|
-
for (const key of guard_exports.Symbols(value)) {
|
|
15496
|
-
result[key] = FromValue(value[key]);
|
|
15497
|
-
}
|
|
15498
|
-
return result;
|
|
15499
|
-
}
|
|
15500
|
-
function FromObject(value) {
|
|
15501
|
-
return guard_exports.IsClassInstance(value) ? FromClassInstance(value) : IsSchemaObject(value) ? FromSchemaObject(value) : FromPlainObject(value);
|
|
15502
|
-
}
|
|
15503
|
-
function FromArray(value) {
|
|
15504
|
-
return value.map((element) => FromValue(element));
|
|
15505
|
-
}
|
|
15506
|
-
function FromTypedArray(value) {
|
|
15507
|
-
return value.slice();
|
|
15508
|
-
}
|
|
15509
|
-
function FromRegExp(value) {
|
|
15510
|
-
return new RegExp(value.source, value.flags);
|
|
15511
|
-
}
|
|
15512
|
-
function FromMap(value) {
|
|
15513
|
-
return new Map(FromValue([...value.entries()]));
|
|
15514
|
-
}
|
|
15515
|
-
function FromSet(value) {
|
|
15516
|
-
return new Set(FromValue([...value.values()]));
|
|
15517
|
-
}
|
|
15518
|
-
function FromValue(value) {
|
|
15519
|
-
return globals_exports.IsTypeArray(value) ? FromTypedArray(value) : globals_exports.IsRegExp(value) ? FromRegExp(value) : globals_exports.IsMap(value) ? FromMap(value) : globals_exports.IsSet(value) ? FromSet(value) : guard_exports.IsArray(value) ? FromArray(value) : guard_exports.IsObject(value) ? FromObject(value) : value;
|
|
15520
|
-
}
|
|
15521
|
-
function Clone(value) {
|
|
15522
|
-
Metrics.clone += 1;
|
|
15523
|
-
return FromValue(value);
|
|
15524
|
-
}
|
|
15525
15429
|
|
|
15526
15430
|
// node_modules/typebox/build/system/memory/create.mjs
|
|
15527
|
-
function
|
|
15431
|
+
function WithEnumerable(left, right) {
|
|
15432
|
+
return { ...left, ...right };
|
|
15433
|
+
}
|
|
15434
|
+
function WithHidden(left, right) {
|
|
15528
15435
|
for (const key of Object.keys(right)) {
|
|
15529
15436
|
Object.defineProperty(left, key, {
|
|
15530
15437
|
configurable: true,
|
|
@@ -15535,44 +15442,52 @@ function MergeHidden(left, right) {
|
|
|
15535
15442
|
}
|
|
15536
15443
|
return left;
|
|
15537
15444
|
}
|
|
15538
|
-
function Merge(left, right) {
|
|
15539
|
-
return { ...left, ...right };
|
|
15540
|
-
}
|
|
15541
15445
|
function Create(hidden, enumerable, options = {}) {
|
|
15542
15446
|
Metrics.create += 1;
|
|
15543
|
-
const
|
|
15544
|
-
const withHidden = settings_exports.Get().enumerableKind ?
|
|
15545
|
-
return
|
|
15447
|
+
const withEnumerable = WithEnumerable(enumerable, options);
|
|
15448
|
+
const withHidden = settings_exports.Get().enumerableKind ? WithEnumerable(withEnumerable, hidden) : WithHidden(withEnumerable, hidden);
|
|
15449
|
+
return Finalize(withHidden);
|
|
15546
15450
|
}
|
|
15547
15451
|
|
|
15548
15452
|
// node_modules/typebox/build/system/memory/discard.mjs
|
|
15549
15453
|
function Discard(value, propertyKeys) {
|
|
15550
15454
|
Metrics.discard += 1;
|
|
15551
15455
|
const result = {};
|
|
15552
|
-
for (const key of
|
|
15456
|
+
for (const key of Keys2(value)) {
|
|
15553
15457
|
if (propertyKeys.includes(key))
|
|
15554
15458
|
continue;
|
|
15555
15459
|
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15556
|
-
descriptor.value = Clone(descriptor.value);
|
|
15557
15460
|
Object.defineProperty(result, key, descriptor);
|
|
15558
15461
|
}
|
|
15559
|
-
return
|
|
15462
|
+
return Finalize(result);
|
|
15560
15463
|
}
|
|
15561
15464
|
|
|
15562
15465
|
// node_modules/typebox/build/system/memory/update.mjs
|
|
15563
|
-
function
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15466
|
+
function WithCurrent(current3, hiddenKeys, enumerableKeys, result) {
|
|
15467
|
+
for (const key of Keys2(current3)) {
|
|
15468
|
+
if (guard_exports.IsUnsafePropertyKey(key) || hiddenKeys.includes(key) || enumerableKeys.includes(key))
|
|
15469
|
+
continue;
|
|
15470
|
+
const descriptor = Object.getOwnPropertyDescriptor(current3, key);
|
|
15471
|
+
Object.defineProperty(result, key, descriptor);
|
|
15472
|
+
}
|
|
15473
|
+
}
|
|
15474
|
+
function WithHidden2(hidden, keys, result) {
|
|
15475
|
+
const enumerableKind = settings_exports.Get().enumerableKind;
|
|
15476
|
+
for (const key of keys) {
|
|
15477
|
+
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15478
|
+
continue;
|
|
15568
15479
|
Object.defineProperty(result, key, {
|
|
15569
15480
|
configurable: true,
|
|
15570
15481
|
writable: true,
|
|
15571
|
-
enumerable:
|
|
15482
|
+
enumerable: enumerableKind,
|
|
15572
15483
|
value: hidden[key]
|
|
15573
15484
|
});
|
|
15574
15485
|
}
|
|
15575
|
-
|
|
15486
|
+
}
|
|
15487
|
+
function WithEnumerable2(enumerable, keys, result) {
|
|
15488
|
+
for (const key of keys) {
|
|
15489
|
+
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15490
|
+
continue;
|
|
15576
15491
|
Object.defineProperty(result, key, {
|
|
15577
15492
|
configurable: true,
|
|
15578
15493
|
enumerable: true,
|
|
@@ -15580,7 +15495,14 @@ function Update(current3, hidden, enumerable) {
|
|
|
15580
15495
|
value: enumerable[key]
|
|
15581
15496
|
});
|
|
15582
15497
|
}
|
|
15583
|
-
|
|
15498
|
+
}
|
|
15499
|
+
function Update(current3, hidden, enumerable) {
|
|
15500
|
+
Metrics.update += 1;
|
|
15501
|
+
const result = {}, hiddenKeys = Keys2(hidden), enumerableKeys = Keys2(enumerable);
|
|
15502
|
+
WithCurrent(current3, hiddenKeys, enumerableKeys, result);
|
|
15503
|
+
WithHidden2(hidden, hiddenKeys, result);
|
|
15504
|
+
WithEnumerable2(enumerable, enumerableKeys, result);
|
|
15505
|
+
return Finalize(result);
|
|
15584
15506
|
}
|
|
15585
15507
|
|
|
15586
15508
|
// node_modules/typebox/build/type/types/schema.mjs
|
|
@@ -15600,11 +15522,8 @@ function IsDeferred(value) {
|
|
|
15600
15522
|
}
|
|
15601
15523
|
|
|
15602
15524
|
// node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
|
|
15603
|
-
function AddReadonlyOperation(type) {
|
|
15604
|
-
return memory_exports.Update(type, { "~readonly": true }, {});
|
|
15605
|
-
}
|
|
15606
15525
|
function AddReadonlyAction(type, options) {
|
|
15607
|
-
const result = memory_exports.Update(
|
|
15526
|
+
const result = memory_exports.Update(type, { "~readonly": true }, options);
|
|
15608
15527
|
return result;
|
|
15609
15528
|
}
|
|
15610
15529
|
function AddReadonlyInstantiate(context, state, type, options) {
|
|
@@ -15613,11 +15532,8 @@ function AddReadonlyInstantiate(context, state, type, options) {
|
|
|
15613
15532
|
}
|
|
15614
15533
|
|
|
15615
15534
|
// node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
|
|
15616
|
-
function AddOptionalOperation(type) {
|
|
15617
|
-
return memory_exports.Update(type, { "~optional": true }, {});
|
|
15618
|
-
}
|
|
15619
15535
|
function AddOptionalAction(type, options) {
|
|
15620
|
-
const result = memory_exports.Update(
|
|
15536
|
+
const result = memory_exports.Update(type, { "~optional": true }, options);
|
|
15621
15537
|
return result;
|
|
15622
15538
|
}
|
|
15623
15539
|
function AddOptionalInstantiate(context, state, type, options) {
|
|
@@ -15830,29 +15746,6 @@ function Unreachable() {
|
|
|
15830
15746
|
}
|
|
15831
15747
|
|
|
15832
15748
|
// node_modules/typebox/build/system/hashing/hash.mjs
|
|
15833
|
-
var ByteMarker;
|
|
15834
|
-
(function(ByteMarker2) {
|
|
15835
|
-
ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
|
|
15836
|
-
ByteMarker2[ByteMarker2["BigInt"] = 1] = "BigInt";
|
|
15837
|
-
ByteMarker2[ByteMarker2["Boolean"] = 2] = "Boolean";
|
|
15838
|
-
ByteMarker2[ByteMarker2["Date"] = 3] = "Date";
|
|
15839
|
-
ByteMarker2[ByteMarker2["Constructor"] = 4] = "Constructor";
|
|
15840
|
-
ByteMarker2[ByteMarker2["Function"] = 5] = "Function";
|
|
15841
|
-
ByteMarker2[ByteMarker2["Null"] = 6] = "Null";
|
|
15842
|
-
ByteMarker2[ByteMarker2["Number"] = 7] = "Number";
|
|
15843
|
-
ByteMarker2[ByteMarker2["Object"] = 8] = "Object";
|
|
15844
|
-
ByteMarker2[ByteMarker2["RegExp"] = 9] = "RegExp";
|
|
15845
|
-
ByteMarker2[ByteMarker2["String"] = 10] = "String";
|
|
15846
|
-
ByteMarker2[ByteMarker2["Symbol"] = 11] = "Symbol";
|
|
15847
|
-
ByteMarker2[ByteMarker2["TypeArray"] = 12] = "TypeArray";
|
|
15848
|
-
ByteMarker2[ByteMarker2["Undefined"] = 13] = "Undefined";
|
|
15849
|
-
})(ByteMarker || (ByteMarker = {}));
|
|
15850
|
-
var Accumulator = BigInt("14695981039346656037");
|
|
15851
|
-
var [Prime, Size] = [BigInt("1099511628211"), BigInt(
|
|
15852
|
-
"18446744073709551616"
|
|
15853
|
-
/* 2 ^ 64 */
|
|
15854
|
-
)];
|
|
15855
|
-
var Bytes = Array.from({ length: 256 }).map((_, i) => BigInt(i));
|
|
15856
15749
|
var F64 = new Float64Array(1);
|
|
15857
15750
|
var F64In = new DataView(F64.buffer);
|
|
15858
15751
|
var F64Out = new Uint8Array(F64.buffer);
|
|
@@ -15953,7 +15846,7 @@ function IsBigInt2(value) {
|
|
|
15953
15846
|
function Boolean2(options) {
|
|
15954
15847
|
return memory_exports.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
|
|
15955
15848
|
}
|
|
15956
|
-
function
|
|
15849
|
+
function IsBoolean2(value) {
|
|
15957
15850
|
return IsKind(value, "Boolean");
|
|
15958
15851
|
}
|
|
15959
15852
|
|
|
@@ -16020,7 +15913,7 @@ var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
|
16020
15913
|
function Number2(options) {
|
|
16021
15914
|
return memory_exports.Create({ "~kind": "Number" }, { type: "number" }, options);
|
|
16022
15915
|
}
|
|
16023
|
-
function
|
|
15916
|
+
function IsNumber2(value) {
|
|
16024
15917
|
return IsKind(value, "Number");
|
|
16025
15918
|
}
|
|
16026
15919
|
|
|
@@ -16050,7 +15943,7 @@ var StringPattern = ".*";
|
|
|
16050
15943
|
function String2(options) {
|
|
16051
15944
|
return memory_exports.Create({ "~kind": "String" }, { type: "string" }, options);
|
|
16052
15945
|
}
|
|
16053
|
-
function
|
|
15946
|
+
function IsString2(value) {
|
|
16054
15947
|
return IsKind(value, "String");
|
|
16055
15948
|
}
|
|
16056
15949
|
|
|
@@ -16168,25 +16061,17 @@ function TupleOptions(type) {
|
|
|
16168
16061
|
return memory_exports.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
|
|
16169
16062
|
}
|
|
16170
16063
|
|
|
16171
|
-
// node_modules/typebox/build/type/engine/
|
|
16172
|
-
function
|
|
16173
|
-
|
|
16174
|
-
}
|
|
16175
|
-
|
|
16176
|
-
const result = memory_exports.Update(RemoveReadonlyOperation(type), {}, options);
|
|
16064
|
+
// node_modules/typebox/build/type/engine/tuple/to_object.mjs
|
|
16065
|
+
function TupleElementsToProperties(types) {
|
|
16066
|
+
const result = types.reduceRight((result2, right, index) => {
|
|
16067
|
+
return { [index]: right, ...result2 };
|
|
16068
|
+
}, {});
|
|
16177
16069
|
return result;
|
|
16178
16070
|
}
|
|
16179
|
-
function
|
|
16180
|
-
const
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
// node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
16185
|
-
function RemoveReadonlyDeferred(type, options = {}) {
|
|
16186
|
-
return Deferred("RemoveReadonly", [type], options);
|
|
16187
|
-
}
|
|
16188
|
-
function RemoveReadonly(type, options = {}) {
|
|
16189
|
-
return RemoveReadonlyAction(type, options);
|
|
16071
|
+
function TupleToObject(type) {
|
|
16072
|
+
const properties = TupleElementsToProperties(type.items);
|
|
16073
|
+
const result = _Object_(properties);
|
|
16074
|
+
return result;
|
|
16190
16075
|
}
|
|
16191
16076
|
|
|
16192
16077
|
// node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
|
|
@@ -16202,46 +16087,39 @@ function RemoveOptionalInstantiate(context, state, type, options) {
|
|
|
16202
16087
|
return RemoveOptionalAction(instantiatedType, options);
|
|
16203
16088
|
}
|
|
16204
16089
|
|
|
16205
|
-
// node_modules/typebox/build/type/
|
|
16206
|
-
function
|
|
16207
|
-
return
|
|
16208
|
-
}
|
|
16209
|
-
function RemoveOptional(type, options = {}) {
|
|
16210
|
-
return RemoveOptionalAction(type, options);
|
|
16090
|
+
// node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
|
|
16091
|
+
function RemoveReadonlyOperation(type) {
|
|
16092
|
+
return memory_exports.Discard(type, ["~readonly"]);
|
|
16211
16093
|
}
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
function TupleElementsToProperties(types) {
|
|
16215
|
-
const result = types.reduceRight((result2, right, index) => {
|
|
16216
|
-
return { [index]: right, ...result2 };
|
|
16217
|
-
}, {});
|
|
16094
|
+
function RemoveReadonlyAction(type, options) {
|
|
16095
|
+
const result = memory_exports.Update(RemoveReadonlyOperation(type), {}, options);
|
|
16218
16096
|
return result;
|
|
16219
16097
|
}
|
|
16220
|
-
function
|
|
16221
|
-
const
|
|
16222
|
-
|
|
16223
|
-
return result;
|
|
16098
|
+
function RemoveReadonlyInstantiate(context, state, type, options) {
|
|
16099
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
16100
|
+
return RemoveReadonlyAction(instantiatedType, options);
|
|
16224
16101
|
}
|
|
16225
16102
|
|
|
16226
|
-
// node_modules/typebox/build/type/engine/evaluate/
|
|
16227
|
-
function
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
function IsReadonlyProperty(left, right) {
|
|
16231
|
-
return IsReadonly(left) ? IsReadonly(right) ? true : false : false;
|
|
16232
|
-
}
|
|
16233
|
-
function IsOptionalProperty(left, right) {
|
|
16234
|
-
return IsOptional(left) ? IsOptional(right) ? true : false : false;
|
|
16235
|
-
}
|
|
16236
|
-
function CompositeProperty(left, right) {
|
|
16237
|
-
const isReadonly = IsReadonlyProperty(left, right);
|
|
16238
|
-
const isOptional = IsOptionalProperty(left, right);
|
|
16103
|
+
// node_modules/typebox/build/type/engine/evaluate/property.mjs
|
|
16104
|
+
function EvaluatePropertyIntersect(left, right) {
|
|
16105
|
+
const isReadonly = IsReadonly(left) && IsReadonly(right);
|
|
16106
|
+
const isOptional = IsOptional(left) && IsOptional(right);
|
|
16239
16107
|
const evaluated = EvaluateIntersect([left, right]);
|
|
16240
|
-
const property =
|
|
16241
|
-
return isReadonly && isOptional ?
|
|
16108
|
+
const property = RemoveReadonlyAction(RemoveOptionalAction(evaluated, {}), {});
|
|
16109
|
+
return isReadonly && isOptional ? AddReadonlyAction(AddOptionalAction(property, {}), {}) : isReadonly ? AddReadonlyAction(property, {}) : isOptional ? AddOptionalAction(property, {}) : property;
|
|
16110
|
+
}
|
|
16111
|
+
function EvaluatePropertyUnion(left, right) {
|
|
16112
|
+
const isReadonly = IsReadonly(left) || IsReadonly(right);
|
|
16113
|
+
const isOptional = IsOptional(left) || IsOptional(right);
|
|
16114
|
+
const leftProperty = RemoveReadonlyAction(RemoveOptionalAction(left, {}), {});
|
|
16115
|
+
const rightProperty = RemoveReadonlyAction(RemoveOptionalAction(right, {}), {});
|
|
16116
|
+
const property = EvaluateUnion([leftProperty, rightProperty]);
|
|
16117
|
+
return isReadonly && isOptional ? AddReadonlyAction(AddOptionalAction(property, {}), {}) : isReadonly ? AddReadonlyAction(property, {}) : isOptional ? AddOptionalAction(property, {}) : property;
|
|
16242
16118
|
}
|
|
16119
|
+
|
|
16120
|
+
// node_modules/typebox/build/type/engine/evaluate/composite.mjs
|
|
16243
16121
|
function CompositePropertyKey(left, right, key) {
|
|
16244
|
-
return key in left ? key in right ?
|
|
16122
|
+
return key in left ? key in right ? EvaluatePropertyIntersect(left[key], right[key]) : left[key] : key in right ? right[key] : Never();
|
|
16245
16123
|
}
|
|
16246
16124
|
function CompositeProperties(left, right) {
|
|
16247
16125
|
const keys = /* @__PURE__ */ new Set([...guard_exports.Keys(left), ...guard_exports.Keys(right)]);
|
|
@@ -16267,6 +16145,9 @@ function NarrowCompareRule(left, right) {
|
|
|
16267
16145
|
const result = Compare(left, right);
|
|
16268
16146
|
return guard_exports.IsEqual(result, CompareResultLeftInside) ? left : guard_exports.IsEqual(result, CompareResultRightInside) ? right : guard_exports.IsEqual(result, CompareResultEqual) ? right : Never();
|
|
16269
16147
|
}
|
|
16148
|
+
function CanComposite(type) {
|
|
16149
|
+
return IsObject2(type) || IsTuple(type);
|
|
16150
|
+
}
|
|
16270
16151
|
function NarrowCompositeRule(left, right) {
|
|
16271
16152
|
const canCompositeLeft = CanComposite(left);
|
|
16272
16153
|
const canCompositeRight = CanComposite(right);
|
|
@@ -16405,7 +16286,7 @@ function Flatten(types, result = []) {
|
|
|
16405
16286
|
|
|
16406
16287
|
// node_modules/typebox/build/type/engine/record/from_key_union.mjs
|
|
16407
16288
|
function StringOrNumberCheck(types) {
|
|
16408
|
-
return types.some((type) =>
|
|
16289
|
+
return types.some((type) => IsString2(type) || IsNumber2(type) || IsInteger2(type));
|
|
16409
16290
|
}
|
|
16410
16291
|
function TryBuildRecord(types, value) {
|
|
16411
16292
|
return guard_exports.IsEqual(StringOrNumberCheck(types), true) ? CreateRecord(StringKey, value) : void 0;
|
|
@@ -16428,7 +16309,7 @@ function FromUnionKey(types, value) {
|
|
|
16428
16309
|
|
|
16429
16310
|
// node_modules/typebox/build/type/engine/record/from_key.mjs
|
|
16430
16311
|
function FromKey(key, value) {
|
|
16431
|
-
const result = IsAny(key) ? FromAnyKey(value) :
|
|
16312
|
+
const result = IsAny(key) ? FromAnyKey(value) : IsBoolean2(key) ? FromBooleanKey(value) : IsEnum(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber2(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString2(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
|
|
16432
16313
|
return result;
|
|
16433
16314
|
}
|
|
16434
16315
|
|
|
@@ -16710,7 +16591,7 @@ function PropertyKeyQuotedMapping(input) {
|
|
|
16710
16591
|
return input;
|
|
16711
16592
|
}
|
|
16712
16593
|
function PropertyKeyIndexMapping(input) {
|
|
16713
|
-
return IsInteger2(input[3]) ? IntegerKey :
|
|
16594
|
+
return IsInteger2(input[3]) ? IntegerKey : IsNumber2(input[3]) ? NumberKey : IsSymbol2(input[3]) ? StringKey : IsString2(input[3]) ? StringKey : Unreachable2();
|
|
16714
16595
|
}
|
|
16715
16596
|
function PropertyKeyMapping(input) {
|
|
16716
16597
|
return input;
|
|
@@ -17389,7 +17270,7 @@ function EncodeUnion(types, right, pattern, result = []) {
|
|
|
17389
17270
|
return guard_exports.ShiftLeft(types, (head, tail) => EncodeUnion(tail, right, pattern, [...result, EncodeType(head, [], "")]), () => EncodeTypes(right, `${pattern}(${JoinString(result)})`));
|
|
17390
17271
|
}
|
|
17391
17272
|
function EncodeType(type, right, pattern) {
|
|
17392
|
-
return IsEnum(type) ? EncodeEnum(type.enum, right, pattern) : IsInteger2(type) ? EncodeInteger(right, pattern) : IsLiteral(type) ? EncodeLiteral(type.const, right, pattern) : IsBigInt2(type) ? EncodeBigInt(right, pattern) :
|
|
17273
|
+
return IsEnum(type) ? EncodeEnum(type.enum, right, pattern) : IsInteger2(type) ? EncodeInteger(right, pattern) : IsLiteral(type) ? EncodeLiteral(type.const, right, pattern) : IsBigInt2(type) ? EncodeBigInt(right, pattern) : IsBoolean2(type) ? EncodeBoolean(right, pattern) : IsNumber2(type) ? EncodeNumber(right, pattern) : IsString2(type) ? EncodeString(right, pattern) : IsTemplateLiteral(type) ? EncodeTemplateLiteral(type.pattern, right, pattern) : IsTemplateLiteralDeferred(type) ? EncodeTemplateLiteralDeferred(type.parameters[0], right, pattern) : IsUnion(type) ? EncodeUnion(type.anyOf, right, pattern) : NeverPattern;
|
|
17393
17274
|
}
|
|
17394
17275
|
function EncodeTypes(types, pattern) {
|
|
17395
17276
|
return guard_exports.ShiftLeft(types, (left, right) => EncodeType(left, right, pattern), () => pattern);
|
|
@@ -17524,7 +17405,7 @@ function ExtendsBigInt(inferred, left, right) {
|
|
|
17524
17405
|
|
|
17525
17406
|
// node_modules/typebox/build/type/extends/boolean.mjs
|
|
17526
17407
|
function ExtendsBoolean(inferred, left, right) {
|
|
17527
|
-
return
|
|
17408
|
+
return IsBoolean2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17528
17409
|
}
|
|
17529
17410
|
|
|
17530
17411
|
// node_modules/typebox/build/type/extends/parameters.mjs
|
|
@@ -17573,7 +17454,7 @@ function ExtendsFunction(inferred, parameters, returnType, right) {
|
|
|
17573
17454
|
|
|
17574
17455
|
// node_modules/typebox/build/type/extends/integer.mjs
|
|
17575
17456
|
function ExtendsInteger(inferred, left, right) {
|
|
17576
|
-
return IsInteger2(right) ? ExtendsTrue(inferred) :
|
|
17457
|
+
return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17577
17458
|
}
|
|
17578
17459
|
|
|
17579
17460
|
// node_modules/typebox/build/type/extends/intersect.mjs
|
|
@@ -17590,13 +17471,13 @@ function ExtendsLiteralBigInt(inferred, left, right) {
|
|
|
17590
17471
|
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17591
17472
|
}
|
|
17592
17473
|
function ExtendsLiteralBoolean(inferred, left, right) {
|
|
17593
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17474
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBoolean2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17594
17475
|
}
|
|
17595
17476
|
function ExtendsLiteralNumber(inferred, left, right) {
|
|
17596
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17477
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17597
17478
|
}
|
|
17598
17479
|
function ExtendsLiteralString(inferred, left, right) {
|
|
17599
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17480
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsString2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17600
17481
|
}
|
|
17601
17482
|
function ExtendsLiteral(inferred, left, right) {
|
|
17602
17483
|
return guard_exports.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : guard_exports.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : guard_exports.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : guard_exports.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
|
|
@@ -17614,7 +17495,7 @@ function ExtendsNull(inferred, left, right) {
|
|
|
17614
17495
|
|
|
17615
17496
|
// node_modules/typebox/build/type/extends/number.mjs
|
|
17616
17497
|
function ExtendsNumber(inferred, left, right) {
|
|
17617
|
-
return
|
|
17498
|
+
return IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17618
17499
|
}
|
|
17619
17500
|
|
|
17620
17501
|
// node_modules/typebox/build/type/extends/object.mjs
|
|
@@ -17669,19 +17550,19 @@ function ExtendsObject(inferred, left, right) {
|
|
|
17669
17550
|
}
|
|
17670
17551
|
|
|
17671
17552
|
// node_modules/typebox/build/type/extends/record.mjs
|
|
17672
|
-
function
|
|
17553
|
+
function FromObject(inferred, properties) {
|
|
17673
17554
|
return guard_exports.IsEqual(guard_exports.Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17674
17555
|
}
|
|
17675
17556
|
function FromRecord(inferred, _leftKey, leftValue, _rightKey, rightValue) {
|
|
17676
17557
|
return ExtendsLeft(inferred, leftValue, rightValue);
|
|
17677
17558
|
}
|
|
17678
17559
|
function ExtendsRecord(inferred, leftPattern, leftValue, right) {
|
|
17679
|
-
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ?
|
|
17560
|
+
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17680
17561
|
}
|
|
17681
17562
|
|
|
17682
17563
|
// node_modules/typebox/build/type/extends/string.mjs
|
|
17683
17564
|
function ExtendsString(inferred, left, right) {
|
|
17684
|
-
return
|
|
17565
|
+
return IsString2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17685
17566
|
}
|
|
17686
17567
|
|
|
17687
17568
|
// node_modules/typebox/build/type/extends/symbol.mjs
|
|
@@ -17806,7 +17687,7 @@ function ExtendsVoid(inferred, left, right) {
|
|
|
17806
17687
|
|
|
17807
17688
|
// node_modules/typebox/build/type/extends/extends_left.mjs
|
|
17808
17689
|
function ExtendsLeft(inferred, left, right) {
|
|
17809
|
-
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) :
|
|
17690
|
+
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean2(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber2(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString2(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
|
|
17810
17691
|
}
|
|
17811
17692
|
|
|
17812
17693
|
// node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
@@ -18411,7 +18292,7 @@ function CollapseIntersectProperties(left, right) {
|
|
|
18411
18292
|
const sharedKeys = guard_exports.Keys(left).filter((key) => guard_exports.HasPropertyKey(right, key));
|
|
18412
18293
|
const leftProperties = leftKeys.reduce((result, key) => ({ ...result, [key]: left[key] }), {});
|
|
18413
18294
|
const rightProperties = rightKeys.reduce((result, key) => ({ ...result, [key]: right[key] }), {});
|
|
18414
|
-
const sharedProperties = sharedKeys.reduce((result, key) => ({ ...result, [key]:
|
|
18295
|
+
const sharedProperties = sharedKeys.reduce((result, key) => ({ ...result, [key]: EvaluatePropertyIntersect(left[key], right[key]) }), {});
|
|
18415
18296
|
const unique = memory_exports.Assign(leftProperties, rightProperties);
|
|
18416
18297
|
const shared = memory_exports.Assign(unique, sharedProperties);
|
|
18417
18298
|
return shared;
|
|
@@ -18423,7 +18304,7 @@ function FromIntersect(types) {
|
|
|
18423
18304
|
}
|
|
18424
18305
|
|
|
18425
18306
|
// node_modules/typebox/build/type/engine/object/from_object.mjs
|
|
18426
|
-
function
|
|
18307
|
+
function FromObject2(properties) {
|
|
18427
18308
|
return properties;
|
|
18428
18309
|
}
|
|
18429
18310
|
|
|
@@ -18438,7 +18319,7 @@ function FromTuple(types) {
|
|
|
18438
18319
|
function CollapseUnionProperties(left, right) {
|
|
18439
18320
|
const sharedKeys = guard_exports.Keys(left).filter((key) => key in right);
|
|
18440
18321
|
const result = sharedKeys.reduce((result2, key) => {
|
|
18441
|
-
return { ...result2, [key]:
|
|
18322
|
+
return { ...result2, [key]: EvaluatePropertyUnion(left[key], right[key]) };
|
|
18442
18323
|
}, {});
|
|
18443
18324
|
return result;
|
|
18444
18325
|
}
|
|
@@ -18451,7 +18332,7 @@ function FromUnion3(types) {
|
|
|
18451
18332
|
|
|
18452
18333
|
// node_modules/typebox/build/type/engine/object/from_type.mjs
|
|
18453
18334
|
function FromType8(type) {
|
|
18454
|
-
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ?
|
|
18335
|
+
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject2(type.properties) : {};
|
|
18455
18336
|
}
|
|
18456
18337
|
|
|
18457
18338
|
// node_modules/typebox/build/type/engine/object/collapse.mjs
|
|
@@ -18478,7 +18359,7 @@ function NormalizeIndexerTypes(types) {
|
|
|
18478
18359
|
function NormalizeIndexer(type) {
|
|
18479
18360
|
return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type;
|
|
18480
18361
|
}
|
|
18481
|
-
function
|
|
18362
|
+
function FromArray(type, indexer) {
|
|
18482
18363
|
const normalizedIndexer = NormalizeIndexer(indexer);
|
|
18483
18364
|
const check = Extends({}, normalizedIndexer, Number2());
|
|
18484
18365
|
const result = (
|
|
@@ -18588,8 +18469,8 @@ function FromIndexerNumber(properties) {
|
|
|
18588
18469
|
const result = EvaluateUnion(variants);
|
|
18589
18470
|
return result;
|
|
18590
18471
|
}
|
|
18591
|
-
function
|
|
18592
|
-
const result =
|
|
18472
|
+
function FromObject3(properties, indexer) {
|
|
18473
|
+
const result = IsNumber2(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer);
|
|
18593
18474
|
return result;
|
|
18594
18475
|
}
|
|
18595
18476
|
|
|
@@ -18622,13 +18503,13 @@ function FromTupleWithoutIndexer(types) {
|
|
|
18622
18503
|
function FromTuple2(types, indexer) {
|
|
18623
18504
|
return (
|
|
18624
18505
|
// length (intrinsic)
|
|
18625
|
-
IsLiteral(indexer) && guard_exports.IsEqual(indexer.const, "length") ? Literal(types.length) :
|
|
18506
|
+
IsLiteral(indexer) && guard_exports.IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber2(indexer) || IsInteger2(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer)
|
|
18626
18507
|
);
|
|
18627
18508
|
}
|
|
18628
18509
|
|
|
18629
18510
|
// node_modules/typebox/build/type/engine/indexed/from_type.mjs
|
|
18630
18511
|
function FromType11(type, indexer) {
|
|
18631
|
-
return IsArray2(type) ?
|
|
18512
|
+
return IsArray2(type) ? FromArray(type.items, indexer) : IsObject2(type) ? FromObject3(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
|
|
18632
18513
|
}
|
|
18633
18514
|
|
|
18634
18515
|
// node_modules/typebox/build/type/engine/indexed/instantiate.mjs
|
|
@@ -18681,7 +18562,7 @@ function FromAny() {
|
|
|
18681
18562
|
}
|
|
18682
18563
|
|
|
18683
18564
|
// node_modules/typebox/build/type/engine/keyof/from_array.mjs
|
|
18684
|
-
function
|
|
18565
|
+
function FromArray2(_type) {
|
|
18685
18566
|
return Number2();
|
|
18686
18567
|
}
|
|
18687
18568
|
|
|
@@ -18692,7 +18573,7 @@ function FromPropertyKeys(keys) {
|
|
|
18692
18573
|
}, []);
|
|
18693
18574
|
return result;
|
|
18694
18575
|
}
|
|
18695
|
-
function
|
|
18576
|
+
function FromObject4(properties) {
|
|
18696
18577
|
const propertyKeys = guard_exports.Keys(properties);
|
|
18697
18578
|
const variants = FromPropertyKeys(propertyKeys);
|
|
18698
18579
|
const result = EvaluateUnionFast(variants);
|
|
@@ -18712,7 +18593,7 @@ function FromTuple3(types) {
|
|
|
18712
18593
|
|
|
18713
18594
|
// node_modules/typebox/build/type/engine/keyof/from_type.mjs
|
|
18714
18595
|
function FromType12(type) {
|
|
18715
|
-
return IsAny(type) ? FromAny() : IsArray2(type) ?
|
|
18596
|
+
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray2(type.items) : IsObject2(type) ? FromObject4(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
|
|
18716
18597
|
}
|
|
18717
18598
|
|
|
18718
18599
|
// node_modules/typebox/build/type/engine/keyof/instantiate.mjs
|
|
@@ -18957,7 +18838,7 @@ function FromUnion6(types) {
|
|
|
18957
18838
|
}
|
|
18958
18839
|
|
|
18959
18840
|
// node_modules/typebox/build/type/engine/partial/from_object.mjs
|
|
18960
|
-
function
|
|
18841
|
+
function FromObject5(properties) {
|
|
18961
18842
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
18962
18843
|
return { ...result2, [left]: AddOptional(properties[left]) };
|
|
18963
18844
|
}, {});
|
|
@@ -18967,7 +18848,7 @@ function FromObject6(properties) {
|
|
|
18967
18848
|
|
|
18968
18849
|
// node_modules/typebox/build/type/engine/partial/from_type.mjs
|
|
18969
18850
|
function FromType15(type) {
|
|
18970
|
-
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ?
|
|
18851
|
+
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject5(type.properties) : _Object_({});
|
|
18971
18852
|
}
|
|
18972
18853
|
|
|
18973
18854
|
// node_modules/typebox/build/type/engine/partial/instantiate.mjs
|
|
@@ -19025,7 +18906,7 @@ function ReadonlyObject(type, options = {}) {
|
|
|
19025
18906
|
var ReadonlyType = ReadonlyObject;
|
|
19026
18907
|
|
|
19027
18908
|
// node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
|
|
19028
|
-
function
|
|
18909
|
+
function FromArray3(type) {
|
|
19029
18910
|
const result = AddImmutable(_Array_(type));
|
|
19030
18911
|
return result;
|
|
19031
18912
|
}
|
|
@@ -19053,7 +18934,7 @@ function FromIntersect4(types) {
|
|
|
19053
18934
|
}
|
|
19054
18935
|
|
|
19055
18936
|
// node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
|
|
19056
|
-
function
|
|
18937
|
+
function FromObject6(properties) {
|
|
19057
18938
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
19058
18939
|
return { ...result2, [left]: AddReadonly(properties[left]) };
|
|
19059
18940
|
}, {});
|
|
@@ -19075,7 +18956,7 @@ function FromUnion7(types) {
|
|
|
19075
18956
|
|
|
19076
18957
|
// node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
|
|
19077
18958
|
function FromType17(type) {
|
|
19078
|
-
return IsArray2(type) ?
|
|
18959
|
+
return IsArray2(type) ? FromArray3(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject6(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
|
|
19079
18960
|
}
|
|
19080
18961
|
|
|
19081
18962
|
// node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
|
|
@@ -19121,8 +19002,16 @@ function FromUnion8(types) {
|
|
|
19121
19002
|
return Union(result);
|
|
19122
19003
|
}
|
|
19123
19004
|
|
|
19005
|
+
// node_modules/typebox/build/type/action/_remove_optional.mjs
|
|
19006
|
+
function RemoveOptionalDeferred(type, options = {}) {
|
|
19007
|
+
return Deferred("RemoveOptional", [type], options);
|
|
19008
|
+
}
|
|
19009
|
+
function RemoveOptional(type, options = {}) {
|
|
19010
|
+
return RemoveOptionalAction(type, options);
|
|
19011
|
+
}
|
|
19012
|
+
|
|
19124
19013
|
// node_modules/typebox/build/type/engine/required/from_object.mjs
|
|
19125
|
-
function
|
|
19014
|
+
function FromObject7(properties) {
|
|
19126
19015
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
19127
19016
|
return { ...result2, [left]: RemoveOptional(properties[left]) };
|
|
19128
19017
|
}, {});
|
|
@@ -19132,7 +19021,7 @@ function FromObject8(properties) {
|
|
|
19132
19021
|
|
|
19133
19022
|
// node_modules/typebox/build/type/engine/required/from_type.mjs
|
|
19134
19023
|
function FromType18(type) {
|
|
19135
|
-
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ?
|
|
19024
|
+
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject7(type.properties) : _Object_({});
|
|
19136
19025
|
}
|
|
19137
19026
|
|
|
19138
19027
|
// node_modules/typebox/build/type/action/required.mjs
|
|
@@ -19253,11 +19142,8 @@ function Instantiate(context, type) {
|
|
|
19253
19142
|
}
|
|
19254
19143
|
|
|
19255
19144
|
// node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
|
|
19256
|
-
function AddImmutableOperation(type) {
|
|
19257
|
-
return memory_exports.Update(type, { "~immutable": true }, {});
|
|
19258
|
-
}
|
|
19259
19145
|
function AddImmutableAction(type, options) {
|
|
19260
|
-
const result = memory_exports.Update(
|
|
19146
|
+
const result = memory_exports.Update(type, { "~immutable": true }, options);
|
|
19261
19147
|
return result;
|
|
19262
19148
|
}
|
|
19263
19149
|
function AddImmutableInstantiate(context, state, type, options) {
|
|
@@ -19273,6 +19159,11 @@ function AddImmutable(type, options = {}) {
|
|
|
19273
19159
|
return AddImmutableAction(type, options);
|
|
19274
19160
|
}
|
|
19275
19161
|
|
|
19162
|
+
// node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
19163
|
+
function RemoveReadonlyDeferred(type, options = {}) {
|
|
19164
|
+
return Deferred("RemoveReadonly", [type], options);
|
|
19165
|
+
}
|
|
19166
|
+
|
|
19276
19167
|
// node_modules/typebox/build/type/action/evaluate.mjs
|
|
19277
19168
|
function EvaluateDeferred(type, options = {}) {
|
|
19278
19169
|
return Deferred("Evaluate", [type], options);
|
|
@@ -19340,7 +19231,7 @@ __export(typebox_exports, {
|
|
|
19340
19231
|
IsAny: () => IsAny,
|
|
19341
19232
|
IsArray: () => IsArray2,
|
|
19342
19233
|
IsBigInt: () => IsBigInt2,
|
|
19343
|
-
IsBoolean: () =>
|
|
19234
|
+
IsBoolean: () => IsBoolean2,
|
|
19344
19235
|
IsCall: () => IsCall,
|
|
19345
19236
|
IsCodec: () => IsCodec,
|
|
19346
19237
|
IsConstructor: () => IsConstructor2,
|
|
@@ -19359,7 +19250,7 @@ __export(typebox_exports, {
|
|
|
19359
19250
|
IsLiteral: () => IsLiteral,
|
|
19360
19251
|
IsNever: () => IsNever,
|
|
19361
19252
|
IsNull: () => IsNull2,
|
|
19362
|
-
IsNumber: () =>
|
|
19253
|
+
IsNumber: () => IsNumber2,
|
|
19363
19254
|
IsObject: () => IsObject2,
|
|
19364
19255
|
IsOptional: () => IsOptional,
|
|
19365
19256
|
IsParameter: () => IsParameter,
|
|
@@ -19369,7 +19260,7 @@ __export(typebox_exports, {
|
|
|
19369
19260
|
IsRefine: () => IsRefine,
|
|
19370
19261
|
IsRest: () => IsRest,
|
|
19371
19262
|
IsSchema: () => IsSchema,
|
|
19372
|
-
IsString: () =>
|
|
19263
|
+
IsString: () => IsString2,
|
|
19373
19264
|
IsSymbol: () => IsSymbol2,
|
|
19374
19265
|
IsTemplateLiteral: () => IsTemplateLiteral,
|
|
19375
19266
|
IsThis: () => IsThis,
|
|
@@ -19494,6 +19385,7 @@ __export(util_exports, {
|
|
|
19494
19385
|
required: () => required,
|
|
19495
19386
|
safeExtend: () => safeExtend,
|
|
19496
19387
|
shallowClone: () => shallowClone,
|
|
19388
|
+
sizeCaps: () => sizeCaps,
|
|
19497
19389
|
slugify: () => slugify,
|
|
19498
19390
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
19499
19391
|
toZod: () => toZod,
|
|
@@ -20013,6 +19905,18 @@ function prefixIssues(path3, issues) {
|
|
|
20013
19905
|
function unwrapMessage(message) {
|
|
20014
19906
|
return typeof message === "string" ? message : message?.message;
|
|
20015
19907
|
}
|
|
19908
|
+
function sizeCaps(defChecks) {
|
|
19909
|
+
const caps = [];
|
|
19910
|
+
for (const ch of defChecks ?? []) {
|
|
19911
|
+
const d = ch._zod.def;
|
|
19912
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
19913
|
+
break;
|
|
19914
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
19915
|
+
if (max >= 0)
|
|
19916
|
+
caps.push([max, ch]);
|
|
19917
|
+
}
|
|
19918
|
+
return caps;
|
|
19919
|
+
}
|
|
20016
19920
|
function attachSchema(issues, start, inst) {
|
|
20017
19921
|
var _a3;
|
|
20018
19922
|
for (let i = start; i < issues.length; i++) {
|
|
@@ -21072,7 +20976,7 @@ ${content.join("\n")}
|
|
|
21072
20976
|
var version = {
|
|
21073
20977
|
major: 4,
|
|
21074
20978
|
minor: 6,
|
|
21075
|
-
patch:
|
|
20979
|
+
patch: 7
|
|
21076
20980
|
};
|
|
21077
20981
|
|
|
21078
20982
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -21646,6 +21550,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
21646
21550
|
return payload;
|
|
21647
21551
|
};
|
|
21648
21552
|
});
|
|
21553
|
+
function capSize(inst, size) {
|
|
21554
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
21555
|
+
if (!caps.length)
|
|
21556
|
+
return;
|
|
21557
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
21558
|
+
const parse5 = inst._zod.parse;
|
|
21559
|
+
inst._zod.parse = (payload, ctx) => {
|
|
21560
|
+
const n = size(payload.value);
|
|
21561
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
21562
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
21563
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
21564
|
+
const start = payload.issues.length;
|
|
21565
|
+
ch._zod.check(payload);
|
|
21566
|
+
payload.issues[start].continue = false;
|
|
21567
|
+
attachSchema(payload.issues, start, inst);
|
|
21568
|
+
return payload;
|
|
21569
|
+
}
|
|
21570
|
+
}
|
|
21571
|
+
}
|
|
21572
|
+
return parse5(payload, ctx);
|
|
21573
|
+
};
|
|
21574
|
+
}
|
|
21575
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
21649
21576
|
function handleArrayResult(result, final, index) {
|
|
21650
21577
|
if (result.issues.length) {
|
|
21651
21578
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -21689,6 +21616,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
21689
21616
|
}
|
|
21690
21617
|
return payload;
|
|
21691
21618
|
};
|
|
21619
|
+
capSize(inst, arraySize);
|
|
21692
21620
|
});
|
|
21693
21621
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
21694
21622
|
const isPresent = key in input;
|