@botbotgo/agent-harness 0.0.472 → 0.0.473
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.473";
|
|
2
2
|
export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-04";
|
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.473";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-05-04";
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { createModelFacingToolNameLookupCandidates, resolveModelFacingToolName } from "./tool-name-mapping.js";
|
|
2
2
|
import { isLangChainBinding } from "../../support/compiled-binding.js";
|
|
3
|
+
const DEEPAGENTS_LOCAL_REPLAY_COMPATIBILITY_TOOLS = new Set([
|
|
4
|
+
"write_todos",
|
|
5
|
+
"read_todos",
|
|
6
|
+
"ls",
|
|
7
|
+
"read_file",
|
|
8
|
+
"write_file",
|
|
9
|
+
"edit_file",
|
|
10
|
+
"glob",
|
|
11
|
+
"grep",
|
|
12
|
+
"execute",
|
|
13
|
+
]);
|
|
14
|
+
function isDeepAgentsLocalReplayCompatibilityTool(toolName) {
|
|
15
|
+
return DEEPAGENTS_LOCAL_REPLAY_COMPATIBILITY_TOOLS.has(toolName.trim().toLowerCase());
|
|
16
|
+
}
|
|
3
17
|
export function canReplayToolCallsLocally(binding, toolCalls, primaryTools, toolNameMapping, executableTools, builtinExecutableTools) {
|
|
4
18
|
if (toolCalls.length === 0) {
|
|
5
19
|
return false;
|
|
@@ -9,7 +23,8 @@ export function canReplayToolCallsLocally(binding, toolCalls, primaryTools, tool
|
|
|
9
23
|
}
|
|
10
24
|
return toolCalls.every((toolCall) => {
|
|
11
25
|
const resolvedToolName = resolveModelFacingToolName(toolCall.name, toolNameMapping, primaryTools);
|
|
12
|
-
if (
|
|
26
|
+
if (!isDeepAgentsLocalReplayCompatibilityTool(toolCall.name)
|
|
27
|
+
&& !isDeepAgentsLocalReplayCompatibilityTool(resolvedToolName)) {
|
|
13
28
|
return false;
|
|
14
29
|
}
|
|
15
30
|
const builtinExecutable = builtinExecutableTools.get(toolCall.name) ??
|