@botbotgo/agent-harness 0.0.407 → 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.
package/dist/cli/main.js CHANGED
@@ -225,7 +225,6 @@ export async function runCli(argv, io = {}, deps = {}) {
225
225
  });
226
226
  activeAgentId = interactiveState.activeAgentId;
227
227
  activeSessionId = interactiveState.activeSessionId;
228
- latestRequestId = interactiveState.latestRequestId;
229
228
  await stopClientWithTimeout(client, stderr);
230
229
  restoreWriteListenerGuard?.();
231
230
  restoreEmitterListenerGuard?.();
@@ -1,2 +1,2 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.407";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.409";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.407";
1
+ export const AGENT_HARNESS_VERSION = "0.0.409";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-05-02";
@@ -303,7 +303,6 @@ async function* streamSendMessageTaskUpdates(runtime, options, method) {
303
303
  continue;
304
304
  }
305
305
  if (item.type === "result") {
306
- requestId = item.result.requestId;
307
306
  const task = withRunResult(await buildTaskFromRuntime(runtime, item.result.requestId), item.result, streamedText || item.result.output);
308
307
  yield { task, mode: emittedInitialTask ? "status-update" : "task" };
309
308
  return;
@@ -360,7 +360,6 @@ export async function executeRequestInvocation(options) {
360
360
  const recoveryBase = messages ? { messages } : request;
361
361
  const recoveredRequest = appendToolRecoveryInstruction(recoveryBase, WRITE_TODOS_REQUIRED_PLAN_INSTRUCTION);
362
362
  const recoveredInvocation = await invokeOnce(recoveredRequest);
363
- localOrUpstreamInvocation = recoveredInvocation;
364
363
  result = recoveredInvocation.result;
365
364
  executedToolResults.splice(0, executedToolResults.length, ...recoveredInvocation.executedToolResults);
366
365
  }
@@ -373,7 +372,6 @@ export async function executeRequestInvocation(options) {
373
372
  const recoveryBase = messages ? { messages } : request;
374
373
  const recoveredRequest = appendToolRecoveryInstruction(recoveryBase, AUTONOMOUS_INVESTIGATION_RECOVERY_INSTRUCTION);
375
374
  const recoveredInvocation = await invokeOnce(recoveredRequest);
376
- localOrUpstreamInvocation = recoveredInvocation;
377
375
  result = recoveredInvocation.result;
378
376
  executedToolResults.splice(0, executedToolResults.length, ...recoveredInvocation.executedToolResults);
379
377
  }
@@ -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 = pendingResult ?? await callRuntimeWithToolParseRecovery(activeRequest);
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)) {
@@ -1049,7 +1049,6 @@ export async function* streamHarnessRun(options) {
1049
1049
  const signature = buildPlanStateSignature(reconciledPlanState);
1050
1050
  if (signature !== lastPlanStateSignature) {
1051
1051
  const previousPlanState = currentPlanState;
1052
- planStateVersion = reconciledPlanState.version;
1053
1052
  lastPlanStateSignature = signature;
1054
1053
  currentPlanState = reconciledPlanState;
1055
1054
  const progression = buildPlanStateProgression(previousPlanState, currentPlanState);
@@ -1124,7 +1123,6 @@ export async function* streamHarnessRun(options) {
1124
1123
  const signature = buildPlanStateSignature(reconciledPlanState);
1125
1124
  if (signature !== lastPlanStateSignature) {
1126
1125
  const previousPlanState = currentPlanState;
1127
- planStateVersion = reconciledPlanState.version;
1128
1126
  lastPlanStateSignature = signature;
1129
1127
  currentPlanState = reconciledPlanState;
1130
1128
  const progression = buildPlanStateProgression(previousPlanState, currentPlanState);
@@ -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 (!summary || typeof summary !== "object" || summary === null) {
1124
+ if (typeof summary !== "object" || summary === null) {
1125
1125
  continue;
1126
1126
  }
1127
1127
  const candidate = summary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.407",
3
+ "version": "0.0.409",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",