@botbotgo/agent-harness 0.0.433 → 0.0.434
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.434";
|
|
2
2
|
export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-03";
|
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.434";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-05-03";
|
|
@@ -227,6 +227,17 @@ function buildEvidenceToolArgs(tool, taskText, evidenceText = taskText) {
|
|
|
227
227
|
}
|
|
228
228
|
return args;
|
|
229
229
|
}
|
|
230
|
+
function escapeRegExp(value) {
|
|
231
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
232
|
+
}
|
|
233
|
+
function textExplicitlyNamesTool(text, toolName) {
|
|
234
|
+
const name = toolName.trim();
|
|
235
|
+
if (!name) {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
const pattern = new RegExp(`(?:^|[^\\p{L}\\p{N}_-])${escapeRegExp(name)}(?:$|[^\\p{L}\\p{N}_-])`, "iu");
|
|
239
|
+
return pattern.test(text);
|
|
240
|
+
}
|
|
230
241
|
function resolveCommittedEvidenceTools(input) {
|
|
231
242
|
const availableTools = readResolvedEvidenceTools(input.resolvedTools)
|
|
232
243
|
.filter((tool) => tool.name !== "write_todos" && tool.name !== "read_todos" && typeof tool.invoke === "function");
|
|
@@ -234,10 +245,9 @@ function resolveCommittedEvidenceTools(input) {
|
|
|
234
245
|
return [];
|
|
235
246
|
}
|
|
236
247
|
const stateText = `${input.taskText}\n${stringifyTaskState(readMessages(input.result))}`;
|
|
237
|
-
const selectionText = stateText.toLowerCase();
|
|
238
248
|
const selected = [];
|
|
239
249
|
for (const tool of availableTools) {
|
|
240
|
-
if (!
|
|
250
|
+
if (!textExplicitlyNamesTool(stateText, tool.name)) {
|
|
241
251
|
continue;
|
|
242
252
|
}
|
|
243
253
|
selected.push({
|