@percher/toml 0.1.3 → 0.1.4
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/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/parse.d.ts.map +1 -1
- package/dist/parse.js +28 -2
- package/dist/parse.js.map +1 -1
- package/dist/schema.d.ts +177 -745
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +17 -6
- package/dist/schema.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { PercherTomlError, type PercherTomlErrorCode, type PercherTomlIssue, } from "./errors";
|
|
2
|
+
export { generateName } from "./generate-name";
|
|
1
3
|
export { parse, parseFile, validate } from "./parse";
|
|
4
|
+
export { appSchema, buildSchema, dataSchema, domainSchema, type EnvContract, type EnvSection, type EnvValues, envContractSchema, envSchema, envValuesSchema, getEnvValues, isEnvContract, type PercherConfig, percherConfigSchema, resourcesSchema, webSchema, } from "./schema";
|
|
2
5
|
export { serialize } from "./serialize";
|
|
3
|
-
export { generateName } from "./generate-name";
|
|
4
|
-
export { PercherTomlError, type PercherTomlErrorCode, type PercherTomlIssue, } from "./errors";
|
|
5
|
-
export { percherConfigSchema, appSchema, buildSchema, webSchema, dataSchema, envSchema, envContractSchema, envValuesSchema, domainSchema, resourcesSchema, isEnvContract, getEnvValues, type EnvContract, type EnvSection, type EnvValues, type PercherConfig, } from "./schema";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,aAAa,EACb,KAAK,aAAa,EAClB,mBAAmB,EACnB,eAAe,EACf,SAAS,GACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { PercherTomlError, } from "./errors";
|
|
2
|
+
export { generateName } from "./generate-name";
|
|
1
3
|
export { parse, parseFile, validate } from "./parse";
|
|
4
|
+
export { appSchema, buildSchema, dataSchema, domainSchema, envContractSchema, envSchema, envValuesSchema, getEnvValues, isEnvContract, percherConfigSchema, resourcesSchema, webSchema, } from "./schema";
|
|
2
5
|
export { serialize } from "./serialize";
|
|
3
|
-
export { generateName } from "./generate-name";
|
|
4
|
-
export { PercherTomlError, } from "./errors";
|
|
5
|
-
export { percherConfigSchema, appSchema, buildSchema, webSchema, dataSchema, envSchema, envContractSchema, envValuesSchema, domainSchema, resourcesSchema, isEnvContract, getEnvValues, } from "./schema";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,GAGjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,YAAY,EAIZ,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,aAAa,EAEb,mBAAmB,EACnB,eAAe,EACf,SAAS,GACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/parse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,UAAU,CAAC;AAEnE,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,UAAU,CAAC;AAEnE,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAkBnD;AAYD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,aAAa,CAgBpD;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpE"}
|
package/dist/parse.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import TOML from "@iarna/toml";
|
|
3
|
-
import { ZodError } from "zod
|
|
3
|
+
import { ZodError } from "zod";
|
|
4
4
|
import { PercherTomlError } from "./errors";
|
|
5
5
|
import { percherConfigSchema } from "./schema";
|
|
6
6
|
export function parse(source) {
|
|
@@ -12,7 +12,24 @@ export function parse(source) {
|
|
|
12
12
|
const line = err.line;
|
|
13
13
|
throw new PercherTomlError(`invalid TOML syntax${line !== undefined ? ` (line ${line})` : ""}: ${err.message}`, { code: "PARSE_ERROR", tomlLine: line, cause: err });
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
// @iarna/toml decorates each table object with hidden Symbol-keyed
|
|
16
|
+
// metadata (Symbol(type), Symbol(declared)). Zod v3 ignored those —
|
|
17
|
+
// its z.record iterated via Object.keys. Zod v4's z.record iterates
|
|
18
|
+
// via Reflect.ownKeys and fails the symbol keys against the string
|
|
19
|
+
// key schema ("Invalid key in record"). Strip symbol keys before
|
|
20
|
+
// validating so the schema sees a clean string-keyed structure.
|
|
21
|
+
return validate(stripSymbolKeys(raw));
|
|
22
|
+
}
|
|
23
|
+
function stripSymbolKeys(value) {
|
|
24
|
+
if (value === null || typeof value !== "object")
|
|
25
|
+
return value;
|
|
26
|
+
if (Array.isArray(value))
|
|
27
|
+
return value.map(stripSymbolKeys);
|
|
28
|
+
const result = {};
|
|
29
|
+
for (const key of Object.keys(value)) {
|
|
30
|
+
result[key] = stripSymbolKeys(value[key]);
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
16
33
|
}
|
|
17
34
|
export function validate(raw) {
|
|
18
35
|
try {
|
|
@@ -46,6 +63,15 @@ export async function parseFile(path) {
|
|
|
46
63
|
}
|
|
47
64
|
throw err;
|
|
48
65
|
}
|
|
66
|
+
// FUTURE11 Fas 2 — strip a leading UTF-8 BOM (U+FEFF). PowerShell's
|
|
67
|
+
// `Set-Content -Encoding utf8` and several Windows editors prepend
|
|
68
|
+
// one; @iarna/toml chokes on it with a parse error pointing at line
|
|
69
|
+
// 1 column 1, which masks the real cause (file looks fine to the
|
|
70
|
+
// user — the BOM is invisible). Stripping silently > teaching the
|
|
71
|
+
// user about file encodings via a cryptic error.
|
|
72
|
+
if (source.charCodeAt(0) === 0xfeff) {
|
|
73
|
+
source = source.slice(1);
|
|
74
|
+
}
|
|
49
75
|
return parse(source);
|
|
50
76
|
}
|
|
51
77
|
//# sourceMappingURL=parse.js.map
|
package/dist/parse.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAsB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,MAAM,UAAU,KAAK,CAAC,MAAc;IAClC,IAAI,GAAY,CAAC;IACjB,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,GAAI,GAAyB,CAAC,IAAI,CAAC;QAC7C,MAAM,IAAI,gBAAgB,CACxB,sBAAsB,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,KAAM,GAAa,CAAC,OAAO,EAAE,EAC9F,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,CACpD,CAAC;IACJ,CAAC;IACD,mEAAmE;IACnE,oEAAoE;IACpE,oEAAoE;IACpE,mEAAmE;IACnE,iEAAiE;IACjE,gEAAgE;IAChE,OAAO,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CA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,CAAC;QACb,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACrD,MAAM,IAAI,gBAAgB,CAAC,6BAA6B,IAAI,EAAE,EAAE;gBAC9D,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;QACL,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;IACD,oEAAoE;IACpE,mEAAmE;IACnE,oEAAoE;IACpE,iEAAiE;IACjE,kEAAkE;IAClE,iDAAiD;IACjD,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;QACpC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,148 +1,89 @@
|
|
|
1
|
-
import { z } from "zod
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const appSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
|
-
runtime: z.ZodEnum<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
runtime: z.ZodEnum<{
|
|
5
|
+
node: "node";
|
|
6
|
+
bun: "bun";
|
|
7
|
+
python: "python";
|
|
8
|
+
static: "static";
|
|
9
|
+
docker: "docker";
|
|
10
|
+
}>;
|
|
11
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
docker: "docker";
|
|
13
|
+
nextjs: "nextjs";
|
|
14
|
+
sveltekit: "sveltekit";
|
|
15
|
+
astro: "astro";
|
|
16
|
+
remix: "remix";
|
|
17
|
+
nuxt: "nuxt";
|
|
18
|
+
vite: "vite";
|
|
19
|
+
preact: "preact";
|
|
20
|
+
solid: "solid";
|
|
21
|
+
express: "express";
|
|
22
|
+
fastify: "fastify";
|
|
23
|
+
hono: "hono";
|
|
24
|
+
elysia: "elysia";
|
|
25
|
+
fastapi: "fastapi";
|
|
26
|
+
flask: "flask";
|
|
27
|
+
django: "django";
|
|
28
|
+
eleventy: "eleventy";
|
|
29
|
+
hugo: "hugo";
|
|
30
|
+
laravel: "laravel";
|
|
31
|
+
rails: "rails";
|
|
32
|
+
phoenix: "phoenix";
|
|
33
|
+
go: "go";
|
|
34
|
+
rust: "rust";
|
|
35
|
+
dotnet: "dotnet";
|
|
36
|
+
java: "java";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$strict>;
|
|
15
39
|
export declare const buildSchema: z.ZodObject<{
|
|
16
40
|
command: z.ZodOptional<z.ZodString>;
|
|
17
|
-
output: z.ZodOptional<z.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* also be available at build time. Frameworks like Vite/Next/Astro/
|
|
21
|
-
* Expo bake `*_PUBLIC_*` values into the static bundle at build time;
|
|
22
|
-
* without this list, those variables are only present at runtime and
|
|
23
|
-
* frontends ship with the default value baked in. Values are read
|
|
24
|
-
* from the encrypted env store at deploy time — never from the TOML
|
|
25
|
-
* itself, so no secrets in source control.
|
|
26
|
-
*/
|
|
27
|
-
pass_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strict", z.ZodTypeAny, {
|
|
29
|
-
command?: string | undefined;
|
|
30
|
-
output?: string | undefined;
|
|
31
|
-
pass_env?: string[] | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
command?: string | undefined;
|
|
34
|
-
output?: string | undefined;
|
|
35
|
-
pass_env?: string[] | undefined;
|
|
36
|
-
}>;
|
|
41
|
+
output: z.ZodOptional<z.ZodString>;
|
|
42
|
+
pass_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
37
44
|
export declare const webSchema: z.ZodObject<{
|
|
38
45
|
port: z.ZodNumber;
|
|
39
46
|
health: z.ZodOptional<z.ZodString>;
|
|
40
|
-
/** Enable password protection. Set SITE_PASSWORD env var to configure. */
|
|
41
47
|
password: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
health?: string | undefined;
|
|
45
|
-
password?: boolean | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
port: number;
|
|
48
|
-
health?: string | undefined;
|
|
49
|
-
password?: boolean | undefined;
|
|
50
|
-
}>;
|
|
48
|
+
spa: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strict>;
|
|
51
50
|
export declare const convexConfigSchema: z.ZodObject<{
|
|
52
51
|
deployment_url: z.ZodString;
|
|
53
|
-
},
|
|
54
|
-
deployment_url: string;
|
|
55
|
-
}, {
|
|
56
|
-
deployment_url: string;
|
|
57
|
-
}>;
|
|
52
|
+
}, z.core.$strict>;
|
|
58
53
|
export declare const supabaseConfigSchema: z.ZodObject<{
|
|
59
54
|
url: z.ZodString;
|
|
60
55
|
anon_key: z.ZodOptional<z.ZodString>;
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export declare const dataSchema: z.ZodObject<{
|
|
58
|
+
mode: z.ZodEnum<{
|
|
59
|
+
pocketbase: "pocketbase";
|
|
60
|
+
postgres: "postgres";
|
|
61
|
+
sqlite: "sqlite";
|
|
62
|
+
convex: "convex";
|
|
63
|
+
supabase: "supabase";
|
|
64
|
+
external: "external";
|
|
65
|
+
none: "none";
|
|
66
|
+
}>;
|
|
70
67
|
file: z.ZodOptional<z.ZodString>;
|
|
71
68
|
convex: z.ZodOptional<z.ZodObject<{
|
|
72
69
|
deployment_url: z.ZodString;
|
|
73
|
-
},
|
|
74
|
-
deployment_url: string;
|
|
75
|
-
}, {
|
|
76
|
-
deployment_url: string;
|
|
77
|
-
}>>;
|
|
70
|
+
}, z.core.$strict>>;
|
|
78
71
|
supabase: z.ZodOptional<z.ZodObject<{
|
|
79
72
|
url: z.ZodString;
|
|
80
73
|
anon_key: z.ZodOptional<z.ZodString>;
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
anon_key?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
url: string;
|
|
86
|
-
anon_key?: string | undefined;
|
|
87
|
-
}>>;
|
|
88
|
-
}, "strict", z.ZodTypeAny, {
|
|
89
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
90
|
-
convex?: {
|
|
91
|
-
deployment_url: string;
|
|
92
|
-
} | undefined;
|
|
93
|
-
supabase?: {
|
|
94
|
-
url: string;
|
|
95
|
-
anon_key?: string | undefined;
|
|
96
|
-
} | undefined;
|
|
97
|
-
file?: string | undefined;
|
|
98
|
-
}, {
|
|
99
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
100
|
-
convex?: {
|
|
101
|
-
deployment_url: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
supabase?: {
|
|
104
|
-
url: string;
|
|
105
|
-
anon_key?: string | undefined;
|
|
106
|
-
} | undefined;
|
|
107
|
-
file?: string | undefined;
|
|
108
|
-
}>, {
|
|
109
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
110
|
-
convex?: {
|
|
111
|
-
deployment_url: string;
|
|
112
|
-
} | undefined;
|
|
113
|
-
supabase?: {
|
|
114
|
-
url: string;
|
|
115
|
-
anon_key?: string | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
file?: string | undefined;
|
|
118
|
-
}, {
|
|
119
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
120
|
-
convex?: {
|
|
121
|
-
deployment_url: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
supabase?: {
|
|
124
|
-
url: string;
|
|
125
|
-
anon_key?: string | undefined;
|
|
126
|
-
} | undefined;
|
|
127
|
-
file?: string | undefined;
|
|
128
|
-
}>;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
}, z.core.$strict>;
|
|
129
76
|
export declare const domainSchema: z.ZodObject<{
|
|
130
77
|
subdomain: z.ZodOptional<z.ZodString>;
|
|
131
78
|
custom: z.ZodOptional<z.ZodString>;
|
|
132
|
-
},
|
|
133
|
-
custom?: string | undefined;
|
|
134
|
-
subdomain?: string | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
custom?: string | undefined;
|
|
137
|
-
subdomain?: string | undefined;
|
|
138
|
-
}>;
|
|
79
|
+
}, z.core.$strict>;
|
|
139
80
|
/**
|
|
140
81
|
* Phase 6.3: CPU-based autoscaling. Mutually exclusive with the static
|
|
141
82
|
* `instances` field on the parent resourcesSchema — see the superRefine
|
|
142
83
|
* below. All threshold/sustain fields have sane defaults and most users
|
|
143
84
|
* never touch them.
|
|
144
85
|
*/
|
|
145
|
-
export declare const autoscaleSchema: z.
|
|
86
|
+
export declare const autoscaleSchema: z.ZodObject<{
|
|
146
87
|
min: z.ZodNumber;
|
|
147
88
|
max: z.ZodNumber;
|
|
148
89
|
scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -150,45 +91,17 @@ export declare const autoscaleSchema: z.ZodEffects<z.ZodObject<{
|
|
|
150
91
|
scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
151
92
|
scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
|
|
152
93
|
cooldown_seconds: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}, {
|
|
162
|
-
min: number;
|
|
163
|
-
max: number;
|
|
164
|
-
scale_up_cpu_percent?: number | undefined;
|
|
165
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
166
|
-
scale_down_cpu_percent?: number | undefined;
|
|
167
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
168
|
-
cooldown_seconds?: number | undefined;
|
|
169
|
-
}>, {
|
|
170
|
-
min: number;
|
|
171
|
-
max: number;
|
|
172
|
-
scale_up_cpu_percent?: number | undefined;
|
|
173
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
174
|
-
scale_down_cpu_percent?: number | undefined;
|
|
175
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
176
|
-
cooldown_seconds?: number | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
min: number;
|
|
179
|
-
max: number;
|
|
180
|
-
scale_up_cpu_percent?: number | undefined;
|
|
181
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
182
|
-
scale_down_cpu_percent?: number | undefined;
|
|
183
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
184
|
-
cooldown_seconds?: number | undefined;
|
|
185
|
-
}>;
|
|
186
|
-
export declare const resourcesSchema: z.ZodEffects<z.ZodObject<{
|
|
187
|
-
memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export declare const resourcesSchema: z.ZodObject<{
|
|
96
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
"256mb": "256mb";
|
|
98
|
+
"512mb": "512mb";
|
|
99
|
+
"1gb": "1gb";
|
|
100
|
+
"2gb": "2gb";
|
|
101
|
+
}>>;
|
|
188
102
|
cpu: z.ZodOptional<z.ZodNumber>;
|
|
189
|
-
/** Number of parallel container instances (Phase 6.1). Plan-gated. */
|
|
190
103
|
instances: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
autoscale: z.ZodOptional<z.
|
|
104
|
+
autoscale: z.ZodOptional<z.ZodObject<{
|
|
192
105
|
min: z.ZodNumber;
|
|
193
106
|
max: z.ZodNumber;
|
|
194
107
|
scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -196,92 +109,8 @@ export declare const resourcesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
196
109
|
scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
197
110
|
scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
|
|
198
111
|
cooldown_seconds: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
max: number;
|
|
202
|
-
scale_up_cpu_percent?: number | undefined;
|
|
203
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
204
|
-
scale_down_cpu_percent?: number | undefined;
|
|
205
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
206
|
-
cooldown_seconds?: number | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
min: number;
|
|
209
|
-
max: number;
|
|
210
|
-
scale_up_cpu_percent?: number | undefined;
|
|
211
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
212
|
-
scale_down_cpu_percent?: number | undefined;
|
|
213
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
214
|
-
cooldown_seconds?: number | undefined;
|
|
215
|
-
}>, {
|
|
216
|
-
min: number;
|
|
217
|
-
max: number;
|
|
218
|
-
scale_up_cpu_percent?: number | undefined;
|
|
219
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
220
|
-
scale_down_cpu_percent?: number | undefined;
|
|
221
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
222
|
-
cooldown_seconds?: number | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
min: number;
|
|
225
|
-
max: number;
|
|
226
|
-
scale_up_cpu_percent?: number | undefined;
|
|
227
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
228
|
-
scale_down_cpu_percent?: number | undefined;
|
|
229
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
230
|
-
cooldown_seconds?: number | undefined;
|
|
231
|
-
}>>;
|
|
232
|
-
}, "strict", z.ZodTypeAny, {
|
|
233
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
234
|
-
cpu?: number | undefined;
|
|
235
|
-
instances?: number | undefined;
|
|
236
|
-
autoscale?: {
|
|
237
|
-
min: number;
|
|
238
|
-
max: number;
|
|
239
|
-
scale_up_cpu_percent?: number | undefined;
|
|
240
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
241
|
-
scale_down_cpu_percent?: number | undefined;
|
|
242
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
243
|
-
cooldown_seconds?: number | undefined;
|
|
244
|
-
} | undefined;
|
|
245
|
-
}, {
|
|
246
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
247
|
-
cpu?: number | undefined;
|
|
248
|
-
instances?: number | undefined;
|
|
249
|
-
autoscale?: {
|
|
250
|
-
min: number;
|
|
251
|
-
max: number;
|
|
252
|
-
scale_up_cpu_percent?: number | undefined;
|
|
253
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
254
|
-
scale_down_cpu_percent?: number | undefined;
|
|
255
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
256
|
-
cooldown_seconds?: number | undefined;
|
|
257
|
-
} | undefined;
|
|
258
|
-
}>, {
|
|
259
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
260
|
-
cpu?: number | undefined;
|
|
261
|
-
instances?: number | undefined;
|
|
262
|
-
autoscale?: {
|
|
263
|
-
min: number;
|
|
264
|
-
max: number;
|
|
265
|
-
scale_up_cpu_percent?: number | undefined;
|
|
266
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
267
|
-
scale_down_cpu_percent?: number | undefined;
|
|
268
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
269
|
-
cooldown_seconds?: number | undefined;
|
|
270
|
-
} | undefined;
|
|
271
|
-
}, {
|
|
272
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
273
|
-
cpu?: number | undefined;
|
|
274
|
-
instances?: number | undefined;
|
|
275
|
-
autoscale?: {
|
|
276
|
-
min: number;
|
|
277
|
-
max: number;
|
|
278
|
-
scale_up_cpu_percent?: number | undefined;
|
|
279
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
280
|
-
scale_down_cpu_percent?: number | undefined;
|
|
281
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
282
|
-
cooldown_seconds?: number | undefined;
|
|
283
|
-
} | undefined;
|
|
284
|
-
}>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
}, z.core.$strict>;
|
|
285
114
|
/**
|
|
286
115
|
* Legacy `[env]` shape: `KEY = "value"` pairs that seed the encrypted
|
|
287
116
|
* env store with placeholder values when running `percher init`. Still
|
|
@@ -302,27 +131,11 @@ export declare const envValuesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
|
302
131
|
* A key may appear in only one list. Phase 6a (this file) ships the
|
|
303
132
|
* parsing + validation only; the actual pre-queue gate is Phase 6b/c.
|
|
304
133
|
*/
|
|
305
|
-
export declare const envContractSchema: z.
|
|
306
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString
|
|
307
|
-
optional: z.ZodOptional<z.ZodArray<z.ZodString
|
|
308
|
-
ignore: z.ZodOptional<z.ZodArray<z.ZodString
|
|
309
|
-
},
|
|
310
|
-
required?: string[] | undefined;
|
|
311
|
-
optional?: string[] | undefined;
|
|
312
|
-
ignore?: string[] | undefined;
|
|
313
|
-
}, {
|
|
314
|
-
required?: string[] | undefined;
|
|
315
|
-
optional?: string[] | undefined;
|
|
316
|
-
ignore?: string[] | undefined;
|
|
317
|
-
}>, {
|
|
318
|
-
required?: string[] | undefined;
|
|
319
|
-
optional?: string[] | undefined;
|
|
320
|
-
ignore?: string[] | undefined;
|
|
321
|
-
}, {
|
|
322
|
-
required?: string[] | undefined;
|
|
323
|
-
optional?: string[] | undefined;
|
|
324
|
-
ignore?: string[] | undefined;
|
|
325
|
-
}>;
|
|
134
|
+
export declare const envContractSchema: z.ZodObject<{
|
|
135
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
+
}, z.core.$strict>;
|
|
326
139
|
/**
|
|
327
140
|
* The `[env]` table must coexist in Phase 6a with two shapes:
|
|
328
141
|
*
|
|
@@ -353,223 +166,126 @@ export declare function isEnvContract(value: EnvSection | undefined): value is E
|
|
|
353
166
|
* shape. Returns null when the section is the new contract or missing.
|
|
354
167
|
*/
|
|
355
168
|
export declare function getEnvValues(value: EnvSection | undefined): EnvValues | null;
|
|
356
|
-
export declare const envSchema: z.ZodType<EnvSection,
|
|
169
|
+
export declare const envSchema: z.ZodType<EnvSection, unknown>;
|
|
357
170
|
export declare const devSchema: z.ZodObject<{
|
|
358
|
-
ignore: z.ZodOptional<z.ZodArray<z.ZodString
|
|
171
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
172
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
360
173
|
auto_open: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
debounce?: number | undefined;
|
|
368
|
-
auto_open?: boolean | undefined;
|
|
369
|
-
}>;
|
|
370
|
-
export declare const requiredEnvSchema: z.ZodRecord<z.ZodString, z.ZodEnum<["secret", "url", "string"]>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
export declare const requiredEnvSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
176
|
+
string: "string";
|
|
177
|
+
url: "url";
|
|
178
|
+
secret: "secret";
|
|
179
|
+
}>>;
|
|
371
180
|
export declare const cronSchema: z.ZodObject<{
|
|
372
181
|
schedule: z.ZodString;
|
|
373
182
|
command: z.ZodString;
|
|
374
|
-
},
|
|
375
|
-
command: string;
|
|
376
|
-
schedule: string;
|
|
377
|
-
}, {
|
|
378
|
-
command: string;
|
|
379
|
-
schedule: string;
|
|
380
|
-
}>;
|
|
183
|
+
}, z.core.$strict>;
|
|
381
184
|
export declare const addonsSchema: z.ZodObject<{
|
|
382
185
|
pocketbase: z.ZodOptional<z.ZodObject<{
|
|
383
186
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
-
},
|
|
385
|
-
enabled?: boolean | undefined;
|
|
386
|
-
}, {
|
|
387
|
-
enabled?: boolean | undefined;
|
|
388
|
-
}>>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
389
188
|
cron: z.ZodOptional<z.ZodObject<{
|
|
390
189
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
-
},
|
|
392
|
-
enabled?: boolean | undefined;
|
|
393
|
-
}, {
|
|
394
|
-
enabled?: boolean | undefined;
|
|
395
|
-
}>>;
|
|
190
|
+
}, z.core.$strict>>;
|
|
396
191
|
storage: z.ZodOptional<z.ZodObject<{
|
|
397
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
192
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
pocketbase: "pocketbase";
|
|
194
|
+
volume: "volume";
|
|
195
|
+
s3: "s3";
|
|
196
|
+
}>>;
|
|
398
197
|
max_size: z.ZodOptional<z.ZodString>;
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
max_size?: string | undefined;
|
|
402
|
-
}, {
|
|
403
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
404
|
-
max_size?: string | undefined;
|
|
405
|
-
}>>;
|
|
406
|
-
}, "strict", z.ZodTypeAny, {
|
|
407
|
-
pocketbase?: {
|
|
408
|
-
enabled?: boolean | undefined;
|
|
409
|
-
} | undefined;
|
|
410
|
-
cron?: {
|
|
411
|
-
enabled?: boolean | undefined;
|
|
412
|
-
} | undefined;
|
|
413
|
-
storage?: {
|
|
414
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
415
|
-
max_size?: string | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
}, {
|
|
418
|
-
pocketbase?: {
|
|
419
|
-
enabled?: boolean | undefined;
|
|
420
|
-
} | undefined;
|
|
421
|
-
cron?: {
|
|
422
|
-
enabled?: boolean | undefined;
|
|
423
|
-
} | undefined;
|
|
424
|
-
storage?: {
|
|
425
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
426
|
-
max_size?: string | undefined;
|
|
427
|
-
} | undefined;
|
|
428
|
-
}>;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
}, z.core.$strict>;
|
|
429
200
|
export declare const checkSchema: z.ZodObject<{
|
|
430
201
|
path: z.ZodString;
|
|
431
202
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
432
203
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
433
204
|
initial_delay: z.ZodOptional<z.ZodNumber>;
|
|
434
|
-
},
|
|
435
|
-
path: string;
|
|
436
|
-
interval?: number | undefined;
|
|
437
|
-
timeout?: number | undefined;
|
|
438
|
-
initial_delay?: number | undefined;
|
|
439
|
-
}, {
|
|
440
|
-
path: string;
|
|
441
|
-
interval?: number | undefined;
|
|
442
|
-
timeout?: number | undefined;
|
|
443
|
-
initial_delay?: number | undefined;
|
|
444
|
-
}>;
|
|
205
|
+
}, z.core.$strict>;
|
|
445
206
|
export declare const percherConfigSchema: z.ZodObject<{
|
|
446
207
|
app: z.ZodObject<{
|
|
447
208
|
name: z.ZodString;
|
|
448
|
-
runtime: z.ZodEnum<
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
209
|
+
runtime: z.ZodEnum<{
|
|
210
|
+
node: "node";
|
|
211
|
+
bun: "bun";
|
|
212
|
+
python: "python";
|
|
213
|
+
static: "static";
|
|
214
|
+
docker: "docker";
|
|
215
|
+
}>;
|
|
216
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
docker: "docker";
|
|
218
|
+
nextjs: "nextjs";
|
|
219
|
+
sveltekit: "sveltekit";
|
|
220
|
+
astro: "astro";
|
|
221
|
+
remix: "remix";
|
|
222
|
+
nuxt: "nuxt";
|
|
223
|
+
vite: "vite";
|
|
224
|
+
preact: "preact";
|
|
225
|
+
solid: "solid";
|
|
226
|
+
express: "express";
|
|
227
|
+
fastify: "fastify";
|
|
228
|
+
hono: "hono";
|
|
229
|
+
elysia: "elysia";
|
|
230
|
+
fastapi: "fastapi";
|
|
231
|
+
flask: "flask";
|
|
232
|
+
django: "django";
|
|
233
|
+
eleventy: "eleventy";
|
|
234
|
+
hugo: "hugo";
|
|
235
|
+
laravel: "laravel";
|
|
236
|
+
rails: "rails";
|
|
237
|
+
phoenix: "phoenix";
|
|
238
|
+
go: "go";
|
|
239
|
+
rust: "rust";
|
|
240
|
+
dotnet: "dotnet";
|
|
241
|
+
java: "java";
|
|
242
|
+
}>>;
|
|
243
|
+
}, z.core.$strict>;
|
|
459
244
|
build: z.ZodOptional<z.ZodObject<{
|
|
460
245
|
command: z.ZodOptional<z.ZodString>;
|
|
461
|
-
output: z.ZodOptional<z.
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
* also be available at build time. Frameworks like Vite/Next/Astro/
|
|
465
|
-
* Expo bake `*_PUBLIC_*` values into the static bundle at build time;
|
|
466
|
-
* without this list, those variables are only present at runtime and
|
|
467
|
-
* frontends ship with the default value baked in. Values are read
|
|
468
|
-
* from the encrypted env store at deploy time — never from the TOML
|
|
469
|
-
* itself, so no secrets in source control.
|
|
470
|
-
*/
|
|
471
|
-
pass_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
472
|
-
}, "strict", z.ZodTypeAny, {
|
|
473
|
-
command?: string | undefined;
|
|
474
|
-
output?: string | undefined;
|
|
475
|
-
pass_env?: string[] | undefined;
|
|
476
|
-
}, {
|
|
477
|
-
command?: string | undefined;
|
|
478
|
-
output?: string | undefined;
|
|
479
|
-
pass_env?: string[] | undefined;
|
|
480
|
-
}>>;
|
|
246
|
+
output: z.ZodOptional<z.ZodString>;
|
|
247
|
+
pass_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
481
249
|
web: z.ZodOptional<z.ZodObject<{
|
|
482
250
|
port: z.ZodNumber;
|
|
483
251
|
health: z.ZodOptional<z.ZodString>;
|
|
484
|
-
/** Enable password protection. Set SITE_PASSWORD env var to configure. */
|
|
485
252
|
password: z.ZodOptional<z.ZodBoolean>;
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
253
|
+
spa: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
}, z.core.$strict>>;
|
|
255
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
mode: z.ZodEnum<{
|
|
257
|
+
pocketbase: "pocketbase";
|
|
258
|
+
postgres: "postgres";
|
|
259
|
+
sqlite: "sqlite";
|
|
260
|
+
convex: "convex";
|
|
261
|
+
supabase: "supabase";
|
|
262
|
+
external: "external";
|
|
263
|
+
none: "none";
|
|
264
|
+
}>;
|
|
497
265
|
file: z.ZodOptional<z.ZodString>;
|
|
498
266
|
convex: z.ZodOptional<z.ZodObject<{
|
|
499
267
|
deployment_url: z.ZodString;
|
|
500
|
-
},
|
|
501
|
-
deployment_url: string;
|
|
502
|
-
}, {
|
|
503
|
-
deployment_url: string;
|
|
504
|
-
}>>;
|
|
268
|
+
}, z.core.$strict>>;
|
|
505
269
|
supabase: z.ZodOptional<z.ZodObject<{
|
|
506
270
|
url: z.ZodString;
|
|
507
271
|
anon_key: z.ZodOptional<z.ZodString>;
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}, {
|
|
512
|
-
url: string;
|
|
513
|
-
anon_key?: string | undefined;
|
|
514
|
-
}>>;
|
|
515
|
-
}, "strict", z.ZodTypeAny, {
|
|
516
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
517
|
-
convex?: {
|
|
518
|
-
deployment_url: string;
|
|
519
|
-
} | undefined;
|
|
520
|
-
supabase?: {
|
|
521
|
-
url: string;
|
|
522
|
-
anon_key?: string | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
file?: string | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
527
|
-
convex?: {
|
|
528
|
-
deployment_url: string;
|
|
529
|
-
} | undefined;
|
|
530
|
-
supabase?: {
|
|
531
|
-
url: string;
|
|
532
|
-
anon_key?: string | undefined;
|
|
533
|
-
} | undefined;
|
|
534
|
-
file?: string | undefined;
|
|
535
|
-
}>, {
|
|
536
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
537
|
-
convex?: {
|
|
538
|
-
deployment_url: string;
|
|
539
|
-
} | undefined;
|
|
540
|
-
supabase?: {
|
|
541
|
-
url: string;
|
|
542
|
-
anon_key?: string | undefined;
|
|
543
|
-
} | undefined;
|
|
544
|
-
file?: string | undefined;
|
|
545
|
-
}, {
|
|
546
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
547
|
-
convex?: {
|
|
548
|
-
deployment_url: string;
|
|
549
|
-
} | undefined;
|
|
550
|
-
supabase?: {
|
|
551
|
-
url: string;
|
|
552
|
-
anon_key?: string | undefined;
|
|
553
|
-
} | undefined;
|
|
554
|
-
file?: string | undefined;
|
|
555
|
-
}>>;
|
|
556
|
-
env: z.ZodOptional<z.ZodType<EnvSection, z.ZodTypeDef, unknown>>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
273
|
+
}, z.core.$strict>>;
|
|
274
|
+
env: z.ZodOptional<z.ZodType<EnvSection, unknown, z.core.$ZodTypeInternals<EnvSection, unknown>>>;
|
|
557
275
|
domain: z.ZodOptional<z.ZodObject<{
|
|
558
276
|
subdomain: z.ZodOptional<z.ZodString>;
|
|
559
277
|
custom: z.ZodOptional<z.ZodString>;
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
|
|
278
|
+
}, z.core.$strict>>;
|
|
279
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
281
|
+
"256mb": "256mb";
|
|
282
|
+
"512mb": "512mb";
|
|
283
|
+
"1gb": "1gb";
|
|
284
|
+
"2gb": "2gb";
|
|
285
|
+
}>>;
|
|
569
286
|
cpu: z.ZodOptional<z.ZodNumber>;
|
|
570
|
-
/** Number of parallel container instances (Phase 6.1). Plan-gated. */
|
|
571
287
|
instances: z.ZodOptional<z.ZodNumber>;
|
|
572
|
-
autoscale: z.ZodOptional<z.
|
|
288
|
+
autoscale: z.ZodOptional<z.ZodObject<{
|
|
573
289
|
min: z.ZodNumber;
|
|
574
290
|
max: z.ZodNumber;
|
|
575
291
|
scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -577,328 +293,44 @@ export declare const percherConfigSchema: z.ZodObject<{
|
|
|
577
293
|
scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
|
|
578
294
|
scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
|
|
579
295
|
cooldown_seconds: z.ZodOptional<z.ZodNumber>;
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
max: number;
|
|
583
|
-
scale_up_cpu_percent?: number | undefined;
|
|
584
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
585
|
-
scale_down_cpu_percent?: number | undefined;
|
|
586
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
587
|
-
cooldown_seconds?: number | undefined;
|
|
588
|
-
}, {
|
|
589
|
-
min: number;
|
|
590
|
-
max: number;
|
|
591
|
-
scale_up_cpu_percent?: number | undefined;
|
|
592
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
593
|
-
scale_down_cpu_percent?: number | undefined;
|
|
594
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
595
|
-
cooldown_seconds?: number | undefined;
|
|
596
|
-
}>, {
|
|
597
|
-
min: number;
|
|
598
|
-
max: number;
|
|
599
|
-
scale_up_cpu_percent?: number | undefined;
|
|
600
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
601
|
-
scale_down_cpu_percent?: number | undefined;
|
|
602
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
603
|
-
cooldown_seconds?: number | undefined;
|
|
604
|
-
}, {
|
|
605
|
-
min: number;
|
|
606
|
-
max: number;
|
|
607
|
-
scale_up_cpu_percent?: number | undefined;
|
|
608
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
609
|
-
scale_down_cpu_percent?: number | undefined;
|
|
610
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
611
|
-
cooldown_seconds?: number | undefined;
|
|
612
|
-
}>>;
|
|
613
|
-
}, "strict", z.ZodTypeAny, {
|
|
614
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
615
|
-
cpu?: number | undefined;
|
|
616
|
-
instances?: number | undefined;
|
|
617
|
-
autoscale?: {
|
|
618
|
-
min: number;
|
|
619
|
-
max: number;
|
|
620
|
-
scale_up_cpu_percent?: number | undefined;
|
|
621
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
622
|
-
scale_down_cpu_percent?: number | undefined;
|
|
623
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
624
|
-
cooldown_seconds?: number | undefined;
|
|
625
|
-
} | undefined;
|
|
626
|
-
}, {
|
|
627
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
628
|
-
cpu?: number | undefined;
|
|
629
|
-
instances?: number | undefined;
|
|
630
|
-
autoscale?: {
|
|
631
|
-
min: number;
|
|
632
|
-
max: number;
|
|
633
|
-
scale_up_cpu_percent?: number | undefined;
|
|
634
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
635
|
-
scale_down_cpu_percent?: number | undefined;
|
|
636
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
637
|
-
cooldown_seconds?: number | undefined;
|
|
638
|
-
} | undefined;
|
|
639
|
-
}>, {
|
|
640
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
641
|
-
cpu?: number | undefined;
|
|
642
|
-
instances?: number | undefined;
|
|
643
|
-
autoscale?: {
|
|
644
|
-
min: number;
|
|
645
|
-
max: number;
|
|
646
|
-
scale_up_cpu_percent?: number | undefined;
|
|
647
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
648
|
-
scale_down_cpu_percent?: number | undefined;
|
|
649
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
650
|
-
cooldown_seconds?: number | undefined;
|
|
651
|
-
} | undefined;
|
|
652
|
-
}, {
|
|
653
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
654
|
-
cpu?: number | undefined;
|
|
655
|
-
instances?: number | undefined;
|
|
656
|
-
autoscale?: {
|
|
657
|
-
min: number;
|
|
658
|
-
max: number;
|
|
659
|
-
scale_up_cpu_percent?: number | undefined;
|
|
660
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
661
|
-
scale_down_cpu_percent?: number | undefined;
|
|
662
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
663
|
-
cooldown_seconds?: number | undefined;
|
|
664
|
-
} | undefined;
|
|
665
|
-
}>>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
}, z.core.$strict>>;
|
|
666
298
|
dev: z.ZodOptional<z.ZodObject<{
|
|
667
|
-
ignore: z.ZodOptional<z.ZodArray<z.ZodString
|
|
299
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
668
300
|
debounce: z.ZodOptional<z.ZodNumber>;
|
|
669
301
|
auto_open: z.ZodOptional<z.ZodBoolean>;
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
debounce?: number | undefined;
|
|
677
|
-
auto_open?: boolean | undefined;
|
|
678
|
-
}>>;
|
|
679
|
-
required_env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["secret", "url", "string"]>>>;
|
|
302
|
+
}, z.core.$strict>>;
|
|
303
|
+
required_env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
304
|
+
string: "string";
|
|
305
|
+
url: "url";
|
|
306
|
+
secret: "secret";
|
|
307
|
+
}>>>;
|
|
680
308
|
crons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
681
309
|
schedule: z.ZodString;
|
|
682
310
|
command: z.ZodString;
|
|
683
|
-
},
|
|
684
|
-
command: string;
|
|
685
|
-
schedule: string;
|
|
686
|
-
}, {
|
|
687
|
-
command: string;
|
|
688
|
-
schedule: string;
|
|
689
|
-
}>>>;
|
|
311
|
+
}, z.core.$strict>>>;
|
|
690
312
|
addons: z.ZodOptional<z.ZodObject<{
|
|
691
313
|
pocketbase: z.ZodOptional<z.ZodObject<{
|
|
692
314
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
693
|
-
},
|
|
694
|
-
enabled?: boolean | undefined;
|
|
695
|
-
}, {
|
|
696
|
-
enabled?: boolean | undefined;
|
|
697
|
-
}>>;
|
|
315
|
+
}, z.core.$strict>>;
|
|
698
316
|
cron: z.ZodOptional<z.ZodObject<{
|
|
699
317
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
-
},
|
|
701
|
-
enabled?: boolean | undefined;
|
|
702
|
-
}, {
|
|
703
|
-
enabled?: boolean | undefined;
|
|
704
|
-
}>>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
705
319
|
storage: z.ZodOptional<z.ZodObject<{
|
|
706
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
320
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
pocketbase: "pocketbase";
|
|
322
|
+
volume: "volume";
|
|
323
|
+
s3: "s3";
|
|
324
|
+
}>>;
|
|
707
325
|
max_size: z.ZodOptional<z.ZodString>;
|
|
708
|
-
},
|
|
709
|
-
|
|
710
|
-
max_size?: string | undefined;
|
|
711
|
-
}, {
|
|
712
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
713
|
-
max_size?: string | undefined;
|
|
714
|
-
}>>;
|
|
715
|
-
}, "strict", z.ZodTypeAny, {
|
|
716
|
-
pocketbase?: {
|
|
717
|
-
enabled?: boolean | undefined;
|
|
718
|
-
} | undefined;
|
|
719
|
-
cron?: {
|
|
720
|
-
enabled?: boolean | undefined;
|
|
721
|
-
} | undefined;
|
|
722
|
-
storage?: {
|
|
723
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
724
|
-
max_size?: string | undefined;
|
|
725
|
-
} | undefined;
|
|
726
|
-
}, {
|
|
727
|
-
pocketbase?: {
|
|
728
|
-
enabled?: boolean | undefined;
|
|
729
|
-
} | undefined;
|
|
730
|
-
cron?: {
|
|
731
|
-
enabled?: boolean | undefined;
|
|
732
|
-
} | undefined;
|
|
733
|
-
storage?: {
|
|
734
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
735
|
-
max_size?: string | undefined;
|
|
736
|
-
} | undefined;
|
|
737
|
-
}>>;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
}, z.core.$strict>>;
|
|
738
328
|
checks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
739
329
|
path: z.ZodString;
|
|
740
330
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
741
331
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
742
332
|
initial_delay: z.ZodOptional<z.ZodNumber>;
|
|
743
|
-
},
|
|
744
|
-
|
|
745
|
-
interval?: number | undefined;
|
|
746
|
-
timeout?: number | undefined;
|
|
747
|
-
initial_delay?: number | undefined;
|
|
748
|
-
}, {
|
|
749
|
-
path: string;
|
|
750
|
-
interval?: number | undefined;
|
|
751
|
-
timeout?: number | undefined;
|
|
752
|
-
initial_delay?: number | undefined;
|
|
753
|
-
}>>>;
|
|
754
|
-
}, "strict", z.ZodTypeAny, {
|
|
755
|
-
app: {
|
|
756
|
-
name: string;
|
|
757
|
-
runtime: "node" | "bun" | "python" | "static" | "docker";
|
|
758
|
-
framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
|
|
759
|
-
};
|
|
760
|
-
build?: {
|
|
761
|
-
command?: string | undefined;
|
|
762
|
-
output?: string | undefined;
|
|
763
|
-
pass_env?: string[] | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
web?: {
|
|
766
|
-
port: number;
|
|
767
|
-
health?: string | undefined;
|
|
768
|
-
password?: boolean | undefined;
|
|
769
|
-
} | undefined;
|
|
770
|
-
data?: {
|
|
771
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
772
|
-
convex?: {
|
|
773
|
-
deployment_url: string;
|
|
774
|
-
} | undefined;
|
|
775
|
-
supabase?: {
|
|
776
|
-
url: string;
|
|
777
|
-
anon_key?: string | undefined;
|
|
778
|
-
} | undefined;
|
|
779
|
-
file?: string | undefined;
|
|
780
|
-
} | undefined;
|
|
781
|
-
env?: EnvSection | undefined;
|
|
782
|
-
domain?: {
|
|
783
|
-
custom?: string | undefined;
|
|
784
|
-
subdomain?: string | undefined;
|
|
785
|
-
} | undefined;
|
|
786
|
-
resources?: {
|
|
787
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
788
|
-
cpu?: number | undefined;
|
|
789
|
-
instances?: number | undefined;
|
|
790
|
-
autoscale?: {
|
|
791
|
-
min: number;
|
|
792
|
-
max: number;
|
|
793
|
-
scale_up_cpu_percent?: number | undefined;
|
|
794
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
795
|
-
scale_down_cpu_percent?: number | undefined;
|
|
796
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
797
|
-
cooldown_seconds?: number | undefined;
|
|
798
|
-
} | undefined;
|
|
799
|
-
} | undefined;
|
|
800
|
-
dev?: {
|
|
801
|
-
ignore?: string[] | undefined;
|
|
802
|
-
debounce?: number | undefined;
|
|
803
|
-
auto_open?: boolean | undefined;
|
|
804
|
-
} | undefined;
|
|
805
|
-
required_env?: Record<string, "string" | "url" | "secret"> | undefined;
|
|
806
|
-
crons?: Record<string, {
|
|
807
|
-
command: string;
|
|
808
|
-
schedule: string;
|
|
809
|
-
}> | undefined;
|
|
810
|
-
addons?: {
|
|
811
|
-
pocketbase?: {
|
|
812
|
-
enabled?: boolean | undefined;
|
|
813
|
-
} | undefined;
|
|
814
|
-
cron?: {
|
|
815
|
-
enabled?: boolean | undefined;
|
|
816
|
-
} | undefined;
|
|
817
|
-
storage?: {
|
|
818
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
819
|
-
max_size?: string | undefined;
|
|
820
|
-
} | undefined;
|
|
821
|
-
} | undefined;
|
|
822
|
-
checks?: Record<string, {
|
|
823
|
-
path: string;
|
|
824
|
-
interval?: number | undefined;
|
|
825
|
-
timeout?: number | undefined;
|
|
826
|
-
initial_delay?: number | undefined;
|
|
827
|
-
}> | undefined;
|
|
828
|
-
}, {
|
|
829
|
-
app: {
|
|
830
|
-
name: string;
|
|
831
|
-
runtime: "node" | "bun" | "python" | "static" | "docker";
|
|
832
|
-
framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
|
|
833
|
-
};
|
|
834
|
-
build?: {
|
|
835
|
-
command?: string | undefined;
|
|
836
|
-
output?: string | undefined;
|
|
837
|
-
pass_env?: string[] | undefined;
|
|
838
|
-
} | undefined;
|
|
839
|
-
web?: {
|
|
840
|
-
port: number;
|
|
841
|
-
health?: string | undefined;
|
|
842
|
-
password?: boolean | undefined;
|
|
843
|
-
} | undefined;
|
|
844
|
-
data?: {
|
|
845
|
-
mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
|
|
846
|
-
convex?: {
|
|
847
|
-
deployment_url: string;
|
|
848
|
-
} | undefined;
|
|
849
|
-
supabase?: {
|
|
850
|
-
url: string;
|
|
851
|
-
anon_key?: string | undefined;
|
|
852
|
-
} | undefined;
|
|
853
|
-
file?: string | undefined;
|
|
854
|
-
} | undefined;
|
|
855
|
-
env?: unknown;
|
|
856
|
-
domain?: {
|
|
857
|
-
custom?: string | undefined;
|
|
858
|
-
subdomain?: string | undefined;
|
|
859
|
-
} | undefined;
|
|
860
|
-
resources?: {
|
|
861
|
-
memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
|
|
862
|
-
cpu?: number | undefined;
|
|
863
|
-
instances?: number | undefined;
|
|
864
|
-
autoscale?: {
|
|
865
|
-
min: number;
|
|
866
|
-
max: number;
|
|
867
|
-
scale_up_cpu_percent?: number | undefined;
|
|
868
|
-
scale_up_sustain_seconds?: number | undefined;
|
|
869
|
-
scale_down_cpu_percent?: number | undefined;
|
|
870
|
-
scale_down_sustain_seconds?: number | undefined;
|
|
871
|
-
cooldown_seconds?: number | undefined;
|
|
872
|
-
} | undefined;
|
|
873
|
-
} | undefined;
|
|
874
|
-
dev?: {
|
|
875
|
-
ignore?: string[] | undefined;
|
|
876
|
-
debounce?: number | undefined;
|
|
877
|
-
auto_open?: boolean | undefined;
|
|
878
|
-
} | undefined;
|
|
879
|
-
required_env?: Record<string, "string" | "url" | "secret"> | undefined;
|
|
880
|
-
crons?: Record<string, {
|
|
881
|
-
command: string;
|
|
882
|
-
schedule: string;
|
|
883
|
-
}> | undefined;
|
|
884
|
-
addons?: {
|
|
885
|
-
pocketbase?: {
|
|
886
|
-
enabled?: boolean | undefined;
|
|
887
|
-
} | undefined;
|
|
888
|
-
cron?: {
|
|
889
|
-
enabled?: boolean | undefined;
|
|
890
|
-
} | undefined;
|
|
891
|
-
storage?: {
|
|
892
|
-
mode?: "pocketbase" | "volume" | "s3" | undefined;
|
|
893
|
-
max_size?: string | undefined;
|
|
894
|
-
} | undefined;
|
|
895
|
-
} | undefined;
|
|
896
|
-
checks?: Record<string, {
|
|
897
|
-
path: string;
|
|
898
|
-
interval?: number | undefined;
|
|
899
|
-
timeout?: number | undefined;
|
|
900
|
-
initial_delay?: number | undefined;
|
|
901
|
-
}> | undefined;
|
|
902
|
-
}>;
|
|
333
|
+
}, z.core.$strict>>>;
|
|
334
|
+
}, z.core.$strict>;
|
|
903
335
|
export type PercherConfig = z.infer<typeof percherConfigSchema>;
|
|
904
336
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoCX,CAAC;AAUZ,eAAO,MAAM,WAAW;;;;kBAqBb,CAAC;AAEZ,eAAO,MAAM,SAAS;;;;;kBAeX,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;kBAIpB,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAerB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
const APP_NAME_RE = /^[a-z][a-z0-9-]{2,39}$/;
|
|
3
3
|
export const appSchema = z
|
|
4
4
|
.object({
|
|
@@ -72,6 +72,14 @@ export const webSchema = z
|
|
|
72
72
|
health: z.string().optional(),
|
|
73
73
|
/** Enable password protection. Set SITE_PASSWORD env var to configure. */
|
|
74
74
|
password: z.boolean().optional(),
|
|
75
|
+
/**
|
|
76
|
+
* For `runtime = "static"` apps: enable client-side routing fallback.
|
|
77
|
+
* Caddy `try_files {path} /index.html` so deep links served from a
|
|
78
|
+
* React Router / Vue Router app return the SPA shell instead of 404.
|
|
79
|
+
* Ignored for non-static runtimes (the Caddyfile is only generated
|
|
80
|
+
* on the static path).
|
|
81
|
+
*/
|
|
82
|
+
spa: z.boolean().optional(),
|
|
75
83
|
})
|
|
76
84
|
.strict();
|
|
77
85
|
export const convexConfigSchema = z
|
|
@@ -273,9 +281,7 @@ export function getEnvValues(value) {
|
|
|
273
281
|
return null;
|
|
274
282
|
return value;
|
|
275
283
|
}
|
|
276
|
-
export const envSchema = z
|
|
277
|
-
.unknown()
|
|
278
|
-
.transform((value, ctx) => {
|
|
284
|
+
export const envSchema = z.unknown().transform((value, ctx) => {
|
|
279
285
|
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
280
286
|
ctx.addIssue({
|
|
281
287
|
code: z.ZodIssueCode.custom,
|
|
@@ -293,8 +299,13 @@ export const envSchema = z
|
|
|
293
299
|
const target = looksLikeContract ? envContractSchema : envValuesSchema;
|
|
294
300
|
const result = target.safeParse(value);
|
|
295
301
|
if (!result.success) {
|
|
296
|
-
for (const issue of result.error.issues)
|
|
297
|
-
ctx.addIssue(
|
|
302
|
+
for (const issue of result.error.issues) {
|
|
303
|
+
ctx.addIssue({
|
|
304
|
+
code: z.ZodIssueCode.custom,
|
|
305
|
+
message: issue.message,
|
|
306
|
+
path: issue.path,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
298
309
|
return z.NEVER;
|
|
299
310
|
}
|
|
300
311
|
return result.data;
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,WAAW,EAAE,oEAAoE,CAAC;IAC3F,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,SAAS,EAAE,CAAC;SACT,IAAI,CAAC;QACJ,QAAQ;QACR,WAAW;QACX,OAAO;QACP,OAAO;QACP,MAAM;QACN,MAAM;QACN,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,MAAM;QACN,QAAQ;QACR,SAAS;QACT,OAAO;QACP,QAAQ;QACR,UAAU;QACV,MAAM;QACN,SAAS;QACT,OAAO;QACP,SAAS;QACT,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,MAAM;QACN,QAAQ;KACT,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ;;;;;GAKG;AACH,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEzC,MAAM,CAAC,M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Percher hosting platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build": "tsc -p tsconfig.json",
|
|
18
20
|
"test": "bun test",
|