@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
|
@@ -15052,14 +15052,6 @@ var Metrics = {
|
|
|
15052
15052
|
update: 0
|
|
15053
15053
|
};
|
|
15054
15054
|
|
|
15055
|
-
// node_modules/typebox/build/system/settings/settings.mjs
|
|
15056
|
-
var settings_exports = {};
|
|
15057
|
-
__export(settings_exports, {
|
|
15058
|
-
Get: () => Get,
|
|
15059
|
-
Reset: () => Reset,
|
|
15060
|
-
Set: () => Set2
|
|
15061
|
-
});
|
|
15062
|
-
|
|
15063
15055
|
// node_modules/typebox/build/guard/guard.mjs
|
|
15064
15056
|
var guard_exports = {};
|
|
15065
15057
|
__export(guard_exports, {
|
|
@@ -15333,88 +15325,13 @@ function IsDeepEqual(left, right) {
|
|
|
15333
15325
|
return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
|
|
15334
15326
|
}
|
|
15335
15327
|
|
|
15336
|
-
// node_modules/typebox/build/guard/globals.mjs
|
|
15337
|
-
var globals_exports = {};
|
|
15338
|
-
__export(globals_exports, {
|
|
15339
|
-
IsBigInt64Array: () => IsBigInt64Array,
|
|
15340
|
-
IsBigUint64Array: () => IsBigUint64Array,
|
|
15341
|
-
IsBoolean: () => IsBoolean2,
|
|
15342
|
-
IsDate: () => IsDate,
|
|
15343
|
-
IsFloat32Array: () => IsFloat32Array,
|
|
15344
|
-
IsFloat64Array: () => IsFloat64Array,
|
|
15345
|
-
IsInt16Array: () => IsInt16Array,
|
|
15346
|
-
IsInt32Array: () => IsInt32Array,
|
|
15347
|
-
IsInt8Array: () => IsInt8Array,
|
|
15348
|
-
IsMap: () => IsMap,
|
|
15349
|
-
IsNumber: () => IsNumber2,
|
|
15350
|
-
IsRegExp: () => IsRegExp,
|
|
15351
|
-
IsSet: () => IsSet,
|
|
15352
|
-
IsString: () => IsString2,
|
|
15353
|
-
IsTypeArray: () => IsTypeArray,
|
|
15354
|
-
IsUint16Array: () => IsUint16Array,
|
|
15355
|
-
IsUint32Array: () => IsUint32Array,
|
|
15356
|
-
IsUint8Array: () => IsUint8Array,
|
|
15357
|
-
IsUint8ClampedArray: () => IsUint8ClampedArray
|
|
15358
|
-
});
|
|
15359
|
-
function IsBoolean2(value) {
|
|
15360
|
-
return value instanceof Boolean;
|
|
15361
|
-
}
|
|
15362
|
-
function IsNumber2(value) {
|
|
15363
|
-
return value instanceof Number;
|
|
15364
|
-
}
|
|
15365
|
-
function IsString2(value) {
|
|
15366
|
-
return value instanceof String;
|
|
15367
|
-
}
|
|
15368
|
-
function IsTypeArray(value) {
|
|
15369
|
-
return globalThis.ArrayBuffer.isView(value);
|
|
15370
|
-
}
|
|
15371
|
-
function IsInt8Array(value) {
|
|
15372
|
-
return value instanceof globalThis.Int8Array;
|
|
15373
|
-
}
|
|
15374
|
-
function IsUint8Array(value) {
|
|
15375
|
-
return value instanceof globalThis.Uint8Array;
|
|
15376
|
-
}
|
|
15377
|
-
function IsUint8ClampedArray(value) {
|
|
15378
|
-
return value instanceof globalThis.Uint8ClampedArray;
|
|
15379
|
-
}
|
|
15380
|
-
function IsInt16Array(value) {
|
|
15381
|
-
return value instanceof globalThis.Int16Array;
|
|
15382
|
-
}
|
|
15383
|
-
function IsUint16Array(value) {
|
|
15384
|
-
return value instanceof globalThis.Uint16Array;
|
|
15385
|
-
}
|
|
15386
|
-
function IsInt32Array(value) {
|
|
15387
|
-
return value instanceof globalThis.Int32Array;
|
|
15388
|
-
}
|
|
15389
|
-
function IsUint32Array(value) {
|
|
15390
|
-
return value instanceof globalThis.Uint32Array;
|
|
15391
|
-
}
|
|
15392
|
-
function IsFloat32Array(value) {
|
|
15393
|
-
return value instanceof globalThis.Float32Array;
|
|
15394
|
-
}
|
|
15395
|
-
function IsFloat64Array(value) {
|
|
15396
|
-
return value instanceof globalThis.Float64Array;
|
|
15397
|
-
}
|
|
15398
|
-
function IsBigInt64Array(value) {
|
|
15399
|
-
return value instanceof globalThis.BigInt64Array;
|
|
15400
|
-
}
|
|
15401
|
-
function IsBigUint64Array(value) {
|
|
15402
|
-
return value instanceof globalThis.BigUint64Array;
|
|
15403
|
-
}
|
|
15404
|
-
function IsRegExp(value) {
|
|
15405
|
-
return value instanceof globalThis.RegExp;
|
|
15406
|
-
}
|
|
15407
|
-
function IsDate(value) {
|
|
15408
|
-
return value instanceof globalThis.Date;
|
|
15409
|
-
}
|
|
15410
|
-
function IsSet(value) {
|
|
15411
|
-
return value instanceof globalThis.Set;
|
|
15412
|
-
}
|
|
15413
|
-
function IsMap(value) {
|
|
15414
|
-
return value instanceof globalThis.Map;
|
|
15415
|
-
}
|
|
15416
|
-
|
|
15417
15328
|
// node_modules/typebox/build/system/settings/settings.mjs
|
|
15329
|
+
var settings_exports = {};
|
|
15330
|
+
__export(settings_exports, {
|
|
15331
|
+
Get: () => Get,
|
|
15332
|
+
Reset: () => Reset,
|
|
15333
|
+
Set: () => Set2
|
|
15334
|
+
});
|
|
15418
15335
|
var settings = {
|
|
15419
15336
|
immutableTypes: false,
|
|
15420
15337
|
maxErrors: 8,
|
|
@@ -15449,31 +15366,55 @@ function Get() {
|
|
|
15449
15366
|
return settings;
|
|
15450
15367
|
}
|
|
15451
15368
|
|
|
15452
|
-
// node_modules/typebox/build/system/memory/
|
|
15453
|
-
function
|
|
15454
|
-
return
|
|
15369
|
+
// node_modules/typebox/build/system/memory/keys.mjs
|
|
15370
|
+
function Keys2(value) {
|
|
15371
|
+
return [...guard_exports.Keys(value), ...guard_exports.Symbols(value)];
|
|
15372
|
+
}
|
|
15373
|
+
|
|
15374
|
+
// node_modules/typebox/build/system/memory/finalize.mjs
|
|
15375
|
+
function Freeze(value, seen) {
|
|
15376
|
+
if (seen.has(value))
|
|
15377
|
+
return;
|
|
15378
|
+
seen.add(value);
|
|
15379
|
+
for (const key of Keys2(value)) {
|
|
15380
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15381
|
+
if (!descriptor || !("value" in descriptor))
|
|
15382
|
+
continue;
|
|
15383
|
+
if (guard_exports.IsObject(descriptor.value))
|
|
15384
|
+
Freeze(descriptor.value, seen);
|
|
15385
|
+
}
|
|
15386
|
+
Object.freeze(value);
|
|
15387
|
+
}
|
|
15388
|
+
function Finalize(value) {
|
|
15389
|
+
if (!settings_exports.Get().immutableTypes)
|
|
15390
|
+
return value;
|
|
15391
|
+
Freeze(value, /* @__PURE__ */ new WeakSet());
|
|
15392
|
+
return value;
|
|
15455
15393
|
}
|
|
15456
15394
|
|
|
15457
15395
|
// node_modules/typebox/build/system/memory/assign.mjs
|
|
15458
15396
|
function Assign(left, right) {
|
|
15459
15397
|
Metrics.assign += 1;
|
|
15460
|
-
|
|
15398
|
+
const result = {}, rightKeys = Keys2(right), leftKeys = Keys2(left);
|
|
15399
|
+
for (const key of leftKeys) {
|
|
15400
|
+
if (rightKeys.includes(key))
|
|
15401
|
+
continue;
|
|
15402
|
+
Object.defineProperty(result, key, Object.getOwnPropertyDescriptor(left, key));
|
|
15403
|
+
}
|
|
15404
|
+
for (const key of rightKeys) {
|
|
15405
|
+
Object.defineProperty(result, key, Object.getOwnPropertyDescriptor(right, key));
|
|
15406
|
+
}
|
|
15407
|
+
return Finalize(result);
|
|
15461
15408
|
}
|
|
15462
15409
|
|
|
15463
15410
|
// node_modules/typebox/build/system/memory/clone.mjs
|
|
15464
|
-
function
|
|
15465
|
-
|
|
15466
|
-
}
|
|
15467
|
-
function IsSchemaObject(value) {
|
|
15468
|
-
return guard_exports.HasPropertyKey(value, "~kind") || guard_exports.HasPropertyKey(value, "~unsafe");
|
|
15469
|
-
}
|
|
15470
|
-
function FromSchemaObject(value) {
|
|
15411
|
+
function Clone(value) {
|
|
15412
|
+
Metrics.clone += 1;
|
|
15471
15413
|
const result = {};
|
|
15472
|
-
for (const key of
|
|
15414
|
+
for (const key of Keys2(value)) {
|
|
15473
15415
|
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15474
15416
|
continue;
|
|
15475
15417
|
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15476
|
-
descriptor.value = FromValue(descriptor.value);
|
|
15477
15418
|
if (guard_exports.IsEqual(descriptor.enumerable, true)) {
|
|
15478
15419
|
result[key] = descriptor.value;
|
|
15479
15420
|
} else {
|
|
@@ -15482,46 +15423,12 @@ function FromSchemaObject(value) {
|
|
|
15482
15423
|
}
|
|
15483
15424
|
return result;
|
|
15484
15425
|
}
|
|
15485
|
-
function FromPlainObject(value) {
|
|
15486
|
-
const result = {};
|
|
15487
|
-
for (const key of guard_exports.Keys(value)) {
|
|
15488
|
-
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15489
|
-
continue;
|
|
15490
|
-
result[key] = FromValue(value[key]);
|
|
15491
|
-
}
|
|
15492
|
-
for (const key of guard_exports.Symbols(value)) {
|
|
15493
|
-
result[key] = FromValue(value[key]);
|
|
15494
|
-
}
|
|
15495
|
-
return result;
|
|
15496
|
-
}
|
|
15497
|
-
function FromObject(value) {
|
|
15498
|
-
return guard_exports.IsClassInstance(value) ? FromClassInstance(value) : IsSchemaObject(value) ? FromSchemaObject(value) : FromPlainObject(value);
|
|
15499
|
-
}
|
|
15500
|
-
function FromArray(value) {
|
|
15501
|
-
return value.map((element) => FromValue(element));
|
|
15502
|
-
}
|
|
15503
|
-
function FromTypedArray(value) {
|
|
15504
|
-
return value.slice();
|
|
15505
|
-
}
|
|
15506
|
-
function FromRegExp(value) {
|
|
15507
|
-
return new RegExp(value.source, value.flags);
|
|
15508
|
-
}
|
|
15509
|
-
function FromMap(value) {
|
|
15510
|
-
return new Map(FromValue([...value.entries()]));
|
|
15511
|
-
}
|
|
15512
|
-
function FromSet(value) {
|
|
15513
|
-
return new Set(FromValue([...value.values()]));
|
|
15514
|
-
}
|
|
15515
|
-
function FromValue(value) {
|
|
15516
|
-
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;
|
|
15517
|
-
}
|
|
15518
|
-
function Clone(value) {
|
|
15519
|
-
Metrics.clone += 1;
|
|
15520
|
-
return FromValue(value);
|
|
15521
|
-
}
|
|
15522
15426
|
|
|
15523
15427
|
// node_modules/typebox/build/system/memory/create.mjs
|
|
15524
|
-
function
|
|
15428
|
+
function WithEnumerable(left, right) {
|
|
15429
|
+
return { ...left, ...right };
|
|
15430
|
+
}
|
|
15431
|
+
function WithHidden(left, right) {
|
|
15525
15432
|
for (const key of Object.keys(right)) {
|
|
15526
15433
|
Object.defineProperty(left, key, {
|
|
15527
15434
|
configurable: true,
|
|
@@ -15532,44 +15439,52 @@ function MergeHidden(left, right) {
|
|
|
15532
15439
|
}
|
|
15533
15440
|
return left;
|
|
15534
15441
|
}
|
|
15535
|
-
function Merge(left, right) {
|
|
15536
|
-
return { ...left, ...right };
|
|
15537
|
-
}
|
|
15538
15442
|
function Create(hidden, enumerable, options = {}) {
|
|
15539
15443
|
Metrics.create += 1;
|
|
15540
|
-
const
|
|
15541
|
-
const withHidden = settings_exports.Get().enumerableKind ?
|
|
15542
|
-
return
|
|
15444
|
+
const withEnumerable = WithEnumerable(enumerable, options);
|
|
15445
|
+
const withHidden = settings_exports.Get().enumerableKind ? WithEnumerable(withEnumerable, hidden) : WithHidden(withEnumerable, hidden);
|
|
15446
|
+
return Finalize(withHidden);
|
|
15543
15447
|
}
|
|
15544
15448
|
|
|
15545
15449
|
// node_modules/typebox/build/system/memory/discard.mjs
|
|
15546
15450
|
function Discard(value, propertyKeys) {
|
|
15547
15451
|
Metrics.discard += 1;
|
|
15548
15452
|
const result = {};
|
|
15549
|
-
for (const key of
|
|
15453
|
+
for (const key of Keys2(value)) {
|
|
15550
15454
|
if (propertyKeys.includes(key))
|
|
15551
15455
|
continue;
|
|
15552
15456
|
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
15553
|
-
descriptor.value = Clone(descriptor.value);
|
|
15554
15457
|
Object.defineProperty(result, key, descriptor);
|
|
15555
15458
|
}
|
|
15556
|
-
return
|
|
15459
|
+
return Finalize(result);
|
|
15557
15460
|
}
|
|
15558
15461
|
|
|
15559
15462
|
// node_modules/typebox/build/system/memory/update.mjs
|
|
15560
|
-
function
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15463
|
+
function WithCurrent(current3, hiddenKeys, enumerableKeys, result) {
|
|
15464
|
+
for (const key of Keys2(current3)) {
|
|
15465
|
+
if (guard_exports.IsUnsafePropertyKey(key) || hiddenKeys.includes(key) || enumerableKeys.includes(key))
|
|
15466
|
+
continue;
|
|
15467
|
+
const descriptor = Object.getOwnPropertyDescriptor(current3, key);
|
|
15468
|
+
Object.defineProperty(result, key, descriptor);
|
|
15469
|
+
}
|
|
15470
|
+
}
|
|
15471
|
+
function WithHidden2(hidden, keys, result) {
|
|
15472
|
+
const enumerableKind = settings_exports.Get().enumerableKind;
|
|
15473
|
+
for (const key of keys) {
|
|
15474
|
+
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15475
|
+
continue;
|
|
15565
15476
|
Object.defineProperty(result, key, {
|
|
15566
15477
|
configurable: true,
|
|
15567
15478
|
writable: true,
|
|
15568
|
-
enumerable:
|
|
15479
|
+
enumerable: enumerableKind,
|
|
15569
15480
|
value: hidden[key]
|
|
15570
15481
|
});
|
|
15571
15482
|
}
|
|
15572
|
-
|
|
15483
|
+
}
|
|
15484
|
+
function WithEnumerable2(enumerable, keys, result) {
|
|
15485
|
+
for (const key of keys) {
|
|
15486
|
+
if (guard_exports.IsUnsafePropertyKey(key))
|
|
15487
|
+
continue;
|
|
15573
15488
|
Object.defineProperty(result, key, {
|
|
15574
15489
|
configurable: true,
|
|
15575
15490
|
enumerable: true,
|
|
@@ -15577,7 +15492,14 @@ function Update(current3, hidden, enumerable) {
|
|
|
15577
15492
|
value: enumerable[key]
|
|
15578
15493
|
});
|
|
15579
15494
|
}
|
|
15580
|
-
|
|
15495
|
+
}
|
|
15496
|
+
function Update(current3, hidden, enumerable) {
|
|
15497
|
+
Metrics.update += 1;
|
|
15498
|
+
const result = {}, hiddenKeys = Keys2(hidden), enumerableKeys = Keys2(enumerable);
|
|
15499
|
+
WithCurrent(current3, hiddenKeys, enumerableKeys, result);
|
|
15500
|
+
WithHidden2(hidden, hiddenKeys, result);
|
|
15501
|
+
WithEnumerable2(enumerable, enumerableKeys, result);
|
|
15502
|
+
return Finalize(result);
|
|
15581
15503
|
}
|
|
15582
15504
|
|
|
15583
15505
|
// node_modules/typebox/build/type/types/schema.mjs
|
|
@@ -15597,11 +15519,8 @@ function IsDeferred(value) {
|
|
|
15597
15519
|
}
|
|
15598
15520
|
|
|
15599
15521
|
// node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
|
|
15600
|
-
function AddReadonlyOperation(type) {
|
|
15601
|
-
return memory_exports.Update(type, { "~readonly": true }, {});
|
|
15602
|
-
}
|
|
15603
15522
|
function AddReadonlyAction(type, options) {
|
|
15604
|
-
const result = memory_exports.Update(
|
|
15523
|
+
const result = memory_exports.Update(type, { "~readonly": true }, options);
|
|
15605
15524
|
return result;
|
|
15606
15525
|
}
|
|
15607
15526
|
function AddReadonlyInstantiate(context, state, type, options) {
|
|
@@ -15610,11 +15529,8 @@ function AddReadonlyInstantiate(context, state, type, options) {
|
|
|
15610
15529
|
}
|
|
15611
15530
|
|
|
15612
15531
|
// node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
|
|
15613
|
-
function AddOptionalOperation(type) {
|
|
15614
|
-
return memory_exports.Update(type, { "~optional": true }, {});
|
|
15615
|
-
}
|
|
15616
15532
|
function AddOptionalAction(type, options) {
|
|
15617
|
-
const result = memory_exports.Update(
|
|
15533
|
+
const result = memory_exports.Update(type, { "~optional": true }, options);
|
|
15618
15534
|
return result;
|
|
15619
15535
|
}
|
|
15620
15536
|
function AddOptionalInstantiate(context, state, type, options) {
|
|
@@ -15827,29 +15743,6 @@ function Unreachable() {
|
|
|
15827
15743
|
}
|
|
15828
15744
|
|
|
15829
15745
|
// node_modules/typebox/build/system/hashing/hash.mjs
|
|
15830
|
-
var ByteMarker;
|
|
15831
|
-
(function(ByteMarker2) {
|
|
15832
|
-
ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
|
|
15833
|
-
ByteMarker2[ByteMarker2["BigInt"] = 1] = "BigInt";
|
|
15834
|
-
ByteMarker2[ByteMarker2["Boolean"] = 2] = "Boolean";
|
|
15835
|
-
ByteMarker2[ByteMarker2["Date"] = 3] = "Date";
|
|
15836
|
-
ByteMarker2[ByteMarker2["Constructor"] = 4] = "Constructor";
|
|
15837
|
-
ByteMarker2[ByteMarker2["Function"] = 5] = "Function";
|
|
15838
|
-
ByteMarker2[ByteMarker2["Null"] = 6] = "Null";
|
|
15839
|
-
ByteMarker2[ByteMarker2["Number"] = 7] = "Number";
|
|
15840
|
-
ByteMarker2[ByteMarker2["Object"] = 8] = "Object";
|
|
15841
|
-
ByteMarker2[ByteMarker2["RegExp"] = 9] = "RegExp";
|
|
15842
|
-
ByteMarker2[ByteMarker2["String"] = 10] = "String";
|
|
15843
|
-
ByteMarker2[ByteMarker2["Symbol"] = 11] = "Symbol";
|
|
15844
|
-
ByteMarker2[ByteMarker2["TypeArray"] = 12] = "TypeArray";
|
|
15845
|
-
ByteMarker2[ByteMarker2["Undefined"] = 13] = "Undefined";
|
|
15846
|
-
})(ByteMarker || (ByteMarker = {}));
|
|
15847
|
-
var Accumulator = BigInt("14695981039346656037");
|
|
15848
|
-
var [Prime, Size] = [BigInt("1099511628211"), BigInt(
|
|
15849
|
-
"18446744073709551616"
|
|
15850
|
-
/* 2 ^ 64 */
|
|
15851
|
-
)];
|
|
15852
|
-
var Bytes = Array.from({ length: 256 }).map((_, i) => BigInt(i));
|
|
15853
15746
|
var F64 = new Float64Array(1);
|
|
15854
15747
|
var F64In = new DataView(F64.buffer);
|
|
15855
15748
|
var F64Out = new Uint8Array(F64.buffer);
|
|
@@ -15950,7 +15843,7 @@ function IsBigInt2(value) {
|
|
|
15950
15843
|
function Boolean2(options) {
|
|
15951
15844
|
return memory_exports.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
|
|
15952
15845
|
}
|
|
15953
|
-
function
|
|
15846
|
+
function IsBoolean2(value) {
|
|
15954
15847
|
return IsKind(value, "Boolean");
|
|
15955
15848
|
}
|
|
15956
15849
|
|
|
@@ -16017,7 +15910,7 @@ var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
|
16017
15910
|
function Number2(options) {
|
|
16018
15911
|
return memory_exports.Create({ "~kind": "Number" }, { type: "number" }, options);
|
|
16019
15912
|
}
|
|
16020
|
-
function
|
|
15913
|
+
function IsNumber2(value) {
|
|
16021
15914
|
return IsKind(value, "Number");
|
|
16022
15915
|
}
|
|
16023
15916
|
|
|
@@ -16047,7 +15940,7 @@ var StringPattern = ".*";
|
|
|
16047
15940
|
function String2(options) {
|
|
16048
15941
|
return memory_exports.Create({ "~kind": "String" }, { type: "string" }, options);
|
|
16049
15942
|
}
|
|
16050
|
-
function
|
|
15943
|
+
function IsString2(value) {
|
|
16051
15944
|
return IsKind(value, "String");
|
|
16052
15945
|
}
|
|
16053
15946
|
|
|
@@ -16165,25 +16058,17 @@ function TupleOptions(type) {
|
|
|
16165
16058
|
return memory_exports.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
|
|
16166
16059
|
}
|
|
16167
16060
|
|
|
16168
|
-
// node_modules/typebox/build/type/engine/
|
|
16169
|
-
function
|
|
16170
|
-
|
|
16171
|
-
}
|
|
16172
|
-
|
|
16173
|
-
const result = memory_exports.Update(RemoveReadonlyOperation(type), {}, options);
|
|
16061
|
+
// node_modules/typebox/build/type/engine/tuple/to_object.mjs
|
|
16062
|
+
function TupleElementsToProperties(types) {
|
|
16063
|
+
const result = types.reduceRight((result2, right, index) => {
|
|
16064
|
+
return { [index]: right, ...result2 };
|
|
16065
|
+
}, {});
|
|
16174
16066
|
return result;
|
|
16175
16067
|
}
|
|
16176
|
-
function
|
|
16177
|
-
const
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
// node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
16182
|
-
function RemoveReadonlyDeferred(type, options = {}) {
|
|
16183
|
-
return Deferred("RemoveReadonly", [type], options);
|
|
16184
|
-
}
|
|
16185
|
-
function RemoveReadonly(type, options = {}) {
|
|
16186
|
-
return RemoveReadonlyAction(type, options);
|
|
16068
|
+
function TupleToObject(type) {
|
|
16069
|
+
const properties = TupleElementsToProperties(type.items);
|
|
16070
|
+
const result = _Object_(properties);
|
|
16071
|
+
return result;
|
|
16187
16072
|
}
|
|
16188
16073
|
|
|
16189
16074
|
// node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
|
|
@@ -16199,46 +16084,39 @@ function RemoveOptionalInstantiate(context, state, type, options) {
|
|
|
16199
16084
|
return RemoveOptionalAction(instantiatedType, options);
|
|
16200
16085
|
}
|
|
16201
16086
|
|
|
16202
|
-
// node_modules/typebox/build/type/
|
|
16203
|
-
function
|
|
16204
|
-
return
|
|
16205
|
-
}
|
|
16206
|
-
function RemoveOptional(type, options = {}) {
|
|
16207
|
-
return RemoveOptionalAction(type, options);
|
|
16087
|
+
// node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
|
|
16088
|
+
function RemoveReadonlyOperation(type) {
|
|
16089
|
+
return memory_exports.Discard(type, ["~readonly"]);
|
|
16208
16090
|
}
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
function TupleElementsToProperties(types) {
|
|
16212
|
-
const result = types.reduceRight((result2, right, index) => {
|
|
16213
|
-
return { [index]: right, ...result2 };
|
|
16214
|
-
}, {});
|
|
16091
|
+
function RemoveReadonlyAction(type, options) {
|
|
16092
|
+
const result = memory_exports.Update(RemoveReadonlyOperation(type), {}, options);
|
|
16215
16093
|
return result;
|
|
16216
16094
|
}
|
|
16217
|
-
function
|
|
16218
|
-
const
|
|
16219
|
-
|
|
16220
|
-
return result;
|
|
16095
|
+
function RemoveReadonlyInstantiate(context, state, type, options) {
|
|
16096
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
16097
|
+
return RemoveReadonlyAction(instantiatedType, options);
|
|
16221
16098
|
}
|
|
16222
16099
|
|
|
16223
|
-
// node_modules/typebox/build/type/engine/evaluate/
|
|
16224
|
-
function
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
function IsReadonlyProperty(left, right) {
|
|
16228
|
-
return IsReadonly(left) ? IsReadonly(right) ? true : false : false;
|
|
16229
|
-
}
|
|
16230
|
-
function IsOptionalProperty(left, right) {
|
|
16231
|
-
return IsOptional(left) ? IsOptional(right) ? true : false : false;
|
|
16232
|
-
}
|
|
16233
|
-
function CompositeProperty(left, right) {
|
|
16234
|
-
const isReadonly = IsReadonlyProperty(left, right);
|
|
16235
|
-
const isOptional = IsOptionalProperty(left, right);
|
|
16100
|
+
// node_modules/typebox/build/type/engine/evaluate/property.mjs
|
|
16101
|
+
function EvaluatePropertyIntersect(left, right) {
|
|
16102
|
+
const isReadonly = IsReadonly(left) && IsReadonly(right);
|
|
16103
|
+
const isOptional = IsOptional(left) && IsOptional(right);
|
|
16236
16104
|
const evaluated = EvaluateIntersect([left, right]);
|
|
16237
|
-
const property =
|
|
16238
|
-
return isReadonly && isOptional ?
|
|
16105
|
+
const property = RemoveReadonlyAction(RemoveOptionalAction(evaluated, {}), {});
|
|
16106
|
+
return isReadonly && isOptional ? AddReadonlyAction(AddOptionalAction(property, {}), {}) : isReadonly ? AddReadonlyAction(property, {}) : isOptional ? AddOptionalAction(property, {}) : property;
|
|
16107
|
+
}
|
|
16108
|
+
function EvaluatePropertyUnion(left, right) {
|
|
16109
|
+
const isReadonly = IsReadonly(left) || IsReadonly(right);
|
|
16110
|
+
const isOptional = IsOptional(left) || IsOptional(right);
|
|
16111
|
+
const leftProperty = RemoveReadonlyAction(RemoveOptionalAction(left, {}), {});
|
|
16112
|
+
const rightProperty = RemoveReadonlyAction(RemoveOptionalAction(right, {}), {});
|
|
16113
|
+
const property = EvaluateUnion([leftProperty, rightProperty]);
|
|
16114
|
+
return isReadonly && isOptional ? AddReadonlyAction(AddOptionalAction(property, {}), {}) : isReadonly ? AddReadonlyAction(property, {}) : isOptional ? AddOptionalAction(property, {}) : property;
|
|
16239
16115
|
}
|
|
16116
|
+
|
|
16117
|
+
// node_modules/typebox/build/type/engine/evaluate/composite.mjs
|
|
16240
16118
|
function CompositePropertyKey(left, right, key) {
|
|
16241
|
-
return key in left ? key in right ?
|
|
16119
|
+
return key in left ? key in right ? EvaluatePropertyIntersect(left[key], right[key]) : left[key] : key in right ? right[key] : Never();
|
|
16242
16120
|
}
|
|
16243
16121
|
function CompositeProperties(left, right) {
|
|
16244
16122
|
const keys = /* @__PURE__ */ new Set([...guard_exports.Keys(left), ...guard_exports.Keys(right)]);
|
|
@@ -16264,6 +16142,9 @@ function NarrowCompareRule(left, right) {
|
|
|
16264
16142
|
const result = Compare(left, right);
|
|
16265
16143
|
return guard_exports.IsEqual(result, CompareResultLeftInside) ? left : guard_exports.IsEqual(result, CompareResultRightInside) ? right : guard_exports.IsEqual(result, CompareResultEqual) ? right : Never();
|
|
16266
16144
|
}
|
|
16145
|
+
function CanComposite(type) {
|
|
16146
|
+
return IsObject2(type) || IsTuple(type);
|
|
16147
|
+
}
|
|
16267
16148
|
function NarrowCompositeRule(left, right) {
|
|
16268
16149
|
const canCompositeLeft = CanComposite(left);
|
|
16269
16150
|
const canCompositeRight = CanComposite(right);
|
|
@@ -16402,7 +16283,7 @@ function Flatten(types, result = []) {
|
|
|
16402
16283
|
|
|
16403
16284
|
// node_modules/typebox/build/type/engine/record/from_key_union.mjs
|
|
16404
16285
|
function StringOrNumberCheck(types) {
|
|
16405
|
-
return types.some((type) =>
|
|
16286
|
+
return types.some((type) => IsString2(type) || IsNumber2(type) || IsInteger2(type));
|
|
16406
16287
|
}
|
|
16407
16288
|
function TryBuildRecord(types, value) {
|
|
16408
16289
|
return guard_exports.IsEqual(StringOrNumberCheck(types), true) ? CreateRecord(StringKey, value) : void 0;
|
|
@@ -16425,7 +16306,7 @@ function FromUnionKey(types, value) {
|
|
|
16425
16306
|
|
|
16426
16307
|
// node_modules/typebox/build/type/engine/record/from_key.mjs
|
|
16427
16308
|
function FromKey(key, value) {
|
|
16428
|
-
const result = IsAny(key) ? FromAnyKey(value) :
|
|
16309
|
+
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_({});
|
|
16429
16310
|
return result;
|
|
16430
16311
|
}
|
|
16431
16312
|
|
|
@@ -16707,7 +16588,7 @@ function PropertyKeyQuotedMapping(input) {
|
|
|
16707
16588
|
return input;
|
|
16708
16589
|
}
|
|
16709
16590
|
function PropertyKeyIndexMapping(input) {
|
|
16710
|
-
return IsInteger2(input[3]) ? IntegerKey :
|
|
16591
|
+
return IsInteger2(input[3]) ? IntegerKey : IsNumber2(input[3]) ? NumberKey : IsSymbol2(input[3]) ? StringKey : IsString2(input[3]) ? StringKey : Unreachable2();
|
|
16711
16592
|
}
|
|
16712
16593
|
function PropertyKeyMapping(input) {
|
|
16713
16594
|
return input;
|
|
@@ -17386,7 +17267,7 @@ function EncodeUnion(types, right, pattern, result = []) {
|
|
|
17386
17267
|
return guard_exports.ShiftLeft(types, (head, tail) => EncodeUnion(tail, right, pattern, [...result, EncodeType(head, [], "")]), () => EncodeTypes(right, `${pattern}(${JoinString(result)})`));
|
|
17387
17268
|
}
|
|
17388
17269
|
function EncodeType(type, right, pattern) {
|
|
17389
|
-
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) :
|
|
17270
|
+
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;
|
|
17390
17271
|
}
|
|
17391
17272
|
function EncodeTypes(types, pattern) {
|
|
17392
17273
|
return guard_exports.ShiftLeft(types, (left, right) => EncodeType(left, right, pattern), () => pattern);
|
|
@@ -17521,7 +17402,7 @@ function ExtendsBigInt(inferred, left, right) {
|
|
|
17521
17402
|
|
|
17522
17403
|
// node_modules/typebox/build/type/extends/boolean.mjs
|
|
17523
17404
|
function ExtendsBoolean(inferred, left, right) {
|
|
17524
|
-
return
|
|
17405
|
+
return IsBoolean2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17525
17406
|
}
|
|
17526
17407
|
|
|
17527
17408
|
// node_modules/typebox/build/type/extends/parameters.mjs
|
|
@@ -17570,7 +17451,7 @@ function ExtendsFunction(inferred, parameters, returnType, right) {
|
|
|
17570
17451
|
|
|
17571
17452
|
// node_modules/typebox/build/type/extends/integer.mjs
|
|
17572
17453
|
function ExtendsInteger(inferred, left, right) {
|
|
17573
|
-
return IsInteger2(right) ? ExtendsTrue(inferred) :
|
|
17454
|
+
return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17574
17455
|
}
|
|
17575
17456
|
|
|
17576
17457
|
// node_modules/typebox/build/type/extends/intersect.mjs
|
|
@@ -17587,13 +17468,13 @@ function ExtendsLiteralBigInt(inferred, left, right) {
|
|
|
17587
17468
|
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17588
17469
|
}
|
|
17589
17470
|
function ExtendsLiteralBoolean(inferred, left, right) {
|
|
17590
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17471
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBoolean2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17591
17472
|
}
|
|
17592
17473
|
function ExtendsLiteralNumber(inferred, left, right) {
|
|
17593
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17474
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17594
17475
|
}
|
|
17595
17476
|
function ExtendsLiteralString(inferred, left, right) {
|
|
17596
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
17477
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsString2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
17597
17478
|
}
|
|
17598
17479
|
function ExtendsLiteral(inferred, left, right) {
|
|
17599
17480
|
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();
|
|
@@ -17611,7 +17492,7 @@ function ExtendsNull(inferred, left, right) {
|
|
|
17611
17492
|
|
|
17612
17493
|
// node_modules/typebox/build/type/extends/number.mjs
|
|
17613
17494
|
function ExtendsNumber(inferred, left, right) {
|
|
17614
|
-
return
|
|
17495
|
+
return IsNumber2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17615
17496
|
}
|
|
17616
17497
|
|
|
17617
17498
|
// node_modules/typebox/build/type/extends/object.mjs
|
|
@@ -17666,19 +17547,19 @@ function ExtendsObject(inferred, left, right) {
|
|
|
17666
17547
|
}
|
|
17667
17548
|
|
|
17668
17549
|
// node_modules/typebox/build/type/extends/record.mjs
|
|
17669
|
-
function
|
|
17550
|
+
function FromObject(inferred, properties) {
|
|
17670
17551
|
return guard_exports.IsEqual(guard_exports.Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
17671
17552
|
}
|
|
17672
17553
|
function FromRecord(inferred, _leftKey, leftValue, _rightKey, rightValue) {
|
|
17673
17554
|
return ExtendsLeft(inferred, leftValue, rightValue);
|
|
17674
17555
|
}
|
|
17675
17556
|
function ExtendsRecord(inferred, leftPattern, leftValue, right) {
|
|
17676
|
-
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ?
|
|
17557
|
+
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();
|
|
17677
17558
|
}
|
|
17678
17559
|
|
|
17679
17560
|
// node_modules/typebox/build/type/extends/string.mjs
|
|
17680
17561
|
function ExtendsString(inferred, left, right) {
|
|
17681
|
-
return
|
|
17562
|
+
return IsString2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
17682
17563
|
}
|
|
17683
17564
|
|
|
17684
17565
|
// node_modules/typebox/build/type/extends/symbol.mjs
|
|
@@ -17803,7 +17684,7 @@ function ExtendsVoid(inferred, left, right) {
|
|
|
17803
17684
|
|
|
17804
17685
|
// node_modules/typebox/build/type/extends/extends_left.mjs
|
|
17805
17686
|
function ExtendsLeft(inferred, left, right) {
|
|
17806
|
-
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) :
|
|
17687
|
+
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();
|
|
17807
17688
|
}
|
|
17808
17689
|
|
|
17809
17690
|
// node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
@@ -18408,7 +18289,7 @@ function CollapseIntersectProperties(left, right) {
|
|
|
18408
18289
|
const sharedKeys = guard_exports.Keys(left).filter((key) => guard_exports.HasPropertyKey(right, key));
|
|
18409
18290
|
const leftProperties = leftKeys.reduce((result, key) => ({ ...result, [key]: left[key] }), {});
|
|
18410
18291
|
const rightProperties = rightKeys.reduce((result, key) => ({ ...result, [key]: right[key] }), {});
|
|
18411
|
-
const sharedProperties = sharedKeys.reduce((result, key) => ({ ...result, [key]:
|
|
18292
|
+
const sharedProperties = sharedKeys.reduce((result, key) => ({ ...result, [key]: EvaluatePropertyIntersect(left[key], right[key]) }), {});
|
|
18412
18293
|
const unique = memory_exports.Assign(leftProperties, rightProperties);
|
|
18413
18294
|
const shared = memory_exports.Assign(unique, sharedProperties);
|
|
18414
18295
|
return shared;
|
|
@@ -18420,7 +18301,7 @@ function FromIntersect(types) {
|
|
|
18420
18301
|
}
|
|
18421
18302
|
|
|
18422
18303
|
// node_modules/typebox/build/type/engine/object/from_object.mjs
|
|
18423
|
-
function
|
|
18304
|
+
function FromObject2(properties) {
|
|
18424
18305
|
return properties;
|
|
18425
18306
|
}
|
|
18426
18307
|
|
|
@@ -18435,7 +18316,7 @@ function FromTuple(types) {
|
|
|
18435
18316
|
function CollapseUnionProperties(left, right) {
|
|
18436
18317
|
const sharedKeys = guard_exports.Keys(left).filter((key) => key in right);
|
|
18437
18318
|
const result = sharedKeys.reduce((result2, key) => {
|
|
18438
|
-
return { ...result2, [key]:
|
|
18319
|
+
return { ...result2, [key]: EvaluatePropertyUnion(left[key], right[key]) };
|
|
18439
18320
|
}, {});
|
|
18440
18321
|
return result;
|
|
18441
18322
|
}
|
|
@@ -18448,7 +18329,7 @@ function FromUnion3(types) {
|
|
|
18448
18329
|
|
|
18449
18330
|
// node_modules/typebox/build/type/engine/object/from_type.mjs
|
|
18450
18331
|
function FromType8(type) {
|
|
18451
|
-
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) ?
|
|
18332
|
+
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) : {};
|
|
18452
18333
|
}
|
|
18453
18334
|
|
|
18454
18335
|
// node_modules/typebox/build/type/engine/object/collapse.mjs
|
|
@@ -18475,7 +18356,7 @@ function NormalizeIndexerTypes(types) {
|
|
|
18475
18356
|
function NormalizeIndexer(type) {
|
|
18476
18357
|
return IsIntersect(type) ? Intersect(NormalizeIndexerTypes(type.allOf)) : IsUnion(type) ? Union(NormalizeIndexerTypes(type.anyOf)) : IsLiteral(type) ? NormalizeLiteral(type.const) : type;
|
|
18477
18358
|
}
|
|
18478
|
-
function
|
|
18359
|
+
function FromArray(type, indexer) {
|
|
18479
18360
|
const normalizedIndexer = NormalizeIndexer(indexer);
|
|
18480
18361
|
const check = Extends({}, normalizedIndexer, Number2());
|
|
18481
18362
|
const result = (
|
|
@@ -18585,8 +18466,8 @@ function FromIndexerNumber(properties) {
|
|
|
18585
18466
|
const result = EvaluateUnion(variants);
|
|
18586
18467
|
return result;
|
|
18587
18468
|
}
|
|
18588
|
-
function
|
|
18589
|
-
const result =
|
|
18469
|
+
function FromObject3(properties, indexer) {
|
|
18470
|
+
const result = IsNumber2(indexer) ? FromIndexerNumber(properties) : FromIndexer(properties, indexer);
|
|
18590
18471
|
return result;
|
|
18591
18472
|
}
|
|
18592
18473
|
|
|
@@ -18619,13 +18500,13 @@ function FromTupleWithoutIndexer(types) {
|
|
|
18619
18500
|
function FromTuple2(types, indexer) {
|
|
18620
18501
|
return (
|
|
18621
18502
|
// length (intrinsic)
|
|
18622
|
-
IsLiteral(indexer) && guard_exports.IsEqual(indexer.const, "length") ? Literal(types.length) :
|
|
18503
|
+
IsLiteral(indexer) && guard_exports.IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber2(indexer) || IsInteger2(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer)
|
|
18623
18504
|
);
|
|
18624
18505
|
}
|
|
18625
18506
|
|
|
18626
18507
|
// node_modules/typebox/build/type/engine/indexed/from_type.mjs
|
|
18627
18508
|
function FromType11(type, indexer) {
|
|
18628
|
-
return IsArray2(type) ?
|
|
18509
|
+
return IsArray2(type) ? FromArray(type.items, indexer) : IsObject2(type) ? FromObject3(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
|
|
18629
18510
|
}
|
|
18630
18511
|
|
|
18631
18512
|
// node_modules/typebox/build/type/engine/indexed/instantiate.mjs
|
|
@@ -18678,7 +18559,7 @@ function FromAny() {
|
|
|
18678
18559
|
}
|
|
18679
18560
|
|
|
18680
18561
|
// node_modules/typebox/build/type/engine/keyof/from_array.mjs
|
|
18681
|
-
function
|
|
18562
|
+
function FromArray2(_type) {
|
|
18682
18563
|
return Number2();
|
|
18683
18564
|
}
|
|
18684
18565
|
|
|
@@ -18689,7 +18570,7 @@ function FromPropertyKeys(keys) {
|
|
|
18689
18570
|
}, []);
|
|
18690
18571
|
return result;
|
|
18691
18572
|
}
|
|
18692
|
-
function
|
|
18573
|
+
function FromObject4(properties) {
|
|
18693
18574
|
const propertyKeys = guard_exports.Keys(properties);
|
|
18694
18575
|
const variants = FromPropertyKeys(propertyKeys);
|
|
18695
18576
|
const result = EvaluateUnionFast(variants);
|
|
@@ -18709,7 +18590,7 @@ function FromTuple3(types) {
|
|
|
18709
18590
|
|
|
18710
18591
|
// node_modules/typebox/build/type/engine/keyof/from_type.mjs
|
|
18711
18592
|
function FromType12(type) {
|
|
18712
|
-
return IsAny(type) ? FromAny() : IsArray2(type) ?
|
|
18593
|
+
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray2(type.items) : IsObject2(type) ? FromObject4(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
|
|
18713
18594
|
}
|
|
18714
18595
|
|
|
18715
18596
|
// node_modules/typebox/build/type/engine/keyof/instantiate.mjs
|
|
@@ -18954,7 +18835,7 @@ function FromUnion6(types) {
|
|
|
18954
18835
|
}
|
|
18955
18836
|
|
|
18956
18837
|
// node_modules/typebox/build/type/engine/partial/from_object.mjs
|
|
18957
|
-
function
|
|
18838
|
+
function FromObject5(properties) {
|
|
18958
18839
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
18959
18840
|
return { ...result2, [left]: AddOptional(properties[left]) };
|
|
18960
18841
|
}, {});
|
|
@@ -18964,7 +18845,7 @@ function FromObject6(properties) {
|
|
|
18964
18845
|
|
|
18965
18846
|
// node_modules/typebox/build/type/engine/partial/from_type.mjs
|
|
18966
18847
|
function FromType15(type) {
|
|
18967
|
-
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) ?
|
|
18848
|
+
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_({});
|
|
18968
18849
|
}
|
|
18969
18850
|
|
|
18970
18851
|
// node_modules/typebox/build/type/engine/partial/instantiate.mjs
|
|
@@ -19022,7 +18903,7 @@ function ReadonlyObject(type, options = {}) {
|
|
|
19022
18903
|
var ReadonlyType = ReadonlyObject;
|
|
19023
18904
|
|
|
19024
18905
|
// node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
|
|
19025
|
-
function
|
|
18906
|
+
function FromArray3(type) {
|
|
19026
18907
|
const result = AddImmutable(_Array_(type));
|
|
19027
18908
|
return result;
|
|
19028
18909
|
}
|
|
@@ -19050,7 +18931,7 @@ function FromIntersect4(types) {
|
|
|
19050
18931
|
}
|
|
19051
18932
|
|
|
19052
18933
|
// node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
|
|
19053
|
-
function
|
|
18934
|
+
function FromObject6(properties) {
|
|
19054
18935
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
19055
18936
|
return { ...result2, [left]: AddReadonly(properties[left]) };
|
|
19056
18937
|
}, {});
|
|
@@ -19072,7 +18953,7 @@ function FromUnion7(types) {
|
|
|
19072
18953
|
|
|
19073
18954
|
// node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
|
|
19074
18955
|
function FromType17(type) {
|
|
19075
|
-
return IsArray2(type) ?
|
|
18956
|
+
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;
|
|
19076
18957
|
}
|
|
19077
18958
|
|
|
19078
18959
|
// node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
|
|
@@ -19118,8 +18999,16 @@ function FromUnion8(types) {
|
|
|
19118
18999
|
return Union(result);
|
|
19119
19000
|
}
|
|
19120
19001
|
|
|
19002
|
+
// node_modules/typebox/build/type/action/_remove_optional.mjs
|
|
19003
|
+
function RemoveOptionalDeferred(type, options = {}) {
|
|
19004
|
+
return Deferred("RemoveOptional", [type], options);
|
|
19005
|
+
}
|
|
19006
|
+
function RemoveOptional(type, options = {}) {
|
|
19007
|
+
return RemoveOptionalAction(type, options);
|
|
19008
|
+
}
|
|
19009
|
+
|
|
19121
19010
|
// node_modules/typebox/build/type/engine/required/from_object.mjs
|
|
19122
|
-
function
|
|
19011
|
+
function FromObject7(properties) {
|
|
19123
19012
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
19124
19013
|
return { ...result2, [left]: RemoveOptional(properties[left]) };
|
|
19125
19014
|
}, {});
|
|
@@ -19129,7 +19018,7 @@ function FromObject8(properties) {
|
|
|
19129
19018
|
|
|
19130
19019
|
// node_modules/typebox/build/type/engine/required/from_type.mjs
|
|
19131
19020
|
function FromType18(type) {
|
|
19132
|
-
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) ?
|
|
19021
|
+
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_({});
|
|
19133
19022
|
}
|
|
19134
19023
|
|
|
19135
19024
|
// node_modules/typebox/build/type/action/required.mjs
|
|
@@ -19250,11 +19139,8 @@ function Instantiate(context, type) {
|
|
|
19250
19139
|
}
|
|
19251
19140
|
|
|
19252
19141
|
// node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
|
|
19253
|
-
function AddImmutableOperation(type) {
|
|
19254
|
-
return memory_exports.Update(type, { "~immutable": true }, {});
|
|
19255
|
-
}
|
|
19256
19142
|
function AddImmutableAction(type, options) {
|
|
19257
|
-
const result = memory_exports.Update(
|
|
19143
|
+
const result = memory_exports.Update(type, { "~immutable": true }, options);
|
|
19258
19144
|
return result;
|
|
19259
19145
|
}
|
|
19260
19146
|
function AddImmutableInstantiate(context, state, type, options) {
|
|
@@ -19270,6 +19156,11 @@ function AddImmutable(type, options = {}) {
|
|
|
19270
19156
|
return AddImmutableAction(type, options);
|
|
19271
19157
|
}
|
|
19272
19158
|
|
|
19159
|
+
// node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
19160
|
+
function RemoveReadonlyDeferred(type, options = {}) {
|
|
19161
|
+
return Deferred("RemoveReadonly", [type], options);
|
|
19162
|
+
}
|
|
19163
|
+
|
|
19273
19164
|
// node_modules/typebox/build/type/action/evaluate.mjs
|
|
19274
19165
|
function EvaluateDeferred(type, options = {}) {
|
|
19275
19166
|
return Deferred("Evaluate", [type], options);
|
|
@@ -19337,7 +19228,7 @@ __export(typebox_exports, {
|
|
|
19337
19228
|
IsAny: () => IsAny,
|
|
19338
19229
|
IsArray: () => IsArray2,
|
|
19339
19230
|
IsBigInt: () => IsBigInt2,
|
|
19340
|
-
IsBoolean: () =>
|
|
19231
|
+
IsBoolean: () => IsBoolean2,
|
|
19341
19232
|
IsCall: () => IsCall,
|
|
19342
19233
|
IsCodec: () => IsCodec,
|
|
19343
19234
|
IsConstructor: () => IsConstructor2,
|
|
@@ -19356,7 +19247,7 @@ __export(typebox_exports, {
|
|
|
19356
19247
|
IsLiteral: () => IsLiteral,
|
|
19357
19248
|
IsNever: () => IsNever,
|
|
19358
19249
|
IsNull: () => IsNull2,
|
|
19359
|
-
IsNumber: () =>
|
|
19250
|
+
IsNumber: () => IsNumber2,
|
|
19360
19251
|
IsObject: () => IsObject2,
|
|
19361
19252
|
IsOptional: () => IsOptional,
|
|
19362
19253
|
IsParameter: () => IsParameter,
|
|
@@ -19366,7 +19257,7 @@ __export(typebox_exports, {
|
|
|
19366
19257
|
IsRefine: () => IsRefine,
|
|
19367
19258
|
IsRest: () => IsRest,
|
|
19368
19259
|
IsSchema: () => IsSchema,
|
|
19369
|
-
IsString: () =>
|
|
19260
|
+
IsString: () => IsString2,
|
|
19370
19261
|
IsSymbol: () => IsSymbol2,
|
|
19371
19262
|
IsTemplateLiteral: () => IsTemplateLiteral,
|
|
19372
19263
|
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;
|