open-agents-ai 0.187.247 → 0.187.248

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -270300,6 +270300,13 @@ ${body}`;
270300
270300
  const window2 = recentToolCalls.slice(-repetitionWindow);
270301
270301
  const uniqueKeys = new Set(window2.map((tc) => `${tc.name}:${tc.argsKey}`));
270302
270302
  const ratio = 1 - uniqueKeys.size / window2.length;
270303
+ if (ratio > 0.4 && this._littlemanToolOutcomes.length >= 3) {
270304
+ const recentOutcomes = this._littlemanToolOutcomes.slice(-6);
270305
+ const uniquePreviews = new Set(recentOutcomes.map((o2) => o2.preview.slice(0, 40)));
270306
+ if (uniquePreviews.size >= 3) {
270307
+ return Math.max(0, ratio - 0.4);
270308
+ }
270309
+ }
270303
270310
  return ratio;
270304
270311
  }
270305
270312
  /**
@@ -271057,7 +271064,7 @@ ${memoryLines.join("\n")}`
271057
271064
  }
271058
271065
  const toolStart = performance.now();
271059
271066
  toolCallCount++;
271060
- const argsKey = Object.entries(tc.arguments ?? {}).sort(([a2], [b]) => a2.localeCompare(b)).map(([k, v]) => `${k}=${typeof v === "string" ? v.slice(0, 80) : JSON.stringify(v)}`).join(",");
271067
+ const argsKey = Object.entries(tc.arguments ?? {}).sort(([a2], [b]) => a2.localeCompare(b)).map(([k, v]) => `${k}=${typeof v === "string" ? v.slice(0, 160) : JSON.stringify(v).slice(0, 160)}`).join(",");
271061
271068
  toolCallLog.push({ name: tc.name, argsKey, turn, timestampMs: Date.now() });
271062
271069
  const budgetRemaining = toolCallBudget.get(tc.name);
271063
271070
  if (budgetRemaining !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.247",
3
+ "version": "0.187.248",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",