open-agents-ai 0.185.86 → 0.185.88

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 +11 -26
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -65338,6 +65338,9 @@ body {
65338
65338
  font-family: inherit;
65339
65339
  font-size: 0.7rem;
65340
65340
  margin-left: auto;
65341
+ max-width: 180px;
65342
+ overflow: hidden;
65343
+ text-overflow: ellipsis;
65341
65344
  }
65342
65345
  #header .key-btn {
65343
65346
  background: #2a2a30;
@@ -68136,19 +68139,10 @@ Respond conversationally. Call task_complete with your final response.`;
68136
68139
  continue;
68137
68140
  try {
68138
68141
  const evt = JSON.parse(line);
68139
- if (evt.type === "text" && evt.content) {
68140
- const t = evt.content;
68141
- const skip = /^(open-agents |i Context|⚡ |✅ |✔ |Tokens:|Previous conversation:|Respond conversationally|▸ Stream|▹ )/.test(t) || t === "\u2714 Done" || t === "\u2705 Complete";
68142
- if (!skip)
68143
- content += t + "\n";
68144
- } else if (evt.status === "completed" || evt.status === "failed") {
68145
- if (evt.text)
68146
- content = evt.text;
68147
- if (!content.trim()) {
68148
- const summary = evt.summary || "";
68149
- const match = summary.match(/Tokens:\s*[\d,]+\s+([\s\S]*)/);
68150
- summaryContent = match ? match[1].trim() : summary;
68151
- }
68142
+ if (evt.status === "completed" || evt.status === "failed") {
68143
+ const summary = evt.summary || "";
68144
+ const match = summary.match(/Tokens:\s*[\d,]+\s+([\s\S]*)/);
68145
+ content = match ? match[1].trim() : summary;
68152
68146
  }
68153
68147
  } catch {
68154
68148
  }
@@ -73646,17 +73640,8 @@ async function runJson(task, config, repoPath) {
73646
73640
  let assistantText = "";
73647
73641
  let textBuffer = "";
73648
73642
  process.stdout.write = ((chunk, ...args) => {
73649
- if (typeof chunk === "string") {
73643
+ if (typeof chunk === "string")
73650
73644
  captured.push(chunk);
73651
- const clean = chunk.replace(/\x1B\[[0-9;]*[A-Za-z]/g, "").replace(/\x1B\].*?\x07/g, "").replace(/\x1B[78]/g, "");
73652
- if (clean.trim()) {
73653
- const stripped = clean.replace(/[▸▹⎿]/g, "").trim();
73654
- if (stripped.length > 0 && !stripped.startsWith("\x1B") && stripped.length < 5e3) {
73655
- textBuffer += stripped + "\n";
73656
- origWrite(JSON.stringify({ type: "text", content: stripped }) + "\n");
73657
- }
73658
- }
73659
- }
73660
73645
  return true;
73661
73646
  });
73662
73647
  process.stderr.write = (() => true);
@@ -73679,9 +73664,9 @@ async function runJson(task, config, repoPath) {
73679
73664
  }
73680
73665
  process.stdout.write = origWrite;
73681
73666
  process.stderr.write = origStderr;
73682
- if (textBuffer.trim()) {
73683
- result.text = textBuffer.trim();
73684
- }
73667
+ const allCaptured = captured.join("");
73668
+ const cleanText = allCaptured.replace(/\x1B\[[0-9;]*[A-Za-z]/g, "").replace(/\x1B\].*?\x07/g, "").replace(/\x1B[78]/g, "").replace(/\x1B\[\?[0-9;]*[hl]/g, "");
73669
+ result.text = cleanText;
73685
73670
  process.stdout.write(JSON.stringify(result, null, 2) + "\n");
73686
73671
  if (result.exitCode !== 0)
73687
73672
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.86",
3
+ "version": "0.185.88",
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",