@storm-software/unbuild 0.50.1 → 0.51.1

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.
@@ -504,12 +504,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
504
504
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
505
505
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
506
506
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
507
- var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
508
507
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
509
- var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
510
508
  var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
511
- var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
512
- var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
513
509
  var STORM_DEFAULT_RELEASE_FOOTER = `
514
510
  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.
515
511
 
@@ -518,234 +514,488 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
518
514
  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!
519
515
  `;
520
516
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
517
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
521
518
 
522
519
  // ../config/src/schema.ts
523
- var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
524
- var ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7);
525
- var DarkColorSchema = ColorSchema.default("#151718").describe(
526
- "The dark background color of the workspace"
520
+ var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
521
+ var schemaRegistry = z.registry();
522
+ var colorSchema = z.string().check(
523
+ z.length(7),
524
+ z.toLowerCase(),
525
+ z.regex(/^#([0-9a-f]{3}){1,2}$/i),
526
+ z.trim()
527
527
  );
528
- var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
529
- "The light background color of the workspace"
528
+ schemaRegistry.add(colorSchema, {
529
+ description: "A base schema for describing the format of colors"
530
+ });
531
+ var darkColorSchema = z._default(colorSchema, "#151718");
532
+ schemaRegistry.add(darkColorSchema, {
533
+ description: "The dark background color of the workspace"
534
+ });
535
+ var lightColorSchema = z._default(colorSchema, "#cbd5e1");
536
+ schemaRegistry.add(lightColorSchema, {
537
+ description: "The light background color of the workspace"
538
+ });
539
+ var brandColorSchema = z._default(colorSchema, "#1fb2a6");
540
+ schemaRegistry.add(brandColorSchema, {
541
+ description: "The primary brand specific color of the workspace"
542
+ });
543
+ var alternateColorSchema = z.optional(colorSchema);
544
+ schemaRegistry.add(alternateColorSchema, {
545
+ description: "The alternate brand specific color of the workspace"
546
+ });
547
+ var accentColorSchema = z.optional(colorSchema);
548
+ schemaRegistry.add(accentColorSchema, {
549
+ description: "The secondary brand specific color of the workspace"
550
+ });
551
+ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
552
+ schemaRegistry.add(linkColorSchema, {
553
+ description: "The color used to display hyperlink text"
554
+ });
555
+ var helpColorSchema = z._default(colorSchema, "#818cf8");
556
+ schemaRegistry.add(helpColorSchema, {
557
+ description: "The second brand specific color of the workspace"
558
+ });
559
+ var successColorSchema = z._default(colorSchema, "#45b27e");
560
+ schemaRegistry.add(successColorSchema, {
561
+ description: "The success color of the workspace"
562
+ });
563
+ var infoColorSchema = z._default(colorSchema, "#38bdf8");
564
+ schemaRegistry.add(infoColorSchema, {
565
+ description: "The informational color of the workspace"
566
+ });
567
+ var warningColorSchema = z._default(colorSchema, "#f3d371");
568
+ schemaRegistry.add(warningColorSchema, {
569
+ description: "The warning color of the workspace"
570
+ });
571
+ var dangerColorSchema = z._default(colorSchema, "#d8314a");
572
+ schemaRegistry.add(dangerColorSchema, {
573
+ description: "The danger color of the workspace"
574
+ });
575
+ var fatalColorSchema = z.optional(colorSchema);
576
+ schemaRegistry.add(fatalColorSchema, {
577
+ description: "The fatal color of the workspace"
578
+ });
579
+ var positiveColorSchema = z._default(colorSchema, "#4ade80");
580
+ schemaRegistry.add(positiveColorSchema, {
581
+ description: "The positive number color of the workspace"
582
+ });
583
+ var negativeColorSchema = z._default(colorSchema, "#ef4444");
584
+ schemaRegistry.add(negativeColorSchema, {
585
+ description: "The negative number color of the workspace"
586
+ });
587
+ var gradientStopsSchema = z.optional(z.array(colorSchema));
588
+ schemaRegistry.add(gradientStopsSchema, {
589
+ description: "The color stops for the base gradient color pattern used in the workspace"
590
+ });
591
+ var darkColorsSchema = z.object({
592
+ foreground: lightColorSchema,
593
+ background: darkColorSchema,
594
+ brand: brandColorSchema,
595
+ alternate: alternateColorSchema,
596
+ accent: accentColorSchema,
597
+ link: linkColorSchema,
598
+ help: helpColorSchema,
599
+ success: successColorSchema,
600
+ info: infoColorSchema,
601
+ warning: warningColorSchema,
602
+ danger: dangerColorSchema,
603
+ fatal: fatalColorSchema,
604
+ positive: positiveColorSchema,
605
+ negative: negativeColorSchema,
606
+ gradient: gradientStopsSchema
607
+ });
608
+ var lightColorsSchema = z.object({
609
+ foreground: darkColorSchema,
610
+ background: lightColorSchema,
611
+ brand: brandColorSchema,
612
+ alternate: alternateColorSchema,
613
+ accent: accentColorSchema,
614
+ link: linkColorSchema,
615
+ help: helpColorSchema,
616
+ success: successColorSchema,
617
+ info: infoColorSchema,
618
+ warning: warningColorSchema,
619
+ danger: dangerColorSchema,
620
+ fatal: fatalColorSchema,
621
+ positive: positiveColorSchema,
622
+ negative: negativeColorSchema,
623
+ gradient: gradientStopsSchema
624
+ });
625
+ var multiColorsSchema = z.object({
626
+ dark: darkColorsSchema,
627
+ light: lightColorsSchema
628
+ });
629
+ var singleColorsSchema = z.object({
630
+ dark: darkColorSchema,
631
+ light: lightColorSchema,
632
+ brand: brandColorSchema,
633
+ alternate: alternateColorSchema,
634
+ accent: accentColorSchema,
635
+ link: linkColorSchema,
636
+ help: helpColorSchema,
637
+ success: successColorSchema,
638
+ info: infoColorSchema,
639
+ warning: warningColorSchema,
640
+ danger: dangerColorSchema,
641
+ fatal: fatalColorSchema,
642
+ positive: positiveColorSchema,
643
+ negative: negativeColorSchema,
644
+ gradient: gradientStopsSchema
645
+ });
646
+ var registryUrlConfigSchema = z.optional(z.url());
647
+ schemaRegistry.add(registryUrlConfigSchema, {
648
+ description: "A remote registry URL used to publish distributable packages"
649
+ });
650
+ var registrySchema = z._default(
651
+ z.object({
652
+ github: registryUrlConfigSchema,
653
+ npm: registryUrlConfigSchema,
654
+ cargo: registryUrlConfigSchema,
655
+ cyclone: registryUrlConfigSchema,
656
+ container: registryUrlConfigSchema
657
+ }),
658
+ {}
530
659
  );
531
- var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
532
- "The primary brand specific color of the workspace"
660
+ schemaRegistry.add(registrySchema, {
661
+ description: "A list of remote registry URLs used by Storm Software"
662
+ });
663
+ var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
664
+ schemaRegistry.add(colorsSchema, {
665
+ description: "Colors used for various workspace elements"
666
+ });
667
+ var themeColorsSchema = z.record(
668
+ z.union([z.union([z.literal("base"), z.string()]), z.string()]),
669
+ colorsSchema
533
670
  );
534
- var AlternateColorSchema = ColorSchema.optional().describe(
535
- "The alternate brand specific color of the workspace"
671
+ schemaRegistry.add(themeColorsSchema, {
672
+ description: "Storm theme config values used for styling various package elements"
673
+ });
674
+ var extendsSchema = z.optional(
675
+ z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
536
676
  );
537
- var AccentColorSchema = ColorSchema.optional().describe(
538
- "The secondary brand specific color of the workspace"
677
+ schemaRegistry.add(extendsSchema, {
678
+ 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."
679
+ });
680
+ var workspaceBotNameSchema = z.string().check(z.trim());
681
+ schemaRegistry.add(workspaceBotNameSchema, {
682
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
683
+ });
684
+ var workspaceBotEmailSchema = z.string().check(z.trim());
685
+ schemaRegistry.add(workspaceBotEmailSchema, {
686
+ description: "The email of the workspace bot"
687
+ });
688
+ var workspaceBotSchema = z.object({
689
+ name: workspaceBotNameSchema,
690
+ email: workspaceBotEmailSchema
691
+ });
692
+ schemaRegistry.add(workspaceBotSchema, {
693
+ description: "The workspace's bot user's config used to automated various operations tasks"
694
+ });
695
+ var workspaceReleaseBannerUrlSchema = z.optional(
696
+ z.string().check(z.trim(), z.url())
539
697
  );
540
- var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
541
- "The color used to display hyperlink text"
698
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
699
+ description: "A URL to a banner image used to display the workspace's release"
700
+ });
701
+ var workspaceReleaseBannerAltSchema = z._default(
702
+ z.string().check(z.trim()),
703
+ STORM_DEFAULT_BANNER_ALT
542
704
  );
543
- var HelpColorSchema = ColorSchema.default("#818cf8").describe(
544
- "The second brand specific color of the workspace"
705
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
706
+ description: "The alt text for the workspace's release banner image"
707
+ });
708
+ var workspaceReleaseBannerSchema = z.object({
709
+ url: workspaceReleaseBannerUrlSchema,
710
+ alt: workspaceReleaseBannerAltSchema
711
+ });
712
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
713
+ description: "The workspace's banner image used during the release process"
714
+ });
715
+ var workspaceReleaseHeaderSchema = z.optional(
716
+ z.string().check(z.trim())
545
717
  );
546
- var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
547
- "The success color of the workspace"
718
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
719
+ description: "A header message appended to the start of the workspace's release notes"
720
+ });
721
+ var workspaceReleaseFooterSchema = z.optional(
722
+ z.string().check(z.trim())
548
723
  );
549
- var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
550
- "The informational color of the workspace"
724
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
725
+ description: "A footer message appended to the end of the workspace's release notes"
726
+ });
727
+ var workspaceReleaseSchema = z.object({
728
+ banner: z.union([
729
+ workspaceReleaseBannerSchema,
730
+ z.string().check(z.trim(), z.url())
731
+ ]),
732
+ header: workspaceReleaseHeaderSchema,
733
+ footer: workspaceReleaseFooterSchema
734
+ });
735
+ schemaRegistry.add(workspaceReleaseSchema, {
736
+ description: "The workspace's release config used during the release process"
737
+ });
738
+ var workspaceSocialsTwitterSchema = z.optional(
739
+ z.string().check(z.trim())
551
740
  );
552
- var WarningColorSchema = ColorSchema.default("#f3d371").describe(
553
- "The warning color of the workspace"
741
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
742
+ description: "A Twitter/X account associated with the organization/project"
743
+ });
744
+ var workspaceSocialsDiscordSchema = z.optional(
745
+ z.string().check(z.trim())
554
746
  );
555
- var DangerColorSchema = ColorSchema.default("#d8314a").describe(
556
- "The danger color of the workspace"
747
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
748
+ description: "A Discord account associated with the organization/project"
749
+ });
750
+ var workspaceSocialsTelegramSchema = z.optional(
751
+ z.string().check(z.trim())
557
752
  );
558
- var FatalColorSchema = ColorSchema.optional().describe(
559
- "The fatal color of the workspace"
753
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
754
+ description: "A Telegram account associated with the organization/project"
755
+ });
756
+ var workspaceSocialsSlackSchema = z.optional(
757
+ z.string().check(z.trim())
560
758
  );
561
- var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
562
- "The positive number color of the workspace"
759
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
760
+ description: "A Slack account associated with the organization/project"
761
+ });
762
+ var workspaceSocialsMediumSchema = z.optional(
763
+ z.string().check(z.trim())
563
764
  );
564
- var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
565
- "The negative number color of the workspace"
765
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
766
+ description: "A Medium account associated with the organization/project"
767
+ });
768
+ var workspaceSocialsGithubSchema = z.optional(
769
+ z.string().check(z.trim())
566
770
  );
567
- var GradientStopsSchema = z.array(ColorSchema).optional().describe(
568
- "The color stops for the base gradient color pattern used in the workspace"
771
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
772
+ description: "A GitHub account associated with the organization/project"
773
+ });
774
+ var workspaceSocialsSchema = z.object({
775
+ twitter: workspaceSocialsTwitterSchema,
776
+ discord: workspaceSocialsDiscordSchema,
777
+ telegram: workspaceSocialsTelegramSchema,
778
+ slack: workspaceSocialsSlackSchema,
779
+ medium: workspaceSocialsMediumSchema,
780
+ github: workspaceSocialsGithubSchema
781
+ });
782
+ schemaRegistry.add(workspaceSocialsSchema, {
783
+ description: "The workspace's account config used to store various social media links"
784
+ });
785
+ var workspaceDirectoryCacheSchema = z.optional(
786
+ z.string().check(z.trim())
569
787
  );
570
- var DarkThemeColorConfigSchema = z.object({
571
- foreground: LightColorSchema,
572
- background: DarkColorSchema,
573
- brand: BrandColorSchema,
574
- alternate: AlternateColorSchema,
575
- accent: AccentColorSchema,
576
- link: LinkColorSchema,
577
- help: HelpColorSchema,
578
- success: SuccessColorSchema,
579
- info: InfoColorSchema,
580
- warning: WarningColorSchema,
581
- danger: DangerColorSchema,
582
- fatal: FatalColorSchema,
583
- positive: PositiveColorSchema,
584
- negative: NegativeColorSchema,
585
- gradient: GradientStopsSchema
586
- });
587
- var LightThemeColorConfigSchema = z.object({
588
- foreground: DarkColorSchema,
589
- background: LightColorSchema,
590
- brand: BrandColorSchema,
591
- alternate: AlternateColorSchema,
592
- accent: AccentColorSchema,
593
- link: LinkColorSchema,
594
- help: HelpColorSchema,
595
- success: SuccessColorSchema,
596
- info: InfoColorSchema,
597
- warning: WarningColorSchema,
598
- danger: DangerColorSchema,
599
- fatal: FatalColorSchema,
600
- positive: PositiveColorSchema,
601
- negative: NegativeColorSchema,
602
- gradient: GradientStopsSchema
603
- });
604
- var MultiThemeColorConfigSchema = z.object({
605
- dark: DarkThemeColorConfigSchema,
606
- light: LightThemeColorConfigSchema
607
- });
608
- var SingleThemeColorConfigSchema = z.object({
609
- dark: DarkColorSchema,
610
- light: LightColorSchema,
611
- brand: BrandColorSchema,
612
- alternate: AlternateColorSchema,
613
- accent: AccentColorSchema,
614
- link: LinkColorSchema,
615
- help: HelpColorSchema,
616
- success: SuccessColorSchema,
617
- info: InfoColorSchema,
618
- warning: WarningColorSchema,
619
- danger: DangerColorSchema,
620
- fatal: FatalColorSchema,
621
- positive: PositiveColorSchema,
622
- negative: NegativeColorSchema,
623
- gradient: GradientStopsSchema
624
- });
625
- var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
626
- var RegistryConfigSchema = z.object({
627
- github: RegistryUrlConfigSchema,
628
- npm: RegistryUrlConfigSchema,
629
- cargo: RegistryUrlConfigSchema,
630
- cyclone: RegistryUrlConfigSchema,
631
- container: RegistryUrlConfigSchema
632
- }).default({}).describe("A list of remote registry URLs used by Storm Software");
633
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(
634
- MultiThemeColorConfigSchema
635
- ).describe("Colors used for various workspace elements");
636
- var ColorConfigMapSchema = z.record(
637
- z.union([z.literal("base"), z.string()]),
638
- ColorConfigSchema
788
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
789
+ description: "The directory used to store the environment's cached file data"
790
+ });
791
+ var workspaceDirectoryDataSchema = z.optional(
792
+ z.string().check(z.trim())
639
793
  );
640
- var ExtendsItemSchema = z.string().trim().describe(
641
- "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."
794
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
795
+ description: "The directory used to store the environment's data files"
796
+ });
797
+ var workspaceDirectoryConfigSchema = z.optional(
798
+ z.string().check(z.trim())
642
799
  );
643
- var ExtendsSchema = ExtendsItemSchema.or(
644
- z.array(ExtendsItemSchema)
645
- ).describe(
646
- "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."
800
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
801
+ description: "The directory used to store the environment's configuration files"
802
+ });
803
+ var workspaceDirectoryTempSchema = z.optional(
804
+ z.string().check(z.trim())
647
805
  );
648
- var WorkspaceBotConfigSchema = z.object({
649
- name: z.string().trim().default("stormie-bot").describe(
650
- "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
651
- ),
652
- email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
653
- }).describe(
654
- "The workspace's bot user's config used to automated various operations tasks"
806
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
807
+ description: "The directory used to store the environment's temp files"
808
+ });
809
+ var workspaceDirectoryLogSchema = z.optional(
810
+ z.string().check(z.trim())
655
811
  );
656
- var WorkspaceReleaseConfigSchema = z.object({
657
- banner: z.string().trim().optional().describe(
658
- "A URL to a banner image used to display the workspace's release"
659
- ),
660
- header: z.string().trim().optional().describe(
661
- "A header message appended to the start of the workspace's release notes"
662
- ),
663
- footer: z.string().trim().optional().describe(
664
- "A footer message appended to the end of the workspace's release notes"
665
- )
666
- }).describe("The workspace's release config used during the release process");
667
- var WorkspaceSocialsConfigSchema = z.object({
668
- twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
669
- discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
670
- telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
671
- slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
672
- medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
673
- github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
674
- }).describe(
675
- "The workspace's account config used to store various social media links"
812
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
813
+ description: "The directory used to store the environment's log files"
814
+ });
815
+ var workspaceDirectoryBuildSchema = z._default(
816
+ z.string().check(z.trim()),
817
+ "dist"
676
818
  );
677
- var WorkspaceDirectoryConfigSchema = z.object({
678
- cache: z.string().trim().optional().describe(
679
- "The directory used to store the environment's cached file data"
680
- ),
681
- data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
682
- config: z.string().trim().optional().describe(
683
- "The directory used to store the environment's configuration files"
684
- ),
685
- temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
686
- log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
687
- build: z.string().trim().default("dist").describe(
688
- "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
689
- )
690
- }).describe(
691
- "Various directories used by the workspace to store data, cache, and configuration files"
819
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
820
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
821
+ });
822
+ var workspaceDirectorySchema = z.object({
823
+ cache: workspaceDirectoryCacheSchema,
824
+ data: workspaceDirectoryDataSchema,
825
+ config: workspaceDirectoryConfigSchema,
826
+ temp: workspaceDirectoryTempSchema,
827
+ log: workspaceDirectoryLogSchema,
828
+ build: workspaceDirectoryBuildSchema
829
+ });
830
+ schemaRegistry.add(workspaceDirectorySchema, {
831
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
832
+ });
833
+ var errorCodesFileSchema = z._default(
834
+ z.string().check(z.trim()),
835
+ STORM_DEFAULT_ERROR_CODES_FILE
692
836
  );
693
- var errorConfigSchema = z.object({
694
- codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
695
- url: z.url().optional().describe(
696
- "A URL to a page that looks up the workspace's error messages given a specific error code"
697
- )
698
- }).describe("The workspace's error config used during the error process");
699
- var organizationConfigSchema = z.object({
700
- name: z.string().trim().describe("The name of the organization"),
701
- description: z.string().trim().optional().describe("A description of the organization"),
702
- logo: z.url().optional().describe("A URL to the organization's logo image"),
703
- icon: z.url().optional().describe("A URL to the organization's icon image"),
704
- url: z.url().optional().describe(
705
- "A URL to a page that provides more information about the organization"
706
- )
707
- }).describe("The workspace's organization details");
708
- var stormWorkspaceConfigSchema = z.object({
709
- $schema: z.string().trim().default(
710
- "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
711
- ).describe(
712
- "The URL or file path to the JSON schema file that describes the Storm configuration file"
713
- ),
714
- extends: ExtendsSchema.optional(),
715
- name: z.string().trim().toLowerCase().optional().describe(
716
- "The name of the service/package/scope using this configuration"
717
- ),
718
- namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
719
- organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
720
- "The organization of the workspace. This can be a string or an object containing the organization's details"
721
- ),
722
- repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
723
- license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
724
- homepage: z.url().optional().describe("The homepage of the workspace"),
725
- docs: z.url().optional().describe("The documentation site for the workspace"),
726
- portal: z.url().optional().describe("The development portal site for the workspace"),
727
- licensing: z.url().optional().describe("The licensing site for the workspace"),
728
- contact: z.url().optional().describe("The contact site for the workspace"),
729
- support: z.url().optional().describe(
730
- "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
731
- ),
732
- branch: z.string().trim().default("main").describe("The branch of the workspace"),
733
- preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
734
- owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
735
- bot: WorkspaceBotConfigSchema,
736
- release: WorkspaceReleaseConfigSchema,
737
- socials: WorkspaceSocialsConfigSchema,
738
- error: errorConfigSchema,
739
- mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
740
- workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
741
- skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
742
- directories: WorkspaceDirectoryConfigSchema,
743
- packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
744
- "The JavaScript/TypeScript package manager used by the repository"
745
- ),
746
- timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
747
- locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
748
- logLevel: z.enum([
837
+ schemaRegistry.add(errorCodesFileSchema, {
838
+ description: "The path to the workspace's error codes JSON file"
839
+ });
840
+ var errorUrlSchema = z.optional(z.url());
841
+ schemaRegistry.add(errorUrlSchema, {
842
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
843
+ });
844
+ var errorSchema = z.object({
845
+ codesFile: errorCodesFileSchema,
846
+ url: errorUrlSchema
847
+ });
848
+ schemaRegistry.add(errorSchema, {
849
+ description: "The workspace's error config used when creating error details during a system error"
850
+ });
851
+ var organizationNameSchema = z.optional(
852
+ z.string().check(z.trim(), z.toLowerCase())
853
+ );
854
+ schemaRegistry.add(organizationNameSchema, {
855
+ description: "The name of the organization"
856
+ });
857
+ var organizationDescriptionSchema = z.optional(
858
+ z.string().check(z.trim())
859
+ );
860
+ schemaRegistry.add(organizationDescriptionSchema, {
861
+ description: "A description of the organization"
862
+ });
863
+ var organizationLogoSchema = z.optional(z.url());
864
+ schemaRegistry.add(organizationLogoSchema, {
865
+ description: "A URL to the organization's logo image"
866
+ });
867
+ var organizationIconSchema = z.optional(z.url());
868
+ schemaRegistry.add(organizationIconSchema, {
869
+ description: "A URL to the organization's icon image"
870
+ });
871
+ var organizationUrlSchema = z.optional(z.url());
872
+ schemaRegistry.add(organizationUrlSchema, {
873
+ description: "A URL to a page that provides more information about the organization"
874
+ });
875
+ var organizationSchema = z.object({
876
+ name: organizationNameSchema,
877
+ description: organizationDescriptionSchema,
878
+ logo: organizationLogoSchema,
879
+ icon: organizationIconSchema,
880
+ url: organizationUrlSchema
881
+ });
882
+ schemaRegistry.add(organizationSchema, {
883
+ description: "The workspace's organization details"
884
+ });
885
+ var schemaNameSchema = z._default(
886
+ z.string().check(z.trim(), z.toLowerCase()),
887
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
888
+ );
889
+ schemaRegistry.add(schemaNameSchema, {
890
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
891
+ });
892
+ var nameSchema = z.string().check(z.trim(), z.toLowerCase());
893
+ schemaRegistry.add(nameSchema, {
894
+ description: "The name of the workspace/project/service/package/scope using this configuration"
895
+ });
896
+ var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
897
+ schemaRegistry.add(namespaceSchema, {
898
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
899
+ });
900
+ var orgSchema = z.union([
901
+ organizationSchema,
902
+ z.string().check(z.trim(), z.toLowerCase())
903
+ ]);
904
+ schemaRegistry.add(orgSchema, {
905
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
906
+ });
907
+ var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
908
+ schemaRegistry.add(repositorySchema, {
909
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
910
+ });
911
+ var licenseSchema = z._default(
912
+ z.string().check(z.trim()),
913
+ "Apache-2.0"
914
+ );
915
+ schemaRegistry.add(licenseSchema, {
916
+ description: "The license type of the package"
917
+ });
918
+ var homepageSchema = z.optional(z.url());
919
+ schemaRegistry.add(homepageSchema, {
920
+ description: "The homepage of the workspace"
921
+ });
922
+ var docsSchema = z.optional(z.url());
923
+ schemaRegistry.add(docsSchema, {
924
+ description: "The documentation site for the workspace"
925
+ });
926
+ var portalSchema = z.optional(z.url());
927
+ schemaRegistry.add(portalSchema, {
928
+ description: "The development portal site for the workspace"
929
+ });
930
+ var licensingSchema = z.optional(z.url());
931
+ schemaRegistry.add(licensingSchema, {
932
+ description: "The licensing site for the workspace"
933
+ });
934
+ var contactSchema = z.optional(z.url());
935
+ schemaRegistry.add(contactSchema, {
936
+ description: "The contact site for the workspace"
937
+ });
938
+ var supportSchema = z.optional(z.url());
939
+ schemaRegistry.add(supportSchema, {
940
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
941
+ });
942
+ var branchSchema = z._default(
943
+ z.string().check(z.trim(), z.toLowerCase()),
944
+ "main"
945
+ );
946
+ schemaRegistry.add(branchSchema, {
947
+ description: "The branch of the workspace"
948
+ });
949
+ var preidSchema = z.optional(
950
+ z.string().check(z.trim(), z.toLowerCase())
951
+ );
952
+ schemaRegistry.add(preidSchema, {
953
+ description: "A tag specifying the version pre-release identifier"
954
+ });
955
+ var ownerSchema = z.optional(
956
+ z.string().check(z.trim(), z.toLowerCase())
957
+ );
958
+ schemaRegistry.add(ownerSchema, {
959
+ description: "The owner of the package"
960
+ });
961
+ var modeSchema = z._default(
962
+ z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
963
+ "production"
964
+ );
965
+ schemaRegistry.add(modeSchema, {
966
+ description: "The current runtime environment mode for the package"
967
+ });
968
+ var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
969
+ schemaRegistry.add(workspaceRootSchema, {
970
+ description: "The root directory of the workspace"
971
+ });
972
+ var skipCacheSchema = z._default(z.boolean(), false);
973
+ schemaRegistry.add(skipCacheSchema, {
974
+ description: "Should all known types of workspace caching be skipped?"
975
+ });
976
+ var packageManagerSchema = z._default(
977
+ z.enum(["npm", "yarn", "pnpm", "bun"]),
978
+ "npm"
979
+ );
980
+ schemaRegistry.add(packageManagerSchema, {
981
+ description: "The JavaScript/TypeScript package manager used by the repository"
982
+ });
983
+ var timezoneSchema = z._default(
984
+ z.string().check(z.trim(), z.toLowerCase()),
985
+ "America/New_York"
986
+ );
987
+ schemaRegistry.add(timezoneSchema, {
988
+ description: "The default timezone of the workspace"
989
+ });
990
+ var localeSchema = z._default(
991
+ z.string().check(z.trim(), z.toLowerCase()),
992
+ "en-US"
993
+ );
994
+ schemaRegistry.add(localeSchema, {
995
+ description: "The default locale of the workspace"
996
+ });
997
+ var logLevelSchema = z._default(
998
+ z.enum([
749
999
  "silent",
750
1000
  "fatal",
751
1001
  "error",
@@ -755,23 +1005,65 @@ var stormWorkspaceConfigSchema = z.object({
755
1005
  "debug",
756
1006
  "trace",
757
1007
  "all"
758
- ]).default("info").describe(
759
- "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`)."
760
- ),
761
- skipConfigLogging: z.boolean().optional().describe(
762
- "Should the logging of the current Storm Workspace configuration be skipped?"
763
- ),
764
- registry: RegistryConfigSchema,
765
- configFile: z.string().trim().nullable().default(null).describe(
766
- "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
767
- ),
768
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
769
- "Storm theme config values used for styling various package elements"
770
- ),
771
- extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
772
- }).describe(
773
- "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."
1008
+ ]),
1009
+ "info"
774
1010
  );
1011
+ schemaRegistry.add(logLevelSchema, {
1012
+ 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`)."
1013
+ });
1014
+ var skipConfigLoggingSchema = z._default(z.boolean(), true);
1015
+ schemaRegistry.add(skipConfigLoggingSchema, {
1016
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
1017
+ });
1018
+ var configFileSchema = z._default(
1019
+ z.nullable(z.string().check(z.trim())),
1020
+ null
1021
+ );
1022
+ schemaRegistry.add(configFileSchema, {
1023
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
1024
+ });
1025
+ var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
1026
+ schemaRegistry.add(extensionsSchema, {
1027
+ description: "Configuration of each used extension"
1028
+ });
1029
+ var workspaceConfigSchema = z.object({
1030
+ $schema: schemaNameSchema,
1031
+ extends: extendsSchema,
1032
+ name: nameSchema,
1033
+ namespace: namespaceSchema,
1034
+ organization: orgSchema,
1035
+ repository: repositorySchema,
1036
+ license: licenseSchema,
1037
+ homepage: homepageSchema,
1038
+ docs: docsSchema,
1039
+ portal: portalSchema,
1040
+ licensing: licensingSchema,
1041
+ contact: contactSchema,
1042
+ support: supportSchema,
1043
+ branch: branchSchema,
1044
+ preid: preidSchema,
1045
+ owner: ownerSchema,
1046
+ bot: workspaceBotSchema,
1047
+ release: workspaceReleaseSchema,
1048
+ socials: workspaceSocialsSchema,
1049
+ error: errorSchema,
1050
+ mode: modeSchema,
1051
+ workspaceRoot: workspaceRootSchema,
1052
+ skipCache: skipCacheSchema,
1053
+ directories: workspaceDirectorySchema,
1054
+ packageManager: packageManagerSchema,
1055
+ timezone: timezoneSchema,
1056
+ locale: localeSchema,
1057
+ logLevel: logLevelSchema,
1058
+ skipConfigLogging: skipConfigLoggingSchema,
1059
+ registry: registrySchema,
1060
+ configFile: configFileSchema,
1061
+ colors: z.union([colorsSchema, themeColorsSchema]),
1062
+ extensions: extensionsSchema
1063
+ });
1064
+ schemaRegistry.add(extensionsSchema, {
1065
+ 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."
1066
+ });
775
1067
 
776
1068
  // ../config/src/types.ts
777
1069
  var COLOR_KEYS = [
@@ -983,7 +1275,10 @@ var getConfigEnv = () => {
983
1275
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
984
1276
  },
985
1277
  release: {
986
- banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
1278
+ banner: {
1279
+ url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
1280
+ alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
1281
+ },
987
1282
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
988
1283
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
989
1284
  },
@@ -1060,11 +1355,11 @@ var getConfigEnv = () => {
1060
1355
  );
1061
1356
  config.colors = themeNames.length > 0 ? themeNames.reduce(
1062
1357
  (ret, themeName) => {
1063
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
1358
+ ret[themeName] = getThemeColorsEnv(prefix, themeName);
1064
1359
  return ret;
1065
1360
  },
1066
1361
  {}
1067
- ) : getThemeColorConfigEnv(prefix);
1362
+ ) : getThemeColorsEnv(prefix);
1068
1363
  if (config.docs === STORM_DEFAULT_DOCS) {
1069
1364
  if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
1070
1365
  config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
@@ -1091,11 +1386,11 @@ var getConfigEnv = () => {
1091
1386
  }
1092
1387
  return config;
1093
1388
  };
1094
- var getThemeColorConfigEnv = (prefix, theme) => {
1389
+ var getThemeColorsEnv = (prefix, theme) => {
1095
1390
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
1096
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
1391
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
1097
1392
  };
1098
- var getSingleThemeColorConfigEnv = (prefix) => {
1393
+ var getSingleThemeColorsEnv = (prefix) => {
1099
1394
  const gradient = [];
1100
1395
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
1101
1396
  gradient.push(
@@ -1127,15 +1422,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
1127
1422
  gradient
1128
1423
  };
1129
1424
  };
1130
- var getMultiThemeColorConfigEnv = (prefix) => {
1425
+ var getMultiThemeColorsEnv = (prefix) => {
1131
1426
  return {
1132
- light: getBaseThemeColorConfigEnv(
1133
- `${prefix}_LIGHT_`
1134
- ),
1135
- dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
1427
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
1428
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
1136
1429
  };
1137
1430
  };
1138
- var getBaseThemeColorConfigEnv = (prefix) => {
1431
+ var getBaseThemeColorsEnv = (prefix) => {
1139
1432
  const gradient = [];
1140
1433
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
1141
1434
  gradient.push(
@@ -1214,7 +1507,16 @@ var setConfigEnv = (config) => {
1214
1507
  process.env[`${prefix}ERROR_URL`] = config.error.url;
1215
1508
  }
1216
1509
  if (config.release) {
1217
- process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1510
+ if (config.release.banner) {
1511
+ if (typeof config.release.banner === "string") {
1512
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1513
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
1514
+ } else {
1515
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
1516
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
1517
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
1518
+ }
1519
+ }
1218
1520
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
1219
1521
  process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
1220
1522
  }
@@ -1357,10 +1659,10 @@ var setConfigEnv = (config) => {
1357
1659
  }
1358
1660
  if (_optionalChain([config, 'access', _46 => _46.colors, 'optionalAccess', _47 => _47.base, 'optionalAccess', _48 => _48.light]) || _optionalChain([config, 'access', _49 => _49.colors, 'optionalAccess', _50 => _50.base, 'optionalAccess', _51 => _51.dark])) {
1359
1661
  for (const key of Object.keys(config.colors)) {
1360
- setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1662
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1361
1663
  }
1362
1664
  } else {
1363
- setThemeColorConfigEnv(
1665
+ setThemeColorsEnv(
1364
1666
  `${prefix}COLOR_`,
1365
1667
  config.colors
1366
1668
  );
@@ -1415,10 +1717,10 @@ var setConfigEnv = (config) => {
1415
1717
  }
1416
1718
  }
1417
1719
  };
1418
- var setThemeColorConfigEnv = (prefix, config) => {
1419
- return _optionalChain([config, 'optionalAccess', _52 => _52.light, 'optionalAccess', _53 => _53.brand]) || _optionalChain([config, 'optionalAccess', _54 => _54.dark, 'optionalAccess', _55 => _55.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1720
+ var setThemeColorsEnv = (prefix, config) => {
1721
+ return _optionalChain([config, 'optionalAccess', _52 => _52.light, 'optionalAccess', _53 => _53.brand]) || _optionalChain([config, 'optionalAccess', _54 => _54.dark, 'optionalAccess', _55 => _55.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
1420
1722
  };
1421
- var setSingleThemeColorConfigEnv = (prefix, config) => {
1723
+ var setSingleThemeColorsEnv = (prefix, config) => {
1422
1724
  if (config.dark) {
1423
1725
  process.env[`${prefix}DARK`] = config.dark;
1424
1726
  }
@@ -1467,13 +1769,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
1467
1769
  }
1468
1770
  }
1469
1771
  };
1470
- var setMultiThemeColorConfigEnv = (prefix, config) => {
1772
+ var setMultiThemeColorsEnv = (prefix, config) => {
1471
1773
  return {
1472
- light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
1473
- dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
1774
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
1775
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
1474
1776
  };
1475
1777
  };
1476
- var setBaseThemeColorConfigEnv = (prefix, config) => {
1778
+ var setBaseThemeColorsEnv = (prefix, config) => {
1477
1779
  if (config.foreground) {
1478
1780
  process.env[`${prefix}FOREGROUND`] = config.foreground;
1479
1781
  }
@@ -1554,7 +1856,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1554
1856
  );
1555
1857
  try {
1556
1858
  result = applyDefaultConfig(
1557
- await stormWorkspaceConfigSchema.parseAsync(configInput)
1859
+ await workspaceConfigSchema.parseAsync(configInput)
1558
1860
  );
1559
1861
  result.workspaceRoot ??= _workspaceRoot;
1560
1862
  } catch (error) {