@powerlines/plugin-env 0.16.422 → 0.16.423

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":";;;cAmCa,mDAAc,kCAAA,iBAAd"}
1
+ {"version":3,"file":"plugin.d.cts","names":["_$__0.EnvPluginResolvedConfig"],"sources":["../../src/babel/plugin.ts"],"mappings":";;;cAmCa,mDAAc,kCAAA,iBAAdA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":""}
1
+ {"version":3,"file":"plugin.d.mts","names":["_$__0.EnvPluginResolvedConfig"],"sources":["../../src/babel/plugin.ts"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"docs.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"docs.mjs","names":["_$createComponent","_$mergeProps","_$memo"],"sources":[],"mappings":""}
@@ -221,7 +221,7 @@ function EnvBuiltin(props) {
221
221
  result.name = "Env";
222
222
  Object.entries(defaultValue.value ?? {}).forEach(([key, value]) => {
223
223
  const unprefixedKey = key.replace(new RegExp(`^(${context.config.env.prefix.join("|")})_`), "");
224
- if (unprefixedKey in (result.properties ?? {}) && (0, _stryke_type_checks_is_set_object.isSetObject)(result.properties?.[unprefixedKey])) result.properties[unprefixedKey] = {
224
+ if (unprefixedKey in (result.properties ?? {}) && (0, _stryke_type_checks_is_set_object.isSetObject)(result.properties?.[unprefixedKey]) && !result.properties[unprefixedKey].runtime) result.properties[unprefixedKey] = {
225
225
  ...result.properties?.[unprefixedKey],
226
226
  default: value
227
227
  };
@@ -220,7 +220,7 @@ function EnvBuiltin(props) {
220
220
  result.name = "Env";
221
221
  Object.entries(defaultValue.value ?? {}).forEach(([key, value]) => {
222
222
  const unprefixedKey = key.replace(new RegExp(`^(${context.config.env.prefix.join("|")})_`), "");
223
- if (unprefixedKey in (result.properties ?? {}) && isSetObject(result.properties?.[unprefixedKey])) result.properties[unprefixedKey] = {
223
+ if (unprefixedKey in (result.properties ?? {}) && isSetObject(result.properties?.[unprefixedKey]) && !result.properties[unprefixedKey].runtime) result.properties[unprefixedKey] = {
224
224
  ...result.properties?.[unprefixedKey],
225
225
  default: value
226
226
  };
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"env-builtin.mjs","names":["_$createComponent","InterfaceDeclaration","BaseInterfaceDeclaration","_$mergeProps","_$createIntrinsic"],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"load.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"load.mjs","names":["loadEnvBase","loadEnvFileBase"],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"schema.mjs","names":["_exhaustive"],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"index.mjs","names":["babel","_$createComponent","automd"],"sources":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.422",
3
+ "version": "0.16.423",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
@@ -262,37 +262,37 @@
262
262
  "@alloy-js/json": "^0.24.0",
263
263
  "@alloy-js/markdown": "^0.24.0",
264
264
  "@alloy-js/typescript": "^0.24.0",
265
- "@babel/core": "^8.0.5",
266
- "@babel/types": "^8.0.5",
265
+ "@babel/core": "^8.0.6",
266
+ "@babel/types": "^8.0.6",
267
267
  "@power-plant/alloy-js": "^0.0.90",
268
268
  "@power-plant/schema": "^0.0.91",
269
- "@powerlines/core": "^0.48.132",
270
- "@powerlines/plugin-alloy": "^0.26.311",
271
- "@powerlines/plugin-automd": "^0.1.675",
272
- "@powerlines/plugin-babel": "^0.13.210",
273
- "@powerlines/plugin-power-plant": "^0.1.70",
274
- "@storm-software/config-tools": "^1.190.140",
275
- "@stryke/capnp": "^0.12.143",
276
- "@stryke/convert": "^0.7.45",
277
- "@stryke/env": "^0.20.133",
278
- "@stryke/fs": "^0.33.116",
279
- "@stryke/helpers": "^0.10.54",
280
- "@stryke/json": "^0.15.38",
281
- "@stryke/path": "^0.29.41",
282
- "@stryke/string-format": "^0.17.56",
283
- "@stryke/type-checks": "^0.6.47",
284
- "@stryke/types": "^0.12.42",
269
+ "@powerlines/core": "^0.48.133",
270
+ "@powerlines/plugin-alloy": "^0.26.312",
271
+ "@powerlines/plugin-automd": "^0.1.676",
272
+ "@powerlines/plugin-babel": "^0.13.211",
273
+ "@powerlines/plugin-power-plant": "^0.1.71",
274
+ "@storm-software/config-tools": "^1.190.147",
275
+ "@stryke/capnp": "^0.12.145",
276
+ "@stryke/convert": "^0.7.47",
277
+ "@stryke/env": "^0.20.135",
278
+ "@stryke/fs": "^0.33.118",
279
+ "@stryke/helpers": "^0.10.56",
280
+ "@stryke/json": "^0.15.40",
281
+ "@stryke/path": "^0.29.43",
282
+ "@stryke/string-format": "^0.17.58",
283
+ "@stryke/type-checks": "^0.6.49",
284
+ "@stryke/types": "^0.12.44",
285
285
  "automd": "^0.4.3",
286
286
  "c12": "^3.3.4",
287
287
  "defu": "^6.1.7",
288
- "powerlines": "^0.47.213",
288
+ "powerlines": "^0.47.214",
289
289
  "zod": "^4.6.5"
290
290
  },
291
291
  "devDependencies": {
292
- "@powerlines/plugin-plugin": "^0.12.626",
293
- "@types/node": "^25.9.7",
294
- "vite": "^8.3.0"
292
+ "@powerlines/plugin-plugin": "^0.12.627",
293
+ "@types/node": "^25.9.9",
294
+ "vite": "^8.3.2"
295
295
  },
296
296
  "publishConfig": { "access": "public" },
297
- "gitHead": "6303d77b4c8c2dadb7f0128d74e30c2cbb6ffe75"
297
+ "gitHead": "11405039d1373508718de6817cecb7b8f8e46104"
298
298
  }
@@ -1,230 +0,0 @@
1
- import * as z from "zod";
2
- //#region src/schemas/env.d.ts
3
- declare module "zod" {
4
- interface GlobalMeta {
5
- /**
6
- * Alternate environment variable names that map to this field.
7
- */
8
- alias?: string[];
9
- /**
10
- * Platform category this parameter targets (`neutral` or `node`).
11
- */
12
- category?: "browser" | "neutral" | "node";
13
- /**
14
- * Documented default value for the environment variable.
15
- */
16
- defaultValue?: string | number | boolean | null;
17
- /**
18
- * Whether the value is treated as read-only / build-time.
19
- */
20
- readonly?: boolean;
21
- /**
22
- * Whether the value is resolved at runtime rather than injected at build time.
23
- */
24
- runtime?: boolean;
25
- /**
26
- * Whether the field should be hidden from generated documentation.
27
- */
28
- hidden?: boolean;
29
- /**
30
- * Related reference URLs.
31
- */
32
- see?: string[];
33
- }
34
- }
35
- /**
36
- * Runtime environment the application may execute in.
37
- */
38
- declare const RuntimeSchema: z.ZodEnum<{
39
- nodejs: "nodejs";
40
- deno: "deno";
41
- workerd: "workerd";
42
- browser: "browser";
43
- }>;
44
- type Runtime = z.infer<typeof RuntimeSchema>;
45
- /**
46
- * Platform the application was built for.
47
- */
48
- declare const PlatformSchema: z.ZodEnum<{
49
- node: "node";
50
- browser: "browser";
51
- neutral: "neutral";
52
- }>;
53
- type Platform = z.infer<typeof PlatformSchema>;
54
- /**
55
- * Application run mode.
56
- */
57
- declare const ModeSchema: z.ZodEnum<{
58
- test: "test";
59
- production: "production";
60
- development: "development";
61
- }>;
62
- type Mode = z.infer<typeof ModeSchema>;
63
- /**
64
- * Lowest log level the logger will accept.
65
- */
66
- declare const LogLevelSchema: z.ZodEnum<{
67
- debug: "debug";
68
- error: "error";
69
- warn: "warn";
70
- info: "info";
71
- }>;
72
- type LogLevel = z.infer<typeof LogLevelSchema>;
73
- /**
74
- * Value that may be a boolean flag or a numeric color/hyperlink force level.
75
- */
76
- declare const BooleanOrNumberSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
77
- type BooleanOrNumber = z.infer<typeof BooleanOrNumberSchema>;
78
- /**
79
- * Zod schema for the base environment configuration used by Powerlines applications.
80
- *
81
- * @remarks
82
- * Defaults match documented `@defaultValue` metadata on each field.
83
- */
84
- declare const envSchema: z.ZodObject<{
85
- APP_NAME: z.ZodString;
86
- APP_VERSION: z.ZodDefault<z.ZodString>;
87
- BUILD_ID: z.ZodString;
88
- BUILD_TIMESTAMP: z.ZodString;
89
- BUILD_CHECKSUM: z.ZodString;
90
- RELEASE_ID: z.ZodString;
91
- RELEASE_TAG: z.ZodString;
92
- ORGANIZATION: z.ZodString;
93
- RUNTIME: z.ZodOptional<z.ZodEnum<{
94
- nodejs: "nodejs";
95
- deno: "deno";
96
- workerd: "workerd";
97
- browser: "browser";
98
- }>>;
99
- PLATFORM: z.ZodDefault<z.ZodEnum<{
100
- node: "node";
101
- browser: "browser";
102
- neutral: "neutral";
103
- }>>;
104
- MODE: z.ZodDefault<z.ZodEnum<{
105
- test: "test";
106
- production: "production";
107
- development: "development";
108
- }>>;
109
- ENVIRONMENT: z.ZodDefault<z.ZodString>;
110
- DEBUG: z.ZodBoolean;
111
- TEST: z.ZodBoolean;
112
- MINIMAL: z.ZodBoolean;
113
- NO_COLOR: z.ZodBoolean;
114
- FORCE_COLOR: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
115
- FORCE_HYPERLINK: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
116
- AGENT_NAME: z.ZodOptional<z.ZodString>;
117
- COLORTERM: z.ZodOptional<z.ZodString>;
118
- TERM: z.ZodOptional<z.ZodString>;
119
- TERM_PROGRAM: z.ZodOptional<z.ZodString>;
120
- TERM_PROGRAM_VERSION: z.ZodOptional<z.ZodString>;
121
- TERMINAL_EMULATOR: z.ZodOptional<z.ZodString>;
122
- WT_SESSION: z.ZodOptional<z.ZodString>;
123
- TERMINUS_SUBLIME: z.ZodOptional<z.ZodBoolean>;
124
- ConEmuTask: z.ZodOptional<z.ZodString>;
125
- CURSOR_TRACE_ID: z.ZodOptional<z.ZodString>;
126
- VTE_VERSION: z.ZodOptional<z.ZodString>;
127
- STACKTRACE: z.ZodBoolean;
128
- INCLUDE_ERROR_DATA: z.ZodBoolean;
129
- ERROR_URL: z.ZodOptional<z.ZodString>;
130
- DEFAULT_TIMEZONE: z.ZodDefault<z.ZodString>;
131
- DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
132
- LOG_LEVEL: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
133
- debug: "debug";
134
- error: "error";
135
- warn: "warn";
136
- info: "info";
137
- }>>>;
138
- CI: z.ZodBoolean;
139
- RUN_ID: z.ZodOptional<z.ZodString>;
140
- AGOLA_GIT_REF: z.ZodOptional<z.ZodString>;
141
- AC_APPCIRCLE: z.ZodOptional<z.ZodString>;
142
- APPVEYOR: z.ZodOptional<z.ZodString>;
143
- CODEBUILD: z.ZodOptional<z.ZodString>;
144
- TF_BUILD: z.ZodOptional<z.ZodString>;
145
- bamboo_planKey: z.ZodOptional<z.ZodString>;
146
- BITBUCKET_COMMIT: z.ZodOptional<z.ZodString>;
147
- BITRISE_IO: z.ZodOptional<z.ZodString>;
148
- BUDDY_WORKSPACE_ID: z.ZodOptional<z.ZodString>;
149
- BUILDKITE: z.ZodOptional<z.ZodString>;
150
- CIRCLECI: z.ZodOptional<z.ZodString>;
151
- CIRRUS_CI: z.ZodOptional<z.ZodString>;
152
- CF_BUILD_ID: z.ZodOptional<z.ZodString>;
153
- CM_BUILD_ID: z.ZodOptional<z.ZodString>;
154
- CI_NAME: z.ZodOptional<z.ZodString>;
155
- DRONE: z.ZodOptional<z.ZodString>;
156
- DSARI: z.ZodOptional<z.ZodString>;
157
- EARTHLY_CI: z.ZodOptional<z.ZodString>;
158
- EAS_BUILD: z.ZodOptional<z.ZodString>;
159
- GERRIT_PROJECT: z.ZodOptional<z.ZodString>;
160
- GITEA_ACTIONS: z.ZodOptional<z.ZodString>;
161
- GITHUB_ACTIONS: z.ZodOptional<z.ZodString>;
162
- GITLAB_CI: z.ZodOptional<z.ZodString>;
163
- GOCD: z.ZodOptional<z.ZodString>;
164
- BUILDER_OUTPUT: z.ZodOptional<z.ZodString>;
165
- HARNESS_BUILD_ID: z.ZodOptional<z.ZodString>;
166
- JENKINS_URL: z.ZodOptional<z.ZodString>;
167
- LAYERCI: z.ZodOptional<z.ZodString>;
168
- MAGNUM: z.ZodOptional<z.ZodString>;
169
- NETLIFY: z.ZodOptional<z.ZodString>;
170
- NEVERCODE: z.ZodOptional<z.ZodString>;
171
- PROW_JOB_ID: z.ZodOptional<z.ZodString>;
172
- RELEASE_BUILD_ID: z.ZodOptional<z.ZodString>;
173
- RENDER: z.ZodOptional<z.ZodString>;
174
- SAILCI: z.ZodOptional<z.ZodString>;
175
- HUDSON: z.ZodOptional<z.ZodString>;
176
- SCREWDRIVER: z.ZodOptional<z.ZodString>;
177
- SEMAPHORE: z.ZodOptional<z.ZodString>;
178
- SOURCEHUT: z.ZodOptional<z.ZodString>;
179
- SPACESHIP_CI: z.ZodOptional<z.ZodString>;
180
- STRIDER: z.ZodOptional<z.ZodString>;
181
- TASK_ID: z.ZodOptional<z.ZodString>;
182
- TEAMCITY_VERSION: z.ZodOptional<z.ZodString>;
183
- TRAVIS: z.ZodOptional<z.ZodString>;
184
- VELA: z.ZodOptional<z.ZodString>;
185
- NOW_BUILDER: z.ZodOptional<z.ZodString>;
186
- APPCENTER_BUILD_ID: z.ZodOptional<z.ZodString>;
187
- CI_XCODE_PROJECT: z.ZodOptional<z.ZodString>;
188
- XCS: z.ZodOptional<z.ZodString>;
189
- DATA_DIR: z.ZodOptional<z.ZodString>;
190
- CONFIG_DIR: z.ZodOptional<z.ZodString>;
191
- CACHE_DIR: z.ZodOptional<z.ZodString>;
192
- LOG_DIR: z.ZodOptional<z.ZodString>;
193
- TEMP_DIR: z.ZodOptional<z.ZodString>;
194
- LOCALAPPDATA: z.ZodOptional<z.ZodString>;
195
- APPDATA: z.ZodOptional<z.ZodString>;
196
- XDG_DATA_HOME: z.ZodOptional<z.ZodString>;
197
- XDG_CONFIG_HOME: z.ZodOptional<z.ZodString>;
198
- XDG_CACHE_HOME: z.ZodOptional<z.ZodString>;
199
- XDG_STATE_HOME: z.ZodOptional<z.ZodString>;
200
- XDG_RUNTIME_DIR: z.ZodOptional<z.ZodString>;
201
- DEVENV_RUNTIME: z.ZodOptional<z.ZodString>;
202
- }, z.core.$strip>;
203
- /**
204
- * Inferred environment configuration type from {@link envSchema}.
205
- */
206
- type Env = z.infer<typeof envSchema>;
207
- /**
208
- * Input type for {@link envSchema} before defaults applied.
209
- */
210
- type EnvInput = z.input<typeof envSchema>;
211
- /**
212
- * Zod schema for the base secrets configuration used by Powerlines applications.
213
- *
214
- * @remarks
215
- * Secrets have no defaults and must stay confidential (excluded from the client).
216
- */
217
- declare const secretsSchema: z.ZodObject<{
218
- ENCRYPTION_KEY: z.ZodString;
219
- }, z.core.$strip>;
220
- /**
221
- * Inferred secrets configuration type from {@link secretsSchema}.
222
- */
223
- type Secrets = z.infer<typeof secretsSchema>;
224
- /**
225
- * Input type for {@link secretsSchema}.
226
- */
227
- type SecretsInput = z.input<typeof secretsSchema>;
228
- //#endregion
229
- export { LogLevel as a, ModeSchema as c, Runtime as d, RuntimeSchema as f, secretsSchema as g, envSchema as h, EnvInput as i, Platform as l, SecretsInput as m, BooleanOrNumberSchema as n, LogLevelSchema as o, Secrets as p, Env as r, Mode as s, BooleanOrNumber as t, PlatformSchema as u };
230
- //# sourceMappingURL=env-h9Z7px6n.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-h9Z7px6n.d.cts","names":[],"sources":["../src/schemas/env.ts"],"mappings":";;;YAqBY;;;;IAIR;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;;;cAOS,eAAa,EAAA;;;;;;KACd,UAAU,EAAE,aAAa;;;;cAKxB,gBAAc,EAAA;;;;;KACf,WAAW,EAAE,aAAa;;;;cAKzB,YAAU,EAAA;;;;;KACX,OAAO,EAAE,aAAa;;;;cAKrB,gBAAc,EAAA;;;;;;KACf,WAAW,EAAE,aAAa;;;;cAKzB,uBAAqB,EAAA,mBAAA,EAAA,YAAA,EAAA;KACtB,kBAAkB,EAAE,aAAa;;;;;;;cAQhC,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiwBlB,EAAA,KAAA;;;;KAKQ,MAAM,EAAE,aAAa;;;;KAKrB,WAAW,EAAE,aAAa;;;;;;;cAQzB,eAAa,EAAA;;GAWtB,EAAA,KAAA;;;;KAKQ,UAAU,EAAE,aAAa;;;;KAKzB,eAAe,EAAE,aAAa"}
@@ -1,230 +0,0 @@
1
- import * as z from "zod";
2
- //#region src/schemas/env.d.ts
3
- declare module "zod" {
4
- interface GlobalMeta {
5
- /**
6
- * Alternate environment variable names that map to this field.
7
- */
8
- alias?: string[];
9
- /**
10
- * Platform category this parameter targets (`neutral` or `node`).
11
- */
12
- category?: "browser" | "neutral" | "node";
13
- /**
14
- * Documented default value for the environment variable.
15
- */
16
- defaultValue?: string | number | boolean | null;
17
- /**
18
- * Whether the value is treated as read-only / build-time.
19
- */
20
- readonly?: boolean;
21
- /**
22
- * Whether the value is resolved at runtime rather than injected at build time.
23
- */
24
- runtime?: boolean;
25
- /**
26
- * Whether the field should be hidden from generated documentation.
27
- */
28
- hidden?: boolean;
29
- /**
30
- * Related reference URLs.
31
- */
32
- see?: string[];
33
- }
34
- }
35
- /**
36
- * Runtime environment the application may execute in.
37
- */
38
- declare const RuntimeSchema: z.ZodEnum<{
39
- nodejs: "nodejs";
40
- deno: "deno";
41
- workerd: "workerd";
42
- browser: "browser";
43
- }>;
44
- type Runtime = z.infer<typeof RuntimeSchema>;
45
- /**
46
- * Platform the application was built for.
47
- */
48
- declare const PlatformSchema: z.ZodEnum<{
49
- node: "node";
50
- browser: "browser";
51
- neutral: "neutral";
52
- }>;
53
- type Platform = z.infer<typeof PlatformSchema>;
54
- /**
55
- * Application run mode.
56
- */
57
- declare const ModeSchema: z.ZodEnum<{
58
- test: "test";
59
- production: "production";
60
- development: "development";
61
- }>;
62
- type Mode = z.infer<typeof ModeSchema>;
63
- /**
64
- * Lowest log level the logger will accept.
65
- */
66
- declare const LogLevelSchema: z.ZodEnum<{
67
- debug: "debug";
68
- error: "error";
69
- warn: "warn";
70
- info: "info";
71
- }>;
72
- type LogLevel = z.infer<typeof LogLevelSchema>;
73
- /**
74
- * Value that may be a boolean flag or a numeric color/hyperlink force level.
75
- */
76
- declare const BooleanOrNumberSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
77
- type BooleanOrNumber = z.infer<typeof BooleanOrNumberSchema>;
78
- /**
79
- * Zod schema for the base environment configuration used by Powerlines applications.
80
- *
81
- * @remarks
82
- * Defaults match documented `@defaultValue` metadata on each field.
83
- */
84
- declare const envSchema: z.ZodObject<{
85
- APP_NAME: z.ZodString;
86
- APP_VERSION: z.ZodDefault<z.ZodString>;
87
- BUILD_ID: z.ZodString;
88
- BUILD_TIMESTAMP: z.ZodString;
89
- BUILD_CHECKSUM: z.ZodString;
90
- RELEASE_ID: z.ZodString;
91
- RELEASE_TAG: z.ZodString;
92
- ORGANIZATION: z.ZodString;
93
- RUNTIME: z.ZodOptional<z.ZodEnum<{
94
- nodejs: "nodejs";
95
- deno: "deno";
96
- workerd: "workerd";
97
- browser: "browser";
98
- }>>;
99
- PLATFORM: z.ZodDefault<z.ZodEnum<{
100
- node: "node";
101
- browser: "browser";
102
- neutral: "neutral";
103
- }>>;
104
- MODE: z.ZodDefault<z.ZodEnum<{
105
- test: "test";
106
- production: "production";
107
- development: "development";
108
- }>>;
109
- ENVIRONMENT: z.ZodDefault<z.ZodString>;
110
- DEBUG: z.ZodBoolean;
111
- TEST: z.ZodBoolean;
112
- MINIMAL: z.ZodBoolean;
113
- NO_COLOR: z.ZodBoolean;
114
- FORCE_COLOR: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
115
- FORCE_HYPERLINK: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
116
- AGENT_NAME: z.ZodOptional<z.ZodString>;
117
- COLORTERM: z.ZodOptional<z.ZodString>;
118
- TERM: z.ZodOptional<z.ZodString>;
119
- TERM_PROGRAM: z.ZodOptional<z.ZodString>;
120
- TERM_PROGRAM_VERSION: z.ZodOptional<z.ZodString>;
121
- TERMINAL_EMULATOR: z.ZodOptional<z.ZodString>;
122
- WT_SESSION: z.ZodOptional<z.ZodString>;
123
- TERMINUS_SUBLIME: z.ZodOptional<z.ZodBoolean>;
124
- ConEmuTask: z.ZodOptional<z.ZodString>;
125
- CURSOR_TRACE_ID: z.ZodOptional<z.ZodString>;
126
- VTE_VERSION: z.ZodOptional<z.ZodString>;
127
- STACKTRACE: z.ZodBoolean;
128
- INCLUDE_ERROR_DATA: z.ZodBoolean;
129
- ERROR_URL: z.ZodOptional<z.ZodString>;
130
- DEFAULT_TIMEZONE: z.ZodDefault<z.ZodString>;
131
- DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
132
- LOG_LEVEL: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
133
- debug: "debug";
134
- error: "error";
135
- warn: "warn";
136
- info: "info";
137
- }>>>;
138
- CI: z.ZodBoolean;
139
- RUN_ID: z.ZodOptional<z.ZodString>;
140
- AGOLA_GIT_REF: z.ZodOptional<z.ZodString>;
141
- AC_APPCIRCLE: z.ZodOptional<z.ZodString>;
142
- APPVEYOR: z.ZodOptional<z.ZodString>;
143
- CODEBUILD: z.ZodOptional<z.ZodString>;
144
- TF_BUILD: z.ZodOptional<z.ZodString>;
145
- bamboo_planKey: z.ZodOptional<z.ZodString>;
146
- BITBUCKET_COMMIT: z.ZodOptional<z.ZodString>;
147
- BITRISE_IO: z.ZodOptional<z.ZodString>;
148
- BUDDY_WORKSPACE_ID: z.ZodOptional<z.ZodString>;
149
- BUILDKITE: z.ZodOptional<z.ZodString>;
150
- CIRCLECI: z.ZodOptional<z.ZodString>;
151
- CIRRUS_CI: z.ZodOptional<z.ZodString>;
152
- CF_BUILD_ID: z.ZodOptional<z.ZodString>;
153
- CM_BUILD_ID: z.ZodOptional<z.ZodString>;
154
- CI_NAME: z.ZodOptional<z.ZodString>;
155
- DRONE: z.ZodOptional<z.ZodString>;
156
- DSARI: z.ZodOptional<z.ZodString>;
157
- EARTHLY_CI: z.ZodOptional<z.ZodString>;
158
- EAS_BUILD: z.ZodOptional<z.ZodString>;
159
- GERRIT_PROJECT: z.ZodOptional<z.ZodString>;
160
- GITEA_ACTIONS: z.ZodOptional<z.ZodString>;
161
- GITHUB_ACTIONS: z.ZodOptional<z.ZodString>;
162
- GITLAB_CI: z.ZodOptional<z.ZodString>;
163
- GOCD: z.ZodOptional<z.ZodString>;
164
- BUILDER_OUTPUT: z.ZodOptional<z.ZodString>;
165
- HARNESS_BUILD_ID: z.ZodOptional<z.ZodString>;
166
- JENKINS_URL: z.ZodOptional<z.ZodString>;
167
- LAYERCI: z.ZodOptional<z.ZodString>;
168
- MAGNUM: z.ZodOptional<z.ZodString>;
169
- NETLIFY: z.ZodOptional<z.ZodString>;
170
- NEVERCODE: z.ZodOptional<z.ZodString>;
171
- PROW_JOB_ID: z.ZodOptional<z.ZodString>;
172
- RELEASE_BUILD_ID: z.ZodOptional<z.ZodString>;
173
- RENDER: z.ZodOptional<z.ZodString>;
174
- SAILCI: z.ZodOptional<z.ZodString>;
175
- HUDSON: z.ZodOptional<z.ZodString>;
176
- SCREWDRIVER: z.ZodOptional<z.ZodString>;
177
- SEMAPHORE: z.ZodOptional<z.ZodString>;
178
- SOURCEHUT: z.ZodOptional<z.ZodString>;
179
- SPACESHIP_CI: z.ZodOptional<z.ZodString>;
180
- STRIDER: z.ZodOptional<z.ZodString>;
181
- TASK_ID: z.ZodOptional<z.ZodString>;
182
- TEAMCITY_VERSION: z.ZodOptional<z.ZodString>;
183
- TRAVIS: z.ZodOptional<z.ZodString>;
184
- VELA: z.ZodOptional<z.ZodString>;
185
- NOW_BUILDER: z.ZodOptional<z.ZodString>;
186
- APPCENTER_BUILD_ID: z.ZodOptional<z.ZodString>;
187
- CI_XCODE_PROJECT: z.ZodOptional<z.ZodString>;
188
- XCS: z.ZodOptional<z.ZodString>;
189
- DATA_DIR: z.ZodOptional<z.ZodString>;
190
- CONFIG_DIR: z.ZodOptional<z.ZodString>;
191
- CACHE_DIR: z.ZodOptional<z.ZodString>;
192
- LOG_DIR: z.ZodOptional<z.ZodString>;
193
- TEMP_DIR: z.ZodOptional<z.ZodString>;
194
- LOCALAPPDATA: z.ZodOptional<z.ZodString>;
195
- APPDATA: z.ZodOptional<z.ZodString>;
196
- XDG_DATA_HOME: z.ZodOptional<z.ZodString>;
197
- XDG_CONFIG_HOME: z.ZodOptional<z.ZodString>;
198
- XDG_CACHE_HOME: z.ZodOptional<z.ZodString>;
199
- XDG_STATE_HOME: z.ZodOptional<z.ZodString>;
200
- XDG_RUNTIME_DIR: z.ZodOptional<z.ZodString>;
201
- DEVENV_RUNTIME: z.ZodOptional<z.ZodString>;
202
- }, z.core.$strip>;
203
- /**
204
- * Inferred environment configuration type from {@link envSchema}.
205
- */
206
- type Env = z.infer<typeof envSchema>;
207
- /**
208
- * Input type for {@link envSchema} before defaults applied.
209
- */
210
- type EnvInput = z.input<typeof envSchema>;
211
- /**
212
- * Zod schema for the base secrets configuration used by Powerlines applications.
213
- *
214
- * @remarks
215
- * Secrets have no defaults and must stay confidential (excluded from the client).
216
- */
217
- declare const secretsSchema: z.ZodObject<{
218
- ENCRYPTION_KEY: z.ZodString;
219
- }, z.core.$strip>;
220
- /**
221
- * Inferred secrets configuration type from {@link secretsSchema}.
222
- */
223
- type Secrets = z.infer<typeof secretsSchema>;
224
- /**
225
- * Input type for {@link secretsSchema}.
226
- */
227
- type SecretsInput = z.input<typeof secretsSchema>;
228
- //#endregion
229
- export { LogLevel as a, ModeSchema as c, Runtime as d, RuntimeSchema as f, secretsSchema as g, envSchema as h, EnvInput as i, Platform as l, SecretsInput as m, BooleanOrNumberSchema as n, LogLevelSchema as o, Secrets as p, Env as r, Mode as s, BooleanOrNumber as t, PlatformSchema as u };
230
- //# sourceMappingURL=env-h9Z7px6n.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-h9Z7px6n.d.mts","names":[],"sources":["../src/schemas/env.ts"],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { n as EnvPluginOptions, t as EnvPluginContext } from "./plugin-DaVohK06.mjs";
2
- import "./env-h9Z7px6n.mjs";
3
- import "./index-hhwceVTM.mjs";
4
- import { Plugin } from "powerlines";
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- env?: EnvPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to inject environment variables into the source code.
13
- */
14
- declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
15
- //#endregion
16
- export { plugin as t };
17
- //# sourceMappingURL=index-8YB6sr3U.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-8YB6sr3U.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { n as EnvPluginOptions, t as EnvPluginContext } from "./plugin-BkPUgX5Z.cjs";
2
- import "./env-h9Z7px6n.cjs";
3
- import "./index-BTF5i_WR.cjs";
4
- import { Plugin } from "powerlines";
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- env?: EnvPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to inject environment variables into the source code.
13
- */
14
- declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
15
- //#endregion
16
- export { plugin as t };
17
- //# sourceMappingURL=index-Bb5TA4ct.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Bb5TA4ct.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAoDY;IACR,MAAM;;;;;;cAOG,SAAU,iBAAiB,mBAAmB,kBACzD,UAAS,qBAyGJ,OAAO"}