open-agents-ai 0.103.92 → 0.103.94
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 +9 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33579,7 +33579,7 @@ function tuiSelect(opts) {
|
|
|
33579
33579
|
cursor = first >= 0 ? first : 0;
|
|
33580
33580
|
}
|
|
33581
33581
|
const selectChrome = 3;
|
|
33582
|
-
const contentArea =
|
|
33582
|
+
const contentArea = process.stdout.rows ?? 24;
|
|
33583
33583
|
const maxVisible = opts.maxVisible ?? Math.max(3, contentArea - selectChrome);
|
|
33584
33584
|
let scrollOffset = 0;
|
|
33585
33585
|
let lastRenderedLines = 0;
|
|
@@ -33601,7 +33601,7 @@ function tuiSelect(opts) {
|
|
|
33601
33601
|
stdin.setRawMode(true);
|
|
33602
33602
|
}
|
|
33603
33603
|
stdin.resume();
|
|
33604
|
-
process.stdout.write("\x1B[?25l");
|
|
33604
|
+
process.stdout.write("\x1B[?1049h\x1B[2J\x1B[H\x1B[?25l");
|
|
33605
33605
|
function clampScroll(displayList) {
|
|
33606
33606
|
const cursorPos = displayList.indexOf(cursor);
|
|
33607
33607
|
if (cursorPos < 0)
|
|
@@ -33615,13 +33615,7 @@ function tuiSelect(opts) {
|
|
|
33615
33615
|
scrollOffset = Math.max(0, Math.min(maxOffset, scrollOffset));
|
|
33616
33616
|
}
|
|
33617
33617
|
function render() {
|
|
33618
|
-
|
|
33619
|
-
process.stdout.write(`\x1B[${lastRenderedLines}A`);
|
|
33620
|
-
for (let i = 0; i < lastRenderedLines; i++) {
|
|
33621
|
-
process.stdout.write("\x1B[2K\n");
|
|
33622
|
-
}
|
|
33623
|
-
process.stdout.write(`\x1B[${lastRenderedLines}A`);
|
|
33624
|
-
}
|
|
33618
|
+
process.stdout.write("\x1B[H\x1B[2J");
|
|
33625
33619
|
const lines = [];
|
|
33626
33620
|
if (title) {
|
|
33627
33621
|
lines.push(`
|
|
@@ -33701,14 +33695,7 @@ function tuiSelect(opts) {
|
|
|
33701
33695
|
function cleanup() {
|
|
33702
33696
|
stdin.removeListener("data", onData);
|
|
33703
33697
|
process.stdout.removeListener("resize", onResize);
|
|
33704
|
-
process.stdout.write("\x1B[?25h");
|
|
33705
|
-
if (lastRenderedLines > 0) {
|
|
33706
|
-
process.stdout.write(`\x1B[${lastRenderedLines}A`);
|
|
33707
|
-
for (let i = 0; i < lastRenderedLines; i++) {
|
|
33708
|
-
process.stdout.write("\x1B[2K\n");
|
|
33709
|
-
}
|
|
33710
|
-
process.stdout.write(`\x1B[${lastRenderedLines}A`);
|
|
33711
|
-
}
|
|
33698
|
+
process.stdout.write("\x1B[?1049l\x1B[?25h");
|
|
33712
33699
|
if (typeof stdin.setRawMode === "function") {
|
|
33713
33700
|
stdin.setRawMode(hadRawMode ?? false);
|
|
33714
33701
|
}
|
|
@@ -46761,10 +46748,13 @@ var init_status_bar = __esm({
|
|
|
46761
46748
|
const pos = this.rowPositions(rows);
|
|
46762
46749
|
const w = getTermWidth();
|
|
46763
46750
|
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
46751
|
+
const wrapFactor = prevCols > 0 && cols > 0 ? Math.ceil(prevCols / cols) : 1;
|
|
46752
|
+
const wrapOverhead = Math.max(0, this._currentFooterHeight * (wrapFactor - 1));
|
|
46753
|
+
const clearStart = Math.max(1, pos.bufferRow - wrapOverhead);
|
|
46764
46754
|
if (this.writeDepth > 0) {
|
|
46765
46755
|
const inputWrap = this.wrapInput(w);
|
|
46766
46756
|
let buf = `\x1B[${this.scrollRegionTop};${pos.scrollEnd}r\x1B[?25l\x1B[?7l`;
|
|
46767
|
-
for (let row =
|
|
46757
|
+
for (let row = clearStart; row <= rows; row++) {
|
|
46768
46758
|
buf += `\x1B[${row};1H\x1B[2K`;
|
|
46769
46759
|
}
|
|
46770
46760
|
buf += `\x1B[${pos.bufferRow};1H${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H${sep}`;
|
|
@@ -46778,7 +46768,7 @@ var init_status_bar = __esm({
|
|
|
46778
46768
|
} else {
|
|
46779
46769
|
this.applyScrollRegion();
|
|
46780
46770
|
let clearBuf = "\x1B[?7l";
|
|
46781
|
-
for (let row =
|
|
46771
|
+
for (let row = clearStart; row <= rows; row++) {
|
|
46782
46772
|
clearBuf += `\x1B[${row};1H\x1B[2K`;
|
|
46783
46773
|
}
|
|
46784
46774
|
clearBuf += "\x1B[?7h";
|
package/package.json
CHANGED