@storm-software/git-tools 2.124.86 → 2.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/bin/chunk-3IBASKZ6.cjs +16 -0
  3. package/bin/chunk-3IBASKZ6.cjs.map +1 -0
  4. package/bin/chunk-6FITE6HP.js +52 -0
  5. package/bin/chunk-6FITE6HP.js.map +1 -0
  6. package/bin/chunk-C7APS633.cjs +19 -0
  7. package/bin/chunk-C7APS633.cjs.map +1 -0
  8. package/bin/{chunk-ZBLIE7F7.cjs → chunk-DFXXNV3C.cjs} +2 -3
  9. package/bin/chunk-DFXXNV3C.cjs.map +1 -0
  10. package/bin/chunk-EI723ABQ.cjs +59 -0
  11. package/bin/chunk-EI723ABQ.cjs.map +1 -0
  12. package/bin/{chunk-Q3DQKTOI.js → chunk-HBLWPOJV.js} +5 -5
  13. package/bin/chunk-HBLWPOJV.js.map +1 -0
  14. package/bin/chunk-IA2Z3BAB.cjs +18 -0
  15. package/bin/chunk-IA2Z3BAB.cjs.map +1 -0
  16. package/bin/chunk-JE32WMBP.js +17 -0
  17. package/bin/chunk-JE32WMBP.js.map +1 -0
  18. package/bin/chunk-LHPUN2YZ.js +22 -0
  19. package/bin/chunk-LHPUN2YZ.js.map +1 -0
  20. package/bin/chunk-N7J3ORRT.js +14 -0
  21. package/bin/chunk-N7J3ORRT.js.map +1 -0
  22. package/bin/chunk-ROGUZ46T.js +22 -0
  23. package/bin/chunk-ROGUZ46T.js.map +1 -0
  24. package/bin/chunk-RZZ5UCVV.js +22 -0
  25. package/bin/chunk-RZZ5UCVV.js.map +1 -0
  26. package/bin/{chunk-WQI3QHPS.js → chunk-S3E6UR4Y.js} +3 -3
  27. package/bin/chunk-S3E6UR4Y.js.map +1 -0
  28. package/bin/chunk-S7Z6YPPG.js +16 -0
  29. package/bin/chunk-S7Z6YPPG.js.map +1 -0
  30. package/bin/chunk-XHWHVOBP.cjs +24 -0
  31. package/bin/chunk-XHWHVOBP.cjs.map +1 -0
  32. package/bin/{chunk-AU5PZKTN.cjs → chunk-YHZNDNCW.cjs} +5 -5
  33. package/bin/chunk-YHZNDNCW.cjs.map +1 -0
  34. package/bin/chunk-Z64XNZ43.cjs +24 -0
  35. package/bin/chunk-Z64XNZ43.cjs.map +1 -0
  36. package/bin/chunk-ZW2KYP2Z.cjs +24 -0
  37. package/bin/chunk-ZW2KYP2Z.cjs.map +1 -0
  38. package/bin/git.cjs +206 -84
  39. package/bin/git.cjs.map +1 -1
  40. package/bin/git.js +129 -7
  41. package/bin/git.js.map +1 -1
  42. package/bin/post-checkout.cjs +9 -21
  43. package/bin/post-checkout.cjs.map +1 -1
  44. package/bin/post-checkout.js +5 -17
  45. package/bin/post-checkout.js.map +1 -1
  46. package/bin/post-commit.cjs +9 -21
  47. package/bin/post-commit.cjs.map +1 -1
  48. package/bin/post-commit.js +5 -17
  49. package/bin/post-commit.js.map +1 -1
  50. package/bin/post-merge.cjs +9 -21
  51. package/bin/post-merge.cjs.map +1 -1
  52. package/bin/post-merge.js +5 -17
  53. package/bin/post-merge.js.map +1 -1
  54. package/bin/pre-commit.cjs +8 -16
  55. package/bin/pre-commit.cjs.map +1 -1
  56. package/bin/pre-commit.js +4 -12
  57. package/bin/pre-commit.js.map +1 -1
  58. package/bin/pre-install.cjs +8 -13
  59. package/bin/pre-install.cjs.map +1 -1
  60. package/bin/pre-install.js +4 -9
  61. package/bin/pre-install.js.map +1 -1
  62. package/bin/pre-push.cjs +9 -72
  63. package/bin/pre-push.cjs.map +1 -1
  64. package/bin/pre-push.js +5 -63
  65. package/bin/pre-push.js.map +1 -1
  66. package/bin/prepare.cjs +8 -11
  67. package/bin/prepare.cjs.map +1 -1
  68. package/bin/prepare.js +4 -7
  69. package/bin/prepare.js.map +1 -1
  70. package/bin/version-warning.cjs +7 -7
  71. package/bin/version-warning.js +2 -2
  72. package/dist/chunk-2NF67ZEY.js +14 -0
  73. package/dist/chunk-5DVCH44C.cjs +22 -0
  74. package/dist/{chunk-NY53WLGC.cjs → chunk-7ZSL4J35.cjs} +9 -9
  75. package/dist/chunk-AU2RMJUK.js +20 -0
  76. package/dist/chunk-BUQYMEBK.cjs +17 -0
  77. package/dist/chunk-C6MBULOZ.js +15 -0
  78. package/dist/chunk-DMVL4OYZ.cjs +14 -0
  79. package/dist/chunk-ENL3GCXS.cjs +2 -0
  80. package/dist/chunk-F2HQMRJH.cjs +16 -0
  81. package/dist/chunk-FJL2V56E.cjs +24 -0
  82. package/dist/chunk-GTOCMU46.cjs +57 -0
  83. package/dist/chunk-HMHOHK22.js +17 -0
  84. package/dist/{chunk-VVJA5N2W.js → chunk-HVTQXN3A.js} +3 -285
  85. package/dist/chunk-JOPN56T4.js +22 -0
  86. package/dist/chunk-LSTKPCAN.cjs +22 -0
  87. package/dist/chunk-Q47SPRY7.js +1 -0
  88. package/dist/chunk-QCNDIFYQ.cjs +20 -0
  89. package/dist/chunk-RK75BACO.js +50 -0
  90. package/dist/{chunk-EMYFDYKP.cjs → chunk-RQ67RJVN.cjs} +13 -296
  91. package/dist/chunk-SIFTTG22.cjs +303 -0
  92. package/dist/chunk-UQMGLURT.js +20 -0
  93. package/dist/{chunk-JCEVFJCA.js → chunk-USTER7R2.js} +2 -2
  94. package/dist/chunk-X7F62ZNF.js +290 -0
  95. package/dist/chunk-YUE6ZNKC.js +12 -0
  96. package/dist/chunk-Z4CPTYLS.cjs +22 -0
  97. package/dist/chunk-ZKDVZXHI.js +20 -0
  98. package/dist/commit/minimal.cjs +4 -4
  99. package/dist/commit/minimal.js +2 -2
  100. package/dist/commit/monorepo.cjs +5 -5
  101. package/dist/commit/monorepo.js +3 -3
  102. package/dist/index.cjs +51 -12
  103. package/dist/index.d.cts +8 -0
  104. package/dist/index.d.ts +8 -0
  105. package/dist/index.js +15 -4
  106. package/dist/lefthook/minimal.yml +69 -0
  107. package/dist/lefthook/recommended.yml +60 -0
  108. package/dist/lefthook/strict.yml +32 -0
  109. package/dist/release/config.cjs +13 -11
  110. package/dist/release/config.js +6 -4
  111. package/package.json +79 -65
  112. package/bin/chunk-AU5PZKTN.cjs.map +0 -1
  113. package/bin/chunk-Q3DQKTOI.js.map +0 -1
  114. package/bin/chunk-WQI3QHPS.js.map +0 -1
  115. package/bin/chunk-ZBLIE7F7.cjs.map +0 -1
  116. package/dist/lefthook/config.yml +0 -119
  117. package/dist/{chunk-F7OO6L26.cjs → chunk-CT6VGZZS.cjs} +1 -1
  118. package/dist/{chunk-KZRVQ5RZ.js → chunk-WCAKLYL2.js} +1 -1
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkNY53WLGC_cjs = require('./chunk-NY53WLGC.cjs');
3
+ var chunk7ZSL4J35_cjs = require('./chunk-7ZSL4J35.cjs');
4
4
  var chunk4VPJA7YJ_cjs = require('./chunk-4VPJA7YJ.cjs');
5
+ var chunkSIFTTG22_cjs = require('./chunk-SIFTTG22.cjs');
5
6
  var defu = require('defu');
6
7
  var c12 = require('c12');
7
- require('date-fns/formatDistanceToNow');
8
- var chalk = require('chalk');
9
8
  var fs = require('fs');
10
9
  var path = require('path');
11
10
  var promises = require('fs/promises');
@@ -14,6 +13,7 @@ var DefaultChangelogRenderer = require('nx/release/changelog-renderer');
14
13
  var conventionalCommits = require('nx/src/command-line/release/config/conventional-commits');
15
14
  var semver = require('semver');
16
15
  require('@nx/devkit');
16
+ require('chalk');
17
17
  require('nx/src/command-line/release/utils/print-changes');
18
18
  require('nx/src/command-line/release/utils/shared');
19
19
  require('nx/src/tasks-runner/utils');
@@ -28,7 +28,6 @@ require('nx/src/command-line/release/utils/git');
28
28
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
29
29
 
30
30
  var defu__default = /*#__PURE__*/_interopDefault(defu);
31
- var chalk__default = /*#__PURE__*/_interopDefault(chalk);
32
31
  var axios2__default = /*#__PURE__*/_interopDefault(axios2);
33
32
  var DefaultChangelogRenderer__default = /*#__PURE__*/_interopDefault(DefaultChangelogRenderer);
34
33
 
@@ -167,288 +166,6 @@ function omit(obj, keys) {
167
166
  }
168
167
  return result;
169
168
  }
170
-
171
- // ../config-tools/src/types.ts
172
- var LogLevel = {
173
- SILENT: 0,
174
- FATAL: 10,
175
- ERROR: 20,
176
- WARN: 30,
177
- SUCCESS: 35,
178
- INFO: 40,
179
- DEBUG: 60,
180
- TRACE: 70,
181
- ALL: 100
182
- };
183
- var LogLevelLabel = {
184
- SILENT: "silent",
185
- FATAL: "fatal",
186
- ERROR: "error",
187
- WARN: "warn",
188
- SUCCESS: "success",
189
- INFO: "info",
190
- DEBUG: "debug",
191
- TRACE: "trace",
192
- ALL: "all"
193
- };
194
-
195
- // ../config-tools/src/utilities/colors.ts
196
- var DEFAULT_COLOR_CONFIG = {
197
- dark: {
198
- brand: "#2dd4bf",
199
- success: "#10b981",
200
- info: "#58a6ff",
201
- debug: "#8afafc",
202
- warning: "#f3d371",
203
- danger: "#D8314A",
204
- fatal: "#a40e26"}
205
- };
206
- var chalkDefault = {
207
- hex: (_) => (message) => message,
208
- bgHex: (_) => ({
209
- whiteBright: (message) => message,
210
- white: (message) => message
211
- }),
212
- white: (message) => message,
213
- whiteBright: (message) => message,
214
- gray: (message) => message,
215
- bold: {
216
- hex: (_) => (message) => message,
217
- bgHex: (_) => ({
218
- whiteBright: (message) => message,
219
- white: (message) => message
220
- }),
221
- whiteBright: (message) => message,
222
- white: (message) => message
223
- },
224
- dim: {
225
- hex: (_) => (message) => message,
226
- gray: (message) => message
227
- }
228
- };
229
- var getChalk = () => {
230
- let _chalk = chalk__default.default;
231
- if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
232
- _chalk = chalkDefault;
233
- }
234
- return _chalk;
235
- };
236
-
237
- // ../config-tools/src/logger/is-unicode-supported.ts
238
- function isUnicodeSupported() {
239
- if (process.platform !== "win32") {
240
- return process.env.TERM !== "linux";
241
- }
242
- return Boolean(process.env.WT_SESSION) || // Windows Terminal
243
- Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
244
- process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
245
- 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";
246
- }
247
-
248
- // ../config-tools/src/logger/console-icons.ts
249
- var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
250
- var CONSOLE_ICONS = {
251
- [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
252
- [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
253
- [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
254
- [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
255
- [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
256
- [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
257
- [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
258
- [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
259
- };
260
-
261
- // ../config-tools/src/logger/format-timestamp.ts
262
- var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
263
- return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
264
- };
265
-
266
- // ../config-tools/src/logger/get-log-level.ts
267
- var getLogLevel = (label) => {
268
- switch (label) {
269
- case "all":
270
- return LogLevel.ALL;
271
- case "trace":
272
- return LogLevel.TRACE;
273
- case "debug":
274
- return LogLevel.DEBUG;
275
- case "info":
276
- return LogLevel.INFO;
277
- case "warn":
278
- return LogLevel.WARN;
279
- case "error":
280
- return LogLevel.ERROR;
281
- case "fatal":
282
- return LogLevel.FATAL;
283
- case "silent":
284
- return LogLevel.SILENT;
285
- default:
286
- return LogLevel.INFO;
287
- }
288
- };
289
- var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
290
- if (logLevel >= LogLevel.ALL) {
291
- return LogLevelLabel.ALL;
292
- }
293
- if (logLevel >= LogLevel.TRACE) {
294
- return LogLevelLabel.TRACE;
295
- }
296
- if (logLevel >= LogLevel.DEBUG) {
297
- return LogLevelLabel.DEBUG;
298
- }
299
- if (logLevel >= LogLevel.INFO) {
300
- return LogLevelLabel.INFO;
301
- }
302
- if (logLevel >= LogLevel.WARN) {
303
- return LogLevelLabel.WARN;
304
- }
305
- if (logLevel >= LogLevel.ERROR) {
306
- return LogLevelLabel.ERROR;
307
- }
308
- if (logLevel >= LogLevel.FATAL) {
309
- return LogLevelLabel.FATAL;
310
- }
311
- if (logLevel <= LogLevel.SILENT) {
312
- return LogLevelLabel.SILENT;
313
- }
314
- return LogLevelLabel.INFO;
315
- };
316
-
317
- // ../config-tools/src/logger/console.ts
318
- var getLogFn = (logLevel = LogLevel.INFO, config2 = {}, _chalk = getChalk()) => {
319
- const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
320
- const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
321
- if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
322
- return (_) => {
323
- };
324
- }
325
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
326
- return (message) => {
327
- console.error(
328
- `
329
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
330
- colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
331
- )(
332
- `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
333
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
334
- `
335
- );
336
- };
337
- }
338
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
339
- return (message) => {
340
- console.error(
341
- `
342
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
343
- colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
344
- )(
345
- `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
346
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
347
- `
348
- );
349
- };
350
- }
351
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
352
- return (message) => {
353
- console.warn(
354
- `
355
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
356
- colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
357
- )(
358
- `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
359
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
360
- `
361
- );
362
- };
363
- }
364
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
365
- return (message) => {
366
- console.info(
367
- `
368
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
369
- colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
370
- )(
371
- `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
372
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
373
- `
374
- );
375
- };
376
- }
377
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
378
- return (message) => {
379
- console.info(
380
- `
381
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
382
- colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
383
- )(
384
- `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
385
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
386
- `
387
- );
388
- };
389
- }
390
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
391
- return (message) => {
392
- console.debug(
393
- `
394
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
395
- colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
396
- )(
397
- `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
398
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
399
- `
400
- );
401
- };
402
- }
403
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
404
- return (message) => {
405
- console.debug(
406
- `
407
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
408
- `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
409
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
410
- `
411
- );
412
- };
413
- }
414
- return (message) => {
415
- console.log(
416
- `
417
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
418
- colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
419
- )(
420
- `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
421
- )}${_chalk.bold.whiteBright(formatLogMessage(message))}
422
- `
423
- );
424
- };
425
- };
426
- var writeWarning = (message, config2) => getLogFn(LogLevel.WARN, config2)(message);
427
- var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
428
- var MAX_DEPTH = 6;
429
- var formatLogMessage = (message, options = {}, depth2 = 0) => {
430
- if (depth2 > MAX_DEPTH) {
431
- return "<max depth>";
432
- }
433
- const prefix = options.prefix ?? "-";
434
- const skip = options.skip ?? [];
435
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
436
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
437
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
438
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
439
- message[key],
440
- { prefix: `${prefix}-`, skip },
441
- depth2 + 1
442
- ) : message[key]}`
443
- ).join("\n")}` : message;
444
- };
445
- var _isFunction = (value) => {
446
- try {
447
- return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
448
- } catch {
449
- return false;
450
- }
451
- };
452
169
  var MAX_PATH_SEARCH_DEPTH = 30;
453
170
  var depth = 0;
454
171
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
@@ -2585,7 +2302,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
2585
2302
  let config2 = result.config;
2586
2303
  const configFile = result.configFile;
2587
2304
  if (config2 && configFile && Object.keys(config2).length > 0 && !config2.skipConfigLogging) {
2588
- writeTrace(
2305
+ chunkSIFTTG22_cjs.writeTrace(
2589
2306
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
2590
2307
  {
2591
2308
  logLevel: "all"
@@ -2601,7 +2318,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
2601
2318
  for (const result2 of results) {
2602
2319
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
2603
2320
  if (!config2.skipConfigLogging && !result2.config.skipConfigLogging) {
2604
- writeTrace(
2321
+ chunkSIFTTG22_cjs.writeTrace(
2605
2322
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
2606
2323
  {
2607
2324
  logLevel: "all"
@@ -2699,7 +2416,7 @@ var getConfigEnv = () => {
2699
2416
  },
2700
2417
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
2701
2418
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
2702
- ) ? getLogLevelLabel(
2419
+ ) ? chunkSIFTTG22_cjs.getLogLevelLabel(
2703
2420
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
2704
2421
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
2705
2422
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -3064,9 +2781,9 @@ var setConfigEnv = (config2) => {
3064
2781
  process.env[`${prefix}LOG_LEVEL`] = String(config2.logLevel);
3065
2782
  process.env.LOG_LEVEL = String(config2.logLevel);
3066
2783
  process.env.NX_VERBOSE_LOGGING = String(
3067
- getLogLevel(config2.logLevel) >= LogLevel.DEBUG ? true : false
2784
+ chunkSIFTTG22_cjs.getLogLevel(config2.logLevel) >= chunkSIFTTG22_cjs.LogLevel.DEBUG ? true : false
3068
2785
  );
3069
- process.env.RUST_BACKTRACE = getLogLevel(config2.logLevel) >= LogLevel.DEBUG ? "full" : "none";
2786
+ process.env.RUST_BACKTRACE = chunkSIFTTG22_cjs.getLogLevel(config2.logLevel) >= chunkSIFTTG22_cjs.LogLevel.DEBUG ? "full" : "none";
3070
2787
  }
3071
2788
  if (config2.skipConfigLogging !== void 0) {
3072
2789
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -3205,7 +2922,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3205
2922
  const configFile = await getConfigFile(_workspaceRoot);
3206
2923
  if (!configFile) {
3207
2924
  if (!skipLogs) {
3208
- writeWarning(
2925
+ chunkSIFTTG22_cjs.writeWarning(
3209
2926
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
3210
2927
  { logLevel: "all" }
3211
2928
  );
@@ -3232,7 +2949,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3232
2949
  throw new Error(
3233
2950
  `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
3234
2951
 
3235
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
2952
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${chunkSIFTTG22_cjs.formatLogMessage(
3236
2953
  configInput
3237
2954
  )}`,
3238
2955
  {
@@ -3259,9 +2976,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
3259
2976
  );
3260
2977
  setConfigEnv(config2);
3261
2978
  if (!skipLogs && !config2.skipConfigLogging) {
3262
- writeTrace(
2979
+ chunkSIFTTG22_cjs.writeTrace(
3263
2980
  `\u2699\uFE0F Using Storm Workspace configuration:
3264
- ${formatLogMessage(config2)}`,
2981
+ ${chunkSIFTTG22_cjs.formatLogMessage(config2)}`,
3265
2982
  config2
3266
2983
  );
3267
2984
  }
@@ -3704,7 +3421,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
3704
3421
  // src/release/config.ts
3705
3422
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG2 = {
3706
3423
  useCommitScope: true,
3707
- questions: chunkNY53WLGC_cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
3424
+ questions: chunk7ZSL4J35_cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
3708
3425
  types: chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES
3709
3426
  };
3710
3427
  var DEFAULT_RELEASE_TAG_PATTERN = "{projectName}@{version}";
@@ -0,0 +1,303 @@
1
+ 'use strict';
2
+
3
+ require('date-fns/formatDistanceToNow');
4
+ var chalk = require('chalk');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var chalk__default = /*#__PURE__*/_interopDefault(chalk);
9
+
10
+ // ../config-tools/src/logger/console.ts
11
+
12
+ // ../config-tools/src/types.ts
13
+ var LogLevel = {
14
+ SILENT: 0,
15
+ FATAL: 10,
16
+ ERROR: 20,
17
+ WARN: 30,
18
+ SUCCESS: 35,
19
+ INFO: 40,
20
+ DEBUG: 60,
21
+ TRACE: 70,
22
+ ALL: 100
23
+ };
24
+ var LogLevelLabel = {
25
+ SILENT: "silent",
26
+ FATAL: "fatal",
27
+ ERROR: "error",
28
+ WARN: "warn",
29
+ SUCCESS: "success",
30
+ INFO: "info",
31
+ DEBUG: "debug",
32
+ TRACE: "trace",
33
+ ALL: "all"
34
+ };
35
+
36
+ // ../config-tools/src/utilities/colors.ts
37
+ var DEFAULT_COLOR_CONFIG = {
38
+ dark: {
39
+ brand: "#2dd4bf",
40
+ success: "#10b981",
41
+ info: "#58a6ff",
42
+ debug: "#8afafc",
43
+ warning: "#f3d371",
44
+ danger: "#D8314A",
45
+ fatal: "#a40e26"}
46
+ };
47
+ var chalkDefault = {
48
+ hex: (_) => (message) => message,
49
+ bgHex: (_) => ({
50
+ whiteBright: (message) => message,
51
+ white: (message) => message
52
+ }),
53
+ white: (message) => message,
54
+ whiteBright: (message) => message,
55
+ gray: (message) => message,
56
+ bold: {
57
+ hex: (_) => (message) => message,
58
+ bgHex: (_) => ({
59
+ whiteBright: (message) => message,
60
+ white: (message) => message
61
+ }),
62
+ whiteBright: (message) => message,
63
+ white: (message) => message
64
+ },
65
+ dim: {
66
+ hex: (_) => (message) => message,
67
+ gray: (message) => message
68
+ }
69
+ };
70
+ var getChalk = () => {
71
+ let _chalk = chalk__default.default;
72
+ if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
73
+ _chalk = chalkDefault;
74
+ }
75
+ return _chalk;
76
+ };
77
+
78
+ // ../config-tools/src/logger/is-unicode-supported.ts
79
+ function isUnicodeSupported() {
80
+ if (process.platform !== "win32") {
81
+ return process.env.TERM !== "linux";
82
+ }
83
+ return Boolean(process.env.WT_SESSION) || // Windows Terminal
84
+ Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
85
+ process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
86
+ 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";
87
+ }
88
+
89
+ // ../config-tools/src/logger/console-icons.ts
90
+ var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
91
+ var CONSOLE_ICONS = {
92
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
93
+ [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
94
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
95
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
96
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
97
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
98
+ [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
99
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
100
+ };
101
+
102
+ // ../config-tools/src/logger/format-timestamp.ts
103
+ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
104
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
105
+ };
106
+
107
+ // ../config-tools/src/logger/get-log-level.ts
108
+ var getLogLevel = (label) => {
109
+ switch (label) {
110
+ case "all":
111
+ return LogLevel.ALL;
112
+ case "trace":
113
+ return LogLevel.TRACE;
114
+ case "debug":
115
+ return LogLevel.DEBUG;
116
+ case "info":
117
+ return LogLevel.INFO;
118
+ case "warn":
119
+ return LogLevel.WARN;
120
+ case "error":
121
+ return LogLevel.ERROR;
122
+ case "fatal":
123
+ return LogLevel.FATAL;
124
+ case "silent":
125
+ return LogLevel.SILENT;
126
+ default:
127
+ return LogLevel.INFO;
128
+ }
129
+ };
130
+ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
131
+ if (logLevel >= LogLevel.ALL) {
132
+ return LogLevelLabel.ALL;
133
+ }
134
+ if (logLevel >= LogLevel.TRACE) {
135
+ return LogLevelLabel.TRACE;
136
+ }
137
+ if (logLevel >= LogLevel.DEBUG) {
138
+ return LogLevelLabel.DEBUG;
139
+ }
140
+ if (logLevel >= LogLevel.INFO) {
141
+ return LogLevelLabel.INFO;
142
+ }
143
+ if (logLevel >= LogLevel.WARN) {
144
+ return LogLevelLabel.WARN;
145
+ }
146
+ if (logLevel >= LogLevel.ERROR) {
147
+ return LogLevelLabel.ERROR;
148
+ }
149
+ if (logLevel >= LogLevel.FATAL) {
150
+ return LogLevelLabel.FATAL;
151
+ }
152
+ if (logLevel <= LogLevel.SILENT) {
153
+ return LogLevelLabel.SILENT;
154
+ }
155
+ return LogLevelLabel.INFO;
156
+ };
157
+
158
+ // ../config-tools/src/logger/console.ts
159
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
160
+ 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;
161
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
162
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
163
+ return (_) => {
164
+ };
165
+ }
166
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
167
+ return (message) => {
168
+ console.error(
169
+ `
170
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
171
+ colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
172
+ )(
173
+ `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
174
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
175
+ `
176
+ );
177
+ };
178
+ }
179
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
180
+ return (message) => {
181
+ console.error(
182
+ `
183
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
184
+ colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
185
+ )(
186
+ `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
187
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
188
+ `
189
+ );
190
+ };
191
+ }
192
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
193
+ return (message) => {
194
+ console.warn(
195
+ `
196
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
197
+ colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
198
+ )(
199
+ `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
200
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
201
+ `
202
+ );
203
+ };
204
+ }
205
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
206
+ return (message) => {
207
+ console.info(
208
+ `
209
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
210
+ colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
211
+ )(
212
+ `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
213
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
214
+ `
215
+ );
216
+ };
217
+ }
218
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
219
+ return (message) => {
220
+ console.info(
221
+ `
222
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
223
+ colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
224
+ )(
225
+ `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
226
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
227
+ `
228
+ );
229
+ };
230
+ }
231
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
232
+ return (message) => {
233
+ console.debug(
234
+ `
235
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
236
+ colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
237
+ )(
238
+ `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
239
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
240
+ `
241
+ );
242
+ };
243
+ }
244
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
245
+ return (message) => {
246
+ console.debug(
247
+ `
248
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
249
+ `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
250
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
251
+ `
252
+ );
253
+ };
254
+ }
255
+ return (message) => {
256
+ console.log(
257
+ `
258
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
259
+ colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
260
+ )(
261
+ `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
262
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
263
+ `
264
+ );
265
+ };
266
+ };
267
+ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
268
+ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
269
+ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
270
+ var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
271
+ var MAX_DEPTH = 6;
272
+ var formatLogMessage = (message, options = {}, depth = 0) => {
273
+ if (depth > MAX_DEPTH) {
274
+ return "<max depth>";
275
+ }
276
+ const prefix = options.prefix ?? "-";
277
+ const skip = options.skip ?? [];
278
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
279
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
280
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
281
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
282
+ message[key],
283
+ { prefix: `${prefix}-`, skip },
284
+ depth + 1
285
+ ) : message[key]}`
286
+ ).join("\n")}` : message;
287
+ };
288
+ var _isFunction = (value) => {
289
+ try {
290
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
291
+ } catch {
292
+ return false;
293
+ }
294
+ };
295
+
296
+ exports.LogLevel = LogLevel;
297
+ exports.formatLogMessage = formatLogMessage;
298
+ exports.getLogLevel = getLogLevel;
299
+ exports.getLogLevelLabel = getLogLevelLabel;
300
+ exports.writeInfo = writeInfo;
301
+ exports.writeSuccess = writeSuccess;
302
+ exports.writeTrace = writeTrace;
303
+ exports.writeWarning = writeWarning;