@storm-software/terraform-tools 0.66.131 → 0.66.133
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 +24 -0
- package/README.md +1 -1
- package/dist/{chunk-VPDCPMT4.js → chunk-42IK6PKT.js} +2 -2
- package/dist/{chunk-NWY3M4Y7.mjs → chunk-6QCPWFSU.mjs} +1 -1
- package/dist/{chunk-VVTZK7QC.js → chunk-CIZCQJA2.js} +2 -2
- package/dist/{chunk-3VGXHRAO.mjs → chunk-DYJFXKXN.mjs} +1 -1
- package/dist/{chunk-P2FCEKRM.mjs → chunk-M5FLQWTU.mjs} +1 -1
- package/dist/{chunk-CSSURIXD.js → chunk-SAHP2OZO.js} +2 -2
- package/dist/{chunk-HS73TMOT.js → chunk-SWSLK47E.js} +45 -7
- package/dist/{chunk-W4YTEVEK.js → chunk-VNQMXQXA.js} +2 -2
- package/dist/{chunk-YOTIWEB3.mjs → chunk-VNRBBPU2.mjs} +45 -7
- package/dist/{chunk-WWQYEF4W.mjs → chunk-X5XKILGN.mjs} +1 -1
- package/dist/{chunk-Y77JFNOZ.js → chunk-XR7ZA3FJ.js} +2 -2
- package/dist/{chunk-PKDUL5X6.mjs → chunk-XTLX4UAN.mjs} +2 -2
- package/dist/{chunk-V3SJX57N.js → chunk-YZUUQDUD.js} +159 -159
- package/dist/{chunk-AODO7D3K.mjs → chunk-ZUQNVBQ7.mjs} +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.66.132](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.132) (03/18/2026)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **config:** Added the `performance` color configuration and logLevel ([02e67c64e](https://github.com/storm-software/storm-ops/commit/02e67c64e))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **workspace-tools** to **v1.295.17**
|
|
14
|
+
- Updated **config-tools** to **v1.189.41**
|
|
15
|
+
- Updated **config** to **v1.136.0**
|
|
16
|
+
|
|
17
|
+
## [0.66.131](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.131) (03/18/2026)
|
|
18
|
+
|
|
19
|
+
### Miscellaneous
|
|
20
|
+
|
|
21
|
+
- **devenv-modules:** Update tasks for devenv modules ([7e9677f2e](https://github.com/storm-software/storm-ops/commit/7e9677f2e))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated **workspace-tools** to **v1.295.16**
|
|
26
|
+
- Updated **config-tools** to **v1.189.40**
|
|
27
|
+
- Updated **config** to **v1.135.41**
|
|
28
|
+
|
|
5
29
|
## [0.66.130](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.130) (03/16/2026)
|
|
6
30
|
|
|
7
31
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVNQMXQXAjs = require('./chunk-VNQMXQXA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkVNQMXQXAjs.withTerraformExecutor.call(void 0, "destroy");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVNQMXQXAjs = require('./chunk-VNQMXQXA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkVNQMXQXAjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVNQMXQXAjs = require('./chunk-VNQMXQXA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkVNQMXQXAjs.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,6 +13,7 @@ var LogLevel = {
|
|
|
13
13
|
WARN: 30,
|
|
14
14
|
SUCCESS: 35,
|
|
15
15
|
INFO: 40,
|
|
16
|
+
PERFORMANCE: 50,
|
|
16
17
|
DEBUG: 60,
|
|
17
18
|
TRACE: 70,
|
|
18
19
|
ALL: 100
|
|
@@ -24,6 +25,7 @@ var LogLevelLabel = {
|
|
|
24
25
|
WARN: "warn",
|
|
25
26
|
SUCCESS: "success",
|
|
26
27
|
INFO: "info",
|
|
28
|
+
PERFORMANCE: "performance",
|
|
27
29
|
DEBUG: "debug",
|
|
28
30
|
TRACE: "trace",
|
|
29
31
|
ALL: "all"
|
|
@@ -43,6 +45,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
43
45
|
warning: "#e3b341",
|
|
44
46
|
danger: "#D8314A",
|
|
45
47
|
fatal: "#51070f",
|
|
48
|
+
performance: "#83ff83",
|
|
46
49
|
link: "#3fa6ff",
|
|
47
50
|
positive: "#22c55e",
|
|
48
51
|
negative: "#dc2626",
|
|
@@ -60,6 +63,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
60
63
|
warning: "#f3d371",
|
|
61
64
|
danger: "#D8314A",
|
|
62
65
|
fatal: "#a40e26",
|
|
66
|
+
performance: "#00ff00",
|
|
63
67
|
link: "#3fa6ff",
|
|
64
68
|
positive: "#22c55e",
|
|
65
69
|
negative: "#dc2626",
|
|
@@ -147,6 +151,7 @@ var CONSOLE_ICONS = {
|
|
|
147
151
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
148
152
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
149
153
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
154
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
150
155
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
151
156
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
152
157
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -167,6 +172,8 @@ var getLogLevel = (label) => {
|
|
|
167
172
|
return LogLevel.TRACE;
|
|
168
173
|
case "debug":
|
|
169
174
|
return LogLevel.DEBUG;
|
|
175
|
+
case "performance":
|
|
176
|
+
return LogLevel.PERFORMANCE;
|
|
170
177
|
case "info":
|
|
171
178
|
return LogLevel.INFO;
|
|
172
179
|
case "warn":
|
|
@@ -191,6 +198,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
191
198
|
if (logLevel >= LogLevel.DEBUG) {
|
|
192
199
|
return LogLevelLabel.DEBUG;
|
|
193
200
|
}
|
|
201
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
202
|
+
return LogLevelLabel.PERFORMANCE;
|
|
203
|
+
}
|
|
194
204
|
if (logLevel >= LogLevel.INFO) {
|
|
195
205
|
return LogLevelLabel.INFO;
|
|
196
206
|
}
|
|
@@ -278,6 +288,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
278
288
|
)(
|
|
279
289
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
280
290
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
291
|
+
`
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
296
|
+
return (message) => {
|
|
297
|
+
console.debug(
|
|
298
|
+
`
|
|
299
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
300
|
+
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
301
|
+
)(
|
|
302
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
303
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
281
304
|
`
|
|
282
305
|
);
|
|
283
306
|
};
|
|
@@ -323,18 +346,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
323
346
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
324
347
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
325
348
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
349
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
326
350
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
327
351
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
328
352
|
var getStopwatch = (name) => {
|
|
329
353
|
const start = /* @__PURE__ */ new Date();
|
|
330
354
|
return () => {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
includeSeconds: true
|
|
336
|
-
}
|
|
337
|
-
)} to complete`
|
|
355
|
+
writePerformance(
|
|
356
|
+
`The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0, start, {
|
|
357
|
+
includeSeconds: true
|
|
358
|
+
})} to complete`
|
|
338
359
|
);
|
|
339
360
|
};
|
|
340
361
|
};
|
|
@@ -777,6 +798,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
777
798
|
schemaRegistry.add(fatalColorSchema, {
|
|
778
799
|
description: "The fatal color of the workspace"
|
|
779
800
|
});
|
|
801
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
802
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
803
|
+
description: "The performance color of the workspace"
|
|
804
|
+
});
|
|
780
805
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
781
806
|
schemaRegistry.add(positiveColorSchema, {
|
|
782
807
|
description: "The positive number color of the workspace"
|
|
@@ -803,6 +828,7 @@ var darkColorsSchema = z.object({
|
|
|
803
828
|
warning: warningColorSchema,
|
|
804
829
|
danger: dangerColorSchema,
|
|
805
830
|
fatal: fatalColorSchema,
|
|
831
|
+
performance: performanceColorSchema,
|
|
806
832
|
positive: positiveColorSchema,
|
|
807
833
|
negative: negativeColorSchema,
|
|
808
834
|
gradient: gradientStopsSchema
|
|
@@ -821,6 +847,7 @@ var lightColorsSchema = z.object({
|
|
|
821
847
|
warning: warningColorSchema,
|
|
822
848
|
danger: dangerColorSchema,
|
|
823
849
|
fatal: fatalColorSchema,
|
|
850
|
+
performance: performanceColorSchema,
|
|
824
851
|
positive: positiveColorSchema,
|
|
825
852
|
negative: negativeColorSchema,
|
|
826
853
|
gradient: gradientStopsSchema
|
|
@@ -843,6 +870,7 @@ var singleColorsSchema = z.object({
|
|
|
843
870
|
warning: warningColorSchema,
|
|
844
871
|
danger: dangerColorSchema,
|
|
845
872
|
fatal: fatalColorSchema,
|
|
873
|
+
performance: performanceColorSchema,
|
|
846
874
|
positive: positiveColorSchema,
|
|
847
875
|
negative: negativeColorSchema,
|
|
848
876
|
gradient: gradientStopsSchema
|
|
@@ -1210,6 +1238,7 @@ var logLevelSchema = z._default(
|
|
|
1210
1238
|
"warn",
|
|
1211
1239
|
"success",
|
|
1212
1240
|
"info",
|
|
1241
|
+
"performance",
|
|
1213
1242
|
"debug",
|
|
1214
1243
|
"trace",
|
|
1215
1244
|
"all"
|
|
@@ -1289,6 +1318,7 @@ var COLOR_KEYS = [
|
|
|
1289
1318
|
"warning",
|
|
1290
1319
|
"danger",
|
|
1291
1320
|
"fatal",
|
|
1321
|
+
"performance",
|
|
1292
1322
|
"positive",
|
|
1293
1323
|
"negative"
|
|
1294
1324
|
];
|
|
@@ -1629,6 +1659,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1629
1659
|
warning: process.env[`${prefix}WARNING`],
|
|
1630
1660
|
danger: process.env[`${prefix}DANGER`],
|
|
1631
1661
|
fatal: process.env[`${prefix}FATAL`],
|
|
1662
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1632
1663
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1633
1664
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1634
1665
|
gradient
|
|
@@ -1668,6 +1699,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1668
1699
|
warning: process.env[`${prefix}WARNING`],
|
|
1669
1700
|
danger: process.env[`${prefix}DANGER`],
|
|
1670
1701
|
fatal: process.env[`${prefix}FATAL`],
|
|
1702
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1671
1703
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1672
1704
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1673
1705
|
gradient
|
|
@@ -1978,6 +2010,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1978
2010
|
if (config.fatal) {
|
|
1979
2011
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1980
2012
|
}
|
|
2013
|
+
if (config.performance) {
|
|
2014
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2015
|
+
}
|
|
1981
2016
|
if (config.positive) {
|
|
1982
2017
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1983
2018
|
}
|
|
@@ -2036,6 +2071,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
2036
2071
|
if (config.fatal) {
|
|
2037
2072
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
2038
2073
|
}
|
|
2074
|
+
if (config.performance) {
|
|
2075
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2076
|
+
}
|
|
2039
2077
|
if (config.positive) {
|
|
2040
2078
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
2041
2079
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSWSLK47Ejs = require('./chunk-SWSLK47E.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/run.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -25,7 +25,7 @@ var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => (
|
|
|
25
25
|
// src/base/terraform-executor.ts
|
|
26
26
|
var _shelljs = require('shelljs');
|
|
27
27
|
var withTerraformExecutor = (command, executorOptions = {}) => async (_options, context) => {
|
|
28
|
-
return
|
|
28
|
+
return _chunkSWSLK47Ejs.withRunExecutor.call(void 0,
|
|
29
29
|
`Terraform \`${command}\` Command Executor`,
|
|
30
30
|
async (options, context2, config) => {
|
|
31
31
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
@@ -13,6 +13,7 @@ var LogLevel = {
|
|
|
13
13
|
WARN: 30,
|
|
14
14
|
SUCCESS: 35,
|
|
15
15
|
INFO: 40,
|
|
16
|
+
PERFORMANCE: 50,
|
|
16
17
|
DEBUG: 60,
|
|
17
18
|
TRACE: 70,
|
|
18
19
|
ALL: 100
|
|
@@ -24,6 +25,7 @@ var LogLevelLabel = {
|
|
|
24
25
|
WARN: "warn",
|
|
25
26
|
SUCCESS: "success",
|
|
26
27
|
INFO: "info",
|
|
28
|
+
PERFORMANCE: "performance",
|
|
27
29
|
DEBUG: "debug",
|
|
28
30
|
TRACE: "trace",
|
|
29
31
|
ALL: "all"
|
|
@@ -43,6 +45,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
43
45
|
warning: "#e3b341",
|
|
44
46
|
danger: "#D8314A",
|
|
45
47
|
fatal: "#51070f",
|
|
48
|
+
performance: "#83ff83",
|
|
46
49
|
link: "#3fa6ff",
|
|
47
50
|
positive: "#22c55e",
|
|
48
51
|
negative: "#dc2626",
|
|
@@ -60,6 +63,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
60
63
|
warning: "#f3d371",
|
|
61
64
|
danger: "#D8314A",
|
|
62
65
|
fatal: "#a40e26",
|
|
66
|
+
performance: "#00ff00",
|
|
63
67
|
link: "#3fa6ff",
|
|
64
68
|
positive: "#22c55e",
|
|
65
69
|
negative: "#dc2626",
|
|
@@ -147,6 +151,7 @@ var CONSOLE_ICONS = {
|
|
|
147
151
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
148
152
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
149
153
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
154
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
150
155
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
151
156
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
152
157
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -167,6 +172,8 @@ var getLogLevel = (label) => {
|
|
|
167
172
|
return LogLevel.TRACE;
|
|
168
173
|
case "debug":
|
|
169
174
|
return LogLevel.DEBUG;
|
|
175
|
+
case "performance":
|
|
176
|
+
return LogLevel.PERFORMANCE;
|
|
170
177
|
case "info":
|
|
171
178
|
return LogLevel.INFO;
|
|
172
179
|
case "warn":
|
|
@@ -191,6 +198,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
191
198
|
if (logLevel >= LogLevel.DEBUG) {
|
|
192
199
|
return LogLevelLabel.DEBUG;
|
|
193
200
|
}
|
|
201
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
202
|
+
return LogLevelLabel.PERFORMANCE;
|
|
203
|
+
}
|
|
194
204
|
if (logLevel >= LogLevel.INFO) {
|
|
195
205
|
return LogLevelLabel.INFO;
|
|
196
206
|
}
|
|
@@ -278,6 +288,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
278
288
|
)(
|
|
279
289
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
280
290
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
291
|
+
`
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
296
|
+
return (message) => {
|
|
297
|
+
console.debug(
|
|
298
|
+
`
|
|
299
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
300
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
301
|
+
)(
|
|
302
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
303
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
281
304
|
`
|
|
282
305
|
);
|
|
283
306
|
};
|
|
@@ -323,18 +346,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
323
346
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
324
347
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
325
348
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
349
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
326
350
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
327
351
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
328
352
|
var getStopwatch = (name) => {
|
|
329
353
|
const start = /* @__PURE__ */ new Date();
|
|
330
354
|
return () => {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
includeSeconds: true
|
|
336
|
-
}
|
|
337
|
-
)} to complete`
|
|
355
|
+
writePerformance(
|
|
356
|
+
`The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
357
|
+
includeSeconds: true
|
|
358
|
+
})} to complete`
|
|
338
359
|
);
|
|
339
360
|
};
|
|
340
361
|
};
|
|
@@ -777,6 +798,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
777
798
|
schemaRegistry.add(fatalColorSchema, {
|
|
778
799
|
description: "The fatal color of the workspace"
|
|
779
800
|
});
|
|
801
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
802
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
803
|
+
description: "The performance color of the workspace"
|
|
804
|
+
});
|
|
780
805
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
781
806
|
schemaRegistry.add(positiveColorSchema, {
|
|
782
807
|
description: "The positive number color of the workspace"
|
|
@@ -803,6 +828,7 @@ var darkColorsSchema = z.object({
|
|
|
803
828
|
warning: warningColorSchema,
|
|
804
829
|
danger: dangerColorSchema,
|
|
805
830
|
fatal: fatalColorSchema,
|
|
831
|
+
performance: performanceColorSchema,
|
|
806
832
|
positive: positiveColorSchema,
|
|
807
833
|
negative: negativeColorSchema,
|
|
808
834
|
gradient: gradientStopsSchema
|
|
@@ -821,6 +847,7 @@ var lightColorsSchema = z.object({
|
|
|
821
847
|
warning: warningColorSchema,
|
|
822
848
|
danger: dangerColorSchema,
|
|
823
849
|
fatal: fatalColorSchema,
|
|
850
|
+
performance: performanceColorSchema,
|
|
824
851
|
positive: positiveColorSchema,
|
|
825
852
|
negative: negativeColorSchema,
|
|
826
853
|
gradient: gradientStopsSchema
|
|
@@ -843,6 +870,7 @@ var singleColorsSchema = z.object({
|
|
|
843
870
|
warning: warningColorSchema,
|
|
844
871
|
danger: dangerColorSchema,
|
|
845
872
|
fatal: fatalColorSchema,
|
|
873
|
+
performance: performanceColorSchema,
|
|
846
874
|
positive: positiveColorSchema,
|
|
847
875
|
negative: negativeColorSchema,
|
|
848
876
|
gradient: gradientStopsSchema
|
|
@@ -1210,6 +1238,7 @@ var logLevelSchema = z._default(
|
|
|
1210
1238
|
"warn",
|
|
1211
1239
|
"success",
|
|
1212
1240
|
"info",
|
|
1241
|
+
"performance",
|
|
1213
1242
|
"debug",
|
|
1214
1243
|
"trace",
|
|
1215
1244
|
"all"
|
|
@@ -1289,6 +1318,7 @@ var COLOR_KEYS = [
|
|
|
1289
1318
|
"warning",
|
|
1290
1319
|
"danger",
|
|
1291
1320
|
"fatal",
|
|
1321
|
+
"performance",
|
|
1292
1322
|
"positive",
|
|
1293
1323
|
"negative"
|
|
1294
1324
|
];
|
|
@@ -1629,6 +1659,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1629
1659
|
warning: process.env[`${prefix}WARNING`],
|
|
1630
1660
|
danger: process.env[`${prefix}DANGER`],
|
|
1631
1661
|
fatal: process.env[`${prefix}FATAL`],
|
|
1662
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1632
1663
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1633
1664
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1634
1665
|
gradient
|
|
@@ -1668,6 +1699,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1668
1699
|
warning: process.env[`${prefix}WARNING`],
|
|
1669
1700
|
danger: process.env[`${prefix}DANGER`],
|
|
1670
1701
|
fatal: process.env[`${prefix}FATAL`],
|
|
1702
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1671
1703
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1672
1704
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1673
1705
|
gradient
|
|
@@ -1978,6 +2010,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1978
2010
|
if (config.fatal) {
|
|
1979
2011
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1980
2012
|
}
|
|
2013
|
+
if (config.performance) {
|
|
2014
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2015
|
+
}
|
|
1981
2016
|
if (config.positive) {
|
|
1982
2017
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1983
2018
|
}
|
|
@@ -2036,6 +2071,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
2036
2071
|
if (config.fatal) {
|
|
2037
2072
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
2038
2073
|
}
|
|
2074
|
+
if (config.performance) {
|
|
2075
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2076
|
+
}
|
|
2039
2077
|
if (config.positive) {
|
|
2040
2078
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
2041
2079
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVNQMXQXAjs = require('./chunk-VNQMXQXA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkVNQMXQXAjs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeTrace,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VNRBBPU2.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__dirname
|
|
27
27
|
} from "./chunk-2JMIC2O2.mjs";
|
|
@@ -1349,7 +1349,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1349
1349
|
dts: true,
|
|
1350
1350
|
shims: true,
|
|
1351
1351
|
silent: !debug,
|
|
1352
|
-
logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
|
|
1352
|
+
logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
|
|
1353
1353
|
sourcemap: debug ? "inline" : false,
|
|
1354
1354
|
clean: false,
|
|
1355
1355
|
fixedExtension: true,
|