@nomad-e/bluma-cli 0.1.5 → 0.1.6
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/main.js +4 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -6480,9 +6480,11 @@ var ToolResultDisplayComponent = ({ toolName, result }) => {
|
|
|
6480
6480
|
}
|
|
6481
6481
|
if (!output && !stderr) return null;
|
|
6482
6482
|
const { lines, truncated } = truncateLines(output || stderr, MAX_LINES);
|
|
6483
|
-
const isError = exitCode !== 0
|
|
6483
|
+
const isError = exitCode !== 0;
|
|
6484
|
+
const isSuccess = exitCode === 0 && status !== "running";
|
|
6485
|
+
const textColor = isError ? "red" : isSuccess ? "green" : "gray";
|
|
6484
6486
|
return /* @__PURE__ */ jsxs10(Box11, { flexDirection: "column", paddingLeft: 3, children: [
|
|
6485
|
-
lines.map((line, i) => /* @__PURE__ */ jsx11(Text10, { dimColor: true, color:
|
|
6487
|
+
lines.map((line, i) => /* @__PURE__ */ jsx11(Text10, { dimColor: true, color: textColor, children: line.slice(0, 80) }, i)),
|
|
6486
6488
|
truncated > 0 && /* @__PURE__ */ jsxs10(Text10, { dimColor: true, children: [
|
|
6487
6489
|
"... +",
|
|
6488
6490
|
truncated,
|