@storm-software/git-tools 2.65.0 → 2.67.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 +33 -41
- package/bin/post-checkout.js +33 -41
- package/bin/post-commit.js +33 -41
- package/bin/post-merge.js +33 -41
- package/bin/pre-commit.js +33 -41
- package/bin/pre-install.js +33 -41
- package/bin/pre-push.js +33 -41
- package/bin/prepare.js +33 -41
- package/bin/version-warning.js +33 -41
- package/package.json +1 -1
- package/src/cli/index.js +33 -41
- package/src/commit/index.js +25 -53
- package/src/commitizen/index.js +25 -53
- package/src/index.js +33 -41
- package/src/release/index.js +25 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 2.67.0 (2024-11-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **build-tools:** Added back cjs build and local package.json dependencies ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
|
|
6
|
+
|
|
7
|
+
## 2.66.0 (2024-11-07)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** Add the `danger` color token ([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
12
|
+
|
|
1
13
|
## 2.65.0 (2024-11-01)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/git.js
CHANGED
|
@@ -229897,17 +229897,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
229897
229897
|
});
|
|
229898
229898
|
|
|
229899
229899
|
// packages/config/src/schema.ts
|
|
229900
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229900
|
+
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");
|
|
229901
229901
|
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");
|
|
229902
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229902
|
+
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");
|
|
229903
229903
|
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");
|
|
229904
229904
|
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");
|
|
229905
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
229905
|
+
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");
|
|
229906
229906
|
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");
|
|
229907
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229908
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
229907
|
+
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");
|
|
229908
|
+
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");
|
|
229909
229909
|
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");
|
|
229910
|
-
var
|
|
229910
|
+
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");
|
|
229911
229911
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
229912
229912
|
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");
|
|
229913
229913
|
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");
|
|
@@ -229922,7 +229922,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
229922
229922
|
success: SuccessColorSchema,
|
|
229923
229923
|
info: InfoColorSchema,
|
|
229924
229924
|
warning: WarningColorSchema,
|
|
229925
|
-
|
|
229925
|
+
danger: DangerColorSchema,
|
|
229926
229926
|
fatal: FatalColorSchema,
|
|
229927
229927
|
positive: PositiveColorSchema,
|
|
229928
229928
|
negative: NegativeColorSchema
|
|
@@ -229938,7 +229938,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
229938
229938
|
success: SuccessColorSchema,
|
|
229939
229939
|
info: InfoColorSchema,
|
|
229940
229940
|
warning: WarningColorSchema,
|
|
229941
|
-
|
|
229941
|
+
danger: DangerColorSchema,
|
|
229942
229942
|
fatal: FatalColorSchema,
|
|
229943
229943
|
positive: PositiveColorSchema,
|
|
229944
229944
|
negative: NegativeColorSchema
|
|
@@ -229958,7 +229958,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
229958
229958
|
success: SuccessColorSchema,
|
|
229959
229959
|
info: InfoColorSchema,
|
|
229960
229960
|
warning: WarningColorSchema,
|
|
229961
|
-
|
|
229961
|
+
danger: DangerColorSchema,
|
|
229962
229962
|
fatal: FatalColorSchema,
|
|
229963
229963
|
positive: PositiveColorSchema,
|
|
229964
229964
|
negative: NegativeColorSchema
|
|
@@ -230055,7 +230055,7 @@ var COLOR_KEYS = [
|
|
|
230055
230055
|
"help",
|
|
230056
230056
|
"info",
|
|
230057
230057
|
"warning",
|
|
230058
|
-
"
|
|
230058
|
+
"danger",
|
|
230059
230059
|
"fatal",
|
|
230060
230060
|
"positive",
|
|
230061
230061
|
"negative"
|
|
@@ -230074,7 +230074,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
230074
230074
|
"success": "#087f5b",
|
|
230075
230075
|
"info": "#0550ae",
|
|
230076
230076
|
"warning": "#e3b341",
|
|
230077
|
-
"
|
|
230077
|
+
"danger": "#D8314A",
|
|
230078
230078
|
"positive": "#22c55e",
|
|
230079
230079
|
"negative": "#dc2626"
|
|
230080
230080
|
},
|
|
@@ -230087,7 +230087,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
230087
230087
|
"success": "#10b981",
|
|
230088
230088
|
"info": "#58a6ff",
|
|
230089
230089
|
"warning": "#f3d371",
|
|
230090
|
-
"
|
|
230090
|
+
"danger": "#D8314A",
|
|
230091
230091
|
"positive": "#22c55e",
|
|
230092
230092
|
"negative": "#dc2626"
|
|
230093
230093
|
}
|
|
@@ -230110,7 +230110,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
230110
230110
|
organization: "storm-software",
|
|
230111
230111
|
configFile: null,
|
|
230112
230112
|
runtimeVersion: "1.0.0",
|
|
230113
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
230114
230113
|
extensions: {}
|
|
230115
230114
|
};
|
|
230116
230115
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -230153,7 +230152,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
230153
230152
|
}
|
|
230154
230153
|
return ret;
|
|
230155
230154
|
}, {}),
|
|
230156
|
-
colors: config2.colors
|
|
230155
|
+
colors: config2.colors,
|
|
230157
230156
|
workspaceRoot: workspaceRoot3,
|
|
230158
230157
|
name,
|
|
230159
230158
|
namespace,
|
|
@@ -230254,10 +230253,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
230254
230253
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
230255
230254
|
return (message) => {
|
|
230256
230255
|
console.error(
|
|
230257
|
-
|
|
230258
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
230256
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
230259
230257
|
" \u{1F480} Fatal "
|
|
230260
|
-
)} ${_chalk.hex(colors.
|
|
230258
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
230261
230259
|
`
|
|
230262
230260
|
);
|
|
230263
230261
|
};
|
|
@@ -230265,10 +230263,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
230265
230263
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
230266
230264
|
return (message) => {
|
|
230267
230265
|
console.error(
|
|
230268
|
-
|
|
230269
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
230266
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
230270
230267
|
" \u2718 Error "
|
|
230271
|
-
)} ${_chalk.hex(colors.
|
|
230268
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
230272
230269
|
`
|
|
230273
230270
|
);
|
|
230274
230271
|
};
|
|
@@ -230276,10 +230273,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
230276
230273
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
230277
230274
|
return (message) => {
|
|
230278
230275
|
console.warn(
|
|
230279
|
-
|
|
230280
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
230276
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
230281
230277
|
" \u26A0 Warn "
|
|
230282
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
230278
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
230283
230279
|
`
|
|
230284
230280
|
);
|
|
230285
230281
|
};
|
|
@@ -230287,10 +230283,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
230287
230283
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
230288
230284
|
return (message) => {
|
|
230289
230285
|
console.info(
|
|
230290
|
-
|
|
230291
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
230286
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
230292
230287
|
" \u2713 Success "
|
|
230293
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
230288
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
230294
230289
|
`
|
|
230295
230290
|
);
|
|
230296
230291
|
};
|
|
@@ -230298,10 +230293,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
230298
230293
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
230299
230294
|
return (message) => {
|
|
230300
230295
|
console.info(
|
|
230301
|
-
|
|
230302
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
230296
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
230303
230297
|
" \u2139 Info "
|
|
230304
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
230298
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
230305
230299
|
`
|
|
230306
230300
|
);
|
|
230307
230301
|
};
|
|
@@ -230309,20 +230303,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
230309
230303
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
230310
230304
|
return (message) => {
|
|
230311
230305
|
console.debug(
|
|
230312
|
-
|
|
230313
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
230306
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
230314
230307
|
" \u{1F6E0} Debug "
|
|
230315
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
230308
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
230316
230309
|
`
|
|
230317
230310
|
);
|
|
230318
230311
|
};
|
|
230319
230312
|
}
|
|
230320
230313
|
return (message) => {
|
|
230321
230314
|
console.log(
|
|
230322
|
-
|
|
230323
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
230315
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
230324
230316
|
" \u2709 System "
|
|
230325
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
230317
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
230326
230318
|
`
|
|
230327
230319
|
);
|
|
230328
230320
|
};
|
|
@@ -230583,7 +230575,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
230583
230575
|
success: process.env[`${prefix}SUCCESS`],
|
|
230584
230576
|
info: process.env[`${prefix}INFO`],
|
|
230585
230577
|
warning: process.env[`${prefix}WARNING`],
|
|
230586
|
-
|
|
230578
|
+
danger: process.env[`${prefix}DANGER`],
|
|
230587
230579
|
fatal: process.env[`${prefix}FATAL`],
|
|
230588
230580
|
positive: process.env[`${prefix}POSITIVE`],
|
|
230589
230581
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -230609,7 +230601,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
230609
230601
|
success: process.env[`${prefix}SUCCESS`],
|
|
230610
230602
|
info: process.env[`${prefix}INFO`],
|
|
230611
230603
|
warning: process.env[`${prefix}WARNING`],
|
|
230612
|
-
|
|
230604
|
+
danger: process.env[`${prefix}DANGER`],
|
|
230613
230605
|
fatal: process.env[`${prefix}FATAL`],
|
|
230614
230606
|
positive: process.env[`${prefix}POSITIVE`],
|
|
230615
230607
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -230829,8 +230821,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
230829
230821
|
if (config2.warning) {
|
|
230830
230822
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
230831
230823
|
}
|
|
230832
|
-
if (config2.
|
|
230833
|
-
process.env[`${prefix}
|
|
230824
|
+
if (config2.danger) {
|
|
230825
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
230834
230826
|
}
|
|
230835
230827
|
if (config2.fatal) {
|
|
230836
230828
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -230879,8 +230871,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
230879
230871
|
if (config2.warning) {
|
|
230880
230872
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
230881
230873
|
}
|
|
230882
|
-
if (config2.
|
|
230883
|
-
process.env[`${prefix}
|
|
230874
|
+
if (config2.danger) {
|
|
230875
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
230884
230876
|
}
|
|
230885
230877
|
if (config2.fatal) {
|
|
230886
230878
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
package/bin/post-checkout.js
CHANGED
|
@@ -66213,17 +66213,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66213
66213
|
});
|
|
66214
66214
|
|
|
66215
66215
|
// packages/config/src/schema.ts
|
|
66216
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66216
|
+
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");
|
|
66217
66217
|
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");
|
|
66218
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66218
|
+
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");
|
|
66219
66219
|
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");
|
|
66220
66220
|
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");
|
|
66221
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66221
|
+
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");
|
|
66222
66222
|
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");
|
|
66223
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66224
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
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");
|
|
66224
|
+
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");
|
|
66225
66225
|
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");
|
|
66226
|
-
var
|
|
66226
|
+
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");
|
|
66227
66227
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66228
66228
|
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");
|
|
66229
66229
|
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");
|
|
@@ -66238,7 +66238,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66238
66238
|
success: SuccessColorSchema,
|
|
66239
66239
|
info: InfoColorSchema,
|
|
66240
66240
|
warning: WarningColorSchema,
|
|
66241
|
-
|
|
66241
|
+
danger: DangerColorSchema,
|
|
66242
66242
|
fatal: FatalColorSchema,
|
|
66243
66243
|
positive: PositiveColorSchema,
|
|
66244
66244
|
negative: NegativeColorSchema
|
|
@@ -66254,7 +66254,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66254
66254
|
success: SuccessColorSchema,
|
|
66255
66255
|
info: InfoColorSchema,
|
|
66256
66256
|
warning: WarningColorSchema,
|
|
66257
|
-
|
|
66257
|
+
danger: DangerColorSchema,
|
|
66258
66258
|
fatal: FatalColorSchema,
|
|
66259
66259
|
positive: PositiveColorSchema,
|
|
66260
66260
|
negative: NegativeColorSchema
|
|
@@ -66274,7 +66274,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66274
66274
|
success: SuccessColorSchema,
|
|
66275
66275
|
info: InfoColorSchema,
|
|
66276
66276
|
warning: WarningColorSchema,
|
|
66277
|
-
|
|
66277
|
+
danger: DangerColorSchema,
|
|
66278
66278
|
fatal: FatalColorSchema,
|
|
66279
66279
|
positive: PositiveColorSchema,
|
|
66280
66280
|
negative: NegativeColorSchema
|
|
@@ -66371,7 +66371,7 @@ var COLOR_KEYS = [
|
|
|
66371
66371
|
"help",
|
|
66372
66372
|
"info",
|
|
66373
66373
|
"warning",
|
|
66374
|
-
"
|
|
66374
|
+
"danger",
|
|
66375
66375
|
"fatal",
|
|
66376
66376
|
"positive",
|
|
66377
66377
|
"negative"
|
|
@@ -66390,7 +66390,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66390
66390
|
"success": "#087f5b",
|
|
66391
66391
|
"info": "#0550ae",
|
|
66392
66392
|
"warning": "#e3b341",
|
|
66393
|
-
"
|
|
66393
|
+
"danger": "#D8314A",
|
|
66394
66394
|
"positive": "#22c55e",
|
|
66395
66395
|
"negative": "#dc2626"
|
|
66396
66396
|
},
|
|
@@ -66403,7 +66403,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66403
66403
|
"success": "#10b981",
|
|
66404
66404
|
"info": "#58a6ff",
|
|
66405
66405
|
"warning": "#f3d371",
|
|
66406
|
-
"
|
|
66406
|
+
"danger": "#D8314A",
|
|
66407
66407
|
"positive": "#22c55e",
|
|
66408
66408
|
"negative": "#dc2626"
|
|
66409
66409
|
}
|
|
@@ -66426,7 +66426,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66426
66426
|
organization: "storm-software",
|
|
66427
66427
|
configFile: null,
|
|
66428
66428
|
runtimeVersion: "1.0.0",
|
|
66429
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66430
66429
|
extensions: {}
|
|
66431
66430
|
};
|
|
66432
66431
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66469,7 +66468,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66469
66468
|
}
|
|
66470
66469
|
return ret;
|
|
66471
66470
|
}, {}),
|
|
66472
|
-
colors: config.colors
|
|
66471
|
+
colors: config.colors,
|
|
66473
66472
|
workspaceRoot,
|
|
66474
66473
|
name,
|
|
66475
66474
|
namespace,
|
|
@@ -66570,10 +66569,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66570
66569
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66571
66570
|
return (message) => {
|
|
66572
66571
|
console.error(
|
|
66573
|
-
|
|
66574
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66572
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66575
66573
|
" \u{1F480} Fatal "
|
|
66576
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66577
66575
|
`
|
|
66578
66576
|
);
|
|
66579
66577
|
};
|
|
@@ -66581,10 +66579,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66581
66579
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66582
66580
|
return (message) => {
|
|
66583
66581
|
console.error(
|
|
66584
|
-
|
|
66585
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
66582
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66586
66583
|
" \u2718 Error "
|
|
66587
|
-
)} ${_chalk.hex(colors.
|
|
66584
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66588
66585
|
`
|
|
66589
66586
|
);
|
|
66590
66587
|
};
|
|
@@ -66592,10 +66589,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
66592
66589
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66593
66590
|
return (message) => {
|
|
66594
66591
|
console.warn(
|
|
66595
|
-
|
|
66596
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66592
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66597
66593
|
" \u26A0 Warn "
|
|
66598
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66594
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
66599
66595
|
`
|
|
66600
66596
|
);
|
|
66601
66597
|
};
|
|
@@ -66603,10 +66599,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66603
66599
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66604
66600
|
return (message) => {
|
|
66605
66601
|
console.info(
|
|
66606
|
-
|
|
66607
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66602
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66608
66603
|
" \u2713 Success "
|
|
66609
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66604
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
66610
66605
|
`
|
|
66611
66606
|
);
|
|
66612
66607
|
};
|
|
@@ -66614,10 +66609,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66614
66609
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66615
66610
|
return (message) => {
|
|
66616
66611
|
console.info(
|
|
66617
|
-
|
|
66618
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66612
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66619
66613
|
" \u2139 Info "
|
|
66620
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66614
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
66621
66615
|
`
|
|
66622
66616
|
);
|
|
66623
66617
|
};
|
|
@@ -66625,20 +66619,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
66625
66619
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
66626
66620
|
return (message) => {
|
|
66627
66621
|
console.debug(
|
|
66628
|
-
|
|
66629
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66622
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66630
66623
|
" \u{1F6E0} Debug "
|
|
66631
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66624
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66632
66625
|
`
|
|
66633
66626
|
);
|
|
66634
66627
|
};
|
|
66635
66628
|
}
|
|
66636
66629
|
return (message) => {
|
|
66637
66630
|
console.log(
|
|
66638
|
-
|
|
66639
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66631
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66640
66632
|
" \u2709 System "
|
|
66641
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66633
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66642
66634
|
`
|
|
66643
66635
|
);
|
|
66644
66636
|
};
|
|
@@ -66914,7 +66906,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66914
66906
|
success: process.env[`${prefix}SUCCESS`],
|
|
66915
66907
|
info: process.env[`${prefix}INFO`],
|
|
66916
66908
|
warning: process.env[`${prefix}WARNING`],
|
|
66917
|
-
|
|
66909
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66918
66910
|
fatal: process.env[`${prefix}FATAL`],
|
|
66919
66911
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66920
66912
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66940,7 +66932,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66940
66932
|
success: process.env[`${prefix}SUCCESS`],
|
|
66941
66933
|
info: process.env[`${prefix}INFO`],
|
|
66942
66934
|
warning: process.env[`${prefix}WARNING`],
|
|
66943
|
-
|
|
66935
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66944
66936
|
fatal: process.env[`${prefix}FATAL`],
|
|
66945
66937
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66946
66938
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67160,8 +67152,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67160
67152
|
if (config.warning) {
|
|
67161
67153
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67162
67154
|
}
|
|
67163
|
-
if (config.
|
|
67164
|
-
process.env[`${prefix}
|
|
67155
|
+
if (config.danger) {
|
|
67156
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67165
67157
|
}
|
|
67166
67158
|
if (config.fatal) {
|
|
67167
67159
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67210,8 +67202,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67210
67202
|
if (config.warning) {
|
|
67211
67203
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67212
67204
|
}
|
|
67213
|
-
if (config.
|
|
67214
|
-
process.env[`${prefix}
|
|
67205
|
+
if (config.danger) {
|
|
67206
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67215
67207
|
}
|
|
67216
67208
|
if (config.fatal) {
|
|
67217
67209
|
process.env[`${prefix}FATAL`] = config.fatal;
|