@storm-software/config-tools 1.107.0 → 1.109.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 +27 -4
- package/README.md +3 -2
- package/index.cjs +30 -26
- package/index.js +30 -26
- package/meta.cjs.json +17 -17
- package/meta.esm.json +17 -17
- package/package.json +1 -1
- package/src/utilities/get-default-config.d.ts +1 -1
- package/utilities/logger.cjs +15 -36
- package/utilities/logger.js +15 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,37 @@
|
|
|
1
|
+
## 1.109.0 (2024-11-07)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **config:** Add the `danger` color token ([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
6
|
+
|
|
7
|
+
## 1.108.0 (2024-11-01)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **eslint:** Resolve type issues with Nx plugin in preset
|
|
12
|
+
([d27162e2](https://github.com/storm-software/storm-ops/commit/d27162e2))
|
|
13
|
+
- **config:** Regenerate the config JSON Schema file
|
|
14
|
+
([7258f12d](https://github.com/storm-software/storm-ops/commit/7258f12d))
|
|
15
|
+
- **config:** Added the `positive` and `negative` color tokens
|
|
16
|
+
([24c5e15f](https://github.com/storm-software/storm-ops/commit/24c5e15f))
|
|
17
|
+
|
|
1
18
|
## 1.107.0 (2024-10-31)
|
|
2
19
|
|
|
3
20
|
### Features
|
|
4
21
|
|
|
5
|
-
- **workspace-tools:** Update the Nx package code to conform to latest type
|
|
6
|
-
|
|
22
|
+
- **workspace-tools:** Update the Nx package code to conform to latest type
|
|
23
|
+
definitions
|
|
24
|
+
([b1dbdff8](https://github.com/storm-software/storm-ops/commit/b1dbdff8))
|
|
25
|
+
- **config:** Added the `link` color token to Storm configuration
|
|
26
|
+
([c66f39ed](https://github.com/storm-software/storm-ops/commit/c66f39ed))
|
|
7
27
|
|
|
8
28
|
### Bug Fixes
|
|
9
29
|
|
|
10
|
-
- **cloudflare-tools:** Remove references to removed `projectNameAndRootFormat`
|
|
11
|
-
|
|
30
|
+
- **cloudflare-tools:** Remove references to removed `projectNameAndRootFormat`
|
|
31
|
+
Nx options
|
|
32
|
+
([7db6e9d6](https://github.com/storm-software/storm-ops/commit/7db6e9d6))
|
|
33
|
+
- **storm-ops:** Resolve issue with invalid Nx ouput configuration
|
|
34
|
+
([9ca60bc0](https://github.com/storm-software/storm-ops/commit/9ca60bc0))
|
|
12
35
|
|
|
13
36
|
## 1.106.1 (2024-10-22)
|
|
14
37
|
|
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 -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Storm Configuration Tools](#storm-configuration-tools)
|
|
@@ -78,7 +79,7 @@ environment variables:
|
|
|
78
79
|
| ----------------------- | -------------------------------------------------------------------------------------- | --------------------------- |
|
|
79
80
|
| STORM_COLOR_LIGHT | The workspace's light background theme color | `#f4f4f5` |
|
|
80
81
|
| STORM_COLOR_DARK | The workspace's dark background theme color | `#1d232a` |
|
|
81
|
-
|
|
|
82
|
+
| STORM_COLOR_DANGER | The workspace's danger theme color | `#990000` |
|
|
82
83
|
| STORM_COLOR_FATAL | The workspace's fatal theme color | `#7d1a1a` |
|
|
83
84
|
| STORM_COLOR_INFO | The workspace's info theme color | `#0ea5e9` |
|
|
84
85
|
| STORM_COLOR_PRIMARY | The workspace's primary theme color | `#1fb2a6` |
|
package/index.cjs
CHANGED
|
@@ -66115,17 +66115,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66115
66115
|
});
|
|
66116
66116
|
|
|
66117
66117
|
// packages/config/src/schema.ts
|
|
66118
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66118
|
+
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");
|
|
66119
66119
|
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");
|
|
66120
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66120
|
+
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");
|
|
66121
66121
|
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");
|
|
66122
66122
|
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");
|
|
66123
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66123
|
+
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");
|
|
66124
66124
|
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");
|
|
66125
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66126
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66125
|
+
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");
|
|
66126
|
+
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");
|
|
66127
66127
|
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");
|
|
66128
|
-
var
|
|
66128
|
+
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");
|
|
66129
66129
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66130
66130
|
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");
|
|
66131
66131
|
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");
|
|
@@ -66140,7 +66140,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66140
66140
|
success: SuccessColorSchema,
|
|
66141
66141
|
info: InfoColorSchema,
|
|
66142
66142
|
warning: WarningColorSchema,
|
|
66143
|
-
|
|
66143
|
+
danger: DangerColorSchema,
|
|
66144
66144
|
fatal: FatalColorSchema,
|
|
66145
66145
|
positive: PositiveColorSchema,
|
|
66146
66146
|
negative: NegativeColorSchema
|
|
@@ -66156,7 +66156,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66156
66156
|
success: SuccessColorSchema,
|
|
66157
66157
|
info: InfoColorSchema,
|
|
66158
66158
|
warning: WarningColorSchema,
|
|
66159
|
-
|
|
66159
|
+
danger: DangerColorSchema,
|
|
66160
66160
|
fatal: FatalColorSchema,
|
|
66161
66161
|
positive: PositiveColorSchema,
|
|
66162
66162
|
negative: NegativeColorSchema
|
|
@@ -66176,7 +66176,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66176
66176
|
success: SuccessColorSchema,
|
|
66177
66177
|
info: InfoColorSchema,
|
|
66178
66178
|
warning: WarningColorSchema,
|
|
66179
|
-
|
|
66179
|
+
danger: DangerColorSchema,
|
|
66180
66180
|
fatal: FatalColorSchema,
|
|
66181
66181
|
positive: PositiveColorSchema,
|
|
66182
66182
|
negative: NegativeColorSchema
|
|
@@ -66264,14 +66264,19 @@ var StormConfigSchema = z2.object({
|
|
|
66264
66264
|
var COLOR_KEYS = [
|
|
66265
66265
|
"dark",
|
|
66266
66266
|
"light",
|
|
66267
|
+
"base",
|
|
66267
66268
|
"brand",
|
|
66269
|
+
"alternate",
|
|
66268
66270
|
"accent",
|
|
66269
|
-
"
|
|
66271
|
+
"link",
|
|
66270
66272
|
"success",
|
|
66273
|
+
"help",
|
|
66271
66274
|
"info",
|
|
66272
66275
|
"warning",
|
|
66273
|
-
"
|
|
66274
|
-
"fatal"
|
|
66276
|
+
"danger",
|
|
66277
|
+
"fatal",
|
|
66278
|
+
"positive",
|
|
66279
|
+
"negative"
|
|
66275
66280
|
];
|
|
66276
66281
|
|
|
66277
66282
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -66287,7 +66292,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66287
66292
|
"success": "#087f5b",
|
|
66288
66293
|
"info": "#0550ae",
|
|
66289
66294
|
"warning": "#e3b341",
|
|
66290
|
-
"
|
|
66295
|
+
"danger": "#D8314A",
|
|
66291
66296
|
"positive": "#22c55e",
|
|
66292
66297
|
"negative": "#dc2626"
|
|
66293
66298
|
},
|
|
@@ -66300,7 +66305,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66300
66305
|
"success": "#10b981",
|
|
66301
66306
|
"info": "#58a6ff",
|
|
66302
66307
|
"warning": "#f3d371",
|
|
66303
|
-
"
|
|
66308
|
+
"danger": "#D8314A",
|
|
66304
66309
|
"positive": "#22c55e",
|
|
66305
66310
|
"negative": "#dc2626"
|
|
66306
66311
|
}
|
|
@@ -66323,7 +66328,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66323
66328
|
organization: "storm-software",
|
|
66324
66329
|
configFile: null,
|
|
66325
66330
|
runtimeVersion: "1.0.0",
|
|
66326
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66327
66331
|
extensions: {}
|
|
66328
66332
|
};
|
|
66329
66333
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66366,7 +66370,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66366
66370
|
}
|
|
66367
66371
|
return ret;
|
|
66368
66372
|
}, {}),
|
|
66369
|
-
colors: config.colors
|
|
66373
|
+
colors: config.colors,
|
|
66370
66374
|
workspaceRoot,
|
|
66371
66375
|
name,
|
|
66372
66376
|
namespace,
|
|
@@ -66468,9 +66472,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66468
66472
|
return (message) => {
|
|
66469
66473
|
console.error(
|
|
66470
66474
|
`
|
|
66471
|
-
${_chalk.bold.hex(colors.
|
|
66475
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66472
66476
|
" \u{1F480} Fatal "
|
|
66473
|
-
)} ${_chalk.hex(colors.
|
|
66477
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66474
66478
|
`
|
|
66475
66479
|
);
|
|
66476
66480
|
};
|
|
@@ -66479,9 +66483,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66479
66483
|
return (message) => {
|
|
66480
66484
|
console.error(
|
|
66481
66485
|
`
|
|
66482
|
-
${_chalk.bold.hex(colors.
|
|
66486
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66483
66487
|
" \u2718 Error "
|
|
66484
|
-
)} ${_chalk.hex(colors.
|
|
66488
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66485
66489
|
`
|
|
66486
66490
|
);
|
|
66487
66491
|
};
|
|
@@ -66839,7 +66843,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66839
66843
|
success: process.env[`${prefix}SUCCESS`],
|
|
66840
66844
|
info: process.env[`${prefix}INFO`],
|
|
66841
66845
|
warning: process.env[`${prefix}WARNING`],
|
|
66842
|
-
|
|
66846
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66843
66847
|
fatal: process.env[`${prefix}FATAL`],
|
|
66844
66848
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66845
66849
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66865,7 +66869,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66865
66869
|
success: process.env[`${prefix}SUCCESS`],
|
|
66866
66870
|
info: process.env[`${prefix}INFO`],
|
|
66867
66871
|
warning: process.env[`${prefix}WARNING`],
|
|
66868
|
-
|
|
66872
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66869
66873
|
fatal: process.env[`${prefix}FATAL`],
|
|
66870
66874
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66871
66875
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67085,8 +67089,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67085
67089
|
if (config.warning) {
|
|
67086
67090
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67087
67091
|
}
|
|
67088
|
-
if (config.
|
|
67089
|
-
process.env[`${prefix}
|
|
67092
|
+
if (config.danger) {
|
|
67093
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67090
67094
|
}
|
|
67091
67095
|
if (config.fatal) {
|
|
67092
67096
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67135,8 +67139,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67135
67139
|
if (config.warning) {
|
|
67136
67140
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67137
67141
|
}
|
|
67138
|
-
if (config.
|
|
67139
|
-
process.env[`${prefix}
|
|
67142
|
+
if (config.danger) {
|
|
67143
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67140
67144
|
}
|
|
67141
67145
|
if (config.fatal) {
|
|
67142
67146
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/index.js
CHANGED
|
@@ -66072,17 +66072,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66072
66072
|
});
|
|
66073
66073
|
|
|
66074
66074
|
// packages/config/src/schema.ts
|
|
66075
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66075
|
+
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");
|
|
66076
66076
|
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");
|
|
66077
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66077
|
+
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");
|
|
66078
66078
|
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");
|
|
66079
66079
|
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");
|
|
66080
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66080
|
+
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");
|
|
66081
66081
|
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");
|
|
66082
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66083
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66082
|
+
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");
|
|
66083
|
+
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");
|
|
66084
66084
|
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");
|
|
66085
|
-
var
|
|
66085
|
+
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");
|
|
66086
66086
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66087
66087
|
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");
|
|
66088
66088
|
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");
|
|
@@ -66097,7 +66097,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66097
66097
|
success: SuccessColorSchema,
|
|
66098
66098
|
info: InfoColorSchema,
|
|
66099
66099
|
warning: WarningColorSchema,
|
|
66100
|
-
|
|
66100
|
+
danger: DangerColorSchema,
|
|
66101
66101
|
fatal: FatalColorSchema,
|
|
66102
66102
|
positive: PositiveColorSchema,
|
|
66103
66103
|
negative: NegativeColorSchema
|
|
@@ -66113,7 +66113,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66113
66113
|
success: SuccessColorSchema,
|
|
66114
66114
|
info: InfoColorSchema,
|
|
66115
66115
|
warning: WarningColorSchema,
|
|
66116
|
-
|
|
66116
|
+
danger: DangerColorSchema,
|
|
66117
66117
|
fatal: FatalColorSchema,
|
|
66118
66118
|
positive: PositiveColorSchema,
|
|
66119
66119
|
negative: NegativeColorSchema
|
|
@@ -66133,7 +66133,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66133
66133
|
success: SuccessColorSchema,
|
|
66134
66134
|
info: InfoColorSchema,
|
|
66135
66135
|
warning: WarningColorSchema,
|
|
66136
|
-
|
|
66136
|
+
danger: DangerColorSchema,
|
|
66137
66137
|
fatal: FatalColorSchema,
|
|
66138
66138
|
positive: PositiveColorSchema,
|
|
66139
66139
|
negative: NegativeColorSchema
|
|
@@ -66221,14 +66221,19 @@ var StormConfigSchema = z2.object({
|
|
|
66221
66221
|
var COLOR_KEYS = [
|
|
66222
66222
|
"dark",
|
|
66223
66223
|
"light",
|
|
66224
|
+
"base",
|
|
66224
66225
|
"brand",
|
|
66226
|
+
"alternate",
|
|
66225
66227
|
"accent",
|
|
66226
|
-
"
|
|
66228
|
+
"link",
|
|
66227
66229
|
"success",
|
|
66230
|
+
"help",
|
|
66228
66231
|
"info",
|
|
66229
66232
|
"warning",
|
|
66230
|
-
"
|
|
66231
|
-
"fatal"
|
|
66233
|
+
"danger",
|
|
66234
|
+
"fatal",
|
|
66235
|
+
"positive",
|
|
66236
|
+
"negative"
|
|
66232
66237
|
];
|
|
66233
66238
|
|
|
66234
66239
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -66244,7 +66249,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66244
66249
|
"success": "#087f5b",
|
|
66245
66250
|
"info": "#0550ae",
|
|
66246
66251
|
"warning": "#e3b341",
|
|
66247
|
-
"
|
|
66252
|
+
"danger": "#D8314A",
|
|
66248
66253
|
"positive": "#22c55e",
|
|
66249
66254
|
"negative": "#dc2626"
|
|
66250
66255
|
},
|
|
@@ -66257,7 +66262,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66257
66262
|
"success": "#10b981",
|
|
66258
66263
|
"info": "#58a6ff",
|
|
66259
66264
|
"warning": "#f3d371",
|
|
66260
|
-
"
|
|
66265
|
+
"danger": "#D8314A",
|
|
66261
66266
|
"positive": "#22c55e",
|
|
66262
66267
|
"negative": "#dc2626"
|
|
66263
66268
|
}
|
|
@@ -66280,7 +66285,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66280
66285
|
organization: "storm-software",
|
|
66281
66286
|
configFile: null,
|
|
66282
66287
|
runtimeVersion: "1.0.0",
|
|
66283
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66284
66288
|
extensions: {}
|
|
66285
66289
|
};
|
|
66286
66290
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66323,7 +66327,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66323
66327
|
}
|
|
66324
66328
|
return ret;
|
|
66325
66329
|
}, {}),
|
|
66326
|
-
colors: config.colors
|
|
66330
|
+
colors: config.colors,
|
|
66327
66331
|
workspaceRoot,
|
|
66328
66332
|
name,
|
|
66329
66333
|
namespace,
|
|
@@ -66425,9 +66429,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66425
66429
|
return (message) => {
|
|
66426
66430
|
console.error(
|
|
66427
66431
|
`
|
|
66428
|
-
${_chalk.bold.hex(colors.
|
|
66432
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66429
66433
|
" \u{1F480} Fatal "
|
|
66430
|
-
)} ${_chalk.hex(colors.
|
|
66434
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66431
66435
|
`
|
|
66432
66436
|
);
|
|
66433
66437
|
};
|
|
@@ -66436,9 +66440,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66436
66440
|
return (message) => {
|
|
66437
66441
|
console.error(
|
|
66438
66442
|
`
|
|
66439
|
-
${_chalk.bold.hex(colors.
|
|
66443
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66440
66444
|
" \u2718 Error "
|
|
66441
|
-
)} ${_chalk.hex(colors.
|
|
66445
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66442
66446
|
`
|
|
66443
66447
|
);
|
|
66444
66448
|
};
|
|
@@ -66796,7 +66800,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66796
66800
|
success: process.env[`${prefix}SUCCESS`],
|
|
66797
66801
|
info: process.env[`${prefix}INFO`],
|
|
66798
66802
|
warning: process.env[`${prefix}WARNING`],
|
|
66799
|
-
|
|
66803
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66800
66804
|
fatal: process.env[`${prefix}FATAL`],
|
|
66801
66805
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66802
66806
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66822,7 +66826,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66822
66826
|
success: process.env[`${prefix}SUCCESS`],
|
|
66823
66827
|
info: process.env[`${prefix}INFO`],
|
|
66824
66828
|
warning: process.env[`${prefix}WARNING`],
|
|
66825
|
-
|
|
66829
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66826
66830
|
fatal: process.env[`${prefix}FATAL`],
|
|
66827
66831
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66828
66832
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67042,8 +67046,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67042
67046
|
if (config.warning) {
|
|
67043
67047
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67044
67048
|
}
|
|
67045
|
-
if (config.
|
|
67046
|
-
process.env[`${prefix}
|
|
67049
|
+
if (config.danger) {
|
|
67050
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67047
67051
|
}
|
|
67048
67052
|
if (config.fatal) {
|
|
67049
67053
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67092,8 +67096,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67092
67096
|
if (config.warning) {
|
|
67093
67097
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67094
67098
|
}
|
|
67095
|
-
if (config.
|
|
67096
|
-
process.env[`${prefix}
|
|
67099
|
+
if (config.danger) {
|
|
67100
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67097
67101
|
}
|
|
67098
67102
|
if (config.fatal) {
|
|
67099
67103
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/meta.cjs.json
CHANGED
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
"format": "esm"
|
|
3381
3381
|
},
|
|
3382
3382
|
"packages/config/src/schema.ts": {
|
|
3383
|
-
"bytes":
|
|
3383
|
+
"bytes": 10999,
|
|
3384
3384
|
"imports": [
|
|
3385
3385
|
{
|
|
3386
3386
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"format": "esm"
|
|
3397
3397
|
},
|
|
3398
3398
|
"packages/config/src/types.ts": {
|
|
3399
|
-
"bytes":
|
|
3399
|
+
"bytes": 1954,
|
|
3400
3400
|
"imports": [],
|
|
3401
3401
|
"format": "esm"
|
|
3402
3402
|
},
|
|
@@ -3427,7 +3427,7 @@
|
|
|
3427
3427
|
"format": "esm"
|
|
3428
3428
|
},
|
|
3429
3429
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3430
|
-
"bytes":
|
|
3430
|
+
"bytes": 3500,
|
|
3431
3431
|
"imports": [
|
|
3432
3432
|
{
|
|
3433
3433
|
"path": "packages/config/src/index.ts",
|
|
@@ -3469,7 +3469,7 @@
|
|
|
3469
3469
|
"format": "esm"
|
|
3470
3470
|
},
|
|
3471
3471
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
3472
|
-
"bytes":
|
|
3472
|
+
"bytes": 9437,
|
|
3473
3473
|
"imports": [
|
|
3474
3474
|
{
|
|
3475
3475
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 9364,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config/src/index.ts",
|
|
@@ -3631,7 +3631,7 @@
|
|
|
3631
3631
|
"format": "esm"
|
|
3632
3632
|
},
|
|
3633
3633
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3634
|
-
"bytes":
|
|
3634
|
+
"bytes": 11104,
|
|
3635
3635
|
"imports": [
|
|
3636
3636
|
{
|
|
3637
3637
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -5172,13 +5172,13 @@
|
|
|
5172
5172
|
"bytesInOutput": 117366
|
|
5173
5173
|
},
|
|
5174
5174
|
"packages/config/src/schema.ts": {
|
|
5175
|
-
"bytesInOutput":
|
|
5175
|
+
"bytesInOutput": 9200
|
|
5176
5176
|
},
|
|
5177
5177
|
"packages/config/src/types.ts": {
|
|
5178
|
-
"bytesInOutput":
|
|
5178
|
+
"bytesInOutput": 197
|
|
5179
5179
|
},
|
|
5180
5180
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5181
|
-
"bytesInOutput":
|
|
5181
|
+
"bytesInOutput": 3002
|
|
5182
5182
|
},
|
|
5183
5183
|
"packages/config-tools/src/types.ts": {
|
|
5184
5184
|
"bytesInOutput": 297
|
|
@@ -5187,7 +5187,7 @@
|
|
|
5187
5187
|
"bytesInOutput": 1125
|
|
5188
5188
|
},
|
|
5189
5189
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5190
|
-
"bytesInOutput":
|
|
5190
|
+
"bytesInOutput": 5815
|
|
5191
5191
|
},
|
|
5192
5192
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5193
5193
|
"bytesInOutput": 1268
|
|
@@ -5202,16 +5202,16 @@
|
|
|
5202
5202
|
"bytesInOutput": 2799
|
|
5203
5203
|
},
|
|
5204
5204
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5205
|
-
"bytesInOutput":
|
|
5205
|
+
"bytesInOutput": 6602
|
|
5206
5206
|
},
|
|
5207
5207
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5208
|
-
"bytesInOutput":
|
|
5208
|
+
"bytesInOutput": 8711
|
|
5209
5209
|
},
|
|
5210
5210
|
"packages/config-tools/src/env/index.ts": {
|
|
5211
5211
|
"bytesInOutput": 0
|
|
5212
5212
|
}
|
|
5213
5213
|
},
|
|
5214
|
-
"bytes":
|
|
5214
|
+
"bytes": 4132450
|
|
5215
5215
|
},
|
|
5216
5216
|
"dist/packages/config-tools/utilities/find-workspace-root.cjs": {
|
|
5217
5217
|
"imports": [
|
|
@@ -5340,7 +5340,7 @@
|
|
|
5340
5340
|
"bytesInOutput": 5939
|
|
5341
5341
|
},
|
|
5342
5342
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5343
|
-
"bytesInOutput":
|
|
5343
|
+
"bytesInOutput": 6277
|
|
5344
5344
|
},
|
|
5345
5345
|
"packages/config-tools/src/types.ts": {
|
|
5346
5346
|
"bytesInOutput": 297
|
|
@@ -5358,16 +5358,16 @@
|
|
|
5358
5358
|
"bytesInOutput": 116969
|
|
5359
5359
|
},
|
|
5360
5360
|
"packages/config/src/schema.ts": {
|
|
5361
|
-
"bytesInOutput":
|
|
5361
|
+
"bytesInOutput": 9143
|
|
5362
5362
|
},
|
|
5363
5363
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5364
|
-
"bytesInOutput":
|
|
5364
|
+
"bytesInOutput": 638
|
|
5365
5365
|
},
|
|
5366
5366
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5367
5367
|
"bytesInOutput": 468
|
|
5368
5368
|
}
|
|
5369
5369
|
},
|
|
5370
|
-
"bytes":
|
|
5370
|
+
"bytes": 186094
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
5373
|
}
|
package/meta.esm.json
CHANGED
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
"format": "esm"
|
|
3381
3381
|
},
|
|
3382
3382
|
"packages/config/src/schema.ts": {
|
|
3383
|
-
"bytes":
|
|
3383
|
+
"bytes": 10999,
|
|
3384
3384
|
"imports": [
|
|
3385
3385
|
{
|
|
3386
3386
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"format": "esm"
|
|
3397
3397
|
},
|
|
3398
3398
|
"packages/config/src/types.ts": {
|
|
3399
|
-
"bytes":
|
|
3399
|
+
"bytes": 1954,
|
|
3400
3400
|
"imports": [],
|
|
3401
3401
|
"format": "esm"
|
|
3402
3402
|
},
|
|
@@ -3427,7 +3427,7 @@
|
|
|
3427
3427
|
"format": "esm"
|
|
3428
3428
|
},
|
|
3429
3429
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3430
|
-
"bytes":
|
|
3430
|
+
"bytes": 3500,
|
|
3431
3431
|
"imports": [
|
|
3432
3432
|
{
|
|
3433
3433
|
"path": "packages/config/src/index.ts",
|
|
@@ -3469,7 +3469,7 @@
|
|
|
3469
3469
|
"format": "esm"
|
|
3470
3470
|
},
|
|
3471
3471
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
3472
|
-
"bytes":
|
|
3472
|
+
"bytes": 9437,
|
|
3473
3473
|
"imports": [
|
|
3474
3474
|
{
|
|
3475
3475
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 9364,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config/src/index.ts",
|
|
@@ -3631,7 +3631,7 @@
|
|
|
3631
3631
|
"format": "esm"
|
|
3632
3632
|
},
|
|
3633
3633
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3634
|
-
"bytes":
|
|
3634
|
+
"bytes": 11104,
|
|
3635
3635
|
"imports": [
|
|
3636
3636
|
{
|
|
3637
3637
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -5212,13 +5212,13 @@
|
|
|
5212
5212
|
"bytesInOutput": 117366
|
|
5213
5213
|
},
|
|
5214
5214
|
"packages/config/src/schema.ts": {
|
|
5215
|
-
"bytesInOutput":
|
|
5215
|
+
"bytesInOutput": 9200
|
|
5216
5216
|
},
|
|
5217
5217
|
"packages/config/src/types.ts": {
|
|
5218
|
-
"bytesInOutput":
|
|
5218
|
+
"bytesInOutput": 197
|
|
5219
5219
|
},
|
|
5220
5220
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5221
|
-
"bytesInOutput":
|
|
5221
|
+
"bytesInOutput": 2954
|
|
5222
5222
|
},
|
|
5223
5223
|
"packages/config-tools/src/types.ts": {
|
|
5224
5224
|
"bytesInOutput": 297
|
|
@@ -5227,7 +5227,7 @@
|
|
|
5227
5227
|
"bytesInOutput": 1125
|
|
5228
5228
|
},
|
|
5229
5229
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5230
|
-
"bytesInOutput":
|
|
5230
|
+
"bytesInOutput": 5815
|
|
5231
5231
|
},
|
|
5232
5232
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5233
5233
|
"bytesInOutput": 1268
|
|
@@ -5245,16 +5245,16 @@
|
|
|
5245
5245
|
"bytesInOutput": 2799
|
|
5246
5246
|
},
|
|
5247
5247
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5248
|
-
"bytesInOutput":
|
|
5248
|
+
"bytesInOutput": 6602
|
|
5249
5249
|
},
|
|
5250
5250
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5251
|
-
"bytesInOutput":
|
|
5251
|
+
"bytesInOutput": 8711
|
|
5252
5252
|
},
|
|
5253
5253
|
"packages/config-tools/src/env/index.ts": {
|
|
5254
5254
|
"bytesInOutput": 0
|
|
5255
5255
|
}
|
|
5256
5256
|
},
|
|
5257
|
-
"bytes":
|
|
5257
|
+
"bytes": 4127064
|
|
5258
5258
|
},
|
|
5259
5259
|
"dist/packages/config-tools/utilities/find-workspace-root.js": {
|
|
5260
5260
|
"imports": [
|
|
@@ -5415,19 +5415,19 @@
|
|
|
5415
5415
|
"bytesInOutput": 116969
|
|
5416
5416
|
},
|
|
5417
5417
|
"packages/config/src/schema.ts": {
|
|
5418
|
-
"bytesInOutput":
|
|
5418
|
+
"bytesInOutput": 9143
|
|
5419
5419
|
},
|
|
5420
5420
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5421
|
-
"bytesInOutput":
|
|
5421
|
+
"bytesInOutput": 638
|
|
5422
5422
|
},
|
|
5423
5423
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5424
5424
|
"bytesInOutput": 468
|
|
5425
5425
|
},
|
|
5426
5426
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5427
|
-
"bytesInOutput":
|
|
5427
|
+
"bytesInOutput": 5803
|
|
5428
5428
|
}
|
|
5429
5429
|
},
|
|
5430
|
-
"bytes":
|
|
5430
|
+
"bytes": 185611
|
|
5431
5431
|
}
|
|
5432
5432
|
}
|
|
5433
5433
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.109.0",
|
|
4
4
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
package/utilities/logger.cjs
CHANGED
|
@@ -5560,17 +5560,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5560
5560
|
});
|
|
5561
5561
|
|
|
5562
5562
|
// packages/config/src/schema.ts
|
|
5563
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5563
|
+
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");
|
|
5564
5564
|
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");
|
|
5565
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5565
|
+
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");
|
|
5566
5566
|
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");
|
|
5567
5567
|
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");
|
|
5568
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5568
|
+
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");
|
|
5569
5569
|
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");
|
|
5570
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5571
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5570
|
+
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");
|
|
5571
|
+
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");
|
|
5572
5572
|
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");
|
|
5573
|
-
var
|
|
5573
|
+
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");
|
|
5574
5574
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5575
5575
|
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");
|
|
5576
5576
|
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");
|
|
@@ -5585,7 +5585,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5585
5585
|
success: SuccessColorSchema,
|
|
5586
5586
|
info: InfoColorSchema,
|
|
5587
5587
|
warning: WarningColorSchema,
|
|
5588
|
-
|
|
5588
|
+
danger: DangerColorSchema,
|
|
5589
5589
|
fatal: FatalColorSchema,
|
|
5590
5590
|
positive: PositiveColorSchema,
|
|
5591
5591
|
negative: NegativeColorSchema
|
|
@@ -5601,7 +5601,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5601
5601
|
success: SuccessColorSchema,
|
|
5602
5602
|
info: InfoColorSchema,
|
|
5603
5603
|
warning: WarningColorSchema,
|
|
5604
|
-
|
|
5604
|
+
danger: DangerColorSchema,
|
|
5605
5605
|
fatal: FatalColorSchema,
|
|
5606
5606
|
positive: PositiveColorSchema,
|
|
5607
5607
|
negative: NegativeColorSchema
|
|
@@ -5621,7 +5621,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5621
5621
|
success: SuccessColorSchema,
|
|
5622
5622
|
info: InfoColorSchema,
|
|
5623
5623
|
warning: WarningColorSchema,
|
|
5624
|
-
|
|
5624
|
+
danger: DangerColorSchema,
|
|
5625
5625
|
fatal: FatalColorSchema,
|
|
5626
5626
|
positive: PositiveColorSchema,
|
|
5627
5627
|
negative: NegativeColorSchema
|
|
@@ -5716,7 +5716,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5716
5716
|
"success": "#087f5b",
|
|
5717
5717
|
"info": "#0550ae",
|
|
5718
5718
|
"warning": "#e3b341",
|
|
5719
|
-
"
|
|
5719
|
+
"danger": "#D8314A",
|
|
5720
5720
|
"positive": "#22c55e",
|
|
5721
5721
|
"negative": "#dc2626"
|
|
5722
5722
|
},
|
|
@@ -5729,32 +5729,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5729
5729
|
"success": "#10b981",
|
|
5730
5730
|
"info": "#58a6ff",
|
|
5731
5731
|
"warning": "#f3d371",
|
|
5732
|
-
"
|
|
5732
|
+
"danger": "#D8314A",
|
|
5733
5733
|
"positive": "#22c55e",
|
|
5734
5734
|
"negative": "#dc2626"
|
|
5735
5735
|
}
|
|
5736
5736
|
};
|
|
5737
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5738
|
-
name: "storm",
|
|
5739
|
-
namespace: "storm-software",
|
|
5740
|
-
license: "Apache 2.0",
|
|
5741
|
-
homepage: "https://stormsoftware.com",
|
|
5742
|
-
owner: "@storm-software/development",
|
|
5743
|
-
worker: "stormie-bot",
|
|
5744
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5745
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5746
|
-
skipCache: false,
|
|
5747
|
-
packageManager: "npm",
|
|
5748
|
-
timezone: "America/New_York",
|
|
5749
|
-
locale: "en-US",
|
|
5750
|
-
env: "production",
|
|
5751
|
-
branch: "main",
|
|
5752
|
-
organization: "storm-software",
|
|
5753
|
-
configFile: null,
|
|
5754
|
-
runtimeVersion: "1.0.0",
|
|
5755
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5756
|
-
extensions: {}
|
|
5757
|
-
};
|
|
5758
5737
|
|
|
5759
5738
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
5760
5739
|
var getLogLevel = (label) => {
|
|
@@ -5793,9 +5772,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5793
5772
|
return (message) => {
|
|
5794
5773
|
console.error(
|
|
5795
5774
|
`
|
|
5796
|
-
${_chalk.bold.hex(colors.
|
|
5775
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5797
5776
|
" \u{1F480} Fatal "
|
|
5798
|
-
)} ${_chalk.hex(colors.
|
|
5777
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5799
5778
|
`
|
|
5800
5779
|
);
|
|
5801
5780
|
};
|
|
@@ -5804,9 +5783,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5804
5783
|
return (message) => {
|
|
5805
5784
|
console.error(
|
|
5806
5785
|
`
|
|
5807
|
-
${_chalk.bold.hex(colors.
|
|
5786
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5808
5787
|
" \u2718 Error "
|
|
5809
|
-
)} ${_chalk.hex(colors.
|
|
5788
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5810
5789
|
`
|
|
5811
5790
|
);
|
|
5812
5791
|
};
|
package/utilities/logger.js
CHANGED
|
@@ -5544,17 +5544,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5544
5544
|
});
|
|
5545
5545
|
|
|
5546
5546
|
// packages/config/src/schema.ts
|
|
5547
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5547
|
+
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");
|
|
5548
5548
|
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");
|
|
5549
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5549
|
+
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");
|
|
5550
5550
|
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");
|
|
5551
5551
|
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");
|
|
5552
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5552
|
+
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");
|
|
5553
5553
|
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");
|
|
5554
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5555
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5554
|
+
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");
|
|
5555
|
+
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");
|
|
5556
5556
|
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");
|
|
5557
|
-
var
|
|
5557
|
+
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");
|
|
5558
5558
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5559
5559
|
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");
|
|
5560
5560
|
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");
|
|
@@ -5569,7 +5569,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5569
5569
|
success: SuccessColorSchema,
|
|
5570
5570
|
info: InfoColorSchema,
|
|
5571
5571
|
warning: WarningColorSchema,
|
|
5572
|
-
|
|
5572
|
+
danger: DangerColorSchema,
|
|
5573
5573
|
fatal: FatalColorSchema,
|
|
5574
5574
|
positive: PositiveColorSchema,
|
|
5575
5575
|
negative: NegativeColorSchema
|
|
@@ -5585,7 +5585,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5585
5585
|
success: SuccessColorSchema,
|
|
5586
5586
|
info: InfoColorSchema,
|
|
5587
5587
|
warning: WarningColorSchema,
|
|
5588
|
-
|
|
5588
|
+
danger: DangerColorSchema,
|
|
5589
5589
|
fatal: FatalColorSchema,
|
|
5590
5590
|
positive: PositiveColorSchema,
|
|
5591
5591
|
negative: NegativeColorSchema
|
|
@@ -5605,7 +5605,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5605
5605
|
success: SuccessColorSchema,
|
|
5606
5606
|
info: InfoColorSchema,
|
|
5607
5607
|
warning: WarningColorSchema,
|
|
5608
|
-
|
|
5608
|
+
danger: DangerColorSchema,
|
|
5609
5609
|
fatal: FatalColorSchema,
|
|
5610
5610
|
positive: PositiveColorSchema,
|
|
5611
5611
|
negative: NegativeColorSchema
|
|
@@ -5700,7 +5700,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5700
5700
|
"success": "#087f5b",
|
|
5701
5701
|
"info": "#0550ae",
|
|
5702
5702
|
"warning": "#e3b341",
|
|
5703
|
-
"
|
|
5703
|
+
"danger": "#D8314A",
|
|
5704
5704
|
"positive": "#22c55e",
|
|
5705
5705
|
"negative": "#dc2626"
|
|
5706
5706
|
},
|
|
@@ -5713,32 +5713,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5713
5713
|
"success": "#10b981",
|
|
5714
5714
|
"info": "#58a6ff",
|
|
5715
5715
|
"warning": "#f3d371",
|
|
5716
|
-
"
|
|
5716
|
+
"danger": "#D8314A",
|
|
5717
5717
|
"positive": "#22c55e",
|
|
5718
5718
|
"negative": "#dc2626"
|
|
5719
5719
|
}
|
|
5720
5720
|
};
|
|
5721
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5722
|
-
name: "storm",
|
|
5723
|
-
namespace: "storm-software",
|
|
5724
|
-
license: "Apache 2.0",
|
|
5725
|
-
homepage: "https://stormsoftware.com",
|
|
5726
|
-
owner: "@storm-software/development",
|
|
5727
|
-
worker: "stormie-bot",
|
|
5728
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5729
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5730
|
-
skipCache: false,
|
|
5731
|
-
packageManager: "npm",
|
|
5732
|
-
timezone: "America/New_York",
|
|
5733
|
-
locale: "en-US",
|
|
5734
|
-
env: "production",
|
|
5735
|
-
branch: "main",
|
|
5736
|
-
organization: "storm-software",
|
|
5737
|
-
configFile: null,
|
|
5738
|
-
runtimeVersion: "1.0.0",
|
|
5739
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5740
|
-
extensions: {}
|
|
5741
|
-
};
|
|
5742
5721
|
|
|
5743
5722
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
5744
5723
|
var getLogLevel = (label) => {
|
|
@@ -5777,9 +5756,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5777
5756
|
return (message) => {
|
|
5778
5757
|
console.error(
|
|
5779
5758
|
`
|
|
5780
|
-
${_chalk.bold.hex(colors.
|
|
5759
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5781
5760
|
" \u{1F480} Fatal "
|
|
5782
|
-
)} ${_chalk.hex(colors.
|
|
5761
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5783
5762
|
`
|
|
5784
5763
|
);
|
|
5785
5764
|
};
|
|
@@ -5788,9 +5767,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5788
5767
|
return (message) => {
|
|
5789
5768
|
console.error(
|
|
5790
5769
|
`
|
|
5791
|
-
${_chalk.bold.hex(colors.
|
|
5770
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5792
5771
|
" \u2718 Error "
|
|
5793
|
-
)} ${_chalk.hex(colors.
|
|
5772
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5794
5773
|
`
|
|
5795
5774
|
);
|
|
5796
5775
|
};
|