@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.324";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.325";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-04-22";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.324";
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
- return /(^|\b)(error|exception|failed|failure|denied|timed out|timeout|not permitted|eperm|eacces)(\b|:)/i.test(message);
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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.325",
3
+ "version": "0.0.326",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",