@botbotgo/agent-harness 0.0.408 → 0.0.409
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.409";
|
|
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.409";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
|
|
@@ -119,7 +119,6 @@ export async function runLocalToolInvocationLoop({ binding, request, primaryTool
|
|
|
119
119
|
let activeRequest = request;
|
|
120
120
|
let currentMessages = Array.isArray(activeRequest.messages) ? [...activeRequest.messages] : [];
|
|
121
121
|
const maxToolIterations = 8;
|
|
122
|
-
let pendingResult;
|
|
123
122
|
let result;
|
|
124
123
|
const toolCatalog = new Map();
|
|
125
124
|
for (const tool of primaryTools) {
|
|
@@ -130,8 +129,7 @@ export async function runLocalToolInvocationLoop({ binding, request, primaryTool
|
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
131
|
for (let iteration = 0; iteration < maxToolIterations; iteration += 1) {
|
|
133
|
-
result =
|
|
134
|
-
pendingResult = undefined;
|
|
132
|
+
result = await callRuntimeWithToolParseRecovery(activeRequest);
|
|
135
133
|
const toolCalls = extractToolCallsFromResult(result);
|
|
136
134
|
if (toolCalls.length === 0) {
|
|
137
135
|
const terminalText = sanitizeVisibleText(extractVisibleOutput(result) || "");
|
|
@@ -176,7 +174,6 @@ export async function runLocalToolInvocationLoop({ binding, request, primaryTool
|
|
|
176
174
|
return resolvedToolName !== "write_todos" && resolvedToolName !== "read_todos" && toolCall.name !== "write_todos" && toolCall.name !== "read_todos";
|
|
177
175
|
})) {
|
|
178
176
|
activeRequest = appendToolRecoveryInstruction(activeRequest, missingPlanRecoveryInstruction);
|
|
179
|
-
pendingResult = undefined;
|
|
180
177
|
continue;
|
|
181
178
|
}
|
|
182
179
|
if (!canReplayToolCallsLocally(binding, toolCalls, primaryTools, toolNameMapping, executableTools, builtinExecutableTools)) {
|
package/dist/runtime/harness.js
CHANGED
|
@@ -1121,7 +1121,7 @@ export class AgentHarnessRuntime {
|
|
|
1121
1121
|
const summary = typeof latest.output === "object" && latest.output !== null
|
|
1122
1122
|
? latest.output.summary
|
|
1123
1123
|
: undefined;
|
|
1124
|
-
if (
|
|
1124
|
+
if (typeof summary !== "object" || summary === null) {
|
|
1125
1125
|
continue;
|
|
1126
1126
|
}
|
|
1127
1127
|
const candidate = summary;
|