open-agents-ai 0.184.58 → 0.184.59

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 +21 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41611,7 +41611,9 @@ function tuiSelect(opts) {
41611
41611
  ${selectColors.cyan("\u2190")} ${trail}`);
41612
41612
  }
41613
41613
  if (title) {
41614
- lines.push(`${hasBreadcrumbs ? "" : "\n"} ${selectColors.bold(title)}`);
41614
+ if (!hasBreadcrumbs)
41615
+ lines.push("");
41616
+ lines.push(` ${selectColors.bold(title)}`);
41615
41617
  }
41616
41618
  if (filter) {
41617
41619
  const count = matchSet.size;
@@ -65301,6 +65303,15 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65301
65303
  statusBar.handlePointerEvent(type, col, row);
65302
65304
  });
65303
65305
  process.stdin.pipe(mouseFilter);
65306
+ process.stdin.on("error", (err) => {
65307
+ if (err.code === "EIO" || err.code === "ENOTTY")
65308
+ return;
65309
+ try {
65310
+ process.stderr.write(`stdin error: ${err.code}
65311
+ `);
65312
+ } catch {
65313
+ }
65314
+ });
65304
65315
  const rl = readline2.createInterface({
65305
65316
  input: mouseFilter,
65306
65317
  output: process.stdout,
@@ -67742,10 +67753,15 @@ ${c2.dim("(Use /quit to exit)")}
67742
67753
  _escapeHandler = () => {
67743
67754
  if (!activeTask)
67744
67755
  return;
67745
- if (!activeTask.runner.isPaused) {
67746
- activeTask.runner.pause();
67747
- statusBar.setProcessing(false);
67756
+ if (activeTask.runner.isPaused) {
67757
+ writeContent(() => process.stdout.write(` ${c2.red("\u23F9")} ${c2.dim("Stopped.")}
67758
+ `));
67759
+ activeTask.runner.abort();
67760
+ showPrompt();
67761
+ return;
67748
67762
  }
67763
+ activeTask.runner.pause();
67764
+ statusBar.setProcessing(false);
67749
67765
  const retracted = activeTask.runner.retractLastPendingMessage();
67750
67766
  if (retracted) {
67751
67767
  lastSteeringInput = retracted;
@@ -67754,14 +67770,8 @@ ${c2.dim("(Use /quit to exit)")}
67754
67770
  `));
67755
67771
  rl.line = retracted;
67756
67772
  rl.cursor = retracted.length;
67757
- } else if (lastSteeringInput) {
67758
- lastSteeringRetracted = true;
67759
- writeContent(() => process.stdout.write(` ${c2.yellow("\u23F8")} ${c2.dim("\x1B[9m" + lastSteeringInput.slice(0, 120) + "\x1B[29m")} ${c2.dim("\u2190 already sent, re-type below to override")}
67760
- `));
67761
- rl.line = lastSteeringInput;
67762
- rl.cursor = lastSteeringInput.length;
67763
67773
  } else {
67764
- writeContent(() => process.stdout.write(` ${c2.yellow("\u23F8")} ${c2.dim("Paused. /resume to continue, /stop to kill.")}
67774
+ writeContent(() => process.stdout.write(` ${c2.yellow("\u23F8")} ${c2.dim("Paused. Press Esc again to stop, or type and press Enter to steer.")}
67765
67775
  `));
67766
67776
  }
67767
67777
  showPrompt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.58",
3
+ "version": "0.184.59",
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",