@ganakailabs/cloudeval-cli 0.21.2 → 0.22.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.
@@ -3,8 +3,8 @@ import {
3
3
  bannerMetaColor,
4
4
  bannerSegmentColor,
5
5
  splitBannerLineSegments
6
- } from "./chunk-CJWMEKKP.js";
7
- import "./chunk-32EP3DJT.js";
6
+ } from "./chunk-TTE5NEMA.js";
7
+ import "./chunk-AF6Z5VZD.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.21.2";
2
+ var CLI_VERSION = "0.22.0";
3
3
 
4
4
  export {
5
5
  CLI_VERSION
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CLI_VERSION
3
- } from "./chunk-32EP3DJT.js";
3
+ } from "./chunk-AF6Z5VZD.js";
4
4
  import {
5
5
  shouldUseColor,
6
6
  terminalTheme
@@ -81,9 +81,20 @@ var BannerArtLine = ({ line, lineIndex, totalLines }) => /* @__PURE__ */ jsx(Tex
81
81
  },
82
82
  `${index}-${segment.text}`
83
83
  )) });
84
+ var BannerDetailText = ({ line }) => /* @__PURE__ */ jsx(Text, { wrap: "truncate", children: line.segments.map((segment, index) => /* @__PURE__ */ jsx(
85
+ Text,
86
+ {
87
+ color: segment.color,
88
+ dimColor: segment.dimColor,
89
+ bold: segment.bold,
90
+ children: segment.text
91
+ },
92
+ `${line.key}-${index}`
93
+ )) });
84
94
  var Banner = ({
85
95
  disable = false,
86
96
  details = [],
97
+ detailLines = [],
87
98
  terminalColumns
88
99
  }) => {
89
100
  if (disable) return null;
@@ -91,7 +102,11 @@ var Banner = ({
91
102
  const art = wordArt;
92
103
  const width = artWidth(art);
93
104
  const showArt = columns >= width;
94
- const showDetailsBesideArt = showArt && details.length > 0 && columns >= width + 42;
105
+ const resolvedDetailLines = detailLines.length > 0 ? detailLines : details.map((detail, index) => ({
106
+ key: `legacy-${index}`,
107
+ segments: [{ text: detail, dimColor: true }]
108
+ }));
109
+ const showDetailsBesideArt = showArt && resolvedDetailLines.length > 0 && columns >= width + 42;
95
110
  const version = process.env.CLOUDEVAL_CLI_VERSION ?? CLI_VERSION;
96
111
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", alignItems: "flex-start", marginBottom: 1, children: [
97
112
  showArt ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -111,7 +126,7 @@ var Banner = ({
111
126
  "CLI v",
112
127
  version
113
128
  ] }),
114
- details.map((detail) => /* @__PURE__ */ jsx(Text, { dimColor: true, wrap: "truncate", children: detail }, detail))
129
+ resolvedDetailLines.map((line) => /* @__PURE__ */ jsx(BannerDetailText, { line }, line.key))
115
130
  ] }) : null
116
131
  ] })
117
132
  ] }) : null,
@@ -120,7 +135,7 @@ var Banner = ({
120
135
  "CLI v",
121
136
  version
122
137
  ] }),
123
- details.map((detail) => /* @__PURE__ */ jsx(Text, { dimColor: true, wrap: "truncate", children: detail }, detail))
138
+ resolvedDetailLines.map((line) => /* @__PURE__ */ jsx(BannerDetailText, { line }, line.key))
124
139
  ] }) : null
125
140
  ] });
126
141
  };
package/dist/cli.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-LDDHLUZH.js";
37
37
  import {
38
38
  CLI_VERSION
39
- } from "./chunk-32EP3DJT.js";
39
+ } from "./chunk-AF6Z5VZD.js";
40
40
 
41
41
  // src/runtime/prepareInk.ts
42
42
  import fs from "fs";
@@ -13382,7 +13382,7 @@ program.command("tui").description("Open the CloudEval Terminal UI").option(
13382
13382
  const { assertSecureBaseUrl } = await import("./dist-AGQQPJUD.js");
13383
13383
  const [{ render }, { App }] = await Promise.all([
13384
13384
  import("ink"),
13385
- import("./App-5ITWBHXF.js")
13385
+ import("./App-7ZEWM5DC.js")
13386
13386
  ]);
13387
13387
  const baseUrl = await resolveBaseUrl(options, command);
13388
13388
  assertSecureBaseUrl(baseUrl);
@@ -13434,7 +13434,7 @@ program.command("chat").description("Start an interactive chat session").option(
13434
13434
  const { assertSecureBaseUrl } = await import("./dist-AGQQPJUD.js");
13435
13435
  const [{ render }, { App }] = await Promise.all([
13436
13436
  import("ink"),
13437
- import("./App-5ITWBHXF.js")
13437
+ import("./App-7ZEWM5DC.js")
13438
13438
  ]);
13439
13439
  const baseUrl = await resolveBaseUrl(options, command);
13440
13440
  assertSecureBaseUrl(baseUrl);
@@ -14191,7 +14191,7 @@ Error: ${errorMsg}
14191
14191
  program.command("banner").description("Preview the startup banner and terminal capabilities").action(async () => {
14192
14192
  const { render } = await import("ink");
14193
14193
  const BannerPreview = React.lazy(async () => ({
14194
- default: (await import("./Banner-4PWWKMRZ.js")).Banner
14194
+ default: (await import("./Banner-Z2XN5FGK.js")).Banner
14195
14195
  }));
14196
14196
  render(
14197
14197
  /* @__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.21.2",
3
+ "version": "0.22.0",
4
4
  "license": "LicenseRef-CloudEval-CLI",
5
5
  "type": "module",
6
6
  "description": "CloudEval CLI for cloud architecture, cost, report, automation, and MCP workflows.",
@@ -63,7 +63,7 @@
63
63
  "run": "node dist/cli.js",
64
64
  "dev": "tsx src/cli.tsx",
65
65
  "lint": "pnpm -C ../shared build && pnpm -C ../core build && tsc --noEmit -p tsconfig.json",
66
- "test": "pnpm -C ../shared build && pnpm -C ../core build && tsx --test src/askProgress.test.ts src/hitlPrompt.test.ts src/baseUrl.test.ts src/frontendLinks.test.ts src/outputFormatter.test.ts src/localHooks.test.ts src/projectDiagramImage.test.ts src/loginOnboardingMode.test.ts src/runtime/prepareInk.test.ts src/ui/animationPolicy.test.ts src/ui/appHeaderDetails.test.ts src/ui/components/Banner.test.ts src/ui/components/InputBox.test.ts src/ui/components/Spinner.test.ts src/ui/components/Transcript.test.ts src/ui/artifactChips.test.ts src/ui/citationContent.test.ts src/ui/chatResponseActions.test.ts src/ui/billingSummary.test.ts src/ui/workspaceEntityDetails.test.ts src/ui/inputSanitizer.test.ts src/ui/inputViewport.test.ts src/ui/keyBindings.test.ts src/ui/layout.test.ts src/ui/scrollBehavior.test.ts src/ui/promptSuggestions.test.ts src/ui/commandCompletion.test.ts src/ui/interactionModel.test.ts src/ui/sessionThreads.test.ts src/ui/userDisplayName.test.ts src/ui/workspaceSelection.test.ts src/ui/workspaceTabs.test.ts src/ui/workspaceDataStore.test.ts src/ui/overviewDashboard.test.ts src/ui/reportsDashboard.test.ts src/completionEngine.test.ts src/shellCompletion.test.ts src/updateCommand.test.ts src/uninstallCommand.test.ts src/mcpSetupCommand.test.ts src/mcpCommand.test.ts src/sessionsStore.test.ts src/recipes/catalog.test.ts src/skills/catalog.test.ts src/reports/reportRender.test.ts src/reports/reportCommand.test.ts",
66
+ "test": "pnpm -C ../shared build && pnpm -C ../core build && tsx --test src/askProgress.test.ts src/hitlPrompt.test.ts src/baseUrl.test.ts src/frontendLinks.test.ts src/outputFormatter.test.ts src/localHooks.test.ts src/projectDiagramImage.test.ts src/loginOnboardingMode.test.ts src/runtime/prepareInk.test.ts src/ui/animationPolicy.test.ts src/ui/appHeaderDetails.test.ts src/ui/bannerDetails.test.ts src/ui/noticeTone.test.ts src/ui/components/Banner.test.ts src/ui/components/InputBox.test.ts src/ui/components/Spinner.test.ts src/ui/components/Transcript.test.ts src/ui/artifactChips.test.ts src/ui/citationContent.test.ts src/ui/chatResponseActions.test.ts src/ui/billingSummary.test.ts src/ui/workspaceEntityDetails.test.ts src/ui/inputSanitizer.test.ts src/ui/inputViewport.test.ts src/ui/keyBindings.test.ts src/ui/layout.test.ts src/ui/scrollBehavior.test.ts src/ui/promptSuggestions.test.ts src/ui/commandCompletion.test.ts src/ui/interactionModel.test.ts src/ui/sessionThreads.test.ts src/ui/userDisplayName.test.ts src/ui/workspaceSelection.test.ts src/ui/workspaceTabs.test.ts src/ui/workspaceDataStore.test.ts src/ui/overviewDashboard.test.ts src/ui/reportsDashboard.test.ts src/completionEngine.test.ts src/shellCompletion.test.ts src/updateCommand.test.ts src/uninstallCommand.test.ts src/mcpSetupCommand.test.ts src/mcpCommand.test.ts src/sessionsStore.test.ts src/recipes/catalog.test.ts src/skills/catalog.test.ts src/reports/reportRender.test.ts src/reports/reportCommand.test.ts",
67
67
  "test:cli:noninteractive": "pnpm -C ../shared build && pnpm -C ../core build && tsx --test src/nonInteractiveCli.test.ts",
68
68
  "test:cli:noninteractive:packaged": "pnpm build:executable:current && CLOUDEVAL_CLI_BIN=./dist/bin/cloudeval pnpm test:cli:noninteractive",
69
69
  "test:cli:noninteractive:live": "pnpm build:executable:current && CLOUDEVAL_CLI_BIN=./dist/bin/cloudeval tsx --test src/liveNonInteractiveCli.test.ts",
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.21.2",
17
+ "versionInfo": "0.22.0",
18
18
  "downloadLocation": "https://github.com/ganakailabs/cloudeval-cli",
19
19
  "filesAnalyzed": false,
20
20
  "licenseConcluded": "LicenseRef-CloudEval-CLI",