@storm-software/git-tools 2.64.0 → 2.66.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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/bin/git.js +30 -26
- package/bin/post-checkout.js +30 -26
- package/bin/post-commit.js +30 -26
- package/bin/post-merge.js +30 -26
- package/bin/pre-commit.js +30 -26
- package/bin/pre-install.js +30 -26
- package/bin/pre-push.js +30 -26
- package/bin/prepare.js +30 -26
- package/bin/version-warning.js +30 -26
- package/package.json +1 -1
- package/src/cli/index.js +30 -26
- package/src/commit/index.js +15 -36
- package/src/commitizen/index.js +15 -36
- package/src/index.js +30 -26
- package/src/release/index.js +15 -36
package/src/cli/index.js
CHANGED
|
@@ -225735,17 +225735,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
225735
225735
|
});
|
|
225736
225736
|
|
|
225737
225737
|
// packages/config/src/schema.ts
|
|
225738
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225738
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
225739
225739
|
var 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");
|
|
225740
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225740
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
225741
225741
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
225742
225742
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
225743
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
225743
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
225744
225744
|
var HelpColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
225745
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225746
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225745
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
225746
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
225747
225747
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
225748
|
-
var
|
|
225748
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
225749
225749
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
225750
225750
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
225751
225751
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -225760,7 +225760,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
225760
225760
|
success: SuccessColorSchema,
|
|
225761
225761
|
info: InfoColorSchema,
|
|
225762
225762
|
warning: WarningColorSchema,
|
|
225763
|
-
|
|
225763
|
+
danger: DangerColorSchema,
|
|
225764
225764
|
fatal: FatalColorSchema,
|
|
225765
225765
|
positive: PositiveColorSchema,
|
|
225766
225766
|
negative: NegativeColorSchema
|
|
@@ -225776,7 +225776,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
225776
225776
|
success: SuccessColorSchema,
|
|
225777
225777
|
info: InfoColorSchema,
|
|
225778
225778
|
warning: WarningColorSchema,
|
|
225779
|
-
|
|
225779
|
+
danger: DangerColorSchema,
|
|
225780
225780
|
fatal: FatalColorSchema,
|
|
225781
225781
|
positive: PositiveColorSchema,
|
|
225782
225782
|
negative: NegativeColorSchema
|
|
@@ -225796,7 +225796,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
225796
225796
|
success: SuccessColorSchema,
|
|
225797
225797
|
info: InfoColorSchema,
|
|
225798
225798
|
warning: WarningColorSchema,
|
|
225799
|
-
|
|
225799
|
+
danger: DangerColorSchema,
|
|
225800
225800
|
fatal: FatalColorSchema,
|
|
225801
225801
|
positive: PositiveColorSchema,
|
|
225802
225802
|
negative: NegativeColorSchema
|
|
@@ -225884,14 +225884,19 @@ var StormConfigSchema = z2.object({
|
|
|
225884
225884
|
var COLOR_KEYS = [
|
|
225885
225885
|
"dark",
|
|
225886
225886
|
"light",
|
|
225887
|
+
"base",
|
|
225887
225888
|
"brand",
|
|
225889
|
+
"alternate",
|
|
225888
225890
|
"accent",
|
|
225889
|
-
"
|
|
225891
|
+
"link",
|
|
225890
225892
|
"success",
|
|
225893
|
+
"help",
|
|
225891
225894
|
"info",
|
|
225892
225895
|
"warning",
|
|
225893
|
-
"
|
|
225894
|
-
"fatal"
|
|
225896
|
+
"danger",
|
|
225897
|
+
"fatal",
|
|
225898
|
+
"positive",
|
|
225899
|
+
"negative"
|
|
225895
225900
|
];
|
|
225896
225901
|
|
|
225897
225902
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -225907,7 +225912,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225907
225912
|
"success": "#087f5b",
|
|
225908
225913
|
"info": "#0550ae",
|
|
225909
225914
|
"warning": "#e3b341",
|
|
225910
|
-
"
|
|
225915
|
+
"danger": "#D8314A",
|
|
225911
225916
|
"positive": "#22c55e",
|
|
225912
225917
|
"negative": "#dc2626"
|
|
225913
225918
|
},
|
|
@@ -225920,7 +225925,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225920
225925
|
"success": "#10b981",
|
|
225921
225926
|
"info": "#58a6ff",
|
|
225922
225927
|
"warning": "#f3d371",
|
|
225923
|
-
"
|
|
225928
|
+
"danger": "#D8314A",
|
|
225924
225929
|
"positive": "#22c55e",
|
|
225925
225930
|
"negative": "#dc2626"
|
|
225926
225931
|
}
|
|
@@ -225943,7 +225948,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
225943
225948
|
organization: "storm-software",
|
|
225944
225949
|
configFile: null,
|
|
225945
225950
|
runtimeVersion: "1.0.0",
|
|
225946
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
225947
225951
|
extensions: {}
|
|
225948
225952
|
};
|
|
225949
225953
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -225986,7 +225990,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
225986
225990
|
}
|
|
225987
225991
|
return ret;
|
|
225988
225992
|
}, {}),
|
|
225989
|
-
colors: config2.colors
|
|
225993
|
+
colors: config2.colors,
|
|
225990
225994
|
workspaceRoot: workspaceRoot3,
|
|
225991
225995
|
name,
|
|
225992
225996
|
namespace,
|
|
@@ -226088,9 +226092,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226088
226092
|
return (message) => {
|
|
226089
226093
|
console.error(
|
|
226090
226094
|
`
|
|
226091
|
-
${_chalk.bold.hex(colors.
|
|
226095
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226092
226096
|
" \u{1F480} Fatal "
|
|
226093
|
-
)} ${_chalk.hex(colors.
|
|
226097
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226094
226098
|
`
|
|
226095
226099
|
);
|
|
226096
226100
|
};
|
|
@@ -226099,9 +226103,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
226099
226103
|
return (message) => {
|
|
226100
226104
|
console.error(
|
|
226101
226105
|
`
|
|
226102
|
-
${_chalk.bold.hex(colors.
|
|
226106
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226103
226107
|
" \u2718 Error "
|
|
226104
|
-
)} ${_chalk.hex(colors.
|
|
226108
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226105
226109
|
`
|
|
226106
226110
|
);
|
|
226107
226111
|
};
|
|
@@ -226373,7 +226377,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
226373
226377
|
success: process.env[`${prefix}SUCCESS`],
|
|
226374
226378
|
info: process.env[`${prefix}INFO`],
|
|
226375
226379
|
warning: process.env[`${prefix}WARNING`],
|
|
226376
|
-
|
|
226380
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226377
226381
|
fatal: process.env[`${prefix}FATAL`],
|
|
226378
226382
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226379
226383
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226399,7 +226403,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
226399
226403
|
success: process.env[`${prefix}SUCCESS`],
|
|
226400
226404
|
info: process.env[`${prefix}INFO`],
|
|
226401
226405
|
warning: process.env[`${prefix}WARNING`],
|
|
226402
|
-
|
|
226406
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226403
226407
|
fatal: process.env[`${prefix}FATAL`],
|
|
226404
226408
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226405
226409
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226619,8 +226623,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226619
226623
|
if (config2.warning) {
|
|
226620
226624
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226621
226625
|
}
|
|
226622
|
-
if (config2.
|
|
226623
|
-
process.env[`${prefix}
|
|
226626
|
+
if (config2.danger) {
|
|
226627
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226624
226628
|
}
|
|
226625
226629
|
if (config2.fatal) {
|
|
226626
226630
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -226669,8 +226673,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226669
226673
|
if (config2.warning) {
|
|
226670
226674
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226671
226675
|
}
|
|
226672
|
-
if (config2.
|
|
226673
|
-
process.env[`${prefix}
|
|
226676
|
+
if (config2.danger) {
|
|
226677
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226674
226678
|
}
|
|
226675
226679
|
if (config2.fatal) {
|
|
226676
226680
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
package/src/commit/index.js
CHANGED
|
@@ -37312,17 +37312,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
37312
37312
|
});
|
|
37313
37313
|
|
|
37314
37314
|
// packages/config/src/schema.ts
|
|
37315
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37315
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
37316
37316
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
37317
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37317
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
37318
37318
|
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
37319
37319
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
37320
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
37320
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
37321
37321
|
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
37322
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37323
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37322
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
37323
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
37324
37324
|
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
37325
|
-
var
|
|
37325
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
37326
37326
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
37327
37327
|
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
37328
37328
|
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -37337,7 +37337,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
37337
37337
|
success: SuccessColorSchema,
|
|
37338
37338
|
info: InfoColorSchema,
|
|
37339
37339
|
warning: WarningColorSchema,
|
|
37340
|
-
|
|
37340
|
+
danger: DangerColorSchema,
|
|
37341
37341
|
fatal: FatalColorSchema,
|
|
37342
37342
|
positive: PositiveColorSchema,
|
|
37343
37343
|
negative: NegativeColorSchema
|
|
@@ -37353,7 +37353,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
37353
37353
|
success: SuccessColorSchema,
|
|
37354
37354
|
info: InfoColorSchema,
|
|
37355
37355
|
warning: WarningColorSchema,
|
|
37356
|
-
|
|
37356
|
+
danger: DangerColorSchema,
|
|
37357
37357
|
fatal: FatalColorSchema,
|
|
37358
37358
|
positive: PositiveColorSchema,
|
|
37359
37359
|
negative: NegativeColorSchema
|
|
@@ -37373,7 +37373,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
37373
37373
|
success: SuccessColorSchema,
|
|
37374
37374
|
info: InfoColorSchema,
|
|
37375
37375
|
warning: WarningColorSchema,
|
|
37376
|
-
|
|
37376
|
+
danger: DangerColorSchema,
|
|
37377
37377
|
fatal: FatalColorSchema,
|
|
37378
37378
|
positive: PositiveColorSchema,
|
|
37379
37379
|
negative: NegativeColorSchema
|
|
@@ -37468,7 +37468,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37468
37468
|
"success": "#087f5b",
|
|
37469
37469
|
"info": "#0550ae",
|
|
37470
37470
|
"warning": "#e3b341",
|
|
37471
|
-
"
|
|
37471
|
+
"danger": "#D8314A",
|
|
37472
37472
|
"positive": "#22c55e",
|
|
37473
37473
|
"negative": "#dc2626"
|
|
37474
37474
|
},
|
|
@@ -37481,32 +37481,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37481
37481
|
"success": "#10b981",
|
|
37482
37482
|
"info": "#58a6ff",
|
|
37483
37483
|
"warning": "#f3d371",
|
|
37484
|
-
"
|
|
37484
|
+
"danger": "#D8314A",
|
|
37485
37485
|
"positive": "#22c55e",
|
|
37486
37486
|
"negative": "#dc2626"
|
|
37487
37487
|
}
|
|
37488
37488
|
};
|
|
37489
|
-
var DEFAULT_STORM_CONFIG = {
|
|
37490
|
-
name: "storm",
|
|
37491
|
-
namespace: "storm-software",
|
|
37492
|
-
license: "Apache 2.0",
|
|
37493
|
-
homepage: "https://stormsoftware.com",
|
|
37494
|
-
owner: "@storm-software/development",
|
|
37495
|
-
worker: "stormie-bot",
|
|
37496
|
-
runtimeDirectory: "node_modules/.storm",
|
|
37497
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
37498
|
-
skipCache: false,
|
|
37499
|
-
packageManager: "npm",
|
|
37500
|
-
timezone: "America/New_York",
|
|
37501
|
-
locale: "en-US",
|
|
37502
|
-
env: "production",
|
|
37503
|
-
branch: "main",
|
|
37504
|
-
organization: "storm-software",
|
|
37505
|
-
configFile: null,
|
|
37506
|
-
runtimeVersion: "1.0.0",
|
|
37507
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
37508
|
-
extensions: {}
|
|
37509
|
-
};
|
|
37510
37489
|
|
|
37511
37490
|
// packages/config-tools/src/types.ts
|
|
37512
37491
|
var LogLevel = {
|
|
@@ -37568,9 +37547,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37568
37547
|
return (message) => {
|
|
37569
37548
|
console.error(
|
|
37570
37549
|
`
|
|
37571
|
-
${_chalk.bold.hex(colors.
|
|
37550
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37572
37551
|
" \u{1F480} Fatal "
|
|
37573
|
-
)} ${_chalk.hex(colors.
|
|
37552
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37574
37553
|
`
|
|
37575
37554
|
);
|
|
37576
37555
|
};
|
|
@@ -37579,9 +37558,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
37579
37558
|
return (message) => {
|
|
37580
37559
|
console.error(
|
|
37581
37560
|
`
|
|
37582
|
-
${_chalk.bold.hex(colors.
|
|
37561
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37583
37562
|
" \u2718 Error "
|
|
37584
|
-
)} ${_chalk.hex(colors.
|
|
37563
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37585
37564
|
`
|
|
37586
37565
|
);
|
|
37587
37566
|
};
|
package/src/commitizen/index.js
CHANGED
|
@@ -37259,17 +37259,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
37259
37259
|
});
|
|
37260
37260
|
|
|
37261
37261
|
// packages/config/src/schema.ts
|
|
37262
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37262
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
37263
37263
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
37264
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37264
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
37265
37265
|
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
37266
37266
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
37267
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
37267
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
37268
37268
|
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
37269
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37270
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37269
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
37270
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
37271
37271
|
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
37272
|
-
var
|
|
37272
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
37273
37273
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
37274
37274
|
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
37275
37275
|
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -37284,7 +37284,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
37284
37284
|
success: SuccessColorSchema,
|
|
37285
37285
|
info: InfoColorSchema,
|
|
37286
37286
|
warning: WarningColorSchema,
|
|
37287
|
-
|
|
37287
|
+
danger: DangerColorSchema,
|
|
37288
37288
|
fatal: FatalColorSchema,
|
|
37289
37289
|
positive: PositiveColorSchema,
|
|
37290
37290
|
negative: NegativeColorSchema
|
|
@@ -37300,7 +37300,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
37300
37300
|
success: SuccessColorSchema,
|
|
37301
37301
|
info: InfoColorSchema,
|
|
37302
37302
|
warning: WarningColorSchema,
|
|
37303
|
-
|
|
37303
|
+
danger: DangerColorSchema,
|
|
37304
37304
|
fatal: FatalColorSchema,
|
|
37305
37305
|
positive: PositiveColorSchema,
|
|
37306
37306
|
negative: NegativeColorSchema
|
|
@@ -37320,7 +37320,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
37320
37320
|
success: SuccessColorSchema,
|
|
37321
37321
|
info: InfoColorSchema,
|
|
37322
37322
|
warning: WarningColorSchema,
|
|
37323
|
-
|
|
37323
|
+
danger: DangerColorSchema,
|
|
37324
37324
|
fatal: FatalColorSchema,
|
|
37325
37325
|
positive: PositiveColorSchema,
|
|
37326
37326
|
negative: NegativeColorSchema
|
|
@@ -37415,7 +37415,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37415
37415
|
"success": "#087f5b",
|
|
37416
37416
|
"info": "#0550ae",
|
|
37417
37417
|
"warning": "#e3b341",
|
|
37418
|
-
"
|
|
37418
|
+
"danger": "#D8314A",
|
|
37419
37419
|
"positive": "#22c55e",
|
|
37420
37420
|
"negative": "#dc2626"
|
|
37421
37421
|
},
|
|
@@ -37428,32 +37428,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37428
37428
|
"success": "#10b981",
|
|
37429
37429
|
"info": "#58a6ff",
|
|
37430
37430
|
"warning": "#f3d371",
|
|
37431
|
-
"
|
|
37431
|
+
"danger": "#D8314A",
|
|
37432
37432
|
"positive": "#22c55e",
|
|
37433
37433
|
"negative": "#dc2626"
|
|
37434
37434
|
}
|
|
37435
37435
|
};
|
|
37436
|
-
var DEFAULT_STORM_CONFIG = {
|
|
37437
|
-
name: "storm",
|
|
37438
|
-
namespace: "storm-software",
|
|
37439
|
-
license: "Apache 2.0",
|
|
37440
|
-
homepage: "https://stormsoftware.com",
|
|
37441
|
-
owner: "@storm-software/development",
|
|
37442
|
-
worker: "stormie-bot",
|
|
37443
|
-
runtimeDirectory: "node_modules/.storm",
|
|
37444
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
37445
|
-
skipCache: false,
|
|
37446
|
-
packageManager: "npm",
|
|
37447
|
-
timezone: "America/New_York",
|
|
37448
|
-
locale: "en-US",
|
|
37449
|
-
env: "production",
|
|
37450
|
-
branch: "main",
|
|
37451
|
-
organization: "storm-software",
|
|
37452
|
-
configFile: null,
|
|
37453
|
-
runtimeVersion: "1.0.0",
|
|
37454
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
37455
|
-
extensions: {}
|
|
37456
|
-
};
|
|
37457
37436
|
|
|
37458
37437
|
// packages/config-tools/src/types.ts
|
|
37459
37438
|
var LogLevel = {
|
|
@@ -37515,9 +37494,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37515
37494
|
return (message) => {
|
|
37516
37495
|
console.error(
|
|
37517
37496
|
`
|
|
37518
|
-
${_chalk.bold.hex(colors.
|
|
37497
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37519
37498
|
" \u{1F480} Fatal "
|
|
37520
|
-
)} ${_chalk.hex(colors.
|
|
37499
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37521
37500
|
`
|
|
37522
37501
|
);
|
|
37523
37502
|
};
|
|
@@ -37526,9 +37505,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
37526
37505
|
return (message) => {
|
|
37527
37506
|
console.error(
|
|
37528
37507
|
`
|
|
37529
|
-
${_chalk.bold.hex(colors.
|
|
37508
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37530
37509
|
" \u2718 Error "
|
|
37531
|
-
)} ${_chalk.hex(colors.
|
|
37510
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37532
37511
|
`
|
|
37533
37512
|
);
|
|
37534
37513
|
};
|
package/src/index.js
CHANGED
|
@@ -225735,17 +225735,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
225735
225735
|
});
|
|
225736
225736
|
|
|
225737
225737
|
// packages/config/src/schema.ts
|
|
225738
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225738
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
225739
225739
|
var 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");
|
|
225740
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225740
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
225741
225741
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
225742
225742
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
225743
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
225743
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
225744
225744
|
var HelpColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
225745
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225746
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225745
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
225746
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
225747
225747
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
225748
|
-
var
|
|
225748
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
225749
225749
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
225750
225750
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
225751
225751
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -225760,7 +225760,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
225760
225760
|
success: SuccessColorSchema,
|
|
225761
225761
|
info: InfoColorSchema,
|
|
225762
225762
|
warning: WarningColorSchema,
|
|
225763
|
-
|
|
225763
|
+
danger: DangerColorSchema,
|
|
225764
225764
|
fatal: FatalColorSchema,
|
|
225765
225765
|
positive: PositiveColorSchema,
|
|
225766
225766
|
negative: NegativeColorSchema
|
|
@@ -225776,7 +225776,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
225776
225776
|
success: SuccessColorSchema,
|
|
225777
225777
|
info: InfoColorSchema,
|
|
225778
225778
|
warning: WarningColorSchema,
|
|
225779
|
-
|
|
225779
|
+
danger: DangerColorSchema,
|
|
225780
225780
|
fatal: FatalColorSchema,
|
|
225781
225781
|
positive: PositiveColorSchema,
|
|
225782
225782
|
negative: NegativeColorSchema
|
|
@@ -225796,7 +225796,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
225796
225796
|
success: SuccessColorSchema,
|
|
225797
225797
|
info: InfoColorSchema,
|
|
225798
225798
|
warning: WarningColorSchema,
|
|
225799
|
-
|
|
225799
|
+
danger: DangerColorSchema,
|
|
225800
225800
|
fatal: FatalColorSchema,
|
|
225801
225801
|
positive: PositiveColorSchema,
|
|
225802
225802
|
negative: NegativeColorSchema
|
|
@@ -225884,14 +225884,19 @@ var StormConfigSchema = z2.object({
|
|
|
225884
225884
|
var COLOR_KEYS = [
|
|
225885
225885
|
"dark",
|
|
225886
225886
|
"light",
|
|
225887
|
+
"base",
|
|
225887
225888
|
"brand",
|
|
225889
|
+
"alternate",
|
|
225888
225890
|
"accent",
|
|
225889
|
-
"
|
|
225891
|
+
"link",
|
|
225890
225892
|
"success",
|
|
225893
|
+
"help",
|
|
225891
225894
|
"info",
|
|
225892
225895
|
"warning",
|
|
225893
|
-
"
|
|
225894
|
-
"fatal"
|
|
225896
|
+
"danger",
|
|
225897
|
+
"fatal",
|
|
225898
|
+
"positive",
|
|
225899
|
+
"negative"
|
|
225895
225900
|
];
|
|
225896
225901
|
|
|
225897
225902
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -225907,7 +225912,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225907
225912
|
"success": "#087f5b",
|
|
225908
225913
|
"info": "#0550ae",
|
|
225909
225914
|
"warning": "#e3b341",
|
|
225910
|
-
"
|
|
225915
|
+
"danger": "#D8314A",
|
|
225911
225916
|
"positive": "#22c55e",
|
|
225912
225917
|
"negative": "#dc2626"
|
|
225913
225918
|
},
|
|
@@ -225920,7 +225925,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225920
225925
|
"success": "#10b981",
|
|
225921
225926
|
"info": "#58a6ff",
|
|
225922
225927
|
"warning": "#f3d371",
|
|
225923
|
-
"
|
|
225928
|
+
"danger": "#D8314A",
|
|
225924
225929
|
"positive": "#22c55e",
|
|
225925
225930
|
"negative": "#dc2626"
|
|
225926
225931
|
}
|
|
@@ -225943,7 +225948,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
225943
225948
|
organization: "storm-software",
|
|
225944
225949
|
configFile: null,
|
|
225945
225950
|
runtimeVersion: "1.0.0",
|
|
225946
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
225947
225951
|
extensions: {}
|
|
225948
225952
|
};
|
|
225949
225953
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -225986,7 +225990,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
225986
225990
|
}
|
|
225987
225991
|
return ret;
|
|
225988
225992
|
}, {}),
|
|
225989
|
-
colors: config2.colors
|
|
225993
|
+
colors: config2.colors,
|
|
225990
225994
|
workspaceRoot: workspaceRoot3,
|
|
225991
225995
|
name,
|
|
225992
225996
|
namespace,
|
|
@@ -226088,9 +226092,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226088
226092
|
return (message) => {
|
|
226089
226093
|
console.error(
|
|
226090
226094
|
`
|
|
226091
|
-
${_chalk.bold.hex(colors.
|
|
226095
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226092
226096
|
" \u{1F480} Fatal "
|
|
226093
|
-
)} ${_chalk.hex(colors.
|
|
226097
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226094
226098
|
`
|
|
226095
226099
|
);
|
|
226096
226100
|
};
|
|
@@ -226099,9 +226103,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
226099
226103
|
return (message) => {
|
|
226100
226104
|
console.error(
|
|
226101
226105
|
`
|
|
226102
|
-
${_chalk.bold.hex(colors.
|
|
226106
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226103
226107
|
" \u2718 Error "
|
|
226104
|
-
)} ${_chalk.hex(colors.
|
|
226108
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226105
226109
|
`
|
|
226106
226110
|
);
|
|
226107
226111
|
};
|
|
@@ -226373,7 +226377,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
226373
226377
|
success: process.env[`${prefix}SUCCESS`],
|
|
226374
226378
|
info: process.env[`${prefix}INFO`],
|
|
226375
226379
|
warning: process.env[`${prefix}WARNING`],
|
|
226376
|
-
|
|
226380
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226377
226381
|
fatal: process.env[`${prefix}FATAL`],
|
|
226378
226382
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226379
226383
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226399,7 +226403,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
226399
226403
|
success: process.env[`${prefix}SUCCESS`],
|
|
226400
226404
|
info: process.env[`${prefix}INFO`],
|
|
226401
226405
|
warning: process.env[`${prefix}WARNING`],
|
|
226402
|
-
|
|
226406
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226403
226407
|
fatal: process.env[`${prefix}FATAL`],
|
|
226404
226408
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226405
226409
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226619,8 +226623,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226619
226623
|
if (config2.warning) {
|
|
226620
226624
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226621
226625
|
}
|
|
226622
|
-
if (config2.
|
|
226623
|
-
process.env[`${prefix}
|
|
226626
|
+
if (config2.danger) {
|
|
226627
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226624
226628
|
}
|
|
226625
226629
|
if (config2.fatal) {
|
|
226626
226630
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -226669,8 +226673,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226669
226673
|
if (config2.warning) {
|
|
226670
226674
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226671
226675
|
}
|
|
226672
|
-
if (config2.
|
|
226673
|
-
process.env[`${prefix}
|
|
226676
|
+
if (config2.danger) {
|
|
226677
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226674
226678
|
}
|
|
226675
226679
|
if (config2.fatal) {
|
|
226676
226680
|
process.env[`${prefix}FATAL`] = config2.fatal;
|