@storm-software/cloudflare-tools 0.63.55 → 0.63.62

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 (40) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +1 -2
  3. package/dist/chunk-2CDSXWFA.js +311 -0
  4. package/dist/{chunk-Q5XL7K7Z.mjs → chunk-47LTDAIV.mjs} +4 -4
  5. package/dist/{chunk-MB54NXKO.mjs → chunk-7ZAYEHFL.mjs} +11 -9
  6. package/dist/{chunk-AOAXSMD4.js → chunk-FULKT5FT.js} +121 -119
  7. package/dist/{chunk-TOB7OQN4.js → chunk-FVFZRRXE.js} +1 -1
  8. package/dist/{chunk-BRPTGDS4.mjs → chunk-IANDAPQS.mjs} +1 -1
  9. package/dist/{chunk-ADVG6LVE.mjs → chunk-LJBM3BJ3.mjs} +650 -14
  10. package/dist/chunk-MHMPOWJN.js +1370 -0
  11. package/dist/{chunk-57WTY3UY.js → chunk-NCQM44P3.js} +3 -3
  12. package/dist/{chunk-HSHWXMVT.mjs → chunk-OULGED23.mjs} +4 -4
  13. package/dist/{chunk-P45GT4VW.js → chunk-Q5A6EYKA.js} +12 -12
  14. package/dist/{chunk-X2ML265T.js → chunk-R6LCC4LT.js} +16 -16
  15. package/dist/{chunk-5GUQUTLT.mjs → chunk-TGT6YRXK.mjs} +1 -1
  16. package/dist/chunk-V44DYGWX.mjs +311 -0
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +2 -2
  38. package/dist/chunk-AZSS2TUS.mjs +0 -879
  39. package/dist/chunk-KDRIR55G.js +0 -879
  40. package/dist/chunk-UOEUE2GI.js +0 -734
@@ -0,0 +1,1370 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
9
+
10
+ // ../config-tools/src/utilities/correct-paths.ts
11
+ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
12
+ function normalizeWindowsPath(input = "") {
13
+ if (!input) {
14
+ return input;
15
+ }
16
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
17
+ }
18
+ var _UNC_REGEX = /^[/\\]{2}/;
19
+ var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
20
+ var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
21
+ var correctPaths = function(path) {
22
+ if (!path || path.length === 0) {
23
+ return ".";
24
+ }
25
+ path = normalizeWindowsPath(path);
26
+ const isUNCPath = path.match(_UNC_REGEX);
27
+ const isPathAbsolute = isAbsolute(path);
28
+ const trailingSeparator = path[path.length - 1] === "/";
29
+ path = normalizeString(path, !isPathAbsolute);
30
+ if (path.length === 0) {
31
+ if (isPathAbsolute) {
32
+ return "/";
33
+ }
34
+ return trailingSeparator ? "./" : ".";
35
+ }
36
+ if (trailingSeparator) {
37
+ path += "/";
38
+ }
39
+ if (_DRIVE_LETTER_RE.test(path)) {
40
+ path += "/";
41
+ }
42
+ if (isUNCPath) {
43
+ if (!isPathAbsolute) {
44
+ return `//./${path}`;
45
+ }
46
+ return `//${path}`;
47
+ }
48
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
49
+ };
50
+ var joinPaths = function(...segments) {
51
+ let path = "";
52
+ for (const seg of segments) {
53
+ if (!seg) {
54
+ continue;
55
+ }
56
+ if (path.length > 0) {
57
+ const pathTrailing = path[path.length - 1] === "/";
58
+ const segLeading = seg[0] === "/";
59
+ const both = pathTrailing && segLeading;
60
+ if (both) {
61
+ path += seg.slice(1);
62
+ } else {
63
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
64
+ }
65
+ } else {
66
+ path += seg;
67
+ }
68
+ }
69
+ return correctPaths(path);
70
+ };
71
+ function normalizeString(path, allowAboveRoot) {
72
+ let res = "";
73
+ let lastSegmentLength = 0;
74
+ let lastSlash = -1;
75
+ let dots = 0;
76
+ let char = null;
77
+ for (let index = 0; index <= path.length; ++index) {
78
+ if (index < path.length) {
79
+ char = path[index];
80
+ } else if (char === "/") {
81
+ break;
82
+ } else {
83
+ char = "/";
84
+ }
85
+ if (char === "/") {
86
+ if (lastSlash === index - 1 || dots === 1) {
87
+ } else if (dots === 2) {
88
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
89
+ if (res.length > 2) {
90
+ const lastSlashIndex = res.lastIndexOf("/");
91
+ if (lastSlashIndex === -1) {
92
+ res = "";
93
+ lastSegmentLength = 0;
94
+ } else {
95
+ res = res.slice(0, lastSlashIndex);
96
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
97
+ }
98
+ lastSlash = index;
99
+ dots = 0;
100
+ continue;
101
+ } else if (res.length > 0) {
102
+ res = "";
103
+ lastSegmentLength = 0;
104
+ lastSlash = index;
105
+ dots = 0;
106
+ continue;
107
+ }
108
+ }
109
+ if (allowAboveRoot) {
110
+ res += res.length > 0 ? "/.." : "..";
111
+ lastSegmentLength = 2;
112
+ }
113
+ } else {
114
+ if (res.length > 0) {
115
+ res += `/${path.slice(lastSlash + 1, index)}`;
116
+ } else {
117
+ res = path.slice(lastSlash + 1, index);
118
+ }
119
+ lastSegmentLength = index - lastSlash - 1;
120
+ }
121
+ lastSlash = index;
122
+ dots = 0;
123
+ } else if (char === "." && dots !== -1) {
124
+ ++dots;
125
+ } else {
126
+ dots = -1;
127
+ }
128
+ }
129
+ return res;
130
+ }
131
+ var isAbsolute = function(p) {
132
+ return _IS_ABSOLUTE_RE.test(p);
133
+ };
134
+
135
+ // ../config-tools/src/utilities/find-up.ts
136
+ var _fs = require('fs');
137
+ var _path = require('path');
138
+ var MAX_PATH_SEARCH_DEPTH = 30;
139
+ var depth = 0;
140
+ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
141
+ const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
142
+ if (endDirectoryNames.some(
143
+ (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
144
+ )) {
145
+ return _startPath;
146
+ }
147
+ if (endFileNames.some(
148
+ (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
149
+ )) {
150
+ return _startPath;
151
+ }
152
+ if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
153
+ const parent = _path.join.call(void 0, _startPath, "..");
154
+ return findFolderUp(parent, endFileNames, endDirectoryNames);
155
+ }
156
+ return void 0;
157
+ }
158
+
159
+ // ../config-tools/src/utilities/find-workspace-root.ts
160
+ var rootFiles = [
161
+ "storm-workspace.json",
162
+ "storm-workspace.yaml",
163
+ "storm-workspace.yml",
164
+ "storm-workspace.js",
165
+ "storm-workspace.ts",
166
+ ".storm-workspace.json",
167
+ ".storm-workspace.yaml",
168
+ ".storm-workspace.yml",
169
+ ".storm-workspace.js",
170
+ ".storm-workspace.ts",
171
+ "lerna.json",
172
+ "nx.json",
173
+ "turbo.json",
174
+ "npm-workspace.json",
175
+ "yarn-workspace.json",
176
+ "pnpm-workspace.json",
177
+ "npm-workspace.yaml",
178
+ "yarn-workspace.yaml",
179
+ "pnpm-workspace.yaml",
180
+ "npm-workspace.yml",
181
+ "yarn-workspace.yml",
182
+ "pnpm-workspace.yml",
183
+ "npm-lock.json",
184
+ "yarn-lock.json",
185
+ "pnpm-lock.json",
186
+ "npm-lock.yaml",
187
+ "yarn-lock.yaml",
188
+ "pnpm-lock.yaml",
189
+ "npm-lock.yml",
190
+ "yarn-lock.yml",
191
+ "pnpm-lock.yml",
192
+ "bun.lockb"
193
+ ];
194
+ var rootDirectories = [
195
+ ".storm-workspace",
196
+ ".nx",
197
+ ".github",
198
+ ".vscode",
199
+ ".verdaccio"
200
+ ];
201
+ function findWorkspaceRootSafe(pathInsideMonorepo) {
202
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
203
+ return correctPaths(
204
+ _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
205
+ );
206
+ }
207
+ return correctPaths(
208
+ findFolderUp(
209
+ _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
210
+ rootFiles,
211
+ rootDirectories
212
+ )
213
+ );
214
+ }
215
+ function findWorkspaceRoot(pathInsideMonorepo) {
216
+ const result = findWorkspaceRootSafe(pathInsideMonorepo);
217
+ if (!result) {
218
+ throw new Error(
219
+ `Cannot find workspace root upwards from known path. Files search list includes:
220
+ ${rootFiles.join(
221
+ "\n"
222
+ )}
223
+ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
224
+ );
225
+ }
226
+ return result;
227
+ }
228
+
229
+ // ../config/src/schema.ts
230
+ var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
231
+
232
+ // ../config/src/constants.ts
233
+ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
234
+ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
235
+ var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
236
+ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
237
+ var STORM_DEFAULT_LICENSE = "Apache-2.0";
238
+ var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
239
+ var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
240
+ var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
241
+ var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
242
+ var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
243
+ var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
244
+ var STORM_DEFAULT_RELEASE_FOOTER = `
245
+ Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
246
+
247
+ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
248
+
249
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
250
+ `;
251
+ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
252
+
253
+ // ../config/src/schema.ts
254
+ var ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7);
255
+ var DarkColorSchema = ColorSchema.default("#151718").describe(
256
+ "The dark background color of the workspace"
257
+ );
258
+ var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
259
+ "The light background color of the workspace"
260
+ );
261
+ var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
262
+ "The primary brand specific color of the workspace"
263
+ );
264
+ var AlternateColorSchema = ColorSchema.optional().describe(
265
+ "The alternate brand specific color of the workspace"
266
+ );
267
+ var AccentColorSchema = ColorSchema.optional().describe(
268
+ "The secondary brand specific color of the workspace"
269
+ );
270
+ var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
271
+ "The color used to display hyperlink text"
272
+ );
273
+ var HelpColorSchema = ColorSchema.default("#818cf8").describe(
274
+ "The second brand specific color of the workspace"
275
+ );
276
+ var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
277
+ "The success color of the workspace"
278
+ );
279
+ var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
280
+ "The informational color of the workspace"
281
+ );
282
+ var WarningColorSchema = ColorSchema.default("#f3d371").describe(
283
+ "The warning color of the workspace"
284
+ );
285
+ var DangerColorSchema = ColorSchema.default("#d8314a").describe(
286
+ "The danger color of the workspace"
287
+ );
288
+ var FatalColorSchema = ColorSchema.optional().describe(
289
+ "The fatal color of the workspace"
290
+ );
291
+ var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
292
+ "The positive number color of the workspace"
293
+ );
294
+ var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
295
+ "The negative number color of the workspace"
296
+ );
297
+ var GradientStopsSchema = z.array(ColorSchema).optional().describe(
298
+ "The color stops for the base gradient color pattern used in the workspace"
299
+ );
300
+ var DarkThemeColorConfigSchema = z.object({
301
+ foreground: LightColorSchema,
302
+ background: DarkColorSchema,
303
+ brand: BrandColorSchema,
304
+ alternate: AlternateColorSchema,
305
+ accent: AccentColorSchema,
306
+ link: LinkColorSchema,
307
+ help: HelpColorSchema,
308
+ success: SuccessColorSchema,
309
+ info: InfoColorSchema,
310
+ warning: WarningColorSchema,
311
+ danger: DangerColorSchema,
312
+ fatal: FatalColorSchema,
313
+ positive: PositiveColorSchema,
314
+ negative: NegativeColorSchema,
315
+ gradient: GradientStopsSchema
316
+ });
317
+ var LightThemeColorConfigSchema = z.object({
318
+ foreground: DarkColorSchema,
319
+ background: LightColorSchema,
320
+ brand: BrandColorSchema,
321
+ alternate: AlternateColorSchema,
322
+ accent: AccentColorSchema,
323
+ link: LinkColorSchema,
324
+ help: HelpColorSchema,
325
+ success: SuccessColorSchema,
326
+ info: InfoColorSchema,
327
+ warning: WarningColorSchema,
328
+ danger: DangerColorSchema,
329
+ fatal: FatalColorSchema,
330
+ positive: PositiveColorSchema,
331
+ negative: NegativeColorSchema,
332
+ gradient: GradientStopsSchema
333
+ });
334
+ var MultiThemeColorConfigSchema = z.object({
335
+ dark: DarkThemeColorConfigSchema,
336
+ light: LightThemeColorConfigSchema
337
+ });
338
+ var SingleThemeColorConfigSchema = z.object({
339
+ dark: DarkColorSchema,
340
+ light: LightColorSchema,
341
+ brand: BrandColorSchema,
342
+ alternate: AlternateColorSchema,
343
+ accent: AccentColorSchema,
344
+ link: LinkColorSchema,
345
+ help: HelpColorSchema,
346
+ success: SuccessColorSchema,
347
+ info: InfoColorSchema,
348
+ warning: WarningColorSchema,
349
+ danger: DangerColorSchema,
350
+ fatal: FatalColorSchema,
351
+ positive: PositiveColorSchema,
352
+ negative: NegativeColorSchema,
353
+ gradient: GradientStopsSchema
354
+ });
355
+ var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
356
+ var RegistryConfigSchema = z.object({
357
+ github: RegistryUrlConfigSchema,
358
+ npm: RegistryUrlConfigSchema,
359
+ cargo: RegistryUrlConfigSchema,
360
+ cyclone: RegistryUrlConfigSchema,
361
+ container: RegistryUrlConfigSchema
362
+ }).default({}).describe("A list of remote registry URLs used by Storm Software");
363
+ var ColorConfigSchema = SingleThemeColorConfigSchema.or(
364
+ MultiThemeColorConfigSchema
365
+ ).describe("Colors used for various workspace elements");
366
+ var ColorConfigMapSchema = z.record(
367
+ z.union([z.literal("base"), z.string()]),
368
+ ColorConfigSchema
369
+ );
370
+ var ExtendsItemSchema = z.string().trim().describe(
371
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
372
+ );
373
+ var ExtendsSchema = ExtendsItemSchema.or(
374
+ z.array(ExtendsItemSchema)
375
+ ).describe(
376
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
377
+ );
378
+ var WorkspaceBotConfigSchema = z.object({
379
+ name: z.string().trim().default("stormie-bot").describe(
380
+ "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
381
+ ),
382
+ email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
383
+ }).describe(
384
+ "The workspace's bot user's config used to automated various operations tasks"
385
+ );
386
+ var WorkspaceReleaseConfigSchema = z.object({
387
+ banner: z.string().trim().optional().describe(
388
+ "A URL to a banner image used to display the workspace's release"
389
+ ),
390
+ header: z.string().trim().optional().describe(
391
+ "A header message appended to the start of the workspace's release notes"
392
+ ),
393
+ footer: z.string().trim().optional().describe(
394
+ "A footer message appended to the end of the workspace's release notes"
395
+ )
396
+ }).describe("The workspace's release config used during the release process");
397
+ var WorkspaceSocialsConfigSchema = z.object({
398
+ twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
399
+ discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
400
+ telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
401
+ slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
402
+ medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
403
+ github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
404
+ }).describe(
405
+ "The workspace's account config used to store various social media links"
406
+ );
407
+ var WorkspaceDirectoryConfigSchema = z.object({
408
+ cache: z.string().trim().optional().describe(
409
+ "The directory used to store the environment's cached file data"
410
+ ),
411
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
412
+ config: z.string().trim().optional().describe(
413
+ "The directory used to store the environment's configuration files"
414
+ ),
415
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
416
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
417
+ build: z.string().trim().default("dist").describe(
418
+ "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
419
+ )
420
+ }).describe(
421
+ "Various directories used by the workspace to store data, cache, and configuration files"
422
+ );
423
+ var errorConfigSchema = z.object({
424
+ codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
425
+ url: z.url().optional().describe(
426
+ "A URL to a page that looks up the workspace's error messages given a specific error code"
427
+ )
428
+ }).describe("The workspace's error config used during the error process");
429
+ var organizationConfigSchema = z.object({
430
+ name: z.string().trim().describe("The name of the organization"),
431
+ description: z.string().trim().optional().describe("A description of the organization"),
432
+ logo: z.url().optional().describe("A URL to the organization's logo image"),
433
+ icon: z.url().optional().describe("A URL to the organization's icon image"),
434
+ url: z.url().optional().describe(
435
+ "A URL to a page that provides more information about the organization"
436
+ )
437
+ }).describe("The workspace's organization details");
438
+ var stormWorkspaceConfigSchema = z.object({
439
+ $schema: z.string().trim().default(
440
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
441
+ ).describe(
442
+ "The URL or file path to the JSON schema file that describes the Storm configuration file"
443
+ ),
444
+ extends: ExtendsSchema.optional(),
445
+ name: z.string().trim().toLowerCase().optional().describe(
446
+ "The name of the service/package/scope using this configuration"
447
+ ),
448
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
449
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
450
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
451
+ ),
452
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
453
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
454
+ homepage: z.url().optional().describe("The homepage of the workspace"),
455
+ docs: z.url().optional().describe("The documentation site for the workspace"),
456
+ portal: z.url().optional().describe("The development portal site for the workspace"),
457
+ licensing: z.url().optional().describe("The licensing site for the workspace"),
458
+ contact: z.url().optional().describe("The contact site for the workspace"),
459
+ support: z.url().optional().describe(
460
+ "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
461
+ ),
462
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
463
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
464
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
465
+ bot: WorkspaceBotConfigSchema,
466
+ release: WorkspaceReleaseConfigSchema,
467
+ socials: WorkspaceSocialsConfigSchema,
468
+ error: errorConfigSchema,
469
+ mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
470
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
471
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
472
+ directories: WorkspaceDirectoryConfigSchema,
473
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
474
+ "The JavaScript/TypeScript package manager used by the repository"
475
+ ),
476
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
477
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
478
+ logLevel: z.enum([
479
+ "silent",
480
+ "fatal",
481
+ "error",
482
+ "warn",
483
+ "success",
484
+ "info",
485
+ "debug",
486
+ "trace",
487
+ "all"
488
+ ]).default("info").describe(
489
+ "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
490
+ ),
491
+ skipConfigLogging: z.boolean().optional().describe(
492
+ "Should the logging of the current Storm Workspace configuration be skipped?"
493
+ ),
494
+ registry: RegistryConfigSchema,
495
+ configFile: z.string().trim().nullable().default(null).describe(
496
+ "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
497
+ ),
498
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
499
+ "Storm theme config values used for styling various package elements"
500
+ ),
501
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
502
+ }).describe(
503
+ "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
504
+ );
505
+
506
+ // ../config-tools/src/create-storm-config.ts
507
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
508
+
509
+ // ../config-tools/src/config-file/get-config-file.ts
510
+ var _c12 = require('c12');
511
+
512
+
513
+ // ../config/src/types.ts
514
+ var COLOR_KEYS = [
515
+ "dark",
516
+ "light",
517
+ "base",
518
+ "brand",
519
+ "alternate",
520
+ "accent",
521
+ "link",
522
+ "success",
523
+ "help",
524
+ "info",
525
+ "warning",
526
+ "danger",
527
+ "fatal",
528
+ "positive",
529
+ "negative"
530
+ ];
531
+
532
+ // ../config-tools/src/utilities/get-default-config.ts
533
+
534
+ var _promises = require('fs/promises');
535
+
536
+ async function getPackageJsonConfig(root) {
537
+ let license = STORM_DEFAULT_LICENSE;
538
+ let homepage = void 0;
539
+ let support = void 0;
540
+ let name = void 0;
541
+ let namespace = void 0;
542
+ let repository = void 0;
543
+ const workspaceRoot = findWorkspaceRoot(root);
544
+ if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
545
+ const file = await _promises.readFile.call(void 0,
546
+ joinPaths(workspaceRoot, "package.json"),
547
+ "utf8"
548
+ );
549
+ if (file) {
550
+ const packageJson = JSON.parse(file);
551
+ if (packageJson.name) {
552
+ name = packageJson.name;
553
+ }
554
+ if (packageJson.namespace) {
555
+ namespace = packageJson.namespace;
556
+ }
557
+ if (packageJson.repository) {
558
+ if (typeof packageJson.repository === "string") {
559
+ repository = packageJson.repository;
560
+ } else if (packageJson.repository.url) {
561
+ repository = packageJson.repository.url;
562
+ }
563
+ }
564
+ if (packageJson.license) {
565
+ license = packageJson.license;
566
+ }
567
+ if (packageJson.homepage) {
568
+ homepage = packageJson.homepage;
569
+ }
570
+ if (packageJson.bugs) {
571
+ if (typeof packageJson.bugs === "string") {
572
+ support = packageJson.bugs;
573
+ } else if (packageJson.bugs.url) {
574
+ support = packageJson.bugs.url;
575
+ }
576
+ }
577
+ }
578
+ }
579
+ return {
580
+ workspaceRoot,
581
+ name,
582
+ namespace,
583
+ repository,
584
+ license,
585
+ homepage,
586
+ support
587
+ };
588
+ }
589
+ function applyDefaultConfig(config) {
590
+ if (!config.support && config.contact) {
591
+ config.support = config.contact;
592
+ }
593
+ if (!config.contact && config.support) {
594
+ config.contact = config.support;
595
+ }
596
+ if (config.homepage) {
597
+ if (!config.docs) {
598
+ config.docs = `${config.homepage}/docs`;
599
+ }
600
+ if (!config.license) {
601
+ config.license = `${config.homepage}/license`;
602
+ }
603
+ if (!config.support) {
604
+ config.support = `${config.homepage}/support`;
605
+ }
606
+ if (!config.contact) {
607
+ config.contact = `${config.homepage}/contact`;
608
+ }
609
+ if (!_optionalChain([config, 'access', _ => _.error, 'optionalAccess', _2 => _2.codesFile]) || !_optionalChain([config, 'optionalAccess', _3 => _3.error, 'optionalAccess', _4 => _4.url])) {
610
+ config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
611
+ if (config.homepage) {
612
+ config.error.url ??= `${config.homepage}/errors`;
613
+ }
614
+ }
615
+ }
616
+ return config;
617
+ }
618
+
619
+ // ../config-tools/src/config-file/get-config-file.ts
620
+ var getConfigFileByName = async (fileName, filePath, options = {}) => {
621
+ const workspacePath = filePath || findWorkspaceRoot(filePath);
622
+ const configs = await Promise.all([
623
+ _c12.loadConfig.call(void 0, {
624
+ cwd: workspacePath,
625
+ packageJson: true,
626
+ name: fileName,
627
+ envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
628
+ jitiOptions: {
629
+ debug: false,
630
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
631
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
632
+ "jiti"
633
+ )
634
+ },
635
+ ...options
636
+ }),
637
+ _c12.loadConfig.call(void 0, {
638
+ cwd: workspacePath,
639
+ packageJson: true,
640
+ name: fileName,
641
+ envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
642
+ jitiOptions: {
643
+ debug: false,
644
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
645
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
646
+ "jiti"
647
+ )
648
+ },
649
+ configFile: fileName,
650
+ ...options
651
+ })
652
+ ]);
653
+ return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
654
+ };
655
+ var getConfigFile = async (filePath, additionalFileNames = []) => {
656
+ const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
657
+ const result = await getConfigFileByName("storm-workspace", workspacePath);
658
+ let config = result.config;
659
+ const configFile = result.configFile;
660
+ if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
661
+ _chunk2CDSXWFAjs.writeTrace.call(void 0,
662
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
663
+ {
664
+ logLevel: "all"
665
+ }
666
+ );
667
+ }
668
+ if (additionalFileNames && additionalFileNames.length > 0) {
669
+ const results = await Promise.all(
670
+ additionalFileNames.map(
671
+ (fileName) => getConfigFileByName(fileName, workspacePath)
672
+ )
673
+ );
674
+ for (const result2 of results) {
675
+ if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
676
+ if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
677
+ _chunk2CDSXWFAjs.writeTrace.call(void 0,
678
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
679
+ {
680
+ logLevel: "all"
681
+ }
682
+ );
683
+ }
684
+ config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
685
+ }
686
+ }
687
+ }
688
+ if (!config || Object.keys(config).length === 0) {
689
+ return void 0;
690
+ }
691
+ config.configFile = configFile;
692
+ return config;
693
+ };
694
+
695
+ // ../config-tools/src/env/get-env.ts
696
+ var getExtensionEnv = (extensionName) => {
697
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
698
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
699
+ const name = key.replace(prefix, "").split("_").map(
700
+ (i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : ""
701
+ ).join("");
702
+ if (name) {
703
+ ret[name] = process.env[key];
704
+ }
705
+ return ret;
706
+ }, {});
707
+ };
708
+ var getConfigEnv = () => {
709
+ const prefix = "STORM_";
710
+ let config = {
711
+ extends: process.env[`${prefix}EXTENDS`] || void 0,
712
+ name: process.env[`${prefix}NAME`] || void 0,
713
+ namespace: process.env[`${prefix}NAMESPACE`] || void 0,
714
+ owner: process.env[`${prefix}OWNER`] || void 0,
715
+ bot: {
716
+ name: process.env[`${prefix}BOT_NAME`] || void 0,
717
+ email: process.env[`${prefix}BOT_EMAIL`] || void 0
718
+ },
719
+ release: {
720
+ banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
721
+ header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
722
+ footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
723
+ },
724
+ error: {
725
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
726
+ url: process.env[`${prefix}ERROR_URL`] || void 0
727
+ },
728
+ socials: {
729
+ twitter: process.env[`${prefix}SOCIAL_TWITTER`] || void 0,
730
+ discord: process.env[`${prefix}SOCIAL_DISCORD`] || void 0,
731
+ telegram: process.env[`${prefix}SOCIAL_TELEGRAM`] || void 0,
732
+ slack: process.env[`${prefix}SOCIAL_SLACK`] || void 0,
733
+ medium: process.env[`${prefix}SOCIAL_MEDIUM`] || void 0,
734
+ github: process.env[`${prefix}SOCIAL_GITHUB`] || void 0
735
+ },
736
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
737
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
738
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
739
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
740
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
741
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
742
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
743
+ packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
744
+ license: process.env[`${prefix}LICENSE`] || void 0,
745
+ homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
746
+ docs: process.env[`${prefix}DOCS`] || void 0,
747
+ portal: process.env[`${prefix}PORTAL`] || void 0,
748
+ licensing: process.env[`${prefix}LICENSING`] || void 0,
749
+ contact: process.env[`${prefix}CONTACT`] || void 0,
750
+ support: process.env[`${prefix}SUPPORT`] || void 0,
751
+ timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
752
+ locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
753
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
754
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
755
+ directories: {
756
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
757
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
758
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
759
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
760
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
761
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
762
+ },
763
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
764
+ mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
765
+ // ci:
766
+ // process.env[`${prefix}CI`] !== undefined
767
+ // ? Boolean(
768
+ // process.env[`${prefix}CI`] ??
769
+ // process.env.CI ??
770
+ // process.env.CONTINUOUS_INTEGRATION
771
+ // )
772
+ // : undefined,
773
+ repository: process.env[`${prefix}REPOSITORY`] || void 0,
774
+ branch: process.env[`${prefix}BRANCH`] || void 0,
775
+ preid: process.env[`${prefix}PRE_ID`] || void 0,
776
+ registry: {
777
+ github: process.env[`${prefix}REGISTRY_GITHUB`] || void 0,
778
+ npm: process.env[`${prefix}REGISTRY_NPM`] || void 0,
779
+ cargo: process.env[`${prefix}REGISTRY_CARGO`] || void 0,
780
+ cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
781
+ container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
782
+ },
783
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
784
+ Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
785
+ ) ? _chunk2CDSXWFAjs.getLogLevelLabel.call(void 0,
786
+ Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
787
+ ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
788
+ skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
789
+ };
790
+ const themeNames = Object.keys(process.env).filter(
791
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every(
792
+ (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
793
+ )
794
+ );
795
+ config.colors = themeNames.length > 0 ? themeNames.reduce(
796
+ (ret, themeName) => {
797
+ ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
798
+ return ret;
799
+ },
800
+ {}
801
+ ) : getThemeColorConfigEnv(prefix);
802
+ if (config.docs === STORM_DEFAULT_DOCS) {
803
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
804
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
805
+ } else {
806
+ config.docs = `${config.homepage}/docs`;
807
+ }
808
+ }
809
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
810
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
811
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
812
+ } else {
813
+ config.licensing = `${config.homepage}/docs`;
814
+ }
815
+ }
816
+ const serializedConfig = process.env[`${prefix}CONFIG`];
817
+ if (serializedConfig) {
818
+ const parsed = JSON.parse(serializedConfig);
819
+ config = {
820
+ ...config,
821
+ ...parsed,
822
+ colors: { ...config.colors, ...parsed.colors },
823
+ extensions: { ...config.extensions, ...parsed.extensions }
824
+ };
825
+ }
826
+ return config;
827
+ };
828
+ var getThemeColorConfigEnv = (prefix, theme) => {
829
+ const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
830
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
831
+ };
832
+ var getSingleThemeColorConfigEnv = (prefix) => {
833
+ const gradient = [];
834
+ if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
835
+ gradient.push(
836
+ process.env[`${prefix}GRADIENT_START`],
837
+ process.env[`${prefix}GRADIENT_END`]
838
+ );
839
+ } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
840
+ let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
841
+ while (process.env[`${prefix}GRADIENT_${index}`]) {
842
+ gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
843
+ index++;
844
+ }
845
+ }
846
+ return {
847
+ dark: process.env[`${prefix}DARK`],
848
+ light: process.env[`${prefix}LIGHT`],
849
+ brand: process.env[`${prefix}BRAND`],
850
+ alternate: process.env[`${prefix}ALTERNATE`],
851
+ accent: process.env[`${prefix}ACCENT`],
852
+ link: process.env[`${prefix}LINK`],
853
+ help: process.env[`${prefix}HELP`],
854
+ success: process.env[`${prefix}SUCCESS`],
855
+ info: process.env[`${prefix}INFO`],
856
+ warning: process.env[`${prefix}WARNING`],
857
+ danger: process.env[`${prefix}DANGER`],
858
+ fatal: process.env[`${prefix}FATAL`],
859
+ positive: process.env[`${prefix}POSITIVE`],
860
+ negative: process.env[`${prefix}NEGATIVE`],
861
+ gradient
862
+ };
863
+ };
864
+ var getMultiThemeColorConfigEnv = (prefix) => {
865
+ return {
866
+ light: getBaseThemeColorConfigEnv(
867
+ `${prefix}_LIGHT_`
868
+ ),
869
+ dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
870
+ };
871
+ };
872
+ var getBaseThemeColorConfigEnv = (prefix) => {
873
+ const gradient = [];
874
+ if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
875
+ gradient.push(
876
+ process.env[`${prefix}GRADIENT_START`],
877
+ process.env[`${prefix}GRADIENT_END`]
878
+ );
879
+ } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
880
+ let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
881
+ while (process.env[`${prefix}GRADIENT_${index}`]) {
882
+ gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
883
+ index++;
884
+ }
885
+ }
886
+ return {
887
+ foreground: process.env[`${prefix}FOREGROUND`],
888
+ background: process.env[`${prefix}BACKGROUND`],
889
+ brand: process.env[`${prefix}BRAND`],
890
+ alternate: process.env[`${prefix}ALTERNATE`],
891
+ accent: process.env[`${prefix}ACCENT`],
892
+ link: process.env[`${prefix}LINK`],
893
+ help: process.env[`${prefix}HELP`],
894
+ success: process.env[`${prefix}SUCCESS`],
895
+ info: process.env[`${prefix}INFO`],
896
+ warning: process.env[`${prefix}WARNING`],
897
+ danger: process.env[`${prefix}DANGER`],
898
+ fatal: process.env[`${prefix}FATAL`],
899
+ positive: process.env[`${prefix}POSITIVE`],
900
+ negative: process.env[`${prefix}NEGATIVE`],
901
+ gradient
902
+ };
903
+ };
904
+
905
+ // ../config-tools/src/env/set-env.ts
906
+ var setExtensionEnv = (extensionName, extension) => {
907
+ for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
908
+ if (extension[key]) {
909
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _11 => _11.replace, 'call', _12 => _12(
910
+ /([A-Z])+/g,
911
+ (input) => input ? _optionalChain([input, 'access', _13 => _13[0], 'optionalAccess', _14 => _14.toUpperCase, 'call', _15 => _15()]) + input.slice(1) : ""
912
+ ), 'access', _16 => _16.split, 'call', _17 => _17(/(?=[A-Z])|[.\-\s_]/), 'access', _18 => _18.map, 'call', _19 => _19((x) => x.toLowerCase())]), () => ( []));
913
+ let extensionKey;
914
+ if (result.length === 0) {
915
+ return;
916
+ }
917
+ if (result.length === 1) {
918
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _20 => _20[0], 'optionalAccess', _21 => _21.toUpperCase, 'call', _22 => _22()]), () => ( ""));
919
+ } else {
920
+ extensionKey = result.reduce((ret, part) => {
921
+ return `${ret}_${part.toLowerCase()}`;
922
+ });
923
+ }
924
+ process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
925
+ }
926
+ }
927
+ };
928
+ var setConfigEnv = (config) => {
929
+ const prefix = "STORM_";
930
+ if (config.extends) {
931
+ process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
932
+ }
933
+ if (config.name) {
934
+ process.env[`${prefix}NAME`] = config.name;
935
+ }
936
+ if (config.namespace) {
937
+ process.env[`${prefix}NAMESPACE`] = config.namespace;
938
+ }
939
+ if (config.owner) {
940
+ process.env[`${prefix}OWNER`] = config.owner;
941
+ }
942
+ if (config.bot) {
943
+ process.env[`${prefix}BOT_NAME`] = config.bot.name;
944
+ process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
945
+ }
946
+ if (config.error) {
947
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
948
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
949
+ }
950
+ if (config.release) {
951
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
952
+ process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
953
+ process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
954
+ }
955
+ if (config.socials) {
956
+ if (config.socials.twitter) {
957
+ process.env[`${prefix}SOCIAL_TWITTER`] = config.socials.twitter;
958
+ }
959
+ if (config.socials.discord) {
960
+ process.env[`${prefix}SOCIAL_DISCORD`] = config.socials.discord;
961
+ }
962
+ if (config.socials.telegram) {
963
+ process.env[`${prefix}SOCIAL_TELEGRAM`] = config.socials.telegram;
964
+ }
965
+ if (config.socials.slack) {
966
+ process.env[`${prefix}SOCIAL_SLACK`] = config.socials.slack;
967
+ }
968
+ if (config.socials.medium) {
969
+ process.env[`${prefix}SOCIAL_MEDIUM`] = config.socials.medium;
970
+ }
971
+ if (config.socials.github) {
972
+ process.env[`${prefix}SOCIAL_GITHUB`] = config.socials.github;
973
+ }
974
+ }
975
+ if (config.organization) {
976
+ if (typeof config.organization === "string") {
977
+ process.env[`${prefix}ORG`] = config.organization;
978
+ process.env[`${prefix}ORG_NAME`] = config.organization;
979
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
980
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
981
+ } else {
982
+ process.env[`${prefix}ORG`] = config.organization.name;
983
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
984
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
985
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
986
+ if (config.organization.url) {
987
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
988
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
989
+ }
990
+ if (config.organization.description) {
991
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
992
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
993
+ }
994
+ if (config.organization.logo) {
995
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
996
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
997
+ }
998
+ if (config.organization.icon) {
999
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
1000
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
1001
+ }
1002
+ }
1003
+ }
1004
+ if (config.packageManager) {
1005
+ process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
1006
+ }
1007
+ if (config.license) {
1008
+ process.env[`${prefix}LICENSE`] = config.license;
1009
+ }
1010
+ if (config.homepage) {
1011
+ process.env[`${prefix}HOMEPAGE`] = config.homepage;
1012
+ }
1013
+ if (config.docs) {
1014
+ process.env[`${prefix}DOCS`] = config.docs;
1015
+ }
1016
+ if (config.portal) {
1017
+ process.env[`${prefix}PORTAL`] = config.portal;
1018
+ }
1019
+ if (config.licensing) {
1020
+ process.env[`${prefix}LICENSING`] = config.licensing;
1021
+ }
1022
+ if (config.contact) {
1023
+ process.env[`${prefix}CONTACT`] = config.contact;
1024
+ }
1025
+ if (config.support) {
1026
+ process.env[`${prefix}SUPPORT`] = config.support;
1027
+ }
1028
+ if (config.timezone) {
1029
+ process.env[`${prefix}TIMEZONE`] = config.timezone;
1030
+ process.env.TZ = config.timezone;
1031
+ process.env.DEFAULT_TIMEZONE = config.timezone;
1032
+ process.env.TIMEZONE = config.timezone;
1033
+ }
1034
+ if (config.locale) {
1035
+ process.env[`${prefix}LOCALE`] = config.locale;
1036
+ process.env.DEFAULT_LOCALE = config.locale;
1037
+ process.env.LOCALE = config.locale;
1038
+ process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
1039
+ }
1040
+ if (config.configFile) {
1041
+ process.env[`${prefix}CONFIG_FILE`] = correctPaths(config.configFile);
1042
+ }
1043
+ if (config.workspaceRoot) {
1044
+ process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
1045
+ process.env.NX_WORKSPACE_ROOT = correctPaths(config.workspaceRoot);
1046
+ process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config.workspaceRoot);
1047
+ }
1048
+ if (config.directories) {
1049
+ if (!config.skipCache && config.directories.cache) {
1050
+ process.env[`${prefix}CACHE_DIR`] = correctPaths(
1051
+ config.directories.cache
1052
+ );
1053
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1054
+ }
1055
+ if (config.directories.data) {
1056
+ process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1057
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1058
+ }
1059
+ if (config.directories.config) {
1060
+ process.env[`${prefix}CONFIG_DIR`] = correctPaths(
1061
+ config.directories.config
1062
+ );
1063
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1064
+ }
1065
+ if (config.directories.temp) {
1066
+ process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1067
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1068
+ }
1069
+ if (config.directories.log) {
1070
+ process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1071
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1072
+ }
1073
+ if (config.directories.build) {
1074
+ process.env[`${prefix}BUILD_DIR`] = correctPaths(
1075
+ config.directories.build
1076
+ );
1077
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1078
+ }
1079
+ }
1080
+ if (config.skipCache !== void 0) {
1081
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
1082
+ if (config.skipCache) {
1083
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
1084
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
1085
+ }
1086
+ }
1087
+ if (config.mode) {
1088
+ process.env[`${prefix}MODE`] = config.mode;
1089
+ process.env.NODE_ENV = config.mode;
1090
+ process.env.ENVIRONMENT = config.mode;
1091
+ }
1092
+ if (_optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24.base, 'optionalAccess', _25 => _25.light]) || _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27.base, 'optionalAccess', _28 => _28.dark])) {
1093
+ for (const key of Object.keys(config.colors)) {
1094
+ setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1095
+ }
1096
+ } else {
1097
+ setThemeColorConfigEnv(
1098
+ `${prefix}COLOR_`,
1099
+ config.colors
1100
+ );
1101
+ }
1102
+ if (config.repository) {
1103
+ process.env[`${prefix}REPOSITORY`] = config.repository;
1104
+ }
1105
+ if (config.branch) {
1106
+ process.env[`${prefix}BRANCH`] = config.branch;
1107
+ }
1108
+ if (config.preid) {
1109
+ process.env[`${prefix}PRE_ID`] = String(config.preid);
1110
+ }
1111
+ if (config.registry) {
1112
+ if (config.registry.github) {
1113
+ process.env[`${prefix}REGISTRY_GITHUB`] = String(config.registry.github);
1114
+ }
1115
+ if (config.registry.npm) {
1116
+ process.env[`${prefix}REGISTRY_NPM`] = String(config.registry.npm);
1117
+ }
1118
+ if (config.registry.cargo) {
1119
+ process.env[`${prefix}REGISTRY_CARGO`] = String(config.registry.cargo);
1120
+ }
1121
+ if (config.registry.cyclone) {
1122
+ process.env[`${prefix}REGISTRY_CYCLONE`] = String(
1123
+ config.registry.cyclone
1124
+ );
1125
+ }
1126
+ if (config.registry.container) {
1127
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(
1128
+ config.registry.container
1129
+ );
1130
+ }
1131
+ }
1132
+ if (config.logLevel) {
1133
+ process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1134
+ process.env.LOG_LEVEL = String(config.logLevel);
1135
+ process.env.NX_VERBOSE_LOGGING = String(
1136
+ _chunk2CDSXWFAjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2CDSXWFAjs.LogLevel.DEBUG ? true : false
1137
+ );
1138
+ process.env.RUST_BACKTRACE = _chunk2CDSXWFAjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2CDSXWFAjs.LogLevel.DEBUG ? "full" : "none";
1139
+ }
1140
+ if (config.skipConfigLogging !== void 0) {
1141
+ process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
1142
+ config.skipConfigLogging
1143
+ );
1144
+ }
1145
+ process.env[`${prefix}CONFIG`] = JSON.stringify(config);
1146
+ for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
1147
+ if (config.extensions[key] && Object.keys(config.extensions[key])) {
1148
+ setExtensionEnv(key, config.extensions[key]);
1149
+ }
1150
+ }
1151
+ };
1152
+ var setThemeColorConfigEnv = (prefix, config) => {
1153
+ return _optionalChain([config, 'optionalAccess', _29 => _29.light, 'optionalAccess', _30 => _30.brand]) || _optionalChain([config, 'optionalAccess', _31 => _31.dark, 'optionalAccess', _32 => _32.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1154
+ };
1155
+ var setSingleThemeColorConfigEnv = (prefix, config) => {
1156
+ if (config.dark) {
1157
+ process.env[`${prefix}DARK`] = config.dark;
1158
+ }
1159
+ if (config.light) {
1160
+ process.env[`${prefix}LIGHT`] = config.light;
1161
+ }
1162
+ if (config.brand) {
1163
+ process.env[`${prefix}BRAND`] = config.brand;
1164
+ }
1165
+ if (config.alternate) {
1166
+ process.env[`${prefix}ALTERNATE`] = config.alternate;
1167
+ }
1168
+ if (config.accent) {
1169
+ process.env[`${prefix}ACCENT`] = config.accent;
1170
+ }
1171
+ if (config.link) {
1172
+ process.env[`${prefix}LINK`] = config.link;
1173
+ }
1174
+ if (config.help) {
1175
+ process.env[`${prefix}HELP`] = config.help;
1176
+ }
1177
+ if (config.success) {
1178
+ process.env[`${prefix}SUCCESS`] = config.success;
1179
+ }
1180
+ if (config.info) {
1181
+ process.env[`${prefix}INFO`] = config.info;
1182
+ }
1183
+ if (config.warning) {
1184
+ process.env[`${prefix}WARNING`] = config.warning;
1185
+ }
1186
+ if (config.danger) {
1187
+ process.env[`${prefix}DANGER`] = config.danger;
1188
+ }
1189
+ if (config.fatal) {
1190
+ process.env[`${prefix}FATAL`] = config.fatal;
1191
+ }
1192
+ if (config.positive) {
1193
+ process.env[`${prefix}POSITIVE`] = config.positive;
1194
+ }
1195
+ if (config.negative) {
1196
+ process.env[`${prefix}NEGATIVE`] = config.negative;
1197
+ }
1198
+ if (config.gradient) {
1199
+ for (let i = 0; i < config.gradient.length; i++) {
1200
+ process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
1201
+ }
1202
+ }
1203
+ };
1204
+ var setMultiThemeColorConfigEnv = (prefix, config) => {
1205
+ return {
1206
+ light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
1207
+ dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
1208
+ };
1209
+ };
1210
+ var setBaseThemeColorConfigEnv = (prefix, config) => {
1211
+ if (config.foreground) {
1212
+ process.env[`${prefix}FOREGROUND`] = config.foreground;
1213
+ }
1214
+ if (config.background) {
1215
+ process.env[`${prefix}BACKGROUND`] = config.background;
1216
+ }
1217
+ if (config.brand) {
1218
+ process.env[`${prefix}BRAND`] = config.brand;
1219
+ }
1220
+ if (config.alternate) {
1221
+ process.env[`${prefix}ALTERNATE`] = config.alternate;
1222
+ }
1223
+ if (config.accent) {
1224
+ process.env[`${prefix}ACCENT`] = config.accent;
1225
+ }
1226
+ if (config.link) {
1227
+ process.env[`${prefix}LINK`] = config.link;
1228
+ }
1229
+ if (config.help) {
1230
+ process.env[`${prefix}HELP`] = config.help;
1231
+ }
1232
+ if (config.success) {
1233
+ process.env[`${prefix}SUCCESS`] = config.success;
1234
+ }
1235
+ if (config.info) {
1236
+ process.env[`${prefix}INFO`] = config.info;
1237
+ }
1238
+ if (config.warning) {
1239
+ process.env[`${prefix}WARNING`] = config.warning;
1240
+ }
1241
+ if (config.danger) {
1242
+ process.env[`${prefix}DANGER`] = config.danger;
1243
+ }
1244
+ if (config.fatal) {
1245
+ process.env[`${prefix}FATAL`] = config.fatal;
1246
+ }
1247
+ if (config.positive) {
1248
+ process.env[`${prefix}POSITIVE`] = config.positive;
1249
+ }
1250
+ if (config.negative) {
1251
+ process.env[`${prefix}NEGATIVE`] = config.negative;
1252
+ }
1253
+ if (config.gradient) {
1254
+ for (let i = 0; i < config.gradient.length; i++) {
1255
+ process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
1256
+ }
1257
+ }
1258
+ };
1259
+
1260
+ // ../config-tools/src/create-storm-config.ts
1261
+ var _extension_cache = /* @__PURE__ */ new WeakMap();
1262
+ var _static_cache = void 0;
1263
+ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1264
+ let result;
1265
+ if (!_optionalChain([_static_cache, 'optionalAccess', _33 => _33.data]) || !_optionalChain([_static_cache, 'optionalAccess', _34 => _34.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1266
+ let _workspaceRoot = workspaceRoot;
1267
+ if (!_workspaceRoot) {
1268
+ _workspaceRoot = findWorkspaceRoot();
1269
+ }
1270
+ const configEnv = getConfigEnv();
1271
+ const configFile = await getConfigFile(_workspaceRoot);
1272
+ if (!configFile) {
1273
+ if (!skipLogs) {
1274
+ _chunk2CDSXWFAjs.writeWarning.call(void 0,
1275
+ "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
1276
+ { logLevel: "all" }
1277
+ );
1278
+ }
1279
+ if (useDefault === false) {
1280
+ return void 0;
1281
+ }
1282
+ }
1283
+ const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1284
+ const configInput = _defu2.default.call(void 0,
1285
+ configEnv,
1286
+ configFile,
1287
+ defaultConfig
1288
+ );
1289
+ try {
1290
+ result = applyDefaultConfig(
1291
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1292
+ );
1293
+ result.workspaceRoot ??= _workspaceRoot;
1294
+ } catch (error) {
1295
+ throw new Error(
1296
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
1297
+
1298
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0,
1299
+ configInput
1300
+ )}`,
1301
+ {
1302
+ cause: error
1303
+ }
1304
+ );
1305
+ }
1306
+ } else {
1307
+ result = _static_cache.data;
1308
+ }
1309
+ if (schema && extensionName) {
1310
+ result.extensions = {
1311
+ ...result.extensions,
1312
+ [extensionName]: createConfigExtension(extensionName, schema)
1313
+ };
1314
+ }
1315
+ _static_cache = {
1316
+ timestamp: Date.now(),
1317
+ data: result
1318
+ };
1319
+ return result;
1320
+ };
1321
+ var createConfigExtension = (extensionName, schema) => {
1322
+ const extension_cache_key = { extensionName };
1323
+ if (_extension_cache.has(extension_cache_key)) {
1324
+ return _extension_cache.get(extension_cache_key);
1325
+ }
1326
+ let extension = getExtensionEnv(extensionName);
1327
+ if (schema) {
1328
+ extension = schema.parse(extension);
1329
+ }
1330
+ _extension_cache.set(extension_cache_key, extension);
1331
+ return extension;
1332
+ };
1333
+ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1334
+ const config = await createStormWorkspaceConfig(
1335
+ void 0,
1336
+ void 0,
1337
+ workspaceRoot,
1338
+ skipLogs,
1339
+ true
1340
+ );
1341
+ setConfigEnv(config);
1342
+ if (!skipLogs && !config.skipConfigLogging) {
1343
+ _chunk2CDSXWFAjs.writeTrace.call(void 0,
1344
+ `\u2699\uFE0F Using Storm Workspace configuration:
1345
+ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, config)}`,
1346
+ config
1347
+ );
1348
+ }
1349
+ return config;
1350
+ };
1351
+
1352
+ // ../config-tools/src/get-config.ts
1353
+ var getConfig = (workspaceRoot, skipLogs = false) => {
1354
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
1355
+ };
1356
+ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
1357
+ let workspaceRoot = options.workspaceRoot;
1358
+ if (!workspaceRoot) {
1359
+ workspaceRoot = findWorkspaceRoot(options.cwd);
1360
+ }
1361
+ return getConfig(workspaceRoot, skipLogs);
1362
+ };
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+ exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig;