orquesta-cli 0.2.55 → 0.2.56
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 +16 -4
- package/package.json +1 -1
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
|
},
|