@storm-software/git-tools 2.65.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 +6 -0
- package/README.md +1 -1
- package/bin/git.js +23 -24
- package/bin/post-checkout.js +23 -24
- package/bin/post-commit.js +23 -24
- package/bin/post-merge.js +23 -24
- package/bin/pre-commit.js +23 -24
- package/bin/pre-install.js +23 -24
- package/bin/pre-push.js +23 -24
- package/bin/prepare.js +23 -24
- package/bin/version-warning.js +23 -24
- package/package.json +1 -1
- package/src/cli/index.js +23 -24
- package/src/commit/index.js +15 -36
- package/src/commitizen/index.js +15 -36
- package/src/index.js +23 -24
- package/src/release/index.js +15 -36
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
|
|
@@ -225893,7 +225893,7 @@ var COLOR_KEYS = [
|
|
|
225893
225893
|
"help",
|
|
225894
225894
|
"info",
|
|
225895
225895
|
"warning",
|
|
225896
|
-
"
|
|
225896
|
+
"danger",
|
|
225897
225897
|
"fatal",
|
|
225898
225898
|
"positive",
|
|
225899
225899
|
"negative"
|
|
@@ -225912,7 +225912,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225912
225912
|
"success": "#087f5b",
|
|
225913
225913
|
"info": "#0550ae",
|
|
225914
225914
|
"warning": "#e3b341",
|
|
225915
|
-
"
|
|
225915
|
+
"danger": "#D8314A",
|
|
225916
225916
|
"positive": "#22c55e",
|
|
225917
225917
|
"negative": "#dc2626"
|
|
225918
225918
|
},
|
|
@@ -225925,7 +225925,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225925
225925
|
"success": "#10b981",
|
|
225926
225926
|
"info": "#58a6ff",
|
|
225927
225927
|
"warning": "#f3d371",
|
|
225928
|
-
"
|
|
225928
|
+
"danger": "#D8314A",
|
|
225929
225929
|
"positive": "#22c55e",
|
|
225930
225930
|
"negative": "#dc2626"
|
|
225931
225931
|
}
|
|
@@ -225948,7 +225948,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
225948
225948
|
organization: "storm-software",
|
|
225949
225949
|
configFile: null,
|
|
225950
225950
|
runtimeVersion: "1.0.0",
|
|
225951
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
225952
225951
|
extensions: {}
|
|
225953
225952
|
};
|
|
225954
225953
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -225991,7 +225990,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
225991
225990
|
}
|
|
225992
225991
|
return ret;
|
|
225993
225992
|
}, {}),
|
|
225994
|
-
colors: config2.colors
|
|
225993
|
+
colors: config2.colors,
|
|
225995
225994
|
workspaceRoot: workspaceRoot3,
|
|
225996
225995
|
name,
|
|
225997
225996
|
namespace,
|
|
@@ -226093,9 +226092,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226093
226092
|
return (message) => {
|
|
226094
226093
|
console.error(
|
|
226095
226094
|
`
|
|
226096
|
-
${_chalk.bold.hex(colors.
|
|
226095
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226097
226096
|
" \u{1F480} Fatal "
|
|
226098
|
-
)} ${_chalk.hex(colors.
|
|
226097
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226099
226098
|
`
|
|
226100
226099
|
);
|
|
226101
226100
|
};
|
|
@@ -226104,9 +226103,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
226104
226103
|
return (message) => {
|
|
226105
226104
|
console.error(
|
|
226106
226105
|
`
|
|
226107
|
-
${_chalk.bold.hex(colors.
|
|
226106
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226108
226107
|
" \u2718 Error "
|
|
226109
|
-
)} ${_chalk.hex(colors.
|
|
226108
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226110
226109
|
`
|
|
226111
226110
|
);
|
|
226112
226111
|
};
|
|
@@ -226378,7 +226377,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
226378
226377
|
success: process.env[`${prefix}SUCCESS`],
|
|
226379
226378
|
info: process.env[`${prefix}INFO`],
|
|
226380
226379
|
warning: process.env[`${prefix}WARNING`],
|
|
226381
|
-
|
|
226380
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226382
226381
|
fatal: process.env[`${prefix}FATAL`],
|
|
226383
226382
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226384
226383
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226404,7 +226403,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
226404
226403
|
success: process.env[`${prefix}SUCCESS`],
|
|
226405
226404
|
info: process.env[`${prefix}INFO`],
|
|
226406
226405
|
warning: process.env[`${prefix}WARNING`],
|
|
226407
|
-
|
|
226406
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226408
226407
|
fatal: process.env[`${prefix}FATAL`],
|
|
226409
226408
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226410
226409
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226624,8 +226623,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226624
226623
|
if (config2.warning) {
|
|
226625
226624
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226626
226625
|
}
|
|
226627
|
-
if (config2.
|
|
226628
|
-
process.env[`${prefix}
|
|
226626
|
+
if (config2.danger) {
|
|
226627
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226629
226628
|
}
|
|
226630
226629
|
if (config2.fatal) {
|
|
226631
226630
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -226674,8 +226673,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226674
226673
|
if (config2.warning) {
|
|
226675
226674
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226676
226675
|
}
|
|
226677
|
-
if (config2.
|
|
226678
|
-
process.env[`${prefix}
|
|
226676
|
+
if (config2.danger) {
|
|
226677
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226679
226678
|
}
|
|
226680
226679
|
if (config2.fatal) {
|
|
226681
226680
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
package/src/release/index.js
CHANGED
|
@@ -5716,17 +5716,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5716
5716
|
});
|
|
5717
5717
|
|
|
5718
5718
|
// packages/config/src/schema.ts
|
|
5719
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5719
|
+
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");
|
|
5720
5720
|
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");
|
|
5721
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5721
|
+
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");
|
|
5722
5722
|
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");
|
|
5723
5723
|
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");
|
|
5724
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5724
|
+
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");
|
|
5725
5725
|
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");
|
|
5726
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5727
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5726
|
+
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");
|
|
5727
|
+
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");
|
|
5728
5728
|
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");
|
|
5729
|
-
var
|
|
5729
|
+
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");
|
|
5730
5730
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5731
5731
|
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");
|
|
5732
5732
|
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");
|
|
@@ -5741,7 +5741,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5741
5741
|
success: SuccessColorSchema,
|
|
5742
5742
|
info: InfoColorSchema,
|
|
5743
5743
|
warning: WarningColorSchema,
|
|
5744
|
-
|
|
5744
|
+
danger: DangerColorSchema,
|
|
5745
5745
|
fatal: FatalColorSchema,
|
|
5746
5746
|
positive: PositiveColorSchema,
|
|
5747
5747
|
negative: NegativeColorSchema
|
|
@@ -5757,7 +5757,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5757
5757
|
success: SuccessColorSchema,
|
|
5758
5758
|
info: InfoColorSchema,
|
|
5759
5759
|
warning: WarningColorSchema,
|
|
5760
|
-
|
|
5760
|
+
danger: DangerColorSchema,
|
|
5761
5761
|
fatal: FatalColorSchema,
|
|
5762
5762
|
positive: PositiveColorSchema,
|
|
5763
5763
|
negative: NegativeColorSchema
|
|
@@ -5777,7 +5777,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5777
5777
|
success: SuccessColorSchema,
|
|
5778
5778
|
info: InfoColorSchema,
|
|
5779
5779
|
warning: WarningColorSchema,
|
|
5780
|
-
|
|
5780
|
+
danger: DangerColorSchema,
|
|
5781
5781
|
fatal: FatalColorSchema,
|
|
5782
5782
|
positive: PositiveColorSchema,
|
|
5783
5783
|
negative: NegativeColorSchema
|
|
@@ -5872,7 +5872,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5872
5872
|
"success": "#087f5b",
|
|
5873
5873
|
"info": "#0550ae",
|
|
5874
5874
|
"warning": "#e3b341",
|
|
5875
|
-
"
|
|
5875
|
+
"danger": "#D8314A",
|
|
5876
5876
|
"positive": "#22c55e",
|
|
5877
5877
|
"negative": "#dc2626"
|
|
5878
5878
|
},
|
|
@@ -5885,32 +5885,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5885
5885
|
"success": "#10b981",
|
|
5886
5886
|
"info": "#58a6ff",
|
|
5887
5887
|
"warning": "#f3d371",
|
|
5888
|
-
"
|
|
5888
|
+
"danger": "#D8314A",
|
|
5889
5889
|
"positive": "#22c55e",
|
|
5890
5890
|
"negative": "#dc2626"
|
|
5891
5891
|
}
|
|
5892
5892
|
};
|
|
5893
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5894
|
-
name: "storm",
|
|
5895
|
-
namespace: "storm-software",
|
|
5896
|
-
license: "Apache 2.0",
|
|
5897
|
-
homepage: "https://stormsoftware.com",
|
|
5898
|
-
owner: "@storm-software/development",
|
|
5899
|
-
worker: "stormie-bot",
|
|
5900
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5901
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5902
|
-
skipCache: false,
|
|
5903
|
-
packageManager: "npm",
|
|
5904
|
-
timezone: "America/New_York",
|
|
5905
|
-
locale: "en-US",
|
|
5906
|
-
env: "production",
|
|
5907
|
-
branch: "main",
|
|
5908
|
-
organization: "storm-software",
|
|
5909
|
-
configFile: null,
|
|
5910
|
-
runtimeVersion: "1.0.0",
|
|
5911
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5912
|
-
extensions: {}
|
|
5913
|
-
};
|
|
5914
5893
|
|
|
5915
5894
|
// packages/config-tools/src/types.ts
|
|
5916
5895
|
var LogLevel = {
|
|
@@ -5972,9 +5951,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5972
5951
|
return (message) => {
|
|
5973
5952
|
console.error(
|
|
5974
5953
|
`
|
|
5975
|
-
${_chalk.bold.hex(colors.
|
|
5954
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5976
5955
|
" \u{1F480} Fatal "
|
|
5977
|
-
)} ${_chalk.hex(colors.
|
|
5956
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5978
5957
|
`
|
|
5979
5958
|
);
|
|
5980
5959
|
};
|
|
@@ -5983,9 +5962,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5983
5962
|
return (message) => {
|
|
5984
5963
|
console.error(
|
|
5985
5964
|
`
|
|
5986
|
-
${_chalk.bold.hex(colors.
|
|
5965
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5987
5966
|
" \u2718 Error "
|
|
5988
|
-
)} ${_chalk.hex(colors.
|
|
5967
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5989
5968
|
`
|
|
5990
5969
|
);
|
|
5991
5970
|
};
|