@powerlines/plugin-env 0.16.416 → 0.16.418

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.
Files changed (42) hide show
  1. package/dist/babel/plugin.d.cts +2 -2
  2. package/dist/babel/plugin.d.mts +2 -2
  3. package/dist/env-C6HnpNy5.d.cts +230 -0
  4. package/dist/env-C6HnpNy5.d.cts.map +1 -0
  5. package/dist/env-C6HnpNy5.d.mts +230 -0
  6. package/dist/env-C6HnpNy5.d.mts.map +1 -0
  7. package/dist/helpers/load.cjs +2 -2
  8. package/dist/helpers/load.d.cts +1 -1
  9. package/dist/helpers/load.d.mts +1 -1
  10. package/dist/helpers/schema.d.cts +1 -1
  11. package/dist/helpers/schema.d.mts +1 -1
  12. package/dist/index-BTF5i_WR.d.cts +1 -0
  13. package/dist/index-CqmZxgBO.d.mts +17 -0
  14. package/dist/index-CqmZxgBO.d.mts.map +1 -0
  15. package/dist/index-N_SMJR7p.d.cts +17 -0
  16. package/dist/index-N_SMJR7p.d.cts.map +1 -0
  17. package/dist/index-hhwceVTM.d.mts +1 -0
  18. package/dist/index.cjs +5 -4
  19. package/dist/index.d.cts +4 -17
  20. package/dist/index.d.mts +4 -17
  21. package/dist/index.mjs +1 -0
  22. package/dist/plugin-BkPUgX5Z.d.cts +137 -0
  23. package/dist/plugin-BkPUgX5Z.d.cts.map +1 -0
  24. package/dist/plugin-DaVohK06.d.mts +137 -0
  25. package/dist/plugin-DaVohK06.d.mts.map +1 -0
  26. package/dist/{_virtual/_rolldown/runtime.cjs → rolldown-runtime-C24Yb2bl.cjs} +6 -1
  27. package/dist/schemas/env.cjs +2 -2
  28. package/dist/schemas/env.d.cts +2 -230
  29. package/dist/schemas/env.d.mts +2 -230
  30. package/dist/schemas/index.d.cts +1 -1
  31. package/dist/schemas/index.d.mts +1 -1
  32. package/dist/types/index.d.cts +2 -1
  33. package/dist/types/index.d.mts +2 -1
  34. package/dist/types/plugin.d.cts +2 -137
  35. package/dist/types/plugin.d.mts +2 -137
  36. package/package.json +10 -10
  37. package/dist/index.d.cts.map +0 -1
  38. package/dist/index.d.mts.map +0 -1
  39. package/dist/schemas/env.d.cts.map +0 -1
  40. package/dist/schemas/env.d.mts.map +0 -1
  41. package/dist/types/plugin.d.cts.map +0 -1
  42. package/dist/types/plugin.d.mts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.cjs";
2
- import "../index.cjs";
1
+ import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-BkPUgX5Z.cjs";
2
+ import "../index-N_SMJR7p.cjs";
3
3
  //#region src/babel/plugin.d.ts
4
4
  declare const envBabelPlugin: import("@powerlines/plugin-babel").DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, object>;
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
2
- import "../index.mjs";
1
+ import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-DaVohK06.mjs";
2
+ import "../index-CqmZxgBO.mjs";
3
3
  //#region src/babel/plugin.d.ts
4
4
  declare const envBabelPlugin: import("@powerlines/plugin-babel").DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, object>;
5
5
  //#endregion
@@ -0,0 +1,230 @@
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
+ deno: "deno";
40
+ browser: "browser";
41
+ nodejs: "nodejs";
42
+ workerd: "workerd";
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
+ development: "development";
60
+ production: "production";
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
+ error: "error";
68
+ warn: "warn";
69
+ info: "info";
70
+ debug: "debug";
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
+ deno: "deno";
95
+ browser: "browser";
96
+ nodejs: "nodejs";
97
+ workerd: "workerd";
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
+ development: "development";
107
+ production: "production";
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
+ error: "error";
134
+ warn: "warn";
135
+ info: "info";
136
+ debug: "debug";
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-C6HnpNy5.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-C6HnpNy5.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"}
@@ -0,0 +1,230 @@
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
+ deno: "deno";
40
+ browser: "browser";
41
+ nodejs: "nodejs";
42
+ workerd: "workerd";
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
+ development: "development";
60
+ production: "production";
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
+ error: "error";
68
+ warn: "warn";
69
+ info: "info";
70
+ debug: "debug";
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
+ deno: "deno";
95
+ browser: "browser";
96
+ nodejs: "nodejs";
97
+ workerd: "workerd";
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
+ development: "development";
107
+ production: "production";
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
+ error: "error";
134
+ warn: "warn";
135
+ info: "info";
136
+ debug: "debug";
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-C6HnpNy5.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-C6HnpNy5.d.mts","names":[],"sources":["../src/schemas/env.ts"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.cjs');
3
3
  const require_helpers_source_file_env = require('./source-file-env.cjs');
4
4
  let _power_plant_schema = require("@power-plant/schema");
5
5
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
@@ -10,7 +10,7 @@ let _stryke_path_join_paths = require("@stryke/path/join-paths");
10
10
  let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
11
11
  let c12 = require("c12");
12
12
  let defu = require("defu");
13
- defu = require_runtime.__toESM(defu, 1);
13
+ defu = require_rolldown_runtime.__toESM(defu, 1);
14
14
  let powerlines_constants = require("powerlines/constants");
15
15
 
16
16
  //#region src/helpers/load.ts
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions } from "../types/plugin.cjs";
1
+ import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-BkPUgX5Z.cjs";
2
2
  import { WorkspaceConfig } from "powerlines";
3
3
  import { DotenvParseOutput } from "@stryke/env/types";
4
4
  //#region src/helpers/load.d.ts
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions } from "../types/plugin.mjs";
1
+ import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-DaVohK06.mjs";
2
2
  import { DotenvParseOutput } from "@stryke/env/types";
3
3
  import { WorkspaceConfig } from "powerlines";
4
4
  //#region src/helpers/load.d.ts
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext } from "../types/plugin.cjs";
1
+ import { t as EnvPluginContext } from "../plugin-BkPUgX5Z.cjs";
2
2
  import { UnresolvedContext } from "powerlines";
3
3
  import { FileReference } from "@stryke/types/configuration";
4
4
  //#region src/helpers/schema.d.ts
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext } from "../types/plugin.mjs";
1
+ import { t as EnvPluginContext } from "../plugin-DaVohK06.mjs";
2
2
  import { UnresolvedContext } from "powerlines";
3
3
  import { FileReference } from "@stryke/types/configuration";
4
4
  //#region src/helpers/schema.d.ts
@@ -0,0 +1 @@
1
+ import "./plugin-BkPUgX5Z.cjs";
@@ -0,0 +1,17 @@
1
+ import { n as EnvPluginOptions, t as EnvPluginContext } from "./plugin-DaVohK06.mjs";
2
+ import "./env-C6HnpNy5.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-CqmZxgBO.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CqmZxgBO.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { n as EnvPluginOptions, t as EnvPluginContext } from "./plugin-BkPUgX5Z.cjs";
2
+ import "./env-C6HnpNy5.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-N_SMJR7p.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-N_SMJR7p.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAoDY;IACR,MAAM;;;;;;cAOG,SAAU,iBAAiB,mBAAmB,kBACzD,UAAS,qBAyGJ,OAAO"}
@@ -0,0 +1 @@
1
+ import "./plugin-DaVohK06.mjs";
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
+ const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
3
+ require('./types/index.cjs');
3
4
  const require_schemas_env = require('./schemas/env.cjs');
4
5
  const require_helpers_schema = require('./helpers/schema.cjs');
5
6
  const require_helpers_automd_generator = require('./helpers/automd-generator.cjs');
@@ -8,16 +9,16 @@ const require_components_env_builtin = require('./components/env-builtin.cjs');
8
9
  const require_babel_plugin = require('./babel/plugin.cjs');
9
10
  let _stryke_path_join = require("@stryke/path/join");
10
11
  let defu = require("defu");
11
- defu = require_runtime.__toESM(defu, 1);
12
+ defu = require_rolldown_runtime.__toESM(defu, 1);
12
13
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
13
14
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
14
15
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
15
16
  let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
16
17
  let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
17
18
  let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
18
- _powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd, 1);
19
+ _powerlines_plugin_automd = require_rolldown_runtime.__toESM(_powerlines_plugin_automd, 1);
19
20
  let _powerlines_plugin_babel = require("@powerlines/plugin-babel");
20
- _powerlines_plugin_babel = require_runtime.__toESM(_powerlines_plugin_babel, 1);
21
+ _powerlines_plugin_babel = require_rolldown_runtime.__toESM(_powerlines_plugin_babel, 1);
21
22
  let _stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
22
23
 
23
24
  //#region src/index.tsx
package/dist/index.d.cts CHANGED
@@ -1,17 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType } from "./types/plugin.cjs";
2
- import { Env, EnvInput, Secrets, SecretsInput, envSchema, secretsSchema } from "./schemas/env.cjs";
3
- import "./types/index.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 { type Env, type EnvInput, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType, type Secrets, type SecretsInput, plugin as default, plugin, envSchema, secretsSchema };
17
- //# sourceMappingURL=index.d.cts.map
1
+ import { a as EnvSchema, i as EnvPluginUserConfig, n as EnvPluginOptions, o as EnvType, r as EnvPluginResolvedConfig, t as EnvPluginContext } from "./plugin-BkPUgX5Z.cjs";
2
+ import { g as secretsSchema, h as envSchema, i as EnvInput, m as SecretsInput, p as Secrets, r as Env } from "./env-C6HnpNy5.cjs";
3
+ import { t as plugin } from "./index-N_SMJR7p.cjs";
4
+ export { type Env, type EnvInput, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType, type Secrets, type SecretsInput, plugin as default, plugin, envSchema, secretsSchema };
package/dist/index.d.mts CHANGED
@@ -1,17 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType } from "./types/plugin.mjs";
2
- import { Env, EnvInput, Secrets, SecretsInput, envSchema, secretsSchema } from "./schemas/env.mjs";
3
- import "./types/index.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 { type Env, type EnvInput, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType, type Secrets, type SecretsInput, plugin as default, plugin, envSchema, secretsSchema };
17
- //# sourceMappingURL=index.d.mts.map
1
+ import { a as EnvSchema, i as EnvPluginUserConfig, n as EnvPluginOptions, o as EnvType, r as EnvPluginResolvedConfig, t as EnvPluginContext } from "./plugin-DaVohK06.mjs";
2
+ import { g as secretsSchema, h as envSchema, i as EnvInput, m as SecretsInput, p as Secrets, r as Env } from "./env-C6HnpNy5.mjs";
3
+ import { t as plugin } from "./index-CqmZxgBO.mjs";
4
+ export { type Env, type EnvInput, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvSchema, EnvType, type Secrets, type SecretsInput, plugin as default, plugin, envSchema, secretsSchema };
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import "./types/index.mjs";
1
2
  import { envSchema, secretsSchema } from "./schemas/env.mjs";
2
3
  import { extractEnv, getDefaultConfig, getDefaultSecrets, writeEnv } from "./helpers/schema.mjs";
3
4
  import { env } from "./helpers/automd-generator.mjs";