open-agents-ai 0.103.88 → 0.103.89
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 +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46731,28 +46731,28 @@ var init_status_bar = __esm({
|
|
|
46731
46731
|
const pos = this.rowPositions(rows);
|
|
46732
46732
|
const w = getTermWidth();
|
|
46733
46733
|
const sep = c2.dim("\u2500".repeat(w));
|
|
46734
|
-
let clearBuf = "";
|
|
46735
|
-
if (prevRows > 0 && (rows !== prevRows || cols !== prevCols)) {
|
|
46736
|
-
const wrapFactor = cols > 0 ? Math.ceil(prevCols / cols) : 1;
|
|
46737
|
-
const extraWrappedRows = Math.max(0, (wrapFactor - 1) * 3);
|
|
46738
|
-
const safetyMargin = extraWrappedRows + 2;
|
|
46739
|
-
const clearFrom = Math.max(1, pos.bufferRow - safetyMargin);
|
|
46740
|
-
clearBuf = "\x1B[1;" + rows + `r\x1B[${clearFrom};1H\x1B[J`;
|
|
46741
|
-
}
|
|
46742
46734
|
if (this.writeDepth > 0) {
|
|
46743
46735
|
const inputWrap = this.wrapInput(w);
|
|
46744
|
-
let buf =
|
|
46736
|
+
let buf = `\x1B[${this.scrollRegionTop};${pos.scrollEnd}r\x1B[?25l\x1B[?7l`;
|
|
46737
|
+
for (let row = pos.bufferRow; row <= rows; row++) {
|
|
46738
|
+
buf += `\x1B[${row};1H\x1B[2K`;
|
|
46739
|
+
}
|
|
46740
|
+
buf += `\x1B[${pos.bufferRow};1H${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H${sep}`;
|
|
46745
46741
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
|
46746
46742
|
const row = pos.inputStartRow + i;
|
|
46747
46743
|
const prefix = i === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
46748
|
-
buf += `\x1B[${row};1H
|
|
46744
|
+
buf += `\x1B[${row};1H${prefix}${inputWrap.lines[i]}`;
|
|
46749
46745
|
}
|
|
46750
|
-
buf += `\x1B[${pos.bottomSepRow};1H
|
|
46746
|
+
buf += `\x1B[${pos.bottomSepRow};1H${sep}\x1B[${pos.metricsRow};1H${this.buildMetricsLine()}\x1B[?7h\x1B[${pos.scrollEnd};1H`;
|
|
46751
46747
|
process.stdout.write(buf);
|
|
46752
46748
|
} else {
|
|
46753
|
-
if (clearBuf)
|
|
46754
|
-
process.stdout.write(clearBuf);
|
|
46755
46749
|
this.applyScrollRegion();
|
|
46750
|
+
let clearBuf = "\x1B[?7l";
|
|
46751
|
+
for (let row = pos.bufferRow; row <= rows; row++) {
|
|
46752
|
+
clearBuf += `\x1B[${row};1H\x1B[2K`;
|
|
46753
|
+
}
|
|
46754
|
+
clearBuf += "\x1B[?7h";
|
|
46755
|
+
process.stdout.write(clearBuf);
|
|
46756
46756
|
this.renderFooterAndPositionInput();
|
|
46757
46757
|
}
|
|
46758
46758
|
}
|
package/package.json
CHANGED