@botbotgo/agent-harness 0.0.459 → 0.0.461
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.461";
|
|
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.461";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-05-04";
|
|
@@ -1224,7 +1224,6 @@ export class AgentRuntimeAdapter {
|
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
const targetRequiresExecutionToolEvidence = getBindingPrimaryTools(selectedBinding).length > 0;
|
|
1228
1227
|
if (selectedBinding.harnessRuntime.executionContract?.requiresPlan === true
|
|
1229
1228
|
&& !hasDelegatedPlanEvidence(delegatedResult)) {
|
|
1230
1229
|
try {
|
|
@@ -1244,32 +1243,6 @@ export class AgentRuntimeAdapter {
|
|
|
1244
1243
|
};
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
if (targetRequiresExecutionToolEvidence && !hasRequiredDelegatedExecutionToolEvidence(delegatedResult)) {
|
|
1248
|
-
try {
|
|
1249
|
-
delegatedResult = await runDelegatedRequest([
|
|
1250
|
-
requestText,
|
|
1251
|
-
EXECUTION_WITH_TOOL_EVIDENCE_RETRY_INSTRUCTION,
|
|
1252
|
-
].filter(Boolean).join("\n\n"), ":tool-evidence-retry", selectedBinding.harnessRuntime.executionContract?.requiresPlan === true
|
|
1253
|
-
? {
|
|
1254
|
-
suppressInitialRequiredPlanInstruction: true,
|
|
1255
|
-
externalPlanEvidence: hasDelegatedPlanEvidence(delegatedResult),
|
|
1256
|
-
}
|
|
1257
|
-
: {});
|
|
1258
|
-
}
|
|
1259
|
-
catch (error) {
|
|
1260
|
-
const output = error instanceof Error ? error.message : String(error);
|
|
1261
|
-
return {
|
|
1262
|
-
toolOutput: output,
|
|
1263
|
-
delegatedSubagentType: subagentType,
|
|
1264
|
-
delegatedResult: {
|
|
1265
|
-
...delegatedResult,
|
|
1266
|
-
state: "failed",
|
|
1267
|
-
output,
|
|
1268
|
-
finalMessageText: output,
|
|
1269
|
-
},
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
1246
|
if (selectedBinding.harnessRuntime.executionContract?.requiresPlan === true
|
|
1274
1247
|
&& !hasDelegatedPlanEvidence(delegatedResult)) {
|
|
1275
1248
|
const output = buildDelegatedPlanEvidenceBlocker(selectedBinding.agent.id);
|
|
@@ -1284,19 +1257,6 @@ export class AgentRuntimeAdapter {
|
|
|
1284
1257
|
},
|
|
1285
1258
|
};
|
|
1286
1259
|
}
|
|
1287
|
-
if (targetRequiresExecutionToolEvidence && !hasRequiredDelegatedExecutionToolEvidence(delegatedResult)) {
|
|
1288
|
-
const output = buildDelegatedExecutionEvidenceBlocker(selectedBinding.agent.id, getBindingPrimaryTools(selectedBinding).map((tool) => tool.name));
|
|
1289
|
-
return {
|
|
1290
|
-
toolOutput: output,
|
|
1291
|
-
delegatedSubagentType: subagentType,
|
|
1292
|
-
delegatedResult: {
|
|
1293
|
-
...delegatedResult,
|
|
1294
|
-
state: "failed",
|
|
1295
|
-
output,
|
|
1296
|
-
finalMessageText: output,
|
|
1297
|
-
},
|
|
1298
|
-
};
|
|
1299
|
-
}
|
|
1300
1260
|
return {
|
|
1301
1261
|
toolOutput: resolveDelegatedResultOutput(delegatedResult),
|
|
1302
1262
|
delegatedSubagentType: subagentType,
|
|
@@ -1679,14 +1639,6 @@ export class AgentRuntimeAdapter {
|
|
|
1679
1639
|
const previousDelegatedResult = delegatedResult;
|
|
1680
1640
|
delegatedResult = mergeDelegatedResultToolEvidence(yield* runPlannedDelegation(planned.subagentType, [delegatedText, DELEGATED_PLAN_EVIDENCE_RETRY_INSTRUCTION].filter(Boolean).join("\n\n"), ":plan-evidence-retry"), previousDelegatedResult);
|
|
1681
1641
|
}
|
|
1682
|
-
const targetRequiresExecutionToolEvidence = selectedBinding ? getBindingPrimaryTools(selectedBinding).length > 0 : false;
|
|
1683
|
-
if (targetRequiresExecutionToolEvidence && !hasRequiredDelegatedExecutionToolEvidence(delegatedResult)) {
|
|
1684
|
-
const previousDelegatedResult = delegatedResult;
|
|
1685
|
-
delegatedResult = mergeDelegatedResultToolEvidence(yield* runPlannedDelegation(planned.subagentType, [
|
|
1686
|
-
delegatedText,
|
|
1687
|
-
EXECUTION_WITH_TOOL_EVIDENCE_RETRY_INSTRUCTION,
|
|
1688
|
-
].filter(Boolean).join("\n\n"), ":tool-evidence-retry"), previousDelegatedResult);
|
|
1689
|
-
}
|
|
1690
1642
|
if (selectedBinding?.harnessRuntime.executionContract?.requiresPlan === true && !hasDelegatedPlanEvidence(delegatedResult)) {
|
|
1691
1643
|
const output = buildDelegatedPlanEvidenceBlocker(selectedBinding.agent.id);
|
|
1692
1644
|
delegatedResult = {
|
|
@@ -1696,15 +1648,6 @@ export class AgentRuntimeAdapter {
|
|
|
1696
1648
|
finalMessageText: output,
|
|
1697
1649
|
};
|
|
1698
1650
|
}
|
|
1699
|
-
if (targetRequiresExecutionToolEvidence && !hasRequiredDelegatedExecutionToolEvidence(delegatedResult)) {
|
|
1700
|
-
const output = buildDelegatedExecutionEvidenceBlocker(selectedBinding.agent.id, getBindingPrimaryTools(selectedBinding).map((tool) => tool.name));
|
|
1701
|
-
delegatedResult = {
|
|
1702
|
-
...delegatedResult,
|
|
1703
|
-
state: "failed",
|
|
1704
|
-
output,
|
|
1705
|
-
finalMessageText: output,
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
1651
|
const delegatedToolResults = Array.isArray(delegatedResult.metadata?.executedToolResults)
|
|
1709
1652
|
? delegatedResult.metadata.executedToolResults
|
|
1710
1653
|
: [];
|