@bluecopa/harness 0.1.0-snapshot.113 → 0.1.0-snapshot.115
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.
|
@@ -1238,14 +1238,14 @@ function extractFinalOutput(messages) {
|
|
|
1238
1238
|
const msg = messages[i];
|
|
1239
1239
|
if (msg.role === "assistant" && (!msg.toolCalls || msg.toolCalls.length === 0)) {
|
|
1240
1240
|
const text = getTextContent(msg.content).trim();
|
|
1241
|
-
if (text) return text
|
|
1241
|
+
if (text) return text;
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
1245
1245
|
const msg = messages[i];
|
|
1246
1246
|
if (msg.role === "assistant") {
|
|
1247
1247
|
const text = getTextContent(msg.content).trim();
|
|
1248
|
-
if (text) return text
|
|
1248
|
+
if (text) return text;
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
return "";
|
|
@@ -1408,7 +1408,9 @@ var EpisodeCompressor = class {
|
|
|
1408
1408
|
|
|
1409
1409
|
// src/arc/process-validator.ts
|
|
1410
1410
|
function includesPathMatch(values, expected) {
|
|
1411
|
-
return values.some(
|
|
1411
|
+
return values.some(
|
|
1412
|
+
(value) => value === expected || value.endsWith(`/${expected}`) || expected.endsWith(`/${value}`)
|
|
1413
|
+
);
|
|
1412
1414
|
}
|
|
1413
1415
|
function matchingCommands(commandResults, expected) {
|
|
1414
1416
|
const normalized = expected.trim().toLowerCase();
|