@storm-software/config 1.115.1 → 1.116.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 CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  # Changelog for Storm Ops - Config
4
4
 
5
+ ## [1.116.1](https://github.com/storm-software/storm-ops/releases/tag/config%401.116.1) (2025-05-06)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **workspace-tools:** Resolve issue with missing dependencies
10
+ ([e4fcafde0](https://github.com/storm-software/storm-ops/commit/e4fcafde0))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Regenerate README markdown files
15
+ ([6eabb3ff1](https://github.com/storm-software/storm-ops/commit/6eabb3ff1))
16
+
17
+ ## [1.116.0](https://github.com/storm-software/storm-ops/releases/tag/config%401.116.0) (2025-05-06)
18
+
19
+ ### Features
20
+
21
+ - **workspace-tools:** Update the publish executor source code
22
+ ([527dcfe84](https://github.com/storm-software/storm-ops/commit/527dcfe84))
23
+
24
+ ### Miscellaneous
25
+
26
+ - **monorepo:** Regenerate README markdown files
27
+ ([d58a4014e](https://github.com/storm-software/storm-ops/commit/d58a4014e))
28
+
29
+ ## [1.115.2](https://github.com/storm-software/storm-ops/releases/tag/config%401.115.2) (2025-05-05)
30
+
31
+ ### Miscellaneous
32
+
33
+ - **workspace-tools:** Skip git checks during publish
34
+ ([7fdcbfc9a](https://github.com/storm-software/storm-ops/commit/7fdcbfc9a))
35
+ - **monorepo:** Regenerate README markdown files
36
+ ([fb8ab0609](https://github.com/storm-software/storm-ops/commit/fb8ab0609))
37
+
5
38
  ## [1.115.1](https://github.com/storm-software/storm-ops/releases/tag/config%401.115.1) (2025-05-05)
6
39
 
7
40
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.115.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.115.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/jest.config.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { getJestConfig } from "@storm-software/testing-tools";
2
+
3
+ export default getJestConfig("packages/config", true, "config");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.115.1",
3
+ "version": "1.116.1",
4
4
  "type": "module",
5
5
  "description": "Configuration management tools and schemas for Storm Software projects, providing a standardized approach to handle project settings and presets.",
6
6
  "repository": {
package/project.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "config",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "projectType": "library",
5
+ "sourceRoot": "packages/config/src",
6
+ "targets": {
7
+ "build-base": {
8
+ "executor": "nx:run-commands",
9
+ "dependsOn": ["clean", "^build"],
10
+ "options": {
11
+ "command": "tsup --config=tsup.config.ts",
12
+ "cwd": "{projectRoot}"
13
+ }
14
+ },
15
+ "build": {
16
+ "executor": "nx:run-commands",
17
+ "dependsOn": ["build-base"],
18
+ "options": {
19
+ "commands": [
20
+ "pnpm copyfiles LICENSE dist/packages/config",
21
+ "pnpm copyfiles --up=2 ./packages/config/*.md ./packages/config/package.json dist/packages/config",
22
+ "pnpm copyfiles --up=3 \"./packages/config/dist/**/*\" dist/packages/config/dist",
23
+ "pnpm copyfiles --up=3 ./packages/config/presets/* dist/packages/config/presets",
24
+ "pnpm copyfiles --up=3 ./packages/config/schemas/* dist/packages/config/schemas"
25
+ ]
26
+ }
27
+ },
28
+ "nx-release-publish": {
29
+ "executor": "@storm-software/workspace-tools:npm-publish"
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,24 @@
1
+ export const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
2
+ export const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
3
+ export const STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
4
+ export const STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
5
+ export const STORM_DEFAULT_LICENSE = "Apache-2.0";
6
+ export const STORM_DEFAULT_RELEASE_BANNER =
7
+ "https://public.storm-cdn.com/brand-banner.png";
8
+ export const STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
9
+ export const STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
10
+ export const STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
11
+ export const STORM_DEFAULT_ACCOUNT_SLACK =
12
+ "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
13
+ export const STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
14
+ export const STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
15
+
16
+ export const STORM_DEFAULT_RELEASE_FOOTER = `
17
+ 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.
18
+
19
+ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
20
+
21
+ 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_ACCOUNT_SLACK}) channel!
22
+ `;
23
+
24
+ export const STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
@@ -0,0 +1,9 @@
1
+ import type { StormWorkspaceConfigInput } from "./types";
2
+
3
+ /**
4
+ * Type the config values for the current Storm workspace
5
+ *
6
+ * @param input - The config values for the current Storm workspace
7
+ * @returns The config values for the current Storm workspace
8
+ */
9
+ export const defineConfig = (input: StormWorkspaceConfigInput) => input;
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @packageDocumentation
8
8
  */
9
+
9
10
  export * from "./constants";
10
11
  export * from "./define-config";
11
12
  export * from "./schema";
package/src/schema.ts ADDED
@@ -0,0 +1,540 @@
1
+ import z from "zod";
2
+ import {
3
+ STORM_DEFAULT_ACCOUNT_DISCORD,
4
+ STORM_DEFAULT_ACCOUNT_GITHUB,
5
+ STORM_DEFAULT_ACCOUNT_MEDIUM,
6
+ STORM_DEFAULT_ACCOUNT_SLACK,
7
+ STORM_DEFAULT_ACCOUNT_TELEGRAM,
8
+ STORM_DEFAULT_ACCOUNT_TWITTER,
9
+ STORM_DEFAULT_CONTACT,
10
+ STORM_DEFAULT_DOCS,
11
+ STORM_DEFAULT_ERROR_CODES_FILE,
12
+ STORM_DEFAULT_HOMEPAGE,
13
+ STORM_DEFAULT_LICENSING,
14
+ STORM_DEFAULT_RELEASE_BANNER,
15
+ STORM_DEFAULT_RELEASE_FOOTER
16
+ } from "./constants";
17
+
18
+ const DarkColorSchema = z
19
+ .string()
20
+ .trim()
21
+ .toLowerCase()
22
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
23
+ .length(7)
24
+ .default("#1d1e22")
25
+ .describe("The dark background color of the workspace");
26
+ const LightColorSchema = z
27
+ .string()
28
+ .trim()
29
+ .toLowerCase()
30
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
31
+ .length(7)
32
+ .default("#f4f4f5")
33
+ .describe("The light background color of the workspace");
34
+ const BrandColorSchema = z
35
+ .string()
36
+ .trim()
37
+ .toLowerCase()
38
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
39
+ .length(7)
40
+ .default("#1fb2a6")
41
+ .describe("The primary brand specific color of the workspace");
42
+ const AlternateColorSchema = z
43
+ .string()
44
+ .trim()
45
+ .toLowerCase()
46
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
47
+ .length(7)
48
+ .optional()
49
+ .describe("The alternate brand specific color of the workspace");
50
+ const AccentColorSchema = z
51
+ .string()
52
+ .trim()
53
+ .toLowerCase()
54
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
55
+ .length(7)
56
+ .optional()
57
+ .describe("The secondary brand specific color of the workspace");
58
+ const LinkColorSchema = z
59
+ .string()
60
+ .trim()
61
+ .toLowerCase()
62
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
63
+ .length(7)
64
+ .optional()
65
+ .describe("The color used to display hyperlink text");
66
+ const HelpColorSchema = z
67
+ .string()
68
+ .trim()
69
+ .toLowerCase()
70
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
71
+ .length(7)
72
+ .default("#8256D0")
73
+ .describe("The second brand specific color of the workspace");
74
+ const SuccessColorSchema = z
75
+ .string()
76
+ .trim()
77
+ .toLowerCase()
78
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
79
+ .length(7)
80
+ .default("#12B66A")
81
+ .describe("The success color of the workspace");
82
+ const InfoColorSchema = z
83
+ .string()
84
+ .trim()
85
+ .toLowerCase()
86
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
87
+ .length(7)
88
+ .default("#0070E0")
89
+ .describe("The informational color of the workspace");
90
+ const WarningColorSchema = z
91
+ .string()
92
+ .trim()
93
+ .toLowerCase()
94
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
95
+ .length(7)
96
+ .default("#fcc419")
97
+ .describe("The warning color of the workspace");
98
+ const DangerColorSchema = z
99
+ .string()
100
+ .trim()
101
+ .toLowerCase()
102
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
103
+ .length(7)
104
+ .default("#D8314A")
105
+ .describe("The danger color of the workspace");
106
+ const FatalColorSchema = z
107
+ .string()
108
+ .trim()
109
+ .toLowerCase()
110
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
111
+ .length(7)
112
+ .optional()
113
+ .describe("The fatal color of the workspace");
114
+ const PositiveColorSchema = z
115
+ .string()
116
+ .trim()
117
+ .toLowerCase()
118
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
119
+ .length(7)
120
+ .default("#4ade80")
121
+ .describe("The positive number color of the workspace");
122
+ const NegativeColorSchema = z
123
+ .string()
124
+ .trim()
125
+ .toLowerCase()
126
+ .regex(/^#([0-9a-f]{3}){1,2}$/i)
127
+ .length(7)
128
+ .default("#ef4444")
129
+ .describe("The negative number color of the workspace");
130
+
131
+ export const DarkThemeColorConfigSchema = z.object({
132
+ foreground: LightColorSchema,
133
+ background: DarkColorSchema,
134
+ brand: BrandColorSchema,
135
+ alternate: AlternateColorSchema,
136
+ accent: AccentColorSchema,
137
+ link: LinkColorSchema,
138
+ help: HelpColorSchema,
139
+ success: SuccessColorSchema,
140
+ info: InfoColorSchema,
141
+ warning: WarningColorSchema,
142
+ danger: DangerColorSchema,
143
+ fatal: FatalColorSchema,
144
+ positive: PositiveColorSchema,
145
+ negative: NegativeColorSchema
146
+ });
147
+
148
+ export const LightThemeColorConfigSchema = z.object({
149
+ foreground: DarkColorSchema,
150
+ background: LightColorSchema,
151
+ brand: BrandColorSchema,
152
+ alternate: AlternateColorSchema,
153
+ accent: AccentColorSchema,
154
+ link: LinkColorSchema,
155
+ help: HelpColorSchema,
156
+ success: SuccessColorSchema,
157
+ info: InfoColorSchema,
158
+ warning: WarningColorSchema,
159
+ danger: DangerColorSchema,
160
+ fatal: FatalColorSchema,
161
+ positive: PositiveColorSchema,
162
+ negative: NegativeColorSchema
163
+ });
164
+
165
+ export const MultiThemeColorConfigSchema = z.object({
166
+ dark: DarkThemeColorConfigSchema,
167
+ light: LightThemeColorConfigSchema
168
+ });
169
+
170
+ export const SingleThemeColorConfigSchema = z.object({
171
+ dark: DarkColorSchema,
172
+ light: LightColorSchema,
173
+ brand: BrandColorSchema,
174
+ alternate: AlternateColorSchema,
175
+ accent: AccentColorSchema,
176
+ link: LinkColorSchema,
177
+ help: HelpColorSchema,
178
+ success: SuccessColorSchema,
179
+ info: InfoColorSchema,
180
+ warning: WarningColorSchema,
181
+ danger: DangerColorSchema,
182
+ fatal: FatalColorSchema,
183
+ positive: PositiveColorSchema,
184
+ negative: NegativeColorSchema
185
+ });
186
+
187
+ export const RegistryUrlConfigSchema = z
188
+ .string()
189
+ .trim()
190
+ .toLowerCase()
191
+ .url()
192
+ .optional()
193
+ .describe("A remote registry URL used to publish distributable packages");
194
+
195
+ export const RegistryConfigSchema = z
196
+ .object({
197
+ github: RegistryUrlConfigSchema,
198
+ npm: RegistryUrlConfigSchema,
199
+ cargo: RegistryUrlConfigSchema,
200
+ cyclone: RegistryUrlConfigSchema,
201
+ container: RegistryUrlConfigSchema
202
+ })
203
+ .default({})
204
+ .describe("A list of remote registry URLs used by Storm Software");
205
+
206
+ /**
207
+ * Storm theme color config values used for styling various workspace elements
208
+ */
209
+ export const ColorConfigSchema = SingleThemeColorConfigSchema.or(
210
+ MultiThemeColorConfigSchema
211
+ ).describe("Colors used for various workspace elements");
212
+
213
+ export const ColorConfigMapSchema = z.union([
214
+ z.object({ base: ColorConfigSchema }),
215
+ z.record(z.string(), ColorConfigSchema)
216
+ ]);
217
+
218
+ const ExtendsItemSchema = z
219
+ .string()
220
+ .trim()
221
+ .describe(
222
+ "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."
223
+ );
224
+
225
+ export const ExtendsSchema = ExtendsItemSchema.or(
226
+ z.array(ExtendsItemSchema)
227
+ ).describe(
228
+ "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."
229
+ );
230
+
231
+ export const WorkspaceBotConfigSchema = z
232
+ .object({
233
+ name: z
234
+ .string()
235
+ .trim()
236
+ .default("stormie-bot")
237
+ .describe(
238
+ "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
239
+ ),
240
+ email: z
241
+ .string()
242
+ .trim()
243
+ .email()
244
+ .default("bot@stormsoftware.com")
245
+ .describe("The email of the workspace bot")
246
+ })
247
+ .describe(
248
+ "The workspace's bot user's config used to automated various operations tasks"
249
+ );
250
+
251
+ export const WorkspaceReleaseConfigSchema = z
252
+ .object({
253
+ banner: z
254
+ .string()
255
+ .trim()
256
+ .default(STORM_DEFAULT_RELEASE_BANNER)
257
+ .describe(
258
+ "A URL to a banner image used to display the workspace's release"
259
+ ),
260
+ header: z
261
+ .string()
262
+ .trim()
263
+ .optional()
264
+ .describe(
265
+ "A header message appended to the start of the workspace's release notes"
266
+ ),
267
+ footer: z
268
+ .string()
269
+ .trim()
270
+ .default(STORM_DEFAULT_RELEASE_FOOTER)
271
+ .describe(
272
+ "A footer message appended to the end of the workspace's release notes"
273
+ )
274
+ })
275
+ .describe("The workspace's release config used during the release process");
276
+
277
+ export const WorkspaceAccountConfigSchema = z
278
+ .object({
279
+ twitter: z
280
+ .string()
281
+ .trim()
282
+ .default(STORM_DEFAULT_ACCOUNT_TWITTER)
283
+ .describe("A Twitter/X account associated with the organization/project"),
284
+ discord: z
285
+ .string()
286
+ .trim()
287
+ .default(STORM_DEFAULT_ACCOUNT_DISCORD)
288
+ .describe("A Discord account associated with the organization/project"),
289
+ telegram: z
290
+ .string()
291
+ .trim()
292
+ .default(STORM_DEFAULT_ACCOUNT_TELEGRAM)
293
+ .describe("A Telegram account associated with the organization/project"),
294
+ slack: z
295
+ .string()
296
+ .trim()
297
+ .default(STORM_DEFAULT_ACCOUNT_SLACK)
298
+ .describe("A Slack account associated with the organization/project"),
299
+ medium: z
300
+ .string()
301
+ .trim()
302
+ .default(STORM_DEFAULT_ACCOUNT_MEDIUM)
303
+ .describe("A Medium account associated with the organization/project"),
304
+ github: z
305
+ .string()
306
+ .trim()
307
+ .default(STORM_DEFAULT_ACCOUNT_GITHUB)
308
+ .describe("A GitHub account associated with the organization/project")
309
+ })
310
+ .describe(
311
+ "The workspace's account config used to store various social media links"
312
+ );
313
+
314
+ export const WorkspaceDirectoryConfigSchema = z
315
+ .object({
316
+ cache: z
317
+ .string()
318
+ .trim()
319
+ .optional()
320
+ .describe(
321
+ "The directory used to store the environment's cached file data"
322
+ ),
323
+ data: z
324
+ .string()
325
+ .trim()
326
+ .optional()
327
+ .describe("The directory used to store the environment's data files"),
328
+ config: z
329
+ .string()
330
+ .trim()
331
+ .optional()
332
+ .describe(
333
+ "The directory used to store the environment's configuration files"
334
+ ),
335
+ temp: z
336
+ .string()
337
+ .trim()
338
+ .optional()
339
+ .describe("The directory used to store the environment's temp files"),
340
+ log: z
341
+ .string()
342
+ .trim()
343
+ .optional()
344
+ .describe("The directory used to store the environment's temp files"),
345
+ build: z
346
+ .string()
347
+ .trim()
348
+ .default("dist")
349
+ .describe(
350
+ "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
351
+ )
352
+ })
353
+ .describe(
354
+ "Various directories used by the workspace to store data, cache, and configuration files"
355
+ );
356
+
357
+ export const errorConfigSchema = z
358
+ .object({
359
+ codesFile: z
360
+ .string()
361
+ .trim()
362
+ .default(STORM_DEFAULT_ERROR_CODES_FILE)
363
+ .describe("The path to the workspace's error codes JSON file"),
364
+ url: z
365
+ .string()
366
+ .trim()
367
+ .url()
368
+ .optional()
369
+ .describe(
370
+ "A URL to a page that looks up the workspace's error messages given a specific error code"
371
+ )
372
+ })
373
+ .describe("The workspace's error config used during the error process");
374
+
375
+ /**
376
+ * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
377
+ */
378
+ export const stormWorkspaceConfigSchema = z
379
+ .object({
380
+ $schema: z
381
+ .string()
382
+ .trim()
383
+ .default(
384
+ "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
385
+ )
386
+ .optional()
387
+ .nullish()
388
+ .describe(
389
+ "The URL to the JSON schema file that describes the Storm configuration file"
390
+ ),
391
+ extends: ExtendsSchema.optional(),
392
+ name: z
393
+ .string()
394
+ .trim()
395
+ .toLowerCase()
396
+ .optional()
397
+ .describe(
398
+ "The name of the service/package/scope using this configuration"
399
+ ),
400
+ namespace: z
401
+ .string()
402
+ .trim()
403
+ .toLowerCase()
404
+ .optional()
405
+ .describe("The namespace of the package"),
406
+ organization: z
407
+ .string()
408
+ .trim()
409
+ .default("storm-software")
410
+ .describe("The organization of the workspace"),
411
+ repository: z
412
+ .string()
413
+ .trim()
414
+ .optional()
415
+ .describe("The repo URL of the workspace (i.e. GitHub)"),
416
+ license: z
417
+ .string()
418
+ .trim()
419
+ .default("Apache-2.0")
420
+ .describe("The license type of the package"),
421
+ homepage: z
422
+ .string()
423
+ .trim()
424
+ .url()
425
+ .default(STORM_DEFAULT_HOMEPAGE)
426
+ .describe("The homepage of the workspace"),
427
+ docs: z
428
+ .string()
429
+ .trim()
430
+ .url()
431
+ .default(STORM_DEFAULT_DOCS)
432
+ .describe("The base documentation site for the workspace"),
433
+ licensing: z
434
+ .string()
435
+ .trim()
436
+ .url()
437
+ .default(STORM_DEFAULT_LICENSING)
438
+ .describe("The base licensing site for the workspace"),
439
+ contact: z
440
+ .string()
441
+ .trim()
442
+ .url()
443
+ .default(STORM_DEFAULT_CONTACT)
444
+ .describe("The base contact site for the workspace"),
445
+ branch: z
446
+ .string()
447
+ .trim()
448
+ .default("main")
449
+ .describe("The branch of the workspace"),
450
+ preid: z
451
+ .string()
452
+ .optional()
453
+ .describe("A tag specifying the version pre-release identifier"),
454
+ owner: z
455
+ .string()
456
+ .trim()
457
+ .default("@storm-software/admin")
458
+ .describe("The owner of the package"),
459
+ bot: WorkspaceBotConfigSchema,
460
+ release: WorkspaceReleaseConfigSchema,
461
+ account: WorkspaceAccountConfigSchema,
462
+ error: errorConfigSchema,
463
+ mode: z
464
+ .enum(["development", "staging", "production"])
465
+ .default("production")
466
+ .describe("The current runtime environment mode for the package"),
467
+ workspaceRoot: z
468
+ .string()
469
+ .trim()
470
+ .describe("The root directory of the workspace"),
471
+ externalPackagePatterns: z
472
+ .array(z.string())
473
+ .default([])
474
+ .describe(
475
+ "The build will use these package patterns to determine if they should be external to the bundle"
476
+ ),
477
+ skipCache: z
478
+ .boolean()
479
+ .default(false)
480
+ .describe("Should all known types of workspace caching be skipped?"),
481
+ directories: WorkspaceDirectoryConfigSchema,
482
+ packageManager: z
483
+ .enum(["npm", "yarn", "pnpm", "bun"])
484
+ .default("npm")
485
+ .describe(
486
+ "The JavaScript/TypeScript package manager used by the repository"
487
+ ),
488
+ timezone: z
489
+ .string()
490
+ .trim()
491
+ .default("America/New_York")
492
+ .describe("The default timezone of the workspace"),
493
+ locale: z
494
+ .string()
495
+ .trim()
496
+ .default("en-US")
497
+ .describe("The default locale of the workspace"),
498
+ logLevel: z
499
+ .enum([
500
+ "silent",
501
+ "fatal",
502
+ "error",
503
+ "warn",
504
+ "success",
505
+ "info",
506
+ "debug",
507
+ "trace",
508
+ "all"
509
+ ])
510
+ .default("info")
511
+ .describe(
512
+ "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`)."
513
+ ),
514
+ skipConfigLogging: z
515
+ .boolean()
516
+ .optional()
517
+ .describe(
518
+ "Should the logging of the current Storm Workspace configuration be skipped?"
519
+ ),
520
+ registry: RegistryConfigSchema,
521
+ configFile: z
522
+ .string()
523
+ .trim()
524
+ .nullable()
525
+ .default(null)
526
+ .describe(
527
+ "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
528
+ ),
529
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
530
+ "Storm theme config values used for styling various package elements"
531
+ ),
532
+ extensions: z
533
+ .record(z.any())
534
+ .optional()
535
+ .default({})
536
+ .describe("Configuration of each used extension")
537
+ })
538
+ .describe(
539
+ "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."
540
+ );