@ganakailabs/cloudeval-cli 0.26.6 → 0.26.7
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/dist/{App-AH7TVME7.js → App-ZUKNFEP4.js} +2 -2
- package/dist/{Banner-LT4SYNKO.js → Banner-ZPALP2NW.js} +2 -2
- package/dist/{chunk-VSBRHLSK.js → chunk-MNNLTARP.js} +1 -1
- package/dist/{chunk-RBJUMR3T.js → chunk-SMZ375N4.js} +1 -1
- package/dist/cli.js +25 -10
- package/package.json +1 -1
- package/sbom.spdx.json +1 -1
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
} from "./chunk-3MIP274G.js";
|
|
39
39
|
import {
|
|
40
40
|
Banner
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MNNLTARP.js";
|
|
42
42
|
import {
|
|
43
43
|
CLI_VERSION
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SMZ375N4.js";
|
|
45
45
|
import {
|
|
46
46
|
raisedButtonStyle,
|
|
47
47
|
terminalTheme
|
package/dist/cli.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-3MIP274G.js";
|
|
37
37
|
import {
|
|
38
38
|
CLI_VERSION
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SMZ375N4.js";
|
|
40
40
|
|
|
41
41
|
// src/runtime/prepareInk.ts
|
|
42
42
|
import fs from "fs";
|
|
@@ -2480,6 +2480,25 @@ var entriesAsNamedRecords = (value, amountKey = "amount") => {
|
|
|
2480
2480
|
[amountKey]: amount
|
|
2481
2481
|
}));
|
|
2482
2482
|
};
|
|
2483
|
+
var publicFinding = (rule) => ({
|
|
2484
|
+
id: rule.id ?? rule.rule_id ?? rule.ruleId,
|
|
2485
|
+
pillar: rule.pillar,
|
|
2486
|
+
title: rule.title ?? rule.name,
|
|
2487
|
+
status: rule.status ?? rule.outcome,
|
|
2488
|
+
severity: rule.severity
|
|
2489
|
+
});
|
|
2490
|
+
var reviewReportStatus = (report) => ({
|
|
2491
|
+
available: Boolean(report)
|
|
2492
|
+
});
|
|
2493
|
+
var reviewReportStatuses = ({
|
|
2494
|
+
cost,
|
|
2495
|
+
waf,
|
|
2496
|
+
preload
|
|
2497
|
+
}) => ({
|
|
2498
|
+
cost: reviewReportStatus(cost),
|
|
2499
|
+
wellArchitected: reviewReportStatus(waf),
|
|
2500
|
+
preload: reviewReportStatus(preload)
|
|
2501
|
+
});
|
|
2483
2502
|
var displayNumber = (value, fallback = "not available") => {
|
|
2484
2503
|
const number = numberFrom(value);
|
|
2485
2504
|
return number === void 0 ? fallback : String(number);
|
|
@@ -2632,7 +2651,7 @@ var evaluateGate = ({
|
|
|
2632
2651
|
medium: numberFrom(waf?.parsed?.counts?.mediumRisk, waf?.parsed?.counts?.medium_count),
|
|
2633
2652
|
critical: numberFrom(waf?.parsed?.counts?.criticalRisk, waf?.parsed?.counts?.critical_count)
|
|
2634
2653
|
},
|
|
2635
|
-
topFindings: Array.isArray(waf?.parsed?.rules) ? waf.parsed.rules.slice(0, 5) : []
|
|
2654
|
+
topFindings: Array.isArray(waf?.parsed?.rules) ? waf.parsed.rules.slice(0, 5).map((rule) => publicFinding(asRecord(rule))) : []
|
|
2636
2655
|
};
|
|
2637
2656
|
const costSummary = {
|
|
2638
2657
|
monthly: {
|
|
@@ -3055,11 +3074,7 @@ var registerReviewCommand = (program2, deps) => {
|
|
|
3055
3074
|
commitSha,
|
|
3056
3075
|
sourceRoot,
|
|
3057
3076
|
sync: finalStatus ? { ...asRecord(sync), finalStatus } : sync,
|
|
3058
|
-
reports: {
|
|
3059
|
-
cost,
|
|
3060
|
-
waf,
|
|
3061
|
-
preload
|
|
3062
|
-
},
|
|
3077
|
+
reports: reviewReportStatuses({ cost, waf, preload }),
|
|
3063
3078
|
gate: evaluateGate({ configText, waf, cost, preload, project })
|
|
3064
3079
|
};
|
|
3065
3080
|
if (options.aiSummary !== false) {
|
|
@@ -14960,7 +14975,7 @@ program.command("tui").description("Open the CloudEval Terminal UI").option(
|
|
|
14960
14975
|
const { assertSecureBaseUrl } = await import("./dist-QLN52XKY.js");
|
|
14961
14976
|
const [{ render }, { App }] = await Promise.all([
|
|
14962
14977
|
import("ink"),
|
|
14963
|
-
import("./App-
|
|
14978
|
+
import("./App-ZUKNFEP4.js")
|
|
14964
14979
|
]);
|
|
14965
14980
|
const baseUrl = await resolveBaseUrl(options, command);
|
|
14966
14981
|
assertSecureBaseUrl(baseUrl);
|
|
@@ -15018,7 +15033,7 @@ program.command("chat").description("Start an interactive chat session").option(
|
|
|
15018
15033
|
const { assertSecureBaseUrl } = await import("./dist-QLN52XKY.js");
|
|
15019
15034
|
const [{ render }, { App }] = await Promise.all([
|
|
15020
15035
|
import("ink"),
|
|
15021
|
-
import("./App-
|
|
15036
|
+
import("./App-ZUKNFEP4.js")
|
|
15022
15037
|
]);
|
|
15023
15038
|
const baseUrl = await resolveBaseUrl(options, command);
|
|
15024
15039
|
assertSecureBaseUrl(baseUrl);
|
|
@@ -15772,7 +15787,7 @@ Error: ${errorMsg}
|
|
|
15772
15787
|
program.command("banner").description("Preview the startup banner and terminal capabilities").action(async () => {
|
|
15773
15788
|
const { render } = await import("ink");
|
|
15774
15789
|
const BannerPreview = React.lazy(async () => ({
|
|
15775
|
-
default: (await import("./Banner-
|
|
15790
|
+
default: (await import("./Banner-ZPALP2NW.js")).Banner
|
|
15776
15791
|
}));
|
|
15777
15792
|
render(
|
|
15778
15793
|
/* @__PURE__ */ jsx(React.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(BannerPreview, { disable: false }) })
|
package/package.json
CHANGED
package/sbom.spdx.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"SPDXID": "SPDXRef-Package-CloudEval-CLI",
|
|
16
16
|
"name": "CloudEval CLI",
|
|
17
|
-
"versionInfo": "0.26.
|
|
17
|
+
"versionInfo": "0.26.7",
|
|
18
18
|
"downloadLocation": "https://github.com/ganakailabs/cloudeval-cli",
|
|
19
19
|
"filesAnalyzed": false,
|
|
20
20
|
"licenseConcluded": "LicenseRef-CloudEval-CLI",
|