@botbotgo/agent-harness 0.0.472 → 0.0.474

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.472";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.474";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-04";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.472";
1
+ export const AGENT_HARNESS_VERSION = "0.0.474";
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 (resolvedToolName === "task" || toolCall.name === "task") {
26
+ if (!isDeepAgentsLocalReplayCompatibilityTool(toolCall.name)
27
+ && !isDeepAgentsLocalReplayCompatibilityTool(resolvedToolName)) {
13
28
  return false;
14
29
  }
15
30
  const builtinExecutable = builtinExecutableTools.get(toolCall.name) ??
@@ -2149,6 +2149,7 @@ export class AgentRuntimeAdapter {
2149
2149
  requestId: `${childRequestId}${requestIdSuffix}`,
2150
2150
  memoryContext: options.memoryContext,
2151
2151
  profiling: options.profiling,
2152
+ toolRuntimeContext: delegatedOptions.toolRuntimeContext ?? options.toolRuntimeContext,
2152
2153
  suppressInitialRequiredPlanInstruction: delegatedOptions.suppressInitialRequiredPlanInstruction,
2153
2154
  externalPlanEvidence: delegatedOptions.externalPlanEvidence,
2154
2155
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.472",
3
+ "version": "0.0.474",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",