@storm-software/terraform-tools 0.61.1 → 0.62.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.
- package/CHANGELOG.md +25 -0
- package/README.md +1 -2
- package/dist/{chunk-VWGJH5XZ.mjs → chunk-4UUC5PL5.mjs} +1 -1
- package/dist/{chunk-LHLWLQYI.mjs → chunk-ASN7N3MD.mjs} +1 -1
- package/dist/{chunk-RIOD6BBP.js → chunk-C3TATPNG.js} +2 -2
- package/dist/{chunk-HJPLYKIK.js → chunk-EBBFG7FE.js} +2 -2
- package/dist/{chunk-OTXSJUFN.js → chunk-EDARDEZL.js} +2 -2
- package/dist/{chunk-PTGHK4O2.mjs → chunk-LDL6GDGI.mjs} +1 -1
- package/dist/{chunk-W3KFGH6F.mjs → chunk-LLEL65DB.mjs} +1 -1
- package/dist/{chunk-IRQ6ATAT.js → chunk-O6ULIZTX.js} +2 -2
- package/dist/{chunk-A3AZGCZW.mjs → chunk-OW3Z6C4U.mjs} +6 -4
- package/dist/{chunk-XLCDBNTQ.js → chunk-OZAMHBE3.js} +2 -2
- package/dist/{chunk-3HCCGFVA.js → chunk-P7TIR2I6.js} +552 -249
- package/dist/{chunk-QEMBK6MY.mjs → chunk-VD7U2ISL.mjs} +552 -249
- package/dist/{chunk-TTTXG2FP.mjs → chunk-VM73HSDX.mjs} +1 -1
- package/dist/{chunk-QDREZDRA.js → chunk-YAQKI2DU.js} +110 -108
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +2 -2
|
@@ -596,12 +596,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
596
596
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
597
597
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
598
598
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
599
|
-
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
600
599
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
601
|
-
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
602
600
|
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
603
|
-
var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
|
|
604
|
-
var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
|
|
605
601
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
606
602
|
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.
|
|
607
603
|
|
|
@@ -610,234 +606,488 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
|
|
|
610
606
|
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!
|
|
611
607
|
`;
|
|
612
608
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
609
|
+
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
613
610
|
|
|
614
611
|
// ../config/src/schema.ts
|
|
615
|
-
var
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
|
|
612
|
+
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
613
|
+
var schemaRegistry = z.registry();
|
|
614
|
+
var colorSchema = z.string().check(
|
|
615
|
+
z.length(7),
|
|
616
|
+
z.toLowerCase(),
|
|
617
|
+
z.regex(/^#([0-9a-f]{3}){1,2}$/i),
|
|
618
|
+
z.trim()
|
|
619
619
|
);
|
|
620
|
-
|
|
621
|
-
"
|
|
620
|
+
schemaRegistry.add(colorSchema, {
|
|
621
|
+
description: "A base schema for describing the format of colors"
|
|
622
|
+
});
|
|
623
|
+
var darkColorSchema = z._default(colorSchema, "#151718");
|
|
624
|
+
schemaRegistry.add(darkColorSchema, {
|
|
625
|
+
description: "The dark background color of the workspace"
|
|
626
|
+
});
|
|
627
|
+
var lightColorSchema = z._default(colorSchema, "#cbd5e1");
|
|
628
|
+
schemaRegistry.add(lightColorSchema, {
|
|
629
|
+
description: "The light background color of the workspace"
|
|
630
|
+
});
|
|
631
|
+
var brandColorSchema = z._default(colorSchema, "#1fb2a6");
|
|
632
|
+
schemaRegistry.add(brandColorSchema, {
|
|
633
|
+
description: "The primary brand specific color of the workspace"
|
|
634
|
+
});
|
|
635
|
+
var alternateColorSchema = z.optional(colorSchema);
|
|
636
|
+
schemaRegistry.add(alternateColorSchema, {
|
|
637
|
+
description: "The alternate brand specific color of the workspace"
|
|
638
|
+
});
|
|
639
|
+
var accentColorSchema = z.optional(colorSchema);
|
|
640
|
+
schemaRegistry.add(accentColorSchema, {
|
|
641
|
+
description: "The secondary brand specific color of the workspace"
|
|
642
|
+
});
|
|
643
|
+
var linkColorSchema = z._default(colorSchema, "#3fa6ff");
|
|
644
|
+
schemaRegistry.add(linkColorSchema, {
|
|
645
|
+
description: "The color used to display hyperlink text"
|
|
646
|
+
});
|
|
647
|
+
var helpColorSchema = z._default(colorSchema, "#818cf8");
|
|
648
|
+
schemaRegistry.add(helpColorSchema, {
|
|
649
|
+
description: "The second brand specific color of the workspace"
|
|
650
|
+
});
|
|
651
|
+
var successColorSchema = z._default(colorSchema, "#45b27e");
|
|
652
|
+
schemaRegistry.add(successColorSchema, {
|
|
653
|
+
description: "The success color of the workspace"
|
|
654
|
+
});
|
|
655
|
+
var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
656
|
+
schemaRegistry.add(infoColorSchema, {
|
|
657
|
+
description: "The informational color of the workspace"
|
|
658
|
+
});
|
|
659
|
+
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
660
|
+
schemaRegistry.add(warningColorSchema, {
|
|
661
|
+
description: "The warning color of the workspace"
|
|
662
|
+
});
|
|
663
|
+
var dangerColorSchema = z._default(colorSchema, "#d8314a");
|
|
664
|
+
schemaRegistry.add(dangerColorSchema, {
|
|
665
|
+
description: "The danger color of the workspace"
|
|
666
|
+
});
|
|
667
|
+
var fatalColorSchema = z.optional(colorSchema);
|
|
668
|
+
schemaRegistry.add(fatalColorSchema, {
|
|
669
|
+
description: "The fatal color of the workspace"
|
|
670
|
+
});
|
|
671
|
+
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
672
|
+
schemaRegistry.add(positiveColorSchema, {
|
|
673
|
+
description: "The positive number color of the workspace"
|
|
674
|
+
});
|
|
675
|
+
var negativeColorSchema = z._default(colorSchema, "#ef4444");
|
|
676
|
+
schemaRegistry.add(negativeColorSchema, {
|
|
677
|
+
description: "The negative number color of the workspace"
|
|
678
|
+
});
|
|
679
|
+
var gradientStopsSchema = z.optional(z.array(colorSchema));
|
|
680
|
+
schemaRegistry.add(gradientStopsSchema, {
|
|
681
|
+
description: "The color stops for the base gradient color pattern used in the workspace"
|
|
682
|
+
});
|
|
683
|
+
var darkColorsSchema = z.object({
|
|
684
|
+
foreground: lightColorSchema,
|
|
685
|
+
background: darkColorSchema,
|
|
686
|
+
brand: brandColorSchema,
|
|
687
|
+
alternate: alternateColorSchema,
|
|
688
|
+
accent: accentColorSchema,
|
|
689
|
+
link: linkColorSchema,
|
|
690
|
+
help: helpColorSchema,
|
|
691
|
+
success: successColorSchema,
|
|
692
|
+
info: infoColorSchema,
|
|
693
|
+
warning: warningColorSchema,
|
|
694
|
+
danger: dangerColorSchema,
|
|
695
|
+
fatal: fatalColorSchema,
|
|
696
|
+
positive: positiveColorSchema,
|
|
697
|
+
negative: negativeColorSchema,
|
|
698
|
+
gradient: gradientStopsSchema
|
|
699
|
+
});
|
|
700
|
+
var lightColorsSchema = z.object({
|
|
701
|
+
foreground: darkColorSchema,
|
|
702
|
+
background: lightColorSchema,
|
|
703
|
+
brand: brandColorSchema,
|
|
704
|
+
alternate: alternateColorSchema,
|
|
705
|
+
accent: accentColorSchema,
|
|
706
|
+
link: linkColorSchema,
|
|
707
|
+
help: helpColorSchema,
|
|
708
|
+
success: successColorSchema,
|
|
709
|
+
info: infoColorSchema,
|
|
710
|
+
warning: warningColorSchema,
|
|
711
|
+
danger: dangerColorSchema,
|
|
712
|
+
fatal: fatalColorSchema,
|
|
713
|
+
positive: positiveColorSchema,
|
|
714
|
+
negative: negativeColorSchema,
|
|
715
|
+
gradient: gradientStopsSchema
|
|
716
|
+
});
|
|
717
|
+
var multiColorsSchema = z.object({
|
|
718
|
+
dark: darkColorsSchema,
|
|
719
|
+
light: lightColorsSchema
|
|
720
|
+
});
|
|
721
|
+
var singleColorsSchema = z.object({
|
|
722
|
+
dark: darkColorSchema,
|
|
723
|
+
light: lightColorSchema,
|
|
724
|
+
brand: brandColorSchema,
|
|
725
|
+
alternate: alternateColorSchema,
|
|
726
|
+
accent: accentColorSchema,
|
|
727
|
+
link: linkColorSchema,
|
|
728
|
+
help: helpColorSchema,
|
|
729
|
+
success: successColorSchema,
|
|
730
|
+
info: infoColorSchema,
|
|
731
|
+
warning: warningColorSchema,
|
|
732
|
+
danger: dangerColorSchema,
|
|
733
|
+
fatal: fatalColorSchema,
|
|
734
|
+
positive: positiveColorSchema,
|
|
735
|
+
negative: negativeColorSchema,
|
|
736
|
+
gradient: gradientStopsSchema
|
|
737
|
+
});
|
|
738
|
+
var registryUrlConfigSchema = z.optional(z.url());
|
|
739
|
+
schemaRegistry.add(registryUrlConfigSchema, {
|
|
740
|
+
description: "A remote registry URL used to publish distributable packages"
|
|
741
|
+
});
|
|
742
|
+
var registrySchema = z._default(
|
|
743
|
+
z.object({
|
|
744
|
+
github: registryUrlConfigSchema,
|
|
745
|
+
npm: registryUrlConfigSchema,
|
|
746
|
+
cargo: registryUrlConfigSchema,
|
|
747
|
+
cyclone: registryUrlConfigSchema,
|
|
748
|
+
container: registryUrlConfigSchema
|
|
749
|
+
}),
|
|
750
|
+
{}
|
|
622
751
|
);
|
|
623
|
-
|
|
624
|
-
"
|
|
752
|
+
schemaRegistry.add(registrySchema, {
|
|
753
|
+
description: "A list of remote registry URLs used by Storm Software"
|
|
754
|
+
});
|
|
755
|
+
var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
|
|
756
|
+
schemaRegistry.add(colorsSchema, {
|
|
757
|
+
description: "Colors used for various workspace elements"
|
|
758
|
+
});
|
|
759
|
+
var themeColorsSchema = z.record(
|
|
760
|
+
z.union([z.union([z.literal("base"), z.string()]), z.string()]),
|
|
761
|
+
colorsSchema
|
|
625
762
|
);
|
|
626
|
-
|
|
627
|
-
"
|
|
763
|
+
schemaRegistry.add(themeColorsSchema, {
|
|
764
|
+
description: "Storm theme config values used for styling various package elements"
|
|
765
|
+
});
|
|
766
|
+
var extendsSchema = z.optional(
|
|
767
|
+
z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
|
|
628
768
|
);
|
|
629
|
-
|
|
630
|
-
"The
|
|
769
|
+
schemaRegistry.add(extendsSchema, {
|
|
770
|
+
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."
|
|
771
|
+
});
|
|
772
|
+
var workspaceBotNameSchema = z.string().check(z.trim());
|
|
773
|
+
schemaRegistry.add(workspaceBotNameSchema, {
|
|
774
|
+
description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
775
|
+
});
|
|
776
|
+
var workspaceBotEmailSchema = z.string().check(z.trim());
|
|
777
|
+
schemaRegistry.add(workspaceBotEmailSchema, {
|
|
778
|
+
description: "The email of the workspace bot"
|
|
779
|
+
});
|
|
780
|
+
var workspaceBotSchema = z.object({
|
|
781
|
+
name: workspaceBotNameSchema,
|
|
782
|
+
email: workspaceBotEmailSchema
|
|
783
|
+
});
|
|
784
|
+
schemaRegistry.add(workspaceBotSchema, {
|
|
785
|
+
description: "The workspace's bot user's config used to automated various operations tasks"
|
|
786
|
+
});
|
|
787
|
+
var workspaceReleaseBannerUrlSchema = z.optional(
|
|
788
|
+
z.string().check(z.trim(), z.url())
|
|
631
789
|
);
|
|
632
|
-
|
|
633
|
-
"
|
|
790
|
+
schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
|
|
791
|
+
description: "A URL to a banner image used to display the workspace's release"
|
|
792
|
+
});
|
|
793
|
+
var workspaceReleaseBannerAltSchema = z._default(
|
|
794
|
+
z.string().check(z.trim()),
|
|
795
|
+
STORM_DEFAULT_BANNER_ALT
|
|
634
796
|
);
|
|
635
|
-
|
|
636
|
-
"The
|
|
797
|
+
schemaRegistry.add(workspaceReleaseBannerAltSchema, {
|
|
798
|
+
description: "The alt text for the workspace's release banner image"
|
|
799
|
+
});
|
|
800
|
+
var workspaceReleaseBannerSchema = z.object({
|
|
801
|
+
url: workspaceReleaseBannerUrlSchema,
|
|
802
|
+
alt: workspaceReleaseBannerAltSchema
|
|
803
|
+
});
|
|
804
|
+
schemaRegistry.add(workspaceReleaseBannerSchema, {
|
|
805
|
+
description: "The workspace's banner image used during the release process"
|
|
806
|
+
});
|
|
807
|
+
var workspaceReleaseHeaderSchema = z.optional(
|
|
808
|
+
z.string().check(z.trim())
|
|
637
809
|
);
|
|
638
|
-
|
|
639
|
-
"
|
|
810
|
+
schemaRegistry.add(workspaceReleaseHeaderSchema, {
|
|
811
|
+
description: "A header message appended to the start of the workspace's release notes"
|
|
812
|
+
});
|
|
813
|
+
var workspaceReleaseFooterSchema = z.optional(
|
|
814
|
+
z.string().check(z.trim())
|
|
640
815
|
);
|
|
641
|
-
|
|
642
|
-
"
|
|
816
|
+
schemaRegistry.add(workspaceReleaseFooterSchema, {
|
|
817
|
+
description: "A footer message appended to the end of the workspace's release notes"
|
|
818
|
+
});
|
|
819
|
+
var workspaceReleaseSchema = z.object({
|
|
820
|
+
banner: z.union([
|
|
821
|
+
workspaceReleaseBannerSchema,
|
|
822
|
+
z.string().check(z.trim(), z.url())
|
|
823
|
+
]),
|
|
824
|
+
header: workspaceReleaseHeaderSchema,
|
|
825
|
+
footer: workspaceReleaseFooterSchema
|
|
826
|
+
});
|
|
827
|
+
schemaRegistry.add(workspaceReleaseSchema, {
|
|
828
|
+
description: "The workspace's release config used during the release process"
|
|
829
|
+
});
|
|
830
|
+
var workspaceSocialsTwitterSchema = z.optional(
|
|
831
|
+
z.string().check(z.trim())
|
|
643
832
|
);
|
|
644
|
-
|
|
645
|
-
"
|
|
833
|
+
schemaRegistry.add(workspaceSocialsTwitterSchema, {
|
|
834
|
+
description: "A Twitter/X account associated with the organization/project"
|
|
835
|
+
});
|
|
836
|
+
var workspaceSocialsDiscordSchema = z.optional(
|
|
837
|
+
z.string().check(z.trim())
|
|
646
838
|
);
|
|
647
|
-
|
|
648
|
-
"
|
|
839
|
+
schemaRegistry.add(workspaceSocialsDiscordSchema, {
|
|
840
|
+
description: "A Discord account associated with the organization/project"
|
|
841
|
+
});
|
|
842
|
+
var workspaceSocialsTelegramSchema = z.optional(
|
|
843
|
+
z.string().check(z.trim())
|
|
649
844
|
);
|
|
650
|
-
|
|
651
|
-
"
|
|
845
|
+
schemaRegistry.add(workspaceSocialsTelegramSchema, {
|
|
846
|
+
description: "A Telegram account associated with the organization/project"
|
|
847
|
+
});
|
|
848
|
+
var workspaceSocialsSlackSchema = z.optional(
|
|
849
|
+
z.string().check(z.trim())
|
|
652
850
|
);
|
|
653
|
-
|
|
654
|
-
"
|
|
851
|
+
schemaRegistry.add(workspaceSocialsSlackSchema, {
|
|
852
|
+
description: "A Slack account associated with the organization/project"
|
|
853
|
+
});
|
|
854
|
+
var workspaceSocialsMediumSchema = z.optional(
|
|
855
|
+
z.string().check(z.trim())
|
|
655
856
|
);
|
|
656
|
-
|
|
657
|
-
"
|
|
857
|
+
schemaRegistry.add(workspaceSocialsMediumSchema, {
|
|
858
|
+
description: "A Medium account associated with the organization/project"
|
|
859
|
+
});
|
|
860
|
+
var workspaceSocialsGithubSchema = z.optional(
|
|
861
|
+
z.string().check(z.trim())
|
|
658
862
|
);
|
|
659
|
-
|
|
660
|
-
"
|
|
863
|
+
schemaRegistry.add(workspaceSocialsGithubSchema, {
|
|
864
|
+
description: "A GitHub account associated with the organization/project"
|
|
865
|
+
});
|
|
866
|
+
var workspaceSocialsSchema = z.object({
|
|
867
|
+
twitter: workspaceSocialsTwitterSchema,
|
|
868
|
+
discord: workspaceSocialsDiscordSchema,
|
|
869
|
+
telegram: workspaceSocialsTelegramSchema,
|
|
870
|
+
slack: workspaceSocialsSlackSchema,
|
|
871
|
+
medium: workspaceSocialsMediumSchema,
|
|
872
|
+
github: workspaceSocialsGithubSchema
|
|
873
|
+
});
|
|
874
|
+
schemaRegistry.add(workspaceSocialsSchema, {
|
|
875
|
+
description: "The workspace's account config used to store various social media links"
|
|
876
|
+
});
|
|
877
|
+
var workspaceDirectoryCacheSchema = z.optional(
|
|
878
|
+
z.string().check(z.trim())
|
|
661
879
|
);
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
accent: AccentColorSchema,
|
|
668
|
-
link: LinkColorSchema,
|
|
669
|
-
help: HelpColorSchema,
|
|
670
|
-
success: SuccessColorSchema,
|
|
671
|
-
info: InfoColorSchema,
|
|
672
|
-
warning: WarningColorSchema,
|
|
673
|
-
danger: DangerColorSchema,
|
|
674
|
-
fatal: FatalColorSchema,
|
|
675
|
-
positive: PositiveColorSchema,
|
|
676
|
-
negative: NegativeColorSchema,
|
|
677
|
-
gradient: GradientStopsSchema
|
|
678
|
-
});
|
|
679
|
-
var LightThemeColorConfigSchema = z.object({
|
|
680
|
-
foreground: DarkColorSchema,
|
|
681
|
-
background: LightColorSchema,
|
|
682
|
-
brand: BrandColorSchema,
|
|
683
|
-
alternate: AlternateColorSchema,
|
|
684
|
-
accent: AccentColorSchema,
|
|
685
|
-
link: LinkColorSchema,
|
|
686
|
-
help: HelpColorSchema,
|
|
687
|
-
success: SuccessColorSchema,
|
|
688
|
-
info: InfoColorSchema,
|
|
689
|
-
warning: WarningColorSchema,
|
|
690
|
-
danger: DangerColorSchema,
|
|
691
|
-
fatal: FatalColorSchema,
|
|
692
|
-
positive: PositiveColorSchema,
|
|
693
|
-
negative: NegativeColorSchema,
|
|
694
|
-
gradient: GradientStopsSchema
|
|
695
|
-
});
|
|
696
|
-
var MultiThemeColorConfigSchema = z.object({
|
|
697
|
-
dark: DarkThemeColorConfigSchema,
|
|
698
|
-
light: LightThemeColorConfigSchema
|
|
699
|
-
});
|
|
700
|
-
var SingleThemeColorConfigSchema = z.object({
|
|
701
|
-
dark: DarkColorSchema,
|
|
702
|
-
light: LightColorSchema,
|
|
703
|
-
brand: BrandColorSchema,
|
|
704
|
-
alternate: AlternateColorSchema,
|
|
705
|
-
accent: AccentColorSchema,
|
|
706
|
-
link: LinkColorSchema,
|
|
707
|
-
help: HelpColorSchema,
|
|
708
|
-
success: SuccessColorSchema,
|
|
709
|
-
info: InfoColorSchema,
|
|
710
|
-
warning: WarningColorSchema,
|
|
711
|
-
danger: DangerColorSchema,
|
|
712
|
-
fatal: FatalColorSchema,
|
|
713
|
-
positive: PositiveColorSchema,
|
|
714
|
-
negative: NegativeColorSchema,
|
|
715
|
-
gradient: GradientStopsSchema
|
|
716
|
-
});
|
|
717
|
-
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
718
|
-
var RegistryConfigSchema = z.object({
|
|
719
|
-
github: RegistryUrlConfigSchema,
|
|
720
|
-
npm: RegistryUrlConfigSchema,
|
|
721
|
-
cargo: RegistryUrlConfigSchema,
|
|
722
|
-
cyclone: RegistryUrlConfigSchema,
|
|
723
|
-
container: RegistryUrlConfigSchema
|
|
724
|
-
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
725
|
-
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
726
|
-
MultiThemeColorConfigSchema
|
|
727
|
-
).describe("Colors used for various workspace elements");
|
|
728
|
-
var ColorConfigMapSchema = z.record(
|
|
729
|
-
z.union([z.literal("base"), z.string()]),
|
|
730
|
-
ColorConfigSchema
|
|
880
|
+
schemaRegistry.add(workspaceDirectoryCacheSchema, {
|
|
881
|
+
description: "The directory used to store the environment's cached file data"
|
|
882
|
+
});
|
|
883
|
+
var workspaceDirectoryDataSchema = z.optional(
|
|
884
|
+
z.string().check(z.trim())
|
|
731
885
|
);
|
|
732
|
-
|
|
733
|
-
"The
|
|
886
|
+
schemaRegistry.add(workspaceDirectoryDataSchema, {
|
|
887
|
+
description: "The directory used to store the environment's data files"
|
|
888
|
+
});
|
|
889
|
+
var workspaceDirectoryConfigSchema = z.optional(
|
|
890
|
+
z.string().check(z.trim())
|
|
734
891
|
);
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
)
|
|
738
|
-
|
|
892
|
+
schemaRegistry.add(workspaceDirectoryConfigSchema, {
|
|
893
|
+
description: "The directory used to store the environment's configuration files"
|
|
894
|
+
});
|
|
895
|
+
var workspaceDirectoryTempSchema = z.optional(
|
|
896
|
+
z.string().check(z.trim())
|
|
739
897
|
);
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}).describe(
|
|
746
|
-
"The workspace's bot user's config used to automated various operations tasks"
|
|
898
|
+
schemaRegistry.add(workspaceDirectoryTempSchema, {
|
|
899
|
+
description: "The directory used to store the environment's temp files"
|
|
900
|
+
});
|
|
901
|
+
var workspaceDirectoryLogSchema = z.optional(
|
|
902
|
+
z.string().check(z.trim())
|
|
747
903
|
);
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
),
|
|
755
|
-
footer: z.string().trim().optional().describe(
|
|
756
|
-
"A footer message appended to the end of the workspace's release notes"
|
|
757
|
-
)
|
|
758
|
-
}).describe("The workspace's release config used during the release process");
|
|
759
|
-
var WorkspaceSocialsConfigSchema = z.object({
|
|
760
|
-
twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
761
|
-
discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
762
|
-
telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
763
|
-
slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
|
|
764
|
-
medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
765
|
-
github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
766
|
-
}).describe(
|
|
767
|
-
"The workspace's account config used to store various social media links"
|
|
904
|
+
schemaRegistry.add(workspaceDirectoryLogSchema, {
|
|
905
|
+
description: "The directory used to store the environment's log files"
|
|
906
|
+
});
|
|
907
|
+
var workspaceDirectoryBuildSchema = z._default(
|
|
908
|
+
z.string().check(z.trim()),
|
|
909
|
+
"dist"
|
|
768
910
|
);
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
})
|
|
783
|
-
|
|
911
|
+
schemaRegistry.add(workspaceDirectoryBuildSchema, {
|
|
912
|
+
description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
913
|
+
});
|
|
914
|
+
var workspaceDirectorySchema = z.object({
|
|
915
|
+
cache: workspaceDirectoryCacheSchema,
|
|
916
|
+
data: workspaceDirectoryDataSchema,
|
|
917
|
+
config: workspaceDirectoryConfigSchema,
|
|
918
|
+
temp: workspaceDirectoryTempSchema,
|
|
919
|
+
log: workspaceDirectoryLogSchema,
|
|
920
|
+
build: workspaceDirectoryBuildSchema
|
|
921
|
+
});
|
|
922
|
+
schemaRegistry.add(workspaceDirectorySchema, {
|
|
923
|
+
description: "Various directories used by the workspace to store data, cache, and configuration files"
|
|
924
|
+
});
|
|
925
|
+
var errorCodesFileSchema = z._default(
|
|
926
|
+
z.string().check(z.trim()),
|
|
927
|
+
STORM_DEFAULT_ERROR_CODES_FILE
|
|
784
928
|
);
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
929
|
+
schemaRegistry.add(errorCodesFileSchema, {
|
|
930
|
+
description: "The path to the workspace's error codes JSON file"
|
|
931
|
+
});
|
|
932
|
+
var errorUrlSchema = z.optional(z.url());
|
|
933
|
+
schemaRegistry.add(errorUrlSchema, {
|
|
934
|
+
description: "A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
935
|
+
});
|
|
936
|
+
var errorSchema = z.object({
|
|
937
|
+
codesFile: errorCodesFileSchema,
|
|
938
|
+
url: errorUrlSchema
|
|
939
|
+
});
|
|
940
|
+
schemaRegistry.add(errorSchema, {
|
|
941
|
+
description: "The workspace's error config used when creating error details during a system error"
|
|
942
|
+
});
|
|
943
|
+
var organizationNameSchema = z.optional(
|
|
944
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
945
|
+
);
|
|
946
|
+
schemaRegistry.add(organizationNameSchema, {
|
|
947
|
+
description: "The name of the organization"
|
|
948
|
+
});
|
|
949
|
+
var organizationDescriptionSchema = z.optional(
|
|
950
|
+
z.string().check(z.trim())
|
|
951
|
+
);
|
|
952
|
+
schemaRegistry.add(organizationDescriptionSchema, {
|
|
953
|
+
description: "A description of the organization"
|
|
954
|
+
});
|
|
955
|
+
var organizationLogoSchema = z.optional(z.url());
|
|
956
|
+
schemaRegistry.add(organizationLogoSchema, {
|
|
957
|
+
description: "A URL to the organization's logo image"
|
|
958
|
+
});
|
|
959
|
+
var organizationIconSchema = z.optional(z.url());
|
|
960
|
+
schemaRegistry.add(organizationIconSchema, {
|
|
961
|
+
description: "A URL to the organization's icon image"
|
|
962
|
+
});
|
|
963
|
+
var organizationUrlSchema = z.optional(z.url());
|
|
964
|
+
schemaRegistry.add(organizationUrlSchema, {
|
|
965
|
+
description: "A URL to a page that provides more information about the organization"
|
|
966
|
+
});
|
|
967
|
+
var organizationSchema = z.object({
|
|
968
|
+
name: organizationNameSchema,
|
|
969
|
+
description: organizationDescriptionSchema,
|
|
970
|
+
logo: organizationLogoSchema,
|
|
971
|
+
icon: organizationIconSchema,
|
|
972
|
+
url: organizationUrlSchema
|
|
973
|
+
});
|
|
974
|
+
schemaRegistry.add(organizationSchema, {
|
|
975
|
+
description: "The workspace's organization details"
|
|
976
|
+
});
|
|
977
|
+
var schemaNameSchema = z._default(
|
|
978
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
979
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
980
|
+
);
|
|
981
|
+
schemaRegistry.add(schemaNameSchema, {
|
|
982
|
+
description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
983
|
+
});
|
|
984
|
+
var nameSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
985
|
+
schemaRegistry.add(nameSchema, {
|
|
986
|
+
description: "The name of the workspace/project/service/package/scope using this configuration"
|
|
987
|
+
});
|
|
988
|
+
var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
989
|
+
schemaRegistry.add(namespaceSchema, {
|
|
990
|
+
description: "The namespace of the workspace/project/service/package/scope using this configuration"
|
|
991
|
+
});
|
|
992
|
+
var orgSchema = z.union([
|
|
993
|
+
organizationSchema,
|
|
994
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
995
|
+
]);
|
|
996
|
+
schemaRegistry.add(orgSchema, {
|
|
997
|
+
description: "The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
998
|
+
});
|
|
999
|
+
var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
|
|
1000
|
+
schemaRegistry.add(repositorySchema, {
|
|
1001
|
+
description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
|
|
1002
|
+
});
|
|
1003
|
+
var licenseSchema = z._default(
|
|
1004
|
+
z.string().check(z.trim()),
|
|
1005
|
+
"Apache-2.0"
|
|
1006
|
+
);
|
|
1007
|
+
schemaRegistry.add(licenseSchema, {
|
|
1008
|
+
description: "The license type of the package"
|
|
1009
|
+
});
|
|
1010
|
+
var homepageSchema = z.optional(z.url());
|
|
1011
|
+
schemaRegistry.add(homepageSchema, {
|
|
1012
|
+
description: "The homepage of the workspace"
|
|
1013
|
+
});
|
|
1014
|
+
var docsSchema = z.optional(z.url());
|
|
1015
|
+
schemaRegistry.add(docsSchema, {
|
|
1016
|
+
description: "The documentation site for the workspace"
|
|
1017
|
+
});
|
|
1018
|
+
var portalSchema = z.optional(z.url());
|
|
1019
|
+
schemaRegistry.add(portalSchema, {
|
|
1020
|
+
description: "The development portal site for the workspace"
|
|
1021
|
+
});
|
|
1022
|
+
var licensingSchema = z.optional(z.url());
|
|
1023
|
+
schemaRegistry.add(licensingSchema, {
|
|
1024
|
+
description: "The licensing site for the workspace"
|
|
1025
|
+
});
|
|
1026
|
+
var contactSchema = z.optional(z.url());
|
|
1027
|
+
schemaRegistry.add(contactSchema, {
|
|
1028
|
+
description: "The contact site for the workspace"
|
|
1029
|
+
});
|
|
1030
|
+
var supportSchema = z.optional(z.url());
|
|
1031
|
+
schemaRegistry.add(supportSchema, {
|
|
1032
|
+
description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
1033
|
+
});
|
|
1034
|
+
var branchSchema = z._default(
|
|
1035
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
1036
|
+
"main"
|
|
1037
|
+
);
|
|
1038
|
+
schemaRegistry.add(branchSchema, {
|
|
1039
|
+
description: "The branch of the workspace"
|
|
1040
|
+
});
|
|
1041
|
+
var preidSchema = z.optional(
|
|
1042
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
1043
|
+
);
|
|
1044
|
+
schemaRegistry.add(preidSchema, {
|
|
1045
|
+
description: "A tag specifying the version pre-release identifier"
|
|
1046
|
+
});
|
|
1047
|
+
var ownerSchema = z.optional(
|
|
1048
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
1049
|
+
);
|
|
1050
|
+
schemaRegistry.add(ownerSchema, {
|
|
1051
|
+
description: "The owner of the package"
|
|
1052
|
+
});
|
|
1053
|
+
var modeSchema = z._default(
|
|
1054
|
+
z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
|
|
1055
|
+
"production"
|
|
1056
|
+
);
|
|
1057
|
+
schemaRegistry.add(modeSchema, {
|
|
1058
|
+
description: "The current runtime environment mode for the package"
|
|
1059
|
+
});
|
|
1060
|
+
var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
1061
|
+
schemaRegistry.add(workspaceRootSchema, {
|
|
1062
|
+
description: "The root directory of the workspace"
|
|
1063
|
+
});
|
|
1064
|
+
var skipCacheSchema = z._default(z.boolean(), false);
|
|
1065
|
+
schemaRegistry.add(skipCacheSchema, {
|
|
1066
|
+
description: "Should all known types of workspace caching be skipped?"
|
|
1067
|
+
});
|
|
1068
|
+
var packageManagerSchema = z._default(
|
|
1069
|
+
z.enum(["npm", "yarn", "pnpm", "bun"]),
|
|
1070
|
+
"npm"
|
|
1071
|
+
);
|
|
1072
|
+
schemaRegistry.add(packageManagerSchema, {
|
|
1073
|
+
description: "The JavaScript/TypeScript package manager used by the repository"
|
|
1074
|
+
});
|
|
1075
|
+
var timezoneSchema = z._default(
|
|
1076
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
1077
|
+
"America/New_York"
|
|
1078
|
+
);
|
|
1079
|
+
schemaRegistry.add(timezoneSchema, {
|
|
1080
|
+
description: "The default timezone of the workspace"
|
|
1081
|
+
});
|
|
1082
|
+
var localeSchema = z._default(
|
|
1083
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
1084
|
+
"en-US"
|
|
1085
|
+
);
|
|
1086
|
+
schemaRegistry.add(localeSchema, {
|
|
1087
|
+
description: "The default locale of the workspace"
|
|
1088
|
+
});
|
|
1089
|
+
var logLevelSchema = z._default(
|
|
1090
|
+
z.enum([
|
|
841
1091
|
"silent",
|
|
842
1092
|
"fatal",
|
|
843
1093
|
"error",
|
|
@@ -847,23 +1097,65 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
847
1097
|
"debug",
|
|
848
1098
|
"trace",
|
|
849
1099
|
"all"
|
|
850
|
-
])
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
864
|
-
}).describe(
|
|
865
|
-
"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."
|
|
1100
|
+
]),
|
|
1101
|
+
"info"
|
|
1102
|
+
);
|
|
1103
|
+
schemaRegistry.add(logLevelSchema, {
|
|
1104
|
+
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`)."
|
|
1105
|
+
});
|
|
1106
|
+
var skipConfigLoggingSchema = z._default(z.boolean(), true);
|
|
1107
|
+
schemaRegistry.add(skipConfigLoggingSchema, {
|
|
1108
|
+
description: "Should the logging of the current Storm Workspace configuration be skipped?"
|
|
1109
|
+
});
|
|
1110
|
+
var configFileSchema = z._default(
|
|
1111
|
+
z.nullable(z.string().check(z.trim())),
|
|
1112
|
+
null
|
|
866
1113
|
);
|
|
1114
|
+
schemaRegistry.add(configFileSchema, {
|
|
1115
|
+
description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
1116
|
+
});
|
|
1117
|
+
var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
|
|
1118
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1119
|
+
description: "Configuration of each used extension"
|
|
1120
|
+
});
|
|
1121
|
+
var workspaceConfigSchema = z.object({
|
|
1122
|
+
$schema: schemaNameSchema,
|
|
1123
|
+
extends: extendsSchema,
|
|
1124
|
+
name: nameSchema,
|
|
1125
|
+
namespace: namespaceSchema,
|
|
1126
|
+
organization: orgSchema,
|
|
1127
|
+
repository: repositorySchema,
|
|
1128
|
+
license: licenseSchema,
|
|
1129
|
+
homepage: homepageSchema,
|
|
1130
|
+
docs: docsSchema,
|
|
1131
|
+
portal: portalSchema,
|
|
1132
|
+
licensing: licensingSchema,
|
|
1133
|
+
contact: contactSchema,
|
|
1134
|
+
support: supportSchema,
|
|
1135
|
+
branch: branchSchema,
|
|
1136
|
+
preid: preidSchema,
|
|
1137
|
+
owner: ownerSchema,
|
|
1138
|
+
bot: workspaceBotSchema,
|
|
1139
|
+
release: workspaceReleaseSchema,
|
|
1140
|
+
socials: workspaceSocialsSchema,
|
|
1141
|
+
error: errorSchema,
|
|
1142
|
+
mode: modeSchema,
|
|
1143
|
+
workspaceRoot: workspaceRootSchema,
|
|
1144
|
+
skipCache: skipCacheSchema,
|
|
1145
|
+
directories: workspaceDirectorySchema,
|
|
1146
|
+
packageManager: packageManagerSchema,
|
|
1147
|
+
timezone: timezoneSchema,
|
|
1148
|
+
locale: localeSchema,
|
|
1149
|
+
logLevel: logLevelSchema,
|
|
1150
|
+
skipConfigLogging: skipConfigLoggingSchema,
|
|
1151
|
+
registry: registrySchema,
|
|
1152
|
+
configFile: configFileSchema,
|
|
1153
|
+
colors: z.union([colorsSchema, themeColorsSchema]),
|
|
1154
|
+
extensions: extensionsSchema
|
|
1155
|
+
});
|
|
1156
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1157
|
+
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."
|
|
1158
|
+
});
|
|
867
1159
|
|
|
868
1160
|
// ../config/src/types.ts
|
|
869
1161
|
var COLOR_KEYS = [
|
|
@@ -1075,7 +1367,10 @@ var getConfigEnv = () => {
|
|
|
1075
1367
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
1076
1368
|
},
|
|
1077
1369
|
release: {
|
|
1078
|
-
banner:
|
|
1370
|
+
banner: {
|
|
1371
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
1372
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
1373
|
+
},
|
|
1079
1374
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
1080
1375
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
1081
1376
|
},
|
|
@@ -1152,11 +1447,11 @@ var getConfigEnv = () => {
|
|
|
1152
1447
|
);
|
|
1153
1448
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
1154
1449
|
(ret, themeName) => {
|
|
1155
|
-
ret[themeName] =
|
|
1450
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
1156
1451
|
return ret;
|
|
1157
1452
|
},
|
|
1158
1453
|
{}
|
|
1159
|
-
) :
|
|
1454
|
+
) : getThemeColorsEnv(prefix);
|
|
1160
1455
|
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
1161
1456
|
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1162
1457
|
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -1183,11 +1478,11 @@ var getConfigEnv = () => {
|
|
|
1183
1478
|
}
|
|
1184
1479
|
return config;
|
|
1185
1480
|
};
|
|
1186
|
-
var
|
|
1481
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
1187
1482
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
1188
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
1483
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
1189
1484
|
};
|
|
1190
|
-
var
|
|
1485
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
1191
1486
|
const gradient = [];
|
|
1192
1487
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1193
1488
|
gradient.push(
|
|
@@ -1219,15 +1514,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
1219
1514
|
gradient
|
|
1220
1515
|
};
|
|
1221
1516
|
};
|
|
1222
|
-
var
|
|
1517
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
1223
1518
|
return {
|
|
1224
|
-
light:
|
|
1225
|
-
|
|
1226
|
-
),
|
|
1227
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
1519
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
1520
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
1228
1521
|
};
|
|
1229
1522
|
};
|
|
1230
|
-
var
|
|
1523
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
1231
1524
|
const gradient = [];
|
|
1232
1525
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1233
1526
|
gradient.push(
|
|
@@ -1306,7 +1599,16 @@ var setConfigEnv = (config) => {
|
|
|
1306
1599
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1307
1600
|
}
|
|
1308
1601
|
if (config.release) {
|
|
1309
|
-
|
|
1602
|
+
if (config.release.banner) {
|
|
1603
|
+
if (typeof config.release.banner === "string") {
|
|
1604
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1605
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1606
|
+
} else {
|
|
1607
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1608
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1609
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1310
1612
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1311
1613
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1312
1614
|
}
|
|
@@ -1449,10 +1751,10 @@ var setConfigEnv = (config) => {
|
|
|
1449
1751
|
}
|
|
1450
1752
|
if (_optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
|
|
1451
1753
|
for (const key of Object.keys(config.colors)) {
|
|
1452
|
-
|
|
1754
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1453
1755
|
}
|
|
1454
1756
|
} else {
|
|
1455
|
-
|
|
1757
|
+
setThemeColorsEnv(
|
|
1456
1758
|
`${prefix}COLOR_`,
|
|
1457
1759
|
config.colors
|
|
1458
1760
|
);
|
|
@@ -1507,10 +1809,10 @@ var setConfigEnv = (config) => {
|
|
|
1507
1809
|
}
|
|
1508
1810
|
}
|
|
1509
1811
|
};
|
|
1510
|
-
var
|
|
1511
|
-
return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ?
|
|
1812
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1813
|
+
return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1512
1814
|
};
|
|
1513
|
-
var
|
|
1815
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1514
1816
|
if (config.dark) {
|
|
1515
1817
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1516
1818
|
}
|
|
@@ -1559,13 +1861,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
1559
1861
|
}
|
|
1560
1862
|
}
|
|
1561
1863
|
};
|
|
1562
|
-
var
|
|
1864
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1563
1865
|
return {
|
|
1564
|
-
light:
|
|
1565
|
-
dark:
|
|
1866
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1867
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1566
1868
|
};
|
|
1567
1869
|
};
|
|
1568
|
-
var
|
|
1870
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1569
1871
|
if (config.foreground) {
|
|
1570
1872
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1571
1873
|
}
|
|
@@ -1646,7 +1948,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1646
1948
|
);
|
|
1647
1949
|
try {
|
|
1648
1950
|
result = applyDefaultConfig(
|
|
1649
|
-
await
|
|
1951
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
1650
1952
|
);
|
|
1651
1953
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1652
1954
|
} catch (error) {
|
|
@@ -1859,4 +2161,5 @@ var _isFunction2 = (value) => {
|
|
|
1859
2161
|
|
|
1860
2162
|
|
|
1861
2163
|
|
|
1862
|
-
|
|
2164
|
+
|
|
2165
|
+
exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.applyWorkspaceBaseTokens = applyWorkspaceBaseTokens; exports.applyWorkspaceTokens = applyWorkspaceTokens; exports.schemaRegistry = schemaRegistry; exports.workspaceConfigSchema = workspaceConfigSchema; exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig; exports.withRunExecutor = withRunExecutor;
|