orquesta-cli 0.2.56 → 0.2.58
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 (
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
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
|
-
|
|
1326
|
-
|
|
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;
|
|
@@ -1422,7 +1439,7 @@ export const PlanExecuteApp = ({ llmClient: initialLlmClient, modelInfo, resumeL
|
|
|
1422
1439
|
React.createElement(Static, { items: logEntries }, (entry) => renderLogEntry(entry)),
|
|
1423
1440
|
pendingToolApproval && (React.createElement(Box, { marginY: 1 },
|
|
1424
1441
|
React.createElement(ApprovalDialog, { toolName: pendingToolApproval.toolName, args: pendingToolApproval.args, reason: pendingToolApproval.reason, onResponse: handleApprovalResponse }))),
|
|
1425
|
-
isProcessing &&
|
|
1442
|
+
isProcessing && !pendingToolApproval && !isDocsSearching && (React.createElement(Box, { marginY: 1, flexDirection: "column" },
|
|
1426
1443
|
React.createElement(ActivityIndicator, { activity: getCurrentActivityType(), startTime: activityStartTime, detail: activityDetail, subActivities: subActivities, modelName: currentModelInfo.model }),
|
|
1427
1444
|
streamingText && (React.createElement(StreamingOutput, { text: streamingText })))),
|
|
1428
1445
|
isDocsSearching && (React.createElement(DocsSearchProgress, { logs: docsSearchLogs, isSearching: isDocsSearching })),
|