@storm-software/cloudflare-tools 0.63.70 → 0.65.0

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 (34) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +2 -1
  3. package/dist/{chunk-P6VCSPMH.js → chunk-2ZMUY4OC.js} +5 -5
  4. package/dist/{chunk-LJBM3BJ3.mjs → chunk-DKHOMIBZ.mjs} +552 -249
  5. package/dist/{chunk-FULKT5FT.js → chunk-E2QSZ73F.js} +52 -50
  6. package/dist/{chunk-2T4KL5UB.mjs → chunk-EK6YU2XP.mjs} +7 -5
  7. package/dist/{chunk-U5IEN6GK.mjs → chunk-FI6ULZMS.mjs} +1 -1
  8. package/dist/{chunk-WQVUZMBN.mjs → chunk-FZBPQKVZ.mjs} +3 -3
  9. package/dist/{chunk-47LTDAIV.mjs → chunk-I3R2ATMM.mjs} +1 -1
  10. package/dist/{chunk-AOHIJD2J.js → chunk-I6TWNAXB.js} +1 -1
  11. package/dist/{chunk-I3PKYJH7.mjs → chunk-N5TVLF2U.mjs} +1 -1
  12. package/dist/{chunk-GAVX3MMN.mjs → chunk-Q2GP3F3W.mjs} +2 -2
  13. package/dist/{chunk-R6LCC4LT.js → chunk-SDOOTJSD.js} +3 -3
  14. package/dist/{chunk-MHMPOWJN.js → chunk-ZDZ43AAA.js} +552 -249
  15. package/dist/executors.js +3 -3
  16. package/dist/executors.mjs +5 -5
  17. package/dist/generators.js +4 -4
  18. package/dist/generators.mjs +4 -4
  19. package/dist/index.js +6 -6
  20. package/dist/index.mjs +7 -7
  21. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  22. package/dist/src/executors/cloudflare-publish/executor.mjs +4 -4
  23. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  24. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
  25. package/dist/src/executors/serve/executor.js +3 -3
  26. package/dist/src/executors/serve/executor.mjs +3 -3
  27. package/dist/src/generators/init/generator.js +2 -2
  28. package/dist/src/generators/init/generator.mjs +2 -2
  29. package/dist/src/generators/worker/generator.js +4 -4
  30. package/dist/src/generators/worker/generator.mjs +4 -4
  31. package/dist/src/utils/index.mjs +1 -1
  32. package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
  33. package/dist/tsup.config.mjs +1 -1
  34. package/package.json +2 -2
@@ -227,7 +227,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
227
227
  }
228
228
 
229
229
  // ../config/src/schema.ts
230
- import * as z from "zod";
230
+ import * as z from "zod/mini";
231
231
 
232
232
  // ../config/src/constants.ts
233
233
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
@@ -235,12 +235,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
235
235
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
236
236
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
237
237
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
238
- var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
239
238
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
240
- var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
241
239
  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
240
  var STORM_DEFAULT_RELEASE_FOOTER = `
245
241
  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
242
 
@@ -249,233 +245,487 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
249
245
  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
246
  `;
251
247
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
248
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
252
249
 
253
250
  // ../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"
251
+ var schemaRegistry = z.registry();
252
+ var colorSchema = z.string().check(
253
+ z.length(7),
254
+ z.toLowerCase(),
255
+ z.regex(/^#([0-9a-f]{3}){1,2}$/i),
256
+ z.trim()
257
257
  );
258
- var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
259
- "The light background color of the workspace"
258
+ schemaRegistry.add(colorSchema, {
259
+ description: "A base schema for describing the format of colors"
260
+ });
261
+ var darkColorSchema = z._default(colorSchema, "#151718");
262
+ schemaRegistry.add(darkColorSchema, {
263
+ description: "The dark background color of the workspace"
264
+ });
265
+ var lightColorSchema = z._default(colorSchema, "#cbd5e1");
266
+ schemaRegistry.add(lightColorSchema, {
267
+ description: "The light background color of the workspace"
268
+ });
269
+ var brandColorSchema = z._default(colorSchema, "#1fb2a6");
270
+ schemaRegistry.add(brandColorSchema, {
271
+ description: "The primary brand specific color of the workspace"
272
+ });
273
+ var alternateColorSchema = z.optional(colorSchema);
274
+ schemaRegistry.add(alternateColorSchema, {
275
+ description: "The alternate brand specific color of the workspace"
276
+ });
277
+ var accentColorSchema = z.optional(colorSchema);
278
+ schemaRegistry.add(accentColorSchema, {
279
+ description: "The secondary brand specific color of the workspace"
280
+ });
281
+ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
282
+ schemaRegistry.add(linkColorSchema, {
283
+ description: "The color used to display hyperlink text"
284
+ });
285
+ var helpColorSchema = z._default(colorSchema, "#818cf8");
286
+ schemaRegistry.add(helpColorSchema, {
287
+ description: "The second brand specific color of the workspace"
288
+ });
289
+ var successColorSchema = z._default(colorSchema, "#45b27e");
290
+ schemaRegistry.add(successColorSchema, {
291
+ description: "The success color of the workspace"
292
+ });
293
+ var infoColorSchema = z._default(colorSchema, "#38bdf8");
294
+ schemaRegistry.add(infoColorSchema, {
295
+ description: "The informational color of the workspace"
296
+ });
297
+ var warningColorSchema = z._default(colorSchema, "#f3d371");
298
+ schemaRegistry.add(warningColorSchema, {
299
+ description: "The warning color of the workspace"
300
+ });
301
+ var dangerColorSchema = z._default(colorSchema, "#d8314a");
302
+ schemaRegistry.add(dangerColorSchema, {
303
+ description: "The danger color of the workspace"
304
+ });
305
+ var fatalColorSchema = z.optional(colorSchema);
306
+ schemaRegistry.add(fatalColorSchema, {
307
+ description: "The fatal color of the workspace"
308
+ });
309
+ var positiveColorSchema = z._default(colorSchema, "#4ade80");
310
+ schemaRegistry.add(positiveColorSchema, {
311
+ description: "The positive number color of the workspace"
312
+ });
313
+ var negativeColorSchema = z._default(colorSchema, "#ef4444");
314
+ schemaRegistry.add(negativeColorSchema, {
315
+ description: "The negative number color of the workspace"
316
+ });
317
+ var gradientStopsSchema = z.optional(z.array(colorSchema));
318
+ schemaRegistry.add(gradientStopsSchema, {
319
+ description: "The color stops for the base gradient color pattern used in the workspace"
320
+ });
321
+ var darkColorsSchema = z.object({
322
+ foreground: lightColorSchema,
323
+ background: darkColorSchema,
324
+ brand: brandColorSchema,
325
+ alternate: alternateColorSchema,
326
+ accent: accentColorSchema,
327
+ link: linkColorSchema,
328
+ help: helpColorSchema,
329
+ success: successColorSchema,
330
+ info: infoColorSchema,
331
+ warning: warningColorSchema,
332
+ danger: dangerColorSchema,
333
+ fatal: fatalColorSchema,
334
+ positive: positiveColorSchema,
335
+ negative: negativeColorSchema,
336
+ gradient: gradientStopsSchema
337
+ });
338
+ var lightColorsSchema = z.object({
339
+ foreground: darkColorSchema,
340
+ background: 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 multiColorsSchema = z.object({
356
+ dark: darkColorsSchema,
357
+ light: lightColorsSchema
358
+ });
359
+ var singleColorsSchema = z.object({
360
+ dark: darkColorSchema,
361
+ light: lightColorSchema,
362
+ brand: brandColorSchema,
363
+ alternate: alternateColorSchema,
364
+ accent: accentColorSchema,
365
+ link: linkColorSchema,
366
+ help: helpColorSchema,
367
+ success: successColorSchema,
368
+ info: infoColorSchema,
369
+ warning: warningColorSchema,
370
+ danger: dangerColorSchema,
371
+ fatal: fatalColorSchema,
372
+ positive: positiveColorSchema,
373
+ negative: negativeColorSchema,
374
+ gradient: gradientStopsSchema
375
+ });
376
+ var registryUrlConfigSchema = z.optional(z.url());
377
+ schemaRegistry.add(registryUrlConfigSchema, {
378
+ description: "A remote registry URL used to publish distributable packages"
379
+ });
380
+ var registrySchema = z._default(
381
+ z.object({
382
+ github: registryUrlConfigSchema,
383
+ npm: registryUrlConfigSchema,
384
+ cargo: registryUrlConfigSchema,
385
+ cyclone: registryUrlConfigSchema,
386
+ container: registryUrlConfigSchema
387
+ }),
388
+ {}
260
389
  );
261
- var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
262
- "The primary brand specific color of the workspace"
390
+ schemaRegistry.add(registrySchema, {
391
+ description: "A list of remote registry URLs used by Storm Software"
392
+ });
393
+ var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
394
+ schemaRegistry.add(colorsSchema, {
395
+ description: "Colors used for various workspace elements"
396
+ });
397
+ var themeColorsSchema = z.record(
398
+ z.union([z.union([z.literal("base"), z.string()]), z.string()]),
399
+ colorsSchema
263
400
  );
264
- var AlternateColorSchema = ColorSchema.optional().describe(
265
- "The alternate brand specific color of the workspace"
401
+ schemaRegistry.add(themeColorsSchema, {
402
+ description: "Storm theme config values used for styling various package elements"
403
+ });
404
+ var extendsSchema = z.optional(
405
+ z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
266
406
  );
267
- var AccentColorSchema = ColorSchema.optional().describe(
268
- "The secondary brand specific color of the workspace"
407
+ schemaRegistry.add(extendsSchema, {
408
+ description: "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."
409
+ });
410
+ var workspaceBotNameSchema = z.string().check(z.trim());
411
+ schemaRegistry.add(workspaceBotNameSchema, {
412
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
413
+ });
414
+ var workspaceBotEmailSchema = z.string().check(z.trim());
415
+ schemaRegistry.add(workspaceBotEmailSchema, {
416
+ description: "The email of the workspace bot"
417
+ });
418
+ var workspaceBotSchema = z.object({
419
+ name: workspaceBotNameSchema,
420
+ email: workspaceBotEmailSchema
421
+ });
422
+ schemaRegistry.add(workspaceBotSchema, {
423
+ description: "The workspace's bot user's config used to automated various operations tasks"
424
+ });
425
+ var workspaceReleaseBannerUrlSchema = z.optional(
426
+ z.string().check(z.trim(), z.url())
269
427
  );
270
- var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
271
- "The color used to display hyperlink text"
428
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
429
+ description: "A URL to a banner image used to display the workspace's release"
430
+ });
431
+ var workspaceReleaseBannerAltSchema = z._default(
432
+ z.string().check(z.trim()),
433
+ STORM_DEFAULT_BANNER_ALT
272
434
  );
273
- var HelpColorSchema = ColorSchema.default("#818cf8").describe(
274
- "The second brand specific color of the workspace"
435
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
436
+ description: "The alt text for the workspace's release banner image"
437
+ });
438
+ var workspaceReleaseBannerSchema = z.object({
439
+ url: workspaceReleaseBannerUrlSchema,
440
+ alt: workspaceReleaseBannerAltSchema
441
+ });
442
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
443
+ description: "The workspace's banner image used during the release process"
444
+ });
445
+ var workspaceReleaseHeaderSchema = z.optional(
446
+ z.string().check(z.trim())
275
447
  );
276
- var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
277
- "The success color of the workspace"
448
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
449
+ description: "A header message appended to the start of the workspace's release notes"
450
+ });
451
+ var workspaceReleaseFooterSchema = z.optional(
452
+ z.string().check(z.trim())
278
453
  );
279
- var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
280
- "The informational color of the workspace"
454
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
455
+ description: "A footer message appended to the end of the workspace's release notes"
456
+ });
457
+ var workspaceReleaseSchema = z.object({
458
+ banner: z.union([
459
+ workspaceReleaseBannerSchema,
460
+ z.string().check(z.trim(), z.url())
461
+ ]),
462
+ header: workspaceReleaseHeaderSchema,
463
+ footer: workspaceReleaseFooterSchema
464
+ });
465
+ schemaRegistry.add(workspaceReleaseSchema, {
466
+ description: "The workspace's release config used during the release process"
467
+ });
468
+ var workspaceSocialsTwitterSchema = z.optional(
469
+ z.string().check(z.trim())
281
470
  );
282
- var WarningColorSchema = ColorSchema.default("#f3d371").describe(
283
- "The warning color of the workspace"
471
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
472
+ description: "A Twitter/X account associated with the organization/project"
473
+ });
474
+ var workspaceSocialsDiscordSchema = z.optional(
475
+ z.string().check(z.trim())
284
476
  );
285
- var DangerColorSchema = ColorSchema.default("#d8314a").describe(
286
- "The danger color of the workspace"
477
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
478
+ description: "A Discord account associated with the organization/project"
479
+ });
480
+ var workspaceSocialsTelegramSchema = z.optional(
481
+ z.string().check(z.trim())
287
482
  );
288
- var FatalColorSchema = ColorSchema.optional().describe(
289
- "The fatal color of the workspace"
483
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
484
+ description: "A Telegram account associated with the organization/project"
485
+ });
486
+ var workspaceSocialsSlackSchema = z.optional(
487
+ z.string().check(z.trim())
290
488
  );
291
- var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
292
- "The positive number color of the workspace"
489
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
490
+ description: "A Slack account associated with the organization/project"
491
+ });
492
+ var workspaceSocialsMediumSchema = z.optional(
493
+ z.string().check(z.trim())
293
494
  );
294
- var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
295
- "The negative number color of the workspace"
495
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
496
+ description: "A Medium account associated with the organization/project"
497
+ });
498
+ var workspaceSocialsGithubSchema = z.optional(
499
+ z.string().check(z.trim())
296
500
  );
297
- var GradientStopsSchema = z.array(ColorSchema).optional().describe(
298
- "The color stops for the base gradient color pattern used in the workspace"
501
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
502
+ description: "A GitHub account associated with the organization/project"
503
+ });
504
+ var workspaceSocialsSchema = z.object({
505
+ twitter: workspaceSocialsTwitterSchema,
506
+ discord: workspaceSocialsDiscordSchema,
507
+ telegram: workspaceSocialsTelegramSchema,
508
+ slack: workspaceSocialsSlackSchema,
509
+ medium: workspaceSocialsMediumSchema,
510
+ github: workspaceSocialsGithubSchema
511
+ });
512
+ schemaRegistry.add(workspaceSocialsSchema, {
513
+ description: "The workspace's account config used to store various social media links"
514
+ });
515
+ var workspaceDirectoryCacheSchema = z.optional(
516
+ z.string().check(z.trim())
299
517
  );
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
518
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
519
+ description: "The directory used to store the environment's cached file data"
520
+ });
521
+ var workspaceDirectoryDataSchema = z.optional(
522
+ z.string().check(z.trim())
369
523
  );
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."
524
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
525
+ description: "The directory used to store the environment's data files"
526
+ });
527
+ var workspaceDirectoryConfigSchema = z.optional(
528
+ z.string().check(z.trim())
372
529
  );
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."
530
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
531
+ description: "The directory used to store the environment's configuration files"
532
+ });
533
+ var workspaceDirectoryTempSchema = z.optional(
534
+ z.string().check(z.trim())
377
535
  );
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"
536
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
537
+ description: "The directory used to store the environment's temp files"
538
+ });
539
+ var workspaceDirectoryLogSchema = z.optional(
540
+ z.string().check(z.trim())
385
541
  );
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"
542
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
543
+ description: "The directory used to store the environment's log files"
544
+ });
545
+ var workspaceDirectoryBuildSchema = z._default(
546
+ z.string().check(z.trim()),
547
+ "dist"
406
548
  );
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"
549
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
550
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
551
+ });
552
+ var workspaceDirectorySchema = z.object({
553
+ cache: workspaceDirectoryCacheSchema,
554
+ data: workspaceDirectoryDataSchema,
555
+ config: workspaceDirectoryConfigSchema,
556
+ temp: workspaceDirectoryTempSchema,
557
+ log: workspaceDirectoryLogSchema,
558
+ build: workspaceDirectoryBuildSchema
559
+ });
560
+ schemaRegistry.add(workspaceDirectorySchema, {
561
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
562
+ });
563
+ var errorCodesFileSchema = z._default(
564
+ z.string().check(z.trim()),
565
+ STORM_DEFAULT_ERROR_CODES_FILE
422
566
  );
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([
567
+ schemaRegistry.add(errorCodesFileSchema, {
568
+ description: "The path to the workspace's error codes JSON file"
569
+ });
570
+ var errorUrlSchema = z.optional(z.url());
571
+ schemaRegistry.add(errorUrlSchema, {
572
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
573
+ });
574
+ var errorSchema = z.object({
575
+ codesFile: errorCodesFileSchema,
576
+ url: errorUrlSchema
577
+ });
578
+ schemaRegistry.add(errorSchema, {
579
+ description: "The workspace's error config used when creating error details during a system error"
580
+ });
581
+ var organizationNameSchema = z.optional(
582
+ z.string().check(z.trim(), z.toLowerCase())
583
+ );
584
+ schemaRegistry.add(organizationNameSchema, {
585
+ description: "The name of the organization"
586
+ });
587
+ var organizationDescriptionSchema = z.optional(
588
+ z.string().check(z.trim())
589
+ );
590
+ schemaRegistry.add(organizationDescriptionSchema, {
591
+ description: "A description of the organization"
592
+ });
593
+ var organizationLogoSchema = z.optional(z.url());
594
+ schemaRegistry.add(organizationLogoSchema, {
595
+ description: "A URL to the organization's logo image"
596
+ });
597
+ var organizationIconSchema = z.optional(z.url());
598
+ schemaRegistry.add(organizationIconSchema, {
599
+ description: "A URL to the organization's icon image"
600
+ });
601
+ var organizationUrlSchema = z.optional(z.url());
602
+ schemaRegistry.add(organizationUrlSchema, {
603
+ description: "A URL to a page that provides more information about the organization"
604
+ });
605
+ var organizationSchema = z.object({
606
+ name: organizationNameSchema,
607
+ description: organizationDescriptionSchema,
608
+ logo: organizationLogoSchema,
609
+ icon: organizationIconSchema,
610
+ url: organizationUrlSchema
611
+ });
612
+ schemaRegistry.add(organizationSchema, {
613
+ description: "The workspace's organization details"
614
+ });
615
+ var schemaNameSchema = z._default(
616
+ z.string().check(z.trim(), z.toLowerCase()),
617
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
618
+ );
619
+ schemaRegistry.add(schemaNameSchema, {
620
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
621
+ });
622
+ var nameSchema = z.string().check(z.trim(), z.toLowerCase());
623
+ schemaRegistry.add(nameSchema, {
624
+ description: "The name of the workspace/project/service/package/scope using this configuration"
625
+ });
626
+ var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
627
+ schemaRegistry.add(namespaceSchema, {
628
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
629
+ });
630
+ var orgSchema = z.union([
631
+ organizationSchema,
632
+ z.string().check(z.trim(), z.toLowerCase())
633
+ ]);
634
+ schemaRegistry.add(orgSchema, {
635
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
636
+ });
637
+ var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
638
+ schemaRegistry.add(repositorySchema, {
639
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
640
+ });
641
+ var licenseSchema = z._default(
642
+ z.string().check(z.trim()),
643
+ "Apache-2.0"
644
+ );
645
+ schemaRegistry.add(licenseSchema, {
646
+ description: "The license type of the package"
647
+ });
648
+ var homepageSchema = z.optional(z.url());
649
+ schemaRegistry.add(homepageSchema, {
650
+ description: "The homepage of the workspace"
651
+ });
652
+ var docsSchema = z.optional(z.url());
653
+ schemaRegistry.add(docsSchema, {
654
+ description: "The documentation site for the workspace"
655
+ });
656
+ var portalSchema = z.optional(z.url());
657
+ schemaRegistry.add(portalSchema, {
658
+ description: "The development portal site for the workspace"
659
+ });
660
+ var licensingSchema = z.optional(z.url());
661
+ schemaRegistry.add(licensingSchema, {
662
+ description: "The licensing site for the workspace"
663
+ });
664
+ var contactSchema = z.optional(z.url());
665
+ schemaRegistry.add(contactSchema, {
666
+ description: "The contact site for the workspace"
667
+ });
668
+ var supportSchema = z.optional(z.url());
669
+ schemaRegistry.add(supportSchema, {
670
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
671
+ });
672
+ var branchSchema = z._default(
673
+ z.string().check(z.trim(), z.toLowerCase()),
674
+ "main"
675
+ );
676
+ schemaRegistry.add(branchSchema, {
677
+ description: "The branch of the workspace"
678
+ });
679
+ var preidSchema = z.optional(
680
+ z.string().check(z.trim(), z.toLowerCase())
681
+ );
682
+ schemaRegistry.add(preidSchema, {
683
+ description: "A tag specifying the version pre-release identifier"
684
+ });
685
+ var ownerSchema = z.optional(
686
+ z.string().check(z.trim(), z.toLowerCase())
687
+ );
688
+ schemaRegistry.add(ownerSchema, {
689
+ description: "The owner of the package"
690
+ });
691
+ var modeSchema = z._default(
692
+ z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
693
+ "production"
694
+ );
695
+ schemaRegistry.add(modeSchema, {
696
+ description: "The current runtime environment mode for the package"
697
+ });
698
+ var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
699
+ schemaRegistry.add(workspaceRootSchema, {
700
+ description: "The root directory of the workspace"
701
+ });
702
+ var skipCacheSchema = z._default(z.boolean(), false);
703
+ schemaRegistry.add(skipCacheSchema, {
704
+ description: "Should all known types of workspace caching be skipped?"
705
+ });
706
+ var packageManagerSchema = z._default(
707
+ z.enum(["npm", "yarn", "pnpm", "bun"]),
708
+ "npm"
709
+ );
710
+ schemaRegistry.add(packageManagerSchema, {
711
+ description: "The JavaScript/TypeScript package manager used by the repository"
712
+ });
713
+ var timezoneSchema = z._default(
714
+ z.string().check(z.trim(), z.toLowerCase()),
715
+ "America/New_York"
716
+ );
717
+ schemaRegistry.add(timezoneSchema, {
718
+ description: "The default timezone of the workspace"
719
+ });
720
+ var localeSchema = z._default(
721
+ z.string().check(z.trim(), z.toLowerCase()),
722
+ "en-US"
723
+ );
724
+ schemaRegistry.add(localeSchema, {
725
+ description: "The default locale of the workspace"
726
+ });
727
+ var logLevelSchema = z._default(
728
+ z.enum([
479
729
  "silent",
480
730
  "fatal",
481
731
  "error",
@@ -485,23 +735,65 @@ var stormWorkspaceConfigSchema = z.object({
485
735
  "debug",
486
736
  "trace",
487
737
  "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."
738
+ ]),
739
+ "info"
504
740
  );
741
+ schemaRegistry.add(logLevelSchema, {
742
+ description: "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`)."
743
+ });
744
+ var skipConfigLoggingSchema = z._default(z.boolean(), true);
745
+ schemaRegistry.add(skipConfigLoggingSchema, {
746
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
747
+ });
748
+ var configFileSchema = z._default(
749
+ z.nullable(z.string().check(z.trim())),
750
+ null
751
+ );
752
+ schemaRegistry.add(configFileSchema, {
753
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
754
+ });
755
+ var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
756
+ schemaRegistry.add(extensionsSchema, {
757
+ description: "Configuration of each used extension"
758
+ });
759
+ var workspaceConfigSchema = z.object({
760
+ $schema: schemaNameSchema,
761
+ extends: extendsSchema,
762
+ name: nameSchema,
763
+ namespace: namespaceSchema,
764
+ organization: orgSchema,
765
+ repository: repositorySchema,
766
+ license: licenseSchema,
767
+ homepage: homepageSchema,
768
+ docs: docsSchema,
769
+ portal: portalSchema,
770
+ licensing: licensingSchema,
771
+ contact: contactSchema,
772
+ support: supportSchema,
773
+ branch: branchSchema,
774
+ preid: preidSchema,
775
+ owner: ownerSchema,
776
+ bot: workspaceBotSchema,
777
+ release: workspaceReleaseSchema,
778
+ socials: workspaceSocialsSchema,
779
+ error: errorSchema,
780
+ mode: modeSchema,
781
+ workspaceRoot: workspaceRootSchema,
782
+ skipCache: skipCacheSchema,
783
+ directories: workspaceDirectorySchema,
784
+ packageManager: packageManagerSchema,
785
+ timezone: timezoneSchema,
786
+ locale: localeSchema,
787
+ logLevel: logLevelSchema,
788
+ skipConfigLogging: skipConfigLoggingSchema,
789
+ registry: registrySchema,
790
+ configFile: configFileSchema,
791
+ colors: z.union([colorsSchema, themeColorsSchema]),
792
+ extensions: extensionsSchema
793
+ });
794
+ schemaRegistry.add(extensionsSchema, {
795
+ description: "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."
796
+ });
505
797
 
506
798
  // ../config-tools/src/create-storm-config.ts
507
799
  import defu2 from "defu";
@@ -717,7 +1009,10 @@ var getConfigEnv = () => {
717
1009
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
718
1010
  },
719
1011
  release: {
720
- banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
1012
+ banner: {
1013
+ url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
1014
+ alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
1015
+ },
721
1016
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
722
1017
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
723
1018
  },
@@ -794,11 +1089,11 @@ var getConfigEnv = () => {
794
1089
  );
795
1090
  config.colors = themeNames.length > 0 ? themeNames.reduce(
796
1091
  (ret, themeName) => {
797
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
1092
+ ret[themeName] = getThemeColorsEnv(prefix, themeName);
798
1093
  return ret;
799
1094
  },
800
1095
  {}
801
- ) : getThemeColorConfigEnv(prefix);
1096
+ ) : getThemeColorsEnv(prefix);
802
1097
  if (config.docs === STORM_DEFAULT_DOCS) {
803
1098
  if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
804
1099
  config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
@@ -825,11 +1120,11 @@ var getConfigEnv = () => {
825
1120
  }
826
1121
  return config;
827
1122
  };
828
- var getThemeColorConfigEnv = (prefix, theme) => {
1123
+ var getThemeColorsEnv = (prefix, theme) => {
829
1124
  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);
1125
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
831
1126
  };
832
- var getSingleThemeColorConfigEnv = (prefix) => {
1127
+ var getSingleThemeColorsEnv = (prefix) => {
833
1128
  const gradient = [];
834
1129
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
835
1130
  gradient.push(
@@ -861,15 +1156,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
861
1156
  gradient
862
1157
  };
863
1158
  };
864
- var getMultiThemeColorConfigEnv = (prefix) => {
1159
+ var getMultiThemeColorsEnv = (prefix) => {
865
1160
  return {
866
- light: getBaseThemeColorConfigEnv(
867
- `${prefix}_LIGHT_`
868
- ),
869
- dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
1161
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
1162
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
870
1163
  };
871
1164
  };
872
- var getBaseThemeColorConfigEnv = (prefix) => {
1165
+ var getBaseThemeColorsEnv = (prefix) => {
873
1166
  const gradient = [];
874
1167
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
875
1168
  gradient.push(
@@ -948,7 +1241,16 @@ var setConfigEnv = (config) => {
948
1241
  process.env[`${prefix}ERROR_URL`] = config.error.url;
949
1242
  }
950
1243
  if (config.release) {
951
- process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1244
+ if (config.release.banner) {
1245
+ if (typeof config.release.banner === "string") {
1246
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1247
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
1248
+ } else {
1249
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
1250
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
1251
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
1252
+ }
1253
+ }
952
1254
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
953
1255
  process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
954
1256
  }
@@ -1091,10 +1393,10 @@ var setConfigEnv = (config) => {
1091
1393
  }
1092
1394
  if (config.colors?.base?.light || config.colors?.base?.dark) {
1093
1395
  for (const key of Object.keys(config.colors)) {
1094
- setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1396
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1095
1397
  }
1096
1398
  } else {
1097
- setThemeColorConfigEnv(
1399
+ setThemeColorsEnv(
1098
1400
  `${prefix}COLOR_`,
1099
1401
  config.colors
1100
1402
  );
@@ -1149,10 +1451,10 @@ var setConfigEnv = (config) => {
1149
1451
  }
1150
1452
  }
1151
1453
  };
1152
- var setThemeColorConfigEnv = (prefix, config) => {
1153
- return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1454
+ var setThemeColorsEnv = (prefix, config) => {
1455
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1154
1456
  };
1155
- var setSingleThemeColorConfigEnv = (prefix, config) => {
1457
+ var setSingleThemeColorsEnv = (prefix, config) => {
1156
1458
  if (config.dark) {
1157
1459
  process.env[`${prefix}DARK`] = config.dark;
1158
1460
  }
@@ -1201,13 +1503,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
1201
1503
  }
1202
1504
  }
1203
1505
  };
1204
- var setMultiThemeColorConfigEnv = (prefix, config) => {
1506
+ var setMultiThemeColorsEnv = (prefix, config) => {
1205
1507
  return {
1206
- light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
1207
- dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
1508
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
1509
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
1208
1510
  };
1209
1511
  };
1210
- var setBaseThemeColorConfigEnv = (prefix, config) => {
1512
+ var setBaseThemeColorsEnv = (prefix, config) => {
1211
1513
  if (config.foreground) {
1212
1514
  process.env[`${prefix}FOREGROUND`] = config.foreground;
1213
1515
  }
@@ -1288,7 +1590,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1288
1590
  );
1289
1591
  try {
1290
1592
  result = applyDefaultConfig(
1291
- await stormWorkspaceConfigSchema.parseAsync(configInput)
1593
+ await workspaceConfigSchema.parseAsync(configInput)
1292
1594
  );
1293
1595
  result.workspaceRoot ??= _workspaceRoot;
1294
1596
  } catch (error) {
@@ -1364,7 +1666,8 @@ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
1364
1666
  export {
1365
1667
  joinPaths,
1366
1668
  findWorkspaceRoot,
1367
- stormWorkspaceConfigSchema,
1669
+ schemaRegistry,
1670
+ workspaceConfigSchema,
1368
1671
  getConfig,
1369
1672
  getWorkspaceConfig
1370
1673
  };