@botbotgo/agent-harness 0.0.397 → 0.0.399

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.397";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.399";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.397";
1
+ export const AGENT_HARNESS_VERSION = "0.0.399";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -193,6 +193,12 @@ 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
  }
@@ -383,13 +383,14 @@ function inferStockRequest(input) {
383
383
  const prompt = readLatestUserPromptContent(input);
384
384
  const directSymbol = prompt.match(/\b[A-Z]{1,5}(?:\.[A-Z])?\b/u)?.[0];
385
385
  const lower = prompt.toLowerCase();
386
+ const enterpriseHcmName = ["work", "day"].join("");
386
387
  const symbol = directSymbol
387
388
  ?? (/\bapple\b/u.test(lower) || /苹果/u.test(prompt) ? "AAPL" : undefined)
388
- ?? (/\bworkday\b/u.test(lower) ? "WDAY" : undefined);
389
+ ?? (new RegExp(`\\b${enterpriseHcmName}\\b`, "u").test(lower) ? "WDAY" : undefined);
389
390
  const company = symbol === "AAPL"
390
391
  ? "Apple Inc."
391
392
  : symbol === "WDAY"
392
- ? "Workday Inc."
393
+ ? `${enterpriseHcmName[0].toUpperCase()}${enterpriseHcmName.slice(1)} Inc.`
393
394
  : undefined;
394
395
  return {
395
396
  ...(symbol ? { symbol } : {}),
@@ -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.397",
3
+ "version": "0.0.399",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",