open-agents-ai 0.185.99 → 0.186.1

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 +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26211,6 +26211,7 @@ TASK: ${task}` : task;
26211
26211
  let completed = false;
26212
26212
  let summary = "";
26213
26213
  let bruteForceCycle = 0;
26214
+ let assistantTextEmitted2 = false;
26214
26215
  let consecutiveTextOnly = 0;
26215
26216
  const MAX_CONSECUTIVE_TEXT_ONLY = 3;
26216
26217
  let narratedToolCallCount = 0;
@@ -26867,6 +26868,10 @@ Then use file_read on individual FILES inside it.`);
26867
26868
  if (tc.name === "task_complete") {
26868
26869
  completed = true;
26869
26870
  summary = tc.arguments.summary || "";
26871
+ if (summary && !assistantTextEmitted2) {
26872
+ this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
26873
+ assistantTextEmitted2 = true;
26874
+ }
26870
26875
  break;
26871
26876
  }
26872
26877
  }
@@ -27219,6 +27224,10 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
27219
27224
  if (tc.name === "task_complete") {
27220
27225
  completed = true;
27221
27226
  summary = tc.arguments.summary || "";
27227
+ if (summary && !assistantTextEmitted2) {
27228
+ this.emit({ type: "assistant_text", content: summary, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
27229
+ assistantTextEmitted2 = true;
27230
+ }
27222
27231
  break;
27223
27232
  }
27224
27233
  }
@@ -28831,6 +28840,7 @@ ${description}`
28831
28840
  const cleanContent = content.replace(/<think>[\s\S]*?<\/think>/g, "").trim();
28832
28841
  if (cleanContent) {
28833
28842
  this.emit({ type: "assistant_text", content: cleanContent, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
28843
+ assistantTextEmitted = true;
28834
28844
  }
28835
28845
  const hadThinking = content.includes("<think>") && content.includes("</think>");
28836
28846
  const thinkOnlyResponse = hadThinking && !cleanContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.99",
3
+ "version": "0.186.1",
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",