@botbotgo/agent-harness 0.0.396 → 0.0.398

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.396";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.398";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.396";
1
+ export const AGENT_HARNESS_VERSION = "0.0.398";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -193,9 +193,18 @@ function hasUsefulVisibleSynthesis(value) {
193
193
  if (/^(?:model_request|tool_call|call_tool)/iu.test(trimmed)) {
194
194
  return false;
195
195
  }
196
+ if (/^\{\s*"(?:name|arguments|todos|symbol|query|market|count)"\s*:/iu.test(trimmed)) {
197
+ return false;
198
+ }
199
+ if (/^(?:stdout|stderr|exitCode)\s*:/iu.test(trimmed)) {
200
+ return false;
201
+ }
196
202
  if (/\b(?:must|need|needs|should|will)\s+(?:now\s+)?call\s+[A-Za-z_][A-Za-z0-9_]*\b/iu.test(trimmed)) {
197
203
  return false;
198
204
  }
205
+ if (/\b(?:let'?s\s+try|we\s+can(?:not|'t)?\s+(?:run|call|use|try)|cannot\s+.+\btry\b|can\s+run\s+[A-Za-z_][A-Za-z0-9_]*)/iu.test(trimmed)) {
206
+ return false;
207
+ }
199
208
  try {
200
209
  const parsed = JSON.parse(trimmed);
201
210
  if (typeof parsed === "object" && parsed !== null) {
@@ -33,11 +33,21 @@ function shouldSuppressVisibleToolCallText(value) {
33
33
  if (!trimmed) {
34
34
  return false;
35
35
  }
36
+ if (/^(?:model_request|tool_call|call_tool)\b/iu.test(trimmed)) {
37
+ return true;
38
+ }
39
+ if (/\b(?:must|need|needs|should|will)\s+(?:now\s+)?(?:call|use|run|produce)\s+[A-Za-z_][A-Za-z0-9_]*\b/iu.test(trimmed)) {
40
+ return true;
41
+ }
42
+ if (/^\{\s*"(?:name|arguments|todos|symbol|query|market|count)"\s*:/iu.test(trimmed)) {
43
+ return true;
44
+ }
36
45
  try {
37
46
  const parsed = JSON.parse(trimmed);
38
47
  if (typeof parsed === "object"
39
48
  && parsed !== null
40
49
  && ("symbol" in parsed
50
+ || "todos" in parsed
41
51
  || "query" in parsed
42
52
  || "market" in parsed
43
53
  || "count" in parsed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.396",
3
+ "version": "0.0.398",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",