@storm-software/workspace-tools 1.72.3 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72760,23 +72760,71 @@ var init_lib = __esm({
72760
72760
  });
72761
72761
 
72762
72762
  // packages/config/src/schema.ts
72763
- var ColorConfigSchema, StormConfigSchema;
72763
+ var DarkColorSchema, LightColorSchema, PrimaryColorSchema, SecondaryColorSchema, TertiaryColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
72764
72764
  var init_schema = __esm({
72765
72765
  "packages/config/src/schema.ts"() {
72766
72766
  init_lib();
72767
- ColorConfigSchema = z2.object({
72768
- dark: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace"),
72769
- light: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),
72770
- primary: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace"),
72771
- secondary: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace"),
72772
- tertiary: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace"),
72773
- accent: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace"),
72774
- success: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),
72775
- info: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace"),
72776
- warning: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),
72777
- error: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace"),
72778
- fatal: z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
72779
- }).describe("Colors used for various workspace elements");
72767
+ DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
72768
+ LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
72769
+ PrimaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
72770
+ SecondaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
72771
+ TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
72772
+ AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
72773
+ SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
72774
+ InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
72775
+ WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
72776
+ ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
72777
+ FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
72778
+ DarkThemeColorConfigSchema = z2.object({
72779
+ foreground: LightColorSchema,
72780
+ background: DarkColorSchema,
72781
+ primary: PrimaryColorSchema,
72782
+ secondary: SecondaryColorSchema,
72783
+ tertiary: TertiaryColorSchema,
72784
+ accent: AccentColorSchema,
72785
+ success: SuccessColorSchema,
72786
+ info: InfoColorSchema,
72787
+ warning: WarningColorSchema,
72788
+ error: ErrorColorSchema,
72789
+ fatal: FatalColorSchema
72790
+ });
72791
+ LightThemeColorConfigSchema = z2.object({
72792
+ foreground: DarkColorSchema,
72793
+ background: LightColorSchema,
72794
+ primary: PrimaryColorSchema,
72795
+ secondary: SecondaryColorSchema,
72796
+ tertiary: TertiaryColorSchema,
72797
+ accent: AccentColorSchema,
72798
+ success: SuccessColorSchema,
72799
+ info: InfoColorSchema,
72800
+ warning: WarningColorSchema,
72801
+ error: ErrorColorSchema,
72802
+ fatal: FatalColorSchema
72803
+ });
72804
+ MultiThemeColorConfigSchema = z2.object({
72805
+ dark: DarkThemeColorConfigSchema,
72806
+ light: LightThemeColorConfigSchema
72807
+ });
72808
+ SingleThemeColorConfigSchema = z2.object({
72809
+ dark: DarkColorSchema,
72810
+ light: LightColorSchema,
72811
+ primary: PrimaryColorSchema,
72812
+ secondary: SecondaryColorSchema,
72813
+ tertiary: TertiaryColorSchema,
72814
+ accent: AccentColorSchema,
72815
+ success: SuccessColorSchema,
72816
+ info: InfoColorSchema,
72817
+ warning: WarningColorSchema,
72818
+ error: ErrorColorSchema,
72819
+ fatal: FatalColorSchema
72820
+ });
72821
+ ColorConfigSchema = SingleThemeColorConfigSchema.or(
72822
+ MultiThemeColorConfigSchema
72823
+ ).describe("Colors used for various workspace elements");
72824
+ ColorConfigMapSchema = z2.union([
72825
+ z2.object({ "base": ColorConfigSchema }),
72826
+ z2.record(z2.string(), ColorConfigSchema)
72827
+ ]);
72780
72828
  StormConfigSchema = z2.object({
72781
72829
  extends: z2.string().trim().optional().describe(
72782
72830
  "The path to a base JSON file to use as a configuration preset file"
@@ -72827,7 +72875,7 @@ var init_schema = __esm({
72827
72875
  configFile: z2.string().trim().nullable().default(null).describe(
72828
72876
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
72829
72877
  ),
72830
- colors: ColorConfigSchema.describe(
72878
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
72831
72879
  "Storm theme config values used for styling various package elements"
72832
72880
  ),
72833
72881
  extensions: z2.record(z2.any()).optional().default({}).describe("Configuration of each used extension")
@@ -72838,8 +72886,22 @@ var init_schema = __esm({
72838
72886
  });
72839
72887
 
72840
72888
  // packages/config/src/types.ts
72889
+ var COLOR_KEYS;
72841
72890
  var init_types = __esm({
72842
72891
  "packages/config/src/types.ts"() {
72892
+ COLOR_KEYS = [
72893
+ "dark",
72894
+ "light",
72895
+ "primary",
72896
+ "secondary",
72897
+ "tertiary",
72898
+ "accent",
72899
+ "success",
72900
+ "info",
72901
+ "warning",
72902
+ "error",
72903
+ "fatal"
72904
+ ];
72843
72905
  }
72844
72906
  });
72845
72907
 
@@ -74617,8 +74679,10 @@ var init_logger = __esm({
74617
74679
  init_types2();
74618
74680
  init_get_log_level();
74619
74681
  init_chalk();
74682
+ init_get_default_config();
74620
74683
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
74621
74684
  let _chalk = getChalk();
74685
+ const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
74622
74686
  const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
74623
74687
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
74624
74688
  return (_6) => {
@@ -74628,9 +74692,7 @@ var init_logger = __esm({
74628
74692
  return (message) => {
74629
74693
  console.error(
74630
74694
  `
74631
- ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${_chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#7d1a1a").whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(
74632
- config?.colors?.error ? config.colors.error : "#1fb2a6"
74633
- )(message)}
74695
+ ${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.fatal).whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(colors.error)(message)}
74634
74696
 
74635
74697
  `
74636
74698
  );
@@ -74640,9 +74702,7 @@ ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
74640
74702
  return (message) => {
74641
74703
  console.error(
74642
74704
  `
74643
- ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${_chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").whiteBright(" \u2718 Error ")} ${_chalk.hex(
74644
- config?.colors?.error ? config.colors.error : "#7d1a1a"
74645
- )(message)}
74705
+ ${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.error).whiteBright(" \u2718 Error ")} ${_chalk.hex(colors.error)(message)}
74646
74706
  `
74647
74707
  );
74648
74708
  };
@@ -74651,9 +74711,7 @@ ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
74651
74711
  return (message) => {
74652
74712
  console.warn(
74653
74713
  `
74654
- ${_chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")("> ")} ${_chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").whiteBright(" \u26A0 Warn ")} ${_chalk.hex(
74655
- config?.colors?.warning ? config.colors.warning : "#fcc419"
74656
- )(message)}
74714
+ ${_chalk.bold.hex(colors.warning)("> ")} ${_chalk.bold.bgHex(colors.warning).whiteBright(" \u26A0 Warn ")} ${_chalk.hex(colors.warning)(message)}
74657
74715
  `
74658
74716
  );
74659
74717
  };
@@ -74662,9 +74720,7 @@ ${_chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")("
74662
74720
  return (message) => {
74663
74721
  console.info(
74664
74722
  `
74665
- ${_chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${_chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").whiteBright(" \u2713 Success ")} ${_chalk.hex(
74666
- config?.colors?.success ? config.colors.success : "#087f5b"
74667
- )(message)}
74723
+ ${_chalk.bold.hex(colors.success)(">")} ${_chalk.bold.bgHex(colors.success).whiteBright(" \u2713 Success ")} ${_chalk.hex(colors.success)(message)}
74668
74724
  `
74669
74725
  );
74670
74726
  };
@@ -74673,9 +74729,7 @@ ${_chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")("
74673
74729
  return (message) => {
74674
74730
  console.info(
74675
74731
  `
74676
- ${_chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${_chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").whiteBright(" \u2139 Info ")} ${_chalk.hex(
74677
- config?.colors?.info ? config.colors.info : "#0ea5e9"
74678
- )(message)}
74732
+ ${_chalk.bold.hex(colors.info)(">")} ${_chalk.bold.bgHex(colors.info).whiteBright(" \u2139 Info ")} ${_chalk.hex(colors.info)(message)}
74679
74733
  `
74680
74734
  );
74681
74735
  };
@@ -74684,9 +74738,7 @@ ${_chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} $
74684
74738
  return (message) => {
74685
74739
  console.debug(
74686
74740
  `
74687
- ${_chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${_chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(
74688
- config?.colors?.primary ? config.colors.primary : "#1fb2a6"
74689
- )(message)}
74741
+ ${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(colors.primary)(message)}
74690
74742
  `
74691
74743
  );
74692
74744
  };
@@ -74694,9 +74746,7 @@ ${_chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")("
74694
74746
  return (message) => {
74695
74747
  console.log(
74696
74748
  `
74697
- ${_chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${_chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").whiteBright(" \u2709 System ")} ${_chalk.hex(
74698
- config?.colors?.primary ? config.colors.primary : "#1fb2a6"
74699
- )(message)}
74749
+ ${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whiteBright(" \u2709 System ")} ${_chalk.hex(colors.primary)(message)}
74700
74750
  `
74701
74751
  );
74702
74752
  };
@@ -74900,9 +74950,10 @@ var init_utilities = __esm({
74900
74950
  });
74901
74951
 
74902
74952
  // packages/config-tools/src/env/get-env.ts
74903
- var getExtensionEnv, getConfigEnv;
74953
+ var getExtensionEnv, getConfigEnv, getThemeColorConfigEnv, getSingleThemeColorConfigEnv, getMultiThemeColorConfigEnv, getBaseThemeColorConfigEnv;
74904
74954
  var init_get_env = __esm({
74905
74955
  "packages/config-tools/src/env/get-env.ts"() {
74956
+ init_src();
74906
74957
  init_utilities();
74907
74958
  init_correct_paths();
74908
74959
  getExtensionEnv = (extensionName) => {
@@ -74943,16 +74994,6 @@ var init_get_env = __esm({
74943
74994
  ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
74944
74995
  process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
74945
74996
  ) : void 0,
74946
- colors: {
74947
- primary: process.env[`${prefix}COLOR_PRIMARY`],
74948
- dark: process.env[`${prefix}COLOR_DARK`],
74949
- light: process.env[`${prefix}COLOR_LIGHT`],
74950
- success: process.env[`${prefix}COLOR_SUCCESS`],
74951
- info: process.env[`${prefix}COLOR_INFO`],
74952
- warning: process.env[`${prefix}COLOR_WARNING`],
74953
- error: process.env[`${prefix}COLOR_ERROR`],
74954
- fatal: process.env[`${prefix}COLOR_FATAL`]
74955
- },
74956
74997
  repository: process.env[`${prefix}REPOSITORY`],
74957
74998
  branch: process.env[`${prefix}BRANCH`],
74958
74999
  preid: process.env[`${prefix}PRE_ID`],
@@ -74963,6 +75004,18 @@ var init_get_env = __esm({
74963
75004
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
74964
75005
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0
74965
75006
  };
75007
+ const themeNames = Object.keys(process.env).filter(
75008
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every(
75009
+ (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
75010
+ )
75011
+ );
75012
+ config.colors = themeNames.length > 0 ? themeNames.reduce(
75013
+ (ret, themeName) => {
75014
+ ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
75015
+ return ret;
75016
+ },
75017
+ {}
75018
+ ) : getThemeColorConfigEnv(prefix);
74966
75019
  const serializedConfig = process.env[`${prefix}CONFIG`];
74967
75020
  if (serializedConfig) {
74968
75021
  const parsed = JSON.parse(serializedConfig);
@@ -74975,11 +75028,53 @@ var init_get_env = __esm({
74975
75028
  }
74976
75029
  return config;
74977
75030
  };
75031
+ getThemeColorConfigEnv = (prefix, theme) => {
75032
+ const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
75033
+ return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
75034
+ };
75035
+ getSingleThemeColorConfigEnv = (prefix) => {
75036
+ return {
75037
+ dark: process.env[`${prefix}DARK`],
75038
+ light: process.env[`${prefix}LIGHT`],
75039
+ primary: process.env[`${prefix}PRIMARY`],
75040
+ secondary: process.env[`${prefix}SECONDARY`],
75041
+ tertiary: process.env[`${prefix}TERTIARY`],
75042
+ accent: process.env[`${prefix}ACCENT`],
75043
+ success: process.env[`${prefix}SUCCESS`],
75044
+ info: process.env[`${prefix}INFO`],
75045
+ warning: process.env[`${prefix}WARNING`],
75046
+ error: process.env[`${prefix}ERROR`],
75047
+ fatal: process.env[`${prefix}FATAL`]
75048
+ };
75049
+ };
75050
+ getMultiThemeColorConfigEnv = (prefix) => {
75051
+ return {
75052
+ light: getBaseThemeColorConfigEnv(
75053
+ `${prefix}_LIGHT_`
75054
+ ),
75055
+ dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
75056
+ };
75057
+ };
75058
+ getBaseThemeColorConfigEnv = (prefix) => {
75059
+ return {
75060
+ foreground: process.env[`${prefix}FOREGROUND`],
75061
+ background: process.env[`${prefix}BACKGROUND`],
75062
+ primary: process.env[`${prefix}PRIMARY`],
75063
+ secondary: process.env[`${prefix}SECONDARY`],
75064
+ tertiary: process.env[`${prefix}TERTIARY`],
75065
+ accent: process.env[`${prefix}ACCENT`],
75066
+ success: process.env[`${prefix}SUCCESS`],
75067
+ info: process.env[`${prefix}INFO`],
75068
+ warning: process.env[`${prefix}WARNING`],
75069
+ error: process.env[`${prefix}ERROR`],
75070
+ fatal: process.env[`${prefix}FATAL`]
75071
+ };
75072
+ };
74978
75073
  }
74979
75074
  });
74980
75075
 
74981
75076
  // packages/config-tools/src/env/set-env.ts
74982
- var setExtensionEnv, setConfigEnv;
75077
+ var setExtensionEnv, setConfigEnv, setThemeColorConfigEnv, setSingleThemeColorConfigEnv, setMultiThemeColorConfigEnv, setBaseThemeColorConfigEnv;
74983
75078
  var init_set_env = __esm({
74984
75079
  "packages/config-tools/src/env/set-env.ts"() {
74985
75080
  init_types2();
@@ -75095,29 +75190,15 @@ var init_set_env = __esm({
75095
75190
  process.env.CI = String(config.ci);
75096
75191
  process.env.CONTINUOUS_INTEGRATION = String(config.ci);
75097
75192
  }
75098
- if (config.colors.primary) {
75099
- process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
75100
- }
75101
- if (config.colors.dark) {
75102
- process.env[`${prefix}COLOR_DARK`] = config.colors.dark;
75103
- }
75104
- if (config.colors.light) {
75105
- process.env[`${prefix}COLOR_LIGHT`] = config.colors.light;
75106
- }
75107
- if (config.colors.success) {
75108
- process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
75109
- }
75110
- if (config.colors.info) {
75111
- process.env[`${prefix}COLOR_INFO`] = config.colors.info;
75112
- }
75113
- if (config.colors.warning) {
75114
- process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
75115
- }
75116
- if (config.colors.error) {
75117
- process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
75118
- }
75119
- if (config.colors.fatal) {
75120
- process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
75193
+ if (config.colors?.base?.light || config.colors?.base?.dark) {
75194
+ for (const key of Object.keys(config.colors)) {
75195
+ setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
75196
+ }
75197
+ } else {
75198
+ setThemeColorConfigEnv(
75199
+ `${prefix}COLOR_`,
75200
+ config.colors
75201
+ );
75121
75202
  }
75122
75203
  if (config.repository) {
75123
75204
  process.env[`${prefix}REPOSITORY`] = config.repository;
@@ -75146,6 +75227,85 @@ var init_set_env = __esm({
75146
75227
  config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
75147
75228
  }
75148
75229
  };
75230
+ setThemeColorConfigEnv = (prefix, config) => {
75231
+ return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
75232
+ };
75233
+ setSingleThemeColorConfigEnv = (prefix, config) => {
75234
+ if (config.dark) {
75235
+ process.env[`${prefix}DARK`] = config.dark;
75236
+ }
75237
+ if (config.light) {
75238
+ process.env[`${prefix}LIGHT`] = config.light;
75239
+ }
75240
+ if (config.primary) {
75241
+ process.env[`${prefix}PRIMARY`] = config.primary;
75242
+ }
75243
+ if (config.secondary) {
75244
+ process.env[`${prefix}SECONDARY`] = config.secondary;
75245
+ }
75246
+ if (config.tertiary) {
75247
+ process.env[`${prefix}TERTIARY`] = config.tertiary;
75248
+ }
75249
+ if (config.accent) {
75250
+ process.env[`${prefix}ACCENT`] = config.accent;
75251
+ }
75252
+ if (config.success) {
75253
+ process.env[`${prefix}SUCCESS`] = config.success;
75254
+ }
75255
+ if (config.info) {
75256
+ process.env[`${prefix}INFO`] = config.info;
75257
+ }
75258
+ if (config.warning) {
75259
+ process.env[`${prefix}WARNING`] = config.warning;
75260
+ }
75261
+ if (config.error) {
75262
+ process.env[`${prefix}ERROR`] = config.error;
75263
+ }
75264
+ if (config.fatal) {
75265
+ process.env[`${prefix}FATAL`] = config.fatal;
75266
+ }
75267
+ };
75268
+ setMultiThemeColorConfigEnv = (prefix, config) => {
75269
+ return {
75270
+ light: setBaseThemeColorConfigEnv(`${prefix}_LIGHT_`, config.light),
75271
+ dark: setBaseThemeColorConfigEnv(`${prefix}_DARK_`, config.dark)
75272
+ };
75273
+ };
75274
+ setBaseThemeColorConfigEnv = (prefix, config) => {
75275
+ if (config.foreground) {
75276
+ process.env[`${prefix}FOREGROUND`] = config.foreground;
75277
+ }
75278
+ if (config.background) {
75279
+ process.env[`${prefix}BACKGROUND`] = config.background;
75280
+ }
75281
+ if (config.primary) {
75282
+ process.env[`${prefix}PRIMARY`] = config.primary;
75283
+ }
75284
+ if (config.secondary) {
75285
+ process.env[`${prefix}SECONDARY`] = config.secondary;
75286
+ }
75287
+ if (config.tertiary) {
75288
+ process.env[`${prefix}TERTIARY`] = config.tertiary;
75289
+ }
75290
+ if (config.accent) {
75291
+ process.env[`${prefix}ACCENT`] = config.accent;
75292
+ }
75293
+ if (config.success) {
75294
+ process.env[`${prefix}SUCCESS`] = config.success;
75295
+ }
75296
+ if (config.info) {
75297
+ process.env[`${prefix}INFO`] = config.info;
75298
+ }
75299
+ if (config.warning) {
75300
+ process.env[`${prefix}WARNING`] = config.warning;
75301
+ }
75302
+ if (config.error) {
75303
+ process.env[`${prefix}ERROR`] = config.error;
75304
+ }
75305
+ if (config.fatal) {
75306
+ process.env[`${prefix}FATAL`] = config.fatal;
75307
+ }
75308
+ };
75149
75309
  }
75150
75310
  });
75151
75311
 
@@ -77822,7 +77982,7 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
77822
77982
  var import_node_child_process6 = require("node:child_process");
77823
77983
  var import_git = require("nx/src/command-line/release/utils/git");
77824
77984
  var import_resolve_semver_specifier = require("nx/src/command-line/release/utils/resolve-semver-specifier");
77825
- var import_config2 = require("nx/src/command-line/release/config/config");
77985
+ var import_config3 = require("nx/src/command-line/release/config/config");
77826
77986
  var import_semver2 = __toESM(require_semver2());
77827
77987
  var import_resolve_local_package_dependencies = __toESM(require_resolve_local_package_dependencies());
77828
77988
 
@@ -80983,7 +81143,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
80983
81143
  }
80984
81144
  case "prompt": {
80985
81145
  const maybeLogReleaseGroup = (log2) => {
80986
- if (options.releaseGroup.name === import_config2.IMPLICIT_DEFAULT_RELEASE_GROUP) {
81146
+ if (options.releaseGroup.name === import_config3.IMPLICIT_DEFAULT_RELEASE_GROUP) {
80987
81147
  return log2;
80988
81148
  }
80989
81149
  return `${log2} within release group "${options.releaseGroup.name}"`;