open-agents-ai 0.187.97 → 0.187.99
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 +15 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -279975,9 +279975,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
279975
279975
|
return origBound(chunk, ...args);
|
|
279976
279976
|
});
|
|
279977
279977
|
}
|
|
279978
|
+
this.termWrite("\x1B[?2026h");
|
|
279978
279979
|
process.stdout.write(`\x1B[?25l` + // hide cursor
|
|
279979
279980
|
CONTENT_BG_SEQ + // set content area bg (#111)
|
|
279980
279981
|
`\x1B[${this.scrollRegionTop};${scrollEnd}r\x1B[${scrollEnd};1H`);
|
|
279982
|
+
this.renderFooterAndPositionInput();
|
|
279983
|
+
process.stdout.write(`\x1B[${scrollEnd};1H`);
|
|
279984
|
+
this.termWrite("\x1B[?2026l");
|
|
279981
279985
|
}
|
|
279982
279986
|
/**
|
|
279983
279987
|
* Call AFTER writing content to the scrollable area.
|
|
@@ -280755,10 +280759,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
280755
280759
|
buf += "\x1BM";
|
|
280756
280760
|
}
|
|
280757
280761
|
buf += "\x1B[?7l";
|
|
280762
|
+
const boxInnerH = w - 2;
|
|
280763
|
+
buf += `\x1B[${pos.inputStartRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_TL}${BOX_H.repeat(Math.max(0, boxInnerH))}${BOX_TR}${RESET}`;
|
|
280758
280764
|
for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
|
|
280759
|
-
const row = pos.inputStartRow + i2;
|
|
280765
|
+
const row = pos.inputStartRow + 1 + i2;
|
|
280760
280766
|
const prefix = i2 === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
280761
|
-
|
|
280767
|
+
const lineContent = `${prefix}${inputWrap.lines[i2]}`;
|
|
280768
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_V}${RESET}${PANEL_BG_SEQ}${lineContent}${PANEL_BG_SEQ}\x1B[K\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET}`;
|
|
280762
280769
|
}
|
|
280763
280770
|
const boxInnerS = w - 2;
|
|
280764
280771
|
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerS))}${BOX_BR}${RESET}`;
|
|
@@ -280775,9 +280782,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
280775
280782
|
} else {
|
|
280776
280783
|
let buf = "\x1B[?7l";
|
|
280777
280784
|
for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
|
|
280778
|
-
const row = pos.inputStartRow + i2;
|
|
280785
|
+
const row = pos.inputStartRow + 1 + i2;
|
|
280779
280786
|
const prefix = i2 === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
280780
|
-
|
|
280787
|
+
const lineContent = `${prefix}${inputWrap.lines[i2]}`;
|
|
280788
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
280789
|
+
buf += `${BOX_FG}${BOX_V}${RESET}${PANEL_BG_SEQ}${lineContent}`;
|
|
280790
|
+
buf += `${PANEL_BG_SEQ}\x1B[K`;
|
|
280791
|
+
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET}`;
|
|
280781
280792
|
}
|
|
280782
280793
|
buf += "\x1B[?7h";
|
|
280783
280794
|
this.termWrite(buf);
|
|
@@ -311893,9 +311904,6 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
|
|
|
311893
311904
|
if (pasteBuffer.length === 0 && input.startsWith("/")) {
|
|
311894
311905
|
if (statusBar.isActive) {
|
|
311895
311906
|
statusBar.lockFooter();
|
|
311896
|
-
statusBar.syncBegin();
|
|
311897
|
-
statusBar.redrawFooter();
|
|
311898
|
-
statusBar.syncEnd();
|
|
311899
311907
|
}
|
|
311900
311908
|
processLine(input);
|
|
311901
311909
|
if (statusBar.isActive) {
|
package/package.json
CHANGED