open-agents-ai 0.186.53 → 0.186.54
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/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -303115,14 +303115,15 @@ When done, either call task_complete with your answer, or use FINAL_VAR(variable
|
|
|
303115
303115
|
ikState.stats.avg_latency_ms = n2 > 1 ? Math.round(((ikState.stats.avg_latency_ms || 0) * (n2 - 1) + result.durationMs) / n2) : result.durationMs;
|
|
303116
303116
|
ikState.homeostasis.latency_stress = result.durationMs > 3e4 ? Math.min(1, (ikState.homeostasis.latency_stress || 0) + 0.02) : Math.max(0, (ikState.homeostasis.latency_stress || 0) - 0.01);
|
|
303117
303117
|
}
|
|
303118
|
-
if (result.toolCalls > 0
|
|
303119
|
-
|
|
303118
|
+
if (result.toolCalls > 0) {
|
|
303119
|
+
const toolEvidence = result.summary || "";
|
|
303120
|
+
if (/web_search|web_fetch|searched|search.*web|fetched.*http|url/i.test(toolEvidence) && !ikState.specializations.includes("web-research")) {
|
|
303120
303121
|
ikState.specializations.push("web-research");
|
|
303121
303122
|
}
|
|
303122
|
-
if (/shell|grep_search|glob_find/i.test(
|
|
303123
|
+
if (/shell|grep_search|glob_find|executed.*command/i.test(toolEvidence) && !ikState.specializations.includes("code-execution")) {
|
|
303123
303124
|
ikState.specializations.push("code-execution");
|
|
303124
303125
|
}
|
|
303125
|
-
if (/file_write|file_edit/i.test(
|
|
303126
|
+
if (/file_write|file_edit|wrote.*file|edited.*file/i.test(toolEvidence) && !ikState.specializations.includes("file-operations")) {
|
|
303126
303127
|
ikState.specializations.push("file-operations");
|
|
303127
303128
|
}
|
|
303128
303129
|
ikState.stats.tool_use_count = (ikState.stats.tool_use_count || 0) + result.toolCalls;
|
package/package.json
CHANGED