@powerlines/plugin-env 0.16.364 → 0.16.365
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/babel/plugin.cjs +4 -26
- package/dist/babel/plugin.mjs +4 -26
- package/dist/components/docs.cjs +4 -47
- package/dist/components/docs.mjs +4 -46
- package/dist/components/env-builtin.cjs +70 -250
- package/dist/components/env-builtin.mjs +70 -248
- package/dist/components/index.cjs +1 -4
- package/dist/components/index.mjs +3 -3
- package/dist/helpers/automd-generator.cjs +4 -12
- package/dist/helpers/automd-generator.mjs +4 -12
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/load.cjs +7 -59
- package/dist/helpers/load.d.cts +2 -2
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +7 -59
- package/dist/helpers/schema.cjs +35 -154
- package/dist/helpers/schema.d.cts +9 -8
- package/dist/helpers/schema.d.cts.map +1 -1
- package/dist/helpers/schema.d.mts +9 -8
- package/dist/helpers/schema.mjs +35 -154
- package/dist/helpers/source-file-env.cjs +4 -34
- package/dist/helpers/source-file-env.mjs +4 -34
- package/dist/index.cjs +20 -47
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +18 -39
- package/dist/schemas/env.cjs +723 -0
- package/dist/schemas/env.d.cts +230 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +230 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +715 -0
- package/dist/schemas/index.cjs +10 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/index.cjs +0 -12
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -4
- package/dist/types/plugin.cjs +7 -107
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/plugin.mjs +7 -100
- package/package.json +40 -25
- package/dist/types/env.cjs +0 -541
- package/dist/types/env.d.cts +0 -938
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -938
- package/dist/types/env.mjs +0 -539
- /package/dist/{types → schemas}/env.mjs.map +0 -0
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/env.ts
|
|
4
|
+
/**
|
|
5
|
+
* Runtime environment the application may execute in.
|
|
6
|
+
*/
|
|
7
|
+
const RuntimeSchema = z.enum([
|
|
8
|
+
"nodejs",
|
|
9
|
+
"deno",
|
|
10
|
+
"workerd",
|
|
11
|
+
"browser"
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* Platform the application was built for.
|
|
15
|
+
*/
|
|
16
|
+
const PlatformSchema = z.enum([
|
|
17
|
+
"node",
|
|
18
|
+
"neutral",
|
|
19
|
+
"browser"
|
|
20
|
+
]);
|
|
21
|
+
/**
|
|
22
|
+
* Application run mode.
|
|
23
|
+
*/
|
|
24
|
+
const ModeSchema = z.enum([
|
|
25
|
+
"development",
|
|
26
|
+
"test",
|
|
27
|
+
"production"
|
|
28
|
+
]);
|
|
29
|
+
/**
|
|
30
|
+
* Lowest log level the logger will accept.
|
|
31
|
+
*/
|
|
32
|
+
const LogLevelSchema = z.enum([
|
|
33
|
+
"error",
|
|
34
|
+
"warn",
|
|
35
|
+
"info",
|
|
36
|
+
"debug"
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* Value that may be a boolean flag or a numeric color/hyperlink force level.
|
|
40
|
+
*/
|
|
41
|
+
const BooleanOrNumberSchema = z.union([z.boolean(), z.number()]);
|
|
42
|
+
/**
|
|
43
|
+
* Zod schema for the base environment configuration used by Powerlines applications.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Defaults match documented `@defaultValue` metadata on each field.
|
|
47
|
+
*/
|
|
48
|
+
const envSchema = z.object({
|
|
49
|
+
APP_NAME: z.string().meta({
|
|
50
|
+
description: "The name of the application.",
|
|
51
|
+
readonly: true,
|
|
52
|
+
category: "neutral"
|
|
53
|
+
}),
|
|
54
|
+
APP_VERSION: z.string().default("1.0.0").meta({
|
|
55
|
+
description: "The version of the application.",
|
|
56
|
+
defaultValue: "1.0.0",
|
|
57
|
+
readonly: true,
|
|
58
|
+
category: "neutral"
|
|
59
|
+
}),
|
|
60
|
+
BUILD_ID: z.string().meta({
|
|
61
|
+
description: "The unique identifier for the build.",
|
|
62
|
+
readonly: true,
|
|
63
|
+
category: "neutral"
|
|
64
|
+
}),
|
|
65
|
+
BUILD_TIMESTAMP: z.string().meta({
|
|
66
|
+
description: "The timestamp the build was ran at.",
|
|
67
|
+
readonly: true,
|
|
68
|
+
category: "neutral"
|
|
69
|
+
}),
|
|
70
|
+
BUILD_CHECKSUM: z.string().meta({
|
|
71
|
+
description: "A checksum hash created during the build.",
|
|
72
|
+
readonly: true,
|
|
73
|
+
category: "neutral"
|
|
74
|
+
}),
|
|
75
|
+
RELEASE_ID: z.string().meta({
|
|
76
|
+
description: "The unique identifier for the release.",
|
|
77
|
+
readonly: true,
|
|
78
|
+
category: "neutral"
|
|
79
|
+
}),
|
|
80
|
+
RELEASE_TAG: z.string().meta({
|
|
81
|
+
description: "The tag for the release. This is generally in the format of \"<APP_NAME>@<APP_VERSION>\".",
|
|
82
|
+
readonly: true,
|
|
83
|
+
category: "neutral"
|
|
84
|
+
}),
|
|
85
|
+
ORGANIZATION: z.string().meta({
|
|
86
|
+
description: "The name of the organization that maintains the application. This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in StormWorkspaceConfig.organization.",
|
|
87
|
+
alias: ["ORG", "ORG_ID"],
|
|
88
|
+
category: "neutral"
|
|
89
|
+
}),
|
|
90
|
+
RUNTIME: RuntimeSchema.optional().meta({ description: "The runtime that the application is running in." }),
|
|
91
|
+
PLATFORM: PlatformSchema.default("neutral").meta({
|
|
92
|
+
description: "The platform for which the application was built.",
|
|
93
|
+
defaultValue: "neutral",
|
|
94
|
+
category: "neutral"
|
|
95
|
+
}),
|
|
96
|
+
MODE: ModeSchema.default("production").meta({
|
|
97
|
+
description: "The mode in which the application is running.",
|
|
98
|
+
defaultValue: "production",
|
|
99
|
+
alias: [
|
|
100
|
+
"NODE_ENV",
|
|
101
|
+
"ENV",
|
|
102
|
+
"VERCEL_ENV"
|
|
103
|
+
],
|
|
104
|
+
category: "neutral"
|
|
105
|
+
}),
|
|
106
|
+
ENVIRONMENT: z.string().default("production").meta({
|
|
107
|
+
description: "The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
|
|
108
|
+
defaultValue: "production",
|
|
109
|
+
category: "neutral"
|
|
110
|
+
}),
|
|
111
|
+
DEBUG: z.boolean().meta({
|
|
112
|
+
description: "Indicates if the application is running in debug mode.",
|
|
113
|
+
category: "neutral"
|
|
114
|
+
}),
|
|
115
|
+
TEST: z.boolean().meta({
|
|
116
|
+
description: "An indicator that specifies the current runtime is a test environment.",
|
|
117
|
+
category: "neutral"
|
|
118
|
+
}),
|
|
119
|
+
MINIMAL: z.boolean().meta({
|
|
120
|
+
description: "An indicator that specifies the current runtime is a minimal environment.",
|
|
121
|
+
category: "node"
|
|
122
|
+
}),
|
|
123
|
+
NO_COLOR: z.boolean().meta({
|
|
124
|
+
description: "An indicator that specifies the current runtime is a no color environment.",
|
|
125
|
+
category: "node"
|
|
126
|
+
}),
|
|
127
|
+
FORCE_COLOR: BooleanOrNumberSchema.meta({
|
|
128
|
+
description: "An indicator that specifies the current runtime is a force color environment.",
|
|
129
|
+
category: "node"
|
|
130
|
+
}),
|
|
131
|
+
FORCE_HYPERLINK: BooleanOrNumberSchema.meta({
|
|
132
|
+
description: "An indicator that specifies the current runtime should force hyperlinks in terminal output. This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.",
|
|
133
|
+
category: "node"
|
|
134
|
+
}),
|
|
135
|
+
AGENT_NAME: z.string().optional().meta({
|
|
136
|
+
description: "The name of the agent running the application. This variable is set by certain CI/CD systems.",
|
|
137
|
+
readonly: true,
|
|
138
|
+
runtime: true,
|
|
139
|
+
hidden: true,
|
|
140
|
+
category: "neutral"
|
|
141
|
+
}),
|
|
142
|
+
COLORTERM: z.string().optional().meta({
|
|
143
|
+
description: "The color terminal type. This variable is set by certain terminal emulators.",
|
|
144
|
+
readonly: true,
|
|
145
|
+
runtime: true,
|
|
146
|
+
hidden: true,
|
|
147
|
+
category: "node"
|
|
148
|
+
}),
|
|
149
|
+
TERM: z.string().optional().meta({
|
|
150
|
+
description: "The terminal type. This variable is set by certain CI/CD systems. This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.",
|
|
151
|
+
readonly: true,
|
|
152
|
+
runtime: true,
|
|
153
|
+
hidden: true,
|
|
154
|
+
category: "node"
|
|
155
|
+
}),
|
|
156
|
+
TERM_PROGRAM: z.string().optional().meta({
|
|
157
|
+
description: "The terminal program name. This variable is set by certain terminal emulators.",
|
|
158
|
+
readonly: true,
|
|
159
|
+
runtime: true,
|
|
160
|
+
hidden: true,
|
|
161
|
+
category: "node"
|
|
162
|
+
}),
|
|
163
|
+
TERM_PROGRAM_VERSION: z.string().optional().meta({
|
|
164
|
+
description: "The terminal program version. This variable is set by certain terminal emulators.",
|
|
165
|
+
readonly: true,
|
|
166
|
+
runtime: true,
|
|
167
|
+
hidden: true,
|
|
168
|
+
category: "node"
|
|
169
|
+
}),
|
|
170
|
+
TERMINAL_EMULATOR: z.string().optional().meta({
|
|
171
|
+
description: "The terminal emulator name. This variable is set by certain terminal emulators.",
|
|
172
|
+
readonly: true,
|
|
173
|
+
runtime: true,
|
|
174
|
+
hidden: true,
|
|
175
|
+
category: "node"
|
|
176
|
+
}),
|
|
177
|
+
WT_SESSION: z.string().optional().meta({
|
|
178
|
+
description: "The terminal emulator session ID. This variable is set by certain terminal emulators.",
|
|
179
|
+
readonly: true,
|
|
180
|
+
runtime: true,
|
|
181
|
+
hidden: true,
|
|
182
|
+
category: "node"
|
|
183
|
+
}),
|
|
184
|
+
TERMINUS_SUBLIME: z.boolean().optional().meta({
|
|
185
|
+
description: "An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.",
|
|
186
|
+
readonly: true,
|
|
187
|
+
runtime: true,
|
|
188
|
+
hidden: true,
|
|
189
|
+
category: "node"
|
|
190
|
+
}),
|
|
191
|
+
ConEmuTask: z.string().optional().meta({
|
|
192
|
+
description: "The ConEmu task name. This variable is set by certain terminal emulators.",
|
|
193
|
+
readonly: true,
|
|
194
|
+
runtime: true,
|
|
195
|
+
hidden: true,
|
|
196
|
+
category: "node"
|
|
197
|
+
}),
|
|
198
|
+
CURSOR_TRACE_ID: z.string().optional().meta({
|
|
199
|
+
description: "The cursor trace ID. This variable is set by certain terminal emulators.",
|
|
200
|
+
readonly: true,
|
|
201
|
+
runtime: true,
|
|
202
|
+
hidden: true,
|
|
203
|
+
category: "node"
|
|
204
|
+
}),
|
|
205
|
+
VTE_VERSION: z.string().optional().meta({
|
|
206
|
+
description: "The VTE version. This variable is set by certain terminal emulators.",
|
|
207
|
+
readonly: true,
|
|
208
|
+
runtime: true,
|
|
209
|
+
hidden: true,
|
|
210
|
+
category: "node"
|
|
211
|
+
}),
|
|
212
|
+
STACKTRACE: z.boolean().meta({
|
|
213
|
+
description: "Indicates if error stack traces should be captured.",
|
|
214
|
+
category: "neutral"
|
|
215
|
+
}),
|
|
216
|
+
INCLUDE_ERROR_DATA: z.boolean().meta({
|
|
217
|
+
description: "Indicates if error data should be included.",
|
|
218
|
+
category: "neutral"
|
|
219
|
+
}),
|
|
220
|
+
ERROR_URL: z.string().optional().meta({
|
|
221
|
+
title: "Error Details URL",
|
|
222
|
+
description: "A web page to lookup error messages and display additional information given an error code. This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.",
|
|
223
|
+
category: "neutral"
|
|
224
|
+
}),
|
|
225
|
+
DEFAULT_TIMEZONE: z.string().default("America/New_York").meta({
|
|
226
|
+
description: "The default timezone for the application.",
|
|
227
|
+
defaultValue: "America/New_York",
|
|
228
|
+
category: "neutral"
|
|
229
|
+
}),
|
|
230
|
+
DEFAULT_LOCALE: z.string().default("en_US").meta({
|
|
231
|
+
description: "The default locale to be used in the application.",
|
|
232
|
+
defaultValue: "en_US",
|
|
233
|
+
category: "neutral"
|
|
234
|
+
}),
|
|
235
|
+
LOG_LEVEL: LogLevelSchema.nullable().default("info").meta({
|
|
236
|
+
description: "The default lowest log level to accept. If `null`, the logger will reject all records.",
|
|
237
|
+
defaultValue: "info",
|
|
238
|
+
category: "neutral"
|
|
239
|
+
}),
|
|
240
|
+
CI: z.boolean().meta({
|
|
241
|
+
title: "Continuous Integration",
|
|
242
|
+
description: "An indicator that specifies the current runtime is a continuous integration environment.",
|
|
243
|
+
alias: ["CONTINUOUS_INTEGRATION"],
|
|
244
|
+
category: "neutral"
|
|
245
|
+
}),
|
|
246
|
+
RUN_ID: z.string().optional().meta({
|
|
247
|
+
description: "The unique identifier for the current run. This value is set by certain CI/CD systems.",
|
|
248
|
+
readonly: true,
|
|
249
|
+
runtime: true,
|
|
250
|
+
hidden: true,
|
|
251
|
+
category: "node"
|
|
252
|
+
}),
|
|
253
|
+
AGOLA_GIT_REF: z.string().optional().meta({
|
|
254
|
+
description: "The agola git reference. This value is set by certain CI/CD systems.",
|
|
255
|
+
readonly: true,
|
|
256
|
+
runtime: true,
|
|
257
|
+
hidden: true,
|
|
258
|
+
category: "node"
|
|
259
|
+
}),
|
|
260
|
+
AC_APPCIRCLE: z.string().optional().meta({
|
|
261
|
+
description: "The appcircle build ID. This value is set by certain CI/CD systems.",
|
|
262
|
+
readonly: true,
|
|
263
|
+
runtime: true,
|
|
264
|
+
hidden: true,
|
|
265
|
+
category: "node"
|
|
266
|
+
}),
|
|
267
|
+
APPVEYOR: z.string().optional().meta({
|
|
268
|
+
description: "The appveyor build ID. This value is set by certain CI/CD systems.",
|
|
269
|
+
readonly: true,
|
|
270
|
+
runtime: true,
|
|
271
|
+
hidden: true,
|
|
272
|
+
category: "node"
|
|
273
|
+
}),
|
|
274
|
+
CODEBUILD: z.string().optional().meta({
|
|
275
|
+
description: "The codebuild build ID. This value is set by certain CI/CD systems.",
|
|
276
|
+
readonly: true,
|
|
277
|
+
runtime: true,
|
|
278
|
+
hidden: true,
|
|
279
|
+
category: "node"
|
|
280
|
+
}),
|
|
281
|
+
TF_BUILD: z.string().optional().meta({
|
|
282
|
+
description: "The task force build ID. This value is set by certain CI/CD systems.",
|
|
283
|
+
readonly: true,
|
|
284
|
+
runtime: true,
|
|
285
|
+
hidden: true,
|
|
286
|
+
category: "node"
|
|
287
|
+
}),
|
|
288
|
+
bamboo_planKey: z.string().optional().meta({
|
|
289
|
+
description: "The bamboo plan key. This value is set by certain CI/CD systems.",
|
|
290
|
+
readonly: true,
|
|
291
|
+
runtime: true,
|
|
292
|
+
hidden: true,
|
|
293
|
+
category: "node"
|
|
294
|
+
}),
|
|
295
|
+
BITBUCKET_COMMIT: z.string().optional().meta({
|
|
296
|
+
description: "The bitbucket commit. This value is set by certain CI/CD systems.",
|
|
297
|
+
readonly: true,
|
|
298
|
+
runtime: true,
|
|
299
|
+
hidden: true,
|
|
300
|
+
category: "node"
|
|
301
|
+
}),
|
|
302
|
+
BITRISE_IO: z.string().optional().meta({
|
|
303
|
+
description: "The bitrise build ID. This value is set by certain CI/CD systems.",
|
|
304
|
+
readonly: true,
|
|
305
|
+
runtime: true,
|
|
306
|
+
hidden: true,
|
|
307
|
+
category: "node"
|
|
308
|
+
}),
|
|
309
|
+
BUDDY_WORKSPACE_ID: z.string().optional().meta({
|
|
310
|
+
description: "The buddy workspace ID. This value is set by certain CI/CD systems.",
|
|
311
|
+
readonly: true,
|
|
312
|
+
runtime: true,
|
|
313
|
+
hidden: true,
|
|
314
|
+
category: "node"
|
|
315
|
+
}),
|
|
316
|
+
BUILDKITE: z.string().optional().meta({
|
|
317
|
+
description: "The buildkite build ID. This value is set by certain CI/CD systems.",
|
|
318
|
+
readonly: true,
|
|
319
|
+
runtime: true,
|
|
320
|
+
hidden: true,
|
|
321
|
+
category: "node"
|
|
322
|
+
}),
|
|
323
|
+
CIRCLECI: z.string().optional().meta({
|
|
324
|
+
description: "The circleci build ID. This value is set by certain CI/CD systems.",
|
|
325
|
+
readonly: true,
|
|
326
|
+
runtime: true,
|
|
327
|
+
hidden: true,
|
|
328
|
+
category: "node"
|
|
329
|
+
}),
|
|
330
|
+
CIRRUS_CI: z.string().optional().meta({
|
|
331
|
+
description: "The cirrus-ci build ID. This value is set by certain CI/CD systems.",
|
|
332
|
+
readonly: true,
|
|
333
|
+
runtime: true,
|
|
334
|
+
hidden: true,
|
|
335
|
+
category: "node"
|
|
336
|
+
}),
|
|
337
|
+
CF_BUILD_ID: z.string().optional().meta({
|
|
338
|
+
description: "The cf build ID. This value is set by certain CI/CD systems.",
|
|
339
|
+
readonly: true,
|
|
340
|
+
runtime: true,
|
|
341
|
+
hidden: true,
|
|
342
|
+
category: "node"
|
|
343
|
+
}),
|
|
344
|
+
CM_BUILD_ID: z.string().optional().meta({
|
|
345
|
+
description: "The cm build ID. This value is set by certain CI/CD systems.",
|
|
346
|
+
readonly: true,
|
|
347
|
+
runtime: true,
|
|
348
|
+
hidden: true,
|
|
349
|
+
category: "node"
|
|
350
|
+
}),
|
|
351
|
+
CI_NAME: z.string().optional().meta({
|
|
352
|
+
description: "The ci name. This value is set by certain CI/CD systems.",
|
|
353
|
+
readonly: true,
|
|
354
|
+
runtime: true,
|
|
355
|
+
hidden: true,
|
|
356
|
+
category: "node"
|
|
357
|
+
}),
|
|
358
|
+
DRONE: z.string().optional().meta({
|
|
359
|
+
description: "The drone build ID. This value is set by certain CI/CD systems.",
|
|
360
|
+
readonly: true,
|
|
361
|
+
runtime: true,
|
|
362
|
+
hidden: true,
|
|
363
|
+
category: "node"
|
|
364
|
+
}),
|
|
365
|
+
DSARI: z.string().optional().meta({
|
|
366
|
+
description: "The dsari build ID. This value is set by certain CI/CD systems.",
|
|
367
|
+
readonly: true,
|
|
368
|
+
runtime: true,
|
|
369
|
+
hidden: true,
|
|
370
|
+
category: "node"
|
|
371
|
+
}),
|
|
372
|
+
EARTHLY_CI: z.string().optional().meta({
|
|
373
|
+
description: "The earthly build ID. This value is set by certain CI/CD systems.",
|
|
374
|
+
readonly: true,
|
|
375
|
+
runtime: true,
|
|
376
|
+
hidden: true,
|
|
377
|
+
category: "node"
|
|
378
|
+
}),
|
|
379
|
+
EAS_BUILD: z.string().optional().meta({
|
|
380
|
+
description: "The eas build ID. This value is set by certain CI/CD systems.",
|
|
381
|
+
readonly: true,
|
|
382
|
+
runtime: true,
|
|
383
|
+
hidden: true,
|
|
384
|
+
category: "node"
|
|
385
|
+
}),
|
|
386
|
+
GERRIT_PROJECT: z.string().optional().meta({
|
|
387
|
+
description: "The gerrit project. This value is set by certain CI/CD systems.",
|
|
388
|
+
readonly: true,
|
|
389
|
+
runtime: true,
|
|
390
|
+
hidden: true,
|
|
391
|
+
category: "node"
|
|
392
|
+
}),
|
|
393
|
+
GITEA_ACTIONS: z.string().optional().meta({
|
|
394
|
+
description: "The gitea actions build ID. This value is set by certain CI/CD systems.",
|
|
395
|
+
readonly: true,
|
|
396
|
+
runtime: true,
|
|
397
|
+
hidden: true,
|
|
398
|
+
category: "node"
|
|
399
|
+
}),
|
|
400
|
+
GITHUB_ACTIONS: z.string().optional().meta({
|
|
401
|
+
description: "The github actions build ID. This value is set by certain CI/CD systems.",
|
|
402
|
+
readonly: true,
|
|
403
|
+
runtime: true,
|
|
404
|
+
hidden: true,
|
|
405
|
+
category: "node"
|
|
406
|
+
}),
|
|
407
|
+
GITLAB_CI: z.string().optional().meta({
|
|
408
|
+
description: "The gitlab ci build ID. This value is set by certain CI/CD systems.",
|
|
409
|
+
readonly: true,
|
|
410
|
+
runtime: true,
|
|
411
|
+
hidden: true,
|
|
412
|
+
category: "node"
|
|
413
|
+
}),
|
|
414
|
+
GOCD: z.string().optional().meta({
|
|
415
|
+
description: "The go cd build ID. This value is set by certain CI/CD systems.",
|
|
416
|
+
readonly: true,
|
|
417
|
+
runtime: true,
|
|
418
|
+
hidden: true,
|
|
419
|
+
category: "node"
|
|
420
|
+
}),
|
|
421
|
+
BUILDER_OUTPUT: z.string().optional().meta({
|
|
422
|
+
description: "The builder output build ID. This value is set by certain CI/CD systems.",
|
|
423
|
+
readonly: true,
|
|
424
|
+
runtime: true,
|
|
425
|
+
hidden: true,
|
|
426
|
+
category: "node"
|
|
427
|
+
}),
|
|
428
|
+
HARNESS_BUILD_ID: z.string().optional().meta({
|
|
429
|
+
description: "The harness build ID. This value is set by certain CI/CD systems.",
|
|
430
|
+
readonly: true,
|
|
431
|
+
runtime: true,
|
|
432
|
+
hidden: true,
|
|
433
|
+
category: "node"
|
|
434
|
+
}),
|
|
435
|
+
JENKINS_URL: z.string().optional().meta({
|
|
436
|
+
description: "The jenkins url. This value is set by certain CI/CD systems.",
|
|
437
|
+
readonly: true,
|
|
438
|
+
runtime: true,
|
|
439
|
+
hidden: true,
|
|
440
|
+
category: "node"
|
|
441
|
+
}),
|
|
442
|
+
LAYERCI: z.string().optional().meta({
|
|
443
|
+
description: "The layerci build ID. This value is set by certain CI/CD systems.",
|
|
444
|
+
readonly: true,
|
|
445
|
+
runtime: true,
|
|
446
|
+
hidden: true,
|
|
447
|
+
category: "node"
|
|
448
|
+
}),
|
|
449
|
+
MAGNUM: z.string().optional().meta({
|
|
450
|
+
description: "The magnum build ID. This value is set by certain CI/CD systems.",
|
|
451
|
+
readonly: true,
|
|
452
|
+
runtime: true,
|
|
453
|
+
hidden: true,
|
|
454
|
+
category: "node"
|
|
455
|
+
}),
|
|
456
|
+
NETLIFY: z.string().optional().meta({
|
|
457
|
+
description: "The netlify build ID. This value is set by certain CI/CD systems.",
|
|
458
|
+
readonly: true,
|
|
459
|
+
runtime: true,
|
|
460
|
+
hidden: true,
|
|
461
|
+
category: "node"
|
|
462
|
+
}),
|
|
463
|
+
NEVERCODE: z.string().optional().meta({
|
|
464
|
+
description: "The nevercode build ID. This value is set by certain CI/CD systems.",
|
|
465
|
+
readonly: true,
|
|
466
|
+
runtime: true,
|
|
467
|
+
hidden: true,
|
|
468
|
+
category: "node"
|
|
469
|
+
}),
|
|
470
|
+
PROW_JOB_ID: z.string().optional().meta({
|
|
471
|
+
description: "The prow job ID. This value is set by certain CI/CD systems.",
|
|
472
|
+
readonly: true,
|
|
473
|
+
runtime: true,
|
|
474
|
+
hidden: true,
|
|
475
|
+
category: "node"
|
|
476
|
+
}),
|
|
477
|
+
RELEASE_BUILD_ID: z.string().optional().meta({
|
|
478
|
+
description: "The release build ID. This value is set by certain CI/CD systems.",
|
|
479
|
+
readonly: true,
|
|
480
|
+
runtime: true,
|
|
481
|
+
hidden: true,
|
|
482
|
+
category: "node"
|
|
483
|
+
}),
|
|
484
|
+
RENDER: z.string().optional().meta({
|
|
485
|
+
description: "The render build ID. This value is set by certain CI/CD systems.",
|
|
486
|
+
readonly: true,
|
|
487
|
+
runtime: true,
|
|
488
|
+
hidden: true,
|
|
489
|
+
category: "node"
|
|
490
|
+
}),
|
|
491
|
+
SAILCI: z.string().optional().meta({
|
|
492
|
+
description: "The sailci build ID. This value is set by certain CI/CD systems.",
|
|
493
|
+
readonly: true,
|
|
494
|
+
runtime: true,
|
|
495
|
+
hidden: true,
|
|
496
|
+
category: "node"
|
|
497
|
+
}),
|
|
498
|
+
HUDSON: z.string().optional().meta({
|
|
499
|
+
description: "The hudson build ID. This value is set by certain CI/CD systems.",
|
|
500
|
+
readonly: true,
|
|
501
|
+
runtime: true,
|
|
502
|
+
hidden: true,
|
|
503
|
+
category: "node"
|
|
504
|
+
}),
|
|
505
|
+
SCREWDRIVER: z.string().optional().meta({
|
|
506
|
+
description: "The screwdriver build ID. This value is set by certain CI/CD systems.",
|
|
507
|
+
readonly: true,
|
|
508
|
+
runtime: true,
|
|
509
|
+
hidden: true,
|
|
510
|
+
category: "node"
|
|
511
|
+
}),
|
|
512
|
+
SEMAPHORE: z.string().optional().meta({
|
|
513
|
+
description: "The semaphore build ID. This value is set by certain CI/CD systems.",
|
|
514
|
+
readonly: true,
|
|
515
|
+
runtime: true,
|
|
516
|
+
hidden: true,
|
|
517
|
+
category: "node"
|
|
518
|
+
}),
|
|
519
|
+
SOURCEHUT: z.string().optional().meta({
|
|
520
|
+
description: "The sourcehut build ID. This value is set by certain CI/CD systems.",
|
|
521
|
+
readonly: true,
|
|
522
|
+
runtime: true,
|
|
523
|
+
hidden: true,
|
|
524
|
+
category: "node"
|
|
525
|
+
}),
|
|
526
|
+
SPACESHIP_CI: z.string().optional().meta({
|
|
527
|
+
description: "The spaceship build ID. This value is set by certain CI/CD systems.",
|
|
528
|
+
readonly: true,
|
|
529
|
+
runtime: true,
|
|
530
|
+
hidden: true,
|
|
531
|
+
category: "node"
|
|
532
|
+
}),
|
|
533
|
+
STRIDER: z.string().optional().meta({
|
|
534
|
+
description: "The strider build ID. This value is set by certain CI/CD systems.",
|
|
535
|
+
readonly: true,
|
|
536
|
+
runtime: true,
|
|
537
|
+
hidden: true,
|
|
538
|
+
category: "node"
|
|
539
|
+
}),
|
|
540
|
+
TASK_ID: z.string().optional().meta({
|
|
541
|
+
description: "The task ID. This value is set by certain CI/CD systems.",
|
|
542
|
+
readonly: true,
|
|
543
|
+
runtime: true,
|
|
544
|
+
hidden: true,
|
|
545
|
+
category: "node"
|
|
546
|
+
}),
|
|
547
|
+
TEAMCITY_VERSION: z.string().optional().meta({
|
|
548
|
+
description: "The teamcity version. This value is set by certain CI/CD systems.",
|
|
549
|
+
readonly: true,
|
|
550
|
+
runtime: true,
|
|
551
|
+
hidden: true,
|
|
552
|
+
category: "node"
|
|
553
|
+
}),
|
|
554
|
+
TRAVIS: z.string().optional().meta({
|
|
555
|
+
description: "The travis build ID. This value is set by certain CI/CD systems.",
|
|
556
|
+
readonly: true,
|
|
557
|
+
runtime: true,
|
|
558
|
+
hidden: true,
|
|
559
|
+
category: "node"
|
|
560
|
+
}),
|
|
561
|
+
VELA: z.string().optional().meta({
|
|
562
|
+
description: "The vela build ID. This value is set by certain CI/CD systems.",
|
|
563
|
+
readonly: true,
|
|
564
|
+
runtime: true,
|
|
565
|
+
hidden: true,
|
|
566
|
+
category: "node"
|
|
567
|
+
}),
|
|
568
|
+
NOW_BUILDER: z.string().optional().meta({
|
|
569
|
+
description: "The now builder build ID. This value is set by certain CI/CD systems.",
|
|
570
|
+
readonly: true,
|
|
571
|
+
runtime: true,
|
|
572
|
+
hidden: true,
|
|
573
|
+
category: "node"
|
|
574
|
+
}),
|
|
575
|
+
APPCENTER_BUILD_ID: z.string().optional().meta({
|
|
576
|
+
description: "The appcenter build ID. This value is set by certain CI/CD systems.",
|
|
577
|
+
readonly: true,
|
|
578
|
+
runtime: true,
|
|
579
|
+
hidden: true,
|
|
580
|
+
category: "node"
|
|
581
|
+
}),
|
|
582
|
+
CI_XCODE_PROJECT: z.string().optional().meta({
|
|
583
|
+
description: "The xcode project build ID. This value is set by certain CI/CD systems.",
|
|
584
|
+
readonly: true,
|
|
585
|
+
runtime: true,
|
|
586
|
+
hidden: true,
|
|
587
|
+
category: "node"
|
|
588
|
+
}),
|
|
589
|
+
XCS: z.string().optional().meta({
|
|
590
|
+
description: "The xcode server build ID. This value is set by certain CI/CD systems.",
|
|
591
|
+
readonly: true,
|
|
592
|
+
runtime: true,
|
|
593
|
+
hidden: true,
|
|
594
|
+
category: "node"
|
|
595
|
+
}),
|
|
596
|
+
DATA_DIR: z.string().optional().meta({
|
|
597
|
+
title: "Data Directory",
|
|
598
|
+
description: "The application's runtime data directory. This variable is used to override the base path of the system's local application data directory. This variable is used to set the `$storm.paths.data` property.",
|
|
599
|
+
runtime: true,
|
|
600
|
+
category: "node"
|
|
601
|
+
}),
|
|
602
|
+
CONFIG_DIR: z.string().optional().meta({
|
|
603
|
+
title: "Configuration Directory",
|
|
604
|
+
description: "The application's configuration data directory. This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the `$storm.paths.config` property.",
|
|
605
|
+
runtime: true,
|
|
606
|
+
category: "node"
|
|
607
|
+
}),
|
|
608
|
+
CACHE_DIR: z.string().optional().meta({
|
|
609
|
+
title: "Cache Directory",
|
|
610
|
+
description: "The application's cached data directory. This variable is used to override the base path of the system's local cache data directory. This variable is used to set the `$storm.paths.cache` property.",
|
|
611
|
+
runtime: true,
|
|
612
|
+
category: "node"
|
|
613
|
+
}),
|
|
614
|
+
LOG_DIR: z.string().optional().meta({
|
|
615
|
+
title: "Log Directory",
|
|
616
|
+
description: "The application's logging directory. This variable is used to override the base path of the system's local application log directory. This variable is used to set the `$storm.paths.log` property.",
|
|
617
|
+
runtime: true,
|
|
618
|
+
category: "node"
|
|
619
|
+
}),
|
|
620
|
+
TEMP_DIR: z.string().optional().meta({
|
|
621
|
+
title: "Temporary Directory",
|
|
622
|
+
description: "The application's temporary data directory. This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the `$storm.paths.temp` property.",
|
|
623
|
+
runtime: true,
|
|
624
|
+
category: "node"
|
|
625
|
+
}),
|
|
626
|
+
LOCALAPPDATA: z.string().optional().meta({
|
|
627
|
+
description: "A variable that specifies the current user's local application data directory on Windows. This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the `$storm.paths.data`, `$storm.paths.cache`, and `$storm.paths.log` properties.",
|
|
628
|
+
see: ["https://www.advancedinstaller.com/appdata-localappdata-programdata.html"],
|
|
629
|
+
readonly: true,
|
|
630
|
+
runtime: true,
|
|
631
|
+
hidden: true,
|
|
632
|
+
category: "node"
|
|
633
|
+
}),
|
|
634
|
+
APPDATA: z.string().optional().meta({
|
|
635
|
+
description: "A variable that specifies the application data directory on Windows. This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the `$storm.paths.config` property.",
|
|
636
|
+
see: ["https://www.advancedinstaller.com/appdata-localappdata-programdata.html"],
|
|
637
|
+
readonly: true,
|
|
638
|
+
runtime: true,
|
|
639
|
+
hidden: true,
|
|
640
|
+
category: "node"
|
|
641
|
+
}),
|
|
642
|
+
XDG_DATA_HOME: z.string().optional().meta({
|
|
643
|
+
description: "A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification. This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the `$storm.paths.data` property.",
|
|
644
|
+
see: ["https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c"],
|
|
645
|
+
readonly: true,
|
|
646
|
+
runtime: true,
|
|
647
|
+
hidden: true,
|
|
648
|
+
category: "node"
|
|
649
|
+
}),
|
|
650
|
+
XDG_CONFIG_HOME: z.string().optional().meta({
|
|
651
|
+
description: "A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification. This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the `$storm.paths.config` property.",
|
|
652
|
+
see: ["https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c"],
|
|
653
|
+
readonly: true,
|
|
654
|
+
runtime: true,
|
|
655
|
+
hidden: true,
|
|
656
|
+
category: "node"
|
|
657
|
+
}),
|
|
658
|
+
XDG_CACHE_HOME: z.string().optional().meta({
|
|
659
|
+
description: "A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification. This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the `$storm.paths.cache` property.",
|
|
660
|
+
see: ["https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c"],
|
|
661
|
+
readonly: true,
|
|
662
|
+
runtime: true,
|
|
663
|
+
hidden: true,
|
|
664
|
+
category: "node"
|
|
665
|
+
}),
|
|
666
|
+
XDG_STATE_HOME: z.string().optional().meta({
|
|
667
|
+
description: "A variable that specifies the state directory on Linux systems using the XDG base directory specification. This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the `$storm.paths.state` property.",
|
|
668
|
+
see: ["https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c"],
|
|
669
|
+
readonly: true,
|
|
670
|
+
runtime: true,
|
|
671
|
+
hidden: true,
|
|
672
|
+
category: "node"
|
|
673
|
+
}),
|
|
674
|
+
XDG_RUNTIME_DIR: z.string().optional().meta({
|
|
675
|
+
description: "A variable that specifies the runtime directory on Linux systems using the XDG base directory specification. This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the `$storm.paths.temp` property.",
|
|
676
|
+
see: ["https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c"],
|
|
677
|
+
readonly: true,
|
|
678
|
+
runtime: true,
|
|
679
|
+
hidden: true,
|
|
680
|
+
category: "node"
|
|
681
|
+
}),
|
|
682
|
+
DEVENV_RUNTIME: z.string().optional().meta({
|
|
683
|
+
description: "A variable that specifies the Devenv runtime directory. This variable is used to specify a path to application data that is specific to the current Nix environment. This variable can be used to set the `$storm.paths.temp` property.",
|
|
684
|
+
see: ["https://devenv.sh/files-and-variables/#devenv_dotfile", "https://nixos.org/"],
|
|
685
|
+
readonly: true,
|
|
686
|
+
runtime: true,
|
|
687
|
+
hidden: true,
|
|
688
|
+
category: "node"
|
|
689
|
+
})
|
|
690
|
+
}).meta({ description: "The base environment configuration used by Powerlines applications. This schema defines the environment variables, configuration options, and runtime settings used by applications." });
|
|
691
|
+
/**
|
|
692
|
+
* Inferred environment configuration type from {@link envSchema}.
|
|
693
|
+
*/
|
|
694
|
+
/**
|
|
695
|
+
* Input type for {@link envSchema} before defaults applied.
|
|
696
|
+
*/
|
|
697
|
+
/**
|
|
698
|
+
* Zod schema for the base secrets configuration used by Powerlines applications.
|
|
699
|
+
*
|
|
700
|
+
* @remarks
|
|
701
|
+
* Secrets have no defaults and must stay confidential (excluded from the client).
|
|
702
|
+
*/
|
|
703
|
+
const secretsSchema = z.object({ ENCRYPTION_KEY: z.string().meta({
|
|
704
|
+
title: "Encryption Key",
|
|
705
|
+
description: "The secret key used for encryption and decryption. This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories."
|
|
706
|
+
}) }).meta({ description: "The base secrets configuration used by Powerlines applications." });
|
|
707
|
+
/**
|
|
708
|
+
* Inferred secrets configuration type from {@link secretsSchema}.
|
|
709
|
+
*/
|
|
710
|
+
/**
|
|
711
|
+
* Input type for {@link secretsSchema}.
|
|
712
|
+
*/
|
|
713
|
+
//#endregion
|
|
714
|
+
export { BooleanOrNumberSchema, LogLevelSchema, ModeSchema, PlatformSchema, RuntimeSchema, envSchema, secretsSchema };
|
|
715
|
+
//# sourceMappingURL=env.mjs.map
|