openpond 0.0.68 → 0.0.69
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/chunks/{actions-command-DLOKFA34.js → actions-command-6N5XWMR6.js} +4 -4
- package/dist/chunks/{app-layer-K7NAOLDL.js → app-layer-EXXOWJ5H.js} +7 -7
- package/dist/chunks/{app-server-runtime-OFZZIWAB.js → app-server-runtime-7FBQBE3C.js} +10 -10
- package/dist/chunks/{apps-5VSVJLM7.js → apps-RZSDOFAG.js} +7 -7
- package/dist/chunks/{chunk-N6FKRVAT.js → chunk-47EIAYI7.js} +2 -2
- package/dist/chunks/{chunk-7FW2CVYN.js → chunk-4L3ZJS2T.js} +426 -1
- package/dist/chunks/{chunk-OOJP442J.js → chunk-5TKZBMQM.js} +1 -1
- package/dist/chunks/{chunk-WEB37YVJ.js → chunk-7C4OIFOC.js} +1 -1
- package/dist/chunks/{chunk-MUS7KPXK.js → chunk-BLFIIAWZ.js} +1931 -19
- package/dist/chunks/{chunk-3KLQ52B2.js → chunk-BVY5JYM6.js} +4 -9
- package/dist/chunks/{chunk-DBHSOTYZ.js → chunk-D7BO5Y5J.js} +3 -24
- package/dist/chunks/chunk-DLQQIWN2.js +648 -0
- package/dist/chunks/{chunk-T55IL3GI.js → chunk-DNXBJZAU.js} +1 -1
- package/dist/chunks/{chunk-KLD7NT5J.js → chunk-F36ZVO6U.js} +3 -3
- package/dist/chunks/{chunk-TSDVA7QP.js → chunk-FEOLMLYU.js} +8 -12
- package/dist/chunks/{chunk-QETF6ILG.js → chunk-FQS2QL5F.js} +359 -841
- package/dist/chunks/{chunk-J2REM7LE.js → chunk-HFPUR4CQ.js} +5 -116
- package/dist/chunks/{chunk-JIEUB6OS.js → chunk-J3YDKJFD.js} +1 -1
- package/dist/chunks/{chunk-JGOP4GCK.js → chunk-JTHL5XJ2.js} +5 -25
- package/dist/chunks/{chunk-OQLYO7TA.js → chunk-MMRJNSWY.js} +34 -81
- package/dist/chunks/{chunk-HFQHD35D.js → chunk-NPNIL6SQ.js} +1 -1
- package/dist/chunks/{chunk-IG72OKNB.js → chunk-OOM2PHBE.js} +2080 -16400
- package/dist/chunks/{chunk-PSGEH4FC.js → chunk-QTN6HXOR.js} +3 -3
- package/dist/chunks/{chunk-HNY7OSDY.js → chunk-SFMNGWNO.js} +1 -1
- package/dist/chunks/{chunk-TBEBLKCQ.js → chunk-WBAZFKC7.js} +3 -3
- package/dist/chunks/{chunk-NA4L2HQM.js → chunk-Y57RTLVV.js} +33 -33
- package/dist/chunks/{chunk-Z2ZWHU7O.js → chunk-YVCYVDNP.js} +1 -1
- package/dist/chunks/{cli-6WFY2ULA.js → cli-HIXVXM72.js} +8 -8
- package/dist/chunks/{core-commands-HQ3HL34W.js → core-commands-34SVH6ZQ.js} +8 -8
- package/dist/chunks/{desktop-test-RU6SRARQ.js → desktop-test-66DPBNJX.js} +7 -7
- package/dist/chunks/{extension-4KFKWMC4.js → extension-ZMRHCDO3.js} +36 -87
- package/dist/chunks/{help-ZUCPOR22.js → help-COHCZEP2.js} +1 -1
- package/dist/chunks/{opchat-AZX7SYM7.js → opchat-2PGW2GNN.js} +10 -18
- package/dist/chunks/{organizations-GV6Z7G4J.js → organizations-NZ4OY56V.js} +9 -9
- package/dist/chunks/{profile-TSLGZPUI.js → profile-GEMTRPUG.js} +11 -11
- package/dist/chunks/{project-agent-SHIQZWPY.js → project-agent-NX6YBGWC.js} +10 -10
- package/dist/chunks/{sandbox-command-TRS66NUT.js → sandbox-command-UEY53OJO.js} +8 -8
- package/dist/chunks/{sandbox-template-RVWXD5O3.js → sandbox-template-YKYRB645.js} +10 -10
- package/dist/chunks/{src-VUJ6EBOU.js → src-IXYDKOBI.js} +799 -965
- package/dist/chunks/{src-Q3BOITLJ.js → src-LKJBD5AM.js} +5 -5
- package/dist/chunks/{teams-bot-CLCMGBW5.js → teams-bot-K6KZHZJV.js} +7 -7
- package/dist/chunks/{workspaces-IIPITOCV.js → workspaces-WXM72UZF.js} +2 -2
- package/dist/cli.js +13 -13
- package/dist/index.js +15 -56
- package/dist/web/assets/App-BF9L0JUv.js +171 -0
- package/dist/web/assets/{AppDialog-sLTPiFGX.js → AppDialog-DX-xs3KA.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-B0NCyY4L.js → AppTerminalPanel-CYVj_ITT.js} +2 -2
- package/dist/web/assets/{AppsView-DyDyktK2.js → AppsView-ByjyGog7.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-C-PQxmQa.js → BrowserSidebar-BDwtMAZl.js} +1 -1
- package/dist/web/assets/{CartesianChart-CnerMhTr.js → CartesianChart-Dv6jJfPR.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-DJEp6dux.js → CollaborationTabs-CC5AIhMh.js} +1 -1
- package/dist/web/assets/{CommandMenu-B5lGz8rG.js → CommandMenu-Ct0Sx7yP.js} +1 -1
- package/dist/web/assets/{CommunityView-DQJaHBa5.js → CommunityView-C_zVE0jg.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-7hBR2bdV.js → ComposerCreateImproveStrip-CNn4OywM.js} +1 -1
- package/dist/web/assets/{GetStartedView-l1Cz1e7g.js → GetStartedView-DRFpHDLd.js} +1 -1
- package/dist/web/assets/LabModelVersionDetailPage-BzF-IVXQ.js +1 -0
- package/dist/web/assets/{LabSkillSidebar-jlX5I_D5.js → LabSkillSidebar-B9jY4AgE.js} +1 -1
- package/dist/web/assets/{LabsRoute-D3w6nPSa.css → LabsRoute-CS_orT9s.css} +1 -1
- package/dist/web/assets/LabsRoute-Di1Zs4gZ.js +2 -0
- package/dist/web/assets/{MainChatThread-B1nXTMAf.js → MainChatThread-8VzlD8Hi.js} +2 -2
- package/dist/web/assets/{MainPane-DxVcMBFo.js → MainPane-StAOFINE.js} +3 -3
- package/dist/web/assets/{MarkdownText-B3njGyZS.js → MarkdownText-B8D_ftSJ.js} +1 -1
- package/dist/web/assets/{Messages-yBS4UHWl.js → Messages-TY62tiDp.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-DaD52aW1.js → NativeSkillSidebar-DjebFRoi.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-C7X_K5Xl.js → NewExperienceSwitcher-C-bJxHxY.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-NuPVF2Y7.js → NewProjectDialog-Cx8QcZm7.js} +1 -1
- package/dist/web/assets/{OutputsPage-Bmof4Tdv.js → OutputsPage-Y9HM-SHX.js} +1 -1
- package/dist/web/assets/{ProjectsPage-D7opg6ff.js → ProjectsPage-BBr58yKT.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-BzsNeSwx.js → RightChatPanelStack-DzUbDKwp.js} +1 -1
- package/dist/web/assets/{RightSidebarHomePanel-D8dAMHcp.js → RightSidebarHomePanel-Dx-1elSI.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-Dkjhof6t.js → ScheduledWorkPage-BuXw_W8b.js} +1 -1
- package/dist/web/assets/SettingsView-DB_zPHYY.js +6 -0
- package/dist/web/assets/{TeamChatView-DIxvrgai.js → TeamChatView-Bkyhu40R.js} +1 -1
- package/dist/web/assets/{TerminalOverlay-Cd0Sp9LD.js → TerminalOverlay-CaCkZDzO.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-DACYaOny.js → TrainingCreationPanel-Vvi41WNT.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-DBWJW8ZD.js → TrainingDraftPanel-C2C3hffI.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-B3sbqaUV.js → UsageSettingsSection-DpPBd-ra.js} +1 -1
- package/dist/web/assets/{WorkSidebarPanel-D4yXQ64j.js → WorkSidebarPanel-CeWGboTh.js} +1 -1
- package/dist/web/assets/{WorkspaceDiffPanel-CBgPVF1P.js → WorkspaceDiffPanel-D_zKOW4K.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-Bp-9V7Jq.js → WorkspaceEnvironmentMenu-BTz9FISP.js} +3 -3
- package/dist/web/assets/{WorkspaceGitDialogs-BxU5Uhpz.js → WorkspaceGitDialogs-BnBRUYpS.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-Db_sWYFt.js → WorkspaceMonacoEditor--GOVrHFp.js} +3 -3
- package/dist/web/assets/{activity-BzKyRXbd.js → activity-DA5DNQwD.js} +1 -1
- package/dist/web/assets/{arrow-up-right-DaIxkG4K.js → arrow-up-right-BRZWXpqJ.js} +1 -1
- package/dist/web/assets/{chat-file-links-wORSEipQ.js → chat-file-links-CgFHK89C.js} +1 -1
- package/dist/web/assets/chevron-up-DSv2auz_.js +1 -0
- package/dist/web/assets/{clipboard-BTRsPPaK.js → clipboard-dPd_3lpG.js} +1 -1
- package/dist/web/assets/{cloud-upload-BYXHJoKd.js → cloud-upload-DOwvN4hp.js} +1 -1
- package/dist/web/assets/{cssMode-Be446Wgi.js → cssMode-BM4j9M0D.js} +1 -1
- package/dist/web/assets/{folder-open-KtKTXn4w.js → folder-open-DavjPCw4.js} +1 -1
- package/dist/web/assets/{folder-plus-9-Xcli22.js → folder-plus-Dyqast6G.js} +1 -1
- package/dist/web/assets/{git-branch-CLGxzDjJ.js → git-branch-zKnZdQiX.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-CmVYsUnh.js → git-commit-horizontal-s3X0cQlz.js} +1 -1
- package/dist/web/assets/{htmlMode-DTjTyBB_.js → htmlMode-Nlx7ckXa.js} +1 -1
- package/dist/web/assets/{index-DqWw2ymf.js → index-5-B6FIuE.js} +1 -1
- package/dist/web/assets/index-CQ3CPVHZ.css +1 -0
- package/dist/web/assets/index-CuoGlf-W.js +1 -0
- package/dist/web/assets/{info-BLmP4K0e.js → info-CVvrNOHr.js} +1 -1
- package/dist/web/assets/{jsonMode-Z-2iim-u.js → jsonMode-B7monA6g.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-Cr2iCfG2.js → lspLanguageFeatures-CcJ9GDtK.js} +1 -1
- package/dist/web/assets/{minimize-2-CWA6iO3r.js → minimize-2-O1DnznGK.js} +1 -1
- package/dist/web/assets/{monaco.contribution-YhqlKmCp.js → monaco.contribution-2PozfA9g.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BtMcDmCM.js → monaco.contribution-BMAF2bmO.js} +2 -2
- package/dist/web/assets/{monaco.contribution-Cac9eBUk.js → monaco.contribution-BSJ2jQTi.js} +2 -2
- package/dist/web/assets/{monaco.contribution-NtjNqMdv.js → monaco.contribution-QOOCizYq.js} +2 -2
- package/dist/web/assets/{play-DYSQH2rx.js → play-BpCc5ZbR.js} +1 -1
- package/dist/web/assets/{python-CNqOWXNv.js → python-BK41iew-.js} +1 -1
- package/dist/web/assets/{refresh-cw-DMysDKOA.js → refresh-cw-Csoy1ev1.js} +1 -1
- package/dist/web/assets/{save-HPZ4ZiDi.js → save-Dbztj0W7.js} +1 -1
- package/dist/web/assets/{square-D-mpY1a-.js → square-ju7fWa0W.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-Bccdn3Qi.js → toggleHighContrast-DrmwDpyz.js} +1 -1
- package/dist/web/assets/{tsMode-BhcKJxhG.js → tsMode-CFgCMr7d.js} +1 -1
- package/dist/web/assets/{upload-DE7xaWVj.js → upload-C5nhiSMq.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-C0J--_MD.js → useLocalAgentSchedules-LAsobERb.js} +1 -1
- package/dist/web/assets/{wifi-off-CrCfhll9.js → wifi-off-BHxh2UbA.js} +1 -1
- package/dist/web/assets/{workers-DCaGzukk.js → workers-FKb-NyBI.js} +1 -1
- package/dist/web/assets/{yaml-CCfH63KB.js → yaml-C5DbF9S6.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/api/vercel-protection.d.ts +0 -1
- package/dist/chunks/chunk-MLWNI3WG.js +0 -15395
- package/dist/web/assets/App-D7vhbyMO.js +0 -171
- package/dist/web/assets/LabModelVersionDetailPage-D2PfI3-r.js +0 -1
- package/dist/web/assets/LabsRoute-VOgPrf94.js +0 -2
- package/dist/web/assets/SettingsView-CWTAUy2b.js +0 -6
- package/dist/web/assets/chevron-up-C8-qSzck.js +0 -1
- package/dist/web/assets/index-AzqEDIEY.css +0 -1
- package/dist/web/assets/index-C5uP_Gug.js +0 -1
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__export
|
|
4
|
+
} from "./chunk-UACZUFIA.js";
|
|
2
5
|
|
|
3
|
-
// ../../
|
|
4
|
-
import { randomUUID } from "node:crypto";
|
|
5
|
-
import { spawn } from "node:child_process";
|
|
6
|
-
import { promises as fs5 } from "node:fs";
|
|
7
|
-
import path5 from "node:path";
|
|
8
|
-
import { promises as fs4 } from "node:fs";
|
|
9
|
-
import path4 from "node:path";
|
|
10
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
11
|
-
import { build } from "esbuild";
|
|
12
|
-
import { promises as fs } from "node:fs";
|
|
13
|
-
import path from "node:path";
|
|
14
|
-
import { promises as fs2 } from "node:fs";
|
|
15
|
-
import path2 from "node:path";
|
|
16
|
-
import { createHash } from "node:crypto";
|
|
17
|
-
import { promises as fs3 } from "node:fs";
|
|
18
|
-
import { createRequire } from "node:module";
|
|
19
|
-
import path3 from "node:path";
|
|
20
|
-
var __defProp = Object.defineProperty;
|
|
21
|
-
var __export = (target, all) => {
|
|
22
|
-
for (var name in all)
|
|
23
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24
|
-
};
|
|
6
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
25
7
|
var external_exports = {};
|
|
26
8
|
__export(external_exports, {
|
|
27
9
|
$brand: () => $brand,
|
|
@@ -263,6 +245,8 @@ __export(external_exports, {
|
|
|
263
245
|
xid: () => xid2,
|
|
264
246
|
xor: () => xor
|
|
265
247
|
});
|
|
248
|
+
|
|
249
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
266
250
|
var core_exports2 = {};
|
|
267
251
|
__export(core_exports2, {
|
|
268
252
|
$ZodAny: () => $ZodAny,
|
|
@@ -525,7 +509,7 @@ __export(core_exports2, {
|
|
|
525
509
|
parse: () => parse,
|
|
526
510
|
parseAsync: () => parseAsync,
|
|
527
511
|
prettifyError: () => prettifyError,
|
|
528
|
-
process: () =>
|
|
512
|
+
process: () => process,
|
|
529
513
|
regexes: () => regexes_exports,
|
|
530
514
|
registry: () => registry,
|
|
531
515
|
safeDecode: () => safeDecode,
|
|
@@ -540,6 +524,8 @@ __export(core_exports2, {
|
|
|
540
524
|
util: () => util_exports,
|
|
541
525
|
version: () => version
|
|
542
526
|
});
|
|
527
|
+
|
|
528
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
543
529
|
var _a;
|
|
544
530
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
545
531
|
status: "aborted"
|
|
@@ -615,6 +601,8 @@ function config(newConfig) {
|
|
|
615
601
|
Object.assign(globalConfig, newConfig);
|
|
616
602
|
return globalConfig;
|
|
617
603
|
}
|
|
604
|
+
|
|
605
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
618
606
|
var util_exports = {};
|
|
619
607
|
__export(util_exports, {
|
|
620
608
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -781,10 +769,10 @@ function mergeDefs(...defs) {
|
|
|
781
769
|
function cloneDef(schema) {
|
|
782
770
|
return mergeDefs(schema._zod.def);
|
|
783
771
|
}
|
|
784
|
-
function getElementAtPath(obj,
|
|
785
|
-
if (!
|
|
772
|
+
function getElementAtPath(obj, path) {
|
|
773
|
+
if (!path)
|
|
786
774
|
return obj;
|
|
787
|
-
return
|
|
775
|
+
return path.reduce((acc, key) => acc?.[key], obj);
|
|
788
776
|
}
|
|
789
777
|
function promiseAllObject(promisesObj) {
|
|
790
778
|
const keys = Object.keys(promisesObj);
|
|
@@ -1193,11 +1181,11 @@ function explicitlyAborted(x, startIndex = 0) {
|
|
|
1193
1181
|
}
|
|
1194
1182
|
return false;
|
|
1195
1183
|
}
|
|
1196
|
-
function prefixIssues(
|
|
1184
|
+
function prefixIssues(path, issues) {
|
|
1197
1185
|
return issues.map((iss) => {
|
|
1198
1186
|
var _a3;
|
|
1199
1187
|
(_a3 = iss).path ?? (_a3.path = []);
|
|
1200
|
-
iss.path.unshift(
|
|
1188
|
+
iss.path.unshift(path);
|
|
1201
1189
|
return iss;
|
|
1202
1190
|
});
|
|
1203
1191
|
}
|
|
@@ -1309,6 +1297,8 @@ var Class = class {
|
|
|
1309
1297
|
constructor(..._args) {
|
|
1310
1298
|
}
|
|
1311
1299
|
};
|
|
1300
|
+
|
|
1301
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1312
1302
|
var initializer = (inst, def) => {
|
|
1313
1303
|
inst.name = "$ZodError";
|
|
1314
1304
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1325,8 +1315,8 @@ var initializer = (inst, def) => {
|
|
|
1325
1315
|
enumerable: false
|
|
1326
1316
|
});
|
|
1327
1317
|
};
|
|
1328
|
-
var $ZodError =
|
|
1329
|
-
var $ZodRealError =
|
|
1318
|
+
var $ZodError = $constructor("$ZodError", initializer);
|
|
1319
|
+
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1330
1320
|
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1331
1321
|
const fieldErrors = {};
|
|
1332
1322
|
const formErrors = [];
|
|
@@ -1342,16 +1332,16 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1342
1332
|
}
|
|
1343
1333
|
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1344
1334
|
const fieldErrors = { _errors: [] };
|
|
1345
|
-
const processError = (error52,
|
|
1335
|
+
const processError = (error52, path = []) => {
|
|
1346
1336
|
for (const issue2 of error52.issues) {
|
|
1347
1337
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1348
|
-
issue2.errors.map((issues) => processError({ issues }, [...
|
|
1338
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1349
1339
|
} else if (issue2.code === "invalid_key") {
|
|
1350
|
-
processError({ issues: issue2.issues }, [...
|
|
1340
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1351
1341
|
} else if (issue2.code === "invalid_element") {
|
|
1352
|
-
processError({ issues: issue2.issues }, [...
|
|
1342
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1353
1343
|
} else {
|
|
1354
|
-
const fullpath = [...
|
|
1344
|
+
const fullpath = [...path, ...issue2.path];
|
|
1355
1345
|
if (fullpath.length === 0) {
|
|
1356
1346
|
fieldErrors._errors.push(mapper(issue2));
|
|
1357
1347
|
} else {
|
|
@@ -1378,17 +1368,17 @@ function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1378
1368
|
}
|
|
1379
1369
|
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1380
1370
|
const result = { errors: [] };
|
|
1381
|
-
const processError = (error52,
|
|
1371
|
+
const processError = (error52, path = []) => {
|
|
1382
1372
|
var _a3, _b;
|
|
1383
1373
|
for (const issue2 of error52.issues) {
|
|
1384
1374
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1385
|
-
issue2.errors.map((issues) => processError({ issues }, [...
|
|
1375
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1386
1376
|
} else if (issue2.code === "invalid_key") {
|
|
1387
|
-
processError({ issues: issue2.issues }, [...
|
|
1377
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1388
1378
|
} else if (issue2.code === "invalid_element") {
|
|
1389
|
-
processError({ issues: issue2.issues }, [...
|
|
1379
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1390
1380
|
} else {
|
|
1391
|
-
const fullpath = [...
|
|
1381
|
+
const fullpath = [...path, ...issue2.path];
|
|
1392
1382
|
if (fullpath.length === 0) {
|
|
1393
1383
|
result.errors.push(mapper(issue2));
|
|
1394
1384
|
continue;
|
|
@@ -1420,8 +1410,8 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1420
1410
|
}
|
|
1421
1411
|
function toDotPath(_path) {
|
|
1422
1412
|
const segs = [];
|
|
1423
|
-
const
|
|
1424
|
-
for (const seg of
|
|
1413
|
+
const path = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
|
|
1414
|
+
for (const seg of path) {
|
|
1425
1415
|
if (typeof seg === "number")
|
|
1426
1416
|
segs.push(`[${seg}]`);
|
|
1427
1417
|
else if (typeof seg === "symbol")
|
|
@@ -1446,6 +1436,8 @@ function prettifyError(error51) {
|
|
|
1446
1436
|
}
|
|
1447
1437
|
return lines.join("\n");
|
|
1448
1438
|
}
|
|
1439
|
+
|
|
1440
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1449
1441
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1450
1442
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1451
1443
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1532,6 +1524,8 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1532
1524
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1533
1525
|
};
|
|
1534
1526
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1527
|
+
|
|
1528
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1535
1529
|
var regexes_exports = {};
|
|
1536
1530
|
__export(regexes_exports, {
|
|
1537
1531
|
base64: () => base64,
|
|
@@ -1689,6 +1683,8 @@ var sha384_base64url = /* @__PURE__ */ fixedBase64url(64);
|
|
|
1689
1683
|
var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
1690
1684
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1691
1685
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1686
|
+
|
|
1687
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1692
1688
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1693
1689
|
var _a3;
|
|
1694
1690
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2235,6 +2231,8 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2235
2231
|
payload.value = def.tx(payload.value);
|
|
2236
2232
|
};
|
|
2237
2233
|
});
|
|
2234
|
+
|
|
2235
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2238
2236
|
var Doc = class {
|
|
2239
2237
|
constructor(args = []) {
|
|
2240
2238
|
this.content = [];
|
|
@@ -2269,11 +2267,15 @@ var Doc = class {
|
|
|
2269
2267
|
return new F(...args, lines.join("\n"));
|
|
2270
2268
|
}
|
|
2271
2269
|
};
|
|
2270
|
+
|
|
2271
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2272
2272
|
var version = {
|
|
2273
2273
|
major: 4,
|
|
2274
2274
|
minor: 4,
|
|
2275
2275
|
patch: 3
|
|
2276
2276
|
};
|
|
2277
|
+
|
|
2278
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2277
2279
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2278
2280
|
var _a3;
|
|
2279
2281
|
inst ?? (inst = {});
|
|
@@ -4365,6 +4367,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4365
4367
|
payload.issues.push(issue(_iss));
|
|
4366
4368
|
}
|
|
4367
4369
|
}
|
|
4370
|
+
|
|
4371
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4368
4372
|
var locales_exports = {};
|
|
4369
4373
|
__export(locales_exports, {
|
|
4370
4374
|
ar: () => ar_default,
|
|
@@ -4420,6 +4424,8 @@ __export(locales_exports, {
|
|
|
4420
4424
|
zhCN: () => zh_CN_default,
|
|
4421
4425
|
zhTW: () => zh_TW_default
|
|
4422
4426
|
});
|
|
4427
|
+
|
|
4428
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4423
4429
|
var error = () => {
|
|
4424
4430
|
const Sizable = {
|
|
4425
4431
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4525,6 +4531,8 @@ function ar_default() {
|
|
|
4525
4531
|
localeError: error()
|
|
4526
4532
|
};
|
|
4527
4533
|
}
|
|
4534
|
+
|
|
4535
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4528
4536
|
var error2 = () => {
|
|
4529
4537
|
const Sizable = {
|
|
4530
4538
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4629,6 +4637,8 @@ function az_default() {
|
|
|
4629
4637
|
localeError: error2()
|
|
4630
4638
|
};
|
|
4631
4639
|
}
|
|
4640
|
+
|
|
4641
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4632
4642
|
function getBelarusianPlural(count, one, few, many) {
|
|
4633
4643
|
const absCount = Math.abs(count);
|
|
4634
4644
|
const lastDigit = absCount % 10;
|
|
@@ -4784,6 +4794,8 @@ function be_default() {
|
|
|
4784
4794
|
localeError: error3()
|
|
4785
4795
|
};
|
|
4786
4796
|
}
|
|
4797
|
+
|
|
4798
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4787
4799
|
var error4 = () => {
|
|
4788
4800
|
const Sizable = {
|
|
4789
4801
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -4903,6 +4915,8 @@ function bg_default() {
|
|
|
4903
4915
|
localeError: error4()
|
|
4904
4916
|
};
|
|
4905
4917
|
}
|
|
4918
|
+
|
|
4919
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4906
4920
|
var error5 = () => {
|
|
4907
4921
|
const Sizable = {
|
|
4908
4922
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5010,6 +5024,8 @@ function ca_default() {
|
|
|
5010
5024
|
localeError: error5()
|
|
5011
5025
|
};
|
|
5012
5026
|
}
|
|
5027
|
+
|
|
5028
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5013
5029
|
var error6 = () => {
|
|
5014
5030
|
const Sizable = {
|
|
5015
5031
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5120,6 +5136,8 @@ function cs_default() {
|
|
|
5120
5136
|
localeError: error6()
|
|
5121
5137
|
};
|
|
5122
5138
|
}
|
|
5139
|
+
|
|
5140
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5123
5141
|
var error7 = () => {
|
|
5124
5142
|
const Sizable = {
|
|
5125
5143
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5234,6 +5252,8 @@ function da_default() {
|
|
|
5234
5252
|
localeError: error7()
|
|
5235
5253
|
};
|
|
5236
5254
|
}
|
|
5255
|
+
|
|
5256
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5237
5257
|
var error8 = () => {
|
|
5238
5258
|
const Sizable = {
|
|
5239
5259
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5341,6 +5361,8 @@ function de_default() {
|
|
|
5341
5361
|
localeError: error8()
|
|
5342
5362
|
};
|
|
5343
5363
|
}
|
|
5364
|
+
|
|
5365
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5344
5366
|
var error9 = () => {
|
|
5345
5367
|
const Sizable = {
|
|
5346
5368
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -5449,6 +5471,8 @@ function el_default() {
|
|
|
5449
5471
|
localeError: error9()
|
|
5450
5472
|
};
|
|
5451
5473
|
}
|
|
5474
|
+
|
|
5475
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5452
5476
|
var error10 = () => {
|
|
5453
5477
|
const Sizable = {
|
|
5454
5478
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -5560,6 +5584,8 @@ function en_default() {
|
|
|
5560
5584
|
localeError: error10()
|
|
5561
5585
|
};
|
|
5562
5586
|
}
|
|
5587
|
+
|
|
5588
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5563
5589
|
var error11 = () => {
|
|
5564
5590
|
const Sizable = {
|
|
5565
5591
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -5668,6 +5694,8 @@ function eo_default() {
|
|
|
5668
5694
|
localeError: error11()
|
|
5669
5695
|
};
|
|
5670
5696
|
}
|
|
5697
|
+
|
|
5698
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5671
5699
|
var error12 = () => {
|
|
5672
5700
|
const Sizable = {
|
|
5673
5701
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5799,6 +5827,8 @@ function es_default() {
|
|
|
5799
5827
|
localeError: error12()
|
|
5800
5828
|
};
|
|
5801
5829
|
}
|
|
5830
|
+
|
|
5831
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5802
5832
|
var error13 = () => {
|
|
5803
5833
|
const Sizable = {
|
|
5804
5834
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5912,6 +5942,8 @@ function fa_default() {
|
|
|
5912
5942
|
localeError: error13()
|
|
5913
5943
|
};
|
|
5914
5944
|
}
|
|
5945
|
+
|
|
5946
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5915
5947
|
var error14 = () => {
|
|
5916
5948
|
const Sizable = {
|
|
5917
5949
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -6023,6 +6055,8 @@ function fi_default() {
|
|
|
6023
6055
|
localeError: error14()
|
|
6024
6056
|
};
|
|
6025
6057
|
}
|
|
6058
|
+
|
|
6059
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6026
6060
|
var error15 = () => {
|
|
6027
6061
|
const Sizable = {
|
|
6028
6062
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6147,6 +6181,8 @@ function fr_default() {
|
|
|
6147
6181
|
localeError: error15()
|
|
6148
6182
|
};
|
|
6149
6183
|
}
|
|
6184
|
+
|
|
6185
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6150
6186
|
var error16 = () => {
|
|
6151
6187
|
const Sizable = {
|
|
6152
6188
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6253,6 +6289,8 @@ function fr_CA_default() {
|
|
|
6253
6289
|
localeError: error16()
|
|
6254
6290
|
};
|
|
6255
6291
|
}
|
|
6292
|
+
|
|
6293
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6256
6294
|
var error17 = () => {
|
|
6257
6295
|
const TypeNames = {
|
|
6258
6296
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -6446,6 +6484,8 @@ function he_default() {
|
|
|
6446
6484
|
localeError: error17()
|
|
6447
6485
|
};
|
|
6448
6486
|
}
|
|
6487
|
+
|
|
6488
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6449
6489
|
var error18 = () => {
|
|
6450
6490
|
const Sizable = {
|
|
6451
6491
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -6567,6 +6607,8 @@ function hr_default() {
|
|
|
6567
6607
|
localeError: error18()
|
|
6568
6608
|
};
|
|
6569
6609
|
}
|
|
6610
|
+
|
|
6611
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6570
6612
|
var error19 = () => {
|
|
6571
6613
|
const Sizable = {
|
|
6572
6614
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6674,6 +6716,8 @@ function hu_default() {
|
|
|
6674
6716
|
localeError: error19()
|
|
6675
6717
|
};
|
|
6676
6718
|
}
|
|
6719
|
+
|
|
6720
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6677
6721
|
function getArmenianPlural(count, one, many) {
|
|
6678
6722
|
return Math.abs(count) === 1 ? one : many;
|
|
6679
6723
|
}
|
|
@@ -6820,6 +6864,8 @@ function hy_default() {
|
|
|
6820
6864
|
localeError: error20()
|
|
6821
6865
|
};
|
|
6822
6866
|
}
|
|
6867
|
+
|
|
6868
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
6823
6869
|
var error21 = () => {
|
|
6824
6870
|
const Sizable = {
|
|
6825
6871
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6925,6 +6971,8 @@ function id_default() {
|
|
|
6925
6971
|
localeError: error21()
|
|
6926
6972
|
};
|
|
6927
6973
|
}
|
|
6974
|
+
|
|
6975
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
6928
6976
|
var error22 = () => {
|
|
6929
6977
|
const Sizable = {
|
|
6930
6978
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -7033,6 +7081,8 @@ function is_default() {
|
|
|
7033
7081
|
localeError: error22()
|
|
7034
7082
|
};
|
|
7035
7083
|
}
|
|
7084
|
+
|
|
7085
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7036
7086
|
var error23 = () => {
|
|
7037
7087
|
const Sizable = {
|
|
7038
7088
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -7140,6 +7190,8 @@ function it_default() {
|
|
|
7140
7190
|
localeError: error23()
|
|
7141
7191
|
};
|
|
7142
7192
|
}
|
|
7193
|
+
|
|
7194
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7143
7195
|
var error24 = () => {
|
|
7144
7196
|
const Sizable = {
|
|
7145
7197
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -7246,6 +7298,8 @@ function ja_default() {
|
|
|
7246
7298
|
localeError: error24()
|
|
7247
7299
|
};
|
|
7248
7300
|
}
|
|
7301
|
+
|
|
7302
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7249
7303
|
var error25 = () => {
|
|
7250
7304
|
const Sizable = {
|
|
7251
7305
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7357,6 +7411,8 @@ function ka_default() {
|
|
|
7357
7411
|
localeError: error25()
|
|
7358
7412
|
};
|
|
7359
7413
|
}
|
|
7414
|
+
|
|
7415
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7360
7416
|
var error26 = () => {
|
|
7361
7417
|
const Sizable = {
|
|
7362
7418
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7466,9 +7522,13 @@ function km_default() {
|
|
|
7466
7522
|
localeError: error26()
|
|
7467
7523
|
};
|
|
7468
7524
|
}
|
|
7525
|
+
|
|
7526
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7469
7527
|
function kh_default() {
|
|
7470
7528
|
return km_default();
|
|
7471
7529
|
}
|
|
7530
|
+
|
|
7531
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7472
7532
|
var error27 = () => {
|
|
7473
7533
|
const Sizable = {
|
|
7474
7534
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -7579,6 +7639,8 @@ function ko_default() {
|
|
|
7579
7639
|
localeError: error27()
|
|
7580
7640
|
};
|
|
7581
7641
|
}
|
|
7642
|
+
|
|
7643
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7582
7644
|
var capitalizeFirstCharacter = (text) => {
|
|
7583
7645
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7584
7646
|
};
|
|
@@ -7781,6 +7843,8 @@ function lt_default() {
|
|
|
7781
7843
|
localeError: error28()
|
|
7782
7844
|
};
|
|
7783
7845
|
}
|
|
7846
|
+
|
|
7847
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
7784
7848
|
var error29 = () => {
|
|
7785
7849
|
const Sizable = {
|
|
7786
7850
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7889,6 +7953,8 @@ function mk_default() {
|
|
|
7889
7953
|
localeError: error29()
|
|
7890
7954
|
};
|
|
7891
7955
|
}
|
|
7956
|
+
|
|
7957
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7892
7958
|
var error30 = () => {
|
|
7893
7959
|
const Sizable = {
|
|
7894
7960
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -7995,6 +8061,8 @@ function ms_default() {
|
|
|
7995
8061
|
localeError: error30()
|
|
7996
8062
|
};
|
|
7997
8063
|
}
|
|
8064
|
+
|
|
8065
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
7998
8066
|
var error31 = () => {
|
|
7999
8067
|
const Sizable = {
|
|
8000
8068
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -8104,6 +8172,8 @@ function nl_default() {
|
|
|
8104
8172
|
localeError: error31()
|
|
8105
8173
|
};
|
|
8106
8174
|
}
|
|
8175
|
+
|
|
8176
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8107
8177
|
var error32 = () => {
|
|
8108
8178
|
const Sizable = {
|
|
8109
8179
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -8211,6 +8281,8 @@ function no_default() {
|
|
|
8211
8281
|
localeError: error32()
|
|
8212
8282
|
};
|
|
8213
8283
|
}
|
|
8284
|
+
|
|
8285
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8214
8286
|
var error33 = () => {
|
|
8215
8287
|
const Sizable = {
|
|
8216
8288
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8319,6 +8391,8 @@ function ota_default() {
|
|
|
8319
8391
|
localeError: error33()
|
|
8320
8392
|
};
|
|
8321
8393
|
}
|
|
8394
|
+
|
|
8395
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8322
8396
|
var error34 = () => {
|
|
8323
8397
|
const Sizable = {
|
|
8324
8398
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8432,6 +8506,8 @@ function ps_default() {
|
|
|
8432
8506
|
localeError: error34()
|
|
8433
8507
|
};
|
|
8434
8508
|
}
|
|
8509
|
+
|
|
8510
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8435
8511
|
var error35 = () => {
|
|
8436
8512
|
const Sizable = {
|
|
8437
8513
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -8540,6 +8616,8 @@ function pl_default() {
|
|
|
8540
8616
|
localeError: error35()
|
|
8541
8617
|
};
|
|
8542
8618
|
}
|
|
8619
|
+
|
|
8620
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8543
8621
|
var error36 = () => {
|
|
8544
8622
|
const Sizable = {
|
|
8545
8623
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8647,6 +8725,8 @@ function pt_default() {
|
|
|
8647
8725
|
localeError: error36()
|
|
8648
8726
|
};
|
|
8649
8727
|
}
|
|
8728
|
+
|
|
8729
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8650
8730
|
var error37 = () => {
|
|
8651
8731
|
const Sizable = {
|
|
8652
8732
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -8765,6 +8845,8 @@ function ro_default() {
|
|
|
8765
8845
|
localeError: error37()
|
|
8766
8846
|
};
|
|
8767
8847
|
}
|
|
8848
|
+
|
|
8849
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8768
8850
|
function getRussianPlural(count, one, few, many) {
|
|
8769
8851
|
const absCount = Math.abs(count);
|
|
8770
8852
|
const lastDigit = absCount % 10;
|
|
@@ -8920,6 +9002,8 @@ function ru_default() {
|
|
|
8920
9002
|
localeError: error38()
|
|
8921
9003
|
};
|
|
8922
9004
|
}
|
|
9005
|
+
|
|
9006
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
8923
9007
|
var error39 = () => {
|
|
8924
9008
|
const Sizable = {
|
|
8925
9009
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -9028,6 +9112,8 @@ function sl_default() {
|
|
|
9028
9112
|
localeError: error39()
|
|
9029
9113
|
};
|
|
9030
9114
|
}
|
|
9115
|
+
|
|
9116
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9031
9117
|
var error40 = () => {
|
|
9032
9118
|
const Sizable = {
|
|
9033
9119
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -9137,6 +9223,8 @@ function sv_default() {
|
|
|
9137
9223
|
localeError: error40()
|
|
9138
9224
|
};
|
|
9139
9225
|
}
|
|
9226
|
+
|
|
9227
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9140
9228
|
var error41 = () => {
|
|
9141
9229
|
const Sizable = {
|
|
9142
9230
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -9246,6 +9334,8 @@ function ta_default() {
|
|
|
9246
9334
|
localeError: error41()
|
|
9247
9335
|
};
|
|
9248
9336
|
}
|
|
9337
|
+
|
|
9338
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9249
9339
|
var error42 = () => {
|
|
9250
9340
|
const Sizable = {
|
|
9251
9341
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9355,6 +9445,8 @@ function th_default() {
|
|
|
9355
9445
|
localeError: error42()
|
|
9356
9446
|
};
|
|
9357
9447
|
}
|
|
9448
|
+
|
|
9449
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9358
9450
|
var error43 = () => {
|
|
9359
9451
|
const Sizable = {
|
|
9360
9452
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -9459,6 +9551,8 @@ function tr_default() {
|
|
|
9459
9551
|
localeError: error43()
|
|
9460
9552
|
};
|
|
9461
9553
|
}
|
|
9554
|
+
|
|
9555
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9462
9556
|
var error44 = () => {
|
|
9463
9557
|
const Sizable = {
|
|
9464
9558
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9566,9 +9660,13 @@ function uk_default() {
|
|
|
9566
9660
|
localeError: error44()
|
|
9567
9661
|
};
|
|
9568
9662
|
}
|
|
9663
|
+
|
|
9664
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9569
9665
|
function ua_default() {
|
|
9570
9666
|
return uk_default();
|
|
9571
9667
|
}
|
|
9668
|
+
|
|
9669
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9572
9670
|
var error45 = () => {
|
|
9573
9671
|
const Sizable = {
|
|
9574
9672
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9678,6 +9776,8 @@ function ur_default() {
|
|
|
9678
9776
|
localeError: error45()
|
|
9679
9777
|
};
|
|
9680
9778
|
}
|
|
9779
|
+
|
|
9780
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
9681
9781
|
var error46 = () => {
|
|
9682
9782
|
const Sizable = {
|
|
9683
9783
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -9787,6 +9887,8 @@ function uz_default() {
|
|
|
9787
9887
|
localeError: error46()
|
|
9788
9888
|
};
|
|
9789
9889
|
}
|
|
9890
|
+
|
|
9891
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
9790
9892
|
var error47 = () => {
|
|
9791
9893
|
const Sizable = {
|
|
9792
9894
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -9894,6 +9996,8 @@ function vi_default() {
|
|
|
9894
9996
|
localeError: error47()
|
|
9895
9997
|
};
|
|
9896
9998
|
}
|
|
9999
|
+
|
|
10000
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
9897
10001
|
var error48 = () => {
|
|
9898
10002
|
const Sizable = {
|
|
9899
10003
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -10002,6 +10106,8 @@ function zh_CN_default() {
|
|
|
10002
10106
|
localeError: error48()
|
|
10003
10107
|
};
|
|
10004
10108
|
}
|
|
10109
|
+
|
|
10110
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10005
10111
|
var error49 = () => {
|
|
10006
10112
|
const Sizable = {
|
|
10007
10113
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -10108,6 +10214,8 @@ function zh_TW_default() {
|
|
|
10108
10214
|
localeError: error49()
|
|
10109
10215
|
};
|
|
10110
10216
|
}
|
|
10217
|
+
|
|
10218
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10111
10219
|
var error50 = () => {
|
|
10112
10220
|
const Sizable = {
|
|
10113
10221
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -10214,6 +10322,8 @@ function yo_default() {
|
|
|
10214
10322
|
localeError: error50()
|
|
10215
10323
|
};
|
|
10216
10324
|
}
|
|
10325
|
+
|
|
10326
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10217
10327
|
var _a2;
|
|
10218
10328
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10219
10329
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -10262,6 +10372,8 @@ function registry() {
|
|
|
10262
10372
|
}
|
|
10263
10373
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10264
10374
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10375
|
+
|
|
10376
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
10265
10377
|
// @__NO_SIDE_EFFECTS__
|
|
10266
10378
|
function _string(Class2, params) {
|
|
10267
10379
|
return new Class2({
|
|
@@ -11299,6 +11411,8 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11299
11411
|
const inst = new Class2(def);
|
|
11300
11412
|
return inst;
|
|
11301
11413
|
}
|
|
11414
|
+
|
|
11415
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
11302
11416
|
function initializeContext(params) {
|
|
11303
11417
|
let target = params?.target ?? "draft-2020-12";
|
|
11304
11418
|
if (target === "draft-4")
|
|
@@ -11320,7 +11434,7 @@ function initializeContext(params) {
|
|
|
11320
11434
|
external: params?.external ?? void 0
|
|
11321
11435
|
};
|
|
11322
11436
|
}
|
|
11323
|
-
function
|
|
11437
|
+
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11324
11438
|
var _a3;
|
|
11325
11439
|
const def = schema._zod.def;
|
|
11326
11440
|
const seen = ctx.seen.get(schema);
|
|
@@ -11357,7 +11471,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11357
11471
|
if (parent) {
|
|
11358
11472
|
if (!result.ref)
|
|
11359
11473
|
result.ref = parent;
|
|
11360
|
-
|
|
11474
|
+
process(parent, ctx, params);
|
|
11361
11475
|
ctx.seen.get(parent).isParent = true;
|
|
11362
11476
|
}
|
|
11363
11477
|
}
|
|
@@ -11645,17 +11759,19 @@ function isTransforming(_schema, _ctx) {
|
|
|
11645
11759
|
}
|
|
11646
11760
|
var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
11647
11761
|
const ctx = initializeContext({ ...params, processors });
|
|
11648
|
-
|
|
11762
|
+
process(schema, ctx);
|
|
11649
11763
|
extractDefs(ctx, schema);
|
|
11650
11764
|
return finalize(ctx, schema);
|
|
11651
11765
|
};
|
|
11652
11766
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11653
11767
|
const { libraryOptions, target } = params ?? {};
|
|
11654
11768
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11655
|
-
|
|
11769
|
+
process(schema, ctx);
|
|
11656
11770
|
extractDefs(ctx, schema);
|
|
11657
11771
|
return finalize(ctx, schema);
|
|
11658
11772
|
};
|
|
11773
|
+
|
|
11774
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11659
11775
|
var formatMap = {
|
|
11660
11776
|
guid: "uuid",
|
|
11661
11777
|
url: "uri",
|
|
@@ -11896,7 +12012,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11896
12012
|
if (typeof maximum === "number")
|
|
11897
12013
|
json2.maxItems = maximum;
|
|
11898
12014
|
json2.type = "array";
|
|
11899
|
-
json2.items =
|
|
12015
|
+
json2.items = process(def.element, ctx, {
|
|
11900
12016
|
...params,
|
|
11901
12017
|
path: [...params.path, "items"]
|
|
11902
12018
|
});
|
|
@@ -11908,7 +12024,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
11908
12024
|
json2.properties = {};
|
|
11909
12025
|
const shape = def.shape;
|
|
11910
12026
|
for (const key in shape) {
|
|
11911
|
-
json2.properties[key] =
|
|
12027
|
+
json2.properties[key] = process(shape[key], ctx, {
|
|
11912
12028
|
...params,
|
|
11913
12029
|
path: [...params.path, "properties", key]
|
|
11914
12030
|
});
|
|
@@ -11931,7 +12047,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
11931
12047
|
if (ctx.io === "output")
|
|
11932
12048
|
json2.additionalProperties = false;
|
|
11933
12049
|
} else if (def.catchall) {
|
|
11934
|
-
json2.additionalProperties =
|
|
12050
|
+
json2.additionalProperties = process(def.catchall, ctx, {
|
|
11935
12051
|
...params,
|
|
11936
12052
|
path: [...params.path, "additionalProperties"]
|
|
11937
12053
|
});
|
|
@@ -11940,7 +12056,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
11940
12056
|
var unionProcessor = (schema, ctx, json2, params) => {
|
|
11941
12057
|
const def = schema._zod.def;
|
|
11942
12058
|
const isExclusive = def.inclusive === false;
|
|
11943
|
-
const options = def.options.map((x, i) =>
|
|
12059
|
+
const options = def.options.map((x, i) => process(x, ctx, {
|
|
11944
12060
|
...params,
|
|
11945
12061
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
11946
12062
|
}));
|
|
@@ -11952,11 +12068,11 @@ var unionProcessor = (schema, ctx, json2, params) => {
|
|
|
11952
12068
|
};
|
|
11953
12069
|
var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
11954
12070
|
const def = schema._zod.def;
|
|
11955
|
-
const a =
|
|
12071
|
+
const a = process(def.left, ctx, {
|
|
11956
12072
|
...params,
|
|
11957
12073
|
path: [...params.path, "allOf", 0]
|
|
11958
12074
|
});
|
|
11959
|
-
const b =
|
|
12075
|
+
const b = process(def.right, ctx, {
|
|
11960
12076
|
...params,
|
|
11961
12077
|
path: [...params.path, "allOf", 1]
|
|
11962
12078
|
});
|
|
@@ -11973,11 +12089,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
11973
12089
|
json2.type = "array";
|
|
11974
12090
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
11975
12091
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
11976
|
-
const prefixItems = def.items.map((x, i) =>
|
|
12092
|
+
const prefixItems = def.items.map((x, i) => process(x, ctx, {
|
|
11977
12093
|
...params,
|
|
11978
12094
|
path: [...params.path, prefixPath, i]
|
|
11979
12095
|
}));
|
|
11980
|
-
const rest = def.rest ?
|
|
12096
|
+
const rest = def.rest ? process(def.rest, ctx, {
|
|
11981
12097
|
...params,
|
|
11982
12098
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
11983
12099
|
}) : null;
|
|
@@ -12017,7 +12133,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12017
12133
|
const keyBag = keyType._zod.bag;
|
|
12018
12134
|
const patterns = keyBag?.patterns;
|
|
12019
12135
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
12020
|
-
const valueSchema =
|
|
12136
|
+
const valueSchema = process(def.valueType, ctx, {
|
|
12021
12137
|
...params,
|
|
12022
12138
|
path: [...params.path, "patternProperties", "*"]
|
|
12023
12139
|
});
|
|
@@ -12027,12 +12143,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12027
12143
|
}
|
|
12028
12144
|
} else {
|
|
12029
12145
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
12030
|
-
json2.propertyNames =
|
|
12146
|
+
json2.propertyNames = process(def.keyType, ctx, {
|
|
12031
12147
|
...params,
|
|
12032
12148
|
path: [...params.path, "propertyNames"]
|
|
12033
12149
|
});
|
|
12034
12150
|
}
|
|
12035
|
-
json2.additionalProperties =
|
|
12151
|
+
json2.additionalProperties = process(def.valueType, ctx, {
|
|
12036
12152
|
...params,
|
|
12037
12153
|
path: [...params.path, "additionalProperties"]
|
|
12038
12154
|
});
|
|
@@ -12047,7 +12163,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12047
12163
|
};
|
|
12048
12164
|
var nullableProcessor = (schema, ctx, json2, params) => {
|
|
12049
12165
|
const def = schema._zod.def;
|
|
12050
|
-
const inner =
|
|
12166
|
+
const inner = process(def.innerType, ctx, params);
|
|
12051
12167
|
const seen = ctx.seen.get(schema);
|
|
12052
12168
|
if (ctx.target === "openapi-3.0") {
|
|
12053
12169
|
seen.ref = def.innerType;
|
|
@@ -12058,20 +12174,20 @@ var nullableProcessor = (schema, ctx, json2, params) => {
|
|
|
12058
12174
|
};
|
|
12059
12175
|
var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
12060
12176
|
const def = schema._zod.def;
|
|
12061
|
-
|
|
12177
|
+
process(def.innerType, ctx, params);
|
|
12062
12178
|
const seen = ctx.seen.get(schema);
|
|
12063
12179
|
seen.ref = def.innerType;
|
|
12064
12180
|
};
|
|
12065
12181
|
var defaultProcessor = (schema, ctx, json2, params) => {
|
|
12066
12182
|
const def = schema._zod.def;
|
|
12067
|
-
|
|
12183
|
+
process(def.innerType, ctx, params);
|
|
12068
12184
|
const seen = ctx.seen.get(schema);
|
|
12069
12185
|
seen.ref = def.innerType;
|
|
12070
12186
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
12071
12187
|
};
|
|
12072
12188
|
var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
12073
12189
|
const def = schema._zod.def;
|
|
12074
|
-
|
|
12190
|
+
process(def.innerType, ctx, params);
|
|
12075
12191
|
const seen = ctx.seen.get(schema);
|
|
12076
12192
|
seen.ref = def.innerType;
|
|
12077
12193
|
if (ctx.io === "input")
|
|
@@ -12079,7 +12195,7 @@ var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
|
12079
12195
|
};
|
|
12080
12196
|
var catchProcessor = (schema, ctx, json2, params) => {
|
|
12081
12197
|
const def = schema._zod.def;
|
|
12082
|
-
|
|
12198
|
+
process(def.innerType, ctx, params);
|
|
12083
12199
|
const seen = ctx.seen.get(schema);
|
|
12084
12200
|
seen.ref = def.innerType;
|
|
12085
12201
|
let catchValue;
|
|
@@ -12094,32 +12210,32 @@ var pipeProcessor = (schema, ctx, _json, params) => {
|
|
|
12094
12210
|
const def = schema._zod.def;
|
|
12095
12211
|
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12096
12212
|
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12097
|
-
|
|
12213
|
+
process(innerType, ctx, params);
|
|
12098
12214
|
const seen = ctx.seen.get(schema);
|
|
12099
12215
|
seen.ref = innerType;
|
|
12100
12216
|
};
|
|
12101
12217
|
var readonlyProcessor = (schema, ctx, json2, params) => {
|
|
12102
12218
|
const def = schema._zod.def;
|
|
12103
|
-
|
|
12219
|
+
process(def.innerType, ctx, params);
|
|
12104
12220
|
const seen = ctx.seen.get(schema);
|
|
12105
12221
|
seen.ref = def.innerType;
|
|
12106
12222
|
json2.readOnly = true;
|
|
12107
12223
|
};
|
|
12108
12224
|
var promiseProcessor = (schema, ctx, _json, params) => {
|
|
12109
12225
|
const def = schema._zod.def;
|
|
12110
|
-
|
|
12226
|
+
process(def.innerType, ctx, params);
|
|
12111
12227
|
const seen = ctx.seen.get(schema);
|
|
12112
12228
|
seen.ref = def.innerType;
|
|
12113
12229
|
};
|
|
12114
12230
|
var optionalProcessor = (schema, ctx, _json, params) => {
|
|
12115
12231
|
const def = schema._zod.def;
|
|
12116
|
-
|
|
12232
|
+
process(def.innerType, ctx, params);
|
|
12117
12233
|
const seen = ctx.seen.get(schema);
|
|
12118
12234
|
seen.ref = def.innerType;
|
|
12119
12235
|
};
|
|
12120
12236
|
var lazyProcessor = (schema, ctx, _json, params) => {
|
|
12121
12237
|
const innerType = schema._zod.innerType;
|
|
12122
|
-
|
|
12238
|
+
process(innerType, ctx, params);
|
|
12123
12239
|
const seen = ctx.seen.get(schema);
|
|
12124
12240
|
seen.ref = innerType;
|
|
12125
12241
|
};
|
|
@@ -12171,7 +12287,7 @@ function toJSONSchema(input, params) {
|
|
|
12171
12287
|
const defs = {};
|
|
12172
12288
|
for (const entry of registry2._idmap.entries()) {
|
|
12173
12289
|
const [_, schema] = entry;
|
|
12174
|
-
|
|
12290
|
+
process(schema, ctx2);
|
|
12175
12291
|
}
|
|
12176
12292
|
const schemas = {};
|
|
12177
12293
|
const external = {
|
|
@@ -12194,10 +12310,12 @@ function toJSONSchema(input, params) {
|
|
|
12194
12310
|
return { schemas };
|
|
12195
12311
|
}
|
|
12196
12312
|
const ctx = initializeContext({ ...params, processors: allProcessors });
|
|
12197
|
-
|
|
12313
|
+
process(input, ctx);
|
|
12198
12314
|
extractDefs(ctx, input);
|
|
12199
12315
|
return finalize(ctx, input);
|
|
12200
12316
|
}
|
|
12317
|
+
|
|
12318
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
12201
12319
|
var JSONSchemaGenerator = class {
|
|
12202
12320
|
/** @deprecated Access via ctx instead */
|
|
12203
12321
|
get metadataRegistry() {
|
|
@@ -12250,7 +12368,7 @@ var JSONSchemaGenerator = class {
|
|
|
12250
12368
|
* This must be called before emit().
|
|
12251
12369
|
*/
|
|
12252
12370
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
12253
|
-
return
|
|
12371
|
+
return process(schema, this.ctx, _params);
|
|
12254
12372
|
}
|
|
12255
12373
|
/**
|
|
12256
12374
|
* Emit the final JSON Schema after processing.
|
|
@@ -12271,7 +12389,11 @@ var JSONSchemaGenerator = class {
|
|
|
12271
12389
|
return plainResult;
|
|
12272
12390
|
}
|
|
12273
12391
|
};
|
|
12392
|
+
|
|
12393
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
12274
12394
|
var json_schema_exports = {};
|
|
12395
|
+
|
|
12396
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12275
12397
|
var schemas_exports2 = {};
|
|
12276
12398
|
__export(schemas_exports2, {
|
|
12277
12399
|
ZodAny: () => ZodAny,
|
|
@@ -12441,6 +12563,8 @@ __export(schemas_exports2, {
|
|
|
12441
12563
|
xid: () => xid2,
|
|
12442
12564
|
xor: () => xor
|
|
12443
12565
|
});
|
|
12566
|
+
|
|
12567
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12444
12568
|
var checks_exports2 = {};
|
|
12445
12569
|
__export(checks_exports2, {
|
|
12446
12570
|
endsWith: () => _endsWith,
|
|
@@ -12473,6 +12597,8 @@ __export(checks_exports2, {
|
|
|
12473
12597
|
trim: () => _trim,
|
|
12474
12598
|
uppercase: () => _uppercase
|
|
12475
12599
|
});
|
|
12600
|
+
|
|
12601
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12476
12602
|
var iso_exports = {};
|
|
12477
12603
|
__export(iso_exports, {
|
|
12478
12604
|
ZodISODate: () => ZodISODate,
|
|
@@ -12489,29 +12615,31 @@ var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def)
|
|
|
12489
12615
|
ZodStringFormat.init(inst, def);
|
|
12490
12616
|
});
|
|
12491
12617
|
function datetime2(params) {
|
|
12492
|
-
return
|
|
12618
|
+
return _isoDateTime(ZodISODateTime, params);
|
|
12493
12619
|
}
|
|
12494
12620
|
var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
|
|
12495
12621
|
$ZodISODate.init(inst, def);
|
|
12496
12622
|
ZodStringFormat.init(inst, def);
|
|
12497
12623
|
});
|
|
12498
12624
|
function date2(params) {
|
|
12499
|
-
return
|
|
12625
|
+
return _isoDate(ZodISODate, params);
|
|
12500
12626
|
}
|
|
12501
12627
|
var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
|
|
12502
12628
|
$ZodISOTime.init(inst, def);
|
|
12503
12629
|
ZodStringFormat.init(inst, def);
|
|
12504
12630
|
});
|
|
12505
12631
|
function time2(params) {
|
|
12506
|
-
return
|
|
12632
|
+
return _isoTime(ZodISOTime, params);
|
|
12507
12633
|
}
|
|
12508
12634
|
var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
|
|
12509
12635
|
$ZodISODuration.init(inst, def);
|
|
12510
12636
|
ZodStringFormat.init(inst, def);
|
|
12511
12637
|
});
|
|
12512
12638
|
function duration2(params) {
|
|
12513
|
-
return
|
|
12639
|
+
return _isoDuration(ZodISODuration, params);
|
|
12514
12640
|
}
|
|
12641
|
+
|
|
12642
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12515
12643
|
var initializer2 = (inst, issues) => {
|
|
12516
12644
|
$ZodError.init(inst, issues);
|
|
12517
12645
|
inst.name = "ZodError";
|
|
@@ -12550,6 +12678,8 @@ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
|
12550
12678
|
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12551
12679
|
Parent: Error
|
|
12552
12680
|
});
|
|
12681
|
+
|
|
12682
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12553
12683
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12554
12684
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12555
12685
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12562,6 +12692,8 @@ var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
12562
12692
|
var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
12563
12693
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12564
12694
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12695
|
+
|
|
12696
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12565
12697
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12566
12698
|
function _installLazyMethods(inst, group, methods) {
|
|
12567
12699
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -12654,7 +12786,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12654
12786
|
return this.check(superRefine(refinement, params));
|
|
12655
12787
|
},
|
|
12656
12788
|
overwrite(fn) {
|
|
12657
|
-
return this.check(
|
|
12789
|
+
return this.check(_overwrite(fn));
|
|
12658
12790
|
},
|
|
12659
12791
|
optional() {
|
|
12660
12792
|
return optional(this);
|
|
@@ -12738,85 +12870,85 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12738
12870
|
inst.maxLength = bag.maximum ?? null;
|
|
12739
12871
|
_installLazyMethods(inst, "_ZodString", {
|
|
12740
12872
|
regex(...args) {
|
|
12741
|
-
return this.check(
|
|
12873
|
+
return this.check(_regex(...args));
|
|
12742
12874
|
},
|
|
12743
12875
|
includes(...args) {
|
|
12744
|
-
return this.check(
|
|
12876
|
+
return this.check(_includes(...args));
|
|
12745
12877
|
},
|
|
12746
12878
|
startsWith(...args) {
|
|
12747
|
-
return this.check(
|
|
12879
|
+
return this.check(_startsWith(...args));
|
|
12748
12880
|
},
|
|
12749
12881
|
endsWith(...args) {
|
|
12750
|
-
return this.check(
|
|
12882
|
+
return this.check(_endsWith(...args));
|
|
12751
12883
|
},
|
|
12752
12884
|
min(...args) {
|
|
12753
|
-
return this.check(
|
|
12885
|
+
return this.check(_minLength(...args));
|
|
12754
12886
|
},
|
|
12755
12887
|
max(...args) {
|
|
12756
|
-
return this.check(
|
|
12888
|
+
return this.check(_maxLength(...args));
|
|
12757
12889
|
},
|
|
12758
12890
|
length(...args) {
|
|
12759
|
-
return this.check(
|
|
12891
|
+
return this.check(_length(...args));
|
|
12760
12892
|
},
|
|
12761
12893
|
nonempty(...args) {
|
|
12762
|
-
return this.check(
|
|
12894
|
+
return this.check(_minLength(1, ...args));
|
|
12763
12895
|
},
|
|
12764
12896
|
lowercase(params) {
|
|
12765
|
-
return this.check(
|
|
12897
|
+
return this.check(_lowercase(params));
|
|
12766
12898
|
},
|
|
12767
12899
|
uppercase(params) {
|
|
12768
|
-
return this.check(
|
|
12900
|
+
return this.check(_uppercase(params));
|
|
12769
12901
|
},
|
|
12770
12902
|
trim() {
|
|
12771
|
-
return this.check(
|
|
12903
|
+
return this.check(_trim());
|
|
12772
12904
|
},
|
|
12773
12905
|
normalize(...args) {
|
|
12774
|
-
return this.check(
|
|
12906
|
+
return this.check(_normalize(...args));
|
|
12775
12907
|
},
|
|
12776
12908
|
toLowerCase() {
|
|
12777
|
-
return this.check(
|
|
12909
|
+
return this.check(_toLowerCase());
|
|
12778
12910
|
},
|
|
12779
12911
|
toUpperCase() {
|
|
12780
|
-
return this.check(
|
|
12912
|
+
return this.check(_toUpperCase());
|
|
12781
12913
|
},
|
|
12782
12914
|
slugify() {
|
|
12783
|
-
return this.check(
|
|
12915
|
+
return this.check(_slugify());
|
|
12784
12916
|
}
|
|
12785
12917
|
});
|
|
12786
12918
|
});
|
|
12787
12919
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12788
12920
|
$ZodString.init(inst, def);
|
|
12789
12921
|
_ZodString.init(inst, def);
|
|
12790
|
-
inst.email = (params) => inst.check(
|
|
12791
|
-
inst.url = (params) => inst.check(
|
|
12792
|
-
inst.jwt = (params) => inst.check(
|
|
12793
|
-
inst.emoji = (params) => inst.check(
|
|
12794
|
-
inst.guid = (params) => inst.check(
|
|
12795
|
-
inst.uuid = (params) => inst.check(
|
|
12796
|
-
inst.uuidv4 = (params) => inst.check(
|
|
12797
|
-
inst.uuidv6 = (params) => inst.check(
|
|
12798
|
-
inst.uuidv7 = (params) => inst.check(
|
|
12799
|
-
inst.nanoid = (params) => inst.check(
|
|
12800
|
-
inst.guid = (params) => inst.check(
|
|
12801
|
-
inst.cuid = (params) => inst.check(
|
|
12802
|
-
inst.cuid2 = (params) => inst.check(
|
|
12803
|
-
inst.ulid = (params) => inst.check(
|
|
12804
|
-
inst.base64 = (params) => inst.check(
|
|
12805
|
-
inst.base64url = (params) => inst.check(
|
|
12806
|
-
inst.xid = (params) => inst.check(
|
|
12807
|
-
inst.ksuid = (params) => inst.check(
|
|
12808
|
-
inst.ipv4 = (params) => inst.check(
|
|
12809
|
-
inst.ipv6 = (params) => inst.check(
|
|
12810
|
-
inst.cidrv4 = (params) => inst.check(
|
|
12811
|
-
inst.cidrv6 = (params) => inst.check(
|
|
12812
|
-
inst.e164 = (params) => inst.check(
|
|
12922
|
+
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
12923
|
+
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
12924
|
+
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
12925
|
+
inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
|
|
12926
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
12927
|
+
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
12928
|
+
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
12929
|
+
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
12930
|
+
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
12931
|
+
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
12932
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
12933
|
+
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
12934
|
+
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
12935
|
+
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
12936
|
+
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
12937
|
+
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
12938
|
+
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
12939
|
+
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
12940
|
+
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
12941
|
+
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
12942
|
+
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
12943
|
+
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
12944
|
+
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
12813
12945
|
inst.datetime = (params) => inst.check(datetime2(params));
|
|
12814
12946
|
inst.date = (params) => inst.check(date2(params));
|
|
12815
12947
|
inst.time = (params) => inst.check(time2(params));
|
|
12816
12948
|
inst.duration = (params) => inst.check(duration2(params));
|
|
12817
12949
|
});
|
|
12818
12950
|
function string2(params) {
|
|
12819
|
-
return
|
|
12951
|
+
return _string(ZodString, params);
|
|
12820
12952
|
}
|
|
12821
12953
|
var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
12822
12954
|
$ZodStringFormat.init(inst, def);
|
|
@@ -12827,40 +12959,40 @@ var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
|
|
|
12827
12959
|
ZodStringFormat.init(inst, def);
|
|
12828
12960
|
});
|
|
12829
12961
|
function email2(params) {
|
|
12830
|
-
return
|
|
12962
|
+
return _email(ZodEmail, params);
|
|
12831
12963
|
}
|
|
12832
12964
|
var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
|
|
12833
12965
|
$ZodGUID.init(inst, def);
|
|
12834
12966
|
ZodStringFormat.init(inst, def);
|
|
12835
12967
|
});
|
|
12836
12968
|
function guid2(params) {
|
|
12837
|
-
return
|
|
12969
|
+
return _guid(ZodGUID, params);
|
|
12838
12970
|
}
|
|
12839
12971
|
var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
|
|
12840
12972
|
$ZodUUID.init(inst, def);
|
|
12841
12973
|
ZodStringFormat.init(inst, def);
|
|
12842
12974
|
});
|
|
12843
12975
|
function uuid2(params) {
|
|
12844
|
-
return
|
|
12976
|
+
return _uuid(ZodUUID, params);
|
|
12845
12977
|
}
|
|
12846
12978
|
function uuidv4(params) {
|
|
12847
|
-
return
|
|
12979
|
+
return _uuidv4(ZodUUID, params);
|
|
12848
12980
|
}
|
|
12849
12981
|
function uuidv6(params) {
|
|
12850
|
-
return
|
|
12982
|
+
return _uuidv6(ZodUUID, params);
|
|
12851
12983
|
}
|
|
12852
12984
|
function uuidv7(params) {
|
|
12853
|
-
return
|
|
12985
|
+
return _uuidv7(ZodUUID, params);
|
|
12854
12986
|
}
|
|
12855
12987
|
var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
12856
12988
|
$ZodURL.init(inst, def);
|
|
12857
12989
|
ZodStringFormat.init(inst, def);
|
|
12858
12990
|
});
|
|
12859
12991
|
function url(params) {
|
|
12860
|
-
return
|
|
12992
|
+
return _url(ZodURL, params);
|
|
12861
12993
|
}
|
|
12862
12994
|
function httpUrl(params) {
|
|
12863
|
-
return
|
|
12995
|
+
return _url(ZodURL, {
|
|
12864
12996
|
protocol: regexes_exports.httpProtocol,
|
|
12865
12997
|
hostname: regexes_exports.domain,
|
|
12866
12998
|
...util_exports.normalizeParams(params)
|
|
@@ -12871,125 +13003,125 @@ var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
|
|
|
12871
13003
|
ZodStringFormat.init(inst, def);
|
|
12872
13004
|
});
|
|
12873
13005
|
function emoji2(params) {
|
|
12874
|
-
return
|
|
13006
|
+
return _emoji2(ZodEmoji, params);
|
|
12875
13007
|
}
|
|
12876
13008
|
var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
12877
13009
|
$ZodNanoID.init(inst, def);
|
|
12878
13010
|
ZodStringFormat.init(inst, def);
|
|
12879
13011
|
});
|
|
12880
13012
|
function nanoid2(params) {
|
|
12881
|
-
return
|
|
13013
|
+
return _nanoid(ZodNanoID, params);
|
|
12882
13014
|
}
|
|
12883
13015
|
var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
|
|
12884
13016
|
$ZodCUID.init(inst, def);
|
|
12885
13017
|
ZodStringFormat.init(inst, def);
|
|
12886
13018
|
});
|
|
12887
13019
|
function cuid3(params) {
|
|
12888
|
-
return
|
|
13020
|
+
return _cuid(ZodCUID, params);
|
|
12889
13021
|
}
|
|
12890
13022
|
var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
|
|
12891
13023
|
$ZodCUID2.init(inst, def);
|
|
12892
13024
|
ZodStringFormat.init(inst, def);
|
|
12893
13025
|
});
|
|
12894
13026
|
function cuid22(params) {
|
|
12895
|
-
return
|
|
13027
|
+
return _cuid2(ZodCUID2, params);
|
|
12896
13028
|
}
|
|
12897
13029
|
var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
|
|
12898
13030
|
$ZodULID.init(inst, def);
|
|
12899
13031
|
ZodStringFormat.init(inst, def);
|
|
12900
13032
|
});
|
|
12901
13033
|
function ulid2(params) {
|
|
12902
|
-
return
|
|
13034
|
+
return _ulid(ZodULID, params);
|
|
12903
13035
|
}
|
|
12904
13036
|
var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
|
|
12905
13037
|
$ZodXID.init(inst, def);
|
|
12906
13038
|
ZodStringFormat.init(inst, def);
|
|
12907
13039
|
});
|
|
12908
13040
|
function xid2(params) {
|
|
12909
|
-
return
|
|
13041
|
+
return _xid(ZodXID, params);
|
|
12910
13042
|
}
|
|
12911
13043
|
var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
|
|
12912
13044
|
$ZodKSUID.init(inst, def);
|
|
12913
13045
|
ZodStringFormat.init(inst, def);
|
|
12914
13046
|
});
|
|
12915
13047
|
function ksuid2(params) {
|
|
12916
|
-
return
|
|
13048
|
+
return _ksuid(ZodKSUID, params);
|
|
12917
13049
|
}
|
|
12918
13050
|
var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
12919
13051
|
$ZodIPv4.init(inst, def);
|
|
12920
13052
|
ZodStringFormat.init(inst, def);
|
|
12921
13053
|
});
|
|
12922
13054
|
function ipv42(params) {
|
|
12923
|
-
return
|
|
13055
|
+
return _ipv4(ZodIPv4, params);
|
|
12924
13056
|
}
|
|
12925
13057
|
var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
|
|
12926
13058
|
$ZodMAC.init(inst, def);
|
|
12927
13059
|
ZodStringFormat.init(inst, def);
|
|
12928
13060
|
});
|
|
12929
13061
|
function mac2(params) {
|
|
12930
|
-
return
|
|
13062
|
+
return _mac(ZodMAC, params);
|
|
12931
13063
|
}
|
|
12932
13064
|
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
12933
13065
|
$ZodIPv6.init(inst, def);
|
|
12934
13066
|
ZodStringFormat.init(inst, def);
|
|
12935
13067
|
});
|
|
12936
13068
|
function ipv62(params) {
|
|
12937
|
-
return
|
|
13069
|
+
return _ipv6(ZodIPv6, params);
|
|
12938
13070
|
}
|
|
12939
13071
|
var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
|
|
12940
13072
|
$ZodCIDRv4.init(inst, def);
|
|
12941
13073
|
ZodStringFormat.init(inst, def);
|
|
12942
13074
|
});
|
|
12943
13075
|
function cidrv42(params) {
|
|
12944
|
-
return
|
|
13076
|
+
return _cidrv4(ZodCIDRv4, params);
|
|
12945
13077
|
}
|
|
12946
13078
|
var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
|
|
12947
13079
|
$ZodCIDRv6.init(inst, def);
|
|
12948
13080
|
ZodStringFormat.init(inst, def);
|
|
12949
13081
|
});
|
|
12950
13082
|
function cidrv62(params) {
|
|
12951
|
-
return
|
|
13083
|
+
return _cidrv6(ZodCIDRv6, params);
|
|
12952
13084
|
}
|
|
12953
13085
|
var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
|
|
12954
13086
|
$ZodBase64.init(inst, def);
|
|
12955
13087
|
ZodStringFormat.init(inst, def);
|
|
12956
13088
|
});
|
|
12957
13089
|
function base642(params) {
|
|
12958
|
-
return
|
|
13090
|
+
return _base64(ZodBase64, params);
|
|
12959
13091
|
}
|
|
12960
13092
|
var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
|
|
12961
13093
|
$ZodBase64URL.init(inst, def);
|
|
12962
13094
|
ZodStringFormat.init(inst, def);
|
|
12963
13095
|
});
|
|
12964
13096
|
function base64url2(params) {
|
|
12965
|
-
return
|
|
13097
|
+
return _base64url(ZodBase64URL, params);
|
|
12966
13098
|
}
|
|
12967
13099
|
var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
|
|
12968
13100
|
$ZodE164.init(inst, def);
|
|
12969
13101
|
ZodStringFormat.init(inst, def);
|
|
12970
13102
|
});
|
|
12971
13103
|
function e1642(params) {
|
|
12972
|
-
return
|
|
13104
|
+
return _e164(ZodE164, params);
|
|
12973
13105
|
}
|
|
12974
13106
|
var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
12975
13107
|
$ZodJWT.init(inst, def);
|
|
12976
13108
|
ZodStringFormat.init(inst, def);
|
|
12977
13109
|
});
|
|
12978
13110
|
function jwt(params) {
|
|
12979
|
-
return
|
|
13111
|
+
return _jwt(ZodJWT, params);
|
|
12980
13112
|
}
|
|
12981
13113
|
var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
12982
13114
|
$ZodCustomStringFormat.init(inst, def);
|
|
12983
13115
|
ZodStringFormat.init(inst, def);
|
|
12984
13116
|
});
|
|
12985
13117
|
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
12986
|
-
return
|
|
13118
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
12987
13119
|
}
|
|
12988
13120
|
function hostname2(_params) {
|
|
12989
|
-
return
|
|
13121
|
+
return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
|
|
12990
13122
|
}
|
|
12991
13123
|
function hex2(_params) {
|
|
12992
|
-
return
|
|
13124
|
+
return _stringFormat(ZodCustomStringFormat, "hex", regexes_exports.hex, _params);
|
|
12993
13125
|
}
|
|
12994
13126
|
function hash(alg, params) {
|
|
12995
13127
|
const enc = params?.enc ?? "hex";
|
|
@@ -12997,7 +13129,7 @@ function hash(alg, params) {
|
|
|
12997
13129
|
const regex = regexes_exports[format];
|
|
12998
13130
|
if (!regex)
|
|
12999
13131
|
throw new Error(`Unrecognized hash format: ${format}`);
|
|
13000
|
-
return
|
|
13132
|
+
return _stringFormat(ZodCustomStringFormat, format, regex, params);
|
|
13001
13133
|
}
|
|
13002
13134
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
13003
13135
|
$ZodNumber.init(inst, def);
|
|
@@ -13005,22 +13137,22 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
13005
13137
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
13006
13138
|
_installLazyMethods(inst, "ZodNumber", {
|
|
13007
13139
|
gt(value, params) {
|
|
13008
|
-
return this.check(
|
|
13140
|
+
return this.check(_gt(value, params));
|
|
13009
13141
|
},
|
|
13010
13142
|
gte(value, params) {
|
|
13011
|
-
return this.check(
|
|
13143
|
+
return this.check(_gte(value, params));
|
|
13012
13144
|
},
|
|
13013
13145
|
min(value, params) {
|
|
13014
|
-
return this.check(
|
|
13146
|
+
return this.check(_gte(value, params));
|
|
13015
13147
|
},
|
|
13016
13148
|
lt(value, params) {
|
|
13017
|
-
return this.check(
|
|
13149
|
+
return this.check(_lt(value, params));
|
|
13018
13150
|
},
|
|
13019
13151
|
lte(value, params) {
|
|
13020
|
-
return this.check(
|
|
13152
|
+
return this.check(_lte(value, params));
|
|
13021
13153
|
},
|
|
13022
13154
|
max(value, params) {
|
|
13023
|
-
return this.check(
|
|
13155
|
+
return this.check(_lte(value, params));
|
|
13024
13156
|
},
|
|
13025
13157
|
int(params) {
|
|
13026
13158
|
return this.check(int(params));
|
|
@@ -13029,22 +13161,22 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
13029
13161
|
return this.check(int(params));
|
|
13030
13162
|
},
|
|
13031
13163
|
positive(params) {
|
|
13032
|
-
return this.check(
|
|
13164
|
+
return this.check(_gt(0, params));
|
|
13033
13165
|
},
|
|
13034
13166
|
nonnegative(params) {
|
|
13035
|
-
return this.check(
|
|
13167
|
+
return this.check(_gte(0, params));
|
|
13036
13168
|
},
|
|
13037
13169
|
negative(params) {
|
|
13038
|
-
return this.check(
|
|
13170
|
+
return this.check(_lt(0, params));
|
|
13039
13171
|
},
|
|
13040
13172
|
nonpositive(params) {
|
|
13041
|
-
return this.check(
|
|
13173
|
+
return this.check(_lte(0, params));
|
|
13042
13174
|
},
|
|
13043
13175
|
multipleOf(value, params) {
|
|
13044
|
-
return this.check(
|
|
13176
|
+
return this.check(_multipleOf(value, params));
|
|
13045
13177
|
},
|
|
13046
13178
|
step(value, params) {
|
|
13047
|
-
return this.check(
|
|
13179
|
+
return this.check(_multipleOf(value, params));
|
|
13048
13180
|
},
|
|
13049
13181
|
finite() {
|
|
13050
13182
|
return this;
|
|
@@ -13058,26 +13190,26 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
13058
13190
|
inst.format = bag.format ?? null;
|
|
13059
13191
|
});
|
|
13060
13192
|
function number2(params) {
|
|
13061
|
-
return
|
|
13193
|
+
return _number(ZodNumber, params);
|
|
13062
13194
|
}
|
|
13063
13195
|
var ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
|
|
13064
13196
|
$ZodNumberFormat.init(inst, def);
|
|
13065
13197
|
ZodNumber.init(inst, def);
|
|
13066
13198
|
});
|
|
13067
13199
|
function int(params) {
|
|
13068
|
-
return
|
|
13200
|
+
return _int(ZodNumberFormat, params);
|
|
13069
13201
|
}
|
|
13070
13202
|
function float32(params) {
|
|
13071
|
-
return
|
|
13203
|
+
return _float32(ZodNumberFormat, params);
|
|
13072
13204
|
}
|
|
13073
13205
|
function float64(params) {
|
|
13074
|
-
return
|
|
13206
|
+
return _float64(ZodNumberFormat, params);
|
|
13075
13207
|
}
|
|
13076
13208
|
function int32(params) {
|
|
13077
|
-
return
|
|
13209
|
+
return _int32(ZodNumberFormat, params);
|
|
13078
13210
|
}
|
|
13079
13211
|
function uint32(params) {
|
|
13080
|
-
return
|
|
13212
|
+
return _uint32(ZodNumberFormat, params);
|
|
13081
13213
|
}
|
|
13082
13214
|
var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
13083
13215
|
$ZodBoolean.init(inst, def);
|
|
@@ -13085,42 +13217,42 @@ var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
13085
13217
|
inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2, params);
|
|
13086
13218
|
});
|
|
13087
13219
|
function boolean2(params) {
|
|
13088
|
-
return
|
|
13220
|
+
return _boolean(ZodBoolean, params);
|
|
13089
13221
|
}
|
|
13090
13222
|
var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
|
|
13091
13223
|
$ZodBigInt.init(inst, def);
|
|
13092
13224
|
ZodType.init(inst, def);
|
|
13093
13225
|
inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx, json2, params);
|
|
13094
|
-
inst.gte = (value, params) => inst.check(
|
|
13095
|
-
inst.min = (value, params) => inst.check(
|
|
13096
|
-
inst.gt = (value, params) => inst.check(
|
|
13097
|
-
inst.gte = (value, params) => inst.check(
|
|
13098
|
-
inst.min = (value, params) => inst.check(
|
|
13099
|
-
inst.lt = (value, params) => inst.check(
|
|
13100
|
-
inst.lte = (value, params) => inst.check(
|
|
13101
|
-
inst.max = (value, params) => inst.check(
|
|
13102
|
-
inst.positive = (params) => inst.check(
|
|
13103
|
-
inst.negative = (params) => inst.check(
|
|
13104
|
-
inst.nonpositive = (params) => inst.check(
|
|
13105
|
-
inst.nonnegative = (params) => inst.check(
|
|
13106
|
-
inst.multipleOf = (value, params) => inst.check(
|
|
13226
|
+
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
13227
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
13228
|
+
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
13229
|
+
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
13230
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
13231
|
+
inst.lt = (value, params) => inst.check(_lt(value, params));
|
|
13232
|
+
inst.lte = (value, params) => inst.check(_lte(value, params));
|
|
13233
|
+
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
13234
|
+
inst.positive = (params) => inst.check(_gt(BigInt(0), params));
|
|
13235
|
+
inst.negative = (params) => inst.check(_lt(BigInt(0), params));
|
|
13236
|
+
inst.nonpositive = (params) => inst.check(_lte(BigInt(0), params));
|
|
13237
|
+
inst.nonnegative = (params) => inst.check(_gte(BigInt(0), params));
|
|
13238
|
+
inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
|
|
13107
13239
|
const bag = inst._zod.bag;
|
|
13108
13240
|
inst.minValue = bag.minimum ?? null;
|
|
13109
13241
|
inst.maxValue = bag.maximum ?? null;
|
|
13110
13242
|
inst.format = bag.format ?? null;
|
|
13111
13243
|
});
|
|
13112
13244
|
function bigint2(params) {
|
|
13113
|
-
return
|
|
13245
|
+
return _bigint(ZodBigInt, params);
|
|
13114
13246
|
}
|
|
13115
13247
|
var ZodBigIntFormat = /* @__PURE__ */ $constructor("ZodBigIntFormat", (inst, def) => {
|
|
13116
13248
|
$ZodBigIntFormat.init(inst, def);
|
|
13117
13249
|
ZodBigInt.init(inst, def);
|
|
13118
13250
|
});
|
|
13119
13251
|
function int64(params) {
|
|
13120
|
-
return
|
|
13252
|
+
return _int64(ZodBigIntFormat, params);
|
|
13121
13253
|
}
|
|
13122
13254
|
function uint64(params) {
|
|
13123
|
-
return
|
|
13255
|
+
return _uint64(ZodBigIntFormat, params);
|
|
13124
13256
|
}
|
|
13125
13257
|
var ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
|
|
13126
13258
|
$ZodSymbol.init(inst, def);
|
|
@@ -13128,7 +13260,7 @@ var ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
|
|
|
13128
13260
|
inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx, json2, params);
|
|
13129
13261
|
});
|
|
13130
13262
|
function symbol(params) {
|
|
13131
|
-
return
|
|
13263
|
+
return _symbol(ZodSymbol, params);
|
|
13132
13264
|
}
|
|
13133
13265
|
var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
|
|
13134
13266
|
$ZodUndefined.init(inst, def);
|
|
@@ -13136,7 +13268,7 @@ var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
|
|
|
13136
13268
|
inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx, json2, params);
|
|
13137
13269
|
});
|
|
13138
13270
|
function _undefined3(params) {
|
|
13139
|
-
return
|
|
13271
|
+
return _undefined2(ZodUndefined, params);
|
|
13140
13272
|
}
|
|
13141
13273
|
var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
13142
13274
|
$ZodNull.init(inst, def);
|
|
@@ -13144,7 +13276,7 @@ var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
13144
13276
|
inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2, params);
|
|
13145
13277
|
});
|
|
13146
13278
|
function _null3(params) {
|
|
13147
|
-
return
|
|
13279
|
+
return _null2(ZodNull, params);
|
|
13148
13280
|
}
|
|
13149
13281
|
var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
13150
13282
|
$ZodAny.init(inst, def);
|
|
@@ -13152,7 +13284,7 @@ var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
|
13152
13284
|
inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor(inst, ctx, json2, params);
|
|
13153
13285
|
});
|
|
13154
13286
|
function any() {
|
|
13155
|
-
return
|
|
13287
|
+
return _any(ZodAny);
|
|
13156
13288
|
}
|
|
13157
13289
|
var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
13158
13290
|
$ZodUnknown.init(inst, def);
|
|
@@ -13160,7 +13292,7 @@ var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
13160
13292
|
inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor(inst, ctx, json2, params);
|
|
13161
13293
|
});
|
|
13162
13294
|
function unknown() {
|
|
13163
|
-
return
|
|
13295
|
+
return _unknown(ZodUnknown);
|
|
13164
13296
|
}
|
|
13165
13297
|
var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
13166
13298
|
$ZodNever.init(inst, def);
|
|
@@ -13168,7 +13300,7 @@ var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
13168
13300
|
inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2, params);
|
|
13169
13301
|
});
|
|
13170
13302
|
function never(params) {
|
|
13171
|
-
return
|
|
13303
|
+
return _never(ZodNever, params);
|
|
13172
13304
|
}
|
|
13173
13305
|
var ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
|
|
13174
13306
|
$ZodVoid.init(inst, def);
|
|
@@ -13176,20 +13308,20 @@ var ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
|
|
|
13176
13308
|
inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx, json2, params);
|
|
13177
13309
|
});
|
|
13178
13310
|
function _void2(params) {
|
|
13179
|
-
return
|
|
13311
|
+
return _void(ZodVoid, params);
|
|
13180
13312
|
}
|
|
13181
13313
|
var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
13182
13314
|
$ZodDate.init(inst, def);
|
|
13183
13315
|
ZodType.init(inst, def);
|
|
13184
13316
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
13185
|
-
inst.min = (value, params) => inst.check(
|
|
13186
|
-
inst.max = (value, params) => inst.check(
|
|
13317
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
13318
|
+
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
13187
13319
|
const c = inst._zod.bag;
|
|
13188
13320
|
inst.minDate = c.minimum ? new Date(c.minimum) : null;
|
|
13189
13321
|
inst.maxDate = c.maximum ? new Date(c.maximum) : null;
|
|
13190
13322
|
});
|
|
13191
13323
|
function date3(params) {
|
|
13192
|
-
return
|
|
13324
|
+
return _date(ZodDate, params);
|
|
13193
13325
|
}
|
|
13194
13326
|
var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
13195
13327
|
$ZodArray.init(inst, def);
|
|
@@ -13198,16 +13330,16 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
13198
13330
|
inst.element = def.element;
|
|
13199
13331
|
_installLazyMethods(inst, "ZodArray", {
|
|
13200
13332
|
min(n, params) {
|
|
13201
|
-
return this.check(
|
|
13333
|
+
return this.check(_minLength(n, params));
|
|
13202
13334
|
},
|
|
13203
13335
|
nonempty(params) {
|
|
13204
|
-
return this.check(
|
|
13336
|
+
return this.check(_minLength(1, params));
|
|
13205
13337
|
},
|
|
13206
13338
|
max(n, params) {
|
|
13207
|
-
return this.check(
|
|
13339
|
+
return this.check(_maxLength(n, params));
|
|
13208
13340
|
},
|
|
13209
13341
|
length(n, params) {
|
|
13210
|
-
return this.check(
|
|
13342
|
+
return this.check(_length(n, params));
|
|
13211
13343
|
},
|
|
13212
13344
|
unwrap() {
|
|
13213
13345
|
return this.element;
|
|
@@ -13215,7 +13347,7 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
13215
13347
|
});
|
|
13216
13348
|
});
|
|
13217
13349
|
function array(element, params) {
|
|
13218
|
-
return
|
|
13350
|
+
return _array(ZodArray, element, params);
|
|
13219
13351
|
}
|
|
13220
13352
|
function keyof(schema) {
|
|
13221
13353
|
const shape = schema._zod.def.shape;
|
|
@@ -13413,10 +13545,10 @@ var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
|
|
|
13413
13545
|
inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx, json2, params);
|
|
13414
13546
|
inst.keyType = def.keyType;
|
|
13415
13547
|
inst.valueType = def.valueType;
|
|
13416
|
-
inst.min = (...args) => inst.check(
|
|
13417
|
-
inst.nonempty = (params) => inst.check(
|
|
13418
|
-
inst.max = (...args) => inst.check(
|
|
13419
|
-
inst.size = (...args) => inst.check(
|
|
13548
|
+
inst.min = (...args) => inst.check(_minSize(...args));
|
|
13549
|
+
inst.nonempty = (params) => inst.check(_minSize(1, params));
|
|
13550
|
+
inst.max = (...args) => inst.check(_maxSize(...args));
|
|
13551
|
+
inst.size = (...args) => inst.check(_size(...args));
|
|
13420
13552
|
});
|
|
13421
13553
|
function map(keyType, valueType, params) {
|
|
13422
13554
|
return new ZodMap({
|
|
@@ -13430,10 +13562,10 @@ var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
|
|
|
13430
13562
|
$ZodSet.init(inst, def);
|
|
13431
13563
|
ZodType.init(inst, def);
|
|
13432
13564
|
inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx, json2, params);
|
|
13433
|
-
inst.min = (...args) => inst.check(
|
|
13434
|
-
inst.nonempty = (params) => inst.check(
|
|
13435
|
-
inst.max = (...args) => inst.check(
|
|
13436
|
-
inst.size = (...args) => inst.check(
|
|
13565
|
+
inst.min = (...args) => inst.check(_minSize(...args));
|
|
13566
|
+
inst.nonempty = (params) => inst.check(_minSize(1, params));
|
|
13567
|
+
inst.max = (...args) => inst.check(_maxSize(...args));
|
|
13568
|
+
inst.size = (...args) => inst.check(_size(...args));
|
|
13437
13569
|
});
|
|
13438
13570
|
function set(valueType, params) {
|
|
13439
13571
|
return new ZodSet({
|
|
@@ -13520,12 +13652,12 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
|
|
|
13520
13652
|
$ZodFile.init(inst, def);
|
|
13521
13653
|
ZodType.init(inst, def);
|
|
13522
13654
|
inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2, params);
|
|
13523
|
-
inst.min = (size, params) => inst.check(
|
|
13524
|
-
inst.max = (size, params) => inst.check(
|
|
13525
|
-
inst.mime = (types, params) => inst.check(
|
|
13655
|
+
inst.min = (size, params) => inst.check(_minSize(size, params));
|
|
13656
|
+
inst.max = (size, params) => inst.check(_maxSize(size, params));
|
|
13657
|
+
inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
|
|
13526
13658
|
});
|
|
13527
13659
|
function file(params) {
|
|
13528
|
-
return
|
|
13660
|
+
return _file(ZodFile, params);
|
|
13529
13661
|
}
|
|
13530
13662
|
var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
13531
13663
|
$ZodTransform.init(inst, def);
|
|
@@ -13682,7 +13814,7 @@ var ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => {
|
|
|
13682
13814
|
inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx, json2, params);
|
|
13683
13815
|
});
|
|
13684
13816
|
function nan(params) {
|
|
13685
|
-
return
|
|
13817
|
+
return _nan(ZodNaN, params);
|
|
13686
13818
|
}
|
|
13687
13819
|
var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
|
|
13688
13820
|
$ZodPipe.init(inst, def);
|
|
@@ -13800,13 +13932,13 @@ function check(fn) {
|
|
|
13800
13932
|
return ch;
|
|
13801
13933
|
}
|
|
13802
13934
|
function custom(fn, _params) {
|
|
13803
|
-
return
|
|
13935
|
+
return _custom(ZodCustom, fn ?? (() => true), _params);
|
|
13804
13936
|
}
|
|
13805
13937
|
function refine(fn, _params = {}) {
|
|
13806
|
-
return
|
|
13938
|
+
return _refine(ZodCustom, fn, _params);
|
|
13807
13939
|
}
|
|
13808
13940
|
function superRefine(fn, params) {
|
|
13809
|
-
return
|
|
13941
|
+
return _superRefine(fn, params);
|
|
13810
13942
|
}
|
|
13811
13943
|
var describe2 = describe;
|
|
13812
13944
|
var meta2 = meta;
|
|
@@ -13832,7 +13964,7 @@ function _instanceof(cls, params = {}) {
|
|
|
13832
13964
|
};
|
|
13833
13965
|
return inst;
|
|
13834
13966
|
}
|
|
13835
|
-
var stringbool = (...args) =>
|
|
13967
|
+
var stringbool = (...args) => _stringbool({
|
|
13836
13968
|
Codec: ZodCodec,
|
|
13837
13969
|
Boolean: ZodBoolean,
|
|
13838
13970
|
String: ZodString
|
|
@@ -13850,6 +13982,8 @@ function preprocess(fn, schema) {
|
|
|
13850
13982
|
out: schema
|
|
13851
13983
|
});
|
|
13852
13984
|
}
|
|
13985
|
+
|
|
13986
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13853
13987
|
var ZodIssueCode = {
|
|
13854
13988
|
invalid_type: "invalid_type",
|
|
13855
13989
|
too_big: "too_big",
|
|
@@ -13874,6 +14008,8 @@ function getErrorMap() {
|
|
|
13874
14008
|
var ZodFirstPartyTypeKind;
|
|
13875
14009
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13876
14010
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
14011
|
+
|
|
14012
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13877
14013
|
var z = {
|
|
13878
14014
|
...schemas_exports2,
|
|
13879
14015
|
...checks_exports2,
|
|
@@ -13967,13 +14103,13 @@ function resolveRef(ref, ctx) {
|
|
|
13967
14103
|
if (!ref.startsWith("#")) {
|
|
13968
14104
|
throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
13969
14105
|
}
|
|
13970
|
-
const
|
|
13971
|
-
if (
|
|
14106
|
+
const path = ref.slice(1).split("/").filter(Boolean);
|
|
14107
|
+
if (path.length === 0) {
|
|
13972
14108
|
return ctx.rootSchema;
|
|
13973
14109
|
}
|
|
13974
14110
|
const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
|
|
13975
|
-
if (
|
|
13976
|
-
const key =
|
|
14111
|
+
if (path[0] === defsKey) {
|
|
14112
|
+
const key = path[1];
|
|
13977
14113
|
if (!key || !ctx.defs[key]) {
|
|
13978
14114
|
throw new Error(`Reference not found: ${ref}`);
|
|
13979
14115
|
}
|
|
@@ -14352,6 +14488,8 @@ function fromJSONSchema(schema, params) {
|
|
|
14352
14488
|
};
|
|
14353
14489
|
return convertSchema(normalized, ctx);
|
|
14354
14490
|
}
|
|
14491
|
+
|
|
14492
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
14355
14493
|
var coerce_exports = {};
|
|
14356
14494
|
__export(coerce_exports, {
|
|
14357
14495
|
bigint: () => bigint3,
|
|
@@ -14361,644 +14499,24 @@ __export(coerce_exports, {
|
|
|
14361
14499
|
string: () => string3
|
|
14362
14500
|
});
|
|
14363
14501
|
function string3(params) {
|
|
14364
|
-
return
|
|
14502
|
+
return _coercedString(ZodString, params);
|
|
14365
14503
|
}
|
|
14366
14504
|
function number3(params) {
|
|
14367
|
-
return
|
|
14505
|
+
return _coercedNumber(ZodNumber, params);
|
|
14368
14506
|
}
|
|
14369
14507
|
function boolean3(params) {
|
|
14370
|
-
return
|
|
14508
|
+
return _coercedBoolean(ZodBoolean, params);
|
|
14371
14509
|
}
|
|
14372
14510
|
function bigint3(params) {
|
|
14373
|
-
return
|
|
14511
|
+
return _coercedBigint(ZodBigInt, params);
|
|
14374
14512
|
}
|
|
14375
14513
|
function date4(params) {
|
|
14376
|
-
return
|
|
14514
|
+
return _coercedDate(ZodDate, params);
|
|
14377
14515
|
}
|
|
14378
|
-
config(en_default());
|
|
14379
|
-
function isProjectActionDefinition(value) {
|
|
14380
|
-
return Boolean(
|
|
14381
|
-
value && typeof value === "object" && value.kind === "openpond-project-action" && typeof value.id === "string" && typeof value.run === "function"
|
|
14382
|
-
);
|
|
14383
|
-
}
|
|
14384
|
-
function projectActionJsonSchema(schema) {
|
|
14385
|
-
return external_exports.toJSONSchema(schema, { unrepresentable: "any" });
|
|
14386
|
-
}
|
|
14387
|
-
function collectProjectActions(modules) {
|
|
14388
|
-
const actions = [];
|
|
14389
|
-
const seenObjects = /* @__PURE__ */ new Set();
|
|
14390
|
-
const visit = (value) => {
|
|
14391
|
-
if (seenObjects.has(value)) return;
|
|
14392
|
-
if (value && (typeof value === "object" || typeof value === "function")) seenObjects.add(value);
|
|
14393
|
-
if (isProjectActionDefinition(value)) {
|
|
14394
|
-
actions.push(value);
|
|
14395
|
-
return;
|
|
14396
|
-
}
|
|
14397
|
-
if (Array.isArray(value)) {
|
|
14398
|
-
value.forEach(visit);
|
|
14399
|
-
return;
|
|
14400
|
-
}
|
|
14401
|
-
if (value && typeof value === "object") Object.values(value).forEach(visit);
|
|
14402
|
-
};
|
|
14403
|
-
modules.forEach(visit);
|
|
14404
|
-
const byId = /* @__PURE__ */ new Map();
|
|
14405
|
-
for (const action of actions) {
|
|
14406
|
-
if (byId.has(action.id)) throw new Error(`Duplicate Project Action id: ${action.id}`);
|
|
14407
|
-
byId.set(action.id, action);
|
|
14408
|
-
}
|
|
14409
|
-
return [...byId.values()].sort((left, right) => left.id.localeCompare(right.id));
|
|
14410
|
-
}
|
|
14411
|
-
function createProjectActionRegistry(actions) {
|
|
14412
|
-
return {
|
|
14413
|
-
schemaVersion: "openpond.projectActionRegistry.v1",
|
|
14414
|
-
actions: actions.map(toCatalogEntry)
|
|
14415
|
-
};
|
|
14416
|
-
}
|
|
14417
|
-
function toCatalogEntry(action) {
|
|
14418
|
-
return {
|
|
14419
|
-
id: action.id,
|
|
14420
|
-
sourceActionId: action.id,
|
|
14421
|
-
name: action.id,
|
|
14422
|
-
label: action.label,
|
|
14423
|
-
description: action.description,
|
|
14424
|
-
visibility: "default",
|
|
14425
|
-
inputSchema: projectActionJsonSchema(action.inputSchema),
|
|
14426
|
-
outputSchema: projectActionJsonSchema(action.outputSchema),
|
|
14427
|
-
approvalPolicy: {
|
|
14428
|
-
...action.approval,
|
|
14429
|
-
required: action.approval.mode === "always" || action.approval.mode === "sensitive" || action.approval.mode === "writes" && action.behavior === "write",
|
|
14430
|
-
risk: action.behavior
|
|
14431
|
-
},
|
|
14432
|
-
artifactPolicy: {
|
|
14433
|
-
outputArtifacts: [],
|
|
14434
|
-
persistRunSummary: true,
|
|
14435
|
-
persistTrace: true
|
|
14436
|
-
},
|
|
14437
|
-
setupRequirements: [...action.setup],
|
|
14438
|
-
mcp: { enabled: false },
|
|
14439
|
-
schedulePolicy: { enabled: false, allowAdHoc: true },
|
|
14440
|
-
trace: { name: action.id, namespace: "project-actions" },
|
|
14441
|
-
implementation: {
|
|
14442
|
-
type: "openpond-project-action",
|
|
14443
|
-
actionId: action.id,
|
|
14444
|
-
behavior: action.behavior,
|
|
14445
|
-
timeoutMs: action.timeoutMs,
|
|
14446
|
-
concurrency: action.concurrency
|
|
14447
|
-
},
|
|
14448
|
-
invokesModel: action.invokesModel
|
|
14449
|
-
};
|
|
14450
|
-
}
|
|
14451
|
-
var PROJECT_ACTION_CONFIG_PATH = "openpond/project-actions.json";
|
|
14452
|
-
var connectionSchema = external_exports.object({
|
|
14453
|
-
values: external_exports.record(external_exports.string(), external_exports.unknown()).optional().default({}),
|
|
14454
|
-
environment: external_exports.record(external_exports.string(), external_exports.string().trim().min(1)).optional().default({})
|
|
14455
|
-
}).strict();
|
|
14456
|
-
var configSchema = external_exports.object({
|
|
14457
|
-
sourceDirectory: external_exports.string().trim().min(1).optional(),
|
|
14458
|
-
outputDirectory: external_exports.string().trim().min(1).optional(),
|
|
14459
|
-
environment: external_exports.record(external_exports.string(), external_exports.string().trim().min(1)).optional().default({}),
|
|
14460
|
-
connections: external_exports.record(external_exports.string(), connectionSchema).optional().default({})
|
|
14461
|
-
}).strict();
|
|
14462
|
-
async function loadProjectActionConfiguration(projectRoot) {
|
|
14463
|
-
const resolvedRoot = path.resolve(projectRoot);
|
|
14464
|
-
const configPath = path.join(resolvedRoot, PROJECT_ACTION_CONFIG_PATH);
|
|
14465
|
-
const raw = await fs.readFile(configPath, "utf8").catch((error51) => {
|
|
14466
|
-
if (error51.code === "ENOENT") return null;
|
|
14467
|
-
throw error51;
|
|
14468
|
-
});
|
|
14469
|
-
if (raw === null) return configSchema.parse({});
|
|
14470
|
-
let value;
|
|
14471
|
-
try {
|
|
14472
|
-
value = JSON.parse(raw);
|
|
14473
|
-
} catch (error51) {
|
|
14474
|
-
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
14475
|
-
throw new Error(`${PROJECT_ACTION_CONFIG_PATH} is not valid JSON: ${message}`);
|
|
14476
|
-
}
|
|
14477
|
-
return configSchema.parse(value);
|
|
14478
|
-
}
|
|
14479
|
-
function resolveProjectActionRuntime(config2, hostEnvironment = process.env) {
|
|
14480
|
-
const environment = {};
|
|
14481
|
-
for (const [runtimeName, hostName] of Object.entries(config2.environment)) {
|
|
14482
|
-
const value = hostEnvironment[hostName];
|
|
14483
|
-
if (value !== void 0) environment[runtimeName] = value;
|
|
14484
|
-
}
|
|
14485
|
-
const connections = {};
|
|
14486
|
-
for (const [name, descriptor] of Object.entries(config2.connections)) {
|
|
14487
|
-
const value = { ...descriptor.values };
|
|
14488
|
-
for (const [property, hostName] of Object.entries(descriptor.environment)) {
|
|
14489
|
-
const environmentValue = hostEnvironment[hostName];
|
|
14490
|
-
if (environmentValue !== void 0) value[property] = environmentValue;
|
|
14491
|
-
}
|
|
14492
|
-
connections[name] = value;
|
|
14493
|
-
}
|
|
14494
|
-
return { environment, connections };
|
|
14495
|
-
}
|
|
14496
|
-
var ACTION_FILE = /\.(?:[cm]?[jt]s)$/i;
|
|
14497
|
-
var IGNORED_FILE = /(?:\.d\.ts|\.test\.[cm]?[jt]s|\.spec\.[cm]?[jt]s)$/i;
|
|
14498
|
-
async function discoverProjectActionFiles(input) {
|
|
14499
|
-
const projectRoot = path2.resolve(input.projectRoot);
|
|
14500
|
-
const sourceRoot = path2.resolve(projectRoot, input.sourceDirectory ?? "openpond/actions");
|
|
14501
|
-
if (!isWithin(projectRoot, sourceRoot)) {
|
|
14502
|
-
throw new Error("Project Action source directory must stay inside the Project root.");
|
|
14503
|
-
}
|
|
14504
|
-
const stats = await fs2.stat(sourceRoot).catch(() => null);
|
|
14505
|
-
if (!stats?.isDirectory()) {
|
|
14506
|
-
throw new Error(`Project Action source directory does not exist: ${sourceRoot}`);
|
|
14507
|
-
}
|
|
14508
|
-
const files = await walk(sourceRoot);
|
|
14509
|
-
const actions = files.filter((file2) => ACTION_FILE.test(file2) && !IGNORED_FILE.test(file2)).map((file2) => path2.relative(projectRoot, file2).split(path2.sep).join("/")).sort();
|
|
14510
|
-
if (actions.length === 0) {
|
|
14511
|
-
throw new Error(`No Project Action files were found under ${sourceRoot}.`);
|
|
14512
|
-
}
|
|
14513
|
-
return { projectRoot, sourceRoot, files: actions };
|
|
14514
|
-
}
|
|
14515
|
-
async function walk(directory) {
|
|
14516
|
-
const entries = await fs2.readdir(directory, { withFileTypes: true });
|
|
14517
|
-
const files = [];
|
|
14518
|
-
for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
|
|
14519
|
-
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
14520
|
-
const target = path2.join(directory, entry.name);
|
|
14521
|
-
if (entry.isDirectory()) files.push(...await walk(target));
|
|
14522
|
-
else if (entry.isFile()) files.push(target);
|
|
14523
|
-
}
|
|
14524
|
-
return files;
|
|
14525
|
-
}
|
|
14526
|
-
function isWithin(root, target) {
|
|
14527
|
-
const relative = path2.relative(root, target);
|
|
14528
|
-
return relative === "" || !relative.startsWith("..") && !path2.isAbsolute(relative);
|
|
14529
|
-
}
|
|
14530
|
-
function sha256(value) {
|
|
14531
|
-
return createHash("sha256").update(value).digest("hex");
|
|
14532
|
-
}
|
|
14533
|
-
function canonicalJson(value) {
|
|
14534
|
-
return `${JSON.stringify(sortValue(value), null, 2)}
|
|
14535
|
-
`;
|
|
14536
|
-
}
|
|
14537
|
-
function sortValue(value) {
|
|
14538
|
-
if (Array.isArray(value)) return value.map(sortValue);
|
|
14539
|
-
if (!value || typeof value !== "object") return value;
|
|
14540
|
-
return Object.fromEntries(
|
|
14541
|
-
Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, child]) => [key, sortValue(child)])
|
|
14542
|
-
);
|
|
14543
|
-
}
|
|
14544
|
-
async function validateProjectActionStaticSetup(projectRoot, requirements) {
|
|
14545
|
-
for (const requirement of requirements) {
|
|
14546
|
-
if (requirement.required === false) continue;
|
|
14547
|
-
if (requirement.kind === "package") {
|
|
14548
|
-
try {
|
|
14549
|
-
createRequire(path3.join(projectRoot, "package.json")).resolve(requirement.name);
|
|
14550
|
-
} catch {
|
|
14551
|
-
throw new Error(`Project Action package is not installed: ${requirement.name}`);
|
|
14552
|
-
}
|
|
14553
|
-
}
|
|
14554
|
-
if (requirement.kind === "native_tool" && !await executableExists(requirement.name)) {
|
|
14555
|
-
throw new Error(`Project Action native tool is not installed: ${requirement.name}`);
|
|
14556
|
-
}
|
|
14557
|
-
}
|
|
14558
|
-
}
|
|
14559
|
-
async function validateProjectActionRunSetup(projectRoot, requirements, request) {
|
|
14560
|
-
await validateProjectActionStaticSetup(projectRoot, requirements);
|
|
14561
|
-
for (const requirement of requirements) {
|
|
14562
|
-
if (requirement.required === false) continue;
|
|
14563
|
-
if (requirement.kind === "connection" && !(requirement.name in (request.connections ?? {}))) {
|
|
14564
|
-
throw new Error(`Project Action connection is not configured: ${requirement.name}`);
|
|
14565
|
-
}
|
|
14566
|
-
if (requirement.kind === "env" && !(requirement.name in (request.environment ?? {}))) {
|
|
14567
|
-
throw new Error(`Project Action environment value is not configured: ${requirement.name}`);
|
|
14568
|
-
}
|
|
14569
|
-
}
|
|
14570
|
-
}
|
|
14571
|
-
async function executableExists(name) {
|
|
14572
|
-
if (!name.trim() || name.includes("/") || name.includes("\\")) return false;
|
|
14573
|
-
for (const directory of (process.env.PATH ?? "").split(path3.delimiter).filter(Boolean)) {
|
|
14574
|
-
const candidates = process.platform === "win32" ? (process.env.PATHEXT ?? ".EXE;.CMD;.BAT;.COM").split(";").map((extension) => path3.join(directory, `${name}${extension}`)) : [path3.join(directory, name)];
|
|
14575
|
-
for (const candidate of candidates) {
|
|
14576
|
-
if (await fs3.access(candidate).then(() => true).catch(() => false)) return true;
|
|
14577
|
-
}
|
|
14578
|
-
}
|
|
14579
|
-
return false;
|
|
14580
|
-
}
|
|
14581
|
-
var DEFAULT_PROJECT_ACTION_OUTPUT_DIRECTORY = ".openpond/actions";
|
|
14582
|
-
async function buildProjectActions(input) {
|
|
14583
|
-
const configuration = await loadProjectActionConfiguration(input.projectRoot);
|
|
14584
|
-
const discovered = await discoverProjectActionFiles({
|
|
14585
|
-
projectRoot: input.projectRoot,
|
|
14586
|
-
sourceDirectory: input.sourceDirectory ?? configuration.sourceDirectory
|
|
14587
|
-
});
|
|
14588
|
-
const outputDirectory = path4.resolve(
|
|
14589
|
-
discovered.projectRoot,
|
|
14590
|
-
input.outputDirectory ?? configuration.outputDirectory ?? DEFAULT_PROJECT_ACTION_OUTPUT_DIRECTORY
|
|
14591
|
-
);
|
|
14592
|
-
assertWithinProject(discovered.projectRoot, outputDirectory);
|
|
14593
|
-
await fs4.mkdir(outputDirectory, { recursive: true });
|
|
14594
|
-
const entryPath = path4.join(outputDirectory, "entry.mjs");
|
|
14595
|
-
const bundlePath = path4.join(outputDirectory, "bundle.mjs");
|
|
14596
|
-
const runnerPath = path4.join(outputDirectory, "runner.mjs");
|
|
14597
|
-
const registryPath = path4.join(outputDirectory, "action-registry.json");
|
|
14598
|
-
const manifestPath = path4.join(outputDirectory, "build-manifest.json");
|
|
14599
|
-
const imports = discovered.files.map((file2, index) => {
|
|
14600
|
-
const relative = path4.relative(outputDirectory, path4.join(discovered.projectRoot, file2)).split(path4.sep).join("/");
|
|
14601
|
-
const specifier = relative.startsWith(".") ? relative : `./${relative}`;
|
|
14602
|
-
return `import * as actionModule${index} from ${JSON.stringify(specifier)};`;
|
|
14603
|
-
});
|
|
14604
|
-
const modules = discovered.files.map((_file2, index) => `actionModule${index}`).join(", ");
|
|
14605
|
-
await fs4.writeFile(
|
|
14606
|
-
entryPath,
|
|
14607
|
-
[
|
|
14608
|
-
...imports,
|
|
14609
|
-
`export const projectActionModules = [${modules}];`,
|
|
14610
|
-
"export default projectActionModules;",
|
|
14611
|
-
""
|
|
14612
|
-
].join("\n"),
|
|
14613
|
-
"utf8"
|
|
14614
|
-
);
|
|
14615
|
-
await build({
|
|
14616
|
-
entryPoints: [entryPath],
|
|
14617
|
-
outfile: bundlePath,
|
|
14618
|
-
bundle: true,
|
|
14619
|
-
platform: "node",
|
|
14620
|
-
format: "esm",
|
|
14621
|
-
target: "node22.14",
|
|
14622
|
-
sourcemap: false,
|
|
14623
|
-
legalComments: "none",
|
|
14624
|
-
logLevel: "silent",
|
|
14625
|
-
nodePaths: dependencySearchPaths(discovered.projectRoot)
|
|
14626
|
-
});
|
|
14627
|
-
const cacheKey = `openpond_action_build=${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
14628
|
-
const loaded = await import(`${pathToFileURL(bundlePath).href}?${cacheKey}`);
|
|
14629
|
-
const actions = collectProjectActions(loaded.projectActionModules ?? loaded.default ?? []);
|
|
14630
|
-
for (const action of actions) {
|
|
14631
|
-
await validateProjectActionStaticSetup(discovered.projectRoot, action.setup);
|
|
14632
|
-
}
|
|
14633
|
-
const registry2 = createProjectActionRegistry(actions);
|
|
14634
|
-
await fs4.writeFile(registryPath, canonicalJson(registry2), "utf8");
|
|
14635
|
-
await fs4.writeFile(runnerPath, runtimeSource(), { encoding: "utf8", mode: 493 });
|
|
14636
|
-
const bundleHash = sha256(await fs4.readFile(bundlePath));
|
|
14637
|
-
const registryHash = sha256(canonicalJson(registry2));
|
|
14638
|
-
const manifest = {
|
|
14639
|
-
schemaVersion: "openpond.projectActionBuild.v1",
|
|
14640
|
-
sourceDirectory: path4.relative(discovered.projectRoot, discovered.sourceRoot).split(path4.sep).join("/"),
|
|
14641
|
-
sourceFiles: discovered.files,
|
|
14642
|
-
bundleFile: path4.basename(bundlePath),
|
|
14643
|
-
runnerFile: path4.basename(runnerPath),
|
|
14644
|
-
registryFile: path4.basename(registryPath),
|
|
14645
|
-
bundleHash,
|
|
14646
|
-
registryHash
|
|
14647
|
-
};
|
|
14648
|
-
await fs4.writeFile(manifestPath, canonicalJson(manifest), "utf8");
|
|
14649
|
-
await fs4.rm(entryPath, { force: true });
|
|
14650
|
-
return {
|
|
14651
|
-
projectRoot: discovered.projectRoot,
|
|
14652
|
-
outputDirectory,
|
|
14653
|
-
bundlePath,
|
|
14654
|
-
runnerPath,
|
|
14655
|
-
registryPath,
|
|
14656
|
-
manifestPath,
|
|
14657
|
-
registry: registry2,
|
|
14658
|
-
manifest
|
|
14659
|
-
};
|
|
14660
|
-
}
|
|
14661
|
-
function dependencySearchPaths(projectRoot) {
|
|
14662
|
-
const candidates = [];
|
|
14663
|
-
let current = projectRoot;
|
|
14664
|
-
while (true) {
|
|
14665
|
-
candidates.push(path4.join(current, "node_modules"));
|
|
14666
|
-
const parent = path4.dirname(current);
|
|
14667
|
-
if (parent === current) break;
|
|
14668
|
-
current = parent;
|
|
14669
|
-
}
|
|
14670
|
-
candidates.push(path4.resolve(path4.dirname(fileURLToPath(import.meta.url)), "../../../node_modules"));
|
|
14671
|
-
return [...new Set(candidates)];
|
|
14672
|
-
}
|
|
14673
|
-
function assertWithinProject(projectRoot, target) {
|
|
14674
|
-
const relative = path4.relative(projectRoot, target);
|
|
14675
|
-
if (relative.startsWith("..") || path4.isAbsolute(relative)) {
|
|
14676
|
-
throw new Error("Project Action output directory must stay inside the Project root.");
|
|
14677
|
-
}
|
|
14678
|
-
}
|
|
14679
|
-
function runtimeSource() {
|
|
14680
|
-
return `#!/usr/bin/env node
|
|
14681
|
-
import { promises as fs } from "node:fs";
|
|
14682
|
-
import { stdin } from "node:process";
|
|
14683
|
-
import path from "node:path";
|
|
14684
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
14685
14516
|
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
for await (const chunk of stdin) requestText += chunk;
|
|
14689
|
-
const request = JSON.parse(requestText);
|
|
14690
|
-
const bundlePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "bundle.mjs");
|
|
14691
|
-
const loaded = await import(pathToFileURL(bundlePath).href);
|
|
14692
|
-
const values = [];
|
|
14693
|
-
const seen = new Set();
|
|
14694
|
-
const visit = (value) => {
|
|
14695
|
-
if (seen.has(value)) return;
|
|
14696
|
-
if (value && (typeof value === "object" || typeof value === "function")) seen.add(value);
|
|
14697
|
-
if (value?.kind === "openpond-project-action" && typeof value.run === "function") { values.push(value); return; }
|
|
14698
|
-
if (Array.isArray(value)) { value.forEach(visit); return; }
|
|
14699
|
-
if (value && typeof value === "object") Object.values(value).forEach(visit);
|
|
14700
|
-
};
|
|
14701
|
-
(loaded.projectActionModules ?? loaded.default ?? []).forEach(visit);
|
|
14702
|
-
const action = values.find((candidate) => candidate.id === request.actionId);
|
|
14703
|
-
if (!action) throw new Error(\`Unknown Project Action: \${request.actionId}\`);
|
|
14704
|
-
const controller = new AbortController();
|
|
14705
|
-
const timeoutMs = Math.min(request.timeoutMs ?? action.timeoutMs, action.timeoutMs);
|
|
14706
|
-
const timer = setTimeout(() => controller.abort(new Error(\`Project Action timed out after \${timeoutMs}ms.\`)), timeoutMs);
|
|
14707
|
-
const traces = [];
|
|
14708
|
-
const outputs = [];
|
|
14709
|
-
const env = request.environment ?? {};
|
|
14710
|
-
const connections = request.connections ?? {};
|
|
14711
|
-
const context = {
|
|
14712
|
-
runId: request.runId,
|
|
14713
|
-
actionId: action.id,
|
|
14714
|
-
idempotencyKey: request.idempotencyKey ?? null,
|
|
14715
|
-
projectRoot: request.projectRoot,
|
|
14716
|
-
outputDirectory: request.outputDirectory,
|
|
14717
|
-
signal: controller.signal,
|
|
14718
|
-
env(name) { return Object.prototype.hasOwnProperty.call(env, name) ? env[name] : undefined; },
|
|
14719
|
-
connection(name) {
|
|
14720
|
-
if (!Object.prototype.hasOwnProperty.call(connections, name)) throw new Error(\`Project Action connection is not configured: \${name}\`);
|
|
14721
|
-
return connections[name];
|
|
14722
|
-
},
|
|
14723
|
-
trace(name, payload) { traces.push({ name, ...(payload ? { payload } : {}), timestamp: new Date().toISOString() }); },
|
|
14724
|
-
output(value) {
|
|
14725
|
-
if (!value || typeof value.path !== "string" || !value.path.trim()) throw new Error("Project Action output requires a path.");
|
|
14726
|
-
const outputPath = path.resolve(request.outputDirectory, value.path);
|
|
14727
|
-
const relative = path.relative(request.outputDirectory, outputPath);
|
|
14728
|
-
if (relative.startsWith("..") || path.isAbsolute(relative)) throw new Error("Project Action output must stay inside the run output directory.");
|
|
14729
|
-
outputs.push({ ...value, path: relative.split(path.sep).join("/") });
|
|
14730
|
-
},
|
|
14731
|
-
};
|
|
14732
|
-
try {
|
|
14733
|
-
const input = action.inputSchema.parse(request.input ?? {});
|
|
14734
|
-
const result = await Promise.race([
|
|
14735
|
-
Promise.resolve(action.run(context, input)),
|
|
14736
|
-
new Promise((_, reject) => controller.signal.addEventListener("abort", () => reject(controller.signal.reason), { once: true })),
|
|
14737
|
-
]);
|
|
14738
|
-
const output = action.outputSchema.parse(result);
|
|
14739
|
-
for (const artifact of outputs) {
|
|
14740
|
-
const stats = await fs.stat(path.resolve(request.outputDirectory, artifact.path)).catch(() => null);
|
|
14741
|
-
if (!stats?.isFile()) throw new Error(\`Project Action output does not exist: \${artifact.path}\`);
|
|
14742
|
-
}
|
|
14743
|
-
await fs.writeFile(request.responseFile, JSON.stringify({ ok: true, output, traces, outputs }), "utf8");
|
|
14744
|
-
} finally {
|
|
14745
|
-
clearTimeout(timer);
|
|
14746
|
-
}
|
|
14747
|
-
`;
|
|
14748
|
-
}
|
|
14749
|
-
var localConcurrency = /* @__PURE__ */ new Map();
|
|
14750
|
-
function createLocalActionRunner(options) {
|
|
14751
|
-
const projectRoot = path5.resolve(options.projectRoot);
|
|
14752
|
-
const buildPolicy = options.build ?? "if-missing";
|
|
14753
|
-
let currentBuild = null;
|
|
14754
|
-
const ensureBuild = async () => {
|
|
14755
|
-
if (buildPolicy === "always") return runBuild();
|
|
14756
|
-
if (currentBuild) return currentBuild;
|
|
14757
|
-
if (buildPolicy === "never" || buildPolicy === "if-missing") {
|
|
14758
|
-
const configuration = await loadProjectActionConfiguration(projectRoot);
|
|
14759
|
-
const outputDirectory = path5.resolve(
|
|
14760
|
-
projectRoot,
|
|
14761
|
-
options.outputDirectory ?? configuration.outputDirectory ?? DEFAULT_PROJECT_ACTION_OUTPUT_DIRECTORY
|
|
14762
|
-
);
|
|
14763
|
-
const loaded = await loadBuild(projectRoot, outputDirectory);
|
|
14764
|
-
if (loaded) return currentBuild = loaded;
|
|
14765
|
-
if (buildPolicy === "never") {
|
|
14766
|
-
throw new Error(`Project Actions have not been built in ${outputDirectory}.`);
|
|
14767
|
-
}
|
|
14768
|
-
}
|
|
14769
|
-
return runBuild();
|
|
14770
|
-
};
|
|
14771
|
-
const runBuild = async () => {
|
|
14772
|
-
currentBuild = await buildProjectActions({
|
|
14773
|
-
projectRoot,
|
|
14774
|
-
sourceDirectory: options.sourceDirectory,
|
|
14775
|
-
outputDirectory: options.outputDirectory
|
|
14776
|
-
});
|
|
14777
|
-
return currentBuild;
|
|
14778
|
-
};
|
|
14779
|
-
return {
|
|
14780
|
-
build: runBuild,
|
|
14781
|
-
async catalog() {
|
|
14782
|
-
return (await ensureBuild()).registry;
|
|
14783
|
-
},
|
|
14784
|
-
async run(request) {
|
|
14785
|
-
const built = await ensureBuild();
|
|
14786
|
-
const catalogAction = built.registry.actions.find((action) => action.id === request.actionId);
|
|
14787
|
-
if (!catalogAction) throw new Error(`Unknown Project Action: ${request.actionId}`);
|
|
14788
|
-
const configuredRuntime = resolveProjectActionRuntime(
|
|
14789
|
-
await loadProjectActionConfiguration(projectRoot)
|
|
14790
|
-
);
|
|
14791
|
-
const resolvedRequest = {
|
|
14792
|
-
...request,
|
|
14793
|
-
environment: {
|
|
14794
|
-
...configuredRuntime.environment,
|
|
14795
|
-
...request.environment ?? {}
|
|
14796
|
-
},
|
|
14797
|
-
connections: {
|
|
14798
|
-
...configuredRuntime.connections,
|
|
14799
|
-
...request.connections ?? {}
|
|
14800
|
-
}
|
|
14801
|
-
};
|
|
14802
|
-
await validateProjectActionRunSetup(projectRoot, catalogAction.setupRequirements, resolvedRequest);
|
|
14803
|
-
const runId = request.runId?.trim() || randomUUID();
|
|
14804
|
-
const actionOutputDirectory = path5.resolve(
|
|
14805
|
-
request.outputDirectory ?? path5.join(projectRoot, ".openpond", "outputs", runId)
|
|
14806
|
-
);
|
|
14807
|
-
assertWithinProject2(projectRoot, actionOutputDirectory, "Project Action output directory");
|
|
14808
|
-
await fs5.mkdir(actionOutputDirectory, { recursive: true });
|
|
14809
|
-
const release = await acquireLocalActionSlot(
|
|
14810
|
-
`${projectRoot}\0${request.actionId}`,
|
|
14811
|
-
catalogAction.implementation.concurrency,
|
|
14812
|
-
resolvedRequest.signal
|
|
14813
|
-
);
|
|
14814
|
-
const responseFile = path5.join(built.outputDirectory, `.run-${randomUUID()}.json`);
|
|
14815
|
-
const startedAt = Date.now();
|
|
14816
|
-
let childResult;
|
|
14817
|
-
let payload;
|
|
14818
|
-
try {
|
|
14819
|
-
childResult = await executeChild({
|
|
14820
|
-
runnerPath: built.runnerPath,
|
|
14821
|
-
cwd: projectRoot,
|
|
14822
|
-
signal: resolvedRequest.signal,
|
|
14823
|
-
request: {
|
|
14824
|
-
actionId: request.actionId,
|
|
14825
|
-
input: resolvedRequest.input ?? {},
|
|
14826
|
-
runId,
|
|
14827
|
-
idempotencyKey: resolvedRequest.idempotencyKey ?? null,
|
|
14828
|
-
timeoutMs: resolvedRequest.timeoutMs,
|
|
14829
|
-
projectRoot,
|
|
14830
|
-
outputDirectory: actionOutputDirectory,
|
|
14831
|
-
responseFile,
|
|
14832
|
-
environment: resolvedRequest.environment ?? {},
|
|
14833
|
-
connections: resolvedRequest.connections ?? {}
|
|
14834
|
-
}
|
|
14835
|
-
});
|
|
14836
|
-
payload = JSON.parse(await fs5.readFile(responseFile, "utf8"));
|
|
14837
|
-
} catch (error51) {
|
|
14838
|
-
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
14839
|
-
throw new Error(redactRuntimeValues(message, resolvedRequest));
|
|
14840
|
-
} finally {
|
|
14841
|
-
await fs5.rm(responseFile, { force: true }).catch(() => void 0);
|
|
14842
|
-
release();
|
|
14843
|
-
}
|
|
14844
|
-
return {
|
|
14845
|
-
runId,
|
|
14846
|
-
actionId: request.actionId,
|
|
14847
|
-
status: "succeeded",
|
|
14848
|
-
output: payload.output,
|
|
14849
|
-
stdout: redactRuntimeValues(childResult.stdout, resolvedRequest),
|
|
14850
|
-
stderr: redactRuntimeValues(childResult.stderr, resolvedRequest),
|
|
14851
|
-
traces: redactRuntimeValue(payload.traces, resolvedRequest),
|
|
14852
|
-
outputs: redactRuntimeValue(payload.outputs, resolvedRequest),
|
|
14853
|
-
outputDirectory: actionOutputDirectory,
|
|
14854
|
-
durationMs: Date.now() - startedAt
|
|
14855
|
-
};
|
|
14856
|
-
}
|
|
14857
|
-
};
|
|
14858
|
-
}
|
|
14859
|
-
async function acquireLocalActionSlot(key, limit, signal) {
|
|
14860
|
-
if (limit === null) return () => void 0;
|
|
14861
|
-
const state = localConcurrency.get(key) ?? { active: 0, waiting: [] };
|
|
14862
|
-
localConcurrency.set(key, state);
|
|
14863
|
-
if (state.active >= limit) {
|
|
14864
|
-
await new Promise((resolve, reject) => {
|
|
14865
|
-
const resume = () => {
|
|
14866
|
-
signal?.removeEventListener("abort", abort);
|
|
14867
|
-
resolve();
|
|
14868
|
-
};
|
|
14869
|
-
const abort = () => {
|
|
14870
|
-
const index = state.waiting.indexOf(resume);
|
|
14871
|
-
if (index >= 0) state.waiting.splice(index, 1);
|
|
14872
|
-
reject(signal?.reason instanceof Error ? signal.reason : new Error("Project Action was cancelled."));
|
|
14873
|
-
};
|
|
14874
|
-
if (signal?.aborted) {
|
|
14875
|
-
abort();
|
|
14876
|
-
return;
|
|
14877
|
-
}
|
|
14878
|
-
state.waiting.push(resume);
|
|
14879
|
-
signal?.addEventListener("abort", abort, { once: true });
|
|
14880
|
-
});
|
|
14881
|
-
} else {
|
|
14882
|
-
state.active += 1;
|
|
14883
|
-
}
|
|
14884
|
-
let released = false;
|
|
14885
|
-
return () => {
|
|
14886
|
-
if (released) return;
|
|
14887
|
-
released = true;
|
|
14888
|
-
const next = state.waiting.shift();
|
|
14889
|
-
if (next) {
|
|
14890
|
-
next();
|
|
14891
|
-
return;
|
|
14892
|
-
}
|
|
14893
|
-
state.active -= 1;
|
|
14894
|
-
if (state.active === 0 && state.waiting.length === 0) localConcurrency.delete(key);
|
|
14895
|
-
};
|
|
14896
|
-
}
|
|
14897
|
-
async function loadBuild(projectRoot, outputDirectory) {
|
|
14898
|
-
const manifestPath = path5.join(outputDirectory, "build-manifest.json");
|
|
14899
|
-
const registryPath = path5.join(outputDirectory, "action-registry.json");
|
|
14900
|
-
const [manifestText, registryText] = await Promise.all([
|
|
14901
|
-
fs5.readFile(manifestPath, "utf8").catch(() => null),
|
|
14902
|
-
fs5.readFile(registryPath, "utf8").catch(() => null)
|
|
14903
|
-
]);
|
|
14904
|
-
if (!manifestText || !registryText) return null;
|
|
14905
|
-
const manifest = JSON.parse(manifestText);
|
|
14906
|
-
const registry2 = JSON.parse(registryText);
|
|
14907
|
-
return {
|
|
14908
|
-
projectRoot,
|
|
14909
|
-
outputDirectory,
|
|
14910
|
-
bundlePath: path5.join(outputDirectory, manifest.bundleFile),
|
|
14911
|
-
runnerPath: path5.join(outputDirectory, manifest.runnerFile),
|
|
14912
|
-
registryPath,
|
|
14913
|
-
manifestPath,
|
|
14914
|
-
registry: registry2,
|
|
14915
|
-
manifest
|
|
14916
|
-
};
|
|
14917
|
-
}
|
|
14918
|
-
function redactRuntimeValues(value, request) {
|
|
14919
|
-
let redacted = value;
|
|
14920
|
-
for (const secret of runtimeStringValues(request)) {
|
|
14921
|
-
if (secret.length >= 4) redacted = redacted.split(secret).join("[REDACTED]");
|
|
14922
|
-
}
|
|
14923
|
-
return redacted;
|
|
14924
|
-
}
|
|
14925
|
-
function redactRuntimeValue(value, request) {
|
|
14926
|
-
const serialized = JSON.stringify(value);
|
|
14927
|
-
return JSON.parse(redactRuntimeValues(serialized, request));
|
|
14928
|
-
}
|
|
14929
|
-
function runtimeStringValues(request) {
|
|
14930
|
-
const values = new Set(Object.values(request.environment ?? {}));
|
|
14931
|
-
const visit = (value) => {
|
|
14932
|
-
if (typeof value === "string") values.add(value);
|
|
14933
|
-
else if (Array.isArray(value)) value.forEach(visit);
|
|
14934
|
-
else if (value && typeof value === "object") Object.values(value).forEach(visit);
|
|
14935
|
-
};
|
|
14936
|
-
visit(request.connections ?? {});
|
|
14937
|
-
return [...values].filter(Boolean).sort((left, right) => right.length - left.length);
|
|
14938
|
-
}
|
|
14939
|
-
function executeChild(input) {
|
|
14940
|
-
return new Promise((resolve, reject) => {
|
|
14941
|
-
if (input.signal?.aborted) {
|
|
14942
|
-
reject(input.signal.reason instanceof Error ? input.signal.reason : new Error("Project Action was cancelled."));
|
|
14943
|
-
return;
|
|
14944
|
-
}
|
|
14945
|
-
let requestJson;
|
|
14946
|
-
try {
|
|
14947
|
-
requestJson = JSON.stringify(input.request);
|
|
14948
|
-
} catch (error51) {
|
|
14949
|
-
reject(new Error(`Project Action request is not serializable: ${error51 instanceof Error ? error51.message : String(error51)}`));
|
|
14950
|
-
return;
|
|
14951
|
-
}
|
|
14952
|
-
const child = spawn(process.execPath, [input.runnerPath], {
|
|
14953
|
-
cwd: input.cwd,
|
|
14954
|
-
env: minimalEnvironment(),
|
|
14955
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14956
|
-
});
|
|
14957
|
-
let stdout = "";
|
|
14958
|
-
let stderr = "";
|
|
14959
|
-
child.stdout.setEncoding("utf8");
|
|
14960
|
-
child.stderr.setEncoding("utf8");
|
|
14961
|
-
child.stdout.on("data", (chunk) => {
|
|
14962
|
-
stdout += chunk;
|
|
14963
|
-
});
|
|
14964
|
-
child.stderr.on("data", (chunk) => {
|
|
14965
|
-
stderr += chunk;
|
|
14966
|
-
});
|
|
14967
|
-
const abort = () => child.kill("SIGTERM");
|
|
14968
|
-
input.signal?.addEventListener("abort", abort, { once: true });
|
|
14969
|
-
child.once("error", reject);
|
|
14970
|
-
child.once("close", (code, signal) => {
|
|
14971
|
-
input.signal?.removeEventListener("abort", abort);
|
|
14972
|
-
if (input.signal?.aborted) {
|
|
14973
|
-
reject(input.signal.reason instanceof Error ? input.signal.reason : new Error("Project Action was cancelled."));
|
|
14974
|
-
return;
|
|
14975
|
-
}
|
|
14976
|
-
if (code !== 0) {
|
|
14977
|
-
reject(new Error(`Project Action process failed (${code ?? signal ?? "unknown"}): ${stderr.trim() || stdout.trim()}`));
|
|
14978
|
-
return;
|
|
14979
|
-
}
|
|
14980
|
-
resolve({ stdout, stderr });
|
|
14981
|
-
});
|
|
14982
|
-
child.stdin.end(requestJson);
|
|
14983
|
-
});
|
|
14984
|
-
}
|
|
14985
|
-
function assertWithinProject2(projectRoot, target, label) {
|
|
14986
|
-
const relative = path5.relative(projectRoot, target);
|
|
14987
|
-
if (relative.startsWith("..") || path5.isAbsolute(relative)) {
|
|
14988
|
-
throw new Error(`${label} must stay inside the Project root.`);
|
|
14989
|
-
}
|
|
14990
|
-
}
|
|
14991
|
-
function minimalEnvironment() {
|
|
14992
|
-
const env = {};
|
|
14993
|
-
for (const name of ["PATH", "SystemRoot", "WINDIR", "TMPDIR", "TEMP", "TMP"]) {
|
|
14994
|
-
if (process.env[name] !== void 0) env[name] = process.env[name];
|
|
14995
|
-
}
|
|
14996
|
-
return env;
|
|
14997
|
-
}
|
|
14517
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
14518
|
+
config(en_default());
|
|
14998
14519
|
|
|
14999
14520
|
export {
|
|
15000
|
-
|
|
15001
|
-
loadProjectActionConfiguration,
|
|
15002
|
-
buildProjectActions,
|
|
15003
|
-
createLocalActionRunner
|
|
14521
|
+
external_exports
|
|
15004
14522
|
};
|