open-agents-ai 0.187.589 → 0.187.590

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
@@ -529296,6 +529296,21 @@ ${body}`;
529296
529296
  continue;
529297
529297
  }
529298
529298
  seen.set(fp, { turn: scanTurn, idx: resultIdx });
529299
+ const rkey = this._buildResourceKey(name10, parsedArgs);
529300
+ if (rkey) {
529301
+ const priorResource = seenResource.get(rkey);
529302
+ if (priorResource && priorResource.idx !== resultIdx) {
529303
+ const priorContent = typeof messages2[priorResource.idx]?.content === "string" ? messages2[priorResource.idx].content : "";
529304
+ if (!priorContent.startsWith(PRUNE_PREFIX) && !priorContent.startsWith(DEDUPE_PREFIX) && !priorContent.startsWith(FILE_AGED_PREFIX)) {
529305
+ pending.push({
529306
+ idx: priorResource.idx,
529307
+ reason: "dedupe",
529308
+ replacement: `${DEDUPE_PREFIX} ${scanTurn} — semantic duplicate ${name10}() (same resource: ${rkey})]`
529309
+ });
529310
+ }
529311
+ }
529312
+ seenResource.set(rkey, { turn: scanTurn, idx: resultIdx });
529313
+ }
529299
529314
  const ageTurns = currentTurn - scanTurn;
529300
529315
  const wasRecentlyWritten = (() => {
529301
529316
  try {
@@ -530438,7 +530453,14 @@ ${blob}
530438
530453
  const a2 = args ?? {};
530439
530454
  if (name10 === "file_read") {
530440
530455
  const p2 = String(a2.path ?? a2.file ?? "");
530441
- return p2 ? `resource:file:${p2}` : "";
530456
+ if (!p2)
530457
+ return "";
530458
+ const offset = a2.offset != null ? Number(a2.offset) : void 0;
530459
+ const limit = a2.limit != null ? Number(a2.limit) : void 0;
530460
+ if (offset !== void 0 || limit !== void 0) {
530461
+ return `resource:file:${p2}@${offset ?? 0}:${limit ?? "end"}`;
530462
+ }
530463
+ return `resource:file:${p2}`;
530442
530464
  }
530443
530465
  if (name10 === "shell" || name10 === "shell_async") {
530444
530466
  const cmd = String(a2.command ?? a2.cmd ?? "");
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.589",
3
+ "version": "0.187.590",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.589",
9
+ "version": "0.187.590",
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.589",
3
+ "version": "0.187.590",
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",