open-agents-ai 0.103.91 → 0.103.93

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 +22 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46181,6 +46181,9 @@ var init_status_bar = __esm({
46181
46181
  _prevTermCols = 0;
46182
46182
  /** Debounce timer for resize events — prevents separator stacking during drag */
46183
46183
  _resizeTimer = null;
46184
+ /** True while resize is in-flight (between first SIGWINCH and debounce settle).
46185
+ * Suppresses ALL footer renders to prevent separator debris at intermediate sizes. */
46186
+ _resizing = false;
46184
46187
  /**
46185
46188
  * Depth-counted content write guard. Incremented by beginContentWrite(),
46186
46189
  * decremented by endContentWrite(). Footer is only redrawn and cursor
@@ -46681,6 +46684,11 @@ var init_status_bar = __esm({
46681
46684
  /** Deactivate — restore full-screen scroll region */
46682
46685
  deactivate() {
46683
46686
  this.active = false;
46687
+ this._resizing = false;
46688
+ if (this._resizeTimer) {
46689
+ clearTimeout(this._resizeTimer);
46690
+ this._resizeTimer = null;
46691
+ }
46684
46692
  this.stopAllMetrics();
46685
46693
  const rows = process.stdout.rows ?? 24;
46686
46694
  process.stdout.write(`\x1B[1;${rows}r`);
@@ -46730,10 +46738,12 @@ var init_status_bar = __esm({
46730
46738
  handleResize() {
46731
46739
  if (!this.active)
46732
46740
  return;
46741
+ this._resizing = true;
46733
46742
  if (this._resizeTimer)
46734
46743
  clearTimeout(this._resizeTimer);
46735
46744
  this._resizeTimer = setTimeout(() => {
46736
46745
  this._resizeTimer = null;
46746
+ this._resizing = false;
46737
46747
  this._handleResizeImmediate();
46738
46748
  }, 50);
46739
46749
  }
@@ -46750,11 +46760,14 @@ var init_status_bar = __esm({
46750
46760
  this._prevTermCols = cols;
46751
46761
  const pos = this.rowPositions(rows);
46752
46762
  const w = getTermWidth();
46753
- const sep = c2.dim("\u2500".repeat(w));
46763
+ const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
46764
+ const wrapFactor = prevCols > 0 && cols > 0 ? Math.ceil(prevCols / cols) : 1;
46765
+ const wrapOverhead = Math.max(0, this._currentFooterHeight * (wrapFactor - 1));
46766
+ const clearStart = Math.max(1, pos.bufferRow - wrapOverhead);
46754
46767
  if (this.writeDepth > 0) {
46755
46768
  const inputWrap = this.wrapInput(w);
46756
46769
  let buf = `\x1B[${this.scrollRegionTop};${pos.scrollEnd}r\x1B[?25l\x1B[?7l`;
46757
- for (let row = pos.bufferRow; row <= rows; row++) {
46770
+ for (let row = clearStart; row <= rows; row++) {
46758
46771
  buf += `\x1B[${row};1H\x1B[2K`;
46759
46772
  }
46760
46773
  buf += `\x1B[${pos.bufferRow};1H${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H${sep}`;
@@ -46768,7 +46781,7 @@ var init_status_bar = __esm({
46768
46781
  } else {
46769
46782
  this.applyScrollRegion();
46770
46783
  let clearBuf = "\x1B[?7l";
46771
- for (let row = pos.bufferRow; row <= rows; row++) {
46784
+ for (let row = clearStart; row <= rows; row++) {
46772
46785
  clearBuf += `\x1B[${row};1H\x1B[2K`;
46773
46786
  }
46774
46787
  clearBuf += "\x1B[?7h";
@@ -47222,7 +47235,7 @@ var init_status_bar = __esm({
47222
47235
  * applyScrollRegion() and beginContentWrite().
47223
47236
  */
47224
47237
  renderFooterAndPositionInput() {
47225
- if (!this.active)
47238
+ if (!this.active || this._resizing)
47226
47239
  return;
47227
47240
  const rows = process.stdout.rows ?? 24;
47228
47241
  const w = getTermWidth();
@@ -47247,7 +47260,7 @@ var init_status_bar = __esm({
47247
47260
  process.stdout.write(scrollDown);
47248
47261
  }
47249
47262
  }
47250
- const sep = c2.dim("\u2500".repeat(w));
47263
+ const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
47251
47264
  const inputWrap = this.wrapInput(w);
47252
47265
  let buf = `\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H\x1B[2K${sep}`;
47253
47266
  for (let i = 0; i < inputWrap.lines.length; i++) {
@@ -47272,7 +47285,7 @@ var init_status_bar = __esm({
47272
47285
  * cursor save/restore corrupts the restore position on many terminals.
47273
47286
  */
47274
47287
  renderFooterPreserveCursor() {
47275
- if (!this.active)
47288
+ if (!this.active || this._resizing)
47276
47289
  return;
47277
47290
  if (this.footerHeightChanged()) {
47278
47291
  if (this.writeDepth === 0) {
@@ -47283,7 +47296,7 @@ var init_status_bar = __esm({
47283
47296
  const rows = process.stdout.rows ?? 24;
47284
47297
  const w = getTermWidth();
47285
47298
  const pos = this.rowPositions(rows);
47286
- const sep = c2.dim("\u2500".repeat(w));
47299
+ const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
47287
47300
  const buf = `\x1B7\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H\x1B[2K${sep}\x1B[${pos.bottomSepRow};1H\x1B[2K${sep}\x1B[${pos.metricsRow};1H\x1B[2K${this.buildMetricsLine()}\x1B[?7h\x1B8` + // DEC restore cursor
47288
47301
  (this.writeDepth === 0 ? "\x1B[?25h" : "");
47289
47302
  process.stdout.write(buf);
@@ -47294,7 +47307,7 @@ var init_status_bar = __esm({
47294
47307
  * If footer height changed, also updates DECSTBM and redraws full footer.
47295
47308
  */
47296
47309
  renderInputRowDuringStream() {
47297
- if (!this.active || !this.inputStateProvider)
47310
+ if (!this.active || this._resizing || !this.inputStateProvider)
47298
47311
  return;
47299
47312
  const rows = process.stdout.rows ?? 24;
47300
47313
  const w = getTermWidth();
@@ -47319,7 +47332,7 @@ var init_status_bar = __esm({
47319
47332
  buf += "\x1BM";
47320
47333
  }
47321
47334
  buf += "\x1B[?7l";
47322
- const sep = c2.dim("\u2500".repeat(w));
47335
+ const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
47323
47336
  buf += `\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}`;
47324
47337
  buf += `\x1B[${pos.topSepRow};1H\x1B[2K${sep}`;
47325
47338
  for (let i = 0; i < inputWrap.lines.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.103.91",
3
+ "version": "0.103.93",
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",