lurqrun 0.1.5 → 0.1.7

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 (192) hide show
  1. package/README.md +23 -13
  2. package/dist/auditHandler-JCOJSUYW.js +23 -0
  3. package/dist/bin/lurq.js +3085 -17723
  4. package/dist/browserAuth-B6G27USY.js +95 -0
  5. package/dist/cache-DKI34SVS.js +12 -0
  6. package/dist/check-2FDGUOV7.js +192 -0
  7. package/dist/checkUpgrade-F2WESBPM.js +103 -0
  8. package/dist/chunk-2VMOWSRY.js +300 -0
  9. package/dist/chunk-3GHJR7XR.js +2049 -0
  10. package/dist/chunk-3N3Q3DSW.js +214 -0
  11. package/dist/chunk-4ESO33J6.js +34 -0
  12. package/dist/chunk-4F7ZESPO.js +132 -0
  13. package/dist/chunk-4KCPOMG6.js +68 -0
  14. package/dist/chunk-4ZYCIMY4.js +155 -0
  15. package/dist/chunk-63MUJNZL.js +318 -0
  16. package/dist/chunk-6AAEVQ7I.js +6336 -0
  17. package/dist/chunk-6EQ3ARXA.js +304 -0
  18. package/dist/chunk-6L3U7DZ5.js +23 -0
  19. package/dist/chunk-AHBP533R.js +220 -0
  20. package/dist/chunk-B43LCXBM.js +223 -0
  21. package/dist/chunk-BCANRN5B.js +33 -0
  22. package/dist/chunk-BUALU27S.js +123 -0
  23. package/dist/chunk-BULZAX2U.js +1554 -0
  24. package/dist/chunk-BV32UNLL.js +154 -0
  25. package/dist/chunk-C6GLE626.js +160 -0
  26. package/dist/chunk-CIDWNUAP.js +145 -0
  27. package/dist/chunk-CUP36ND3.js +2126 -0
  28. package/dist/chunk-CW5HJ3LX.js +96 -0
  29. package/dist/chunk-DB2VF5UD.js +315 -0
  30. package/dist/chunk-DWAGCNEL.js +210 -0
  31. package/dist/chunk-EA3DP5HG.js +293 -0
  32. package/dist/chunk-ELGCAM7P.js +184 -0
  33. package/dist/chunk-FW6BD2NO.js +1915 -0
  34. package/dist/chunk-GE37NVLN.js +15 -0
  35. package/dist/chunk-GPTKSNR6.js +171 -0
  36. package/dist/chunk-GRJXQBQZ.js +793 -0
  37. package/dist/chunk-HWBBVLOT.js +92 -0
  38. package/dist/chunk-I2JUKN6Z.js +24 -0
  39. package/dist/chunk-I3M2KJXB.js +56 -0
  40. package/dist/chunk-IQ4SDKKY.js +733 -0
  41. package/dist/chunk-J5FZYN4A.js +116 -0
  42. package/dist/chunk-L6N4JFW2.js +263 -0
  43. package/dist/chunk-LBFGSSF2.js +126 -0
  44. package/dist/chunk-LEGPB7DO.js +81 -0
  45. package/dist/chunk-LO35HLQZ.js +219 -0
  46. package/dist/chunk-LRD4GBYE.js +73 -0
  47. package/dist/chunk-LUAKDHLZ.js +40 -0
  48. package/dist/chunk-LYMPYETA.js +965 -0
  49. package/dist/chunk-M6NYEXCW.js +38 -0
  50. package/dist/chunk-MHUEVBVO.js +35 -0
  51. package/dist/chunk-MYGSLK44.js +37 -0
  52. package/dist/chunk-NH5I4KHH.js +201 -0
  53. package/dist/chunk-OQS4GUSI.js +1391 -0
  54. package/dist/chunk-PSX3GIAN.js +176 -0
  55. package/dist/chunk-Q5VPF4WI.js +26 -0
  56. package/dist/chunk-QKGYDMWB.js +7409 -0
  57. package/dist/chunk-QSL6QN5X.js +115 -0
  58. package/dist/chunk-SHCEBP3J.js +107 -0
  59. package/dist/chunk-SJOVFF7B.js +201 -0
  60. package/dist/chunk-ST2X2GYN.js +373 -0
  61. package/dist/chunk-TNTXWSYA.js +19 -0
  62. package/dist/chunk-U5AT3TD4.js +2128 -0
  63. package/dist/chunk-UDVNA7EA.js +483 -0
  64. package/dist/chunk-VL2E5T2A.js +109 -0
  65. package/dist/chunk-VLRHFMGJ.js +58 -0
  66. package/dist/chunk-WHX2ZFCG.js +4048 -0
  67. package/dist/chunk-WQ23REYT.js +37 -0
  68. package/dist/chunk-XBIDMHSK.js +15425 -0
  69. package/dist/chunk-Y5GI7RL3.js +66 -0
  70. package/dist/client-IRKAMDYZ.js +15 -0
  71. package/dist/commands-FIL5ET6P.js +911 -0
  72. package/dist/compat-R3UTFQ5Q.js +201 -0
  73. package/dist/dashboardIssue-WYYMBFIB.js +192 -0
  74. package/dist/diff-GZA2774U.js +13 -0
  75. package/dist/dist-4XXIXHHZ.js +12945 -0
  76. package/dist/e2b-FVPHDULZ.js +172 -0
  77. package/dist/extract-NKGKLIVT.js +444 -0
  78. package/dist/fetch-QYTUJVG2.js +22 -0
  79. package/dist/firstTouch-QQTJH4QX.js +55 -0
  80. package/dist/handlers-GEJAVZDK.js +53 -0
  81. package/dist/http-ETPYMBGD.js +5360 -0
  82. package/dist/ingestQueue-VKN4KBIF.js +35 -0
  83. package/dist/install-EK3W2COX.js +20 -0
  84. package/dist/installSkill-VQJWJVCL.js +52 -0
  85. package/dist/inventory-5AWSLJYU.js +31 -0
  86. package/dist/local-XPZMRH5R.js +13 -0
  87. package/dist/mcp-3JHD5SUZ.js +472 -0
  88. package/dist/mcpHandlers-QFN4MCFL.js +22 -0
  89. package/dist/mcpScan-QZHWENIP.js +1871 -0
  90. package/dist/mcpScanWorkflow-JPYCBGC4.js +81 -0
  91. package/dist/mcpStack-BYJCZNIV.js +20 -0
  92. package/dist/packages-THVFMWFP.js +42 -0
  93. package/dist/plan-V4OEI3J4.js +463 -0
  94. package/dist/planView-JRXGCG2N.js +79 -0
  95. package/dist/policy-3P6BGRDN.js +115 -0
  96. package/dist/references-6N7VEPHT.js +14 -0
  97. package/dist/release-4U4ABNSJ.js +128 -0
  98. package/dist/remote-YGCXYI4V.js +32 -0
  99. package/dist/reportRuns-CKQQYLY4.js +64 -0
  100. package/dist/sandbox-MEZLAODF.js +39 -0
  101. package/dist/server-KFUD5X57.js +55 -0
  102. package/dist/surface-V62GE554.js +141 -0
  103. package/dist/surface-YL6O67W3.js +36 -0
  104. package/dist/surfaceHandlers-X2IZKA3E.js +20 -0
  105. package/dist/typecheck-X7U5ELMR.js +268 -0
  106. package/dist/types-M5JP2W3D.js +10 -0
  107. package/dist/uninstall-P7RGBX6G.js +174 -0
  108. package/dist/upgrade-NQ5IWFZB.js +596 -0
  109. package/dist/upgradePlan-A4LRKLEG.js +146 -0
  110. package/dist/userConfig-Z3GQE776.js +20 -0
  111. package/dist/watch-DGFMWUDL.js +214 -0
  112. package/package.json +41 -26
  113. package/templates/agent-rules.md +4 -4
  114. package/templates/skill-instructions.md +18 -14
  115. package/dist/bin/lurq.js.map +0 -1
  116. package/dist/index.d.ts +0 -764
  117. package/dist/index.js +0 -17992
  118. package/dist/index.js.map +0 -1
  119. package/drizzle/0000_confused_fabian_cortez.sql +0 -54
  120. package/drizzle/0001_aspiring_timeslip.sql +0 -15
  121. package/drizzle/0002_lyrical_lila_cheney.sql +0 -14
  122. package/drizzle/0003_violet_giant_girl.sql +0 -14
  123. package/drizzle/0004_slim_valeria_richards.sql +0 -15
  124. package/drizzle/0005_petite_luke_cage.sql +0 -12
  125. package/drizzle/0006_calm_nighthawk.sql +0 -3
  126. package/drizzle/0007_slimy_naoko.sql +0 -1
  127. package/drizzle/0008_peaceful_tigra.sql +0 -1
  128. package/drizzle/0009_smooth_harrier.sql +0 -10
  129. package/drizzle/0010_curved_amphibian.sql +0 -2
  130. package/drizzle/0011_compat_provenance_closures.sql +0 -11
  131. package/drizzle/0012_api_surfaces.sql +0 -9
  132. package/drizzle/0013_nice_thanos.sql +0 -1
  133. package/drizzle/0014_luxuriant_malcolm_colcord.sql +0 -10
  134. package/drizzle/0015_past_fat_cobra.sql +0 -11
  135. package/drizzle/0016_futuristic_junta.sql +0 -50
  136. package/drizzle/0017_absent_grandmaster.sql +0 -20
  137. package/drizzle/0018_rainy_proemial_gods.sql +0 -1
  138. package/drizzle/0019_dashing_korvac.sql +0 -11
  139. package/drizzle/0020_normal_vulture.sql +0 -3
  140. package/drizzle/0021_dazzling_blue_shield.sql +0 -17
  141. package/drizzle/0022_massive_ghost_rider.sql +0 -24
  142. package/drizzle/0023_next_shatterstar.sql +0 -1
  143. package/drizzle/0024_dusty_maelstrom.sql +0 -15
  144. package/drizzle/0025_gifted_harpoon.sql +0 -5
  145. package/drizzle/0026_awesome_mordo.sql +0 -1
  146. package/drizzle/0027_charming_ulik.sql +0 -2
  147. package/drizzle/0028_romantic_loners.sql +0 -2
  148. package/drizzle/0029_busy_korvac.sql +0 -16
  149. package/drizzle/0030_steady_mathemanic.sql +0 -6
  150. package/drizzle/0031_redundant_maginty.sql +0 -2
  151. package/drizzle/0032_stack_resolutions.sql +0 -14
  152. package/drizzle/0033_graceful_tyger_tiger.sql +0 -3
  153. package/drizzle/0034_api_key_scopes.sql +0 -1
  154. package/drizzle/0035_policy_audit.sql +0 -21
  155. package/drizzle/meta/0000_snapshot.json +0 -370
  156. package/drizzle/meta/0001_snapshot.json +0 -482
  157. package/drizzle/meta/0002_snapshot.json +0 -575
  158. package/drizzle/meta/0003_snapshot.json +0 -667
  159. package/drizzle/meta/0004_snapshot.json +0 -769
  160. package/drizzle/meta/0005_snapshot.json +0 -864
  161. package/drizzle/meta/0006_snapshot.json +0 -882
  162. package/drizzle/meta/0007_snapshot.json +0 -876
  163. package/drizzle/meta/0008_snapshot.json +0 -882
  164. package/drizzle/meta/0009_snapshot.json +0 -948
  165. package/drizzle/meta/0010_snapshot.json +0 -969
  166. package/drizzle/meta/0011_snapshot.json +0 -1049
  167. package/drizzle/meta/0012_snapshot.json +0 -1115
  168. package/drizzle/meta/0013_snapshot.json +0 -1121
  169. package/drizzle/meta/0014_snapshot.json +0 -1190
  170. package/drizzle/meta/0015_snapshot.json +0 -1280
  171. package/drizzle/meta/0016_snapshot.json +0 -1683
  172. package/drizzle/meta/0017_snapshot.json +0 -1834
  173. package/drizzle/meta/0018_snapshot.json +0 -1834
  174. package/drizzle/meta/0019_snapshot.json +0 -1909
  175. package/drizzle/meta/0020_snapshot.json +0 -1921
  176. package/drizzle/meta/0021_snapshot.json +0 -2045
  177. package/drizzle/meta/0022_snapshot.json +0 -2246
  178. package/drizzle/meta/0023_snapshot.json +0 -2252
  179. package/drizzle/meta/0024_snapshot.json +0 -2375
  180. package/drizzle/meta/0025_snapshot.json +0 -2407
  181. package/drizzle/meta/0026_snapshot.json +0 -2413
  182. package/drizzle/meta/0027_snapshot.json +0 -2425
  183. package/drizzle/meta/0028_snapshot.json +0 -2438
  184. package/drizzle/meta/0029_snapshot.json +0 -2546
  185. package/drizzle/meta/0030_snapshot.json +0 -2586
  186. package/drizzle/meta/0031_snapshot.json +0 -2598
  187. package/drizzle/meta/0032_snapshot.json +0 -2699
  188. package/drizzle/meta/0033_snapshot.json +0 -2712
  189. package/drizzle/meta/0034_snapshot.json +0 -2719
  190. package/drizzle/meta/0035_snapshot.json +0 -2869
  191. package/drizzle/meta/_journal.json +0 -258
  192. package/src/data/seed.json +0 -253
@@ -0,0 +1,793 @@
1
+ import { createRequire as __lurqCreateRequire } from 'node:module'; const require = __lurqCreateRequire(import.meta.url);
2
+ import {
3
+ BRAND,
4
+ DIRTY,
5
+ EMPTY_PATH,
6
+ INVALID,
7
+ NEVER,
8
+ OK,
9
+ ParseStatus,
10
+ ZodAny,
11
+ ZodArray,
12
+ ZodBigInt,
13
+ ZodBoolean,
14
+ ZodBranded,
15
+ ZodCatch,
16
+ ZodDate,
17
+ ZodDefault,
18
+ ZodDiscriminatedUnion,
19
+ ZodEffects,
20
+ ZodEnum,
21
+ ZodError,
22
+ ZodFirstPartyTypeKind,
23
+ ZodFunction,
24
+ ZodIntersection,
25
+ ZodIssueCode,
26
+ ZodLazy,
27
+ ZodLiteral,
28
+ ZodMap,
29
+ ZodNaN,
30
+ ZodNativeEnum,
31
+ ZodNever,
32
+ ZodNull,
33
+ ZodNullable,
34
+ ZodNumber,
35
+ ZodObject,
36
+ ZodOptional,
37
+ ZodParsedType,
38
+ ZodPipeline,
39
+ ZodPromise,
40
+ ZodReadonly,
41
+ ZodRecord,
42
+ ZodSet,
43
+ ZodString,
44
+ ZodSymbol,
45
+ ZodTuple,
46
+ ZodType,
47
+ ZodUndefined,
48
+ ZodUnion,
49
+ ZodUnknown,
50
+ ZodVoid,
51
+ addIssueToContext,
52
+ anyType,
53
+ arrayType,
54
+ bigIntType,
55
+ booleanType,
56
+ coerce,
57
+ custom,
58
+ dateType,
59
+ datetimeRegex,
60
+ discriminatedUnionType,
61
+ effectsType,
62
+ en_default,
63
+ enumType,
64
+ functionType,
65
+ getErrorMap,
66
+ getParsedType,
67
+ instanceOfType,
68
+ intersectionType,
69
+ isAborted,
70
+ isAsync,
71
+ isDirty,
72
+ isValid,
73
+ late,
74
+ lazyType,
75
+ literalType,
76
+ makeIssue,
77
+ mapType,
78
+ nanType,
79
+ nativeEnumType,
80
+ neverType,
81
+ nullType,
82
+ nullableType,
83
+ numberType,
84
+ objectType,
85
+ objectUtil,
86
+ oboolean,
87
+ onumber,
88
+ optionalType,
89
+ ostring,
90
+ pipelineType,
91
+ preprocessType,
92
+ promiseType,
93
+ quotelessJson,
94
+ recordType,
95
+ setErrorMap,
96
+ setType,
97
+ strictObjectType,
98
+ stringType,
99
+ symbolType,
100
+ tupleType,
101
+ undefinedType,
102
+ unionType,
103
+ unknownType,
104
+ util,
105
+ voidType
106
+ } from "./chunk-WHX2ZFCG.js";
107
+ import {
108
+ __commonJS,
109
+ __export,
110
+ __require,
111
+ __toESM,
112
+ init_esm_shims
113
+ } from "./chunk-I3M2KJXB.js";
114
+
115
+ // node_modules/dotenv/package.json
116
+ var require_package = __commonJS({
117
+ "node_modules/dotenv/package.json"(exports, module) {
118
+ module.exports = {
119
+ name: "dotenv",
120
+ version: "16.6.1",
121
+ description: "Loads environment variables from .env file",
122
+ main: "lib/main.js",
123
+ types: "lib/main.d.ts",
124
+ exports: {
125
+ ".": {
126
+ types: "./lib/main.d.ts",
127
+ require: "./lib/main.js",
128
+ default: "./lib/main.js"
129
+ },
130
+ "./config": "./config.js",
131
+ "./config.js": "./config.js",
132
+ "./lib/env-options": "./lib/env-options.js",
133
+ "./lib/env-options.js": "./lib/env-options.js",
134
+ "./lib/cli-options": "./lib/cli-options.js",
135
+ "./lib/cli-options.js": "./lib/cli-options.js",
136
+ "./package.json": "./package.json"
137
+ },
138
+ scripts: {
139
+ "dts-check": "tsc --project tests/types/tsconfig.json",
140
+ lint: "standard",
141
+ pretest: "npm run lint && npm run dts-check",
142
+ test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
143
+ "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",
144
+ prerelease: "npm test",
145
+ release: "standard-version"
146
+ },
147
+ repository: {
148
+ type: "git",
149
+ url: "git://github.com/motdotla/dotenv.git"
150
+ },
151
+ homepage: "https://github.com/motdotla/dotenv#readme",
152
+ funding: "https://dotenvx.com",
153
+ keywords: [
154
+ "dotenv",
155
+ "env",
156
+ ".env",
157
+ "environment",
158
+ "variables",
159
+ "config",
160
+ "settings"
161
+ ],
162
+ readmeFilename: "README.md",
163
+ license: "BSD-2-Clause",
164
+ devDependencies: {
165
+ "@types/node": "^18.11.3",
166
+ decache: "^4.6.2",
167
+ sinon: "^14.0.1",
168
+ standard: "^17.0.0",
169
+ "standard-version": "^9.5.0",
170
+ tap: "^19.2.0",
171
+ typescript: "^4.8.4"
172
+ },
173
+ engines: {
174
+ node: ">=12"
175
+ },
176
+ browser: {
177
+ fs: false
178
+ }
179
+ };
180
+ }
181
+ });
182
+
183
+ // node_modules/dotenv/lib/main.js
184
+ var require_main = __commonJS({
185
+ "node_modules/dotenv/lib/main.js"(exports, module) {
186
+ "use strict";
187
+ init_esm_shims();
188
+ var fs = __require("fs");
189
+ var path = __require("path");
190
+ var os = __require("os");
191
+ var crypto = __require("crypto");
192
+ var packageJson = require_package();
193
+ var version = packageJson.version;
194
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
195
+ function parse(src) {
196
+ const obj = {};
197
+ let lines = src.toString();
198
+ lines = lines.replace(/\r\n?/mg, "\n");
199
+ let match;
200
+ while ((match = LINE.exec(lines)) != null) {
201
+ const key = match[1];
202
+ let value = match[2] || "";
203
+ value = value.trim();
204
+ const maybeQuote = value[0];
205
+ value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
206
+ if (maybeQuote === '"') {
207
+ value = value.replace(/\\n/g, "\n");
208
+ value = value.replace(/\\r/g, "\r");
209
+ }
210
+ obj[key] = value;
211
+ }
212
+ return obj;
213
+ }
214
+ function _parseVault(options) {
215
+ options = options || {};
216
+ const vaultPath = _vaultPath(options);
217
+ options.path = vaultPath;
218
+ const result = DotenvModule.configDotenv(options);
219
+ if (!result.parsed) {
220
+ const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
221
+ err.code = "MISSING_DATA";
222
+ throw err;
223
+ }
224
+ const keys = _dotenvKey(options).split(",");
225
+ const length = keys.length;
226
+ let decrypted;
227
+ for (let i = 0; i < length; i++) {
228
+ try {
229
+ const key = keys[i].trim();
230
+ const attrs = _instructions(result, key);
231
+ decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
232
+ break;
233
+ } catch (error) {
234
+ if (i + 1 >= length) {
235
+ throw error;
236
+ }
237
+ }
238
+ }
239
+ return DotenvModule.parse(decrypted);
240
+ }
241
+ function _warn(message) {
242
+ console.log(`[dotenv@${version}][WARN] ${message}`);
243
+ }
244
+ function _debug(message) {
245
+ console.log(`[dotenv@${version}][DEBUG] ${message}`);
246
+ }
247
+ function _log(message) {
248
+ console.log(`[dotenv@${version}] ${message}`);
249
+ }
250
+ function _dotenvKey(options) {
251
+ if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
252
+ return options.DOTENV_KEY;
253
+ }
254
+ if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
255
+ return process.env.DOTENV_KEY;
256
+ }
257
+ return "";
258
+ }
259
+ function _instructions(result, dotenvKey) {
260
+ let uri;
261
+ try {
262
+ uri = new URL(dotenvKey);
263
+ } catch (error) {
264
+ if (error.code === "ERR_INVALID_URL") {
265
+ const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
266
+ err.code = "INVALID_DOTENV_KEY";
267
+ throw err;
268
+ }
269
+ throw error;
270
+ }
271
+ const key = uri.password;
272
+ if (!key) {
273
+ const err = new Error("INVALID_DOTENV_KEY: Missing key part");
274
+ err.code = "INVALID_DOTENV_KEY";
275
+ throw err;
276
+ }
277
+ const environment = uri.searchParams.get("environment");
278
+ if (!environment) {
279
+ const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
280
+ err.code = "INVALID_DOTENV_KEY";
281
+ throw err;
282
+ }
283
+ const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
284
+ const ciphertext = result.parsed[environmentKey];
285
+ if (!ciphertext) {
286
+ const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
287
+ err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
288
+ throw err;
289
+ }
290
+ return { ciphertext, key };
291
+ }
292
+ function _vaultPath(options) {
293
+ let possibleVaultPath = null;
294
+ if (options && options.path && options.path.length > 0) {
295
+ if (Array.isArray(options.path)) {
296
+ for (const filepath of options.path) {
297
+ if (fs.existsSync(filepath)) {
298
+ possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
299
+ }
300
+ }
301
+ } else {
302
+ possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
303
+ }
304
+ } else {
305
+ possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
306
+ }
307
+ if (fs.existsSync(possibleVaultPath)) {
308
+ return possibleVaultPath;
309
+ }
310
+ return null;
311
+ }
312
+ function _resolveHome(envPath) {
313
+ return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
314
+ }
315
+ function _configVault(options) {
316
+ const debug = Boolean(options && options.debug);
317
+ const quiet = options && "quiet" in options ? options.quiet : true;
318
+ if (debug || !quiet) {
319
+ _log("Loading env from encrypted .env.vault");
320
+ }
321
+ const parsed = DotenvModule._parseVault(options);
322
+ let processEnv = process.env;
323
+ if (options && options.processEnv != null) {
324
+ processEnv = options.processEnv;
325
+ }
326
+ DotenvModule.populate(processEnv, parsed, options);
327
+ return { parsed };
328
+ }
329
+ function configDotenv(options) {
330
+ const dotenvPath = path.resolve(process.cwd(), ".env");
331
+ let encoding = "utf8";
332
+ const debug = Boolean(options && options.debug);
333
+ const quiet = options && "quiet" in options ? options.quiet : true;
334
+ if (options && options.encoding) {
335
+ encoding = options.encoding;
336
+ } else {
337
+ if (debug) {
338
+ _debug("No encoding is specified. UTF-8 is used by default");
339
+ }
340
+ }
341
+ let optionPaths = [dotenvPath];
342
+ if (options && options.path) {
343
+ if (!Array.isArray(options.path)) {
344
+ optionPaths = [_resolveHome(options.path)];
345
+ } else {
346
+ optionPaths = [];
347
+ for (const filepath of options.path) {
348
+ optionPaths.push(_resolveHome(filepath));
349
+ }
350
+ }
351
+ }
352
+ let lastError;
353
+ const parsedAll = {};
354
+ for (const path2 of optionPaths) {
355
+ try {
356
+ const parsed = DotenvModule.parse(fs.readFileSync(path2, { encoding }));
357
+ DotenvModule.populate(parsedAll, parsed, options);
358
+ } catch (e) {
359
+ if (debug) {
360
+ _debug(`Failed to load ${path2} ${e.message}`);
361
+ }
362
+ lastError = e;
363
+ }
364
+ }
365
+ let processEnv = process.env;
366
+ if (options && options.processEnv != null) {
367
+ processEnv = options.processEnv;
368
+ }
369
+ DotenvModule.populate(processEnv, parsedAll, options);
370
+ if (debug || !quiet) {
371
+ const keysCount = Object.keys(parsedAll).length;
372
+ const shortPaths = [];
373
+ for (const filePath of optionPaths) {
374
+ try {
375
+ const relative = path.relative(process.cwd(), filePath);
376
+ shortPaths.push(relative);
377
+ } catch (e) {
378
+ if (debug) {
379
+ _debug(`Failed to load ${filePath} ${e.message}`);
380
+ }
381
+ lastError = e;
382
+ }
383
+ }
384
+ _log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
385
+ }
386
+ if (lastError) {
387
+ return { parsed: parsedAll, error: lastError };
388
+ } else {
389
+ return { parsed: parsedAll };
390
+ }
391
+ }
392
+ function config(options) {
393
+ if (_dotenvKey(options).length === 0) {
394
+ return DotenvModule.configDotenv(options);
395
+ }
396
+ const vaultPath = _vaultPath(options);
397
+ if (!vaultPath) {
398
+ _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
399
+ return DotenvModule.configDotenv(options);
400
+ }
401
+ return DotenvModule._configVault(options);
402
+ }
403
+ function decrypt(encrypted, keyStr) {
404
+ const key = Buffer.from(keyStr.slice(-64), "hex");
405
+ let ciphertext = Buffer.from(encrypted, "base64");
406
+ const nonce = ciphertext.subarray(0, 12);
407
+ const authTag = ciphertext.subarray(-16);
408
+ ciphertext = ciphertext.subarray(12, -16);
409
+ try {
410
+ const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
411
+ aesgcm.setAuthTag(authTag);
412
+ return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
413
+ } catch (error) {
414
+ const isRange = error instanceof RangeError;
415
+ const invalidKeyLength = error.message === "Invalid key length";
416
+ const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
417
+ if (isRange || invalidKeyLength) {
418
+ const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
419
+ err.code = "INVALID_DOTENV_KEY";
420
+ throw err;
421
+ } else if (decryptionFailed) {
422
+ const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
423
+ err.code = "DECRYPTION_FAILED";
424
+ throw err;
425
+ } else {
426
+ throw error;
427
+ }
428
+ }
429
+ }
430
+ function populate(processEnv, parsed, options = {}) {
431
+ const debug = Boolean(options && options.debug);
432
+ const override = Boolean(options && options.override);
433
+ if (typeof parsed !== "object") {
434
+ const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
435
+ err.code = "OBJECT_REQUIRED";
436
+ throw err;
437
+ }
438
+ for (const key of Object.keys(parsed)) {
439
+ if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
440
+ if (override === true) {
441
+ processEnv[key] = parsed[key];
442
+ }
443
+ if (debug) {
444
+ if (override === true) {
445
+ _debug(`"${key}" is already defined and WAS overwritten`);
446
+ } else {
447
+ _debug(`"${key}" is already defined and was NOT overwritten`);
448
+ }
449
+ }
450
+ } else {
451
+ processEnv[key] = parsed[key];
452
+ }
453
+ }
454
+ }
455
+ var DotenvModule = {
456
+ configDotenv,
457
+ _configVault,
458
+ _parseVault,
459
+ config,
460
+ decrypt,
461
+ parse,
462
+ populate
463
+ };
464
+ module.exports.configDotenv = DotenvModule.configDotenv;
465
+ module.exports._configVault = DotenvModule._configVault;
466
+ module.exports._parseVault = DotenvModule._parseVault;
467
+ module.exports.config = DotenvModule.config;
468
+ module.exports.decrypt = DotenvModule.decrypt;
469
+ module.exports.parse = DotenvModule.parse;
470
+ module.exports.populate = DotenvModule.populate;
471
+ module.exports = DotenvModule;
472
+ }
473
+ });
474
+
475
+ // node_modules/zod/v3/external.js
476
+ var external_exports = {};
477
+ __export(external_exports, {
478
+ BRAND: () => BRAND,
479
+ DIRTY: () => DIRTY,
480
+ EMPTY_PATH: () => EMPTY_PATH,
481
+ INVALID: () => INVALID,
482
+ NEVER: () => NEVER,
483
+ OK: () => OK,
484
+ ParseStatus: () => ParseStatus,
485
+ Schema: () => ZodType,
486
+ ZodAny: () => ZodAny,
487
+ ZodArray: () => ZodArray,
488
+ ZodBigInt: () => ZodBigInt,
489
+ ZodBoolean: () => ZodBoolean,
490
+ ZodBranded: () => ZodBranded,
491
+ ZodCatch: () => ZodCatch,
492
+ ZodDate: () => ZodDate,
493
+ ZodDefault: () => ZodDefault,
494
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
495
+ ZodEffects: () => ZodEffects,
496
+ ZodEnum: () => ZodEnum,
497
+ ZodError: () => ZodError,
498
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
499
+ ZodFunction: () => ZodFunction,
500
+ ZodIntersection: () => ZodIntersection,
501
+ ZodIssueCode: () => ZodIssueCode,
502
+ ZodLazy: () => ZodLazy,
503
+ ZodLiteral: () => ZodLiteral,
504
+ ZodMap: () => ZodMap,
505
+ ZodNaN: () => ZodNaN,
506
+ ZodNativeEnum: () => ZodNativeEnum,
507
+ ZodNever: () => ZodNever,
508
+ ZodNull: () => ZodNull,
509
+ ZodNullable: () => ZodNullable,
510
+ ZodNumber: () => ZodNumber,
511
+ ZodObject: () => ZodObject,
512
+ ZodOptional: () => ZodOptional,
513
+ ZodParsedType: () => ZodParsedType,
514
+ ZodPipeline: () => ZodPipeline,
515
+ ZodPromise: () => ZodPromise,
516
+ ZodReadonly: () => ZodReadonly,
517
+ ZodRecord: () => ZodRecord,
518
+ ZodSchema: () => ZodType,
519
+ ZodSet: () => ZodSet,
520
+ ZodString: () => ZodString,
521
+ ZodSymbol: () => ZodSymbol,
522
+ ZodTransformer: () => ZodEffects,
523
+ ZodTuple: () => ZodTuple,
524
+ ZodType: () => ZodType,
525
+ ZodUndefined: () => ZodUndefined,
526
+ ZodUnion: () => ZodUnion,
527
+ ZodUnknown: () => ZodUnknown,
528
+ ZodVoid: () => ZodVoid,
529
+ addIssueToContext: () => addIssueToContext,
530
+ any: () => anyType,
531
+ array: () => arrayType,
532
+ bigint: () => bigIntType,
533
+ boolean: () => booleanType,
534
+ coerce: () => coerce,
535
+ custom: () => custom,
536
+ date: () => dateType,
537
+ datetimeRegex: () => datetimeRegex,
538
+ defaultErrorMap: () => en_default,
539
+ discriminatedUnion: () => discriminatedUnionType,
540
+ effect: () => effectsType,
541
+ enum: () => enumType,
542
+ function: () => functionType,
543
+ getErrorMap: () => getErrorMap,
544
+ getParsedType: () => getParsedType,
545
+ instanceof: () => instanceOfType,
546
+ intersection: () => intersectionType,
547
+ isAborted: () => isAborted,
548
+ isAsync: () => isAsync,
549
+ isDirty: () => isDirty,
550
+ isValid: () => isValid,
551
+ late: () => late,
552
+ lazy: () => lazyType,
553
+ literal: () => literalType,
554
+ makeIssue: () => makeIssue,
555
+ map: () => mapType,
556
+ nan: () => nanType,
557
+ nativeEnum: () => nativeEnumType,
558
+ never: () => neverType,
559
+ null: () => nullType,
560
+ nullable: () => nullableType,
561
+ number: () => numberType,
562
+ object: () => objectType,
563
+ objectUtil: () => objectUtil,
564
+ oboolean: () => oboolean,
565
+ onumber: () => onumber,
566
+ optional: () => optionalType,
567
+ ostring: () => ostring,
568
+ pipeline: () => pipelineType,
569
+ preprocess: () => preprocessType,
570
+ promise: () => promiseType,
571
+ quotelessJson: () => quotelessJson,
572
+ record: () => recordType,
573
+ set: () => setType,
574
+ setErrorMap: () => setErrorMap,
575
+ strictObject: () => strictObjectType,
576
+ string: () => stringType,
577
+ symbol: () => symbolType,
578
+ transformer: () => effectsType,
579
+ tuple: () => tupleType,
580
+ undefined: () => undefinedType,
581
+ union: () => unionType,
582
+ unknown: () => unknownType,
583
+ util: () => util,
584
+ void: () => voidType
585
+ });
586
+ init_esm_shims();
587
+
588
+ // node_modules/zod/index.js
589
+ init_esm_shims();
590
+
591
+ // src/core/config.ts
592
+ init_esm_shims();
593
+ var import_dotenv = __toESM(require_main(), 1);
594
+ var envLoaded = false;
595
+ function loadEnv() {
596
+ if (envLoaded) return;
597
+ const overrideFile = process.env.LURQ_ENV_FILE;
598
+ if (overrideFile) (0, import_dotenv.config)({ path: overrideFile });
599
+ (0, import_dotenv.config)();
600
+ envLoaded = true;
601
+ }
602
+ var EnvSchema = external_exports.object({
603
+ DATABASE_URL: external_exports.string().min(1).optional(),
604
+ GITHUB_TOKEN: external_exports.string().min(1).optional(),
605
+ // 'openai' here means "OpenAI-compatible" — any provider exposing /v1/embeddings
606
+ // + Bearer auth (OpenAI, Together, Fireworks, HF TEI, …). Point *_BASE_URL at it.
607
+ EMBEDDING_PROVIDER: external_exports.enum(["openai", "local"]).default("openai"),
608
+ EMBEDDING_API_KEY: external_exports.string().min(1).optional(),
609
+ EMBEDDING_MODEL: external_exports.string().min(1).default("text-embedding-3-small"),
610
+ EMBEDDING_BASE_URL: external_exports.string().url().default("https://api.openai.com/v1"),
611
+ // 'openai' means "OpenAI-compatible /v1/chat/completions": OpenAI, Groq, Together,
612
+ // Fireworks, xAI (Grok), etc. Swap provider by setting SUMMARY_BASE_URL + key + model.
613
+ SUMMARY_PROVIDER: external_exports.enum(["openai", "none"]).default("openai"),
614
+ SUMMARY_API_KEY: external_exports.string().min(1).optional(),
615
+ SUMMARY_MODEL: external_exports.string().min(1).default("gpt-4o-mini"),
616
+ SUMMARY_BASE_URL: external_exports.string().url().default("https://api.openai.com/v1"),
617
+ /**
618
+ * How many `npm install --package-lock-only` processes may run at once.
619
+ *
620
+ * Each one holds npm's arborist tree in memory — 200-500MB for a real stack —
621
+ * so this is a memory cap wearing a concurrency hat. Eight concurrent resolves
622
+ * is ~3GB and will OOM a small container; the work is network-bound anyway, so
623
+ * raising it buys throughput only until the box runs out of RAM.
624
+ */
625
+ LURQ_RESOLVE_CONCURRENCY: external_exports.coerce.number().int().positive().max(32).default(4),
626
+ /**
627
+ * Where npm keeps its metadata cache for stack resolution.
628
+ *
629
+ * Point this at a persistent volume in production. A warm cache is the
630
+ * difference between 8.6s and 19.2s on a 15-package stack (measured), and an
631
+ * ephemeral container filesystem means every redeploy pays cold cost again for
632
+ * the first few hundred resolves. Unset = npm's default location.
633
+ */
634
+ LURQ_NPM_CACHE_DIR: external_exports.string().min(1).optional(),
635
+ /** Budget for one stack resolve. Past this the answer is `unknown`, never a
636
+ * guess — and nothing is cached, so the next ask gets a real attempt. */
637
+ LURQ_RESOLVE_TIMEOUT_MS: external_exports.coerce.number().int().positive().default(25e3),
638
+ LURQ_SYNC_CONCURRENCY: external_exports.coerce.number().int().positive().max(50).default(5),
639
+ /** Stalest non-seed packages the daily sync refreshes on top of the seed list.
640
+ * This is the rotation rate for everything discovery ingested: index size /
641
+ * this = days to come all the way around. Raise it if the sync finishes well
642
+ * inside the cron window; lower it if npm starts rate-limiting. 0 disables
643
+ * the rotation (seeds only, the pre-rotation behaviour).
644
+ *
645
+ * It is also the discovery frontier's clock, which is why it is not a small
646
+ * number. `graphChannel` re-expands a package only when its `latest_version`
647
+ * moves, and nothing observes a version move except this rotation — so at 400
648
+ * against a 20.8k index the graph channel could only re-arm on a 52-day lag
649
+ * and had gone effectively silent. */
650
+ LURQ_SYNC_REFRESH_CAP: external_exports.coerce.number().int().min(0).max(25e3).default(2e3),
651
+ LOG_LEVEL: external_exports.enum(["error", "warn", "info", "debug"]).default("info"),
652
+ // Hosted HTTP service (`serve-http`). Server-side only.
653
+ PORT: external_exports.coerce.number().int().positive().default(8080),
654
+ /** Per-API-key rate limit: max requests per window. */
655
+ LURQ_RATE_LIMIT_MAX: external_exports.coerce.number().int().positive().default(120),
656
+ /** Coarser per-IP rate limit (blunts unauthenticated floods before auth). */
657
+ LURQ_IP_RATE_LIMIT_MAX: external_exports.coerce.number().int().positive().default(240),
658
+ /** Per-IP limit for `POST /scan/public`, the one unauthenticated route that
659
+ * reads GitHub, queries the database, and queues ingestion work. The coarse
660
+ * IP limit is the wrong ceiling for it: 240 scans a minute is nothing for a
661
+ * JSON-RPC caller and a great deal of somebody else's GitHub budget. */
662
+ LURQ_SCAN_RATE_LIMIT_MAX: external_exports.coerce.number().int().positive().default(10),
663
+ /** Rate-limit window, milliseconds (applies to both limiters). */
664
+ LURQ_RATE_LIMIT_WINDOW_MS: external_exports.coerce.number().int().positive().default(6e4),
665
+ /** Bearer token guarding `/metrics`. Unset → the endpoint is disabled (404). */
666
+ LURQ_METRICS_TOKEN: external_exports.string().min(1).optional(),
667
+ /** Shared secret for self-serve key issuance (`POST /keys`). The Clerk-
668
+ * authenticated web app presents it to mint a key for a signed-in user. Unset
669
+ * → the endpoint is disabled (404). Keep it server-side, never in the client. */
670
+ LURQ_ISSUER_SECRET: external_exports.string().min(1).optional(),
671
+ /** PostHog project token (the public `phc_…` one, same as the web app's).
672
+ * Set → the hosted service sends account-keyed product events (key issued,
673
+ * tool called) that join the web app's identified visitors. Unset → nothing
674
+ * is sent, which is every local and stdio install. */
675
+ LURQ_POSTHOG_KEY: external_exports.string().min(1).optional(),
676
+ /** Slack- or Discord-compatible incoming webhook URL for operator alerts
677
+ * (core/alert.ts): webhook processing failures and 5xx responses, rate
678
+ * limited. Unset → nothing is sent. */
679
+ LURQ_ALERT_WEBHOOK_URL: external_exports.string().url().optional(),
680
+ /** Resend API key for account email: urgent alerts and the opt-in weekly
681
+ * summary. Unset → nothing is sent; the dashboard and CLI still show all of it. */
682
+ RESEND_API_KEY: external_exports.string().min(1).optional(),
683
+ /** Sender, on a Resend-verified domain. */
684
+ LURQ_MAIL_FROM: external_exports.string().min(3).default("lurq <alerts@lurq.run>"),
685
+ /** Clerk secret key, used only to read a recipient's verified primary email at
686
+ * send time — lurq stores no email addresses. Unset → nothing is sent. */
687
+ CLERK_SECRET_KEY: external_exports.string().min(1).optional(),
688
+ /** 32 random bytes, base64 (`openssl rand -base64 32`). Encrypts stored
689
+ * Slack/Discord/Teams/webhook URLs, which are credentials. Unset → alert
690
+ * channels are disabled rather than stored in the clear. */
691
+ LURQ_SECRETS_KEY: external_exports.string().min(1).optional(),
692
+ // Billing (Stripe). Every secret here lives on this service and nowhere else:
693
+ // the web app holds no Stripe credential and reaches checkout through the
694
+ // issuer-secret routes, the same way it reaches key issuance. Unset →
695
+ // /billing/* is disabled (404) and every account is served the free tier, so
696
+ // a deployment without Stripe configured degrades to "free for everyone"
697
+ // rather than to "nobody can call anything".
698
+ STRIPE_SECRET_KEY: external_exports.string().min(1).optional(),
699
+ /** Signing secret for `POST /billing/webhook`. Unset → the endpoint is 404. */
700
+ STRIPE_WEBHOOK_SECRET: external_exports.string().min(1).optional(),
701
+ /** Price id backing the Pro plan. Unset → Pro cannot be checked out. */
702
+ /**
703
+ * Whether Stripe Managed Payments applies to our Checkout Sessions: Stripe as
704
+ * merchant of record, taking over indirect tax registration and remittance,
705
+ * disputes and fraud — the half `automatic_tax` alone does not buy.
706
+ *
707
+ * ALWAYS SENT, in both directions, and that is the point. Managed Payments has
708
+ * an account-level default (on, for accounts created since it shipped), so
709
+ * omitting the parameter hands the decision to a dashboard toggle instead of
710
+ * to config. That is action at a distance: the same deploy behaves differently
711
+ * per account, and the failure it produces is a 400 at the moment someone
712
+ * tries to pay. Sending it explicitly makes the deployment the authority.
713
+ *
714
+ * Defaults true to match the account default. Every product must carry an
715
+ * eligible `tax_code` (see billing/provision.ts) or Stripe rejects the session,
716
+ * so `false` is the one-variable escape hatch if eligibility is ever in doubt.
717
+ */
718
+ STRIPE_MANAGED_PAYMENTS: external_exports.enum(["true", "false"]).default("true").transform((v) => v === "true"),
719
+ STRIPE_PRICE_PRO: external_exports.string().min(1).optional(),
720
+ /** Per-seat Price id backing Team. The subscription quantity is the seat count. */
721
+ STRIPE_PRICE_TEAM: external_exports.string().min(1).optional(),
722
+ /** Yearly Price ids, 20% under twelve months (core/plans ANNUAL_DISCOUNT). */
723
+ STRIPE_PRICE_PRO_ANNUAL: external_exports.string().min(1).optional(),
724
+ STRIPE_PRICE_TEAM_ANNUAL: external_exports.string().min(1).optional(),
725
+ /** Metered Price billed from the overage meter, attached to monthly Team. */
726
+ STRIPE_PRICE_TEAM_OVERAGE: external_exports.string().min(1).optional(),
727
+ /** Price id backing Enterprise. Normally unset: Enterprise is sold by
728
+ * conversation, and `contactOnly` in core/plans.ts is what the page reads. */
729
+ STRIPE_PRICE_ENTERPRISE: external_exports.string().min(1).optional(),
730
+ /** Absolute base URL the checkout returns to, e.g. https://lurq.run. */
731
+ LURQ_WEB_URL: external_exports.string().url().default("https://lurq.run"),
732
+ // GitHub App (repo autopilot). Only the App itself holds repo access; lurq
733
+ // never stores a user's personal token. Either unset → /repos is disabled (404).
734
+ // The App *slug* is deliberately not here: only the web app needs it, to build
735
+ // the install link, and it reads process.env directly.
736
+ /** Numeric App ID from the GitHub App settings page. */
737
+ LURQ_GITHUB_APP_ID: external_exports.string().min(1).optional(),
738
+ /** PEM private key. Accepts literal newlines or `\n` escapes (Railway/Vercel). */
739
+ LURQ_GITHUB_APP_PRIVATE_KEY: external_exports.string().min(1).optional(),
740
+ /** Webhook secret from the same App settings page, so repo changes made on
741
+ * GitHub reach us. Unset → `POST /github/webhook` is disabled (404): an
742
+ * unverified webhook is an open write endpoint, so no secret means no route. */
743
+ LURQ_GITHUB_WEBHOOK_SECRET: external_exports.string().min(1).optional(),
744
+ // Client-side (install wizard / CLI talking to a remote endpoint).
745
+ LURQ_ENDPOINT: external_exports.string().url().optional(),
746
+ LURQ_API_KEY: external_exports.string().min(1).optional(),
747
+ // Sandbox verification. With E2B_API_KEY set, package install + smoke-load
748
+ // runs in an isolated E2B cloud sandbox (safe for UNTRUSTED packages);
749
+ // without it, the local child-process driver is used (trusted packages only).
750
+ E2B_API_KEY: external_exports.string().min(1).optional(),
751
+ // E2B template to launch. Must provide node + npm on PATH; omit for E2B's
752
+ // default. Provision a Node-versioned template here for reproducible runs.
753
+ E2B_TEMPLATE: external_exports.string().min(1).optional(),
754
+ // Lurq bakeoff testing toggle b/w local and prod DB
755
+ USE_LIVE_API: external_exports.string().min(1).optional()
756
+ });
757
+ var ConfigError = class extends Error {
758
+ constructor(message) {
759
+ super(message);
760
+ this.name = "ConfigError";
761
+ }
762
+ };
763
+ var cached;
764
+ function getConfig() {
765
+ if (cached) return cached;
766
+ loadEnv();
767
+ const parsed = EnvSchema.safeParse(process.env);
768
+ if (!parsed.success) {
769
+ const issues = parsed.error.issues.map((i) => ` - ${i.path.join(".")}: ${i.message}`).join("\n");
770
+ throw new ConfigError(`Invalid environment configuration:
771
+ ${issues}`);
772
+ }
773
+ cached = parsed.data;
774
+ return cached;
775
+ }
776
+ function requireConfig(keys) {
777
+ const config = getConfig();
778
+ const missing = keys.filter((k) => config[k] === void 0 || config[k] === "");
779
+ if (missing.length > 0) {
780
+ throw new ConfigError(
781
+ `Missing required environment variable(s): ${missing.join(", ")}.
782
+ See .env.example for setup. Tip: copy it to .env and fill in the values.`
783
+ );
784
+ }
785
+ return config;
786
+ }
787
+
788
+ export {
789
+ external_exports,
790
+ loadEnv,
791
+ getConfig,
792
+ requireConfig
793
+ };