@storm-software/tsup 0.2.178 → 0.2.179

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/dist/index.cjs CHANGED
@@ -33,16 +33,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
42
42
 
43
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-BYH4XDRH.js
43
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-BYH4XDRH.js
44
44
  var require_chunk_BYH4XDRH = __commonJS({
45
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports2) {
45
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports2) {
46
46
  "use strict";
47
47
  init_cjs_shims();
48
48
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -51,9 +51,9 @@ var require_chunk_BYH4XDRH = __commonJS({
51
51
  }
52
52
  });
53
53
 
54
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-TWFEYLU4.js
54
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-TWFEYLU4.js
55
55
  var require_chunk_TWFEYLU4 = __commonJS({
56
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports2) {
56
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports2) {
57
57
  "use strict";
58
58
  init_cjs_shims();
59
59
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -430,9 +430,9 @@ var require_chunk_TWFEYLU4 = __commonJS({
430
430
  }
431
431
  });
432
432
 
433
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-VGC3FXLU.js
433
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-VGC3FXLU.js
434
434
  var require_chunk_VGC3FXLU = __commonJS({
435
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports2) {
435
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports2) {
436
436
  "use strict";
437
437
  init_cjs_shims();
438
438
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -659,9 +659,9 @@ var require_chunk_VGC3FXLU = __commonJS({
659
659
  }
660
660
  });
661
661
 
662
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-JZ25TPTY.js
662
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-JZ25TPTY.js
663
663
  var require_chunk_JZ25TPTY = __commonJS({
664
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports2) {
664
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports2) {
665
665
  "use strict";
666
666
  init_cjs_shims();
667
667
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -710,9 +710,9 @@ var require_chunk_JZ25TPTY = __commonJS({
710
710
  }
711
711
  });
712
712
 
713
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/commonjs-plugin.js
713
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/commonjs-plugin.js
714
714
  var require_commonjs_plugin = __commonJS({
715
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/commonjs-plugin.js"(exports2, module2) {
715
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/commonjs-plugin.js"(exports2, module2) {
716
716
  "use strict";
717
717
  init_cjs_shims();
718
718
  var __defProp2 = Object.defineProperty;
@@ -1041,9 +1041,9 @@ var require_commonjs_plugin = __commonJS({
1041
1041
  }
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/index.js
1044
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/index.js
1045
1045
  var require_dist = __commonJS({
1046
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__17f35255c9b2c5d65e514e3b165d24e6/node_modules/tsup/dist/index.js"(exports2) {
1046
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__b287391bfb89dd26f0e4843187079e1f/node_modules/tsup/dist/index.js"(exports2) {
1047
1047
  "use strict";
1048
1048
  init_cjs_shims();
1049
1049
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -2705,7 +2705,7 @@ init_cjs_shims();
2705
2705
  // ../config-tools/dist/logger/console.js
2706
2706
  init_cjs_shims();
2707
2707
 
2708
- // ../config-tools/dist/chunk-U4N3RX22.js
2708
+ // ../config-tools/dist/chunk-O76J367J.js
2709
2709
  init_cjs_shims();
2710
2710
 
2711
2711
  // ../config-tools/dist/chunk-5DQF4GNF.js
@@ -2749,54 +2749,14 @@ var DEFAULT_COLOR_CONFIG = {
2749
2749
  }
2750
2750
  };
2751
2751
 
2752
- // ../config-tools/dist/chunk-HVVJHTFS.js
2752
+ // ../config-tools/dist/chunk-JZAYHDV3.js
2753
2753
  init_cjs_shims();
2754
- var import_chalk = __toESM(require("chalk"), 1);
2755
- var chalkDefault = {
2756
- hex: (_3) => (message) => message,
2757
- bgHex: (_3) => ({
2758
- whiteBright: (message) => message,
2759
- white: (message) => message
2760
- }),
2761
- white: (message) => message,
2762
- whiteBright: (message) => message,
2763
- gray: (message) => message,
2764
- bold: {
2765
- hex: (_3) => (message) => message,
2766
- bgHex: (_3) => ({
2767
- whiteBright: (message) => message,
2768
- white: (message) => message
2769
- }),
2770
- whiteBright: (message) => message,
2771
- white: (message) => message
2772
- },
2773
- dim: {
2774
- hex: (_3) => (message) => message,
2775
- gray: (message) => message
2776
- }
2777
- };
2778
- var getChalk = () => {
2779
- let _chalk = import_chalk.default;
2780
- if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
2781
- _chalk = chalkDefault;
2782
- }
2783
- return _chalk;
2754
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
2755
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
2784
2756
  };
2785
2757
 
2786
- // ../config-tools/dist/chunk-ZFNAUMQS.js
2787
- init_cjs_shims();
2788
-
2789
- // ../config-tools/dist/chunk-G2MK47WL.js
2758
+ // ../config-tools/dist/chunk-SXPH7ILL.js
2790
2759
  init_cjs_shims();
2791
- function isUnicodeSupported() {
2792
- if (process.platform !== "win32") {
2793
- return process.env.TERM !== "linux";
2794
- }
2795
- return Boolean(process.env.WT_SESSION) || // Windows Terminal
2796
- Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
2797
- process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
2798
- process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2799
- }
2800
2760
 
2801
2761
  // ../config-tools/dist/chunk-RALMUN5C.js
2802
2762
  init_cjs_shims();
@@ -2825,28 +2785,7 @@ var LogLevelLabel = {
2825
2785
  ALL: "all"
2826
2786
  };
2827
2787
 
2828
- // ../config-tools/dist/chunk-ZFNAUMQS.js
2829
- var useIcon = (c3, fallback) => isUnicodeSupported() ? c3 : fallback;
2830
- var CONSOLE_ICONS = {
2831
- [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
2832
- [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
2833
- [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
2834
- [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
2835
- [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
2836
- [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
2837
- [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
2838
- [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
2839
- [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
2840
- };
2841
-
2842
- // ../config-tools/dist/chunk-JZAYHDV3.js
2843
- init_cjs_shims();
2844
- var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
2845
- return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
2846
- };
2847
-
2848
2788
  // ../config-tools/dist/chunk-SXPH7ILL.js
2849
- init_cjs_shims();
2850
2789
  var getLogLevel = (label) => {
2851
2790
  switch (label) {
2852
2791
  case "all":
@@ -2902,7 +2841,70 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2902
2841
  return LogLevelLabel.INFO;
2903
2842
  };
2904
2843
 
2905
- // ../config-tools/dist/chunk-U4N3RX22.js
2844
+ // ../config-tools/dist/chunk-HVVJHTFS.js
2845
+ init_cjs_shims();
2846
+ var import_chalk = __toESM(require("chalk"), 1);
2847
+ var chalkDefault = {
2848
+ hex: (_3) => (message) => message,
2849
+ bgHex: (_3) => ({
2850
+ whiteBright: (message) => message,
2851
+ white: (message) => message
2852
+ }),
2853
+ white: (message) => message,
2854
+ whiteBright: (message) => message,
2855
+ gray: (message) => message,
2856
+ bold: {
2857
+ hex: (_3) => (message) => message,
2858
+ bgHex: (_3) => ({
2859
+ whiteBright: (message) => message,
2860
+ white: (message) => message
2861
+ }),
2862
+ whiteBright: (message) => message,
2863
+ white: (message) => message
2864
+ },
2865
+ dim: {
2866
+ hex: (_3) => (message) => message,
2867
+ gray: (message) => message
2868
+ }
2869
+ };
2870
+ var getChalk = () => {
2871
+ let _chalk = import_chalk.default;
2872
+ if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
2873
+ _chalk = chalkDefault;
2874
+ }
2875
+ return _chalk;
2876
+ };
2877
+
2878
+ // ../config-tools/dist/chunk-ZFNAUMQS.js
2879
+ init_cjs_shims();
2880
+
2881
+ // ../config-tools/dist/chunk-G2MK47WL.js
2882
+ init_cjs_shims();
2883
+ function isUnicodeSupported() {
2884
+ if (process.platform !== "win32") {
2885
+ return process.env.TERM !== "linux";
2886
+ }
2887
+ return Boolean(process.env.WT_SESSION) || // Windows Terminal
2888
+ Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
2889
+ process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
2890
+ process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2891
+ }
2892
+
2893
+ // ../config-tools/dist/chunk-ZFNAUMQS.js
2894
+ var useIcon = (c3, fallback) => isUnicodeSupported() ? c3 : fallback;
2895
+ var CONSOLE_ICONS = {
2896
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
2897
+ [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
2898
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
2899
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
2900
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
2901
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
2902
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
2903
+ [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
2904
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
2905
+ };
2906
+
2907
+ // ../config-tools/dist/chunk-O76J367J.js
2906
2908
  var daysInYear = 365.2425;
2907
2909
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
2908
2910
  var minTime = -maxTime;
@@ -3720,7 +3722,9 @@ var formatLogMessage = (message, options2 = {}, depth2 = 0) => {
3720
3722
  const skip = options2.skip ?? [];
3721
3723
  const sort = options2.sort ?? true;
3722
3724
  return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
3723
- ${message.map(
3725
+ ${message.sort(
3726
+ sort ? (a3, b2) => !a3 && !b2 ? 0 : !a3 ? 1 : !b2 ? -1 : String(a3).localeCompare(String(b2)) : void 0
3727
+ ).map(
3724
3728
  (item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
3725
3729
  item,
3726
3730
  { prefix: `${prefix}--`, skip, sort },
@@ -3728,12 +3732,12 @@ ${message.map(
3728
3732
  )}`
3729
3733
  ).join("\n")}` : typeof message === "object" ? `
3730
3734
  ${Object.keys(message).filter(
3731
- (key) => !skip.map((k2) => k2.toLowerCase()).includes(typeof key === "string" ? key.toLowerCase() : key)
3732
- ).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
3735
+ (key) => typeof key !== "string" || !skip.map((k2) => k2.toLowerCase().trim()).includes(key.toLowerCase().trim())
3736
+ ).sort(
3737
+ sort ? (a3, b2) => !a3 && !b2 ? 0 : !a3 ? 1 : !b2 ? -1 : String(a3).localeCompare(String(b2)) : void 0
3738
+ ).map(
3733
3739
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
3734
- (key2) => !skip.map((k2) => k2.toLowerCase()).includes(
3735
- typeof key2 === "string" ? key2.toLowerCase() : key2
3736
- )
3740
+ (key2) => typeof key2 !== "string" || !skip.map((k2) => k2.toLowerCase().trim()).includes(key2.toLowerCase().trim())
3737
3741
  ).length === 0 ? "{}" : formatLogMessage(
3738
3742
  message[key],
3739
3743
  { prefix: `${prefix}--`, skip, sort },
@@ -3824,7 +3828,7 @@ init_cjs_shims();
3824
3828
  // ../build-tools/dist/chunk-KVP3YMX6.mjs
3825
3829
  init_cjs_shims();
3826
3830
 
3827
- // ../build-tools/dist/chunk-4U27MI7T.mjs
3831
+ // ../build-tools/dist/chunk-ZU4PGT6D.mjs
3828
3832
  init_cjs_shims();
3829
3833
 
3830
3834
  // ../build-tools/dist/chunk-B4H42WDA.mjs
@@ -3837,7 +3841,7 @@ init_cjs_shims();
3837
3841
  var import_node_fs = require("fs");
3838
3842
  var import_node_path = require("path");
3839
3843
 
3840
- // ../build-tools/dist/chunk-FFREG5NA.mjs
3844
+ // ../build-tools/dist/chunk-2D2G26KB.mjs
3841
3845
  init_cjs_shims();
3842
3846
  var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
3843
3847
  var import_chalk2 = __toESM(require("chalk"), 1);
@@ -3875,7 +3879,7 @@ var CONSOLE_ICONS2 = {
3875
3879
  [LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
3876
3880
  };
3877
3881
 
3878
- // ../build-tools/dist/chunk-4U27MI7T.mjs
3882
+ // ../build-tools/dist/chunk-ZU4PGT6D.mjs
3879
3883
  var import_c12 = require("c12");
3880
3884
  var import_defu = __toESM(require("defu"), 1);
3881
3885
  var z = __toESM(require("zod/v4/mini"), 1);
@@ -4469,13 +4473,13 @@ schemaRegistry.add(extensionsSchema, {
4469
4473
  init_cjs_shims();
4470
4474
  var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
4471
4475
 
4472
- // ../build-tools/dist/chunk-QBCNSYKY.mjs
4476
+ // ../build-tools/dist/chunk-O5JLRHXY.mjs
4473
4477
  init_cjs_shims();
4474
4478
  var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
4475
4479
  var import_glob = require("glob");
4476
4480
  var import_promises3 = require("fs/promises");
4477
4481
 
4478
- // ../build-tools/dist/chunk-VP2S4MW2.mjs
4482
+ // ../build-tools/dist/chunk-MD22HLYQ.mjs
4479
4483
  init_cjs_shims();
4480
4484
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
4481
4485
  var import_glob2 = require("glob");
@@ -4483,7 +4487,7 @@ var import_node_fs5 = require("fs");
4483
4487
  var import_promises4 = require("fs/promises");
4484
4488
  var import_project_graph = require("nx/src/project-graph/project-graph");
4485
4489
 
4486
- // ../build-tools/dist/chunk-XE4VFTNB.mjs
4490
+ // ../build-tools/dist/chunk-J4SM55F4.mjs
4487
4491
  init_cjs_shims();
4488
4492
  var import_glob3 = require("glob");
4489
4493
 
@@ -4517,14 +4521,14 @@ init_cjs_shims();
4517
4521
  // ../build-tools/dist/chunk-UN3B7LBV.mjs
4518
4522
  init_cjs_shims();
4519
4523
 
4520
- // ../build-tools/dist/chunk-KITEVNAN.mjs
4524
+ // ../build-tools/dist/chunk-V6F5CGPN.mjs
4521
4525
  init_cjs_shims();
4522
4526
 
4523
4527
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
4524
4528
  init_cjs_shims();
4525
4529
  var import_core = require("@swc/core");
4526
4530
 
4527
- // ../build-tools/dist/chunk-XFYY45GO.mjs
4531
+ // ../build-tools/dist/chunk-MT2TKIIG.mjs
4528
4532
  init_cjs_shims();
4529
4533
  var import_node_fs6 = __toESM(require("fs"), 1);
4530
4534
  var import_node_module = require("module");
@@ -4539,40 +4543,14 @@ var import_path = require("path");
4539
4543
  // ../config-tools/dist/get-config.js
4540
4544
  init_cjs_shims();
4541
4545
 
4542
- // ../config-tools/dist/chunk-EBVZQPBC.js
4543
- init_cjs_shims();
4544
-
4545
- // ../config-tools/dist/chunk-K2ESWZ47.js
4546
- init_cjs_shims();
4547
-
4548
- // ../config-tools/dist/chunk-RT5536G5.js
4546
+ // ../config-tools/dist/chunk-KKF5NXBI.js
4549
4547
  init_cjs_shims();
4550
4548
 
4551
- // ../config-tools/dist/chunk-LF3SAK2O.js
4549
+ // ../config-tools/dist/chunk-DW5363CG.js
4552
4550
  init_cjs_shims();
4553
4551
 
4554
- // ../config-tools/dist/chunk-RUKM6FCF.js
4552
+ // ../config-tools/dist/chunk-SDSQ2HHF.js
4555
4553
  init_cjs_shims();
4556
- var import_node_fs7 = require("fs");
4557
- var import_node_path4 = require("path");
4558
- var MAX_PATH_SEARCH_DEPTH = 30;
4559
- var depth = 0;
4560
- function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
4561
- const _startPath = startPath ?? process.cwd();
4562
- if (endDirectoryNames.some(
4563
- (endDirName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endDirName))
4564
- )) {
4565
- return _startPath;
4566
- }
4567
- if (endFileNames.some((endFileName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endFileName)))) {
4568
- return _startPath;
4569
- }
4570
- if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
4571
- const parent = (0, import_node_path4.join)(_startPath, "..");
4572
- return findFolderUp(parent, endFileNames, endDirectoryNames);
4573
- }
4574
- return void 0;
4575
- }
4576
4554
 
4577
4555
  // ../config-tools/dist/chunk-V3GMJ4TX.js
4578
4556
  init_cjs_shims();
@@ -4700,477 +4678,33 @@ var isAbsolute = function(p3) {
4700
4678
  return _IS_ABSOLUTE_RE.test(p3);
4701
4679
  };
4702
4680
 
4703
- // ../config-tools/dist/chunk-LF3SAK2O.js
4704
- var rootFiles = [
4705
- "storm-workspace.json",
4706
- "storm-workspace.yaml",
4707
- "storm-workspace.yml",
4708
- "storm-workspace.js",
4709
- "storm-workspace.ts",
4710
- ".storm-workspace.json",
4711
- ".storm-workspace.yaml",
4712
- ".storm-workspace.yml",
4713
- ".storm-workspace.js",
4714
- ".storm-workspace.ts",
4715
- "lerna.json",
4716
- "nx.json",
4717
- "turbo.json",
4718
- "npm-workspace.json",
4719
- "yarn-workspace.json",
4720
- "pnpm-workspace.json",
4721
- "npm-workspace.yaml",
4722
- "yarn-workspace.yaml",
4723
- "pnpm-workspace.yaml",
4724
- "npm-workspace.yml",
4725
- "yarn-workspace.yml",
4726
- "pnpm-workspace.yml",
4727
- "npm-lock.json",
4728
- "yarn-lock.json",
4729
- "pnpm-lock.json",
4730
- "npm-lock.yaml",
4731
- "yarn-lock.yaml",
4732
- "pnpm-lock.yaml",
4733
- "npm-lock.yml",
4734
- "yarn-lock.yml",
4735
- "pnpm-lock.yml",
4736
- "bun.lockb"
4737
- ];
4738
- var rootDirectories = [
4739
- ".storm-workspace",
4740
- ".nx",
4741
- ".git",
4742
- ".github",
4743
- ".vscode",
4744
- ".verdaccio"
4745
- ];
4746
- function findWorkspaceRootSafe(pathInsideMonorepo) {
4747
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
4748
- return correctPaths2(
4749
- process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
4750
- );
4681
+ // ../config-tools/dist/chunk-SDSQ2HHF.js
4682
+ var setExtensionEnv = (extensionName, extension) => {
4683
+ for (const key of Object.keys(extension ?? {})) {
4684
+ if (extension[key]) {
4685
+ const result = key?.replace(
4686
+ /([A-Z])+/g,
4687
+ (input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
4688
+ ).split(/(?=[A-Z])|[.\-\s_]/).map((x2) => x2.toLowerCase()) ?? [];
4689
+ let extensionKey;
4690
+ if (result.length === 0) {
4691
+ return;
4692
+ }
4693
+ if (result.length === 1) {
4694
+ extensionKey = result[0]?.toUpperCase() ?? "";
4695
+ } else {
4696
+ extensionKey = result.reduce((ret, part) => {
4697
+ return `${ret}_${part.toLowerCase()}`;
4698
+ });
4699
+ }
4700
+ process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
4701
+ }
4751
4702
  }
4752
- return correctPaths2(
4753
- findFolderUp(
4754
- pathInsideMonorepo ?? process.cwd(),
4755
- rootFiles,
4756
- rootDirectories
4757
- )
4758
- );
4759
- }
4760
- function findWorkspaceRoot2(pathInsideMonorepo) {
4761
- const result = findWorkspaceRootSafe(pathInsideMonorepo);
4762
- if (!result) {
4763
- throw new Error(
4764
- `Cannot find workspace root upwards from known path. Files search list includes:
4765
- ${rootFiles.join(
4766
- "\n"
4767
- )}
4768
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
4769
- );
4770
- }
4771
- return result;
4772
- }
4773
-
4774
- // ../config-tools/dist/chunk-RT5536G5.js
4775
- var import_c122 = require("c12");
4776
- var import_defu3 = __toESM(require("defu"), 1);
4777
- var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
4778
- const workspacePath = filePath || findWorkspaceRoot2(filePath);
4779
- const configs = await Promise.all([
4780
- (0, import_c122.loadConfig)({
4781
- cwd: workspacePath,
4782
- packageJson: true,
4783
- name: fileName,
4784
- envName: fileName?.toUpperCase(),
4785
- jitiOptions: {
4786
- debug: false,
4787
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
4788
- process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
4789
- "jiti"
4790
- )
4791
- },
4792
- ...options2
4793
- }),
4794
- (0, import_c122.loadConfig)({
4795
- cwd: workspacePath,
4796
- packageJson: true,
4797
- name: fileName,
4798
- envName: fileName?.toUpperCase(),
4799
- jitiOptions: {
4800
- debug: false,
4801
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
4802
- process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
4803
- "jiti"
4804
- )
4805
- },
4806
- configFile: fileName,
4807
- ...options2
4808
- })
4809
- ]);
4810
- return (0, import_defu3.default)(configs[0] ?? {}, configs[1] ?? {});
4811
- };
4812
- var getConfigFile = async (filePath, additionalFileNames = []) => {
4813
- const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
4814
- const result = await getConfigFileByName("storm-workspace", workspacePath);
4815
- let config = result.config;
4816
- const configFile = result.configFile;
4817
- if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
4818
- writeTrace(
4819
- `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
4820
- {
4821
- logLevel: "all"
4822
- }
4823
- );
4824
- }
4825
- if (additionalFileNames && additionalFileNames.length > 0) {
4826
- const results = await Promise.all(
4827
- additionalFileNames.map(
4828
- (fileName) => getConfigFileByName(fileName, workspacePath)
4829
- )
4830
- );
4831
- for (const result2 of results) {
4832
- if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
4833
- if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
4834
- writeTrace(
4835
- `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
4836
- {
4837
- logLevel: "all"
4838
- }
4839
- );
4840
- }
4841
- config = (0, import_defu3.default)(result2.config ?? {}, config ?? {});
4842
- }
4843
- }
4844
- }
4845
- if (!config || Object.keys(config).length === 0) {
4846
- return void 0;
4847
- }
4848
- config.configFile = configFile;
4849
- return config;
4850
- };
4851
-
4852
- // ../config-tools/dist/chunk-RGET2UQV.js
4853
- init_cjs_shims();
4854
-
4855
- // ../config/dist/index.js
4856
- init_cjs_shims();
4857
-
4858
- // ../config/dist/chunk-5QIMO5EY.js
4859
- init_cjs_shims();
4860
-
4861
- // ../config/dist/chunk-HPWJK4AX.js
4862
- init_cjs_shims();
4863
-
4864
- // ../config/dist/chunk-TYDRIJER.js
4865
- init_cjs_shims();
4866
- var s = "https://docs.stormsoftware.com";
4867
- var r = "https://stormsoftware.com";
4868
- var t = "https://stormsoftware.com/contact";
4869
- var a = "https://stormsoftware.com/license";
4870
- var i = "Apache-2.0";
4871
- var o = "https://discord.gg/MQ6YVzakM5";
4872
- var e = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
4873
- var E = `
4874
- 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.
4875
-
4876
- Join us on [Discord](${o}) to chat with the team, receive release notifications, ask questions, and get involved.
4877
-
4878
- 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](${t}) or join our [Slack](${e}) channel!
4879
- `;
4880
- var S = "tools/errors/codes.json";
4881
- var A = "The workspace's banner image";
4882
-
4883
- // ../config/dist/chunk-HPWJK4AX.js
4884
- var e2 = __toESM(require("zod/v4/mini"), 1);
4885
- var o2 = e2.registry();
4886
- var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
4887
- o2.add(t2, { description: "A base schema for describing the format of colors" });
4888
- var a2 = e2._default(t2, "#151718");
4889
- o2.add(a2, { description: "The dark background color of the workspace" });
4890
- var c = e2._default(t2, "#cbd5e1");
4891
- o2.add(c, { description: "The light background color of the workspace" });
4892
- var i2 = e2._default(t2, "#1fb2a6");
4893
- o2.add(i2, { description: "The primary brand specific color of the workspace" });
4894
- var s2 = e2.optional(t2);
4895
- o2.add(s2, { description: "The alternate brand specific color of the workspace" });
4896
- var n = e2.optional(t2);
4897
- o2.add(n, { description: "The secondary brand specific color of the workspace" });
4898
- var d = e2._default(t2, "#3fa6ff");
4899
- o2.add(d, { description: "The color used to display hyperlink text" });
4900
- var p = e2._default(t2, "#818cf8");
4901
- o2.add(p, { description: "The second brand specific color of the workspace" });
4902
- var h = e2._default(t2, "#45b27e");
4903
- o2.add(h, { description: "The success color of the workspace" });
4904
- var l = e2._default(t2, "#38bdf8");
4905
- o2.add(l, { description: "The informational color of the workspace" });
4906
- var m = e2._default(t2, "#8afafc");
4907
- o2.add(m, { description: "The debug color of the workspace" });
4908
- var z2 = e2._default(t2, "#f3d371");
4909
- o2.add(z2, { description: "The warning color of the workspace" });
4910
- var g = e2._default(t2, "#d8314a");
4911
- o2.add(g, { description: "The danger color of the workspace" });
4912
- var f = e2.optional(t2);
4913
- o2.add(f, { description: "The fatal color of the workspace" });
4914
- var u = e2._default(t2, "#80fd74");
4915
- o2.add(u, { description: "The performance color of the workspace" });
4916
- var k = e2._default(t2, "#4ade80");
4917
- o2.add(k, { description: "The positive number color of the workspace" });
4918
- var w = e2._default(t2, "#ef4444");
4919
- o2.add(w, { description: "The negative number color of the workspace" });
4920
- var S2 = e2.optional(e2.array(t2));
4921
- o2.add(S2, { description: "The color stops for the base gradient color pattern used in the workspace" });
4922
- var Re = e2.object({ foreground: c, background: a2, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
4923
- var Ue = e2.object({ foreground: a2, background: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
4924
- var De = e2.object({ dark: Re, light: Ue });
4925
- var Be = e2.object({ dark: a2, light: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
4926
- var r2 = e2.optional(e2.url());
4927
- o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
4928
- var y = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
4929
- o2.add(y, { description: "A list of remote registry URLs used by Storm Software" });
4930
- var b = e2.union([Be, De]);
4931
- o2.add(b, { description: "Colors used for various workspace elements" });
4932
- var C = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), b);
4933
- o2.add(C, { description: "Storm theme config values used for styling various package elements" });
4934
- var _ = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
4935
- o2.add(_, { description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration." });
4936
- var L = e2.string().check(e2.trim());
4937
- o2.add(L, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
4938
- var j = e2.string().check(e2.trim());
4939
- o2.add(j, { description: "The email of the workspace bot" });
4940
- var A2 = e2.object({ name: L, email: j });
4941
- o2.add(A2, { description: "The workspace's bot user's config used to automated various operations tasks" });
4942
- var R = e2.optional(e2.string().check(e2.trim(), e2.url()));
4943
- o2.add(R, { description: "A URL to a banner image used to display the workspace's release" });
4944
- var U = e2._default(e2.string().check(e2.trim()), A);
4945
- o2.add(U, { description: "The alt text for the workspace's release banner image" });
4946
- var D = e2.object({ url: R, alt: U });
4947
- o2.add(D, { description: "The workspace's banner image used during the release process" });
4948
- var B = e2.optional(e2.string().check(e2.trim()));
4949
- o2.add(B, { description: "A header message appended to the start of the workspace's release notes" });
4950
- var F = e2.optional(e2.string().check(e2.trim()));
4951
- o2.add(F, { description: "A footer message appended to the end of the workspace's release notes" });
4952
- var N = e2.object({ banner: e2.union([D, e2.string().check(e2.trim(), e2.url())]), header: B, footer: F });
4953
- o2.add(N, { description: "The workspace's release config used during the release process" });
4954
- var E2 = e2.optional(e2.string().check(e2.trim()));
4955
- o2.add(E2, { description: "A Twitter/X account associated with the organization/project" });
4956
- var M = e2.optional(e2.string().check(e2.trim()));
4957
- o2.add(M, { description: "A Discord account associated with the organization/project" });
4958
- var O = e2.optional(e2.string().check(e2.trim()));
4959
- o2.add(O, { description: "A Telegram account associated with the organization/project" });
4960
- var I = e2.optional(e2.string().check(e2.trim()));
4961
- o2.add(I, { description: "A Slack account associated with the organization/project" });
4962
- var G = e2.optional(e2.string().check(e2.trim()));
4963
- o2.add(G, { description: "A Medium account associated with the organization/project" });
4964
- var H = e2.optional(e2.string().check(e2.trim()));
4965
- o2.add(H, { description: "A GitHub account associated with the organization/project" });
4966
- var J = e2.object({ twitter: E2, discord: M, telegram: O, slack: I, medium: G, github: H });
4967
- o2.add(J, { description: "The workspace's account config used to store various social media links" });
4968
- var W = e2.optional(e2.string().check(e2.trim()));
4969
- o2.add(W, { description: "The directory used to store the environment's cached file data" });
4970
- var P = e2.optional(e2.string().check(e2.trim()));
4971
- o2.add(P, { description: "The directory used to store the environment's data files" });
4972
- var $ = e2.optional(e2.string().check(e2.trim()));
4973
- o2.add($, { description: "The directory used to store the environment's configuration files" });
4974
- var V = e2.optional(e2.string().check(e2.trim()));
4975
- o2.add(V, { description: "The directory used to store the environment's temp files" });
4976
- var X = e2.optional(e2.string().check(e2.trim()));
4977
- o2.add(X, { description: "The directory used to store the environment's log files" });
4978
- var Y = e2._default(e2.string().check(e2.trim()), "dist");
4979
- o2.add(Y, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
4980
- var q = e2.object({ cache: W, data: P, config: $, temp: V, log: X, build: Y });
4981
- o2.add(q, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
4982
- var K = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
4983
- o2.add(K, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
4984
- var Q = e2._default(e2.string().check(e2.trim()), S);
4985
- o2.add(Q, { description: "The path to the workspace's error codes JSON file" });
4986
- var Z = e2.optional(e2.url());
4987
- o2.add(Z, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
4988
- var ee = e2.object({ codesFile: Q, url: Z });
4989
- o2.add(ee, { description: "The workspace's error config used when creating error details during a system error" });
4990
- var oe = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4991
- o2.add(oe, { description: "The name of the organization" });
4992
- var te = e2.optional(e2.string().check(e2.trim()));
4993
- o2.add(te, { description: "A description of the organization" });
4994
- var re = e2.optional(e2.url());
4995
- o2.add(re, { description: "A URL to the organization's logo image" });
4996
- var ae = e2.optional(e2.url());
4997
- o2.add(ae, { description: "A URL to the organization's icon image" });
4998
- var ce = e2.optional(e2.url());
4999
- o2.add(ce, { description: "A URL to a page that provides more information about the organization" });
5000
- var ie = e2.object({ name: oe, description: te, logo: re, icon: ae, url: ce });
5001
- o2.add(ie, { description: "The workspace's organization details" });
5002
- var se = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
5003
- o2.add(se, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
5004
- var ne = e2.string().check(e2.trim(), e2.toLowerCase());
5005
- o2.add(ne, { description: "The name of the workspace/project/service/package/scope using this configuration" });
5006
- var de = e2.string().check(e2.trim(), e2.toLowerCase());
5007
- o2.add(de, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
5008
- var pe = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
5009
- o2.add(pe, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
5010
- var he = e2.string().check(e2.trim(), e2.toLowerCase());
5011
- o2.add(he, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
5012
- var le = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
5013
- o2.add(le, { description: "The license type of the package" });
5014
- var me = e2.optional(e2.url());
5015
- o2.add(me, { description: "The homepage of the workspace" });
5016
- var ze = e2.optional(e2.url());
5017
- o2.add(ze, { description: "The documentation site for the workspace" });
5018
- var ge = e2.optional(e2.url());
5019
- o2.add(ge, { description: "The development portal site for the workspace" });
5020
- var fe = e2.optional(e2.url());
5021
- o2.add(fe, { description: "The licensing site for the workspace" });
5022
- var ue = e2.optional(e2.url());
5023
- o2.add(ue, { description: "The contact site for the workspace" });
5024
- var ke = e2.optional(e2.url());
5025
- o2.add(ke, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
5026
- var we = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
5027
- o2.add(we, { description: "The branch of the workspace" });
5028
- var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5029
- o2.add(Se, { description: "A tag specifying the version pre-release identifier" });
5030
- var be = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5031
- o2.add(be, { description: "The owner of the package" });
5032
- var xe = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
5033
- o2.add(xe, { description: "The current runtime environment mode for the package" });
5034
- var Te = e2.string().check(e2.trim(), e2.toLowerCase());
5035
- o2.add(Te, { description: "The root directory of the workspace" });
5036
- var ve = e2._default(e2.boolean(), false);
5037
- o2.add(ve, { description: "Should all known types of workspace caching be skipped?" });
5038
- var ye = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
5039
- o2.add(ye, { description: "The JavaScript/TypeScript package manager used by the repository" });
5040
- var Ce = e2._default(e2.string().check(e2.trim()), "America/New_York");
5041
- o2.add(Ce, { description: "The default timezone of the workspace" });
5042
- var _e = e2._default(e2.string().check(e2.trim()), "en-US");
5043
- o2.add(_e, { description: "The default locale of the workspace" });
5044
- var Le = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "performance", "debug", "trace", "all"]), "info");
5045
- o2.add(Le, { description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)." });
5046
- var je = e2._default(e2.boolean(), true);
5047
- o2.add(je, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
5048
- var Ae = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
5049
- o2.add(Ae, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
5050
- var x = e2._default(e2.record(e2.string(), e2.any()), {});
5051
- o2.add(x, { description: "Configuration of each used extension" });
5052
- var Ne = e2.object({ $schema: se, extends: _, name: ne, variant: K, namespace: de, organization: pe, repository: he, license: le, homepage: me, docs: ze, portal: ge, licensing: fe, contact: ue, support: ke, branch: we, preid: Se, owner: be, bot: A2, release: N, socials: J, error: ee, mode: xe, workspaceRoot: Te, skipCache: ve, directories: q, packageManager: ye, timezone: Ce, locale: _e, logLevel: Le, skipConfigLogging: je, registry: y, configFile: Ae, colors: e2.union([b, C]), extensions: x });
5053
- o2.add(x, { description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo." });
5054
-
5055
- // ../config/dist/chunk-YKRE3MWC.js
5056
- init_cjs_shims();
5057
- var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "performance", "positive", "negative"];
5058
-
5059
- // ../config-tools/dist/chunk-RGET2UQV.js
5060
- var import_node_fs8 = require("fs");
5061
- var import_promises5 = require("fs/promises");
5062
- var import_node_path5 = require("path");
5063
- async function getPackageJsonConfig(root) {
5064
- let license = i;
5065
- let homepage = void 0;
5066
- let support = void 0;
5067
- let name = void 0;
5068
- let namespace = void 0;
5069
- let repository = void 0;
5070
- const workspaceRoot = findWorkspaceRoot2(root);
5071
- if ((0, import_node_fs8.existsSync)((0, import_node_path5.join)(workspaceRoot, "package.json"))) {
5072
- const file = await (0, import_promises5.readFile)(
5073
- joinPaths2(workspaceRoot, "package.json"),
5074
- "utf8"
5075
- );
5076
- if (file) {
5077
- const packageJson = JSON.parse(file);
5078
- if (packageJson.name) {
5079
- name = packageJson.name;
5080
- }
5081
- if (packageJson.namespace) {
5082
- namespace = packageJson.namespace;
5083
- }
5084
- if (packageJson.repository) {
5085
- if (typeof packageJson.repository === "string") {
5086
- repository = packageJson.repository;
5087
- } else if (packageJson.repository.url) {
5088
- repository = packageJson.repository.url;
5089
- }
5090
- }
5091
- if (packageJson.license) {
5092
- license = packageJson.license;
5093
- }
5094
- if (packageJson.homepage) {
5095
- homepage = packageJson.homepage;
5096
- }
5097
- if (packageJson.bugs) {
5098
- if (typeof packageJson.bugs === "string") {
5099
- support = packageJson.bugs;
5100
- } else if (packageJson.bugs.url) {
5101
- support = packageJson.bugs.url;
5102
- }
5103
- }
5104
- }
5105
- }
5106
- return {
5107
- workspaceRoot,
5108
- name,
5109
- namespace,
5110
- repository,
5111
- license,
5112
- homepage,
5113
- support
5114
- };
5115
- }
5116
- function applyDefaultConfig(config) {
5117
- if (!config.support && config.contact) {
5118
- config.support = config.contact;
5119
- }
5120
- if (!config.contact && config.support) {
5121
- config.contact = config.support;
5122
- }
5123
- if (config.homepage) {
5124
- if (!config.docs) {
5125
- config.docs = `${config.homepage}/docs`;
5126
- }
5127
- if (!config.license) {
5128
- config.license = `${config.homepage}/license`;
5129
- }
5130
- if (!config.support) {
5131
- config.support = `${config.homepage}/support`;
5132
- }
5133
- if (!config.contact) {
5134
- config.contact = `${config.homepage}/contact`;
5135
- }
5136
- if (!config.error?.codesFile || !config?.error?.url) {
5137
- config.error ??= { codesFile: S };
5138
- if (config.homepage) {
5139
- config.error.url ??= `${config.homepage}/errors`;
5140
- }
5141
- }
5142
- }
5143
- return config;
5144
- }
5145
-
5146
- // ../config-tools/dist/chunk-SDSQ2HHF.js
5147
- init_cjs_shims();
5148
- var setExtensionEnv = (extensionName, extension) => {
5149
- for (const key of Object.keys(extension ?? {})) {
5150
- if (extension[key]) {
5151
- const result = key?.replace(
5152
- /([A-Z])+/g,
5153
- (input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
5154
- ).split(/(?=[A-Z])|[.\-\s_]/).map((x2) => x2.toLowerCase()) ?? [];
5155
- let extensionKey;
5156
- if (result.length === 0) {
5157
- return;
5158
- }
5159
- if (result.length === 1) {
5160
- extensionKey = result[0]?.toUpperCase() ?? "";
5161
- } else {
5162
- extensionKey = result.reduce((ret, part) => {
5163
- return `${ret}_${part.toLowerCase()}`;
5164
- });
5165
- }
5166
- process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
5167
- }
5168
- }
5169
- };
5170
- var setConfigEnv = (config) => {
5171
- const prefix = "STORM_";
5172
- if (config.extends) {
5173
- process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
4703
+ };
4704
+ var setConfigEnv = (config) => {
4705
+ const prefix = "STORM_";
4706
+ if (config.extends) {
4707
+ process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
5174
4708
  }
5175
4709
  if (config.name) {
5176
4710
  process.env[`${prefix}NAME`] = config.name;
@@ -5525,8 +5059,214 @@ var setBaseThemeColorsEnv = (prefix, config) => {
5525
5059
  }
5526
5060
  };
5527
5061
 
5528
- // ../config-tools/dist/chunk-A5JXMY6X.js
5062
+ // ../config-tools/dist/chunk-A5JXMY6X.js
5063
+ init_cjs_shims();
5064
+
5065
+ // ../config/dist/index.js
5066
+ init_cjs_shims();
5067
+
5068
+ // ../config/dist/chunk-5QIMO5EY.js
5069
+ init_cjs_shims();
5070
+
5071
+ // ../config/dist/chunk-HPWJK4AX.js
5072
+ init_cjs_shims();
5073
+
5074
+ // ../config/dist/chunk-TYDRIJER.js
5075
+ init_cjs_shims();
5076
+ var s = "https://docs.stormsoftware.com";
5077
+ var r = "https://stormsoftware.com";
5078
+ var t = "https://stormsoftware.com/contact";
5079
+ var a = "https://stormsoftware.com/license";
5080
+ var i = "Apache-2.0";
5081
+ var o = "https://discord.gg/MQ6YVzakM5";
5082
+ var e = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
5083
+ var E = `
5084
+ 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.
5085
+
5086
+ Join us on [Discord](${o}) to chat with the team, receive release notifications, ask questions, and get involved.
5087
+
5088
+ 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](${t}) or join our [Slack](${e}) channel!
5089
+ `;
5090
+ var S = "tools/errors/codes.json";
5091
+ var A = "The workspace's banner image";
5092
+
5093
+ // ../config/dist/chunk-HPWJK4AX.js
5094
+ var e2 = __toESM(require("zod/v4/mini"), 1);
5095
+ var o2 = e2.registry();
5096
+ var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
5097
+ o2.add(t2, { description: "A base schema for describing the format of colors" });
5098
+ var a2 = e2._default(t2, "#151718");
5099
+ o2.add(a2, { description: "The dark background color of the workspace" });
5100
+ var c = e2._default(t2, "#cbd5e1");
5101
+ o2.add(c, { description: "The light background color of the workspace" });
5102
+ var i2 = e2._default(t2, "#1fb2a6");
5103
+ o2.add(i2, { description: "The primary brand specific color of the workspace" });
5104
+ var s2 = e2.optional(t2);
5105
+ o2.add(s2, { description: "The alternate brand specific color of the workspace" });
5106
+ var n = e2.optional(t2);
5107
+ o2.add(n, { description: "The secondary brand specific color of the workspace" });
5108
+ var d = e2._default(t2, "#3fa6ff");
5109
+ o2.add(d, { description: "The color used to display hyperlink text" });
5110
+ var p = e2._default(t2, "#818cf8");
5111
+ o2.add(p, { description: "The second brand specific color of the workspace" });
5112
+ var h = e2._default(t2, "#45b27e");
5113
+ o2.add(h, { description: "The success color of the workspace" });
5114
+ var l = e2._default(t2, "#38bdf8");
5115
+ o2.add(l, { description: "The informational color of the workspace" });
5116
+ var m = e2._default(t2, "#8afafc");
5117
+ o2.add(m, { description: "The debug color of the workspace" });
5118
+ var z2 = e2._default(t2, "#f3d371");
5119
+ o2.add(z2, { description: "The warning color of the workspace" });
5120
+ var g = e2._default(t2, "#d8314a");
5121
+ o2.add(g, { description: "The danger color of the workspace" });
5122
+ var f = e2.optional(t2);
5123
+ o2.add(f, { description: "The fatal color of the workspace" });
5124
+ var u = e2._default(t2, "#80fd74");
5125
+ o2.add(u, { description: "The performance color of the workspace" });
5126
+ var k = e2._default(t2, "#4ade80");
5127
+ o2.add(k, { description: "The positive number color of the workspace" });
5128
+ var w = e2._default(t2, "#ef4444");
5129
+ o2.add(w, { description: "The negative number color of the workspace" });
5130
+ var S2 = e2.optional(e2.array(t2));
5131
+ o2.add(S2, { description: "The color stops for the base gradient color pattern used in the workspace" });
5132
+ var Re = e2.object({ foreground: c, background: a2, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
5133
+ var Ue = e2.object({ foreground: a2, background: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
5134
+ var De = e2.object({ dark: Re, light: Ue });
5135
+ var Be = e2.object({ dark: a2, light: c, brand: i2, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: f, performance: u, positive: k, negative: w, gradient: S2 });
5136
+ var r2 = e2.optional(e2.url());
5137
+ o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
5138
+ var y = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
5139
+ o2.add(y, { description: "A list of remote registry URLs used by Storm Software" });
5140
+ var b = e2.union([Be, De]);
5141
+ o2.add(b, { description: "Colors used for various workspace elements" });
5142
+ var C = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), b);
5143
+ o2.add(C, { description: "Storm theme config values used for styling various package elements" });
5144
+ var _ = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
5145
+ o2.add(_, { description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration." });
5146
+ var L = e2.string().check(e2.trim());
5147
+ o2.add(L, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
5148
+ var j = e2.string().check(e2.trim());
5149
+ o2.add(j, { description: "The email of the workspace bot" });
5150
+ var A2 = e2.object({ name: L, email: j });
5151
+ o2.add(A2, { description: "The workspace's bot user's config used to automated various operations tasks" });
5152
+ var R = e2.optional(e2.string().check(e2.trim(), e2.url()));
5153
+ o2.add(R, { description: "A URL to a banner image used to display the workspace's release" });
5154
+ var U = e2._default(e2.string().check(e2.trim()), A);
5155
+ o2.add(U, { description: "The alt text for the workspace's release banner image" });
5156
+ var D = e2.object({ url: R, alt: U });
5157
+ o2.add(D, { description: "The workspace's banner image used during the release process" });
5158
+ var B = e2.optional(e2.string().check(e2.trim()));
5159
+ o2.add(B, { description: "A header message appended to the start of the workspace's release notes" });
5160
+ var F = e2.optional(e2.string().check(e2.trim()));
5161
+ o2.add(F, { description: "A footer message appended to the end of the workspace's release notes" });
5162
+ var N = e2.object({ banner: e2.union([D, e2.string().check(e2.trim(), e2.url())]), header: B, footer: F });
5163
+ o2.add(N, { description: "The workspace's release config used during the release process" });
5164
+ var E2 = e2.optional(e2.string().check(e2.trim()));
5165
+ o2.add(E2, { description: "A Twitter/X account associated with the organization/project" });
5166
+ var M = e2.optional(e2.string().check(e2.trim()));
5167
+ o2.add(M, { description: "A Discord account associated with the organization/project" });
5168
+ var O = e2.optional(e2.string().check(e2.trim()));
5169
+ o2.add(O, { description: "A Telegram account associated with the organization/project" });
5170
+ var I = e2.optional(e2.string().check(e2.trim()));
5171
+ o2.add(I, { description: "A Slack account associated with the organization/project" });
5172
+ var G = e2.optional(e2.string().check(e2.trim()));
5173
+ o2.add(G, { description: "A Medium account associated with the organization/project" });
5174
+ var H = e2.optional(e2.string().check(e2.trim()));
5175
+ o2.add(H, { description: "A GitHub account associated with the organization/project" });
5176
+ var J = e2.object({ twitter: E2, discord: M, telegram: O, slack: I, medium: G, github: H });
5177
+ o2.add(J, { description: "The workspace's account config used to store various social media links" });
5178
+ var W = e2.optional(e2.string().check(e2.trim()));
5179
+ o2.add(W, { description: "The directory used to store the environment's cached file data" });
5180
+ var P = e2.optional(e2.string().check(e2.trim()));
5181
+ o2.add(P, { description: "The directory used to store the environment's data files" });
5182
+ var $ = e2.optional(e2.string().check(e2.trim()));
5183
+ o2.add($, { description: "The directory used to store the environment's configuration files" });
5184
+ var V = e2.optional(e2.string().check(e2.trim()));
5185
+ o2.add(V, { description: "The directory used to store the environment's temp files" });
5186
+ var X = e2.optional(e2.string().check(e2.trim()));
5187
+ o2.add(X, { description: "The directory used to store the environment's log files" });
5188
+ var Y = e2._default(e2.string().check(e2.trim()), "dist");
5189
+ o2.add(Y, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
5190
+ var q = e2.object({ cache: W, data: P, config: $, temp: V, log: X, build: Y });
5191
+ o2.add(q, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
5192
+ var K = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
5193
+ o2.add(K, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
5194
+ var Q = e2._default(e2.string().check(e2.trim()), S);
5195
+ o2.add(Q, { description: "The path to the workspace's error codes JSON file" });
5196
+ var Z = e2.optional(e2.url());
5197
+ o2.add(Z, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
5198
+ var ee = e2.object({ codesFile: Q, url: Z });
5199
+ o2.add(ee, { description: "The workspace's error config used when creating error details during a system error" });
5200
+ var oe = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5201
+ o2.add(oe, { description: "The name of the organization" });
5202
+ var te = e2.optional(e2.string().check(e2.trim()));
5203
+ o2.add(te, { description: "A description of the organization" });
5204
+ var re = e2.optional(e2.url());
5205
+ o2.add(re, { description: "A URL to the organization's logo image" });
5206
+ var ae = e2.optional(e2.url());
5207
+ o2.add(ae, { description: "A URL to the organization's icon image" });
5208
+ var ce = e2.optional(e2.url());
5209
+ o2.add(ce, { description: "A URL to a page that provides more information about the organization" });
5210
+ var ie = e2.object({ name: oe, description: te, logo: re, icon: ae, url: ce });
5211
+ o2.add(ie, { description: "The workspace's organization details" });
5212
+ var se = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
5213
+ o2.add(se, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
5214
+ var ne = e2.string().check(e2.trim(), e2.toLowerCase());
5215
+ o2.add(ne, { description: "The name of the workspace/project/service/package/scope using this configuration" });
5216
+ var de = e2.string().check(e2.trim(), e2.toLowerCase());
5217
+ o2.add(de, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
5218
+ var pe = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
5219
+ o2.add(pe, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
5220
+ var he = e2.string().check(e2.trim(), e2.toLowerCase());
5221
+ o2.add(he, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
5222
+ var le = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
5223
+ o2.add(le, { description: "The license type of the package" });
5224
+ var me = e2.optional(e2.url());
5225
+ o2.add(me, { description: "The homepage of the workspace" });
5226
+ var ze = e2.optional(e2.url());
5227
+ o2.add(ze, { description: "The documentation site for the workspace" });
5228
+ var ge = e2.optional(e2.url());
5229
+ o2.add(ge, { description: "The development portal site for the workspace" });
5230
+ var fe = e2.optional(e2.url());
5231
+ o2.add(fe, { description: "The licensing site for the workspace" });
5232
+ var ue = e2.optional(e2.url());
5233
+ o2.add(ue, { description: "The contact site for the workspace" });
5234
+ var ke = e2.optional(e2.url());
5235
+ o2.add(ke, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
5236
+ var we = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
5237
+ o2.add(we, { description: "The branch of the workspace" });
5238
+ var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5239
+ o2.add(Se, { description: "A tag specifying the version pre-release identifier" });
5240
+ var be = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5241
+ o2.add(be, { description: "The owner of the package" });
5242
+ var xe = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
5243
+ o2.add(xe, { description: "The current runtime environment mode for the package" });
5244
+ var Te = e2.string().check(e2.trim(), e2.toLowerCase());
5245
+ o2.add(Te, { description: "The root directory of the workspace" });
5246
+ var ve = e2._default(e2.boolean(), false);
5247
+ o2.add(ve, { description: "Should all known types of workspace caching be skipped?" });
5248
+ var ye = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
5249
+ o2.add(ye, { description: "The JavaScript/TypeScript package manager used by the repository" });
5250
+ var Ce = e2._default(e2.string().check(e2.trim()), "America/New_York");
5251
+ o2.add(Ce, { description: "The default timezone of the workspace" });
5252
+ var _e = e2._default(e2.string().check(e2.trim()), "en-US");
5253
+ o2.add(_e, { description: "The default locale of the workspace" });
5254
+ var Le = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "performance", "debug", "trace", "all"]), "info");
5255
+ o2.add(Le, { description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)." });
5256
+ var je = e2._default(e2.boolean(), true);
5257
+ o2.add(je, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
5258
+ var Ae = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
5259
+ o2.add(Ae, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
5260
+ var x = e2._default(e2.record(e2.string(), e2.any()), {});
5261
+ o2.add(x, { description: "Configuration of each used extension" });
5262
+ var Ne = e2.object({ $schema: se, extends: _, name: ne, variant: K, namespace: de, organization: pe, repository: he, license: le, homepage: me, docs: ze, portal: ge, licensing: fe, contact: ue, support: ke, branch: we, preid: Se, owner: be, bot: A2, release: N, socials: J, error: ee, mode: xe, workspaceRoot: Te, skipCache: ve, directories: q, packageManager: ye, timezone: Ce, locale: _e, logLevel: Le, skipConfigLogging: je, registry: y, configFile: Ae, colors: e2.union([b, C]), extensions: x });
5263
+ o2.add(x, { description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo." });
5264
+
5265
+ // ../config/dist/chunk-YKRE3MWC.js
5529
5266
  init_cjs_shims();
5267
+ var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "performance", "positive", "negative"];
5268
+
5269
+ // ../config-tools/dist/chunk-A5JXMY6X.js
5530
5270
  var getExtensionEnv = (extensionName) => {
5531
5271
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
5532
5272
  return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
@@ -5644,108 +5384,374 @@ var getConfigEnv = () => {
5644
5384
  config.docs = `${config.homepage}/docs`;
5645
5385
  }
5646
5386
  }
5647
- if (config.licensing === a) {
5648
- if (config.homepage === r) {
5649
- config.licensing = `${r}/projects/${config.name}/licensing`;
5650
- } else {
5651
- config.licensing = `${config.homepage}/docs`;
5387
+ if (config.licensing === a) {
5388
+ if (config.homepage === r) {
5389
+ config.licensing = `${r}/projects/${config.name}/licensing`;
5390
+ } else {
5391
+ config.licensing = `${config.homepage}/docs`;
5392
+ }
5393
+ }
5394
+ const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
5395
+ if (serializedConfig) {
5396
+ const parsed = JSON.parse(serializedConfig);
5397
+ config = {
5398
+ ...config,
5399
+ ...parsed,
5400
+ colors: { ...config.colors, ...parsed.colors },
5401
+ extensions: { ...config.extensions, ...parsed.extensions }
5402
+ };
5403
+ }
5404
+ return config;
5405
+ };
5406
+ var getThemeColorsEnv = (prefix, theme) => {
5407
+ const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
5408
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
5409
+ };
5410
+ var getSingleThemeColorsEnv = (prefix) => {
5411
+ const gradient = [];
5412
+ if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5413
+ gradient.push(
5414
+ process.env[`${prefix}GRADIENT_START`],
5415
+ process.env[`${prefix}GRADIENT_END`]
5416
+ );
5417
+ } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5418
+ let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5419
+ while (process.env[`${prefix}GRADIENT_${index}`]) {
5420
+ gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5421
+ index++;
5422
+ }
5423
+ }
5424
+ return {
5425
+ dark: process.env[`${prefix}DARK`],
5426
+ light: process.env[`${prefix}LIGHT`],
5427
+ brand: process.env[`${prefix}BRAND`],
5428
+ alternate: process.env[`${prefix}ALTERNATE`],
5429
+ accent: process.env[`${prefix}ACCENT`],
5430
+ link: process.env[`${prefix}LINK`],
5431
+ help: process.env[`${prefix}HELP`],
5432
+ success: process.env[`${prefix}SUCCESS`],
5433
+ info: process.env[`${prefix}INFO`],
5434
+ debug: process.env[`${prefix}DEBUG`],
5435
+ warning: process.env[`${prefix}WARNING`],
5436
+ danger: process.env[`${prefix}DANGER`],
5437
+ fatal: process.env[`${prefix}FATAL`],
5438
+ performance: process.env[`${prefix}PERFORMANCE`],
5439
+ positive: process.env[`${prefix}POSITIVE`],
5440
+ negative: process.env[`${prefix}NEGATIVE`],
5441
+ gradient
5442
+ };
5443
+ };
5444
+ var getMultiThemeColorsEnv = (prefix) => {
5445
+ return {
5446
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
5447
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
5448
+ };
5449
+ };
5450
+ var getBaseThemeColorsEnv = (prefix) => {
5451
+ const gradient = [];
5452
+ if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5453
+ gradient.push(
5454
+ process.env[`${prefix}GRADIENT_START`],
5455
+ process.env[`${prefix}GRADIENT_END`]
5456
+ );
5457
+ } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5458
+ let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5459
+ while (process.env[`${prefix}GRADIENT_${index}`]) {
5460
+ gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5461
+ index++;
5462
+ }
5463
+ }
5464
+ return {
5465
+ foreground: process.env[`${prefix}FOREGROUND`],
5466
+ background: process.env[`${prefix}BACKGROUND`],
5467
+ brand: process.env[`${prefix}BRAND`],
5468
+ alternate: process.env[`${prefix}ALTERNATE`],
5469
+ accent: process.env[`${prefix}ACCENT`],
5470
+ link: process.env[`${prefix}LINK`],
5471
+ help: process.env[`${prefix}HELP`],
5472
+ success: process.env[`${prefix}SUCCESS`],
5473
+ info: process.env[`${prefix}INFO`],
5474
+ debug: process.env[`${prefix}DEBUG`],
5475
+ warning: process.env[`${prefix}WARNING`],
5476
+ danger: process.env[`${prefix}DANGER`],
5477
+ fatal: process.env[`${prefix}FATAL`],
5478
+ performance: process.env[`${prefix}PERFORMANCE`],
5479
+ positive: process.env[`${prefix}POSITIVE`],
5480
+ negative: process.env[`${prefix}NEGATIVE`],
5481
+ gradient
5482
+ };
5483
+ };
5484
+
5485
+ // ../config-tools/dist/chunk-NT26TB4H.js
5486
+ init_cjs_shims();
5487
+
5488
+ // ../config-tools/dist/chunk-LF3SAK2O.js
5489
+ init_cjs_shims();
5490
+
5491
+ // ../config-tools/dist/chunk-RUKM6FCF.js
5492
+ init_cjs_shims();
5493
+ var import_node_fs7 = require("fs");
5494
+ var import_node_path4 = require("path");
5495
+ var MAX_PATH_SEARCH_DEPTH = 30;
5496
+ var depth = 0;
5497
+ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
5498
+ const _startPath = startPath ?? process.cwd();
5499
+ if (endDirectoryNames.some(
5500
+ (endDirName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endDirName))
5501
+ )) {
5502
+ return _startPath;
5503
+ }
5504
+ if (endFileNames.some((endFileName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endFileName)))) {
5505
+ return _startPath;
5506
+ }
5507
+ if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
5508
+ const parent = (0, import_node_path4.join)(_startPath, "..");
5509
+ return findFolderUp(parent, endFileNames, endDirectoryNames);
5510
+ }
5511
+ return void 0;
5512
+ }
5513
+
5514
+ // ../config-tools/dist/chunk-LF3SAK2O.js
5515
+ var rootFiles = [
5516
+ "storm-workspace.json",
5517
+ "storm-workspace.yaml",
5518
+ "storm-workspace.yml",
5519
+ "storm-workspace.js",
5520
+ "storm-workspace.ts",
5521
+ ".storm-workspace.json",
5522
+ ".storm-workspace.yaml",
5523
+ ".storm-workspace.yml",
5524
+ ".storm-workspace.js",
5525
+ ".storm-workspace.ts",
5526
+ "lerna.json",
5527
+ "nx.json",
5528
+ "turbo.json",
5529
+ "npm-workspace.json",
5530
+ "yarn-workspace.json",
5531
+ "pnpm-workspace.json",
5532
+ "npm-workspace.yaml",
5533
+ "yarn-workspace.yaml",
5534
+ "pnpm-workspace.yaml",
5535
+ "npm-workspace.yml",
5536
+ "yarn-workspace.yml",
5537
+ "pnpm-workspace.yml",
5538
+ "npm-lock.json",
5539
+ "yarn-lock.json",
5540
+ "pnpm-lock.json",
5541
+ "npm-lock.yaml",
5542
+ "yarn-lock.yaml",
5543
+ "pnpm-lock.yaml",
5544
+ "npm-lock.yml",
5545
+ "yarn-lock.yml",
5546
+ "pnpm-lock.yml",
5547
+ "bun.lockb"
5548
+ ];
5549
+ var rootDirectories = [
5550
+ ".storm-workspace",
5551
+ ".nx",
5552
+ ".git",
5553
+ ".github",
5554
+ ".vscode",
5555
+ ".verdaccio"
5556
+ ];
5557
+ function findWorkspaceRootSafe(pathInsideMonorepo) {
5558
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
5559
+ return correctPaths2(
5560
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
5561
+ );
5562
+ }
5563
+ return correctPaths2(
5564
+ findFolderUp(
5565
+ pathInsideMonorepo ?? process.cwd(),
5566
+ rootFiles,
5567
+ rootDirectories
5568
+ )
5569
+ );
5570
+ }
5571
+ function findWorkspaceRoot2(pathInsideMonorepo) {
5572
+ const result = findWorkspaceRootSafe(pathInsideMonorepo);
5573
+ if (!result) {
5574
+ throw new Error(
5575
+ `Cannot find workspace root upwards from known path. Files search list includes:
5576
+ ${rootFiles.join(
5577
+ "\n"
5578
+ )}
5579
+ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
5580
+ );
5581
+ }
5582
+ return result;
5583
+ }
5584
+
5585
+ // ../config-tools/dist/chunk-NT26TB4H.js
5586
+ var import_c122 = require("c12");
5587
+ var import_defu3 = __toESM(require("defu"), 1);
5588
+ var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
5589
+ const workspacePath = filePath || findWorkspaceRoot2(filePath);
5590
+ const configs = await Promise.all([
5591
+ (0, import_c122.loadConfig)({
5592
+ cwd: workspacePath,
5593
+ packageJson: true,
5594
+ name: fileName,
5595
+ envName: fileName?.toUpperCase(),
5596
+ jitiOptions: {
5597
+ debug: false,
5598
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
5599
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
5600
+ "jiti"
5601
+ )
5602
+ },
5603
+ ...options2
5604
+ }),
5605
+ (0, import_c122.loadConfig)({
5606
+ cwd: workspacePath,
5607
+ packageJson: true,
5608
+ name: fileName,
5609
+ envName: fileName?.toUpperCase(),
5610
+ jitiOptions: {
5611
+ debug: false,
5612
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
5613
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
5614
+ "jiti"
5615
+ )
5616
+ },
5617
+ configFile: fileName,
5618
+ ...options2
5619
+ })
5620
+ ]);
5621
+ return (0, import_defu3.default)(configs[0] ?? {}, configs[1] ?? {});
5622
+ };
5623
+ var getConfigFile = async (filePath, additionalFileNames = []) => {
5624
+ const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
5625
+ const result = await getConfigFileByName("storm-workspace", workspacePath);
5626
+ let config = result.config;
5627
+ const configFile = result.configFile;
5628
+ if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
5629
+ writeTrace(
5630
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
5631
+ {
5632
+ logLevel: "all"
5633
+ }
5634
+ );
5635
+ }
5636
+ if (additionalFileNames && additionalFileNames.length > 0) {
5637
+ const results = await Promise.all(
5638
+ additionalFileNames.map(
5639
+ (fileName) => getConfigFileByName(fileName, workspacePath)
5640
+ )
5641
+ );
5642
+ for (const result2 of results) {
5643
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
5644
+ if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
5645
+ writeTrace(
5646
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
5647
+ {
5648
+ logLevel: "all"
5649
+ }
5650
+ );
5651
+ }
5652
+ config = (0, import_defu3.default)(result2.config ?? {}, config ?? {});
5653
+ }
5652
5654
  }
5653
5655
  }
5654
- const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
5655
- if (serializedConfig) {
5656
- const parsed = JSON.parse(serializedConfig);
5657
- config = {
5658
- ...config,
5659
- ...parsed,
5660
- colors: { ...config.colors, ...parsed.colors },
5661
- extensions: { ...config.extensions, ...parsed.extensions }
5662
- };
5656
+ if (!config || Object.keys(config).length === 0) {
5657
+ return void 0;
5663
5658
  }
5659
+ config.configFile = configFile;
5664
5660
  return config;
5665
5661
  };
5666
- var getThemeColorsEnv = (prefix, theme) => {
5667
- const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
5668
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
5669
- };
5670
- var getSingleThemeColorsEnv = (prefix) => {
5671
- const gradient = [];
5672
- if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5673
- gradient.push(
5674
- process.env[`${prefix}GRADIENT_START`],
5675
- process.env[`${prefix}GRADIENT_END`]
5662
+
5663
+ // ../config-tools/dist/chunk-RGET2UQV.js
5664
+ init_cjs_shims();
5665
+ var import_node_fs8 = require("fs");
5666
+ var import_promises5 = require("fs/promises");
5667
+ var import_node_path5 = require("path");
5668
+ async function getPackageJsonConfig(root) {
5669
+ let license = i;
5670
+ let homepage = void 0;
5671
+ let support = void 0;
5672
+ let name = void 0;
5673
+ let namespace = void 0;
5674
+ let repository = void 0;
5675
+ const workspaceRoot = findWorkspaceRoot2(root);
5676
+ if ((0, import_node_fs8.existsSync)((0, import_node_path5.join)(workspaceRoot, "package.json"))) {
5677
+ const file = await (0, import_promises5.readFile)(
5678
+ joinPaths2(workspaceRoot, "package.json"),
5679
+ "utf8"
5676
5680
  );
5677
- } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5678
- let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5679
- while (process.env[`${prefix}GRADIENT_${index}`]) {
5680
- gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5681
- index++;
5681
+ if (file) {
5682
+ const packageJson = JSON.parse(file);
5683
+ if (packageJson.name) {
5684
+ name = packageJson.name;
5685
+ }
5686
+ if (packageJson.namespace) {
5687
+ namespace = packageJson.namespace;
5688
+ }
5689
+ if (packageJson.repository) {
5690
+ if (typeof packageJson.repository === "string") {
5691
+ repository = packageJson.repository;
5692
+ } else if (packageJson.repository.url) {
5693
+ repository = packageJson.repository.url;
5694
+ }
5695
+ }
5696
+ if (packageJson.license) {
5697
+ license = packageJson.license;
5698
+ }
5699
+ if (packageJson.homepage) {
5700
+ homepage = packageJson.homepage;
5701
+ }
5702
+ if (packageJson.bugs) {
5703
+ if (typeof packageJson.bugs === "string") {
5704
+ support = packageJson.bugs;
5705
+ } else if (packageJson.bugs.url) {
5706
+ support = packageJson.bugs.url;
5707
+ }
5708
+ }
5682
5709
  }
5683
5710
  }
5684
5711
  return {
5685
- dark: process.env[`${prefix}DARK`],
5686
- light: process.env[`${prefix}LIGHT`],
5687
- brand: process.env[`${prefix}BRAND`],
5688
- alternate: process.env[`${prefix}ALTERNATE`],
5689
- accent: process.env[`${prefix}ACCENT`],
5690
- link: process.env[`${prefix}LINK`],
5691
- help: process.env[`${prefix}HELP`],
5692
- success: process.env[`${prefix}SUCCESS`],
5693
- info: process.env[`${prefix}INFO`],
5694
- debug: process.env[`${prefix}DEBUG`],
5695
- warning: process.env[`${prefix}WARNING`],
5696
- danger: process.env[`${prefix}DANGER`],
5697
- fatal: process.env[`${prefix}FATAL`],
5698
- performance: process.env[`${prefix}PERFORMANCE`],
5699
- positive: process.env[`${prefix}POSITIVE`],
5700
- negative: process.env[`${prefix}NEGATIVE`],
5701
- gradient
5702
- };
5703
- };
5704
- var getMultiThemeColorsEnv = (prefix) => {
5705
- return {
5706
- light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
5707
- dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
5712
+ workspaceRoot,
5713
+ name,
5714
+ namespace,
5715
+ repository,
5716
+ license,
5717
+ homepage,
5718
+ support
5708
5719
  };
5709
- };
5710
- var getBaseThemeColorsEnv = (prefix) => {
5711
- const gradient = [];
5712
- if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5713
- gradient.push(
5714
- process.env[`${prefix}GRADIENT_START`],
5715
- process.env[`${prefix}GRADIENT_END`]
5716
- );
5717
- } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5718
- let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5719
- while (process.env[`${prefix}GRADIENT_${index}`]) {
5720
- gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5721
- index++;
5720
+ }
5721
+ function applyDefaultConfig(config) {
5722
+ if (!config.support && config.contact) {
5723
+ config.support = config.contact;
5724
+ }
5725
+ if (!config.contact && config.support) {
5726
+ config.contact = config.support;
5727
+ }
5728
+ if (config.homepage) {
5729
+ if (!config.docs) {
5730
+ config.docs = `${config.homepage}/docs`;
5731
+ }
5732
+ if (!config.license) {
5733
+ config.license = `${config.homepage}/license`;
5734
+ }
5735
+ if (!config.support) {
5736
+ config.support = `${config.homepage}/support`;
5737
+ }
5738
+ if (!config.contact) {
5739
+ config.contact = `${config.homepage}/contact`;
5740
+ }
5741
+ if (!config.error?.codesFile || !config?.error?.url) {
5742
+ config.error ??= { codesFile: S };
5743
+ if (config.homepage) {
5744
+ config.error.url ??= `${config.homepage}/errors`;
5745
+ }
5722
5746
  }
5723
5747
  }
5724
- return {
5725
- foreground: process.env[`${prefix}FOREGROUND`],
5726
- background: process.env[`${prefix}BACKGROUND`],
5727
- brand: process.env[`${prefix}BRAND`],
5728
- alternate: process.env[`${prefix}ALTERNATE`],
5729
- accent: process.env[`${prefix}ACCENT`],
5730
- link: process.env[`${prefix}LINK`],
5731
- help: process.env[`${prefix}HELP`],
5732
- success: process.env[`${prefix}SUCCESS`],
5733
- info: process.env[`${prefix}INFO`],
5734
- debug: process.env[`${prefix}DEBUG`],
5735
- warning: process.env[`${prefix}WARNING`],
5736
- danger: process.env[`${prefix}DANGER`],
5737
- fatal: process.env[`${prefix}FATAL`],
5738
- performance: process.env[`${prefix}PERFORMANCE`],
5739
- positive: process.env[`${prefix}POSITIVE`],
5740
- negative: process.env[`${prefix}NEGATIVE`],
5741
- gradient
5742
- };
5743
- };
5748
+ return config;
5749
+ }
5744
5750
 
5745
5751
  // ../config/dist/schema.js
5746
5752
  init_cjs_shims();
5747
5753
 
5748
- // ../config-tools/dist/chunk-K2ESWZ47.js
5754
+ // ../config-tools/dist/chunk-DW5363CG.js
5749
5755
  var import_defu4 = __toESM(require("defu"), 1);
5750
5756
  var import_node_fs9 = require("fs");
5751
5757
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -5846,7 +5852,7 @@ ${formatLogMessage(config)}`,
5846
5852
  return config;
5847
5853
  };
5848
5854
 
5849
- // ../config-tools/dist/chunk-EBVZQPBC.js
5855
+ // ../config-tools/dist/chunk-KKF5NXBI.js
5850
5856
  function getConfig(workspaceRoot, skipLogs = false) {
5851
5857
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
5852
5858
  }