@botbotgo/agent-harness 0.0.325 → 0.0.326
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.325";
|
|
2
2
|
export declare const AGENT_HARNESS_RELEASE_DATE = "2026-04-22";
|
package/dist/package-version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.325";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-04-22";
|
|
@@ -196,7 +196,16 @@ function isErrorLikeToolOutput(value) {
|
|
|
196
196
|
if (!message) {
|
|
197
197
|
return false;
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
const firstNonEmptyLine = message
|
|
200
|
+
.split("\n")
|
|
201
|
+
.map((line) => line.trim())
|
|
202
|
+
.find((line) => line.length > 0) ?? "";
|
|
203
|
+
if (!firstNonEmptyLine) {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
return /^(error|exception|failed|failure|denied|timed out|timeout|not permitted|eperm|eacces)\b:?/i.test(firstNonEmptyLine)
|
|
207
|
+
|| /^command failed:/i.test(firstNonEmptyLine)
|
|
208
|
+
|| /^stderr:/i.test(firstNonEmptyLine);
|
|
200
209
|
}
|
|
201
210
|
function isEmptyInitialWriteTodosResult(value) {
|
|
202
211
|
if (typeof value !== "object" || !value || Array.isArray(value)) {
|