open-agents-ai 0.186.1 → 0.186.2

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 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25798,6 +25798,8 @@ var init_agenticRunner = __esm({
25798
25798
  // window catches oscillation patterns (success → ENOENT → success → ENOENT)
25799
25799
  // that the consecutive counter misses.
25800
25800
  _consecutiveEnoent = 0;
25801
+ _assistantTextEmitted = false;
25802
+ // WO-E26: prevent double-emit
25801
25803
  _recentEnoents = [];
25802
25804
  // sliding window of last 8 tool calls
25803
25805
  // -- Session Checkpointing (Priority 5) --
@@ -26211,7 +26213,7 @@ TASK: ${task}` : task;
26211
26213
  let completed = false;
26212
26214
  let summary = "";
26213
26215
  let bruteForceCycle = 0;
26214
- let assistantTextEmitted2 = false;
26216
+ this._assistantTextEmitted = false;
26215
26217
  let consecutiveTextOnly = 0;
26216
26218
  const MAX_CONSECUTIVE_TEXT_ONLY = 3;
26217
26219
  let narratedToolCallCount = 0;
@@ -26868,9 +26870,9 @@ Then use file_read on individual FILES inside it.`);
26868
26870
  if (tc.name === "task_complete") {
26869
26871
  completed = true;
26870
26872
  summary = tc.arguments.summary || "";
26871
- if (summary && !assistantTextEmitted2) {
26873
+ if (summary && !this._assistantTextEmitted) {
26872
26874
  this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
26873
- assistantTextEmitted2 = true;
26875
+ this._assistantTextEmitted = true;
26874
26876
  }
26875
26877
  break;
26876
26878
  }
@@ -27224,9 +27226,9 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
27224
27226
  if (tc.name === "task_complete") {
27225
27227
  completed = true;
27226
27228
  summary = tc.arguments.summary || "";
27227
- if (summary && !assistantTextEmitted2) {
27229
+ if (summary && !this._assistantTextEmitted) {
27228
27230
  this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
27229
- assistantTextEmitted2 = true;
27231
+ this._assistantTextEmitted = true;
27230
27232
  }
27231
27233
  break;
27232
27234
  }
@@ -28840,7 +28842,7 @@ ${description}`
28840
28842
  const cleanContent = content.replace(/<think>[\s\S]*?<\/think>/g, "").trim();
28841
28843
  if (cleanContent) {
28842
28844
  this.emit({ type: "assistant_text", content: cleanContent, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
28843
- assistantTextEmitted = true;
28845
+ this._assistantTextEmitted = true;
28844
28846
  }
28845
28847
  const hadThinking = content.includes("<think>") && content.includes("</think>");
28846
28848
  const thinkOnlyResponse = hadThinking && !cleanContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.1",
3
+ "version": "0.186.2",
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",