orquesta-cli 0.2.55 → 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.
package/dist/eval/eval-runner.js
CHANGED
|
@@ -134,9 +134,11 @@ export class EvalRunner {
|
|
|
134
134
|
getPendingMessage: () => {
|
|
135
135
|
try {
|
|
136
136
|
if (fs.existsSync(this.followUpFile)) {
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
139
|
-
return
|
|
137
|
+
const raw = fs.readFileSync(this.followUpFile, 'utf-8').trim();
|
|
138
|
+
if (!raw)
|
|
139
|
+
return null;
|
|
140
|
+
const parts = raw.split('\n---FOLLOWUP---\n').filter(Boolean);
|
|
141
|
+
return parts[0] || null;
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
catch { }
|
|
@@ -144,7 +146,17 @@ export class EvalRunner {
|
|
|
144
146
|
},
|
|
145
147
|
clearPendingMessage: () => {
|
|
146
148
|
try {
|
|
147
|
-
fs.
|
|
149
|
+
if (fs.existsSync(this.followUpFile)) {
|
|
150
|
+
const raw = fs.readFileSync(this.followUpFile, 'utf-8').trim();
|
|
151
|
+
const parts = raw.split('\n---FOLLOWUP---\n').filter(Boolean);
|
|
152
|
+
parts.shift();
|
|
153
|
+
if (parts.length > 0) {
|
|
154
|
+
fs.writeFileSync(this.followUpFile, parts.join('\n---FOLLOWUP---\n') + '\n---FOLLOWUP---\n', 'utf-8');
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
fs.unlinkSync(this.followUpFile);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
148
160
|
}
|
|
149
161
|
catch { }
|
|
150
162
|
},
|
|
@@ -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;
|