orquesta-cli 0.2.56 → 0.2.57

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.
@@ -1316,14 +1316,31 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
1316
1316
  React.createElement(Text, { color: "white", dimColor: true }, truncatedReason)))));
1317
1317
  }
1318
1318
  case 'tool_result': {
1319
- if (!entry.diff || entry.diff.length === 0)
1320
- return null;
1321
- let filePath = '';
1322
- try {
1323
- filePath = JSON.parse(entry.details || '{}').file || '';
1319
+ if (entry.diff && entry.diff.length > 0) {
1320
+ let filePath = '';
1321
+ try {
1322
+ filePath = JSON.parse(entry.details || '{}').file || '';
1323
+ }
1324
+ catch { }
1325
+ return (React.createElement(DiffView, { key: entry.id, diff: entry.diff, filePath: filePath || undefined }));
1324
1326
  }
1325
- catch { }
1326
- return (React.createElement(DiffView, { key: entry.id, diff: entry.diff, filePath: filePath || undefined }));
1327
+ if (entry.content === 'bash' && entry.details) {
1328
+ const lines = entry.details.split('\n');
1329
+ const MAX = 12;
1330
+ const shown = lines.slice(0, MAX).join('\n');
1331
+ const extra = lines.length - MAX;
1332
+ return (React.createElement(Box, { key: entry.id, flexDirection: "column", marginLeft: 2 },
1333
+ React.createElement(Box, null,
1334
+ React.createElement(Text, { color: "gray" }, "\u23BF "),
1335
+ React.createElement(Text, { color: entry.success ? 'white' : 'red', dimColor: true }, shown)),
1336
+ extra > 0 && (React.createElement(Text, { color: "gray", dimColor: true },
1337
+ ' ',
1338
+ "\u2026 +",
1339
+ extra,
1340
+ " more line",
1341
+ extra > 1 ? 's' : ''))));
1342
+ }
1343
+ return null;
1327
1344
  }
1328
1345
  case 'shell_result': {
1329
1346
  const SHELL_MAX_LINES = 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.2.56",
3
+ "version": "0.2.57",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",