@storm-software/workspace-tools 1.280.1 → 1.281.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.
Files changed (151) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +1 -2
  3. package/dist/{chunk-MZEFNYBT.js → chunk-2FLQWXE5.js} +2 -2
  4. package/dist/{chunk-KRAHIMKO.js → chunk-2NF3YUV5.js} +2 -2
  5. package/dist/{chunk-KX7XTUYW.js → chunk-3NGWW4TI.js} +552 -249
  6. package/dist/{chunk-ELTK3HGG.mjs → chunk-3ZRR5MT7.mjs} +1 -1
  7. package/dist/{chunk-63DISBXN.js → chunk-4S36VQAW.js} +2 -2
  8. package/dist/{chunk-5KP5KWGU.mjs → chunk-75U5BCHL.mjs} +1 -1
  9. package/dist/{chunk-BSFJWANS.mjs → chunk-7IJVTV2B.mjs} +1 -1
  10. package/dist/{chunk-CHSTJ3AR.js → chunk-7ZX63ESB.js} +7 -5
  11. package/dist/{chunk-JCEMECUD.mjs → chunk-BPG3OMCI.mjs} +1 -1
  12. package/dist/{chunk-PYS5P7QE.mjs → chunk-BVSY5RGQ.mjs} +552 -249
  13. package/dist/{chunk-DJLGYPRA.js → chunk-BWORIUPC.js} +2 -2
  14. package/dist/{chunk-JX3KVFO5.js → chunk-CH5FES5E.js} +2 -2
  15. package/dist/{chunk-UGBVA3KE.mjs → chunk-CKTQUYMO.mjs} +7 -5
  16. package/dist/{chunk-GNIDPNI3.mjs → chunk-EIG2GLLA.mjs} +1 -1
  17. package/dist/{chunk-UGJVZ6LI.js → chunk-G7Q436PD.js} +2 -2
  18. package/dist/{chunk-GWT4ZQ6Y.js → chunk-G7XAPBVN.js} +2 -2
  19. package/dist/{chunk-LVIDSVDC.mjs → chunk-HJHJTEFF.mjs} +1 -1
  20. package/dist/{chunk-3XPIHN23.mjs → chunk-HOCWBZG4.mjs} +1 -1
  21. package/dist/{chunk-BZEVQ2Z7.mjs → chunk-HQD7CMHA.mjs} +1 -1
  22. package/dist/{chunk-47X3OTR5.mjs → chunk-JJKB5LJY.mjs} +1 -1
  23. package/dist/{chunk-64LWOWPE.mjs → chunk-JXUTCXYW.mjs} +1 -1
  24. package/dist/{chunk-2AZFAMT2.mjs → chunk-KNFTKCYF.mjs} +1 -1
  25. package/dist/{chunk-WASXXREW.mjs → chunk-MNHMPN5N.mjs} +1 -1
  26. package/dist/{chunk-ZVL2TRR6.js → chunk-N35Q2KYG.js} +2 -2
  27. package/dist/{chunk-YEUILWDR.js → chunk-RBIKWDFC.js} +2 -2
  28. package/dist/{chunk-ZWCD543A.mjs → chunk-S6I7KEIX.mjs} +2 -2
  29. package/dist/{chunk-G3YKHGPE.js → chunk-SZGFK6EV.js} +2 -2
  30. package/dist/{chunk-ESFH6QVE.js → chunk-TARBFSCL.js} +2 -2
  31. package/dist/{chunk-5FBIPGPD.mjs → chunk-VLRI6BBL.mjs} +1 -1
  32. package/dist/{chunk-47VSL76K.mjs → chunk-VYBW3BAP.mjs} +1 -1
  33. package/dist/{chunk-UTAJHUJL.js → chunk-WMO5LTRB.js} +4 -4
  34. package/dist/{chunk-VR3OLKAI.js → chunk-XMZ6TDUE.js} +2 -2
  35. package/dist/{chunk-YBUD4GFC.js → chunk-Y7EP2VC4.js} +2 -2
  36. package/dist/{chunk-K7FEZWBA.mjs → chunk-Z6PFI3J5.mjs} +1 -1
  37. package/dist/{chunk-ARTBWDR4.js → chunk-Z7GL7LZ5.js} +2 -2
  38. package/dist/{chunk-AH253N44.js → chunk-ZPKT334B.js} +2 -2
  39. package/dist/{executor-DJb8r-Zb.d.mts → executor-BKX42Sw7.d.mts} +1 -1
  40. package/dist/{executor-BZYJEb9V.d.ts → executor-CkNxaoIY.d.ts} +1 -1
  41. package/dist/{executor-CUlX29YN.d.mts → executor-D3PNL4CV.d.mts} +1 -1
  42. package/dist/{executor-CysN0MTH.d.ts → executor-DPM2Z36c.d.ts} +1 -1
  43. package/dist/{executor-CwENKkEy.d.mts → executor-GBuel7B7.d.mts} +1 -1
  44. package/dist/{executor-Bez_tWxf.d.mts → executor-aDXEPVsT.d.mts} +1 -1
  45. package/dist/{executor-D3Tip-ad.d.ts → executor-foxQoOAn.d.ts} +1 -1
  46. package/dist/{executor-_WT0Qd2F.d.ts → executor-rXyqR2O7.d.ts} +1 -1
  47. package/dist/executors.d.mts +6 -5
  48. package/dist/executors.d.ts +6 -5
  49. package/dist/executors.js +12 -12
  50. package/dist/executors.mjs +11 -11
  51. package/dist/{generator-DpjPMueC.d.ts → generator-Atoj4M31.d.ts} +2 -2
  52. package/dist/{generator-Biz_Ai4B.d.ts → generator-B8wuX3dQ.d.ts} +1 -1
  53. package/dist/{generator-DKZjOzNw.d.mts → generator-BBL6R81T.d.mts} +2 -2
  54. package/dist/{generator-ujd2pu2I.d.ts → generator-BrHx51q7.d.ts} +2 -2
  55. package/dist/{generator-CYCzda2K.d.mts → generator-C89d9hiO.d.mts} +2 -2
  56. package/dist/{generator-D7tljo-K.d.mts → generator-CA85Rjt_.d.mts} +1 -1
  57. package/dist/{generator-CVPI52z3.d.mts → generator-Cl7VLDBp.d.mts} +2 -2
  58. package/dist/{generator-De9XOTip.d.mts → generator-DY4LnD3U.d.mts} +2 -2
  59. package/dist/{generator-o2v2Q4At.d.mts → generator-DuzhU6Nt.d.mts} +1 -1
  60. package/dist/{generator-Dyk2TjIp.d.ts → generator-Lo6Lesoa.d.ts} +1 -1
  61. package/dist/{generator-CmkSA-dv.d.ts → generator-ggEO-y1w.d.ts} +2 -2
  62. package/dist/{generator-Dk1ihwF-.d.ts → generator-l6HKZhyL.d.ts} +2 -2
  63. package/dist/generators.d.mts +9 -8
  64. package/dist/generators.d.ts +9 -8
  65. package/dist/generators.js +9 -9
  66. package/dist/generators.mjs +8 -8
  67. package/dist/index.d.mts +13 -12
  68. package/dist/index.d.ts +13 -12
  69. package/dist/index.js +19 -19
  70. package/dist/index.mjs +18 -18
  71. package/dist/src/base/base-executor.d.mts +3 -2
  72. package/dist/src/base/base-executor.d.ts +3 -2
  73. package/dist/src/base/base-executor.js +3 -3
  74. package/dist/src/base/base-executor.mjs +2 -2
  75. package/dist/src/base/base-generator.d.mts +3 -2
  76. package/dist/src/base/base-generator.d.ts +3 -2
  77. package/dist/src/base/base-generator.js +3 -3
  78. package/dist/src/base/base-generator.mjs +2 -2
  79. package/dist/src/base/index.d.mts +3 -2
  80. package/dist/src/base/index.d.ts +3 -2
  81. package/dist/src/base/index.js +4 -4
  82. package/dist/src/base/index.mjs +3 -3
  83. package/dist/src/executors/cargo-build/executor.js +4 -4
  84. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  85. package/dist/src/executors/cargo-check/executor.js +4 -4
  86. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  87. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  88. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  89. package/dist/src/executors/cargo-doc/executor.js +4 -4
  90. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  91. package/dist/src/executors/cargo-format/executor.js +4 -4
  92. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  93. package/dist/src/executors/clean-package/executor.d.mts +2 -1
  94. package/dist/src/executors/clean-package/executor.d.ts +2 -1
  95. package/dist/src/executors/clean-package/executor.js +3 -3
  96. package/dist/src/executors/clean-package/executor.mjs +2 -2
  97. package/dist/src/executors/esbuild/executor.d.mts +3 -2
  98. package/dist/src/executors/esbuild/executor.d.ts +3 -2
  99. package/dist/src/executors/esbuild/executor.js +4 -4
  100. package/dist/src/executors/esbuild/executor.mjs +3 -3
  101. package/dist/src/executors/size-limit/executor.d.mts +3 -2
  102. package/dist/src/executors/size-limit/executor.d.ts +3 -2
  103. package/dist/src/executors/size-limit/executor.js +4 -4
  104. package/dist/src/executors/size-limit/executor.mjs +3 -3
  105. package/dist/src/executors/typia/executor.d.mts +3 -2
  106. package/dist/src/executors/typia/executor.d.ts +3 -2
  107. package/dist/src/executors/typia/executor.js +4 -4
  108. package/dist/src/executors/typia/executor.mjs +3 -3
  109. package/dist/src/executors/unbuild/executor.d.mts +3 -2
  110. package/dist/src/executors/unbuild/executor.d.ts +3 -2
  111. package/dist/src/executors/unbuild/executor.js +4 -4
  112. package/dist/src/executors/unbuild/executor.mjs +3 -3
  113. package/dist/src/generators/browser-library/generator.d.mts +4 -3
  114. package/dist/src/generators/browser-library/generator.d.ts +4 -3
  115. package/dist/src/generators/browser-library/generator.js +4 -4
  116. package/dist/src/generators/browser-library/generator.mjs +3 -3
  117. package/dist/src/generators/config-schema/generator.d.mts +4 -3
  118. package/dist/src/generators/config-schema/generator.d.ts +4 -3
  119. package/dist/src/generators/config-schema/generator.js +4 -4
  120. package/dist/src/generators/config-schema/generator.mjs +3 -3
  121. package/dist/src/generators/neutral-library/generator.d.mts +4 -3
  122. package/dist/src/generators/neutral-library/generator.d.ts +4 -3
  123. package/dist/src/generators/neutral-library/generator.js +4 -4
  124. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  125. package/dist/src/generators/node-library/generator.d.mts +4 -3
  126. package/dist/src/generators/node-library/generator.d.ts +4 -3
  127. package/dist/src/generators/node-library/generator.js +4 -4
  128. package/dist/src/generators/node-library/generator.mjs +3 -3
  129. package/dist/src/generators/preset/generator.d.mts +4 -3
  130. package/dist/src/generators/preset/generator.d.ts +4 -3
  131. package/dist/src/generators/preset/generator.js +4 -4
  132. package/dist/src/generators/preset/generator.mjs +3 -3
  133. package/dist/src/generators/release-version/generator.d.mts +3 -2
  134. package/dist/src/generators/release-version/generator.d.ts +3 -2
  135. package/dist/src/generators/release-version/generator.js +3 -3
  136. package/dist/src/generators/release-version/generator.mjs +2 -2
  137. package/dist/src/types.d.mts +3 -2
  138. package/dist/src/types.d.ts +3 -2
  139. package/dist/src/utils/apply-workspace-tokens.d.mts +2 -1
  140. package/dist/src/utils/apply-workspace-tokens.d.ts +2 -1
  141. package/dist/src/utils/index.d.mts +3 -2
  142. package/dist/src/utils/index.d.ts +3 -2
  143. package/dist/src/utils/project-tags.d.mts +3 -2
  144. package/dist/src/utils/project-tags.d.ts +3 -2
  145. package/dist/{types-DXRPpxuL.d.mts → types-BuQFM0Hk.d.mts} +1 -1
  146. package/dist/types-Ca7EE8eb.d.mts +226 -0
  147. package/dist/types-Ca7EE8eb.d.ts +226 -0
  148. package/dist/{types-ifEQCCcO.d.ts → types-yDwoa0v2.d.ts} +1 -1
  149. package/package.json +5 -5
  150. package/dist/types-DWiPwz5j.d.mts +0 -218
  151. package/dist/types-DWiPwz5j.d.ts +0 -218
@@ -15,7 +15,7 @@ var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
15
15
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
16
16
 
17
17
  // ../config/src/schema.ts
18
- var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
18
+ var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
19
19
 
20
20
  // ../config/src/constants.ts
21
21
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
@@ -23,12 +23,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
23
23
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
24
24
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
25
25
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
26
- var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
27
26
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
28
- var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
29
27
  var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
30
- var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
31
- var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
32
28
  var STORM_DEFAULT_RELEASE_FOOTER = `
33
29
  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.
34
30
 
@@ -37,233 +33,487 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
37
33
  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!
38
34
  `;
39
35
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
36
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
40
37
 
41
38
  // ../config/src/schema.ts
42
- var ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7);
43
- var DarkColorSchema = ColorSchema.default("#151718").describe(
44
- "The dark background color of the workspace"
39
+ var schemaRegistry = z.registry();
40
+ var colorSchema = z.string().check(
41
+ z.length(7),
42
+ z.toLowerCase(),
43
+ z.regex(/^#([0-9a-f]{3}){1,2}$/i),
44
+ z.trim()
45
45
  );
46
- var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
47
- "The light background color of the workspace"
46
+ schemaRegistry.add(colorSchema, {
47
+ description: "A base schema for describing the format of colors"
48
+ });
49
+ var darkColorSchema = z._default(colorSchema, "#151718");
50
+ schemaRegistry.add(darkColorSchema, {
51
+ description: "The dark background color of the workspace"
52
+ });
53
+ var lightColorSchema = z._default(colorSchema, "#cbd5e1");
54
+ schemaRegistry.add(lightColorSchema, {
55
+ description: "The light background color of the workspace"
56
+ });
57
+ var brandColorSchema = z._default(colorSchema, "#1fb2a6");
58
+ schemaRegistry.add(brandColorSchema, {
59
+ description: "The primary brand specific color of the workspace"
60
+ });
61
+ var alternateColorSchema = z.optional(colorSchema);
62
+ schemaRegistry.add(alternateColorSchema, {
63
+ description: "The alternate brand specific color of the workspace"
64
+ });
65
+ var accentColorSchema = z.optional(colorSchema);
66
+ schemaRegistry.add(accentColorSchema, {
67
+ description: "The secondary brand specific color of the workspace"
68
+ });
69
+ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
70
+ schemaRegistry.add(linkColorSchema, {
71
+ description: "The color used to display hyperlink text"
72
+ });
73
+ var helpColorSchema = z._default(colorSchema, "#818cf8");
74
+ schemaRegistry.add(helpColorSchema, {
75
+ description: "The second brand specific color of the workspace"
76
+ });
77
+ var successColorSchema = z._default(colorSchema, "#45b27e");
78
+ schemaRegistry.add(successColorSchema, {
79
+ description: "The success color of the workspace"
80
+ });
81
+ var infoColorSchema = z._default(colorSchema, "#38bdf8");
82
+ schemaRegistry.add(infoColorSchema, {
83
+ description: "The informational color of the workspace"
84
+ });
85
+ var warningColorSchema = z._default(colorSchema, "#f3d371");
86
+ schemaRegistry.add(warningColorSchema, {
87
+ description: "The warning color of the workspace"
88
+ });
89
+ var dangerColorSchema = z._default(colorSchema, "#d8314a");
90
+ schemaRegistry.add(dangerColorSchema, {
91
+ description: "The danger color of the workspace"
92
+ });
93
+ var fatalColorSchema = z.optional(colorSchema);
94
+ schemaRegistry.add(fatalColorSchema, {
95
+ description: "The fatal color of the workspace"
96
+ });
97
+ var positiveColorSchema = z._default(colorSchema, "#4ade80");
98
+ schemaRegistry.add(positiveColorSchema, {
99
+ description: "The positive number color of the workspace"
100
+ });
101
+ var negativeColorSchema = z._default(colorSchema, "#ef4444");
102
+ schemaRegistry.add(negativeColorSchema, {
103
+ description: "The negative number color of the workspace"
104
+ });
105
+ var gradientStopsSchema = z.optional(z.array(colorSchema));
106
+ schemaRegistry.add(gradientStopsSchema, {
107
+ description: "The color stops for the base gradient color pattern used in the workspace"
108
+ });
109
+ var darkColorsSchema = z.object({
110
+ foreground: lightColorSchema,
111
+ background: darkColorSchema,
112
+ brand: brandColorSchema,
113
+ alternate: alternateColorSchema,
114
+ accent: accentColorSchema,
115
+ link: linkColorSchema,
116
+ help: helpColorSchema,
117
+ success: successColorSchema,
118
+ info: infoColorSchema,
119
+ warning: warningColorSchema,
120
+ danger: dangerColorSchema,
121
+ fatal: fatalColorSchema,
122
+ positive: positiveColorSchema,
123
+ negative: negativeColorSchema,
124
+ gradient: gradientStopsSchema
125
+ });
126
+ var lightColorsSchema = z.object({
127
+ foreground: darkColorSchema,
128
+ background: lightColorSchema,
129
+ brand: brandColorSchema,
130
+ alternate: alternateColorSchema,
131
+ accent: accentColorSchema,
132
+ link: linkColorSchema,
133
+ help: helpColorSchema,
134
+ success: successColorSchema,
135
+ info: infoColorSchema,
136
+ warning: warningColorSchema,
137
+ danger: dangerColorSchema,
138
+ fatal: fatalColorSchema,
139
+ positive: positiveColorSchema,
140
+ negative: negativeColorSchema,
141
+ gradient: gradientStopsSchema
142
+ });
143
+ var multiColorsSchema = z.object({
144
+ dark: darkColorsSchema,
145
+ light: lightColorsSchema
146
+ });
147
+ var singleColorsSchema = z.object({
148
+ dark: darkColorSchema,
149
+ light: lightColorSchema,
150
+ brand: brandColorSchema,
151
+ alternate: alternateColorSchema,
152
+ accent: accentColorSchema,
153
+ link: linkColorSchema,
154
+ help: helpColorSchema,
155
+ success: successColorSchema,
156
+ info: infoColorSchema,
157
+ warning: warningColorSchema,
158
+ danger: dangerColorSchema,
159
+ fatal: fatalColorSchema,
160
+ positive: positiveColorSchema,
161
+ negative: negativeColorSchema,
162
+ gradient: gradientStopsSchema
163
+ });
164
+ var registryUrlConfigSchema = z.optional(z.url());
165
+ schemaRegistry.add(registryUrlConfigSchema, {
166
+ description: "A remote registry URL used to publish distributable packages"
167
+ });
168
+ var registrySchema = z._default(
169
+ z.object({
170
+ github: registryUrlConfigSchema,
171
+ npm: registryUrlConfigSchema,
172
+ cargo: registryUrlConfigSchema,
173
+ cyclone: registryUrlConfigSchema,
174
+ container: registryUrlConfigSchema
175
+ }),
176
+ {}
177
+ );
178
+ schemaRegistry.add(registrySchema, {
179
+ description: "A list of remote registry URLs used by Storm Software"
180
+ });
181
+ var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
182
+ schemaRegistry.add(colorsSchema, {
183
+ description: "Colors used for various workspace elements"
184
+ });
185
+ var themeColorsSchema = z.record(
186
+ z.union([z.union([z.literal("base"), z.string()]), z.string()]),
187
+ colorsSchema
188
+ );
189
+ schemaRegistry.add(themeColorsSchema, {
190
+ description: "Storm theme config values used for styling various package elements"
191
+ });
192
+ var extendsSchema = z.optional(
193
+ z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
194
+ );
195
+ schemaRegistry.add(extendsSchema, {
196
+ 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."
197
+ });
198
+ var workspaceBotNameSchema = z.string().check(z.trim());
199
+ schemaRegistry.add(workspaceBotNameSchema, {
200
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
201
+ });
202
+ var workspaceBotEmailSchema = z.string().check(z.trim());
203
+ schemaRegistry.add(workspaceBotEmailSchema, {
204
+ description: "The email of the workspace bot"
205
+ });
206
+ var workspaceBotSchema = z.object({
207
+ name: workspaceBotNameSchema,
208
+ email: workspaceBotEmailSchema
209
+ });
210
+ schemaRegistry.add(workspaceBotSchema, {
211
+ description: "The workspace's bot user's config used to automated various operations tasks"
212
+ });
213
+ var workspaceReleaseBannerUrlSchema = z.optional(
214
+ z.string().check(z.trim(), z.url())
215
+ );
216
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
217
+ description: "A URL to a banner image used to display the workspace's release"
218
+ });
219
+ var workspaceReleaseBannerAltSchema = z._default(
220
+ z.string().check(z.trim()),
221
+ STORM_DEFAULT_BANNER_ALT
48
222
  );
49
- var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
50
- "The primary brand specific color of the workspace"
223
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
224
+ description: "The alt text for the workspace's release banner image"
225
+ });
226
+ var workspaceReleaseBannerSchema = z.object({
227
+ url: workspaceReleaseBannerUrlSchema,
228
+ alt: workspaceReleaseBannerAltSchema
229
+ });
230
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
231
+ description: "The workspace's banner image used during the release process"
232
+ });
233
+ var workspaceReleaseHeaderSchema = z.optional(
234
+ z.string().check(z.trim())
51
235
  );
52
- var AlternateColorSchema = ColorSchema.optional().describe(
53
- "The alternate brand specific color of the workspace"
236
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
237
+ description: "A header message appended to the start of the workspace's release notes"
238
+ });
239
+ var workspaceReleaseFooterSchema = z.optional(
240
+ z.string().check(z.trim())
241
+ );
242
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
243
+ description: "A footer message appended to the end of the workspace's release notes"
244
+ });
245
+ var workspaceReleaseSchema = z.object({
246
+ banner: z.union([
247
+ workspaceReleaseBannerSchema,
248
+ z.string().check(z.trim(), z.url())
249
+ ]),
250
+ header: workspaceReleaseHeaderSchema,
251
+ footer: workspaceReleaseFooterSchema
252
+ });
253
+ schemaRegistry.add(workspaceReleaseSchema, {
254
+ description: "The workspace's release config used during the release process"
255
+ });
256
+ var workspaceSocialsTwitterSchema = z.optional(
257
+ z.string().check(z.trim())
258
+ );
259
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
260
+ description: "A Twitter/X account associated with the organization/project"
261
+ });
262
+ var workspaceSocialsDiscordSchema = z.optional(
263
+ z.string().check(z.trim())
264
+ );
265
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
266
+ description: "A Discord account associated with the organization/project"
267
+ });
268
+ var workspaceSocialsTelegramSchema = z.optional(
269
+ z.string().check(z.trim())
270
+ );
271
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
272
+ description: "A Telegram account associated with the organization/project"
273
+ });
274
+ var workspaceSocialsSlackSchema = z.optional(
275
+ z.string().check(z.trim())
276
+ );
277
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
278
+ description: "A Slack account associated with the organization/project"
279
+ });
280
+ var workspaceSocialsMediumSchema = z.optional(
281
+ z.string().check(z.trim())
282
+ );
283
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
284
+ description: "A Medium account associated with the organization/project"
285
+ });
286
+ var workspaceSocialsGithubSchema = z.optional(
287
+ z.string().check(z.trim())
288
+ );
289
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
290
+ description: "A GitHub account associated with the organization/project"
291
+ });
292
+ var workspaceSocialsSchema = z.object({
293
+ twitter: workspaceSocialsTwitterSchema,
294
+ discord: workspaceSocialsDiscordSchema,
295
+ telegram: workspaceSocialsTelegramSchema,
296
+ slack: workspaceSocialsSlackSchema,
297
+ medium: workspaceSocialsMediumSchema,
298
+ github: workspaceSocialsGithubSchema
299
+ });
300
+ schemaRegistry.add(workspaceSocialsSchema, {
301
+ description: "The workspace's account config used to store various social media links"
302
+ });
303
+ var workspaceDirectoryCacheSchema = z.optional(
304
+ z.string().check(z.trim())
54
305
  );
55
- var AccentColorSchema = ColorSchema.optional().describe(
56
- "The secondary brand specific color of the workspace"
306
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
307
+ description: "The directory used to store the environment's cached file data"
308
+ });
309
+ var workspaceDirectoryDataSchema = z.optional(
310
+ z.string().check(z.trim())
57
311
  );
58
- var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
59
- "The color used to display hyperlink text"
312
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
313
+ description: "The directory used to store the environment's data files"
314
+ });
315
+ var workspaceDirectoryConfigSchema = z.optional(
316
+ z.string().check(z.trim())
60
317
  );
61
- var HelpColorSchema = ColorSchema.default("#818cf8").describe(
62
- "The second brand specific color of the workspace"
318
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
319
+ description: "The directory used to store the environment's configuration files"
320
+ });
321
+ var workspaceDirectoryTempSchema = z.optional(
322
+ z.string().check(z.trim())
63
323
  );
64
- var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
65
- "The success color of the workspace"
324
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
325
+ description: "The directory used to store the environment's temp files"
326
+ });
327
+ var workspaceDirectoryLogSchema = z.optional(
328
+ z.string().check(z.trim())
66
329
  );
67
- var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
68
- "The informational color of the workspace"
330
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
331
+ description: "The directory used to store the environment's log files"
332
+ });
333
+ var workspaceDirectoryBuildSchema = z._default(
334
+ z.string().check(z.trim()),
335
+ "dist"
69
336
  );
70
- var WarningColorSchema = ColorSchema.default("#f3d371").describe(
71
- "The warning color of the workspace"
337
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
338
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
339
+ });
340
+ var workspaceDirectorySchema = z.object({
341
+ cache: workspaceDirectoryCacheSchema,
342
+ data: workspaceDirectoryDataSchema,
343
+ config: workspaceDirectoryConfigSchema,
344
+ temp: workspaceDirectoryTempSchema,
345
+ log: workspaceDirectoryLogSchema,
346
+ build: workspaceDirectoryBuildSchema
347
+ });
348
+ schemaRegistry.add(workspaceDirectorySchema, {
349
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
350
+ });
351
+ var errorCodesFileSchema = z._default(
352
+ z.string().check(z.trim()),
353
+ STORM_DEFAULT_ERROR_CODES_FILE
72
354
  );
73
- var DangerColorSchema = ColorSchema.default("#d8314a").describe(
74
- "The danger color of the workspace"
355
+ schemaRegistry.add(errorCodesFileSchema, {
356
+ description: "The path to the workspace's error codes JSON file"
357
+ });
358
+ var errorUrlSchema = z.optional(z.url());
359
+ schemaRegistry.add(errorUrlSchema, {
360
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
361
+ });
362
+ var errorSchema = z.object({
363
+ codesFile: errorCodesFileSchema,
364
+ url: errorUrlSchema
365
+ });
366
+ schemaRegistry.add(errorSchema, {
367
+ description: "The workspace's error config used when creating error details during a system error"
368
+ });
369
+ var organizationNameSchema = z.optional(
370
+ z.string().check(z.trim(), z.toLowerCase())
75
371
  );
76
- var FatalColorSchema = ColorSchema.optional().describe(
77
- "The fatal color of the workspace"
372
+ schemaRegistry.add(organizationNameSchema, {
373
+ description: "The name of the organization"
374
+ });
375
+ var organizationDescriptionSchema = z.optional(
376
+ z.string().check(z.trim())
78
377
  );
79
- var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
80
- "The positive number color of the workspace"
378
+ schemaRegistry.add(organizationDescriptionSchema, {
379
+ description: "A description of the organization"
380
+ });
381
+ var organizationLogoSchema = z.optional(z.url());
382
+ schemaRegistry.add(organizationLogoSchema, {
383
+ description: "A URL to the organization's logo image"
384
+ });
385
+ var organizationIconSchema = z.optional(z.url());
386
+ schemaRegistry.add(organizationIconSchema, {
387
+ description: "A URL to the organization's icon image"
388
+ });
389
+ var organizationUrlSchema = z.optional(z.url());
390
+ schemaRegistry.add(organizationUrlSchema, {
391
+ description: "A URL to a page that provides more information about the organization"
392
+ });
393
+ var organizationSchema = z.object({
394
+ name: organizationNameSchema,
395
+ description: organizationDescriptionSchema,
396
+ logo: organizationLogoSchema,
397
+ icon: organizationIconSchema,
398
+ url: organizationUrlSchema
399
+ });
400
+ schemaRegistry.add(organizationSchema, {
401
+ description: "The workspace's organization details"
402
+ });
403
+ var schemaNameSchema = z._default(
404
+ z.string().check(z.trim(), z.toLowerCase()),
405
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
81
406
  );
82
- var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
83
- "The negative number color of the workspace"
407
+ schemaRegistry.add(schemaNameSchema, {
408
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
409
+ });
410
+ var nameSchema = z.string().check(z.trim(), z.toLowerCase());
411
+ schemaRegistry.add(nameSchema, {
412
+ description: "The name of the workspace/project/service/package/scope using this configuration"
413
+ });
414
+ var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
415
+ schemaRegistry.add(namespaceSchema, {
416
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
417
+ });
418
+ var orgSchema = z.union([
419
+ organizationSchema,
420
+ z.string().check(z.trim(), z.toLowerCase())
421
+ ]);
422
+ schemaRegistry.add(orgSchema, {
423
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
424
+ });
425
+ var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
426
+ schemaRegistry.add(repositorySchema, {
427
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
428
+ });
429
+ var licenseSchema = z._default(
430
+ z.string().check(z.trim()),
431
+ "Apache-2.0"
84
432
  );
85
- var GradientStopsSchema = z.array(ColorSchema).optional().describe(
86
- "The color stops for the base gradient color pattern used in the workspace"
433
+ schemaRegistry.add(licenseSchema, {
434
+ description: "The license type of the package"
435
+ });
436
+ var homepageSchema = z.optional(z.url());
437
+ schemaRegistry.add(homepageSchema, {
438
+ description: "The homepage of the workspace"
439
+ });
440
+ var docsSchema = z.optional(z.url());
441
+ schemaRegistry.add(docsSchema, {
442
+ description: "The documentation site for the workspace"
443
+ });
444
+ var portalSchema = z.optional(z.url());
445
+ schemaRegistry.add(portalSchema, {
446
+ description: "The development portal site for the workspace"
447
+ });
448
+ var licensingSchema = z.optional(z.url());
449
+ schemaRegistry.add(licensingSchema, {
450
+ description: "The licensing site for the workspace"
451
+ });
452
+ var contactSchema = z.optional(z.url());
453
+ schemaRegistry.add(contactSchema, {
454
+ description: "The contact site for the workspace"
455
+ });
456
+ var supportSchema = z.optional(z.url());
457
+ schemaRegistry.add(supportSchema, {
458
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
459
+ });
460
+ var branchSchema = z._default(
461
+ z.string().check(z.trim(), z.toLowerCase()),
462
+ "main"
87
463
  );
88
- var DarkThemeColorConfigSchema = z.object({
89
- foreground: LightColorSchema,
90
- background: DarkColorSchema,
91
- brand: BrandColorSchema,
92
- alternate: AlternateColorSchema,
93
- accent: AccentColorSchema,
94
- link: LinkColorSchema,
95
- help: HelpColorSchema,
96
- success: SuccessColorSchema,
97
- info: InfoColorSchema,
98
- warning: WarningColorSchema,
99
- danger: DangerColorSchema,
100
- fatal: FatalColorSchema,
101
- positive: PositiveColorSchema,
102
- negative: NegativeColorSchema,
103
- gradient: GradientStopsSchema
104
- });
105
- var LightThemeColorConfigSchema = z.object({
106
- foreground: DarkColorSchema,
107
- background: LightColorSchema,
108
- brand: BrandColorSchema,
109
- alternate: AlternateColorSchema,
110
- accent: AccentColorSchema,
111
- link: LinkColorSchema,
112
- help: HelpColorSchema,
113
- success: SuccessColorSchema,
114
- info: InfoColorSchema,
115
- warning: WarningColorSchema,
116
- danger: DangerColorSchema,
117
- fatal: FatalColorSchema,
118
- positive: PositiveColorSchema,
119
- negative: NegativeColorSchema,
120
- gradient: GradientStopsSchema
121
- });
122
- var MultiThemeColorConfigSchema = z.object({
123
- dark: DarkThemeColorConfigSchema,
124
- light: LightThemeColorConfigSchema
125
- });
126
- var SingleThemeColorConfigSchema = z.object({
127
- dark: DarkColorSchema,
128
- light: LightColorSchema,
129
- brand: BrandColorSchema,
130
- alternate: AlternateColorSchema,
131
- accent: AccentColorSchema,
132
- link: LinkColorSchema,
133
- help: HelpColorSchema,
134
- success: SuccessColorSchema,
135
- info: InfoColorSchema,
136
- warning: WarningColorSchema,
137
- danger: DangerColorSchema,
138
- fatal: FatalColorSchema,
139
- positive: PositiveColorSchema,
140
- negative: NegativeColorSchema,
141
- gradient: GradientStopsSchema
142
- });
143
- var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
144
- var RegistryConfigSchema = z.object({
145
- github: RegistryUrlConfigSchema,
146
- npm: RegistryUrlConfigSchema,
147
- cargo: RegistryUrlConfigSchema,
148
- cyclone: RegistryUrlConfigSchema,
149
- container: RegistryUrlConfigSchema
150
- }).default({}).describe("A list of remote registry URLs used by Storm Software");
151
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(
152
- MultiThemeColorConfigSchema
153
- ).describe("Colors used for various workspace elements");
154
- var ColorConfigMapSchema = z.record(
155
- z.union([z.literal("base"), z.string()]),
156
- ColorConfigSchema
464
+ schemaRegistry.add(branchSchema, {
465
+ description: "The branch of the workspace"
466
+ });
467
+ var preidSchema = z.optional(
468
+ z.string().check(z.trim(), z.toLowerCase())
157
469
  );
158
- var ExtendsItemSchema = z.string().trim().describe(
159
- "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."
470
+ schemaRegistry.add(preidSchema, {
471
+ description: "A tag specifying the version pre-release identifier"
472
+ });
473
+ var ownerSchema = z.optional(
474
+ z.string().check(z.trim(), z.toLowerCase())
160
475
  );
161
- var ExtendsSchema = ExtendsItemSchema.or(
162
- z.array(ExtendsItemSchema)
163
- ).describe(
164
- "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."
476
+ schemaRegistry.add(ownerSchema, {
477
+ description: "The owner of the package"
478
+ });
479
+ var modeSchema = z._default(
480
+ z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
481
+ "production"
165
482
  );
166
- var WorkspaceBotConfigSchema = z.object({
167
- name: z.string().trim().default("stormie-bot").describe(
168
- "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
169
- ),
170
- email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
171
- }).describe(
172
- "The workspace's bot user's config used to automated various operations tasks"
483
+ schemaRegistry.add(modeSchema, {
484
+ description: "The current runtime environment mode for the package"
485
+ });
486
+ var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
487
+ schemaRegistry.add(workspaceRootSchema, {
488
+ description: "The root directory of the workspace"
489
+ });
490
+ var skipCacheSchema = z._default(z.boolean(), false);
491
+ schemaRegistry.add(skipCacheSchema, {
492
+ description: "Should all known types of workspace caching be skipped?"
493
+ });
494
+ var packageManagerSchema = z._default(
495
+ z.enum(["npm", "yarn", "pnpm", "bun"]),
496
+ "npm"
173
497
  );
174
- var WorkspaceReleaseConfigSchema = z.object({
175
- banner: z.string().trim().optional().describe(
176
- "A URL to a banner image used to display the workspace's release"
177
- ),
178
- header: z.string().trim().optional().describe(
179
- "A header message appended to the start of the workspace's release notes"
180
- ),
181
- footer: z.string().trim().optional().describe(
182
- "A footer message appended to the end of the workspace's release notes"
183
- )
184
- }).describe("The workspace's release config used during the release process");
185
- var WorkspaceSocialsConfigSchema = z.object({
186
- twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
187
- discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
188
- telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
189
- slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
190
- medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
191
- github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
192
- }).describe(
193
- "The workspace's account config used to store various social media links"
498
+ schemaRegistry.add(packageManagerSchema, {
499
+ description: "The JavaScript/TypeScript package manager used by the repository"
500
+ });
501
+ var timezoneSchema = z._default(
502
+ z.string().check(z.trim(), z.toLowerCase()),
503
+ "America/New_York"
194
504
  );
195
- var WorkspaceDirectoryConfigSchema = z.object({
196
- cache: z.string().trim().optional().describe(
197
- "The directory used to store the environment's cached file data"
198
- ),
199
- data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
200
- config: z.string().trim().optional().describe(
201
- "The directory used to store the environment's configuration files"
202
- ),
203
- temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
204
- log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
205
- build: z.string().trim().default("dist").describe(
206
- "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
207
- )
208
- }).describe(
209
- "Various directories used by the workspace to store data, cache, and configuration files"
505
+ schemaRegistry.add(timezoneSchema, {
506
+ description: "The default timezone of the workspace"
507
+ });
508
+ var localeSchema = z._default(
509
+ z.string().check(z.trim(), z.toLowerCase()),
510
+ "en-US"
210
511
  );
211
- var errorConfigSchema = z.object({
212
- codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
213
- url: z.url().optional().describe(
214
- "A URL to a page that looks up the workspace's error messages given a specific error code"
215
- )
216
- }).describe("The workspace's error config used during the error process");
217
- var organizationConfigSchema = z.object({
218
- name: z.string().trim().describe("The name of the organization"),
219
- description: z.string().trim().optional().describe("A description of the organization"),
220
- logo: z.url().optional().describe("A URL to the organization's logo image"),
221
- icon: z.url().optional().describe("A URL to the organization's icon image"),
222
- url: z.url().optional().describe(
223
- "A URL to a page that provides more information about the organization"
224
- )
225
- }).describe("The workspace's organization details");
226
- var stormWorkspaceConfigSchema = z.object({
227
- $schema: z.string().trim().default(
228
- "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
229
- ).describe(
230
- "The URL or file path to the JSON schema file that describes the Storm configuration file"
231
- ),
232
- extends: ExtendsSchema.optional(),
233
- name: z.string().trim().toLowerCase().optional().describe(
234
- "The name of the service/package/scope using this configuration"
235
- ),
236
- namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
237
- organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
238
- "The organization of the workspace. This can be a string or an object containing the organization's details"
239
- ),
240
- repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
241
- license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
242
- homepage: z.url().optional().describe("The homepage of the workspace"),
243
- docs: z.url().optional().describe("The documentation site for the workspace"),
244
- portal: z.url().optional().describe("The development portal site for the workspace"),
245
- licensing: z.url().optional().describe("The licensing site for the workspace"),
246
- contact: z.url().optional().describe("The contact site for the workspace"),
247
- support: z.url().optional().describe(
248
- "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
249
- ),
250
- branch: z.string().trim().default("main").describe("The branch of the workspace"),
251
- preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
252
- owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
253
- bot: WorkspaceBotConfigSchema,
254
- release: WorkspaceReleaseConfigSchema,
255
- socials: WorkspaceSocialsConfigSchema,
256
- error: errorConfigSchema,
257
- mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
258
- workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
259
- skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
260
- directories: WorkspaceDirectoryConfigSchema,
261
- packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
262
- "The JavaScript/TypeScript package manager used by the repository"
263
- ),
264
- timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
265
- locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
266
- logLevel: z.enum([
512
+ schemaRegistry.add(localeSchema, {
513
+ description: "The default locale of the workspace"
514
+ });
515
+ var logLevelSchema = z._default(
516
+ z.enum([
267
517
  "silent",
268
518
  "fatal",
269
519
  "error",
@@ -273,23 +523,65 @@ var stormWorkspaceConfigSchema = z.object({
273
523
  "debug",
274
524
  "trace",
275
525
  "all"
276
- ]).default("info").describe(
277
- "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`)."
278
- ),
279
- skipConfigLogging: z.boolean().optional().describe(
280
- "Should the logging of the current Storm Workspace configuration be skipped?"
281
- ),
282
- registry: RegistryConfigSchema,
283
- configFile: z.string().trim().nullable().default(null).describe(
284
- "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
285
- ),
286
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
287
- "Storm theme config values used for styling various package elements"
288
- ),
289
- extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
290
- }).describe(
291
- "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."
526
+ ]),
527
+ "info"
528
+ );
529
+ schemaRegistry.add(logLevelSchema, {
530
+ 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`)."
531
+ });
532
+ var skipConfigLoggingSchema = z._default(z.boolean(), true);
533
+ schemaRegistry.add(skipConfigLoggingSchema, {
534
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
535
+ });
536
+ var configFileSchema = z._default(
537
+ z.nullable(z.string().check(z.trim())),
538
+ null
292
539
  );
540
+ schemaRegistry.add(configFileSchema, {
541
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
542
+ });
543
+ var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
544
+ schemaRegistry.add(extensionsSchema, {
545
+ description: "Configuration of each used extension"
546
+ });
547
+ var workspaceConfigSchema = z.object({
548
+ $schema: schemaNameSchema,
549
+ extends: extendsSchema,
550
+ name: nameSchema,
551
+ namespace: namespaceSchema,
552
+ organization: orgSchema,
553
+ repository: repositorySchema,
554
+ license: licenseSchema,
555
+ homepage: homepageSchema,
556
+ docs: docsSchema,
557
+ portal: portalSchema,
558
+ licensing: licensingSchema,
559
+ contact: contactSchema,
560
+ support: supportSchema,
561
+ branch: branchSchema,
562
+ preid: preidSchema,
563
+ owner: ownerSchema,
564
+ bot: workspaceBotSchema,
565
+ release: workspaceReleaseSchema,
566
+ socials: workspaceSocialsSchema,
567
+ error: errorSchema,
568
+ mode: modeSchema,
569
+ workspaceRoot: workspaceRootSchema,
570
+ skipCache: skipCacheSchema,
571
+ directories: workspaceDirectorySchema,
572
+ packageManager: packageManagerSchema,
573
+ timezone: timezoneSchema,
574
+ locale: localeSchema,
575
+ logLevel: logLevelSchema,
576
+ skipConfigLogging: skipConfigLoggingSchema,
577
+ registry: registrySchema,
578
+ configFile: configFileSchema,
579
+ colors: z.union([colorsSchema, themeColorsSchema]),
580
+ extensions: extensionsSchema
581
+ });
582
+ schemaRegistry.add(extensionsSchema, {
583
+ 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."
584
+ });
293
585
 
294
586
  // ../config/src/types.ts
295
587
  var COLOR_KEYS = [
@@ -505,7 +797,10 @@ var getConfigEnv = () => {
505
797
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
506
798
  },
507
799
  release: {
508
- banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
800
+ banner: {
801
+ url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
802
+ alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
803
+ },
509
804
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
510
805
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
511
806
  },
@@ -582,11 +877,11 @@ var getConfigEnv = () => {
582
877
  );
583
878
  config.colors = themeNames.length > 0 ? themeNames.reduce(
584
879
  (ret, themeName) => {
585
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
880
+ ret[themeName] = getThemeColorsEnv(prefix, themeName);
586
881
  return ret;
587
882
  },
588
883
  {}
589
- ) : getThemeColorConfigEnv(prefix);
884
+ ) : getThemeColorsEnv(prefix);
590
885
  if (config.docs === STORM_DEFAULT_DOCS) {
591
886
  if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
592
887
  config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
@@ -613,11 +908,11 @@ var getConfigEnv = () => {
613
908
  }
614
909
  return config;
615
910
  };
616
- var getThemeColorConfigEnv = (prefix, theme) => {
911
+ var getThemeColorsEnv = (prefix, theme) => {
617
912
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
618
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
913
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
619
914
  };
620
- var getSingleThemeColorConfigEnv = (prefix) => {
915
+ var getSingleThemeColorsEnv = (prefix) => {
621
916
  const gradient = [];
622
917
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
623
918
  gradient.push(
@@ -649,15 +944,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
649
944
  gradient
650
945
  };
651
946
  };
652
- var getMultiThemeColorConfigEnv = (prefix) => {
947
+ var getMultiThemeColorsEnv = (prefix) => {
653
948
  return {
654
- light: getBaseThemeColorConfigEnv(
655
- `${prefix}_LIGHT_`
656
- ),
657
- dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
949
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
950
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
658
951
  };
659
952
  };
660
- var getBaseThemeColorConfigEnv = (prefix) => {
953
+ var getBaseThemeColorsEnv = (prefix) => {
661
954
  const gradient = [];
662
955
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
663
956
  gradient.push(
@@ -736,7 +1029,16 @@ var setConfigEnv = (config) => {
736
1029
  process.env[`${prefix}ERROR_URL`] = config.error.url;
737
1030
  }
738
1031
  if (config.release) {
739
- process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1032
+ if (config.release.banner) {
1033
+ if (typeof config.release.banner === "string") {
1034
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
1035
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
1036
+ } else {
1037
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
1038
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
1039
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
1040
+ }
1041
+ }
740
1042
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
741
1043
  process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
742
1044
  }
@@ -879,10 +1181,10 @@ var setConfigEnv = (config) => {
879
1181
  }
880
1182
  if (_optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24.base, 'optionalAccess', _25 => _25.light]) || _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27.base, 'optionalAccess', _28 => _28.dark])) {
881
1183
  for (const key of Object.keys(config.colors)) {
882
- setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1184
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
883
1185
  }
884
1186
  } else {
885
- setThemeColorConfigEnv(
1187
+ setThemeColorsEnv(
886
1188
  `${prefix}COLOR_`,
887
1189
  config.colors
888
1190
  );
@@ -937,10 +1239,10 @@ var setConfigEnv = (config) => {
937
1239
  }
938
1240
  }
939
1241
  };
940
- var setThemeColorConfigEnv = (prefix, config) => {
941
- return _optionalChain([config, 'optionalAccess', _29 => _29.light, 'optionalAccess', _30 => _30.brand]) || _optionalChain([config, 'optionalAccess', _31 => _31.dark, 'optionalAccess', _32 => _32.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1242
+ var setThemeColorsEnv = (prefix, config) => {
1243
+ return _optionalChain([config, 'optionalAccess', _29 => _29.light, 'optionalAccess', _30 => _30.brand]) || _optionalChain([config, 'optionalAccess', _31 => _31.dark, 'optionalAccess', _32 => _32.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
942
1244
  };
943
- var setSingleThemeColorConfigEnv = (prefix, config) => {
1245
+ var setSingleThemeColorsEnv = (prefix, config) => {
944
1246
  if (config.dark) {
945
1247
  process.env[`${prefix}DARK`] = config.dark;
946
1248
  }
@@ -989,13 +1291,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
989
1291
  }
990
1292
  }
991
1293
  };
992
- var setMultiThemeColorConfigEnv = (prefix, config) => {
1294
+ var setMultiThemeColorsEnv = (prefix, config) => {
993
1295
  return {
994
- light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
995
- dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
1296
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
1297
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
996
1298
  };
997
1299
  };
998
- var setBaseThemeColorConfigEnv = (prefix, config) => {
1300
+ var setBaseThemeColorsEnv = (prefix, config) => {
999
1301
  if (config.foreground) {
1000
1302
  process.env[`${prefix}FOREGROUND`] = config.foreground;
1001
1303
  }
@@ -1076,7 +1378,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1076
1378
  );
1077
1379
  try {
1078
1380
  result = applyDefaultConfig(
1079
- await stormWorkspaceConfigSchema.parseAsync(configInput)
1381
+ await workspaceConfigSchema.parseAsync(configInput)
1080
1382
  );
1081
1383
  result.workspaceRoot ??= _workspaceRoot;
1082
1384
  } catch (error) {
@@ -1153,4 +1455,5 @@ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
1153
1455
 
1154
1456
 
1155
1457
 
1156
- exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig;
1458
+
1459
+ exports.schemaRegistry = schemaRegistry; exports.workspaceConfigSchema = workspaceConfigSchema; exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig;