open-agents-ai 0.187.473 → 0.187.474

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 CHANGED
@@ -521421,7 +521421,8 @@ ${cachedEntry2.result.slice(0, 500)}` : `[BLOCKED — the observer confirmed thi
521421
521421
  });
521422
521422
  const hits = (dedupHitCount.get(toolFingerprint) ?? 0) + 1;
521423
521423
  dedupHitCount.set(toolFingerprint, hits);
521424
- if (hits >= DEDUP_ESCALATION_THRESHOLD) {
521424
+ const threshold = tc.name === "shell" ? 2 : DEDUP_ESCALATION_THRESHOLD;
521425
+ if (hits >= threshold) {
521425
521426
  const argPreview = JSON.stringify(tc.arguments ?? {}).slice(0, 200);
521426
521427
  const blockMsg = `[FORCED PROGRESS BLOCK — you have called ${tc.name}(${argPreview}) ${hits} times with identical arguments and received the cached result each time. The data is not changing. You are stuck in a read-only loop instead of advancing the plan.
521427
521428
 
@@ -521853,8 +521854,8 @@ If you genuinely need this same data again, call a DIFFERENT tool first (one of
521853
521854
  }
521854
521855
  }
521855
521856
  }
521856
- const isMutating = ["file_write", "file_edit", "batch_edit", "file_patch"].includes(tc.name) || tc.name === "shell" && !this._isShellCommandReadOnly(tc.arguments?.["command"] ?? tc.arguments?.["cmd"] ?? "");
521857
- if (isMutating && result.success && dedupHitCount.size > 0) {
521857
+ const isFileMutation = ["file_write", "file_edit", "batch_edit", "file_patch"].includes(tc.name);
521858
+ if (isFileMutation && result.success && dedupHitCount.size > 0) {
521858
521859
  dedupHitCount.clear();
521859
521860
  }
521860
521861
  if (result.success) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.473",
3
+ "version": "0.187.474",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.473",
9
+ "version": "0.187.474",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.473",
3
+ "version": "0.187.474",
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",