@storm-software/workspace-tools 1.145.0 → 1.146.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.
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -68262,7 +68270,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
68262
68270
  };
68263
68271
 
68264
68272
  // packages/workspace-tools/src/base/base-executor.ts
68265
- var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
68273
+ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
68266
68274
  const {
68267
68275
  getStopwatch: getStopwatch2,
68268
68276
  writeDebug: writeDebug2,
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -68262,7 +68270,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
68262
68270
  };
68263
68271
 
68264
68272
  // packages/workspace-tools/src/base/base-executor.ts
68265
- var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
68273
+ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
68266
68274
  const {
68267
68275
  getStopwatch: getStopwatch2,
68268
68276
  writeDebug: writeDebug2,
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -68262,7 +68270,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
68262
68270
  };
68263
68271
 
68264
68272
  // packages/workspace-tools/src/base/base-executor.ts
68265
- var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
68273
+ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
68266
68274
  const {
68267
68275
  getStopwatch: getStopwatch2,
68268
68276
  writeDebug: writeDebug2,
@@ -67513,9 +67513,6 @@ var init_schema = __esm({
67513
67513
  "The worker of the package (this is the bot that will be used to perform various tasks)"
67514
67514
  ),
67515
67515
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
67516
- ci: z2.boolean().default(true).describe(
67517
- "An indicator specifying if the current environment is a CI environment"
67518
- ),
67519
67516
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67520
67517
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67521
67518
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -67642,7 +67639,6 @@ var init_get_default_config = __esm({
67642
67639
  env: "production",
67643
67640
  branch: "main",
67644
67641
  organization: "storm-software",
67645
- ci: true,
67646
67642
  configFile: null,
67647
67643
  runtimeVersion: "1.0.0",
67648
67644
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -69549,11 +69545,13 @@ var init_run = __esm({
69549
69545
  "packages/config-tools/src/utilities/run.ts"() {
69550
69546
  import_node_child_process5 = require("node:child_process");
69551
69547
  LARGE_BUFFER = 1024 * 1e6;
69552
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
69548
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
69553
69549
  return (0, import_node_child_process5.execSync)(command, {
69554
69550
  cwd: cwd2,
69555
69551
  env: {
69556
69552
  ...process.env,
69553
+ ...env,
69554
+ CLICOLOR: "true",
69557
69555
  FORCE_COLOR: "true"
69558
69556
  },
69559
69557
  stdio,
@@ -69795,9 +69793,14 @@ var init_get_env = __esm({
69795
69793
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
69796
69794
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
69797
69795
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
69798
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
69799
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
69800
- ) : void 0,
69796
+ // ci:
69797
+ // process.env[`${prefix}CI`] !== undefined
69798
+ // ? Boolean(
69799
+ // process.env[`${prefix}CI`] ??
69800
+ // process.env.CI ??
69801
+ // process.env.CONTINUOUS_INTEGRATION
69802
+ // )
69803
+ // : undefined,
69801
69804
  repository: process.env[`${prefix}REPOSITORY`],
69802
69805
  branch: process.env[`${prefix}BRANCH`],
69803
69806
  preid: process.env[`${prefix}PRE_ID`],
@@ -69998,11 +70001,6 @@ var init_set_env = __esm({
69998
70001
  process.env.NODE_ENV = config.env;
69999
70002
  process.env.ENVIRONMENT = config.env;
70000
70003
  }
70001
- if (config.ci) {
70002
- process.env[`${prefix}CI`] = String(config.ci);
70003
- process.env.CI = String(config.ci);
70004
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
70005
- }
70006
70004
  if (config.colors?.base?.light || config.colors?.base?.dark) {
70007
70005
  for (const key of Object.keys(config.colors)) {
70008
70006
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -70171,7 +70169,7 @@ var init_create_storm_config = __esm({
70171
70169
  };
70172
70170
  createStormConfig = (extensionName, schema, workspaceRoot) => {
70173
70171
  let result;
70174
- if (!_static_cache) {
70172
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
70175
70173
  const config = getConfigEnv();
70176
70174
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
70177
70175
  result = StormConfigSchema.parse({
@@ -70184,7 +70182,7 @@ var init_create_storm_config = __esm({
70184
70182
  });
70185
70183
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
70186
70184
  } else {
70187
- result = _static_cache;
70185
+ result = _static_cache.data;
70188
70186
  }
70189
70187
  if (schema && extensionName) {
70190
70188
  result.extensions = {
@@ -70192,7 +70190,10 @@ var init_create_storm_config = __esm({
70192
70190
  [extensionName]: createConfigExtension(extensionName, schema)
70193
70191
  };
70194
70192
  }
70195
- _static_cache = result;
70193
+ _static_cache = {
70194
+ timestamp: Date.now(),
70195
+ data: result
70196
+ };
70196
70197
  return result;
70197
70198
  };
70198
70199
  createConfigExtension = (extensionName, schema) => {
@@ -70209,6 +70210,13 @@ var init_create_storm_config = __esm({
70209
70210
  };
70210
70211
  loadStormConfig = async (workspaceRoot) => {
70211
70212
  let config = {};
70213
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
70214
+ writeInfo(
70215
+ `Configuration cache hit - ${_static_cache.timestamp}`,
70216
+ _static_cache.data
70217
+ );
70218
+ return _static_cache.data;
70219
+ }
70212
70220
  let _workspaceRoot = workspaceRoot;
70213
70221
  if (!_workspaceRoot) {
70214
70222
  _workspaceRoot = findWorkspaceRoot();
@@ -301527,7 +301535,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
301527
301535
  };
301528
301536
 
301529
301537
  // packages/workspace-tools/src/base/base-executor.ts
301530
- var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
301538
+ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
301531
301539
  const {
301532
301540
  getStopwatch: getStopwatch2,
301533
301541
  writeDebug: writeDebug2,
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -68262,7 +68270,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
68262
68270
  };
68263
68271
 
68264
68272
  // packages/workspace-tools/src/base/base-executor.ts
68265
- var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
68273
+ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
68266
68274
  const {
68267
68275
  getStopwatch: getStopwatch2,
68268
68276
  writeDebug: writeDebug2,
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();