open-agents-ai 0.139.0 → 0.139.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 +20 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -38675,6 +38675,9 @@ async function startNeovimMode(opts) {
38675
38675
  stdin.setRawMode(true);
38676
38676
  }
38677
38677
  stdin.resume();
38678
+ if (isTTY5) {
38679
+ process.stdout.write("\x1B[?1002h\x1B[?1006h");
38680
+ }
38678
38681
  state.stdinHandler = (data) => {
38679
38682
  if (state.cleanedUp)
38680
38683
  return;
@@ -38892,6 +38895,7 @@ function toggleFocus(state) {
38892
38895
  if (state.stdinHandler) {
38893
38896
  stdin.on("data", state.stdinHandler);
38894
38897
  }
38898
+ process.stdout.write("\x1B[?1002h\x1B[?1006h");
38895
38899
  if (state.nvim) {
38896
38900
  state.nvim.command("redraw!").catch(() => {
38897
38901
  });
@@ -53629,6 +53633,7 @@ var init_status_bar = __esm({
53629
53633
  this._prevTermRows = process.stdout.rows ?? 24;
53630
53634
  this._prevTermCols = process.stdout.columns ?? 80;
53631
53635
  this.applyScrollRegion();
53636
+ this.fillContentArea();
53632
53637
  this.renderFooterAndPositionInput();
53633
53638
  this.hookStdin();
53634
53639
  if (!this._metricsCollector.isActive) {
@@ -53886,6 +53891,7 @@ var init_status_bar = __esm({
53886
53891
  this.termWrite(buf);
53887
53892
  } else {
53888
53893
  this.applyScrollRegion();
53894
+ this.fillContentArea();
53889
53895
  let clearBuf = "\x1B[?7l";
53890
53896
  for (let row = pos.scrollEnd + 1; row <= rows; row++) {
53891
53897
  clearBuf += `\x1B[${row};1H\x1B[2K`;
@@ -53974,6 +53980,20 @@ ${CONTENT_BG_SEQ}`);
53974
53980
  // Content scrollback — virtual scroll through buffered output lines
53975
53981
  // -----------------------------------------------------------------------
53976
53982
  /** Record a content line for scrollback. Called by the stream renderer intercept. */
53983
+ /** Paint the entire content area with CONTENT_BG — called on activation and resize */
53984
+ fillContentArea() {
53985
+ const rows = process.stdout.rows ?? 24;
53986
+ const h = this.contentHeight;
53987
+ let buf = "\x1B7\x1B[?25l";
53988
+ for (let r = 0; r < h; r++) {
53989
+ const screenRow = this.scrollRegionTop + r;
53990
+ if (screenRow > rows)
53991
+ break;
53992
+ buf += `\x1B[${screenRow};1H${CONTENT_BG_SEQ}\x1B[2K`;
53993
+ }
53994
+ buf += "\x1B8\x1B[?25h";
53995
+ this.termWrite(buf);
53996
+ }
53977
53997
  bufferContentLine(line) {
53978
53998
  this._contentLines.push(line);
53979
53999
  if (this._contentLines.length > this._contentMaxLines) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.139.0",
3
+ "version": "0.139.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",