open-agents-ai 0.138.43 → 0.138.45

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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52158,15 +52158,14 @@ ${CONTENT_BG_SEQ}`);
52158
52158
  const w1 = this._origWrite ?? this._trueStdoutWrite;
52159
52159
  w1.call(process.stdout, buf);
52160
52160
  } else {
52161
- let buf = "\x1B7\x1B[?7l";
52161
+ let buf = "\x1B[?7l";
52162
52162
  for (let i = 0; i < inputWrap.lines.length; i++) {
52163
52163
  const row = pos.inputStartRow + i;
52164
52164
  const prefix = i === 0 ? this.promptText : " ".repeat(this.promptWidth);
52165
52165
  buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i]}${RESET}`;
52166
52166
  }
52167
- buf += "\x1B[?7h\x1B8";
52168
- const w2 = this._origWrite ?? this._trueStdoutWrite;
52169
- w2.call(process.stdout, buf);
52167
+ buf += "\x1B[?7h";
52168
+ this.termWrite(buf);
52170
52169
  }
52171
52170
  }
52172
52171
  /**
@@ -52229,6 +52228,11 @@ ${CONTENT_BG_SEQ}`);
52229
52228
  rl._ttyWrite = function(s, key) {
52230
52229
  if (!self.active)
52231
52230
  return origTtyWrite(s, key);
52231
+ if (key?.name === "backspace" && self.inputStateProvider) {
52232
+ const { cursor } = self.inputStateProvider();
52233
+ if (cursor <= 0)
52234
+ return;
52235
+ }
52232
52236
  if (s && (/\x1B\[</.test(s) || /^\d+;\d+;\d*[Mm]/.test(s) || /^;\d+[Mm]/.test(s) || /\[<\d/.test(s))) {
52233
52237
  return;
52234
52238
  }
@@ -54081,6 +54085,9 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54081
54085
  _escapeHandler?.();
54082
54086
  });
54083
54087
  rl.output = null;
54088
+ if (process.stdin.isTTY && typeof process.stdin.setRawMode === "function") {
54089
+ process.stdin.setRawMode(true);
54090
+ }
54084
54091
  function persistHistoryLine(line) {
54085
54092
  if (!line.trim())
54086
54093
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.43",
3
+ "version": "0.138.45",
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",