limina 0.1.2 → 0.1.3
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/chunks/{dep-BPK-6PAr.js → dep-BT-sPH_d.js} +14 -25
- package/chunks/{dep-DJz9JBTi.js → dep-BizOzD0V.js} +88 -166
- package/chunks/{dep-esXeyN9I.js → dep-CDo4z58I.js} +2 -5
- package/chunks/{dep-mnWOqiGN.js → dep-Tb3jeYdU.js} +4 -8
- package/cli.js +1388 -1376
- package/flow-renderer-process.js +4 -6
- package/index.js +2 -3
- package/package.json +2 -2
- package/schemas/tsconfig-schema.json +5 -4
|
@@ -2,7 +2,6 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
|
-
|
|
6
5
|
//#region src/utils/collections.ts
|
|
7
6
|
function uniqueValues(values) {
|
|
8
7
|
return [...new Set(values)];
|
|
@@ -24,7 +23,6 @@ function uniqueSortedStrings(values) {
|
|
|
24
23
|
function uniqueTrimmedNonEmptySortedStrings(values) {
|
|
25
24
|
return uniqueSortedStrings([...values].map((value) => value?.trim()).filter((value) => Boolean(value)));
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
27
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
30
28
|
let _lazyMatch = () => {
|
|
@@ -273,7 +271,6 @@ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
|
273
271
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
274
272
|
const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
275
273
|
const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
|
|
276
|
-
const sep = "/";
|
|
277
274
|
const normalize = function(path) {
|
|
278
275
|
if (path.length === 0) return ".";
|
|
279
276
|
path = normalizeWindowsPath(path);
|
|
@@ -423,7 +420,7 @@ const basename = function(p, extension) {
|
|
|
423
420
|
}
|
|
424
421
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
425
422
|
};
|
|
426
|
-
const parse$
|
|
423
|
+
const parse$1 = function(p) {
|
|
427
424
|
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
428
425
|
const base = basename(p);
|
|
429
426
|
const extension = extname(base);
|
|
@@ -449,16 +446,15 @@ const _path = {
|
|
|
449
446
|
matchesGlob,
|
|
450
447
|
normalize,
|
|
451
448
|
normalizeString,
|
|
452
|
-
parse: parse$
|
|
449
|
+
parse: parse$1,
|
|
453
450
|
relative,
|
|
454
451
|
resolve,
|
|
455
|
-
sep,
|
|
452
|
+
sep: "/",
|
|
456
453
|
toNamespacedPath
|
|
457
454
|
};
|
|
458
|
-
|
|
459
455
|
//#endregion
|
|
460
456
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
461
|
-
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
457
|
+
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
|
462
458
|
const _platforms = {
|
|
463
459
|
posix: void 0,
|
|
464
460
|
win32: void 0
|
|
@@ -473,7 +469,6 @@ const mix = (del = delimiter) => {
|
|
|
473
469
|
};
|
|
474
470
|
const posix = /* @__PURE__ */ mix(":");
|
|
475
471
|
const win32 = /* @__PURE__ */ mix(";");
|
|
476
|
-
|
|
477
472
|
//#endregion
|
|
478
473
|
//#region src/utils/module-specifier.ts
|
|
479
474
|
function isRelativeSpecifier(specifier) {
|
|
@@ -491,7 +486,6 @@ function isPackageImportSpecifier(specifier) {
|
|
|
491
486
|
function isBarePackageSpecifier(specifier) {
|
|
492
487
|
return !isRelativeSpecifier(specifier) && !isPackageImportSpecifier(specifier) && !isUrlOrDataOrFileSpecifier(specifier) && !isVirtualModuleSpecifier(specifier) && !posix.isAbsolute(specifier);
|
|
493
488
|
}
|
|
494
|
-
|
|
495
489
|
//#endregion
|
|
496
490
|
//#region src/utils/path.ts
|
|
497
491
|
function toPosixPath(value) {
|
|
@@ -519,7 +513,6 @@ function isPathInsideDirectory(filePath, directoryPath) {
|
|
|
519
513
|
function normalizeComparableAbsolutePath(value) {
|
|
520
514
|
return normalizeAbsolutePathIdentity(isAbsolute(value) ? value : resolve(value));
|
|
521
515
|
}
|
|
522
|
-
|
|
523
516
|
//#endregion
|
|
524
517
|
//#region src/utils/module-resolution.ts
|
|
525
518
|
function pathHasExtension(value) {
|
|
@@ -589,7 +582,6 @@ function getPathsBasePath(compilerOptions) {
|
|
|
589
582
|
if (typeof pathsBasePath === "string") return pathsBasePath;
|
|
590
583
|
return compilerOptions.baseUrl ?? null;
|
|
591
584
|
}
|
|
592
|
-
|
|
593
585
|
//#endregion
|
|
594
586
|
//#region src/checkers.ts
|
|
595
587
|
function getTypeScriptExtensionApi() {
|
|
@@ -1149,8 +1141,7 @@ function getCheckerExtensions(checker, options = {}) {
|
|
|
1149
1141
|
function getResolvedCheckers(config) {
|
|
1150
1142
|
const checkers = config.config?.checkers;
|
|
1151
1143
|
if (!checkers || checkers.mode === "auto") return [];
|
|
1152
|
-
|
|
1153
|
-
return Object.entries(checkerMap).map(([name, checker]) => ({
|
|
1144
|
+
return Object.entries(checkers).map(([name, checker]) => ({
|
|
1154
1145
|
exclude: (checker.exclude ?? []).map((value) => value.trim()),
|
|
1155
1146
|
extensions: getCheckerExtensions(checker, { projectRootDir: config.rootDir }),
|
|
1156
1147
|
include: checker.include.map((value) => value.trim()),
|
|
@@ -1164,7 +1155,6 @@ function normalizeExtensions(extensions) {
|
|
|
1164
1155
|
return lengthDelta === 0 ? left.localeCompare(right) : lengthDelta;
|
|
1165
1156
|
});
|
|
1166
1157
|
}
|
|
1167
|
-
|
|
1168
1158
|
//#endregion
|
|
1169
1159
|
//#region src/utils/values.ts
|
|
1170
1160
|
function isPlainRecord(value) {
|
|
@@ -1181,11 +1171,7 @@ function formatUnknownValue(value) {
|
|
|
1181
1171
|
return String(value);
|
|
1182
1172
|
}
|
|
1183
1173
|
}
|
|
1184
|
-
|
|
1185
|
-
//#endregion
|
|
1186
|
-
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
1187
|
-
/** A special constant with type `never` */
|
|
1188
|
-
const NEVER = Object.freeze({ status: "aborted" });
|
|
1174
|
+
Object.freeze({ status: "aborted" });
|
|
1189
1175
|
function $constructor(name, initializer, params) {
|
|
1190
1176
|
function init(inst, def) {
|
|
1191
1177
|
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
@@ -1241,7 +1227,6 @@ function config(newConfig) {
|
|
|
1241
1227
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
1242
1228
|
return globalConfig;
|
|
1243
1229
|
}
|
|
1244
|
-
|
|
1245
1230
|
//#endregion
|
|
1246
1231
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
1247
1232
|
function getEnumValues(entries) {
|
|
@@ -1335,7 +1320,7 @@ function shallowClone(o) {
|
|
|
1335
1320
|
if (Array.isArray(o)) return [...o];
|
|
1336
1321
|
return o;
|
|
1337
1322
|
}
|
|
1338
|
-
const propertyKeyTypes = new Set([
|
|
1323
|
+
const propertyKeyTypes = /* @__PURE__ */ new Set([
|
|
1339
1324
|
"string",
|
|
1340
1325
|
"number",
|
|
1341
1326
|
"symbol"
|
|
@@ -1368,13 +1353,7 @@ function optionalKeys(shape) {
|
|
|
1368
1353
|
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
1369
1354
|
});
|
|
1370
1355
|
}
|
|
1371
|
-
|
|
1372
|
-
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
1373
|
-
int32: [-2147483648, 2147483647],
|
|
1374
|
-
uint32: [0, 4294967295],
|
|
1375
|
-
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
1376
|
-
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
1377
|
-
};
|
|
1356
|
+
Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, -Number.MAX_VALUE, Number.MAX_VALUE;
|
|
1378
1357
|
function pick(schema, mask) {
|
|
1379
1358
|
const currDef = schema._zod.def;
|
|
1380
1359
|
const checks = currDef.checks;
|
|
@@ -1541,7 +1520,6 @@ function issue(...args) {
|
|
|
1541
1520
|
};
|
|
1542
1521
|
return { ...iss };
|
|
1543
1522
|
}
|
|
1544
|
-
|
|
1545
1523
|
//#endregion
|
|
1546
1524
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
1547
1525
|
const initializer$1 = (inst, def) => {
|
|
@@ -1599,7 +1577,6 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
1599
1577
|
processError(error);
|
|
1600
1578
|
return fieldErrors;
|
|
1601
1579
|
}
|
|
1602
|
-
|
|
1603
1580
|
//#endregion
|
|
1604
1581
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
1605
1582
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
@@ -1610,13 +1587,12 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1610
1587
|
}, ctx);
|
|
1611
1588
|
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
1612
1589
|
if (result.issues.length) {
|
|
1613
|
-
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
1590
|
+
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
1614
1591
|
captureStackTrace(e, _params?.callee);
|
|
1615
1592
|
throw e;
|
|
1616
1593
|
}
|
|
1617
1594
|
return result.value;
|
|
1618
1595
|
};
|
|
1619
|
-
const parse$1 = /* @__PURE__ */ _parse($ZodRealError);
|
|
1620
1596
|
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1621
1597
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
1622
1598
|
let result = schema._zod.run({
|
|
@@ -1625,13 +1601,12 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
1625
1601
|
}, ctx);
|
|
1626
1602
|
if (result instanceof Promise) result = await result;
|
|
1627
1603
|
if (result.issues.length) {
|
|
1628
|
-
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
1604
|
+
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
1629
1605
|
captureStackTrace(e, params?.callee);
|
|
1630
1606
|
throw e;
|
|
1631
1607
|
}
|
|
1632
1608
|
return result.value;
|
|
1633
1609
|
};
|
|
1634
|
-
const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
1635
1610
|
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
1636
1611
|
const ctx = _ctx ? {
|
|
1637
1612
|
..._ctx,
|
|
@@ -1650,7 +1625,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1650
1625
|
data: result.value
|
|
1651
1626
|
};
|
|
1652
1627
|
};
|
|
1653
|
-
const safeParse$1 = /* @__PURE__
|
|
1628
|
+
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
1654
1629
|
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1655
1630
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
1656
1631
|
let result = schema._zod.run({
|
|
@@ -1666,53 +1641,44 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1666
1641
|
data: result.value
|
|
1667
1642
|
};
|
|
1668
1643
|
};
|
|
1669
|
-
const safeParseAsync$1 = /* @__PURE__
|
|
1644
|
+
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
1670
1645
|
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
1671
1646
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1672
1647
|
return _parse(_Err)(schema, value, ctx);
|
|
1673
1648
|
};
|
|
1674
|
-
const encode$1 = /* @__PURE__ */ _encode($ZodRealError);
|
|
1675
1649
|
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
1676
1650
|
return _parse(_Err)(schema, value, _ctx);
|
|
1677
1651
|
};
|
|
1678
|
-
const decode$1 = /* @__PURE__ */ _decode($ZodRealError);
|
|
1679
1652
|
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1680
1653
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1681
1654
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1682
1655
|
};
|
|
1683
|
-
const encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
1684
1656
|
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1685
1657
|
return _parseAsync(_Err)(schema, value, _ctx);
|
|
1686
1658
|
};
|
|
1687
|
-
const decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1688
1659
|
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1689
1660
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1690
1661
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1691
1662
|
};
|
|
1692
|
-
const safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
1693
1663
|
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
1694
1664
|
return _safeParse(_Err)(schema, value, _ctx);
|
|
1695
1665
|
};
|
|
1696
|
-
const safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1697
1666
|
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1698
1667
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1699
1668
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1700
1669
|
};
|
|
1701
|
-
const safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
1702
1670
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1703
1671
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1704
1672
|
};
|
|
1705
|
-
const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1706
|
-
|
|
1707
1673
|
//#endregion
|
|
1708
1674
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
1709
|
-
const $ZodCheck =
|
|
1675
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1710
1676
|
var _a;
|
|
1711
1677
|
inst._zod ?? (inst._zod = {});
|
|
1712
1678
|
inst._zod.def = def;
|
|
1713
1679
|
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
1714
1680
|
});
|
|
1715
|
-
const $ZodCheckMaxLength =
|
|
1681
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1716
1682
|
var _a;
|
|
1717
1683
|
$ZodCheck.init(inst, def);
|
|
1718
1684
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -1738,7 +1704,7 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1738
1704
|
});
|
|
1739
1705
|
};
|
|
1740
1706
|
});
|
|
1741
|
-
const $ZodCheckMinLength =
|
|
1707
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1742
1708
|
var _a;
|
|
1743
1709
|
$ZodCheck.init(inst, def);
|
|
1744
1710
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -1764,7 +1730,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1764
1730
|
});
|
|
1765
1731
|
};
|
|
1766
1732
|
});
|
|
1767
|
-
const $ZodCheckLengthEquals =
|
|
1733
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1768
1734
|
var _a;
|
|
1769
1735
|
$ZodCheck.init(inst, def);
|
|
1770
1736
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -1800,13 +1766,12 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1800
1766
|
});
|
|
1801
1767
|
};
|
|
1802
1768
|
});
|
|
1803
|
-
const $ZodCheckOverwrite =
|
|
1769
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
1804
1770
|
$ZodCheck.init(inst, def);
|
|
1805
1771
|
inst._zod.check = (payload) => {
|
|
1806
1772
|
payload.value = def.tx(payload.value);
|
|
1807
1773
|
};
|
|
1808
1774
|
});
|
|
1809
|
-
|
|
1810
1775
|
//#endregion
|
|
1811
1776
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
1812
1777
|
var Doc = class {
|
|
@@ -1838,7 +1803,6 @@ var Doc = class {
|
|
|
1838
1803
|
return new F(...args, lines.join("\n"));
|
|
1839
1804
|
}
|
|
1840
1805
|
};
|
|
1841
|
-
|
|
1842
1806
|
//#endregion
|
|
1843
1807
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1844
1808
|
const version = {
|
|
@@ -1846,10 +1810,9 @@ const version = {
|
|
|
1846
1810
|
minor: 3,
|
|
1847
1811
|
patch: 6
|
|
1848
1812
|
};
|
|
1849
|
-
|
|
1850
1813
|
//#endregion
|
|
1851
1814
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1852
|
-
const $ZodType =
|
|
1815
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1853
1816
|
var _a;
|
|
1854
1817
|
inst ?? (inst = {});
|
|
1855
1818
|
inst._zod.def = def;
|
|
@@ -1937,11 +1900,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1937
1900
|
version: 1
|
|
1938
1901
|
}));
|
|
1939
1902
|
});
|
|
1940
|
-
const $ZodUnknown =
|
|
1903
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1941
1904
|
$ZodType.init(inst, def);
|
|
1942
1905
|
inst._zod.parse = (payload) => payload;
|
|
1943
1906
|
});
|
|
1944
|
-
const $ZodNever =
|
|
1907
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1945
1908
|
$ZodType.init(inst, def);
|
|
1946
1909
|
inst._zod.parse = (payload, _ctx) => {
|
|
1947
1910
|
payload.issues.push({
|
|
@@ -1957,7 +1920,7 @@ function handleArrayResult(result, final, index) {
|
|
|
1957
1920
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1958
1921
|
final.value[index] = result.value;
|
|
1959
1922
|
}
|
|
1960
|
-
const $ZodArray =
|
|
1923
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1961
1924
|
$ZodType.init(inst, def);
|
|
1962
1925
|
inst._zod.parse = (payload, ctx) => {
|
|
1963
1926
|
const input = payload.value;
|
|
@@ -2036,7 +1999,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2036
1999
|
return payload;
|
|
2037
2000
|
});
|
|
2038
2001
|
}
|
|
2039
|
-
const $ZodObject =
|
|
2002
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
2040
2003
|
$ZodType.init(inst, def);
|
|
2041
2004
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
2042
2005
|
const sh = def.shape;
|
|
@@ -2059,13 +2022,13 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2059
2022
|
}
|
|
2060
2023
|
return propValues;
|
|
2061
2024
|
});
|
|
2062
|
-
const isObject$
|
|
2025
|
+
const isObject$1 = isObject;
|
|
2063
2026
|
const catchall = def.catchall;
|
|
2064
2027
|
let value;
|
|
2065
2028
|
inst._zod.parse = (payload, ctx) => {
|
|
2066
2029
|
value ?? (value = _normalized.value);
|
|
2067
2030
|
const input = payload.value;
|
|
2068
|
-
if (!isObject$
|
|
2031
|
+
if (!isObject$1(input)) {
|
|
2069
2032
|
payload.issues.push({
|
|
2070
2033
|
expected: "object",
|
|
2071
2034
|
code: "invalid_type",
|
|
@@ -2091,7 +2054,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2091
2054
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
2092
2055
|
};
|
|
2093
2056
|
});
|
|
2094
|
-
const $ZodObjectJIT =
|
|
2057
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
2095
2058
|
$ZodObject.init(inst, def);
|
|
2096
2059
|
const superParse = inst._zod.parse;
|
|
2097
2060
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -2159,16 +2122,15 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
2159
2122
|
return (payload, ctx) => fn(shape, payload, ctx);
|
|
2160
2123
|
};
|
|
2161
2124
|
let fastpass;
|
|
2162
|
-
const isObject$
|
|
2125
|
+
const isObject$2 = isObject;
|
|
2163
2126
|
const jit = !globalConfig.jitless;
|
|
2164
|
-
const
|
|
2165
|
-
const fastEnabled = jit && allowsEval$1.value;
|
|
2127
|
+
const fastEnabled = jit && allowsEval.value;
|
|
2166
2128
|
const catchall = def.catchall;
|
|
2167
2129
|
let value;
|
|
2168
2130
|
inst._zod.parse = (payload, ctx) => {
|
|
2169
2131
|
value ?? (value = _normalized.value);
|
|
2170
2132
|
const input = payload.value;
|
|
2171
|
-
if (!isObject$
|
|
2133
|
+
if (!isObject$2(input)) {
|
|
2172
2134
|
payload.issues.push({
|
|
2173
2135
|
expected: "object",
|
|
2174
2136
|
code: "invalid_type",
|
|
@@ -2204,7 +2166,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2204
2166
|
});
|
|
2205
2167
|
return final;
|
|
2206
2168
|
}
|
|
2207
|
-
const $ZodUnion =
|
|
2169
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
2208
2170
|
$ZodType.init(inst, def);
|
|
2209
2171
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
2210
2172
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -2242,7 +2204,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
2242
2204
|
});
|
|
2243
2205
|
};
|
|
2244
2206
|
});
|
|
2245
|
-
const $ZodIntersection =
|
|
2207
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
2246
2208
|
$ZodType.init(inst, def);
|
|
2247
2209
|
inst._zod.parse = (payload, ctx) => {
|
|
2248
2210
|
const input = payload.value;
|
|
@@ -2341,7 +2303,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
2341
2303
|
result.value = merged.data;
|
|
2342
2304
|
return result;
|
|
2343
2305
|
}
|
|
2344
|
-
const $ZodEnum =
|
|
2306
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
2345
2307
|
$ZodType.init(inst, def);
|
|
2346
2308
|
const values = getEnumValues(def.entries);
|
|
2347
2309
|
const valuesSet = new Set(values);
|
|
@@ -2359,7 +2321,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
2359
2321
|
return payload;
|
|
2360
2322
|
};
|
|
2361
2323
|
});
|
|
2362
|
-
const $ZodTransform =
|
|
2324
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
2363
2325
|
$ZodType.init(inst, def);
|
|
2364
2326
|
inst._zod.parse = (payload, ctx) => {
|
|
2365
2327
|
if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -2380,12 +2342,12 @@ function handleOptionalResult(result, input) {
|
|
|
2380
2342
|
};
|
|
2381
2343
|
return result;
|
|
2382
2344
|
}
|
|
2383
|
-
const $ZodOptional =
|
|
2345
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
2384
2346
|
$ZodType.init(inst, def);
|
|
2385
2347
|
inst._zod.optin = "optional";
|
|
2386
2348
|
inst._zod.optout = "optional";
|
|
2387
2349
|
defineLazy(inst._zod, "values", () => {
|
|
2388
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
2350
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
2389
2351
|
});
|
|
2390
2352
|
defineLazy(inst._zod, "pattern", () => {
|
|
2391
2353
|
const pattern = def.innerType._zod.pattern;
|
|
@@ -2401,7 +2363,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2401
2363
|
return def.innerType._zod.run(payload, ctx);
|
|
2402
2364
|
};
|
|
2403
2365
|
});
|
|
2404
|
-
const $ZodExactOptional =
|
|
2366
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2405
2367
|
$ZodOptional.init(inst, def);
|
|
2406
2368
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2407
2369
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -2409,7 +2371,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
|
|
|
2409
2371
|
return def.innerType._zod.run(payload, ctx);
|
|
2410
2372
|
};
|
|
2411
2373
|
});
|
|
2412
|
-
const $ZodNullable =
|
|
2374
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
2413
2375
|
$ZodType.init(inst, def);
|
|
2414
2376
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2415
2377
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2418,14 +2380,14 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
|
|
|
2418
2380
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
2419
2381
|
});
|
|
2420
2382
|
defineLazy(inst._zod, "values", () => {
|
|
2421
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
|
|
2383
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
|
|
2422
2384
|
});
|
|
2423
2385
|
inst._zod.parse = (payload, ctx) => {
|
|
2424
2386
|
if (payload.value === null) return payload;
|
|
2425
2387
|
return def.innerType._zod.run(payload, ctx);
|
|
2426
2388
|
};
|
|
2427
2389
|
});
|
|
2428
|
-
const $ZodDefault =
|
|
2390
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
2429
2391
|
$ZodType.init(inst, def);
|
|
2430
2392
|
inst._zod.optin = "optional";
|
|
2431
2393
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2447,7 +2409,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2447
2409
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2448
2410
|
return payload;
|
|
2449
2411
|
}
|
|
2450
|
-
const $ZodPrefault =
|
|
2412
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2451
2413
|
$ZodType.init(inst, def);
|
|
2452
2414
|
inst._zod.optin = "optional";
|
|
2453
2415
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2457,7 +2419,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
2457
2419
|
return def.innerType._zod.run(payload, ctx);
|
|
2458
2420
|
};
|
|
2459
2421
|
});
|
|
2460
|
-
const $ZodNonOptional =
|
|
2422
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2461
2423
|
$ZodType.init(inst, def);
|
|
2462
2424
|
defineLazy(inst._zod, "values", () => {
|
|
2463
2425
|
const v = def.innerType._zod.values;
|
|
@@ -2478,7 +2440,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
2478
2440
|
});
|
|
2479
2441
|
return payload;
|
|
2480
2442
|
}
|
|
2481
|
-
const $ZodCatch =
|
|
2443
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2482
2444
|
$ZodType.init(inst, def);
|
|
2483
2445
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2484
2446
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2510,7 +2472,7 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2510
2472
|
return payload;
|
|
2511
2473
|
};
|
|
2512
2474
|
});
|
|
2513
|
-
const $ZodPipe =
|
|
2475
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2514
2476
|
$ZodType.init(inst, def);
|
|
2515
2477
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2516
2478
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -2537,7 +2499,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2537
2499
|
issues: left.issues
|
|
2538
2500
|
}, ctx);
|
|
2539
2501
|
}
|
|
2540
|
-
const $ZodReadonly =
|
|
2502
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2541
2503
|
$ZodType.init(inst, def);
|
|
2542
2504
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2543
2505
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2554,7 +2516,7 @@ function handleReadonlyResult(payload) {
|
|
|
2554
2516
|
payload.value = Object.freeze(payload.value);
|
|
2555
2517
|
return payload;
|
|
2556
2518
|
}
|
|
2557
|
-
const $ZodCustom =
|
|
2519
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2558
2520
|
$ZodCheck.init(inst, def);
|
|
2559
2521
|
$ZodType.init(inst, def);
|
|
2560
2522
|
inst._zod.parse = (payload, _) => {
|
|
@@ -2580,7 +2542,6 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2580
2542
|
payload.issues.push(issue(_iss));
|
|
2581
2543
|
}
|
|
2582
2544
|
}
|
|
2583
|
-
|
|
2584
2545
|
//#endregion
|
|
2585
2546
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
2586
2547
|
var _a;
|
|
@@ -2628,21 +2589,20 @@ function registry() {
|
|
|
2628
2589
|
}
|
|
2629
2590
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2630
2591
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2631
|
-
|
|
2632
2592
|
//#endregion
|
|
2633
2593
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
2634
|
-
|
|
2594
|
+
// @__NO_SIDE_EFFECTS__
|
|
2635
2595
|
function _unknown(Class) {
|
|
2636
2596
|
return new Class({ type: "unknown" });
|
|
2637
2597
|
}
|
|
2638
|
-
|
|
2598
|
+
// @__NO_SIDE_EFFECTS__
|
|
2639
2599
|
function _never(Class, params) {
|
|
2640
2600
|
return new Class({
|
|
2641
2601
|
type: "never",
|
|
2642
2602
|
...normalizeParams(params)
|
|
2643
2603
|
});
|
|
2644
2604
|
}
|
|
2645
|
-
|
|
2605
|
+
// @__NO_SIDE_EFFECTS__
|
|
2646
2606
|
function _maxLength(maximum, params) {
|
|
2647
2607
|
return new $ZodCheckMaxLength({
|
|
2648
2608
|
check: "max_length",
|
|
@@ -2650,7 +2610,7 @@ function _maxLength(maximum, params) {
|
|
|
2650
2610
|
maximum
|
|
2651
2611
|
});
|
|
2652
2612
|
}
|
|
2653
|
-
|
|
2613
|
+
// @__NO_SIDE_EFFECTS__
|
|
2654
2614
|
function _minLength(minimum, params) {
|
|
2655
2615
|
return new $ZodCheckMinLength({
|
|
2656
2616
|
check: "min_length",
|
|
@@ -2658,7 +2618,7 @@ function _minLength(minimum, params) {
|
|
|
2658
2618
|
minimum
|
|
2659
2619
|
});
|
|
2660
2620
|
}
|
|
2661
|
-
|
|
2621
|
+
// @__NO_SIDE_EFFECTS__
|
|
2662
2622
|
function _length(length, params) {
|
|
2663
2623
|
return new $ZodCheckLengthEquals({
|
|
2664
2624
|
check: "length_equals",
|
|
@@ -2666,14 +2626,14 @@ function _length(length, params) {
|
|
|
2666
2626
|
length
|
|
2667
2627
|
});
|
|
2668
2628
|
}
|
|
2669
|
-
|
|
2629
|
+
// @__NO_SIDE_EFFECTS__
|
|
2670
2630
|
function _overwrite(tx) {
|
|
2671
2631
|
return new $ZodCheckOverwrite({
|
|
2672
2632
|
check: "overwrite",
|
|
2673
2633
|
tx
|
|
2674
2634
|
});
|
|
2675
2635
|
}
|
|
2676
|
-
|
|
2636
|
+
// @__NO_SIDE_EFFECTS__
|
|
2677
2637
|
function _array(Class, element, params) {
|
|
2678
2638
|
return new Class({
|
|
2679
2639
|
type: "array",
|
|
@@ -2681,7 +2641,7 @@ function _array(Class, element, params) {
|
|
|
2681
2641
|
...normalizeParams(params)
|
|
2682
2642
|
});
|
|
2683
2643
|
}
|
|
2684
|
-
|
|
2644
|
+
// @__NO_SIDE_EFFECTS__
|
|
2685
2645
|
function _refine(Class, fn, _params) {
|
|
2686
2646
|
return new Class({
|
|
2687
2647
|
type: "custom",
|
|
@@ -2690,7 +2650,7 @@ function _refine(Class, fn, _params) {
|
|
|
2690
2650
|
...normalizeParams(_params)
|
|
2691
2651
|
});
|
|
2692
2652
|
}
|
|
2693
|
-
|
|
2653
|
+
// @__NO_SIDE_EFFECTS__
|
|
2694
2654
|
function _superRefine(fn) {
|
|
2695
2655
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2696
2656
|
payload.addIssue = (issue$2) => {
|
|
@@ -2709,7 +2669,7 @@ function _superRefine(fn) {
|
|
|
2709
2669
|
});
|
|
2710
2670
|
return ch;
|
|
2711
2671
|
}
|
|
2712
|
-
|
|
2672
|
+
// @__NO_SIDE_EFFECTS__
|
|
2713
2673
|
function _check(fn, params) {
|
|
2714
2674
|
const ch = new $ZodCheck({
|
|
2715
2675
|
check: "custom",
|
|
@@ -2718,33 +2678,6 @@ function _check(fn, params) {
|
|
|
2718
2678
|
ch._zod.check = fn;
|
|
2719
2679
|
return ch;
|
|
2720
2680
|
}
|
|
2721
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
2722
|
-
function describe$1(description) {
|
|
2723
|
-
const ch = new $ZodCheck({ check: "describe" });
|
|
2724
|
-
ch._zod.onattach = [(inst) => {
|
|
2725
|
-
const existing = globalRegistry.get(inst) ?? {};
|
|
2726
|
-
globalRegistry.add(inst, {
|
|
2727
|
-
...existing,
|
|
2728
|
-
description
|
|
2729
|
-
});
|
|
2730
|
-
}];
|
|
2731
|
-
ch._zod.check = () => {};
|
|
2732
|
-
return ch;
|
|
2733
|
-
}
|
|
2734
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
2735
|
-
function meta$1(metadata) {
|
|
2736
|
-
const ch = new $ZodCheck({ check: "meta" });
|
|
2737
|
-
ch._zod.onattach = [(inst) => {
|
|
2738
|
-
const existing = globalRegistry.get(inst) ?? {};
|
|
2739
|
-
globalRegistry.add(inst, {
|
|
2740
|
-
...existing,
|
|
2741
|
-
...metadata
|
|
2742
|
-
});
|
|
2743
|
-
}];
|
|
2744
|
-
ch._zod.check = () => {};
|
|
2745
|
-
return ch;
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
2681
|
//#endregion
|
|
2749
2682
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
2750
2683
|
function initializeContext(params) {
|
|
@@ -3030,13 +2963,11 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
3030
2963
|
extractDefs(ctx, schema);
|
|
3031
2964
|
return finalize(ctx, schema);
|
|
3032
2965
|
};
|
|
3033
|
-
|
|
3034
2966
|
//#endregion
|
|
3035
2967
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
3036
2968
|
const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
3037
2969
|
json.not = {};
|
|
3038
2970
|
};
|
|
3039
|
-
const unknownProcessor = (_schema, _ctx, _json, _params) => {};
|
|
3040
2971
|
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
3041
2972
|
const def = schema._zod.def;
|
|
3042
2973
|
const values = getEnumValues(def.entries);
|
|
@@ -3188,7 +3119,6 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
3188
3119
|
const seen = ctx.seen.get(schema);
|
|
3189
3120
|
seen.ref = def.innerType;
|
|
3190
3121
|
};
|
|
3191
|
-
|
|
3192
3122
|
//#endregion
|
|
3193
3123
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
3194
3124
|
const initializer = (inst, issues) => {
|
|
@@ -3210,9 +3140,8 @@ const initializer = (inst, issues) => {
|
|
|
3210
3140
|
} }
|
|
3211
3141
|
});
|
|
3212
3142
|
};
|
|
3213
|
-
|
|
3143
|
+
$constructor("ZodError", initializer);
|
|
3214
3144
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
3215
|
-
|
|
3216
3145
|
//#endregion
|
|
3217
3146
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
3218
3147
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -3227,10 +3156,9 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
3227
3156
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
3228
3157
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3229
3158
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3230
|
-
|
|
3231
3159
|
//#endregion
|
|
3232
3160
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
3233
|
-
const ZodType =
|
|
3161
|
+
const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3234
3162
|
$ZodType.init(inst, def);
|
|
3235
3163
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3236
3164
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -3269,7 +3197,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3269
3197
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
3270
3198
|
inst.refine = (check, params) => inst.check(refine(check, params));
|
|
3271
3199
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
3272
|
-
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
3200
|
+
inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
|
|
3273
3201
|
inst.optional = () => optional(inst);
|
|
3274
3202
|
inst.exactOptional = () => exactOptional(inst);
|
|
3275
3203
|
inst.nullable = () => nullable(inst);
|
|
@@ -3306,37 +3234,37 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3306
3234
|
inst.apply = (fn) => fn(inst);
|
|
3307
3235
|
return inst;
|
|
3308
3236
|
});
|
|
3309
|
-
const ZodUnknown =
|
|
3237
|
+
const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
3310
3238
|
$ZodUnknown.init(inst, def);
|
|
3311
3239
|
ZodType.init(inst, def);
|
|
3312
|
-
inst._zod.processJSONSchema = (ctx, json, params) =>
|
|
3240
|
+
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
3313
3241
|
});
|
|
3314
3242
|
function unknown() {
|
|
3315
|
-
return _unknown(ZodUnknown);
|
|
3243
|
+
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
3316
3244
|
}
|
|
3317
|
-
const ZodNever =
|
|
3245
|
+
const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
3318
3246
|
$ZodNever.init(inst, def);
|
|
3319
3247
|
ZodType.init(inst, def);
|
|
3320
3248
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
3321
3249
|
});
|
|
3322
3250
|
function never(params) {
|
|
3323
|
-
return _never(ZodNever, params);
|
|
3251
|
+
return /* @__PURE__ */ _never(ZodNever, params);
|
|
3324
3252
|
}
|
|
3325
|
-
const ZodArray =
|
|
3253
|
+
const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
3326
3254
|
$ZodArray.init(inst, def);
|
|
3327
3255
|
ZodType.init(inst, def);
|
|
3328
3256
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
3329
3257
|
inst.element = def.element;
|
|
3330
|
-
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
3331
|
-
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
3332
|
-
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
3333
|
-
inst.length = (len, params) => inst.check(_length(len, params));
|
|
3258
|
+
inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
|
|
3259
|
+
inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
|
|
3260
|
+
inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
|
|
3261
|
+
inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
|
|
3334
3262
|
inst.unwrap = () => inst.element;
|
|
3335
3263
|
});
|
|
3336
3264
|
function array(element, params) {
|
|
3337
|
-
return _array(ZodArray, element, params);
|
|
3265
|
+
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
3338
3266
|
}
|
|
3339
|
-
const ZodObject =
|
|
3267
|
+
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
3340
3268
|
$ZodObjectJIT.init(inst, def);
|
|
3341
3269
|
ZodType.init(inst, def);
|
|
3342
3270
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -3384,7 +3312,7 @@ function looseObject(shape, params) {
|
|
|
3384
3312
|
...normalizeParams(params)
|
|
3385
3313
|
});
|
|
3386
3314
|
}
|
|
3387
|
-
const ZodUnion =
|
|
3315
|
+
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
3388
3316
|
$ZodUnion.init(inst, def);
|
|
3389
3317
|
ZodType.init(inst, def);
|
|
3390
3318
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -3397,7 +3325,7 @@ function union(options, params) {
|
|
|
3397
3325
|
...normalizeParams(params)
|
|
3398
3326
|
});
|
|
3399
3327
|
}
|
|
3400
|
-
const ZodIntersection =
|
|
3328
|
+
const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
3401
3329
|
$ZodIntersection.init(inst, def);
|
|
3402
3330
|
ZodType.init(inst, def);
|
|
3403
3331
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -3409,7 +3337,7 @@ function intersection(left, right) {
|
|
|
3409
3337
|
right
|
|
3410
3338
|
});
|
|
3411
3339
|
}
|
|
3412
|
-
const ZodEnum =
|
|
3340
|
+
const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
3413
3341
|
$ZodEnum.init(inst, def);
|
|
3414
3342
|
ZodType.init(inst, def);
|
|
3415
3343
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -3446,7 +3374,7 @@ function _enum(values, params) {
|
|
|
3446
3374
|
...normalizeParams(params)
|
|
3447
3375
|
});
|
|
3448
3376
|
}
|
|
3449
|
-
const ZodTransform =
|
|
3377
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
3450
3378
|
$ZodTransform.init(inst, def);
|
|
3451
3379
|
ZodType.init(inst, def);
|
|
3452
3380
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -3478,7 +3406,7 @@ function transform(fn) {
|
|
|
3478
3406
|
transform: fn
|
|
3479
3407
|
});
|
|
3480
3408
|
}
|
|
3481
|
-
const ZodOptional =
|
|
3409
|
+
const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
3482
3410
|
$ZodOptional.init(inst, def);
|
|
3483
3411
|
ZodType.init(inst, def);
|
|
3484
3412
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -3490,7 +3418,7 @@ function optional(innerType) {
|
|
|
3490
3418
|
innerType
|
|
3491
3419
|
});
|
|
3492
3420
|
}
|
|
3493
|
-
const ZodExactOptional =
|
|
3421
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
3494
3422
|
$ZodExactOptional.init(inst, def);
|
|
3495
3423
|
ZodType.init(inst, def);
|
|
3496
3424
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -3502,7 +3430,7 @@ function exactOptional(innerType) {
|
|
|
3502
3430
|
innerType
|
|
3503
3431
|
});
|
|
3504
3432
|
}
|
|
3505
|
-
const ZodNullable =
|
|
3433
|
+
const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
3506
3434
|
$ZodNullable.init(inst, def);
|
|
3507
3435
|
ZodType.init(inst, def);
|
|
3508
3436
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -3514,7 +3442,7 @@ function nullable(innerType) {
|
|
|
3514
3442
|
innerType
|
|
3515
3443
|
});
|
|
3516
3444
|
}
|
|
3517
|
-
const ZodDefault =
|
|
3445
|
+
const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
3518
3446
|
$ZodDefault.init(inst, def);
|
|
3519
3447
|
ZodType.init(inst, def);
|
|
3520
3448
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -3530,7 +3458,7 @@ function _default(innerType, defaultValue) {
|
|
|
3530
3458
|
}
|
|
3531
3459
|
});
|
|
3532
3460
|
}
|
|
3533
|
-
const ZodPrefault =
|
|
3461
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
3534
3462
|
$ZodPrefault.init(inst, def);
|
|
3535
3463
|
ZodType.init(inst, def);
|
|
3536
3464
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -3545,7 +3473,7 @@ function prefault(innerType, defaultValue) {
|
|
|
3545
3473
|
}
|
|
3546
3474
|
});
|
|
3547
3475
|
}
|
|
3548
|
-
const ZodNonOptional =
|
|
3476
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
3549
3477
|
$ZodNonOptional.init(inst, def);
|
|
3550
3478
|
ZodType.init(inst, def);
|
|
3551
3479
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -3558,7 +3486,7 @@ function nonoptional(innerType, params) {
|
|
|
3558
3486
|
...normalizeParams(params)
|
|
3559
3487
|
});
|
|
3560
3488
|
}
|
|
3561
|
-
const ZodCatch =
|
|
3489
|
+
const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
3562
3490
|
$ZodCatch.init(inst, def);
|
|
3563
3491
|
ZodType.init(inst, def);
|
|
3564
3492
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -3572,7 +3500,7 @@ function _catch(innerType, catchValue) {
|
|
|
3572
3500
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
3573
3501
|
});
|
|
3574
3502
|
}
|
|
3575
|
-
const ZodPipe =
|
|
3503
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
3576
3504
|
$ZodPipe.init(inst, def);
|
|
3577
3505
|
ZodType.init(inst, def);
|
|
3578
3506
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -3586,7 +3514,7 @@ function pipe(in_, out) {
|
|
|
3586
3514
|
out
|
|
3587
3515
|
});
|
|
3588
3516
|
}
|
|
3589
|
-
const ZodReadonly =
|
|
3517
|
+
const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
3590
3518
|
$ZodReadonly.init(inst, def);
|
|
3591
3519
|
ZodType.init(inst, def);
|
|
3592
3520
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -3598,20 +3526,17 @@ function readonly(innerType) {
|
|
|
3598
3526
|
innerType
|
|
3599
3527
|
});
|
|
3600
3528
|
}
|
|
3601
|
-
const ZodCustom =
|
|
3529
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
3602
3530
|
$ZodCustom.init(inst, def);
|
|
3603
3531
|
ZodType.init(inst, def);
|
|
3604
3532
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
3605
3533
|
});
|
|
3606
3534
|
function refine(fn, _params = {}) {
|
|
3607
|
-
return _refine(ZodCustom, fn, _params);
|
|
3535
|
+
return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
|
|
3608
3536
|
}
|
|
3609
3537
|
function superRefine(fn) {
|
|
3610
|
-
return _superRefine(fn);
|
|
3538
|
+
return /* @__PURE__ */ _superRefine(fn);
|
|
3611
3539
|
}
|
|
3612
|
-
const describe = describe$1;
|
|
3613
|
-
const meta = meta$1;
|
|
3614
|
-
|
|
3615
3540
|
//#endregion
|
|
3616
3541
|
//#region src/config/schema.ts
|
|
3617
3542
|
const checkerExtensionsConfigReason = "checker extensions are fixed by built-in presets and cannot be configured.";
|
|
@@ -3768,7 +3693,7 @@ const sharedLiminaConfigShapeSchema = looseObject({}).superRefine((sharedConfig,
|
|
|
3768
3693
|
});
|
|
3769
3694
|
}
|
|
3770
3695
|
});
|
|
3771
|
-
const
|
|
3696
|
+
const releaseConfigShapeSchema = looseObject({ contentHash: looseObject({}).superRefine((contentHash, ctx) => {
|
|
3772
3697
|
const baselineTag = contentHash.baselineTag;
|
|
3773
3698
|
if (baselineTag !== void 0 && typeof baselineTag !== "function" && (typeof baselineTag !== "string" || baselineTag.trim().length === 0)) ctx.addIssue({
|
|
3774
3699
|
code: "custom",
|
|
@@ -3799,8 +3724,7 @@ const releaseContentHashShapeSchema = looseObject({}).superRefine((contentHash,
|
|
|
3799
3724
|
path: ["ignore", index]
|
|
3800
3725
|
});
|
|
3801
3726
|
}
|
|
3802
|
-
});
|
|
3803
|
-
const releaseConfigShapeSchema = looseObject({ contentHash: releaseContentHashShapeSchema.optional() });
|
|
3727
|
+
}).optional() });
|
|
3804
3728
|
const executionConcurrencyFields = [
|
|
3805
3729
|
"tasks",
|
|
3806
3730
|
"checkerBuild",
|
|
@@ -4144,7 +4068,6 @@ function validateLiminaConfig(config) {
|
|
|
4144
4068
|
const problems = collectLiminaConfigShapeProblems(config);
|
|
4145
4069
|
if (problems.length > 0) throw new Error(problems.join("\n\n"));
|
|
4146
4070
|
}
|
|
4147
|
-
|
|
4148
4071
|
//#endregion
|
|
4149
4072
|
//#region src/config/runner.ts
|
|
4150
4073
|
function isAutoCheckerConfigMode(checkers) {
|
|
@@ -4229,6 +4152,5 @@ async function loadConfig(options = {}) {
|
|
|
4229
4152
|
rootDir
|
|
4230
4153
|
};
|
|
4231
4154
|
}
|
|
4232
|
-
|
|
4233
4155
|
//#endregion
|
|
4234
|
-
export { isPackageImportSpecifier as A, resolveRelativeModuleCandidate as C, toPosixPath as D, normalizeSlashes as E, uniqueBy as F, uniqueSortedStrings as I, uniqueTrimmedNonEmptySortedStrings as L, isUrlOrDataOrFileSpecifier as M, isVirtualModuleSpecifier as N, toRelativePath as O, posix as P, uniqueValues as R, resolvePathMappedModuleCandidate as S, normalizeAbsolutePath as T, resolveModuleNameWithCheckers as _, formatUnknownValue as a, resolveBaseUrlModuleCandidate as b, clearCheckerProjectConfigCache as c, getBuildCheckerSupportedExtensions as d, getCheckerAdapter as f, resolveCheckerProjectExtensions as g, parseCheckerProjectConfigForContext as h, loadConfig as i, isRelativeSpecifier as j, isBarePackageSpecifier as k, collectMissingCheckerPeerDependencies as l, normalizeExtensions as m, getActiveCheckers as n, isNonEmptyString as o, getCheckerExtensions as p, isAutoCheckerConfigMode as r, isPlainRecord as s, defineConfig as t, formatMissingCheckerPeerDependencies as u, resolveModuleNameWithCheckersDetailed as v, isPathInsideDirectory as w, resolveExistingFilePath as x, candidatePathsForBasePath as y };
|
|
4156
|
+
export { isPackageImportSpecifier as A, resolveRelativeModuleCandidate as C, toPosixPath as D, normalizeSlashes as E, uniqueBy as F, uniqueSortedStrings as I, uniqueTrimmedNonEmptySortedStrings as L, isUrlOrDataOrFileSpecifier as M, isVirtualModuleSpecifier as N, toRelativePath as O, posix as P, uniqueValues as R, resolvePathMappedModuleCandidate as S, normalizeAbsolutePath as T, resolveModuleNameWithCheckers as _, formatUnknownValue as a, resolveBaseUrlModuleCandidate as b, clearCheckerProjectConfigCache as c, getBuildCheckerSupportedExtensions as d, getCheckerAdapter as f, resolveCheckerProjectExtensions as g, parseCheckerProjectConfigForContext as h, loadConfig as i, isRelativeSpecifier as j, isBarePackageSpecifier as k, collectMissingCheckerPeerDependencies as l, normalizeExtensions as m, getActiveCheckers as n, isNonEmptyString as o, getCheckerExtensions as p, isAutoCheckerConfigMode as r, isPlainRecord as s, defineConfig as t, formatMissingCheckerPeerDependencies as u, resolveModuleNameWithCheckersDetailed as v, isPathInsideDirectory as w, resolveExistingFilePath as x, candidatePathsForBasePath as y };
|