@storm-software/tsup 0.2.177 → 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-4UFIHIMZ.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-4UFIHIMZ.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,16 +3722,22 @@ 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 },
3727
3731
  depth2 + 1
3728
3732
  )}`
3729
3733
  ).join("\n")}` : typeof message === "object" ? `
3730
- ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
3734
+ ${Object.keys(message).filter(
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(
3731
3739
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
3732
- (key2) => !skip.includes(key2)
3740
+ (key2) => typeof key2 !== "string" || !skip.map((k2) => k2.toLowerCase().trim()).includes(key2.toLowerCase().trim())
3733
3741
  ).length === 0 ? "{}" : formatLogMessage(
3734
3742
  message[key],
3735
3743
  { prefix: `${prefix}--`, skip, sort },
@@ -3820,7 +3828,7 @@ init_cjs_shims();
3820
3828
  // ../build-tools/dist/chunk-KVP3YMX6.mjs
3821
3829
  init_cjs_shims();
3822
3830
 
3823
- // ../build-tools/dist/chunk-JL5TSK3E.mjs
3831
+ // ../build-tools/dist/chunk-ZU4PGT6D.mjs
3824
3832
  init_cjs_shims();
3825
3833
 
3826
3834
  // ../build-tools/dist/chunk-B4H42WDA.mjs
@@ -3833,7 +3841,7 @@ init_cjs_shims();
3833
3841
  var import_node_fs = require("fs");
3834
3842
  var import_node_path = require("path");
3835
3843
 
3836
- // ../build-tools/dist/chunk-GFRBIUU6.mjs
3844
+ // ../build-tools/dist/chunk-2D2G26KB.mjs
3837
3845
  init_cjs_shims();
3838
3846
  var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
3839
3847
  var import_chalk2 = __toESM(require("chalk"), 1);
@@ -3871,7 +3879,7 @@ var CONSOLE_ICONS2 = {
3871
3879
  [LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
3872
3880
  };
3873
3881
 
3874
- // ../build-tools/dist/chunk-JL5TSK3E.mjs
3882
+ // ../build-tools/dist/chunk-ZU4PGT6D.mjs
3875
3883
  var import_c12 = require("c12");
3876
3884
  var import_defu = __toESM(require("defu"), 1);
3877
3885
  var z = __toESM(require("zod/v4/mini"), 1);
@@ -4465,13 +4473,13 @@ schemaRegistry.add(extensionsSchema, {
4465
4473
  init_cjs_shims();
4466
4474
  var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
4467
4475
 
4468
- // ../build-tools/dist/chunk-SI3IDR4Y.mjs
4476
+ // ../build-tools/dist/chunk-O5JLRHXY.mjs
4469
4477
  init_cjs_shims();
4470
4478
  var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
4471
4479
  var import_glob = require("glob");
4472
4480
  var import_promises3 = require("fs/promises");
4473
4481
 
4474
- // ../build-tools/dist/chunk-MZNEKMYV.mjs
4482
+ // ../build-tools/dist/chunk-MD22HLYQ.mjs
4475
4483
  init_cjs_shims();
4476
4484
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
4477
4485
  var import_glob2 = require("glob");
@@ -4479,7 +4487,7 @@ var import_node_fs5 = require("fs");
4479
4487
  var import_promises4 = require("fs/promises");
4480
4488
  var import_project_graph = require("nx/src/project-graph/project-graph");
4481
4489
 
4482
- // ../build-tools/dist/chunk-FBGJEKIF.mjs
4490
+ // ../build-tools/dist/chunk-J4SM55F4.mjs
4483
4491
  init_cjs_shims();
4484
4492
  var import_glob3 = require("glob");
4485
4493
 
@@ -4513,14 +4521,14 @@ init_cjs_shims();
4513
4521
  // ../build-tools/dist/chunk-UN3B7LBV.mjs
4514
4522
  init_cjs_shims();
4515
4523
 
4516
- // ../build-tools/dist/chunk-EGQOBLUI.mjs
4524
+ // ../build-tools/dist/chunk-V6F5CGPN.mjs
4517
4525
  init_cjs_shims();
4518
4526
 
4519
4527
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
4520
4528
  init_cjs_shims();
4521
4529
  var import_core = require("@swc/core");
4522
4530
 
4523
- // ../build-tools/dist/chunk-YGAFXMVQ.mjs
4531
+ // ../build-tools/dist/chunk-MT2TKIIG.mjs
4524
4532
  init_cjs_shims();
4525
4533
  var import_node_fs6 = __toESM(require("fs"), 1);
4526
4534
  var import_node_module = require("module");
@@ -4535,40 +4543,14 @@ var import_path = require("path");
4535
4543
  // ../config-tools/dist/get-config.js
4536
4544
  init_cjs_shims();
4537
4545
 
4538
- // ../config-tools/dist/chunk-TIH4RSTL.js
4539
- init_cjs_shims();
4540
-
4541
- // ../config-tools/dist/chunk-UWI3QVYJ.js
4542
- init_cjs_shims();
4543
-
4544
- // ../config-tools/dist/chunk-FXQGOFJI.js
4546
+ // ../config-tools/dist/chunk-KKF5NXBI.js
4545
4547
  init_cjs_shims();
4546
4548
 
4547
- // ../config-tools/dist/chunk-LF3SAK2O.js
4549
+ // ../config-tools/dist/chunk-DW5363CG.js
4548
4550
  init_cjs_shims();
4549
4551
 
4550
- // ../config-tools/dist/chunk-RUKM6FCF.js
4552
+ // ../config-tools/dist/chunk-SDSQ2HHF.js
4551
4553
  init_cjs_shims();
4552
- var import_node_fs7 = require("fs");
4553
- var import_node_path4 = require("path");
4554
- var MAX_PATH_SEARCH_DEPTH = 30;
4555
- var depth = 0;
4556
- function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
4557
- const _startPath = startPath ?? process.cwd();
4558
- if (endDirectoryNames.some(
4559
- (endDirName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endDirName))
4560
- )) {
4561
- return _startPath;
4562
- }
4563
- if (endFileNames.some((endFileName) => (0, import_node_fs7.existsSync)((0, import_node_path4.join)(_startPath, endFileName)))) {
4564
- return _startPath;
4565
- }
4566
- if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
4567
- const parent = (0, import_node_path4.join)(_startPath, "..");
4568
- return findFolderUp(parent, endFileNames, endDirectoryNames);
4569
- }
4570
- return void 0;
4571
- }
4572
4554
 
4573
4555
  // ../config-tools/dist/chunk-V3GMJ4TX.js
4574
4556
  init_cjs_shims();
@@ -4696,477 +4678,33 @@ var isAbsolute = function(p3) {
4696
4678
  return _IS_ABSOLUTE_RE.test(p3);
4697
4679
  };
4698
4680
 
4699
- // ../config-tools/dist/chunk-LF3SAK2O.js
4700
- var rootFiles = [
4701
- "storm-workspace.json",
4702
- "storm-workspace.yaml",
4703
- "storm-workspace.yml",
4704
- "storm-workspace.js",
4705
- "storm-workspace.ts",
4706
- ".storm-workspace.json",
4707
- ".storm-workspace.yaml",
4708
- ".storm-workspace.yml",
4709
- ".storm-workspace.js",
4710
- ".storm-workspace.ts",
4711
- "lerna.json",
4712
- "nx.json",
4713
- "turbo.json",
4714
- "npm-workspace.json",
4715
- "yarn-workspace.json",
4716
- "pnpm-workspace.json",
4717
- "npm-workspace.yaml",
4718
- "yarn-workspace.yaml",
4719
- "pnpm-workspace.yaml",
4720
- "npm-workspace.yml",
4721
- "yarn-workspace.yml",
4722
- "pnpm-workspace.yml",
4723
- "npm-lock.json",
4724
- "yarn-lock.json",
4725
- "pnpm-lock.json",
4726
- "npm-lock.yaml",
4727
- "yarn-lock.yaml",
4728
- "pnpm-lock.yaml",
4729
- "npm-lock.yml",
4730
- "yarn-lock.yml",
4731
- "pnpm-lock.yml",
4732
- "bun.lockb"
4733
- ];
4734
- var rootDirectories = [
4735
- ".storm-workspace",
4736
- ".nx",
4737
- ".git",
4738
- ".github",
4739
- ".vscode",
4740
- ".verdaccio"
4741
- ];
4742
- function findWorkspaceRootSafe(pathInsideMonorepo) {
4743
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
4744
- return correctPaths2(
4745
- process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
4746
- );
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
+ }
4747
4702
  }
4748
- return correctPaths2(
4749
- findFolderUp(
4750
- pathInsideMonorepo ?? process.cwd(),
4751
- rootFiles,
4752
- rootDirectories
4753
- )
4754
- );
4755
- }
4756
- function findWorkspaceRoot2(pathInsideMonorepo) {
4757
- const result = findWorkspaceRootSafe(pathInsideMonorepo);
4758
- if (!result) {
4759
- throw new Error(
4760
- `Cannot find workspace root upwards from known path. Files search list includes:
4761
- ${rootFiles.join(
4762
- "\n"
4763
- )}
4764
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
4765
- );
4766
- }
4767
- return result;
4768
- }
4769
-
4770
- // ../config-tools/dist/chunk-FXQGOFJI.js
4771
- var import_c122 = require("c12");
4772
- var import_defu3 = __toESM(require("defu"), 1);
4773
- var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
4774
- const workspacePath = filePath || findWorkspaceRoot2(filePath);
4775
- const configs = await Promise.all([
4776
- (0, import_c122.loadConfig)({
4777
- cwd: workspacePath,
4778
- packageJson: true,
4779
- name: fileName,
4780
- envName: fileName?.toUpperCase(),
4781
- jitiOptions: {
4782
- debug: false,
4783
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
4784
- process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
4785
- "jiti"
4786
- )
4787
- },
4788
- ...options2
4789
- }),
4790
- (0, import_c122.loadConfig)({
4791
- cwd: workspacePath,
4792
- packageJson: true,
4793
- name: fileName,
4794
- envName: fileName?.toUpperCase(),
4795
- jitiOptions: {
4796
- debug: false,
4797
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
4798
- process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
4799
- "jiti"
4800
- )
4801
- },
4802
- configFile: fileName,
4803
- ...options2
4804
- })
4805
- ]);
4806
- return (0, import_defu3.default)(configs[0] ?? {}, configs[1] ?? {});
4807
- };
4808
- var getConfigFile = async (filePath, additionalFileNames = []) => {
4809
- const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
4810
- const result = await getConfigFileByName("storm-workspace", workspacePath);
4811
- let config = result.config;
4812
- const configFile = result.configFile;
4813
- if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
4814
- writeTrace(
4815
- `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
4816
- {
4817
- logLevel: "all"
4818
- }
4819
- );
4820
- }
4821
- if (additionalFileNames && additionalFileNames.length > 0) {
4822
- const results = await Promise.all(
4823
- additionalFileNames.map(
4824
- (fileName) => getConfigFileByName(fileName, workspacePath)
4825
- )
4826
- );
4827
- for (const result2 of results) {
4828
- if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
4829
- if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
4830
- writeTrace(
4831
- `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
4832
- {
4833
- logLevel: "all"
4834
- }
4835
- );
4836
- }
4837
- config = (0, import_defu3.default)(result2.config ?? {}, config ?? {});
4838
- }
4839
- }
4840
- }
4841
- if (!config || Object.keys(config).length === 0) {
4842
- return void 0;
4843
- }
4844
- config.configFile = configFile;
4845
- return config;
4846
- };
4847
-
4848
- // ../config-tools/dist/chunk-RGET2UQV.js
4849
- init_cjs_shims();
4850
-
4851
- // ../config/dist/index.js
4852
- init_cjs_shims();
4853
-
4854
- // ../config/dist/chunk-5QIMO5EY.js
4855
- init_cjs_shims();
4856
-
4857
- // ../config/dist/chunk-HPWJK4AX.js
4858
- init_cjs_shims();
4859
-
4860
- // ../config/dist/chunk-TYDRIJER.js
4861
- init_cjs_shims();
4862
- var s = "https://docs.stormsoftware.com";
4863
- var r = "https://stormsoftware.com";
4864
- var t = "https://stormsoftware.com/contact";
4865
- var a = "https://stormsoftware.com/license";
4866
- var i = "Apache-2.0";
4867
- var o = "https://discord.gg/MQ6YVzakM5";
4868
- var e = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
4869
- var E = `
4870
- 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.
4871
-
4872
- Join us on [Discord](${o}) to chat with the team, receive release notifications, ask questions, and get involved.
4873
-
4874
- 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!
4875
- `;
4876
- var S = "tools/errors/codes.json";
4877
- var A = "The workspace's banner image";
4878
-
4879
- // ../config/dist/chunk-HPWJK4AX.js
4880
- var e2 = __toESM(require("zod/v4/mini"), 1);
4881
- var o2 = e2.registry();
4882
- var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
4883
- o2.add(t2, { description: "A base schema for describing the format of colors" });
4884
- var a2 = e2._default(t2, "#151718");
4885
- o2.add(a2, { description: "The dark background color of the workspace" });
4886
- var c = e2._default(t2, "#cbd5e1");
4887
- o2.add(c, { description: "The light background color of the workspace" });
4888
- var i2 = e2._default(t2, "#1fb2a6");
4889
- o2.add(i2, { description: "The primary brand specific color of the workspace" });
4890
- var s2 = e2.optional(t2);
4891
- o2.add(s2, { description: "The alternate brand specific color of the workspace" });
4892
- var n = e2.optional(t2);
4893
- o2.add(n, { description: "The secondary brand specific color of the workspace" });
4894
- var d = e2._default(t2, "#3fa6ff");
4895
- o2.add(d, { description: "The color used to display hyperlink text" });
4896
- var p = e2._default(t2, "#818cf8");
4897
- o2.add(p, { description: "The second brand specific color of the workspace" });
4898
- var h = e2._default(t2, "#45b27e");
4899
- o2.add(h, { description: "The success color of the workspace" });
4900
- var l = e2._default(t2, "#38bdf8");
4901
- o2.add(l, { description: "The informational color of the workspace" });
4902
- var m = e2._default(t2, "#8afafc");
4903
- o2.add(m, { description: "The debug color of the workspace" });
4904
- var z2 = e2._default(t2, "#f3d371");
4905
- o2.add(z2, { description: "The warning color of the workspace" });
4906
- var g = e2._default(t2, "#d8314a");
4907
- o2.add(g, { description: "The danger color of the workspace" });
4908
- var f = e2.optional(t2);
4909
- o2.add(f, { description: "The fatal color of the workspace" });
4910
- var u = e2._default(t2, "#80fd74");
4911
- o2.add(u, { description: "The performance color of the workspace" });
4912
- var k = e2._default(t2, "#4ade80");
4913
- o2.add(k, { description: "The positive number color of the workspace" });
4914
- var w = e2._default(t2, "#ef4444");
4915
- o2.add(w, { description: "The negative number color of the workspace" });
4916
- var S2 = e2.optional(e2.array(t2));
4917
- o2.add(S2, { description: "The color stops for the base gradient color pattern used in the workspace" });
4918
- 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 });
4919
- 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 });
4920
- var De = e2.object({ dark: Re, light: Ue });
4921
- 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 });
4922
- var r2 = e2.optional(e2.url());
4923
- o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
4924
- var y = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
4925
- o2.add(y, { description: "A list of remote registry URLs used by Storm Software" });
4926
- var b = e2.union([Be, De]);
4927
- o2.add(b, { description: "Colors used for various workspace elements" });
4928
- var C = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), b);
4929
- o2.add(C, { description: "Storm theme config values used for styling various package elements" });
4930
- var _ = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
4931
- 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." });
4932
- var L = e2.string().check(e2.trim());
4933
- o2.add(L, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
4934
- var j = e2.string().check(e2.trim());
4935
- o2.add(j, { description: "The email of the workspace bot" });
4936
- var A2 = e2.object({ name: L, email: j });
4937
- o2.add(A2, { description: "The workspace's bot user's config used to automated various operations tasks" });
4938
- var R = e2.optional(e2.string().check(e2.trim(), e2.url()));
4939
- o2.add(R, { description: "A URL to a banner image used to display the workspace's release" });
4940
- var U = e2._default(e2.string().check(e2.trim()), A);
4941
- o2.add(U, { description: "The alt text for the workspace's release banner image" });
4942
- var D = e2.object({ url: R, alt: U });
4943
- o2.add(D, { description: "The workspace's banner image used during the release process" });
4944
- var B = e2.optional(e2.string().check(e2.trim()));
4945
- o2.add(B, { description: "A header message appended to the start of the workspace's release notes" });
4946
- var F = e2.optional(e2.string().check(e2.trim()));
4947
- o2.add(F, { description: "A footer message appended to the end of the workspace's release notes" });
4948
- var N = e2.object({ banner: e2.union([D, e2.string().check(e2.trim(), e2.url())]), header: B, footer: F });
4949
- o2.add(N, { description: "The workspace's release config used during the release process" });
4950
- var E2 = e2.optional(e2.string().check(e2.trim()));
4951
- o2.add(E2, { description: "A Twitter/X account associated with the organization/project" });
4952
- var M = e2.optional(e2.string().check(e2.trim()));
4953
- o2.add(M, { description: "A Discord account associated with the organization/project" });
4954
- var O = e2.optional(e2.string().check(e2.trim()));
4955
- o2.add(O, { description: "A Telegram account associated with the organization/project" });
4956
- var I = e2.optional(e2.string().check(e2.trim()));
4957
- o2.add(I, { description: "A Slack account associated with the organization/project" });
4958
- var G = e2.optional(e2.string().check(e2.trim()));
4959
- o2.add(G, { description: "A Medium account associated with the organization/project" });
4960
- var H = e2.optional(e2.string().check(e2.trim()));
4961
- o2.add(H, { description: "A GitHub account associated with the organization/project" });
4962
- var J = e2.object({ twitter: E2, discord: M, telegram: O, slack: I, medium: G, github: H });
4963
- o2.add(J, { description: "The workspace's account config used to store various social media links" });
4964
- var W = e2.optional(e2.string().check(e2.trim()));
4965
- o2.add(W, { description: "The directory used to store the environment's cached file data" });
4966
- var P = e2.optional(e2.string().check(e2.trim()));
4967
- o2.add(P, { description: "The directory used to store the environment's data files" });
4968
- var $ = e2.optional(e2.string().check(e2.trim()));
4969
- o2.add($, { description: "The directory used to store the environment's configuration files" });
4970
- var V = e2.optional(e2.string().check(e2.trim()));
4971
- o2.add(V, { description: "The directory used to store the environment's temp files" });
4972
- var X = e2.optional(e2.string().check(e2.trim()));
4973
- o2.add(X, { description: "The directory used to store the environment's log files" });
4974
- var Y = e2._default(e2.string().check(e2.trim()), "dist");
4975
- o2.add(Y, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
4976
- var q = e2.object({ cache: W, data: P, config: $, temp: V, log: X, build: Y });
4977
- o2.add(q, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
4978
- var K = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
4979
- o2.add(K, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
4980
- var Q = e2._default(e2.string().check(e2.trim()), S);
4981
- o2.add(Q, { description: "The path to the workspace's error codes JSON file" });
4982
- var Z = e2.optional(e2.url());
4983
- o2.add(Z, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
4984
- var ee = e2.object({ codesFile: Q, url: Z });
4985
- o2.add(ee, { description: "The workspace's error config used when creating error details during a system error" });
4986
- var oe = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4987
- o2.add(oe, { description: "The name of the organization" });
4988
- var te = e2.optional(e2.string().check(e2.trim()));
4989
- o2.add(te, { description: "A description of the organization" });
4990
- var re = e2.optional(e2.url());
4991
- o2.add(re, { description: "A URL to the organization's logo image" });
4992
- var ae = e2.optional(e2.url());
4993
- o2.add(ae, { description: "A URL to the organization's icon image" });
4994
- var ce = e2.optional(e2.url());
4995
- o2.add(ce, { description: "A URL to a page that provides more information about the organization" });
4996
- var ie = e2.object({ name: oe, description: te, logo: re, icon: ae, url: ce });
4997
- o2.add(ie, { description: "The workspace's organization details" });
4998
- var se = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
4999
- o2.add(se, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
5000
- var ne = e2.string().check(e2.trim(), e2.toLowerCase());
5001
- o2.add(ne, { description: "The name of the workspace/project/service/package/scope using this configuration" });
5002
- var de = e2.string().check(e2.trim(), e2.toLowerCase());
5003
- o2.add(de, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
5004
- var pe = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
5005
- o2.add(pe, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
5006
- var he = e2.string().check(e2.trim(), e2.toLowerCase());
5007
- o2.add(he, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
5008
- var le = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
5009
- o2.add(le, { description: "The license type of the package" });
5010
- var me = e2.optional(e2.url());
5011
- o2.add(me, { description: "The homepage of the workspace" });
5012
- var ze = e2.optional(e2.url());
5013
- o2.add(ze, { description: "The documentation site for the workspace" });
5014
- var ge = e2.optional(e2.url());
5015
- o2.add(ge, { description: "The development portal site for the workspace" });
5016
- var fe = e2.optional(e2.url());
5017
- o2.add(fe, { description: "The licensing site for the workspace" });
5018
- var ue = e2.optional(e2.url());
5019
- o2.add(ue, { description: "The contact site for the workspace" });
5020
- var ke = e2.optional(e2.url());
5021
- o2.add(ke, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
5022
- var we = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
5023
- o2.add(we, { description: "The branch of the workspace" });
5024
- var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5025
- o2.add(Se, { description: "A tag specifying the version pre-release identifier" });
5026
- var be = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
5027
- o2.add(be, { description: "The owner of the package" });
5028
- var xe = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
5029
- o2.add(xe, { description: "The current runtime environment mode for the package" });
5030
- var Te = e2.string().check(e2.trim(), e2.toLowerCase());
5031
- o2.add(Te, { description: "The root directory of the workspace" });
5032
- var ve = e2._default(e2.boolean(), false);
5033
- o2.add(ve, { description: "Should all known types of workspace caching be skipped?" });
5034
- var ye = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
5035
- o2.add(ye, { description: "The JavaScript/TypeScript package manager used by the repository" });
5036
- var Ce = e2._default(e2.string().check(e2.trim()), "America/New_York");
5037
- o2.add(Ce, { description: "The default timezone of the workspace" });
5038
- var _e = e2._default(e2.string().check(e2.trim()), "en-US");
5039
- o2.add(_e, { description: "The default locale of the workspace" });
5040
- var Le = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "performance", "debug", "trace", "all"]), "info");
5041
- 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`)." });
5042
- var je = e2._default(e2.boolean(), true);
5043
- o2.add(je, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
5044
- var Ae = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
5045
- o2.add(Ae, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
5046
- var x = e2._default(e2.record(e2.string(), e2.any()), {});
5047
- o2.add(x, { description: "Configuration of each used extension" });
5048
- 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 });
5049
- 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." });
5050
-
5051
- // ../config/dist/chunk-YKRE3MWC.js
5052
- init_cjs_shims();
5053
- var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "performance", "positive", "negative"];
5054
-
5055
- // ../config-tools/dist/chunk-RGET2UQV.js
5056
- var import_node_fs8 = require("fs");
5057
- var import_promises5 = require("fs/promises");
5058
- var import_node_path5 = require("path");
5059
- async function getPackageJsonConfig(root) {
5060
- let license = i;
5061
- let homepage = void 0;
5062
- let support = void 0;
5063
- let name = void 0;
5064
- let namespace = void 0;
5065
- let repository = void 0;
5066
- const workspaceRoot = findWorkspaceRoot2(root);
5067
- if ((0, import_node_fs8.existsSync)((0, import_node_path5.join)(workspaceRoot, "package.json"))) {
5068
- const file = await (0, import_promises5.readFile)(
5069
- joinPaths2(workspaceRoot, "package.json"),
5070
- "utf8"
5071
- );
5072
- if (file) {
5073
- const packageJson = JSON.parse(file);
5074
- if (packageJson.name) {
5075
- name = packageJson.name;
5076
- }
5077
- if (packageJson.namespace) {
5078
- namespace = packageJson.namespace;
5079
- }
5080
- if (packageJson.repository) {
5081
- if (typeof packageJson.repository === "string") {
5082
- repository = packageJson.repository;
5083
- } else if (packageJson.repository.url) {
5084
- repository = packageJson.repository.url;
5085
- }
5086
- }
5087
- if (packageJson.license) {
5088
- license = packageJson.license;
5089
- }
5090
- if (packageJson.homepage) {
5091
- homepage = packageJson.homepage;
5092
- }
5093
- if (packageJson.bugs) {
5094
- if (typeof packageJson.bugs === "string") {
5095
- support = packageJson.bugs;
5096
- } else if (packageJson.bugs.url) {
5097
- support = packageJson.bugs.url;
5098
- }
5099
- }
5100
- }
5101
- }
5102
- return {
5103
- workspaceRoot,
5104
- name,
5105
- namespace,
5106
- repository,
5107
- license,
5108
- homepage,
5109
- support
5110
- };
5111
- }
5112
- function applyDefaultConfig(config) {
5113
- if (!config.support && config.contact) {
5114
- config.support = config.contact;
5115
- }
5116
- if (!config.contact && config.support) {
5117
- config.contact = config.support;
5118
- }
5119
- if (config.homepage) {
5120
- if (!config.docs) {
5121
- config.docs = `${config.homepage}/docs`;
5122
- }
5123
- if (!config.license) {
5124
- config.license = `${config.homepage}/license`;
5125
- }
5126
- if (!config.support) {
5127
- config.support = `${config.homepage}/support`;
5128
- }
5129
- if (!config.contact) {
5130
- config.contact = `${config.homepage}/contact`;
5131
- }
5132
- if (!config.error?.codesFile || !config?.error?.url) {
5133
- config.error ??= { codesFile: S };
5134
- if (config.homepage) {
5135
- config.error.url ??= `${config.homepage}/errors`;
5136
- }
5137
- }
5138
- }
5139
- return config;
5140
- }
5141
-
5142
- // ../config-tools/dist/chunk-SDSQ2HHF.js
5143
- init_cjs_shims();
5144
- var setExtensionEnv = (extensionName, extension) => {
5145
- for (const key of Object.keys(extension ?? {})) {
5146
- if (extension[key]) {
5147
- const result = key?.replace(
5148
- /([A-Z])+/g,
5149
- (input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
5150
- ).split(/(?=[A-Z])|[.\-\s_]/).map((x2) => x2.toLowerCase()) ?? [];
5151
- let extensionKey;
5152
- if (result.length === 0) {
5153
- return;
5154
- }
5155
- if (result.length === 1) {
5156
- extensionKey = result[0]?.toUpperCase() ?? "";
5157
- } else {
5158
- extensionKey = result.reduce((ret, part) => {
5159
- return `${ret}_${part.toLowerCase()}`;
5160
- });
5161
- }
5162
- process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
5163
- }
5164
- }
5165
- };
5166
- var setConfigEnv = (config) => {
5167
- const prefix = "STORM_";
5168
- if (config.extends) {
5169
- 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;
5170
4708
  }
5171
4709
  if (config.name) {
5172
4710
  process.env[`${prefix}NAME`] = config.name;
@@ -5521,8 +5059,214 @@ var setBaseThemeColorsEnv = (prefix, config) => {
5521
5059
  }
5522
5060
  };
5523
5061
 
5524
- // ../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
5525
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
5526
5270
  var getExtensionEnv = (extensionName) => {
5527
5271
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
5528
5272
  return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
@@ -5640,108 +5384,374 @@ var getConfigEnv = () => {
5640
5384
  config.docs = `${config.homepage}/docs`;
5641
5385
  }
5642
5386
  }
5643
- if (config.licensing === a) {
5644
- if (config.homepage === r) {
5645
- config.licensing = `${r}/projects/${config.name}/licensing`;
5646
- } else {
5647
- 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
+ }
5648
5654
  }
5649
5655
  }
5650
- const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
5651
- if (serializedConfig) {
5652
- const parsed = JSON.parse(serializedConfig);
5653
- config = {
5654
- ...config,
5655
- ...parsed,
5656
- colors: { ...config.colors, ...parsed.colors },
5657
- extensions: { ...config.extensions, ...parsed.extensions }
5658
- };
5656
+ if (!config || Object.keys(config).length === 0) {
5657
+ return void 0;
5659
5658
  }
5659
+ config.configFile = configFile;
5660
5660
  return config;
5661
5661
  };
5662
- var getThemeColorsEnv = (prefix, theme) => {
5663
- const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
5664
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
5665
- };
5666
- var getSingleThemeColorsEnv = (prefix) => {
5667
- const gradient = [];
5668
- if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5669
- gradient.push(
5670
- process.env[`${prefix}GRADIENT_START`],
5671
- 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"
5672
5680
  );
5673
- } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5674
- let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5675
- while (process.env[`${prefix}GRADIENT_${index}`]) {
5676
- gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5677
- 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
+ }
5678
5709
  }
5679
5710
  }
5680
5711
  return {
5681
- dark: process.env[`${prefix}DARK`],
5682
- light: process.env[`${prefix}LIGHT`],
5683
- brand: process.env[`${prefix}BRAND`],
5684
- alternate: process.env[`${prefix}ALTERNATE`],
5685
- accent: process.env[`${prefix}ACCENT`],
5686
- link: process.env[`${prefix}LINK`],
5687
- help: process.env[`${prefix}HELP`],
5688
- success: process.env[`${prefix}SUCCESS`],
5689
- info: process.env[`${prefix}INFO`],
5690
- debug: process.env[`${prefix}DEBUG`],
5691
- warning: process.env[`${prefix}WARNING`],
5692
- danger: process.env[`${prefix}DANGER`],
5693
- fatal: process.env[`${prefix}FATAL`],
5694
- performance: process.env[`${prefix}PERFORMANCE`],
5695
- positive: process.env[`${prefix}POSITIVE`],
5696
- negative: process.env[`${prefix}NEGATIVE`],
5697
- gradient
5698
- };
5699
- };
5700
- var getMultiThemeColorsEnv = (prefix) => {
5701
- return {
5702
- light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
5703
- dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
5712
+ workspaceRoot,
5713
+ name,
5714
+ namespace,
5715
+ repository,
5716
+ license,
5717
+ homepage,
5718
+ support
5704
5719
  };
5705
- };
5706
- var getBaseThemeColorsEnv = (prefix) => {
5707
- const gradient = [];
5708
- if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
5709
- gradient.push(
5710
- process.env[`${prefix}GRADIENT_START`],
5711
- process.env[`${prefix}GRADIENT_END`]
5712
- );
5713
- } else if (process.env[`${prefix}GRADIENT_0`] || process.env[`${prefix}GRADIENT_1`]) {
5714
- let index = process.env[`${prefix}GRADIENT_0`] ? 0 : 1;
5715
- while (process.env[`${prefix}GRADIENT_${index}`]) {
5716
- gradient.push(process.env[`${prefix}GRADIENT_${index}`]);
5717
- 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
+ }
5718
5746
  }
5719
5747
  }
5720
- return {
5721
- foreground: process.env[`${prefix}FOREGROUND`],
5722
- background: process.env[`${prefix}BACKGROUND`],
5723
- brand: process.env[`${prefix}BRAND`],
5724
- alternate: process.env[`${prefix}ALTERNATE`],
5725
- accent: process.env[`${prefix}ACCENT`],
5726
- link: process.env[`${prefix}LINK`],
5727
- help: process.env[`${prefix}HELP`],
5728
- success: process.env[`${prefix}SUCCESS`],
5729
- info: process.env[`${prefix}INFO`],
5730
- debug: process.env[`${prefix}DEBUG`],
5731
- warning: process.env[`${prefix}WARNING`],
5732
- danger: process.env[`${prefix}DANGER`],
5733
- fatal: process.env[`${prefix}FATAL`],
5734
- performance: process.env[`${prefix}PERFORMANCE`],
5735
- positive: process.env[`${prefix}POSITIVE`],
5736
- negative: process.env[`${prefix}NEGATIVE`],
5737
- gradient
5738
- };
5739
- };
5748
+ return config;
5749
+ }
5740
5750
 
5741
5751
  // ../config/dist/schema.js
5742
5752
  init_cjs_shims();
5743
5753
 
5744
- // ../config-tools/dist/chunk-UWI3QVYJ.js
5754
+ // ../config-tools/dist/chunk-DW5363CG.js
5745
5755
  var import_defu4 = __toESM(require("defu"), 1);
5746
5756
  var import_node_fs9 = require("fs");
5747
5757
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -5842,7 +5852,7 @@ ${formatLogMessage(config)}`,
5842
5852
  return config;
5843
5853
  };
5844
5854
 
5845
- // ../config-tools/dist/chunk-TIH4RSTL.js
5855
+ // ../config-tools/dist/chunk-KKF5NXBI.js
5846
5856
  function getConfig(workspaceRoot, skipLogs = false) {
5847
5857
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
5848
5858
  }