open-agents-ai 0.187.388 → 0.187.390
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 +3 -27
- package/npm-shrinkwrap.json +9477 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -534529,36 +534529,12 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534529
534529
|
if (!this.active || this._resizing) return;
|
|
534530
534530
|
const rows = termRows();
|
|
534531
534531
|
const w = getTermWidth();
|
|
534532
|
-
const oldFooterHeight = this._currentFooterHeight;
|
|
534533
534532
|
const heightChanged = this.updateFooterHeight(w);
|
|
534534
534533
|
const pos = this.rowPositions(rows);
|
|
534535
534534
|
if (heightChanged) {
|
|
534536
|
-
|
|
534537
|
-
|
|
534538
|
-
|
|
534539
|
-
let scrollUp = `\x1B[${oldScrollEnd};1H`;
|
|
534540
|
-
for (let i2 = 0; i2 < heightDelta; i2++) scrollUp += "\n";
|
|
534541
|
-
this.termWrite(scrollUp);
|
|
534542
|
-
this.termWrite(`\x1B[${this.scrollRegionTop};${pos.scrollEnd}r`);
|
|
534543
|
-
} else {
|
|
534544
|
-
const absD = Math.abs(heightDelta);
|
|
534545
|
-
const oldScrollEnd = Math.max(rows - oldFooterHeight, this.scrollRegionTop);
|
|
534546
|
-
const newScrollEnd = pos.scrollEnd;
|
|
534547
|
-
this.termWrite(`\x1B[${this.scrollRegionTop};${newScrollEnd}r`);
|
|
534548
|
-
let wipeTransition = "";
|
|
534549
|
-
for (let r2 = oldScrollEnd + 1; r2 <= newScrollEnd; r2++) {
|
|
534550
|
-
wipeTransition += `\x1B[${r2};1H${CONTENT_BG_SEQ}\x1B[2K`;
|
|
534551
|
-
}
|
|
534552
|
-
if (wipeTransition) this.termWrite(wipeTransition);
|
|
534553
|
-
let scrollDown = `\x1B[${this.scrollRegionTop};1H`;
|
|
534554
|
-
for (let i2 = 0; i2 < absD; i2++) scrollDown += "\x1BM";
|
|
534555
|
-
this.termWrite(scrollDown);
|
|
534556
|
-
let repaint = "";
|
|
534557
|
-
for (let r2 = this.scrollRegionTop; r2 < this.scrollRegionTop + absD; r2++) {
|
|
534558
|
-
repaint += `\x1B[${r2};1H${CONTENT_BG_SEQ}\x1B[2K`;
|
|
534559
|
-
}
|
|
534560
|
-
if (repaint) this.termWrite(repaint);
|
|
534561
|
-
}
|
|
534535
|
+
this.applyScrollRegion();
|
|
534536
|
+
this.fillContentArea();
|
|
534537
|
+
this.repaintContent();
|
|
534562
534538
|
}
|
|
534563
534539
|
const inputWrap = this.wrapInput(w);
|
|
534564
534540
|
let buf = "\x1B[?7l";
|