@storm-software/k8s-tools 0.24.51 → 0.24.53

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 (59) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-IGXHTXQH.mjs → chunk-6F7C2HU3.mjs} +26 -10
  4. package/dist/{chunk-HS7SC5NU.mjs → chunk-6W5RODUW.mjs} +2 -2
  5. package/dist/{chunk-X3EJWLQF.js → chunk-7AUWIK6E.js} +19 -19
  6. package/dist/{chunk-UHK34HTM.mjs → chunk-B4EYBY2L.mjs} +2 -2
  7. package/dist/{chunk-27ZC57FP.js → chunk-HLHBBX4A.js} +26 -10
  8. package/dist/{chunk-RJJUCC2C.js → chunk-HR2BRBYY.js} +3 -3
  9. package/dist/{chunk-R64Y2LSB.js → chunk-IVE6VJ4S.js} +2 -2
  10. package/dist/{chunk-MYQII3CB.js → chunk-L26UZLMQ.js} +4 -4
  11. package/dist/{chunk-ESW5AXT2.mjs → chunk-NWZRYSHG.mjs} +2 -2
  12. package/dist/{chunk-73SZZ5JH.js → chunk-PS6CWFTA.js} +6 -6
  13. package/dist/{chunk-DKUH4YV2.mjs → chunk-QVVUYQET.mjs} +2 -2
  14. package/dist/{chunk-VN4RW7JL.mjs → chunk-SQWTERQC.mjs} +1 -1
  15. package/dist/{chunk-27AKWD73.js → chunk-TTASPUAD.js} +25 -25
  16. package/dist/{chunk-5WJ3PXBA.js → chunk-W2HCULDD.js} +4 -4
  17. package/dist/{chunk-EGAM4DSZ.mjs → chunk-Z3R3O2NI.mjs} +2 -2
  18. package/dist/{chunk-JA42WPMD.mjs → chunk-ZW6TG4ZS.mjs} +1 -1
  19. package/dist/{executor-DEatrcJs.d.ts → executor-DrSw4Xm3.d.mts} +3 -18
  20. package/dist/{executor-CumACYb8.d.mts → executor-DrSw4Xm3.d.ts} +3 -18
  21. package/dist/executors.d.mts +3 -3
  22. package/dist/executors.d.ts +3 -3
  23. package/dist/executors.js +5 -5
  24. package/dist/executors.mjs +4 -4
  25. package/dist/{generator-CQG_XJ0l.d.ts → generator-C4BB5aOn.d.mts} +5 -4
  26. package/dist/{generator-UBiKRKhk.d.mts → generator-C4BB5aOn.d.ts} +5 -4
  27. package/dist/{generator-CoEmhb2l.d.ts → generator-CB8TPfuo.d.mts} +5 -4
  28. package/dist/{generator-C6GKj2Md.d.mts → generator-CB8TPfuo.d.ts} +5 -4
  29. package/dist/generators.d.mts +5 -5
  30. package/dist/generators.d.ts +5 -5
  31. package/dist/generators.js +6 -6
  32. package/dist/generators.mjs +5 -5
  33. package/dist/index.d.mts +7 -6
  34. package/dist/index.d.ts +7 -6
  35. package/dist/index.js +9 -9
  36. package/dist/index.mjs +8 -8
  37. package/dist/src/executors/container-publish/executor.d.mts +2 -3
  38. package/dist/src/executors/container-publish/executor.d.ts +2 -3
  39. package/dist/src/executors/container-publish/executor.js +4 -4
  40. package/dist/src/executors/container-publish/executor.mjs +3 -3
  41. package/dist/src/executors/helm-package/executor.d.mts +3 -3
  42. package/dist/src/executors/helm-package/executor.d.ts +3 -3
  43. package/dist/src/executors/helm-package/executor.js +4 -4
  44. package/dist/src/executors/helm-package/executor.mjs +3 -3
  45. package/dist/src/generators/helm-chart/generator.d.mts +4 -4
  46. package/dist/src/generators/helm-chart/generator.d.ts +4 -4
  47. package/dist/src/generators/helm-chart/generator.js +5 -5
  48. package/dist/src/generators/helm-chart/generator.mjs +4 -4
  49. package/dist/src/generators/helm-dependency/generator.d.mts +4 -4
  50. package/dist/src/generators/helm-dependency/generator.d.ts +4 -4
  51. package/dist/src/generators/helm-dependency/generator.js +5 -5
  52. package/dist/src/generators/helm-dependency/generator.mjs +4 -4
  53. package/dist/src/plugins/docker/index.js +3 -3
  54. package/dist/src/plugins/docker/index.mjs +2 -2
  55. package/package.json +6 -5
  56. package/dist/types-BCBFBwnJ.d.mts +0 -20
  57. package/dist/types-BCBFBwnJ.d.ts +0 -20
  58. package/dist/types-BXfk4hPO.d.mts +0 -1252
  59. package/dist/types-BXfk4hPO.d.ts +0 -1252
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  # Changelog for Storm Ops - K8s Tools
4
4
 
5
+ ## [0.24.53](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.53) (2025-04-04)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([30c679ec1](https://github.com/storm-software/storm-ops/commit/30c679ec1))
11
+ - **monorepo:** Ensure consistency between workspace dependencies
12
+ ([e635640da](https://github.com/storm-software/storm-ops/commit/e635640da))
13
+
14
+ ## [0.24.52](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.52) (2025-04-02)
15
+
16
+ ### Miscellaneous
17
+
18
+ - **k8s-tools:** Update all references to `StormConfig` to point to
19
+ `StormWorkspaceConfig`
20
+ ([3ccd974a7](https://github.com/storm-software/storm-ops/commit/3ccd974a7))
21
+
5
22
  ## [0.24.51](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.51) (2025-03-18)
6
23
 
7
24
  ### 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-0.24.50-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-0.24.52-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 -->
@@ -366,7 +366,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
366
366
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
367
367
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
368
368
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
369
- var StormConfigSchema = z.object({
369
+ var errorConfigSchema = z.object({
370
+ codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
371
+ url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
372
+ }).describe("The workspace's error config used during the error process");
373
+ var stormWorkspaceConfigSchema = z.object({
370
374
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
371
375
  extends: ExtendsSchema.optional(),
372
376
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -384,6 +388,7 @@ var StormConfigSchema = z.object({
384
388
  bot: WorkspaceBotConfigSchema,
385
389
  release: WorkspaceReleaseConfigSchema,
386
390
  account: WorkspaceAccountConfigSchema,
391
+ error: errorConfigSchema,
387
392
  mode: z.enum([
388
393
  "development",
389
394
  "staging",
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
510
515
  license,
511
516
  homepage,
512
517
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
513
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
518
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
519
+ error: {
520
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
521
+ }
514
522
  };
515
523
  }, "getDefaultConfig");
516
524
 
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
820
828
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
821
829
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
822
830
  },
831
+ error: {
832
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
833
+ url: process.env[`${prefix}ERROR_URL`] || void 0
834
+ },
823
835
  account: {
824
836
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
825
837
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
993
1005
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
994
1006
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
995
1007
  }
1008
+ if (config.error) {
1009
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
1010
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
1011
+ }
996
1012
  if (config.release) {
997
1013
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
998
1014
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1123
1139
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
1124
1140
  }
1125
1141
  if (config.registry.container) {
1126
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
1142
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
1127
1143
  }
1128
1144
  }
1129
1145
  if (config.logLevel) {
@@ -1243,7 +1259,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
1243
1259
  // ../config-tools/src/create-storm-config.ts
1244
1260
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1245
1261
  var _static_cache = void 0;
1246
- var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1262
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1247
1263
  let result;
1248
1264
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1249
1265
  let _workspaceRoot = workspaceRoot;
@@ -1258,7 +1274,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
1258
1274
  logLevel: "all"
1259
1275
  });
1260
1276
  }
1261
- result = await StormConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
1277
+ result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
1262
1278
  result.workspaceRoot ??= _workspaceRoot;
1263
1279
  } else {
1264
1280
  result = _static_cache.data;
@@ -1274,7 +1290,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
1274
1290
  data: result
1275
1291
  };
1276
1292
  return result;
1277
- }, "createStormConfig");
1293
+ }, "createStormWorkspaceConfig");
1278
1294
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1279
1295
  const extension_cache_key = {
1280
1296
  extensionName
@@ -1289,19 +1305,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1289
1305
  _extension_cache.set(extension_cache_key, extension);
1290
1306
  return extension;
1291
1307
  }, "createConfigExtension");
1292
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
1293
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
1308
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
1309
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1294
1310
  setConfigEnv(config);
1295
1311
  if (!skipLogs && !config.skipConfigLogging) {
1296
1312
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
1297
1313
  ${formatLogMessage(config)}`, config);
1298
1314
  }
1299
1315
  return config;
1300
- }, "loadStormConfig");
1316
+ }, "loadStormWorkspaceConfig");
1301
1317
 
1302
1318
  // ../config-tools/src/get-config.ts
1303
1319
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
1304
- return loadStormConfig(workspaceRoot, skipLogs);
1320
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
1305
1321
  }, "getConfig");
1306
1322
 
1307
1323
  export {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-UHK34HTM.mjs";
3
+ } from "./chunk-B4EYBY2L.mjs";
4
4
  import {
5
5
  writeDebug
6
- } from "./chunk-IGXHTXQH.mjs";
6
+ } from "./chunk-6F7C2HU3.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-2BPV2XV2.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkR64Y2LSBjs = require('./chunk-R64Y2LSB.js');
4
+ var _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
5
5
 
6
6
 
7
7
 
@@ -12,7 +12,7 @@ var _chunkR64Y2LSBjs = require('./chunk-R64Y2LSB.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk27ZC57FPjs = require('./chunk-27ZC57FP.js');
15
+ var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
16
16
 
17
17
 
18
18
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -21,34 +21,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
21
21
  var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
22
22
  skipReadingConfig: false
23
23
  }) => async (tree, _options) => {
24
- const stopwatch = _chunk27ZC57FPjs.getStopwatch.call(void 0, name);
24
+ const stopwatch = _chunkHLHBBX4Ajs.getStopwatch.call(void 0, name);
25
25
  let options = _options;
26
26
  let config;
27
27
  try {
28
- _chunk27ZC57FPjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
28
+ _chunkHLHBBX4Ajs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
29
29
 
30
30
  `, config);
31
- const workspaceRoot = _chunk27ZC57FPjs.findWorkspaceRoot.call(void 0, );
31
+ const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
32
32
  if (!generatorOptions.skipReadingConfig) {
33
- _chunk27ZC57FPjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
33
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
34
34
  - workspaceRoot: ${workspaceRoot}`, config);
35
- config = await _chunk27ZC57FPjs.getConfig.call(void 0, workspaceRoot);
35
+ config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
36
36
  }
37
37
  if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
38
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
38
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
39
39
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
40
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
40
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
41
41
  }
42
- _chunk27ZC57FPjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
42
+ _chunkHLHBBX4Ajs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
43
43
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
44
- const tokenized = await _chunkR64Y2LSBjs.applyWorkspaceTokens.call(void 0, options, {
44
+ const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
45
45
  workspaceRoot: tree.root,
46
46
  config
47
- }, _chunkR64Y2LSBjs.applyWorkspaceBaseTokens);
47
+ }, _chunkIVE6VJ4Sjs.applyWorkspaceBaseTokens);
48
48
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
49
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
49
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the preProcess hook...", config);
50
50
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
51
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
51
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the preProcess hook", config);
52
52
  }
53
53
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
54
54
  if (result) {
@@ -61,18 +61,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
61
61
  }
62
62
  }
63
63
  if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
64
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
64
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the postProcess hook...", config);
65
65
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
66
- _chunk27ZC57FPjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
66
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the postProcess hook", config);
67
67
  }
68
68
  return () => {
69
- _chunk27ZC57FPjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
69
+ _chunkHLHBBX4Ajs.writeSuccess.call(void 0, `Completed running the ${name} generator!
70
70
  `, config);
71
71
  };
72
72
  } catch (error) {
73
73
  return () => {
74
- _chunk27ZC57FPjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
75
- _chunk27ZC57FPjs.writeError.call(void 0, `An exception was thrown in the generator's process
74
+ _chunkHLHBBX4Ajs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
75
+ _chunkHLHBBX4Ajs.writeError.call(void 0, `An exception was thrown in the generator's process
76
76
  - Details: ${error.message}
77
77
  - Stacktrace: ${error.stack}`, config);
78
78
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyWorkspaceBaseTokens,
3
3
  applyWorkspaceTokens
4
- } from "./chunk-VN4RW7JL.mjs";
4
+ } from "./chunk-SQWTERQC.mjs";
5
5
  import {
6
6
  findWorkspaceRoot,
7
7
  getConfig,
@@ -12,7 +12,7 @@ import {
12
12
  writeInfo,
13
13
  writeSuccess,
14
14
  writeTrace
15
- } from "./chunk-IGXHTXQH.mjs";
15
+ } from "./chunk-6F7C2HU3.mjs";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-2BPV2XV2.mjs";
@@ -366,7 +366,11 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
366
366
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
367
367
  build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
368
368
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
369
- var StormConfigSchema = _zod2.default.object({
369
+ var errorConfigSchema = _zod2.default.object({
370
+ codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
371
+ url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
372
+ }).describe("The workspace's error config used during the error process");
373
+ var stormWorkspaceConfigSchema = _zod2.default.object({
370
374
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
371
375
  extends: ExtendsSchema.optional(),
372
376
  name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -384,6 +388,7 @@ var StormConfigSchema = _zod2.default.object({
384
388
  bot: WorkspaceBotConfigSchema,
385
389
  release: WorkspaceReleaseConfigSchema,
386
390
  account: WorkspaceAccountConfigSchema,
391
+ error: errorConfigSchema,
387
392
  mode: _zod2.default.enum([
388
393
  "development",
389
394
  "staging",
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
510
515
  license,
511
516
  homepage,
512
517
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
513
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
518
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
519
+ error: {
520
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
521
+ }
514
522
  };
515
523
  }, "getDefaultConfig");
516
524
 
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
820
828
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
821
829
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
822
830
  },
831
+ error: {
832
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
833
+ url: process.env[`${prefix}ERROR_URL`] || void 0
834
+ },
823
835
  account: {
824
836
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
825
837
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
993
1005
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
994
1006
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
995
1007
  }
1008
+ if (config.error) {
1009
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
1010
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
1011
+ }
996
1012
  if (config.release) {
997
1013
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
998
1014
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1123
1139
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
1124
1140
  }
1125
1141
  if (config.registry.container) {
1126
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
1142
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
1127
1143
  }
1128
1144
  }
1129
1145
  if (config.logLevel) {
@@ -1243,7 +1259,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1243
1259
  // ../config-tools/src/create-storm-config.ts
1244
1260
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1245
1261
  var _static_cache = void 0;
1246
- var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1262
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
1247
1263
  let result;
1248
1264
  if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1249
1265
  let _workspaceRoot = workspaceRoot;
@@ -1258,7 +1274,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
1258
1274
  logLevel: "all"
1259
1275
  });
1260
1276
  }
1261
- result = await StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
1277
+ result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
1262
1278
  result.workspaceRoot ??= _workspaceRoot;
1263
1279
  } else {
1264
1280
  result = _static_cache.data;
@@ -1274,7 +1290,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
1274
1290
  data: result
1275
1291
  };
1276
1292
  return result;
1277
- }, "createStormConfig");
1293
+ }, "createStormWorkspaceConfig");
1278
1294
  var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, schema) => {
1279
1295
  const extension_cache_key = {
1280
1296
  extensionName
@@ -1289,19 +1305,19 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
1289
1305
  _extension_cache.set(extension_cache_key, extension);
1290
1306
  return extension;
1291
1307
  }, "createConfigExtension");
1292
- var loadStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
1293
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
1308
+ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
1309
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
1294
1310
  setConfigEnv(config);
1295
1311
  if (!skipLogs && !config.skipConfigLogging) {
1296
1312
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
1297
1313
  ${formatLogMessage(config)}`, config);
1298
1314
  }
1299
1315
  return config;
1300
- }, "loadStormConfig");
1316
+ }, "loadStormWorkspaceConfig");
1301
1317
 
1302
1318
  // ../config-tools/src/get-config.ts
1303
1319
  var getConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
1304
- return loadStormConfig(workspaceRoot, skipLogs);
1320
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
1305
1321
  }, "getConfig");
1306
1322
 
1307
1323
 
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk27ZC57FPjs = require('./chunk-27ZC57FP.js');
11
+ var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
12
12
 
13
13
 
14
14
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -35,8 +35,8 @@ var createNodes = [
35
35
  if (_optionalChain([projectJson, 'optionalAccess', _2 => _2.name])) {
36
36
  return {};
37
37
  }
38
- const workspaceRoot = _chunk27ZC57FPjs.findWorkspaceRoot.call(void 0, );
39
- const config = await _chunk27ZC57FPjs.getConfig.call(void 0, workspaceRoot);
38
+ const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
39
+ const config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
40
40
  Object.keys(projectJson).forEach((key) => {
41
41
  if (!project[key]) {
42
42
  project[key] = projectJson[key];
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk27ZC57FPjs = require('./chunk-27ZC57FP.js');
3
+ var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
4
4
 
5
5
 
6
6
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -32,7 +32,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
32
32
  }
33
33
  }
34
34
  if (result.includes("{workspaceRoot}")) {
35
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunk27ZC57FPjs.findWorkspaceRoot.call(void 0, ))));
35
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
36
36
  }
37
37
  return result;
38
38
  }, "applyWorkspaceBaseTokens");
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkX3EJWLQFjs = require('./chunk-X3EJWLQF.js');
3
+ var _chunk7AUWIK6Ejs = require('./chunk-7AUWIK6E.js');
4
4
 
5
5
 
6
- var _chunk27ZC57FPjs = require('./chunk-27ZC57FP.js');
6
+ var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
7
7
 
8
8
 
9
9
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -12,7 +12,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
12
12
  var _devkit = require('@nx/devkit');
13
13
  var _path = require('path');
14
14
  async function helmChartGeneratorFn(tree, options, config) {
15
- _chunk27ZC57FPjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to write Helm Chart", config);
15
+ _chunkHLHBBX4Ajs.writeDebug.call(void 0, "\u{1F4DD} Preparing to write Helm Chart", config);
16
16
  const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
17
17
  if (_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
18
18
  throw new Error(`Project ${options.project} already has a helm target. Please remove it before running this command.`);
@@ -49,7 +49,7 @@ async function helmChartGeneratorFn(tree, options, config) {
49
49
  };
50
50
  }
51
51
  _chunk3GQAWCBQjs.__name.call(void 0, helmChartGeneratorFn, "helmChartGeneratorFn");
52
- var generator_default = _chunkX3EJWLQFjs.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
52
+ var generator_default = _chunk7AUWIK6Ejs.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
53
53
 
54
54
 
55
55
 
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-QSYJ4VHO.mjs";
4
4
  import {
5
5
  applyWorkspaceTokens
6
- } from "./chunk-VN4RW7JL.mjs";
6
+ } from "./chunk-SQWTERQC.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getConfig
10
- } from "./chunk-IGXHTXQH.mjs";
10
+ } from "./chunk-6F7C2HU3.mjs";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-2BPV2XV2.mjs";
@@ -3,11 +3,11 @@
3
3
  var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
4
4
 
5
5
 
6
- var _chunkR64Y2LSBjs = require('./chunk-R64Y2LSB.js');
6
+ var _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk27ZC57FPjs = require('./chunk-27ZC57FP.js');
10
+ var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
11
11
 
12
12
 
13
13
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -59,7 +59,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
59
59
  result = result.replaceAll("{sourceRoot}", sourceRoot);
60
60
  }
61
61
  if (result.includes("{workspaceRoot}")) {
62
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk27ZC57FPjs.findWorkspaceRoot.call(void 0, ))));
62
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
63
63
  }
64
64
  return result;
65
65
  }, "applyWorkspaceExecutorTokens");
@@ -72,8 +72,8 @@ async function* publishExecutor(options, context) {
72
72
  throw new Error("The executor requires a projectName.");
73
73
  }
74
74
  console.info(`\u{1F680} Running Storm Container Registry Publish executor on the ${context.projectName} crate`);
75
- const workspaceRoot = _chunk27ZC57FPjs.findWorkspaceRoot.call(void 0, );
76
- const config = await _chunk27ZC57FPjs.getConfig.call(void 0, workspaceRoot);
75
+ const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
76
+ const config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
77
77
  const projectConfig = _optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects, 'access', _4 => _4[context.projectName]]);
78
78
  if (!projectConfig) {
79
79
  throw new Error(`The executor requires a valid projectsConfiguration - No configuration found for project ${context.projectName}`);
@@ -82,7 +82,7 @@ async function* publishExecutor(options, context) {
82
82
  const sourceRoot = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _6 => _6.sourceRoot]), () => ( workspaceRoot));
83
83
  const projectName = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _7 => _7.name]), () => ( context.projectName));
84
84
  config.workspaceRoot = workspaceRoot;
85
- const tokenized = await _chunkR64Y2LSBjs.applyWorkspaceTokens.call(void 0, options, {
85
+ const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
86
86
  config,
87
87
  workspaceRoot,
88
88
  projectRoot,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyWorkspaceProjectTokens,
3
3
  applyWorkspaceTokens
4
- } from "./chunk-VN4RW7JL.mjs";
4
+ } from "./chunk-SQWTERQC.mjs";
5
5
  import {
6
6
  findWorkspaceRoot,
7
7
  formatLogMessage,
@@ -14,7 +14,7 @@ import {
14
14
  writeSuccess,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-IGXHTXQH.mjs";
17
+ } from "./chunk-6F7C2HU3.mjs";
18
18
  import {
19
19
  createHelmClient
20
20
  } from "./chunk-4LVLYUQO.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findWorkspaceRoot
3
- } from "./chunk-IGXHTXQH.mjs";
3
+ } from "./chunk-6F7C2HU3.mjs";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-2BPV2XV2.mjs";