open-agents-ai 0.103.91 → 0.103.92
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.
- package/dist/index.js +17 -7
- 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,7 +46760,7 @@ 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 =
|
|
46763
|
+
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
46754
46764
|
if (this.writeDepth > 0) {
|
|
46755
46765
|
const inputWrap = this.wrapInput(w);
|
|
46756
46766
|
let buf = `\x1B[${this.scrollRegionTop};${pos.scrollEnd}r\x1B[?25l\x1B[?7l`;
|
|
@@ -47222,7 +47232,7 @@ var init_status_bar = __esm({
|
|
|
47222
47232
|
* applyScrollRegion() and beginContentWrite().
|
|
47223
47233
|
*/
|
|
47224
47234
|
renderFooterAndPositionInput() {
|
|
47225
|
-
if (!this.active)
|
|
47235
|
+
if (!this.active || this._resizing)
|
|
47226
47236
|
return;
|
|
47227
47237
|
const rows = process.stdout.rows ?? 24;
|
|
47228
47238
|
const w = getTermWidth();
|
|
@@ -47247,7 +47257,7 @@ var init_status_bar = __esm({
|
|
|
47247
47257
|
process.stdout.write(scrollDown);
|
|
47248
47258
|
}
|
|
47249
47259
|
}
|
|
47250
|
-
const sep =
|
|
47260
|
+
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
47251
47261
|
const inputWrap = this.wrapInput(w);
|
|
47252
47262
|
let buf = `\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H\x1B[2K${sep}`;
|
|
47253
47263
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
|
@@ -47272,7 +47282,7 @@ var init_status_bar = __esm({
|
|
|
47272
47282
|
* cursor save/restore corrupts the restore position on many terminals.
|
|
47273
47283
|
*/
|
|
47274
47284
|
renderFooterPreserveCursor() {
|
|
47275
|
-
if (!this.active)
|
|
47285
|
+
if (!this.active || this._resizing)
|
|
47276
47286
|
return;
|
|
47277
47287
|
if (this.footerHeightChanged()) {
|
|
47278
47288
|
if (this.writeDepth === 0) {
|
|
@@ -47283,7 +47293,7 @@ var init_status_bar = __esm({
|
|
|
47283
47293
|
const rows = process.stdout.rows ?? 24;
|
|
47284
47294
|
const w = getTermWidth();
|
|
47285
47295
|
const pos = this.rowPositions(rows);
|
|
47286
|
-
const sep =
|
|
47296
|
+
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
47287
47297
|
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
47298
|
(this.writeDepth === 0 ? "\x1B[?25h" : "");
|
|
47289
47299
|
process.stdout.write(buf);
|
|
@@ -47294,7 +47304,7 @@ var init_status_bar = __esm({
|
|
|
47294
47304
|
* If footer height changed, also updates DECSTBM and redraws full footer.
|
|
47295
47305
|
*/
|
|
47296
47306
|
renderInputRowDuringStream() {
|
|
47297
|
-
if (!this.active || !this.inputStateProvider)
|
|
47307
|
+
if (!this.active || this._resizing || !this.inputStateProvider)
|
|
47298
47308
|
return;
|
|
47299
47309
|
const rows = process.stdout.rows ?? 24;
|
|
47300
47310
|
const w = getTermWidth();
|
|
@@ -47319,7 +47329,7 @@ var init_status_bar = __esm({
|
|
|
47319
47329
|
buf += "\x1BM";
|
|
47320
47330
|
}
|
|
47321
47331
|
buf += "\x1B[?7l";
|
|
47322
|
-
const sep =
|
|
47332
|
+
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
47323
47333
|
buf += `\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}`;
|
|
47324
47334
|
buf += `\x1B[${pos.topSepRow};1H\x1B[2K${sep}`;
|
|
47325
47335
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
package/package.json
CHANGED