@ganakailabs/cloudeval-cli 0.29.1 → 0.29.2

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.
@@ -38,10 +38,10 @@ import {
38
38
  } from "./chunk-ERGQHMNT.js";
39
39
  import {
40
40
  Banner
41
- } from "./chunk-VRLH2WYY.js";
41
+ } from "./chunk-YAD6SGBL.js";
42
42
  import {
43
43
  CLI_VERSION
44
- } from "./chunk-AO4LJZTG.js";
44
+ } from "./chunk-FWCQ4PWL.js";
45
45
  import {
46
46
  raisedButtonStyle,
47
47
  terminalTheme
@@ -3,8 +3,8 @@ import {
3
3
  bannerMetaColor,
4
4
  bannerSegmentColor,
5
5
  splitBannerLineSegments
6
- } from "./chunk-VRLH2WYY.js";
7
- import "./chunk-AO4LJZTG.js";
6
+ } from "./chunk-YAD6SGBL.js";
7
+ import "./chunk-FWCQ4PWL.js";
8
8
  import "./chunk-ZDKRIOMB.js";
9
9
  export {
10
10
  Banner,
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var CLI_VERSION = "0.29.1";
2
+ var CLI_VERSION = "0.29.2";
3
3
 
4
4
  export {
5
5
  CLI_VERSION
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CLI_VERSION
3
- } from "./chunk-AO4LJZTG.js";
3
+ } from "./chunk-FWCQ4PWL.js";
4
4
  import {
5
5
  shouldUseColor,
6
6
  terminalTheme
package/dist/cli.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-ERGQHMNT.js";
40
40
  import {
41
41
  CLI_VERSION
42
- } from "./chunk-AO4LJZTG.js";
42
+ } from "./chunk-FWCQ4PWL.js";
43
43
 
44
44
  // src/runtime/prepareInk.ts
45
45
  import fs from "fs";
@@ -3604,6 +3604,11 @@ var buildMarkdownSummary = (data) => {
3604
3604
  { maxRows: 5, remainderLabel: "Unallocated" }
3605
3605
  );
3606
3606
  const positiveResourceCosts = resourceCostRows.filter((resource) => resource.amount > 0);
3607
+ const namedResourceCosts = positiveResourceCosts.filter(
3608
+ (resource) => resource.name !== "Unallocated"
3609
+ );
3610
+ const costPieRows = namedResourceCosts.length ? positiveResourceCosts : costServices.filter((service) => service.amount > 0);
3611
+ const costPieTitle = namedResourceCosts.length ? "Monthly cost by resource" : "Monthly cost by service";
3607
3612
  const openLinks = openInCloudEvalLines(data.links);
3608
3613
  const architectureLines = architectureSignalLines({
3609
3614
  architecture,
@@ -3666,13 +3671,13 @@ var buildMarkdownSummary = (data) => {
3666
3671
  `- Estimated savings: **${formatMonthlyMoney(data.gate.cost.estimatedSavings.amount, data.gate.cost.estimatedSavings.currency)}**`
3667
3672
  );
3668
3673
  }
3669
- if (positiveResourceCosts.length) {
3674
+ if (costPieRows.length) {
3670
3675
  costLines.push(
3671
3676
  "",
3672
3677
  "```mermaid",
3673
- "pie title Monthly cost by resource",
3674
- ...positiveResourceCosts.map(
3675
- (resource) => ` "${mermaidLabel(resource.name)}" : ${trimNumber(resource.amount, 3)}`
3678
+ `pie title ${costPieTitle}`,
3679
+ ...costPieRows.map(
3680
+ (row) => ` "${mermaidLabel(row.name)}" : ${trimNumber(row.amount, 3)}`
3676
3681
  ),
3677
3682
  "```"
3678
3683
  );
@@ -16568,7 +16573,7 @@ program.command("tui").description("Open the CloudEval Terminal UI").option(
16568
16573
  const { assertSecureBaseUrl } = await import("./dist-QYIPN7MD.js");
16569
16574
  const [{ render }, { App }] = await Promise.all([
16570
16575
  import("ink"),
16571
- import("./App-OLD5LMTA.js")
16576
+ import("./App-ISTB45LE.js")
16572
16577
  ]);
16573
16578
  const baseUrl = await resolveBaseUrl(options, command);
16574
16579
  assertSecureBaseUrl(baseUrl);
@@ -16626,7 +16631,7 @@ program.command("chat").description("Start an interactive chat session").option(
16626
16631
  const { assertSecureBaseUrl } = await import("./dist-QYIPN7MD.js");
16627
16632
  const [{ render }, { App }] = await Promise.all([
16628
16633
  import("ink"),
16629
- import("./App-OLD5LMTA.js")
16634
+ import("./App-ISTB45LE.js")
16630
16635
  ]);
16631
16636
  const baseUrl = await resolveBaseUrl(options, command);
16632
16637
  assertSecureBaseUrl(baseUrl);
@@ -17380,7 +17385,7 @@ Error: ${errorMsg}
17380
17385
  program.command("banner").description("Preview the startup banner and terminal capabilities").action(async () => {
17381
17386
  const { render } = await import("ink");
17382
17387
  const BannerPreview = React.lazy(async () => ({
17383
- default: (await import("./Banner-6W7U2C44.js")).Banner
17388
+ default: (await import("./Banner-USFUJC3Y.js")).Banner
17384
17389
  }));
17385
17390
  render(
17386
17391
  /* @__PURE__ */ jsx(React.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(BannerPreview, { disable: false }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganakailabs/cloudeval-cli",
3
- "version": "0.29.1",
3
+ "version": "0.29.2",
4
4
  "license": "LicenseRef-CloudEval-CLI",
5
5
  "type": "module",
6
6
  "description": "CloudEval CLI for cloud architecture, cost, report, automation, and MCP workflows.",
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.29.1",
17
+ "versionInfo": "0.29.2",
18
18
  "downloadLocation": "https://github.com/ganakailabs/cloudeval-cli",
19
19
  "filesAnalyzed": false,
20
20
  "licenseConcluded": "LicenseRef-CloudEval-CLI",