open-agents-ai 0.138.99 → 0.139.1
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 +33 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37863,8 +37863,8 @@ function tuiSelect(opts) {
|
|
|
37863
37863
|
}
|
|
37864
37864
|
const reservedTopBottom = 6;
|
|
37865
37865
|
const hasCrumbs = opts.breadcrumbs && opts.breadcrumbs.length > 0;
|
|
37866
|
-
const selectChrome = hasCrumbs ?
|
|
37867
|
-
const contentArea = opts.availableRows
|
|
37866
|
+
const selectChrome = (hasCrumbs ? 11 : 10) + 3;
|
|
37867
|
+
const contentArea = opts.availableRows ? opts.availableRows + reservedTopBottom : process.stdout.rows ?? 24;
|
|
37868
37868
|
const maxVisible = opts.maxVisible ?? Math.max(3, contentArea - selectChrome);
|
|
37869
37869
|
let scrollOffset = 0;
|
|
37870
37870
|
let lastRenderedLines = 0;
|
|
@@ -37905,6 +37905,7 @@ function tuiSelect(opts) {
|
|
|
37905
37905
|
function render() {
|
|
37906
37906
|
overlayWrite("\x1B[48;5;234m\x1B[H\x1B[2J");
|
|
37907
37907
|
const lines = [];
|
|
37908
|
+
lines.push("", "", "");
|
|
37908
37909
|
if (hasBreadcrumbs) {
|
|
37909
37910
|
const trail = opts.breadcrumbs.map((b) => selectColors.dim(b)).join(selectColors.dim(" \u203A "));
|
|
37910
37911
|
lines.push(`
|
|
@@ -46533,6 +46534,20 @@ var init_banner = __esm({
|
|
|
46533
46534
|
buf += `\x1B]8;;oa-cmd:/update\x07`;
|
|
46534
46535
|
buf += `\x1B[1;${badgeStart}H\x1B[1;38;5;${updateFg}m\x1B[48;5;236m${badge}`;
|
|
46535
46536
|
buf += `\x1B]8;;\x07`;
|
|
46537
|
+
const mnemonicStartCol = badgeStart + badge.length;
|
|
46538
|
+
const gridRow = frame.grid[0];
|
|
46539
|
+
if (gridRow) {
|
|
46540
|
+
const origMnemonicStart = vStart - 1 + vLen;
|
|
46541
|
+
let mnBuf = `\x1B[1;${mnemonicStartCol}H\x1B[0;38;5;240m\x1B[48;5;${bgDark}m`;
|
|
46542
|
+
for (let c3 = origMnemonicStart; c3 < gridRow.length && c3 < Math.floor(this.width * 0.44); c3++) {
|
|
46543
|
+
const cell = gridRow[c3];
|
|
46544
|
+
if (cell && cell.char !== " " && !cell.bold)
|
|
46545
|
+
mnBuf += cell.char;
|
|
46546
|
+
else if (cell)
|
|
46547
|
+
mnBuf += cell.char;
|
|
46548
|
+
}
|
|
46549
|
+
buf += mnBuf;
|
|
46550
|
+
}
|
|
46536
46551
|
}
|
|
46537
46552
|
buf += "\x1B[0m";
|
|
46538
46553
|
}
|
|
@@ -53614,6 +53629,7 @@ var init_status_bar = __esm({
|
|
|
53614
53629
|
this._prevTermRows = process.stdout.rows ?? 24;
|
|
53615
53630
|
this._prevTermCols = process.stdout.columns ?? 80;
|
|
53616
53631
|
this.applyScrollRegion();
|
|
53632
|
+
this.fillContentArea();
|
|
53617
53633
|
this.renderFooterAndPositionInput();
|
|
53618
53634
|
this.hookStdin();
|
|
53619
53635
|
if (!this._metricsCollector.isActive) {
|
|
@@ -53871,6 +53887,7 @@ var init_status_bar = __esm({
|
|
|
53871
53887
|
this.termWrite(buf);
|
|
53872
53888
|
} else {
|
|
53873
53889
|
this.applyScrollRegion();
|
|
53890
|
+
this.fillContentArea();
|
|
53874
53891
|
let clearBuf = "\x1B[?7l";
|
|
53875
53892
|
for (let row = pos.scrollEnd + 1; row <= rows; row++) {
|
|
53876
53893
|
clearBuf += `\x1B[${row};1H\x1B[2K`;
|
|
@@ -53959,6 +53976,20 @@ ${CONTENT_BG_SEQ}`);
|
|
|
53959
53976
|
// Content scrollback — virtual scroll through buffered output lines
|
|
53960
53977
|
// -----------------------------------------------------------------------
|
|
53961
53978
|
/** Record a content line for scrollback. Called by the stream renderer intercept. */
|
|
53979
|
+
/** Paint the entire content area with CONTENT_BG — called on activation and resize */
|
|
53980
|
+
fillContentArea() {
|
|
53981
|
+
const rows = process.stdout.rows ?? 24;
|
|
53982
|
+
const h = this.contentHeight;
|
|
53983
|
+
let buf = "\x1B7\x1B[?25l";
|
|
53984
|
+
for (let r = 0; r < h; r++) {
|
|
53985
|
+
const screenRow = this.scrollRegionTop + r;
|
|
53986
|
+
if (screenRow > rows)
|
|
53987
|
+
break;
|
|
53988
|
+
buf += `\x1B[${screenRow};1H${CONTENT_BG_SEQ}\x1B[2K`;
|
|
53989
|
+
}
|
|
53990
|
+
buf += "\x1B8\x1B[?25h";
|
|
53991
|
+
this.termWrite(buf);
|
|
53992
|
+
}
|
|
53962
53993
|
bufferContentLine(line) {
|
|
53963
53994
|
this._contentLines.push(line);
|
|
53964
53995
|
if (this._contentLines.length > this._contentMaxLines) {
|
package/package.json
CHANGED