@storm-software/config-tools 1.161.0 → 1.162.0

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 (51) hide show
  1. package/bin/config.cjs +13 -2
  2. package/bin/config.js +13 -2
  3. package/dist/{chunk-6T3NO4L5.js → chunk-2V4WR4HU.js} +4 -1
  4. package/dist/{chunk-5A64HBAS.js → chunk-BDMLGH55.js} +1 -1
  5. package/dist/{chunk-4Y3WX4X5.cjs → chunk-BRZ2YPOB.cjs} +3 -3
  6. package/dist/{chunk-VYXGZZ6J.js → chunk-C5HVNEWC.js} +5 -1
  7. package/dist/{chunk-YVGP2ECT.js → chunk-CGL2FZ3Z.js} +1 -1
  8. package/dist/{chunk-PI4PV3UG.cjs → chunk-DLO4KL2Z.cjs} +2 -2
  9. package/dist/{chunk-WCWDOY2Y.js → chunk-OB4WNEXN.js} +1 -1
  10. package/dist/{chunk-DDM25SM5.js → chunk-S4N5SQKH.js} +5 -5
  11. package/dist/{chunk-WNKSRKPT.js → chunk-SFDIRWJY.js} +1 -1
  12. package/dist/{chunk-WEZDTJJ3.cjs → chunk-SIU3CSEY.cjs} +9 -9
  13. package/dist/{chunk-2DBIWPIU.cjs → chunk-TTKMRWZQ.cjs} +13 -13
  14. package/dist/{chunk-EGODLCSU.cjs → chunk-WAOF47SA.cjs} +4 -0
  15. package/dist/{chunk-6TID4WHT.cjs → chunk-WV2WN4MO.cjs} +2 -2
  16. package/dist/{chunk-WHVE2PIG.js → chunk-XDS6C7HI.js} +1 -1
  17. package/dist/{chunk-PEK2G7JE.js → chunk-XECGVR7L.js} +4 -0
  18. package/dist/{chunk-7QZVNQ25.cjs → chunk-YSSMM2WQ.cjs} +4 -1
  19. package/dist/{chunk-DRG6BGOI.cjs → chunk-YXYH4ZRB.cjs} +5 -1
  20. package/dist/{chunk-QGPIYCGY.cjs → chunk-ZFRJR2OY.cjs} +9 -9
  21. package/dist/config-file/get-config-file.cjs +5 -5
  22. package/dist/config-file/get-config-file.js +4 -4
  23. package/dist/config-file/index.cjs +5 -5
  24. package/dist/config-file/index.js +4 -4
  25. package/dist/create-storm-config.cjs +8 -8
  26. package/dist/create-storm-config.js +7 -7
  27. package/dist/env/get-env.cjs +2 -2
  28. package/dist/env/get-env.js +1 -1
  29. package/dist/env/index.cjs +3 -3
  30. package/dist/env/index.js +2 -2
  31. package/dist/env/set-env.cjs +2 -2
  32. package/dist/env/set-env.js +1 -1
  33. package/dist/get-config.cjs +9 -9
  34. package/dist/get-config.js +8 -8
  35. package/dist/index.cjs +10 -10
  36. package/dist/index.js +9 -9
  37. package/dist/logger/console.cjs +3 -3
  38. package/dist/logger/console.js +2 -2
  39. package/dist/logger/create-logger.cjs +4 -4
  40. package/dist/logger/create-logger.js +3 -3
  41. package/dist/logger/index.cjs +4 -4
  42. package/dist/logger/index.js +3 -3
  43. package/dist/utilities/get-default-config.cjs +2 -2
  44. package/dist/utilities/get-default-config.d.cts +3 -1
  45. package/dist/utilities/get-default-config.d.ts +3 -1
  46. package/dist/utilities/get-default-config.js +1 -1
  47. package/dist/utilities/index.cjs +4 -4
  48. package/dist/utilities/index.js +3 -3
  49. package/dist/utilities/process-handler.cjs +4 -4
  50. package/dist/utilities/process-handler.js +3 -3
  51. package/package.json +1 -1
package/bin/config.cjs CHANGED
@@ -353,7 +353,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
353
353
  license,
354
354
  homepage,
355
355
  docs: `${homepage || import_config.STORM_DEFAULT_HOMEPAGE}/docs`,
356
- licensing: `${homepage || import_config.STORM_DEFAULT_HOMEPAGE}/license`
356
+ licensing: `${homepage || import_config.STORM_DEFAULT_HOMEPAGE}/license`,
357
+ error: {
358
+ url: `${homepage || import_config.STORM_DEFAULT_HOMEPAGE}/errors`
359
+ }
357
360
  };
358
361
  }, "getDefaultConfig");
359
362
 
@@ -683,6 +686,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
683
686
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
684
687
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
685
688
  },
689
+ error: {
690
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
691
+ url: process.env[`${prefix}ERROR_URL`] || void 0
692
+ },
686
693
  account: {
687
694
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
688
695
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -856,6 +863,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
856
863
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
857
864
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
858
865
  }
866
+ if (config.error) {
867
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
868
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
869
+ }
859
870
  if (config.release) {
860
871
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
861
872
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -986,7 +997,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
986
997
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
987
998
  }
988
999
  if (config.registry.container) {
989
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
1000
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
990
1001
  }
991
1002
  }
992
1003
  if (config.logLevel) {
package/bin/config.js CHANGED
@@ -321,7 +321,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
321
321
  license,
322
322
  homepage,
323
323
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
324
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
324
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
325
+ error: {
326
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
327
+ }
325
328
  };
326
329
  }, "getDefaultConfig");
327
330
 
@@ -651,6 +654,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
651
654
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
652
655
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
653
656
  },
657
+ error: {
658
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
659
+ url: process.env[`${prefix}ERROR_URL`] || void 0
660
+ },
654
661
  account: {
655
662
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
656
663
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -824,6 +831,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
824
831
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
825
832
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
826
833
  }
834
+ if (config.error) {
835
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
836
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
837
+ }
827
838
  if (config.release) {
828
839
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
829
840
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -954,7 +965,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
954
965
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
955
966
  }
956
967
  if (config.registry.container) {
957
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
968
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
958
969
  }
959
970
  }
960
971
  if (config.logLevel) {
@@ -81,7 +81,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
81
81
  license,
82
82
  homepage,
83
83
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
84
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
84
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
85
+ error: {
86
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
87
+ }
85
88
  };
86
89
  }, "getDefaultConfig");
87
90
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-WHVE2PIG.js";
3
+ } from "./chunk-XDS6C7HI.js";
4
4
  import {
5
5
  findWorkspaceRoot
6
6
  } from "./chunk-K6PUXRK3.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkPI4PV3UGcjs = require('./chunk-PI4PV3UG.cjs');
3
+ var _chunkDLO4KL2Zcjs = require('./chunk-DLO4KL2Z.cjs');
4
4
 
5
5
 
6
6
  var _chunk6LIPH2JWcjs = require('./chunk-6LIPH2JW.cjs');
@@ -49,7 +49,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
49
49
  let config = result.config;
50
50
  const configFile = result.configFile;
51
51
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
52
- _chunkPI4PV3UGcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
52
+ _chunkDLO4KL2Zcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
53
53
  logLevel: "all"
54
54
  });
55
55
  }
@@ -58,7 +58,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
58
58
  for (const result2 of results) {
59
59
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
60
60
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
61
- _chunkPI4PV3UGcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
61
+ _chunkDLO4KL2Zcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
62
62
  logLevel: "all"
63
63
  });
64
64
  }
@@ -49,6 +49,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
49
49
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
50
50
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
51
51
  }
52
+ if (config.error) {
53
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
54
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
55
+ }
52
56
  if (config.release) {
53
57
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
54
58
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -179,7 +183,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
179
183
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
180
184
  }
181
185
  if (config.registry.container) {
182
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
186
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
183
187
  }
184
188
  }
185
189
  if (config.logLevel) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig
3
- } from "./chunk-DDM25SM5.js";
3
+ } from "./chunk-S4N5SQKH.js";
4
4
  import {
5
5
  findWorkspaceRoot
6
6
  } from "./chunk-K6PUXRK3.js";
@@ -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 _chunk7QZVNQ25cjs = require('./chunk-7QZVNQ25.cjs');
3
+ var _chunkYSSMM2WQcjs = require('./chunk-YSSMM2WQ.cjs');
4
4
 
5
5
 
6
6
  var _chunkVICC23NVcjs = require('./chunk-VICC23NV.cjs');
@@ -23,7 +23,7 @@ var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
23
23
 
24
24
  // src/logger/console.ts
25
25
  var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = _chunkC5OTFOQBcjs.LogLevel.INFO, config = {}, _chalk = _chunkVICC23NVcjs.getChalk.call(void 0, )) => {
26
- const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunk7QZVNQ25cjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunk7QZVNQ25cjs.DEFAULT_COLOR_CONFIG;
26
+ const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkYSSMM2WQcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkYSSMM2WQcjs.DEFAULT_COLOR_CONFIG;
27
27
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkC5OTFOQBcjs.LogLevelLabel.INFO;
28
28
  if (logLevel > _chunk7HCO3WBNcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkC5OTFOQBcjs.LogLevel.SILENT || _chunk7HCO3WBNcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkC5OTFOQBcjs.LogLevel.SILENT) {
29
29
  return (_) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLogFn,
3
3
  getStopwatch
4
- } from "./chunk-WHVE2PIG.js";
4
+ } from "./chunk-XDS6C7HI.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-K6PUXRK3.js";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  getConfigFile
3
- } from "./chunk-5A64HBAS.js";
3
+ } from "./chunk-BDMLGH55.js";
4
4
  import {
5
5
  formatLogMessage,
6
6
  writeTrace,
7
7
  writeWarning
8
- } from "./chunk-WHVE2PIG.js";
8
+ } from "./chunk-XDS6C7HI.js";
9
9
  import {
10
10
  getDefaultConfig
11
- } from "./chunk-6T3NO4L5.js";
11
+ } from "./chunk-2V4WR4HU.js";
12
12
  import {
13
13
  findWorkspaceRoot
14
14
  } from "./chunk-K6PUXRK3.js";
15
15
  import {
16
16
  setConfigEnv
17
- } from "./chunk-VYXGZZ6J.js";
17
+ } from "./chunk-C5HVNEWC.js";
18
18
  import {
19
19
  getConfigEnv,
20
20
  getExtensionEnv
21
- } from "./chunk-PEK2G7JE.js";
21
+ } from "./chunk-XECGVR7L.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-SHUYVCID.js";
@@ -3,7 +3,7 @@ import {
3
3
  writeFatal,
4
4
  writeSuccess,
5
5
  writeTrace
6
- } from "./chunk-WHVE2PIG.js";
6
+ } from "./chunk-XDS6C7HI.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-SHUYVCID.js";
@@ -3,41 +3,41 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkPI4PV3UGcjs = require('./chunk-PI4PV3UG.cjs');
6
+ var _chunkDLO4KL2Zcjs = require('./chunk-DLO4KL2Z.cjs');
7
7
 
8
8
 
9
9
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
10
10
 
11
11
  // src/utilities/process-handler.ts
12
12
  var exitWithError = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
13
- _chunkPI4PV3UGcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
13
+ _chunkDLO4KL2Zcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
14
14
  process.exit(1);
15
15
  }, "exitWithError");
16
16
  var exitWithSuccess = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
17
- _chunkPI4PV3UGcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
17
+ _chunkDLO4KL2Zcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
18
18
  process.exit(0);
19
19
  }, "exitWithSuccess");
20
20
  var handleProcess = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
21
- _chunkPI4PV3UGcjs.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
21
+ _chunkDLO4KL2Zcjs.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
22
22
  process.on("unhandledRejection", (error) => {
23
- _chunkPI4PV3UGcjs.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
23
+ _chunkDLO4KL2Zcjs.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
24
24
  exitWithError(config);
25
25
  });
26
26
  process.on("uncaughtException", (error) => {
27
- _chunkPI4PV3UGcjs.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
27
+ _chunkDLO4KL2Zcjs.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
28
28
  Stacktrace: ${error.stack}`, config);
29
29
  exitWithError(config);
30
30
  });
31
31
  process.on("SIGTERM", (signal) => {
32
- _chunkPI4PV3UGcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
32
+ _chunkDLO4KL2Zcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
33
33
  exitWithError(config);
34
34
  });
35
35
  process.on("SIGINT", (signal) => {
36
- _chunkPI4PV3UGcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
36
+ _chunkDLO4KL2Zcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
37
37
  exitWithError(config);
38
38
  });
39
39
  process.on("SIGHUP", (signal) => {
40
- _chunkPI4PV3UGcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
40
+ _chunkDLO4KL2Zcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
41
41
  exitWithError(config);
42
42
  });
43
43
  }, "handleProcess");
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk4Y3WX4X5cjs = require('./chunk-4Y3WX4X5.cjs');
3
+ var _chunkBRZ2YPOBcjs = require('./chunk-BRZ2YPOB.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkPI4PV3UGcjs = require('./chunk-PI4PV3UG.cjs');
8
+ var _chunkDLO4KL2Zcjs = require('./chunk-DLO4KL2Z.cjs');
9
9
 
10
10
 
11
- var _chunk7QZVNQ25cjs = require('./chunk-7QZVNQ25.cjs');
11
+ var _chunkYSSMM2WQcjs = require('./chunk-YSSMM2WQ.cjs');
12
12
 
13
13
 
14
14
  var _chunk6LIPH2JWcjs = require('./chunk-6LIPH2JW.cjs');
15
15
 
16
16
 
17
- var _chunkDRG6BGOIcjs = require('./chunk-DRG6BGOI.cjs');
17
+ var _chunkYXYH4ZRBcjs = require('./chunk-YXYH4ZRB.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkEGODLCSUcjs = require('./chunk-EGODLCSU.cjs');
21
+ var _chunkWAOF47SAcjs = require('./chunk-WAOF47SA.cjs');
22
22
 
23
23
 
24
24
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
@@ -35,11 +35,11 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(v
35
35
  if (!_workspaceRoot) {
36
36
  _workspaceRoot = _chunk6LIPH2JWcjs.findWorkspaceRoot.call(void 0, );
37
37
  }
38
- const configEnv = _chunkEGODLCSUcjs.getConfigEnv.call(void 0, );
39
- const defaultConfig = await _chunk7QZVNQ25cjs.getDefaultConfig.call(void 0, _workspaceRoot);
40
- const configFile = await _chunk4Y3WX4X5cjs.getConfigFile.call(void 0, _workspaceRoot);
38
+ const configEnv = _chunkWAOF47SAcjs.getConfigEnv.call(void 0, );
39
+ const defaultConfig = await _chunkYSSMM2WQcjs.getDefaultConfig.call(void 0, _workspaceRoot);
40
+ const configFile = await _chunkBRZ2YPOBcjs.getConfigFile.call(void 0, _workspaceRoot);
41
41
  if (!configFile && !skipLogs) {
42
- _chunkPI4PV3UGcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
42
+ _chunkDLO4KL2Zcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
43
43
  logLevel: "all"
44
44
  });
45
45
  }
@@ -67,7 +67,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0
67
67
  if (_extension_cache.has(extension_cache_key)) {
68
68
  return _extension_cache.get(extension_cache_key);
69
69
  }
70
- let extension = _chunkEGODLCSUcjs.getExtensionEnv.call(void 0, extensionName);
70
+ let extension = _chunkWAOF47SAcjs.getExtensionEnv.call(void 0, extensionName);
71
71
  if (schema) {
72
72
  extension = schema.parse(extension);
73
73
  }
@@ -76,10 +76,10 @@ var createConfigExtension = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0
76
76
  }, "createConfigExtension");
77
77
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
78
78
  const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
79
- _chunkDRG6BGOIcjs.setConfigEnv.call(void 0, config);
79
+ _chunkYXYH4ZRBcjs.setConfigEnv.call(void 0, config);
80
80
  if (!skipLogs && !config.skipConfigLogging) {
81
- _chunkPI4PV3UGcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
82
- ${_chunkPI4PV3UGcjs.formatLogMessage.call(void 0, config)}`, config);
81
+ _chunkDLO4KL2Zcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
82
+ ${_chunkDLO4KL2Zcjs.formatLogMessage.call(void 0, config)}`, config);
83
83
  }
84
84
  return config;
85
85
  }, "loadStormWorkspaceConfig");
@@ -36,6 +36,10 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
36
36
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
37
37
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
38
38
  },
39
+ error: {
40
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
41
+ url: process.env[`${prefix}ERROR_URL`] || void 0
42
+ },
39
43
  account: {
40
44
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
41
45
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2DBIWPIUcjs = require('./chunk-2DBIWPIU.cjs');
3
+ var _chunkTTKMRWZQcjs = require('./chunk-TTKMRWZQ.cjs');
4
4
 
5
5
 
6
6
  var _chunk6LIPH2JWcjs = require('./chunk-6LIPH2JW.cjs');
@@ -10,7 +10,7 @@ var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
10
10
 
11
11
  // src/get-config.ts
12
12
  var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
13
- return _chunk2DBIWPIUcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
13
+ return _chunkTTKMRWZQcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
14
14
  }, "getConfig");
15
15
  var getWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (skipLogs = false, options = {}) => {
16
16
  let workspaceRoot = options.workspaceRoot;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_COLOR_CONFIG
3
- } from "./chunk-6T3NO4L5.js";
3
+ } from "./chunk-2V4WR4HU.js";
4
4
  import {
5
5
  getChalk
6
6
  } from "./chunk-7DEX73IB.js";
@@ -36,6 +36,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
36
36
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
37
37
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
38
38
  },
39
+ error: {
40
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
41
+ url: process.env[`${prefix}ERROR_URL`] || void 0
42
+ },
39
43
  account: {
40
44
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
41
45
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -81,7 +81,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, asy
81
81
  license,
82
82
  homepage,
83
83
  docs: `${homepage || _config.STORM_DEFAULT_HOMEPAGE}/docs`,
84
- licensing: `${homepage || _config.STORM_DEFAULT_HOMEPAGE}/license`
84
+ licensing: `${homepage || _config.STORM_DEFAULT_HOMEPAGE}/license`,
85
+ error: {
86
+ url: `${homepage || _config.STORM_DEFAULT_HOMEPAGE}/errors`
87
+ }
85
88
  };
86
89
  }, "getDefaultConfig");
87
90
 
@@ -49,6 +49,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
49
49
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
50
50
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
51
51
  }
52
+ if (config.error) {
53
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
54
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
55
+ }
52
56
  if (config.release) {
53
57
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
54
58
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -179,7 +183,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
179
183
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
180
184
  }
181
185
  if (config.registry.container) {
182
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
186
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
183
187
  }
184
188
  }
185
189
  if (config.logLevel) {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunkPI4PV3UGcjs = require('./chunk-PI4PV3UG.cjs');
4
+ var _chunkDLO4KL2Zcjs = require('./chunk-DLO4KL2Z.cjs');
5
5
 
6
6
 
7
7
  var _chunk6LIPH2JWcjs = require('./chunk-6LIPH2JW.cjs');
@@ -19,13 +19,13 @@ async function createLogger(config) {
19
19
  if (!workspaceRoot) {
20
20
  throw new Error("Cannot find workspace root");
21
21
  }
22
- const writeFatal = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.FATAL, config, _chalk2.default);
23
- const writeError = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.ERROR, config, _chalk2.default);
24
- const writeWarning = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.WARN, config, _chalk2.default);
25
- const writeInfo = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.INFO, config, _chalk2.default);
26
- const writeSuccess = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.SUCCESS, config, _chalk2.default);
27
- const writeDebug = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
28
- const writeTrace = _chunkPI4PV3UGcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
22
+ const writeFatal = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.FATAL, config, _chalk2.default);
23
+ const writeError = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.ERROR, config, _chalk2.default);
24
+ const writeWarning = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.WARN, config, _chalk2.default);
25
+ const writeInfo = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.INFO, config, _chalk2.default);
26
+ const writeSuccess = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.SUCCESS, config, _chalk2.default);
27
+ const writeDebug = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
28
+ const writeTrace = _chunkDLO4KL2Zcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
29
29
  return {
30
30
  fatal: writeFatal,
31
31
  error: writeError,
@@ -34,7 +34,7 @@ async function createLogger(config) {
34
34
  success: writeSuccess,
35
35
  debug: writeDebug,
36
36
  trace: writeTrace,
37
- getStopwatch: _chunkPI4PV3UGcjs.getStopwatch
37
+ getStopwatch: _chunkDLO4KL2Zcjs.getStopwatch
38
38
  };
39
39
  }
40
40
  _chunkUSNT2KNTcjs.__name.call(void 0, createLogger, "createLogger");
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk4Y3WX4X5cjs = require('../chunk-4Y3WX4X5.cjs');
4
+ var _chunkBRZ2YPOBcjs = require('../chunk-BRZ2YPOB.cjs');
5
5
  require('../chunk-UNXQ2AR4.cjs');
6
- require('../chunk-WEZDTJJ3.cjs');
6
+ require('../chunk-SIU3CSEY.cjs');
7
7
  require('../chunk-CHA6766N.cjs');
8
8
  require('../chunk-WZSBZDAU.cjs');
9
9
  require('../chunk-VULQ4N4Z.cjs');
10
- require('../chunk-PI4PV3UG.cjs');
11
- require('../chunk-7QZVNQ25.cjs');
10
+ require('../chunk-DLO4KL2Z.cjs');
11
+ require('../chunk-YSSMM2WQ.cjs');
12
12
  require('../chunk-6LIPH2JW.cjs');
13
13
  require('../chunk-G2XISPLW.cjs');
14
14
  require('../chunk-VICC23NV.cjs');
@@ -22,4 +22,4 @@ require('../chunk-USNT2KNT.cjs');
22
22
 
23
23
 
24
24
 
25
- exports.getConfigFile = _chunk4Y3WX4X5cjs.getConfigFile; exports.getConfigFileByName = _chunk4Y3WX4X5cjs.getConfigFileByName;
25
+ exports.getConfigFile = _chunkBRZ2YPOBcjs.getConfigFile; exports.getConfigFileByName = _chunkBRZ2YPOBcjs.getConfigFileByName;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  getConfigFile,
3
3
  getConfigFileByName
4
- } from "../chunk-5A64HBAS.js";
4
+ } from "../chunk-BDMLGH55.js";
5
5
  import "../chunk-I6MMCLIA.js";
6
- import "../chunk-WNKSRKPT.js";
6
+ import "../chunk-SFDIRWJY.js";
7
7
  import "../chunk-2HSUVM5I.js";
8
8
  import "../chunk-CERDEPKZ.js";
9
9
  import "../chunk-75PQRIWX.js";
10
- import "../chunk-WHVE2PIG.js";
11
- import "../chunk-6T3NO4L5.js";
10
+ import "../chunk-XDS6C7HI.js";
11
+ import "../chunk-2V4WR4HU.js";
12
12
  import "../chunk-K6PUXRK3.js";
13
13
  import "../chunk-NQFXB5CV.js";
14
14
  import "../chunk-7DEX73IB.js";
@@ -2,14 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4Y3WX4X5cjs = require('../chunk-4Y3WX4X5.cjs');
5
+ var _chunkBRZ2YPOBcjs = require('../chunk-BRZ2YPOB.cjs');
6
6
  require('../chunk-UNXQ2AR4.cjs');
7
- require('../chunk-WEZDTJJ3.cjs');
7
+ require('../chunk-SIU3CSEY.cjs');
8
8
  require('../chunk-CHA6766N.cjs');
9
9
  require('../chunk-WZSBZDAU.cjs');
10
10
  require('../chunk-VULQ4N4Z.cjs');
11
- require('../chunk-PI4PV3UG.cjs');
12
- require('../chunk-7QZVNQ25.cjs');
11
+ require('../chunk-DLO4KL2Z.cjs');
12
+ require('../chunk-YSSMM2WQ.cjs');
13
13
  require('../chunk-6LIPH2JW.cjs');
14
14
  require('../chunk-G2XISPLW.cjs');
15
15
  require('../chunk-VICC23NV.cjs');
@@ -23,4 +23,4 @@ require('../chunk-USNT2KNT.cjs');
23
23
 
24
24
 
25
25
 
26
- exports.getConfigFile = _chunk4Y3WX4X5cjs.getConfigFile; exports.getConfigFileByName = _chunk4Y3WX4X5cjs.getConfigFileByName;
26
+ exports.getConfigFile = _chunkBRZ2YPOBcjs.getConfigFile; exports.getConfigFileByName = _chunkBRZ2YPOBcjs.getConfigFileByName;
@@ -2,14 +2,14 @@ import "../chunk-SABD7NYM.js";
2
2
  import {
3
3
  getConfigFile,
4
4
  getConfigFileByName
5
- } from "../chunk-5A64HBAS.js";
5
+ } from "../chunk-BDMLGH55.js";
6
6
  import "../chunk-I6MMCLIA.js";
7
- import "../chunk-WNKSRKPT.js";
7
+ import "../chunk-SFDIRWJY.js";
8
8
  import "../chunk-2HSUVM5I.js";
9
9
  import "../chunk-CERDEPKZ.js";
10
10
  import "../chunk-75PQRIWX.js";
11
- import "../chunk-WHVE2PIG.js";
12
- import "../chunk-6T3NO4L5.js";
11
+ import "../chunk-XDS6C7HI.js";
12
+ import "../chunk-2V4WR4HU.js";
13
13
  import "../chunk-K6PUXRK3.js";
14
14
  import "../chunk-NQFXB5CV.js";
15
15
  import "../chunk-7DEX73IB.js";
@@ -2,23 +2,23 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2DBIWPIUcjs = require('./chunk-2DBIWPIU.cjs');
6
- require('./chunk-4Y3WX4X5.cjs');
5
+ var _chunkTTKMRWZQcjs = require('./chunk-TTKMRWZQ.cjs');
6
+ require('./chunk-BRZ2YPOB.cjs');
7
7
  require('./chunk-UNXQ2AR4.cjs');
8
- require('./chunk-WEZDTJJ3.cjs');
8
+ require('./chunk-SIU3CSEY.cjs');
9
9
  require('./chunk-CHA6766N.cjs');
10
10
  require('./chunk-WZSBZDAU.cjs');
11
11
  require('./chunk-VULQ4N4Z.cjs');
12
- require('./chunk-PI4PV3UG.cjs');
13
- require('./chunk-7QZVNQ25.cjs');
12
+ require('./chunk-DLO4KL2Z.cjs');
13
+ require('./chunk-YSSMM2WQ.cjs');
14
14
  require('./chunk-6LIPH2JW.cjs');
15
15
  require('./chunk-G2XISPLW.cjs');
16
16
  require('./chunk-VICC23NV.cjs');
17
17
  require('./chunk-KBPYCUVG.cjs');
18
18
  require('./chunk-OSY5X2AI.cjs');
19
19
  require('./chunk-IGUYFX5B.cjs');
20
- require('./chunk-DRG6BGOI.cjs');
21
- require('./chunk-EGODLCSU.cjs');
20
+ require('./chunk-YXYH4ZRB.cjs');
21
+ require('./chunk-WAOF47SA.cjs');
22
22
  require('./chunk-E5AUC34G.cjs');
23
23
  require('./chunk-7HCO3WBN.cjs');
24
24
  require('./chunk-C5OTFOQB.cjs');
@@ -27,4 +27,4 @@ require('./chunk-USNT2KNT.cjs');
27
27
 
28
28
 
29
29
 
30
- exports.createConfigExtension = _chunk2DBIWPIUcjs.createConfigExtension; exports.createStormWorkspaceConfig = _chunk2DBIWPIUcjs.createStormWorkspaceConfig; exports.loadStormWorkspaceConfig = _chunk2DBIWPIUcjs.loadStormWorkspaceConfig;
30
+ exports.createConfigExtension = _chunkTTKMRWZQcjs.createConfigExtension; exports.createStormWorkspaceConfig = _chunkTTKMRWZQcjs.createStormWorkspaceConfig; exports.loadStormWorkspaceConfig = _chunkTTKMRWZQcjs.loadStormWorkspaceConfig;