@botbotgo/agent-harness 0.0.398 → 0.0.400
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.400";
|
|
2
2
|
export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
|
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.400";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
|
|
@@ -193,6 +193,9 @@ function hasUsefulVisibleSynthesis(value) {
|
|
|
193
193
|
if (/^(?:model_request|tool_call|call_tool)/iu.test(trimmed)) {
|
|
194
194
|
return false;
|
|
195
195
|
}
|
|
196
|
+
if (/^(?:we\s+need\s+to|so\s+next\s+step\b)/iu.test(trimmed)) {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
196
199
|
if (/^\{\s*"(?:name|arguments|todos|symbol|query|market|count)"\s*:/iu.test(trimmed)) {
|
|
197
200
|
return false;
|
|
198
201
|
}
|
|
@@ -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
|
-
?? (
|
|
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
|
-
?
|
|
393
|
+
? `${enterpriseHcmName[0].toUpperCase()}${enterpriseHcmName.slice(1)} Inc.`
|
|
393
394
|
: undefined;
|
|
394
395
|
return {
|
|
395
396
|
...(symbol ? { symbol } : {}),
|
|
@@ -36,6 +36,9 @@ function shouldSuppressVisibleToolCallText(value) {
|
|
|
36
36
|
if (/^(?:model_request|tool_call|call_tool)\b/iu.test(trimmed)) {
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
|
+
if (/^(?:we\s+need\s+to|so\s+next\s+step\b)/iu.test(trimmed)) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
39
42
|
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
43
|
return true;
|
|
41
44
|
}
|