@e-n-v/env 0.0.12 → 0.0.13

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 (92) hide show
  1. package/dist/{BooleanMap-BPQuO3Ae.d.ts → BooleanMap-B7iiI-eg.d.ts} +1 -7
  2. package/dist/{BooleanMap-CX_YrPCf.d.cts → BooleanMap-D74MMuAh.d.cts} +1 -7
  3. package/dist/{EnvChannel-CfSwa_25.d.cts → EnvChannel-gV-4XlM8.d.cts} +0 -2
  4. package/dist/{EnvChannel-CfSwa_25.d.ts → EnvChannel-gV-4XlM8.d.ts} +0 -2
  5. package/dist/{EnvChannelOptions-BmdQcl4b.d.cts → EnvChannelOptions-BxsZpwjq.d.cts} +0 -20
  6. package/dist/{EnvChannelOptions-BmdQcl4b.d.ts → EnvChannelOptions-BxsZpwjq.d.ts} +0 -20
  7. package/dist/{EnvSource-s8F_M_6O.cjs → EnvSource-B_7XBrZM.cjs} +4 -8
  8. package/dist/{EnvSource-WAGWqRVM.js → EnvSource-DL1wl3j4.js} +4 -8
  9. package/dist/{EnvVarSchema-CDZGmnex.cjs → EnvVarSchema-D_fQ2A89.cjs} +2 -3
  10. package/dist/{EnvVarSchema-Dr6q7jf6.js → EnvVarSchema-Dd3ZrR30.js} +2 -3
  11. package/dist/{ProcessEnvChannel-eCOGEuJv.d.ts → ProcessEnvChannel-BN4U3VXU.d.cts} +2 -10
  12. package/dist/{ProcessEnvChannel-Br3hZSq6.d.cts → ProcessEnvChannel-Df1v0WyG.d.ts} +2 -10
  13. package/dist/{StringEnvVarSchema-D9Jr1Aws.d.cts → StringEnvVarSchema-CymYIek7.d.cts} +0 -16
  14. package/dist/{StringEnvVarSchema-D9Jr1Aws.d.ts → StringEnvVarSchema-CymYIek7.d.ts} +0 -16
  15. package/dist/channels.cjs +1 -1
  16. package/dist/channels.d.cts +3 -5
  17. package/dist/channels.d.ts +3 -5
  18. package/dist/channels.js +1 -1
  19. package/dist/cli.cjs +8 -10
  20. package/dist/cli.js +4 -6
  21. package/dist/core.cjs +7 -10
  22. package/dist/core.d.cts +5 -39
  23. package/dist/core.d.ts +5 -39
  24. package/dist/core.js +7 -10
  25. package/dist/{custom-Bd-jLg80.js → custom-BRT8y9Jj.js} +9 -18
  26. package/dist/{custom-Dyb9TnER.cjs → custom-_p4QyQTG.cjs} +9 -18
  27. package/dist/files.cjs +3 -5
  28. package/dist/files.d.cts +0 -10
  29. package/dist/files.d.ts +0 -10
  30. package/dist/files.js +3 -5
  31. package/dist/{index-dtOxwPe7.d.ts → index-B-GXzdUQ.d.ts} +3 -9
  32. package/dist/{index-Cb0abjLf.d.ts → index-BwID8Va2.d.ts} +2 -14
  33. package/dist/{index-BHTM8nxS.d.ts → index-C7wTQSSV.d.cts} +1 -5
  34. package/dist/{index-Bf0im0jZ.d.cts → index-CgeWhoQX.d.cts} +3 -9
  35. package/dist/{index-B2eNij2x.d.cts → index-ClGSiwuc.d.ts} +1 -5
  36. package/dist/{index-Cz3frUwZ.d.cts → index-D8rUvOZ5.d.cts} +2 -14
  37. package/dist/index.cjs +15 -16
  38. package/dist/index.d.cts +7 -10
  39. package/dist/index.d.ts +7 -10
  40. package/dist/index.js +7 -8
  41. package/dist/model.cjs +2 -3
  42. package/dist/model.d.cts +1 -1
  43. package/dist/model.d.ts +1 -1
  44. package/dist/model.js +2 -3
  45. package/dist/parse.cjs +4 -5
  46. package/dist/parse.d.cts +4 -6
  47. package/dist/parse.d.ts +4 -6
  48. package/dist/parse.js +4 -5
  49. package/dist/{preprocessors-DFVyF0c7.d.cts → preprocessors-BRPHeq3e.d.cts} +2 -24
  50. package/dist/{preprocessors-BKuIcZa1.d.ts → preprocessors-BUAo8e4Q.d.ts} +2 -24
  51. package/dist/prompt.cjs +3 -4
  52. package/dist/prompt.d.cts +10 -5
  53. package/dist/prompt.d.ts +4 -5
  54. package/dist/prompt.js +3 -4
  55. package/dist/{redis-D18f4ztf.js → redis-B-sECHB8.js} +9 -18
  56. package/dist/{redis-tRD4nAy_.d.ts → redis-BSCXEwN0.d.cts} +1 -39
  57. package/dist/{redis-CyTF0SYT.cjs → redis-CyJB1Nt0.cjs} +9 -18
  58. package/dist/{redis-DsW-Vkwq.d.cts → redis-n80OfSRZ.d.ts} +1 -39
  59. package/dist/{resolveChannel-DB1XyYCC.js → resolveChannel-CkQhgsxw.js} +6 -11
  60. package/dist/{resolveChannel-Cug62jvj.cjs → resolveChannel-EJwecI0-.cjs} +6 -11
  61. package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
  62. package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  63. package/dist/{schema-CtP5lpU1.js → schema-BTv2xFHz.js} +2 -3
  64. package/dist/{schema-D9nJKipf.cjs → schema-CKx-cny7.cjs} +2 -3
  65. package/dist/{schema-B-JLVS42.d.ts → schema-ChcxJMuu.d.ts} +1 -3
  66. package/dist/{schema-B1i83alz.d.cts → schema-DBTZcufP.d.cts} +1 -3
  67. package/dist/schemas/zod.cjs +30 -59
  68. package/dist/schemas/zod.d.cts +0 -56
  69. package/dist/schemas/zod.d.ts +0 -56
  70. package/dist/schemas/zod.js +30 -59
  71. package/dist/schemas.cjs +1 -1
  72. package/dist/schemas.d.cts +1 -1
  73. package/dist/schemas.d.ts +1 -1
  74. package/dist/schemas.js +1 -1
  75. package/dist/{src-DB0Har0j.cjs → src-B5LvPydi.cjs} +24 -44
  76. package/dist/{src-DgHZi7PD.js → src-BAkjmW8v.js} +10 -18
  77. package/dist/{src-DvUBRBe3.js → src-BLZdiWZJ.js} +24 -44
  78. package/dist/{src-CJ_QE-uc.cjs → src-B_wC-Ff0.cjs} +4 -6
  79. package/dist/{src-TZx_e95f.cjs → src-BgwAyw-w.cjs} +20 -40
  80. package/dist/{src-CtWcViFD.cjs → src-C57GsLLI.cjs} +11 -19
  81. package/dist/{src-DefPAYdi.cjs → src-CILRt8pX.cjs} +33 -56
  82. package/dist/{src-BK5HcxMN.js → src-CkblS8lK.js} +27 -50
  83. package/dist/{src-BPxfJblL.js → src-DCLHRLpS.js} +4 -6
  84. package/dist/{src-Cg49gGJb.js → src-DtejQU3A.js} +20 -40
  85. package/dist/{vars-obKYxaSu.d.ts → vars-BLXbjxcm.d.cts} +1 -3
  86. package/dist/{vars-DtzGL5Nc.d.cts → vars-XT7wuxpb.d.ts} +1 -3
  87. package/dist/vars.cjs +3 -4
  88. package/dist/vars.d.cts +2 -2
  89. package/dist/vars.d.ts +2 -2
  90. package/dist/vars.js +3 -4
  91. package/package.json +1 -1
  92. package/dist/prompt-B45cjMsq.d.cts +0 -9
@@ -1,4 +1,4 @@
1
- //#region ../core/src/schemas/EnvVarSchemaBase.ts
1
+ // ../core/src/schemas/EnvVarSchemaBase.ts
2
2
  var EnvVarSchemaBase = class {
3
3
  required;
4
4
  default;
@@ -13,8 +13,7 @@ var EnvVarSchemaBase = class {
13
13
  this.process = input.process;
14
14
  }
15
15
  };
16
- //#endregion
17
- //#region ../core/src/processing/helpers/toList.ts
16
+ // ../core/src/processing/helpers/toList.ts
18
17
  /**
19
18
  * Convert array of items to natural language list.
20
19
  * Examples:
@@ -29,8 +28,7 @@ function toList(items) {
29
28
  if (items.length === 2) return `${items[0]} and ${items[1]}`;
30
29
  return `${items.slice(0, -1).join(", ")}, and ${items[items.length - 1]}`;
31
30
  }
32
- //#endregion
33
- //#region ../core/src/processing/helpers/validate.ts
31
+ // ../core/src/processing/helpers/validate.ts
34
32
  /**
35
33
  * Run checks and aggregate errors.
36
34
  * Throws an error with all validation requirements if any check fails.
@@ -43,8 +41,7 @@ function validate(value, checks) {
43
41
  }
44
42
  return value;
45
43
  }
46
- //#endregion
47
- //#region ../core/src/processing/processors/typed/string.ts
44
+ // ../core/src/processing/processors/typed/string.ts
48
45
  /**
49
46
  * String processor with optional validation checks.
50
47
  * This is the primary string processor - the base stringProcessor() calls this with no checks.
@@ -57,8 +54,7 @@ function string$1(...checks) {
57
54
  return input;
58
55
  };
59
56
  }
60
- //#endregion
61
- //#region ../core/src/processing/processors/typed/number.ts
57
+ // ../core/src/processing/processors/typed/number.ts
62
58
  /**
63
59
  * Number processor with optional validation checks.
64
60
  * This is the primary number processor - the base numberProcessor() calls this with no checks.
@@ -79,24 +75,21 @@ function number$1(...checks) {
79
75
  return parsed;
80
76
  };
81
77
  }
82
- //#endregion
83
- //#region ../core/src/processing/constants/FALSE_STRINGS.ts
78
+ // ../core/src/processing/constants/FALSE_STRINGS.ts
84
79
  const FALSE_STRINGS = [
85
80
  "false",
86
81
  "0",
87
82
  "no",
88
83
  "off"
89
84
  ];
90
- //#endregion
91
- //#region ../core/src/processing/constants/TRUE_STRINGS.ts
85
+ // ../core/src/processing/constants/TRUE_STRINGS.ts
92
86
  const TRUE_STRINGS = [
93
87
  "true",
94
88
  "1",
95
89
  "yes",
96
90
  "on"
97
91
  ];
98
- //#endregion
99
- //#region ../core/src/processing/processors/typed/boolean.ts
92
+ // ../core/src/processing/processors/typed/boolean.ts
100
93
  /**
101
94
  * Boolean processor.
102
95
  * This is the primary boolean processor - the base booleanProcessor() calls this.
@@ -116,8 +109,7 @@ function boolean$1() {
116
109
  throw new Error(`"${input}" is not a valid boolean. Use: ${trueList} or ${falseList}`);
117
110
  };
118
111
  }
119
- //#endregion
120
- //#region ../core/src/processing/processors/typed/enumeration.ts
112
+ // ../core/src/processing/processors/typed/enumeration.ts
121
113
  /**
122
114
  * Enum processor with optional validation checks.
123
115
  * This is the primary enum processor - the base enumProcessor() calls this with no checks.
@@ -132,8 +124,7 @@ function enumeration$1(allowedValues, ...checks) {
132
124
  return trimmed;
133
125
  };
134
126
  }
135
- //#endregion
136
- //#region ../core/src/processing/processors/processors.ts
127
+ // ../core/src/processing/processors/processors.ts
137
128
  /**
138
129
  * Default processors for environment variable types.
139
130
  * Each processor factory returns a function that takes a value and returns T | undefined.
@@ -145,8 +136,7 @@ const processors = {
145
136
  number: number$1,
146
137
  string: string$1
147
138
  };
148
- //#endregion
149
- //#region ../core/src/schemas/typed/BooleanEnvVarSchema.ts
139
+ // ../core/src/schemas/typed/BooleanEnvVarSchema.ts
150
140
  var BooleanEnvVarSchema = class extends EnvVarSchemaBase {
151
141
  type = "boolean";
152
142
  constructor(input = {}) {
@@ -156,8 +146,7 @@ var BooleanEnvVarSchema = class extends EnvVarSchemaBase {
156
146
  });
157
147
  }
158
148
  };
159
- //#endregion
160
- //#region ../core/src/schemas/typed/EnumEnvVarSchema.ts
149
+ // ../core/src/schemas/typed/EnumEnvVarSchema.ts
161
150
  var EnumEnvVarSchema = class extends EnvVarSchemaBase {
162
151
  type = "enum";
163
152
  values;
@@ -169,8 +158,7 @@ var EnumEnvVarSchema = class extends EnvVarSchemaBase {
169
158
  this.values = input.values;
170
159
  }
171
160
  };
172
- //#endregion
173
- //#region ../core/src/schemas/typed/NumberEnvVarSchema.ts
161
+ // ../core/src/schemas/typed/NumberEnvVarSchema.ts
174
162
  var NumberEnvVarSchema = class extends EnvVarSchemaBase {
175
163
  type = "number";
176
164
  constructor(input = {}) {
@@ -180,8 +168,7 @@ var NumberEnvVarSchema = class extends EnvVarSchemaBase {
180
168
  });
181
169
  }
182
170
  };
183
- //#endregion
184
- //#region ../core/src/schemas/typed/StringEnvVarSchema.ts
171
+ // ../core/src/schemas/typed/StringEnvVarSchema.ts
185
172
  var StringEnvVarSchema = class extends EnvVarSchemaBase {
186
173
  type = "string";
187
174
  secret;
@@ -193,8 +180,7 @@ var StringEnvVarSchema = class extends EnvVarSchemaBase {
193
180
  this.secret = input.secret;
194
181
  }
195
182
  };
196
- //#endregion
197
- //#region ../core/src/processing/preprocessors/typed/number.ts
183
+ // ../core/src/processing/preprocessors/typed/number.ts
198
184
  /**
199
185
  * Create a number preprocessor that strips commas and whitespace
200
186
  */
@@ -205,8 +191,7 @@ const number = () => (value) => {
205
191
  } catch {}
206
192
  return value;
207
193
  };
208
- //#endregion
209
- //#region ../core/src/processing/preprocessors/typed/boolean.ts
194
+ // ../core/src/processing/preprocessors/typed/boolean.ts
210
195
  const boolean = (options = {
211
196
  true: TRUE_STRINGS,
212
197
  false: FALSE_STRINGS
@@ -224,20 +209,17 @@ const boolean = (options = {
224
209
  return value;
225
210
  };
226
211
  };
227
- //#endregion
228
- //#region ../core/src/processing/preprocessors/typed/enumeration.ts
212
+ // ../core/src/processing/preprocessors/typed/enumeration.ts
229
213
  /**
230
214
  * Create an enum preprocessor - pass through unchanged
231
215
  */
232
216
  const enumeration = () => (value) => value;
233
- //#endregion
234
- //#region ../core/src/processing/preprocessors/typed/string.ts
217
+ // ../core/src/processing/preprocessors/typed/string.ts
235
218
  /**
236
219
  * Create a string preprocessor - pass through unchanged
237
220
  */
238
221
  const string = () => (value) => value;
239
- //#endregion
240
- //#region ../core/src/processing/preprocessors/preprocessors.ts
222
+ // ../core/src/processing/preprocessors/preprocessors.ts
241
223
  /**
242
224
  * Default preprocessors for environment variable types.
243
225
  * Each preprocessor factory returns a function that takes a string value and returns T | string.
@@ -252,8 +234,7 @@ const preprocessors = {
252
234
  number,
253
235
  string
254
236
  };
255
- //#endregion
256
- //#region ../core/src/processing/preprocessors/resolvePreprocessor.ts
237
+ // ../core/src/processing/preprocessors/resolvePreprocessor.ts
257
238
  const defaultFactories = {
258
239
  number: preprocessors.number,
259
240
  boolean: preprocessors.boolean,
@@ -281,7 +262,6 @@ function resolvePreprocessor(envVarType, preprocessorOptions) {
281
262
  if (typeof override === "function") return override;
282
263
  return preprocessors.boolean(override);
283
264
  }
284
- //#endregion
285
265
  Object.defineProperty(exports, "BooleanEnvVarSchema", {
286
266
  enumerable: true,
287
267
  get: function() {
@@ -1,10 +1,10 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_src = require("./src-TZx_e95f.cjs");
3
- const require_EnvVarSchema = require("./EnvVarSchema-CDZGmnex.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
2
+ const require_src = require("./src-BgwAyw-w.cjs");
3
+ const require_EnvVarSchema = require("./EnvVarSchema-D_fQ2A89.cjs");
4
4
  let zod = require("zod");
5
5
  let zod_v4_core = require("zod/v4/core");
6
6
  zod_v4_core = require_rolldown_runtime.__toESM(zod_v4_core, 1);
7
- //#region ../converters/src/converters/zod/ZodV3Converter.ts
7
+ // ../converters/src/converters/zod/ZodV3Converter.ts
8
8
  /**
9
9
  * Zod v3 schema converter implementation
10
10
  */
@@ -201,8 +201,7 @@ function convertFromZodV3Schema(schema) {
201
201
  }
202
202
  }
203
203
  }
204
- //#endregion
205
- //#region ../converters/src/converters/zod/ZodV4Converter.ts
204
+ // ../converters/src/converters/zod/ZodV4Converter.ts
206
205
  /**
207
206
  * Zod v4 schema converter implementation
208
207
  */
@@ -406,8 +405,7 @@ function convertFromZodV4Schema(schema) {
406
405
  }
407
406
  }
408
407
  }
409
- //#endregion
410
- //#region ../converters/src/converters/joi/JoiConverter.ts
408
+ // ../converters/src/converters/joi/JoiConverter.ts
411
409
  /**
412
410
  * Joi schema converter implementation
413
411
  */
@@ -600,8 +598,7 @@ function convertFromJoiSchema(schema) {
600
598
  }
601
599
  }
602
600
  }
603
- //#endregion
604
- //#region ../converters/src/converters/superstruct/SuperstructConverter.ts
601
+ // ../converters/src/converters/superstruct/SuperstructConverter.ts
605
602
  /**
606
603
  * Superstruct schema converter implementation
607
604
  */
@@ -753,8 +750,7 @@ function createSuperstructProcessFunction(schema, type) {
753
750
  return result;
754
751
  };
755
752
  }
756
- //#endregion
757
- //#region ../converters/src/converters.ts
753
+ // ../converters/src/converters.ts
758
754
  /**
759
755
  * Registry of available schema converters
760
756
  */
@@ -764,8 +760,7 @@ const converters = [
764
760
  new JoiConverter(),
765
761
  new SuperstructConverter()
766
762
  ];
767
- //#endregion
768
- //#region ../models/src/resolve.ts
763
+ // ../models/src/resolve.ts
769
764
  /**
770
765
  * Resolve any supported schema to a EnvVarSchema.
771
766
  *
@@ -805,8 +800,7 @@ function resolveSchemas(schemas) {
805
800
  }
806
801
  return resolved;
807
802
  }
808
- //#endregion
809
- //#region ../models/src/EnvModel.ts
803
+ // ../models/src/EnvModel.ts
810
804
  /**
811
805
  * Environment variable specification container
812
806
  * Encapsulates schemas and preprocessor configuration
@@ -844,8 +838,7 @@ var EnvModel = class {
844
838
  return { ...config };
845
839
  }
846
840
  };
847
- //#endregion
848
- //#region ../models/src/model.ts
841
+ // ../models/src/model.ts
849
842
  /**
850
843
  * Create an environment variable model
851
844
  *
@@ -871,7 +864,6 @@ var EnvModel = class {
871
864
  function define(options) {
872
865
  return new EnvModel(options);
873
866
  }
874
- //#endregion
875
867
  Object.defineProperty(exports, "EnvModel", {
876
868
  enumerable: true,
877
869
  get: function() {
@@ -1,7 +1,7 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_src = require("./src-TZx_e95f.cjs");
3
- const require_src$1 = require("./src-CtWcViFD.cjs");
4
- const require_resolveChannel = require("./resolveChannel-Cug62jvj.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
2
+ const require_src = require("./src-C57GsLLI.cjs");
3
+ const require_resolveChannel = require("./resolveChannel-EJwecI0-.cjs");
4
+ const require_src$1 = require("./src-BgwAyw-w.cjs");
5
5
  let node_path = require("node:path");
6
6
  let node_process = require("node:process");
7
7
  let _clack_core = require("@clack/core");
@@ -11,7 +11,7 @@ picocolors = require_rolldown_runtime.__toESM(picocolors, 1);
11
11
  let node_child_process = require("node:child_process");
12
12
  let node_os = require("node:os");
13
13
  let node_readline = require("node:readline");
14
- //#region ../prompt/src/options/defaults.ts
14
+ // ../prompt/src/options/defaults.ts
15
15
  var defaults_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
16
16
  ENV_PATH: () => ENV_PATH,
17
17
  SECRET_PATTERNS: () => SECRET_PATTERNS,
@@ -31,8 +31,7 @@ const SECRET_PATTERNS = Object.freeze([
31
31
  /access[_-]?key/i,
32
32
  /credential/i
33
33
  ]);
34
- //#endregion
35
- //#region ../prompt/src/visuals/Theme.ts
34
+ // ../prompt/src/visuals/Theme.ts
36
35
  var Theme = class Theme {
37
36
  static default = new Theme(picocolors.default.magenta);
38
37
  primary;
@@ -73,8 +72,7 @@ var Theme = class Theme {
73
72
  return picocolors.default.bgBlack;
74
73
  }
75
74
  };
76
- //#endregion
77
- //#region ../prompt/src/prompts/ThemedPrompt.ts
75
+ // ../prompt/src/prompts/ThemedPrompt.ts
78
76
  var ThemedPrompt = class extends _clack_core.Prompt {
79
77
  theme;
80
78
  constructor(opts, trackValue = false) {
@@ -126,8 +124,7 @@ var ThemedPrompt = class extends _clack_core.Prompt {
126
124
  };
127
125
  }
128
126
  };
129
- //#endregion
130
- //#region ../prompt/src/prompts/utils/ClackPromptInternals.ts
127
+ // ../prompt/src/prompts/utils/ClackPromptInternals.ts
131
128
  /** Hacks to access private members of Clack prompts */
132
129
  var ClackPromptInternals = class {
133
130
  prompt;
@@ -141,8 +138,7 @@ var ClackPromptInternals = class {
141
138
  return this.prompt._track;
142
139
  }
143
140
  };
144
- //#endregion
145
- //#region ../prompt/src/prompts/utils/padActiveRender.ts
141
+ // ../prompt/src/prompts/utils/padActiveRender.ts
146
142
  /**
147
143
  * Ensures active prompts leave a blank line beneath their output while leaving
148
144
  * submitted or cancelled renders untouched.
@@ -158,8 +154,7 @@ function padActiveRender(render) {
158
154
  return result + "\n";
159
155
  };
160
156
  }
161
- //#endregion
162
- //#region ../prompt/src/prompts/toolbar/Toolbar.ts
157
+ // ../prompt/src/prompts/toolbar/Toolbar.ts
163
158
  var Toolbar = class {
164
159
  _isOpen = false;
165
160
  cursor = 0;
@@ -276,8 +271,7 @@ var Toolbar = class {
276
271
  return options;
277
272
  }
278
273
  };
279
- //#endregion
280
- //#region ../prompt/src/prompts/state/EnvPromptModeDetails.ts
274
+ // ../prompt/src/prompts/state/EnvPromptModeDetails.ts
281
275
  /**
282
276
  * Creates initial mode details for a prompt
283
277
  */
@@ -314,8 +308,7 @@ function createState(modeDetails) {
314
308
  ...computeState(modeDetails)
315
309
  };
316
310
  }
317
- //#endregion
318
- //#region ../prompt/src/prompts/state/EnvPromptMode.ts
311
+ // ../prompt/src/prompts/state/EnvPromptMode.ts
319
312
  /**
320
313
  * Encapsulates the prompt's interaction mode state and transitions.
321
314
  */
@@ -476,8 +469,7 @@ var EnvPromptMode = class {
476
469
  return this.intention;
477
470
  }
478
471
  };
479
- //#endregion
480
- //#region ../prompt/src/prompts/processing/processValue.ts
472
+ // ../prompt/src/prompts/processing/processValue.ts
481
473
  /**
482
474
  * Process a value through schema validation and return detailed results
483
475
  */
@@ -490,9 +482,9 @@ function processValue(envKey, value, schema, preprocess) {
490
482
  };
491
483
  const activePreprocessor = (() => {
492
484
  if (preprocess === false) return;
493
- if (preprocess === true) return require_src.resolvePreprocessor(schema.type, { [schema.type]: true });
485
+ if (preprocess === true) return require_src$1.resolvePreprocessor(schema.type, { [schema.type]: true });
494
486
  if (typeof preprocess === "function") return preprocess;
495
- return require_src.resolvePreprocessor(schema.type);
487
+ return require_src$1.resolvePreprocessor(schema.type);
496
488
  })();
497
489
  let processedValue = value;
498
490
  if (activePreprocessor) try {
@@ -515,8 +507,7 @@ function processValue(envKey, value, schema, preprocess) {
515
507
  };
516
508
  }
517
509
  }
518
- //#endregion
519
- //#region ../prompt/src/prompts/EnvPrompt.ts
510
+ // ../prompt/src/prompts/EnvPrompt.ts
520
511
  var EnvPrompt = class extends ThemedPrompt {
521
512
  /** Schema describing the environment variable. */
522
513
  schema;
@@ -790,8 +781,7 @@ var EnvPrompt = class extends ThemedPrompt {
790
781
  return labels.length > 0 ? labels.join(", ") : void 0;
791
782
  }
792
783
  };
793
- //#endregion
794
- //#region ../prompt/src/prompts/utils/selectableOptions.ts
784
+ // ../prompt/src/prompts/utils/selectableOptions.ts
795
785
  function buildSelectableOptions(params) {
796
786
  const invalidOptionKey = params.invalidOptionKey ?? "invalid";
797
787
  const baseOptions = params.baseOptions.map((option) => ({ ...option }));
@@ -833,8 +823,7 @@ function getOptionAtCursor(options, cursor) {
833
823
  index
834
824
  };
835
825
  }
836
- //#endregion
837
- //#region ../prompt/src/prompts/typed/EnvBooleanPrompt.ts
826
+ // ../prompt/src/prompts/typed/EnvBooleanPrompt.ts
838
827
  var EnvBooleanPrompt = class extends EnvPrompt {
839
828
  cursor;
840
829
  constructor(schema, opts) {
@@ -949,8 +938,7 @@ var EnvBooleanPrompt = class extends EnvPrompt {
949
938
  return option;
950
939
  }
951
940
  };
952
- //#endregion
953
- //#region ../prompt/src/prompts/typed/EnvEnumPrompt.ts
941
+ // ../prompt/src/prompts/typed/EnvEnumPrompt.ts
954
942
  var EnvEnumPrompt = class extends EnvPrompt {
955
943
  cursor = 0;
956
944
  options;
@@ -1071,8 +1059,7 @@ var EnvEnumPrompt = class extends EnvPrompt {
1071
1059
  return option;
1072
1060
  }
1073
1061
  };
1074
- //#endregion
1075
- //#region ../prompt/src/prompts/typed/EnvNumberPrompt.ts
1062
+ // ../prompt/src/prompts/typed/EnvNumberPrompt.ts
1076
1063
  var EnvNumberPrompt = class extends EnvPrompt {
1077
1064
  otherInputCache = "";
1078
1065
  shouldStitchInput = false;
@@ -1456,8 +1443,7 @@ var EnvNumberPrompt = class extends EnvPrompt {
1456
1443
  return index === -1 ? options.length - 1 : index;
1457
1444
  }
1458
1445
  };
1459
- //#endregion
1460
- //#region ../prompt/src/utils/secrets.ts
1446
+ // ../prompt/src/utils/secrets.ts
1461
1447
  function isSecretMatch(value, pattern) {
1462
1448
  if (!value) return false;
1463
1449
  if (typeof pattern === "string") {
@@ -1484,8 +1470,7 @@ function resolveShouldMask(key, schema, patterns) {
1484
1470
  if ("secret" in schema && schema.secret !== void 0) return schema.secret;
1485
1471
  return isSecretKey(key, schema.description, patterns);
1486
1472
  }
1487
- //#endregion
1488
- //#region ../prompt/src/prompts/typed/EnvStringPrompt.ts
1473
+ // ../prompt/src/prompts/typed/EnvStringPrompt.ts
1489
1474
  var EnvStringPrompt = class extends EnvPrompt {
1490
1475
  otherInputCache = "";
1491
1476
  shouldStitchInput = false;
@@ -1893,8 +1878,7 @@ var EnvStringPrompt = class extends EnvPrompt {
1893
1878
  });
1894
1879
  }
1895
1880
  };
1896
- //#endregion
1897
- //#region ../prompt/src/prompts/create/createPrompt.ts
1881
+ // ../prompt/src/prompts/create/createPrompt.ts
1898
1882
  function createPrompt({ key, schema, currentValue, theme, truncate, shouldMask, index, total, input, output, preprocessors: preprocessors$1 }) {
1899
1883
  const baseOptions = {
1900
1884
  key,
@@ -1910,10 +1894,10 @@ function createPrompt({ key, schema, currentValue, theme, truncate, shouldMask,
1910
1894
  const booleanOverride = preprocessors$1?.boolean;
1911
1895
  let booleanPreprocess;
1912
1896
  if (booleanOverride === void 0) booleanPreprocess = void 0;
1913
- else if (booleanOverride === true) booleanPreprocess = require_src.preprocessors.boolean();
1897
+ else if (booleanOverride === true) booleanPreprocess = require_src$1.preprocessors.boolean();
1914
1898
  else if (booleanOverride === false) booleanPreprocess = false;
1915
1899
  else if (typeof booleanOverride === "function") booleanPreprocess = booleanOverride;
1916
- else booleanPreprocess = require_src.preprocessors.boolean(booleanOverride);
1900
+ else booleanPreprocess = require_src$1.preprocessors.boolean(booleanOverride);
1917
1901
  return new EnvBooleanPrompt(schema, {
1918
1902
  ...baseOptions,
1919
1903
  current: currentValue,
@@ -1937,8 +1921,7 @@ function createPrompt({ key, schema, currentValue, theme, truncate, shouldMask,
1937
1921
  });
1938
1922
  }
1939
1923
  }
1940
- //#endregion
1941
- //#region ../prompt/src/utils/clearConsoleLines.ts
1924
+ // ../prompt/src/utils/clearConsoleLines.ts
1942
1925
  function clearConsoleLines(lineCount) {
1943
1926
  const output = process.stdout;
1944
1927
  if (!output?.isTTY) return;
@@ -1951,16 +1934,14 @@ function clearConsoleLines(lineCount) {
1951
1934
  (0, node_readline.cursorTo)(output, 0);
1952
1935
  } catch {}
1953
1936
  }
1954
- //#endregion
1955
- //#region ../prompt/src/utils/getDisplayEnvPath.ts
1937
+ // ../prompt/src/utils/getDisplayEnvPath.ts
1956
1938
  function getDisplayEnvPath(envPath, cwd = process.cwd()) {
1957
1939
  const relativeEnvPath = (0, node_path.relative)(cwd, envPath);
1958
1940
  if (relativeEnvPath === "") return ".";
1959
1941
  if (relativeEnvPath.startsWith(".")) return relativeEnvPath;
1960
1942
  return `./${relativeEnvPath}`;
1961
1943
  }
1962
- //#endregion
1963
- //#region ../prompt/src/session/Session.ts
1944
+ // ../prompt/src/session/Session.ts
1964
1945
  var Session = class Session {
1965
1946
  schemas;
1966
1947
  newValues = {};
@@ -2071,8 +2052,7 @@ var Session = class Session {
2071
2052
  return `${oscSequence}${url}${stringTerminator}${text}${oscSequence}${stringTerminator}`;
2072
2053
  }
2073
2054
  };
2074
- //#endregion
2075
- //#region ../prompt/src/options/resolve.ts
2055
+ // ../prompt/src/options/resolve.ts
2076
2056
  function resolveTheme(themeOption) {
2077
2057
  return new Theme(themeOption ?? picocolors.default.magenta);
2078
2058
  }
@@ -2085,16 +2065,14 @@ function resolveEnvFilePath(pathOption, rootDir) {
2085
2065
  if (!rootDir) return pathOption;
2086
2066
  return (0, node_path.resolve)(rootDir, pathOption);
2087
2067
  }
2088
- //#endregion
2089
- //#region ../prompt/src/utils/isEnvChannel.ts
2068
+ // ../prompt/src/utils/isEnvChannel.ts
2090
2069
  /**
2091
2070
  * Type guard to check if a value is an EnvChannel instance
2092
2071
  */
2093
2072
  function isEnvChannel(value) {
2094
2073
  return typeof value === "object" && value !== null && "get" in value && "set" in value && typeof value.get === "function" && typeof value.set === "function";
2095
2074
  }
2096
- //#endregion
2097
- //#region ../prompt/src/prompt.ts
2075
+ // ../prompt/src/prompt.ts
2098
2076
  /**
2099
2077
  * Interactive CLI tool to generate .env files with schema validation
2100
2078
  */
@@ -2102,7 +2080,7 @@ async function prompt(modelOrOptions, interactiveOptions) {
2102
2080
  let schemas;
2103
2081
  let preprocessConfig;
2104
2082
  let finalOptions;
2105
- if (modelOrOptions instanceof require_src$1.EnvModel) {
2083
+ if (modelOrOptions instanceof require_src.EnvModel) {
2106
2084
  const model = modelOrOptions;
2107
2085
  finalOptions = interactiveOptions || {};
2108
2086
  schemas = model.schemas;
@@ -2111,7 +2089,7 @@ async function prompt(modelOrOptions, interactiveOptions) {
2111
2089
  const options = modelOrOptions;
2112
2090
  finalOptions = options;
2113
2091
  if (options.schemas) {
2114
- schemas = require_src$1.resolveSchemas(options.schemas);
2092
+ schemas = require_src.resolveSchemas(options.schemas);
2115
2093
  preprocessConfig = options.preprocess;
2116
2094
  } else throw new Error("Either provide a model or schemas in options");
2117
2095
  }
@@ -2135,7 +2113,6 @@ async function prompt(modelOrOptions, interactiveOptions) {
2135
2113
  preprocess: preprocessConfig
2136
2114
  }).run();
2137
2115
  }
2138
- //#endregion
2139
2116
  Object.defineProperty(exports, "defaults_exports", {
2140
2117
  enumerable: true,
2141
2118
  get: function() {