open-agents-ai 0.138.20 → 0.138.22

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 +23 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50075,7 +50075,8 @@ var init_braille_spinner = __esm({
50075
50075
  ];
50076
50076
  WAVE = [...DENSITY, ...DENSITY.slice(1, -1).reverse()];
50077
50077
  THEME_DEFAULT = {
50078
- ramp: [237, 60, 97, 97, 141, 141, 183, 183, 189],
50078
+ ramp: [237, 94, 130, 136, 172, 172, 178, 178, 214],
50079
+ // grey → amber → yellow (matches header)
50079
50080
  speed: 2
50080
50081
  };
50081
50082
  THEME_FILE = {
@@ -51429,6 +51430,7 @@ var init_status_bar = __esm({
51429
51430
  * tool event executed mid-stream will push depth to 2; its paired
51430
51431
  * endContentWrite() drops it back to 1 without touching the footer.
51431
51432
  */
51433
+ _origWrite = null;
51432
51434
  beginContentWrite() {
51433
51435
  if (!this.active)
51434
51436
  return;
@@ -51436,7 +51438,21 @@ var init_status_bar = __esm({
51436
51438
  this._brailleSpinner.setMetrics({ isStreaming: true });
51437
51439
  const rows = process.stdout.rows ?? 24;
51438
51440
  const scrollEnd = Math.max(rows - this._currentFooterHeight, this.scrollRegionTop + 1);
51439
- process.stdout.write(`\x1B[?25l\x1B[${this.scrollRegionTop};${scrollEnd}r\x1B[${scrollEnd};1H`);
51441
+ if (this.writeDepth === 1 && !this._origWrite) {
51442
+ this._origWrite = process.stdout.write;
51443
+ const origBound = this._origWrite.bind(process.stdout);
51444
+ process.stdout.write = ((chunk, ...args) => {
51445
+ if (typeof chunk === "string") {
51446
+ chunk = chunk.replace(/\x1B\[0m/g, `\x1B[0m${CONTENT_BG_SEQ}`);
51447
+ chunk = chunk.replace(/\n/g, `\x1B[K
51448
+ ${CONTENT_BG_SEQ}`);
51449
+ }
51450
+ return origBound(chunk, ...args);
51451
+ });
51452
+ }
51453
+ process.stdout.write(`\x1B[?25l` + // hide cursor
51454
+ CONTENT_BG_SEQ + // set content area bg (#111)
51455
+ `\x1B[${this.scrollRegionTop};${scrollEnd}r\x1B[${scrollEnd};1H`);
51440
51456
  }
51441
51457
  /**
51442
51458
  * Call AFTER writing content to the scrollable area.
@@ -51450,6 +51466,11 @@ var init_status_bar = __esm({
51450
51466
  return;
51451
51467
  this.writeDepth = Math.max(0, this.writeDepth - 1);
51452
51468
  if (this.writeDepth === 0) {
51469
+ if (this._origWrite) {
51470
+ process.stdout.write = this._origWrite;
51471
+ this._origWrite = null;
51472
+ }
51473
+ process.stdout.write(RESET);
51453
51474
  this._brailleSpinner.setMetrics({ isStreaming: false });
51454
51475
  this.renderFooterAndPositionInput();
51455
51476
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.20",
3
+ "version": "0.138.22",
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",