@botbotgo/agent-harness 0.0.371 → 0.0.372

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.371";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.372";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-04-30";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.371";
1
+ export const AGENT_HARNESS_VERSION = "0.0.372";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-04-30";
@@ -1142,8 +1142,15 @@ export class AgentRuntimeAdapter {
1142
1142
  formatCompactDelegationReportForDisplay(report) {
1143
1143
  const readStringArray = (key) => {
1144
1144
  const value = report[key];
1145
+ const reportText = typeof report.report === "string" ? report.report.trim() : "";
1145
1146
  return Array.isArray(value)
1146
- ? value.filter((item) => typeof item === "string" && item.trim().length > 0)
1147
+ ? value.filter((item) => {
1148
+ if (typeof item !== "string") {
1149
+ return false;
1150
+ }
1151
+ const trimmed = item.trim();
1152
+ return trimmed.length > 0 && trimmed !== reportText;
1153
+ })
1147
1154
  : [];
1148
1155
  };
1149
1156
  const lines = [];
@@ -90,6 +90,7 @@ function stripVisibleFunctionLikeToolCallText(value) {
90
90
  }
91
91
  export function sanitizeVisibleText(value) {
92
92
  return stripVisibleFunctionLikeToolCallText(value
93
+ .replace(/\u001B\[[0-?]*[ -/]*[@-~]/g, "")
93
94
  .replace(/<agent_memory>[\s\S]*?<\/agent_memory>/giu, "")
94
95
  .replace(/<agent_memory>[\s\S]*$/giu, "")
95
96
  .replace(/[A-Za-z0-9_]*Middleware\.after_model/g, "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.371",
3
+ "version": "0.0.372",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",