open-agents-ai 0.187.240 → 0.187.242
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 +2 -41
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -291195,38 +291195,6 @@ var init_status_bar = __esm({
|
|
|
291195
291195
|
if (viewId) this.switchToView(viewId);
|
|
291196
291196
|
return;
|
|
291197
291197
|
}
|
|
291198
|
-
const fh = this._currentFooterHeight;
|
|
291199
|
-
const footerStart = termRows() - fh + 1;
|
|
291200
|
-
if (row >= footerStart) return;
|
|
291201
|
-
if (type === "press") {
|
|
291202
|
-
this._textSelection.onMousePress(row, col);
|
|
291203
|
-
this.repaintContent();
|
|
291204
|
-
} else if (type === "drag") {
|
|
291205
|
-
this._textSelection.onMouseDrag(row, col);
|
|
291206
|
-
this.repaintContent();
|
|
291207
|
-
} else if (type === "release") {
|
|
291208
|
-
this._textSelection.onMouseRelease(row, col);
|
|
291209
|
-
this.repaintContent();
|
|
291210
|
-
if (this._textSelection.hasSelection) {
|
|
291211
|
-
try {
|
|
291212
|
-
const ok2 = this._textSelection.copyToClipboard();
|
|
291213
|
-
if (ok2) {
|
|
291214
|
-
const pos2 = this.rowPositions(termRows());
|
|
291215
|
-
if (pos2.metricsRow > 0) {
|
|
291216
|
-
const origWrite = this._origWrite ?? process.stdout.write.bind(process.stdout);
|
|
291217
|
-
origWrite(`\x1B[${pos2.metricsRow};1H\x1B[2K\x1B[38;5;${TEXT_PRIMARY}m ✓ Copied to clipboard\x1B[0m`);
|
|
291218
|
-
setTimeout(() => {
|
|
291219
|
-
try {
|
|
291220
|
-
this.renderFooterAndPositionInput();
|
|
291221
|
-
} catch {
|
|
291222
|
-
}
|
|
291223
|
-
}, 1200);
|
|
291224
|
-
}
|
|
291225
|
-
}
|
|
291226
|
-
} catch {
|
|
291227
|
-
}
|
|
291228
|
-
}
|
|
291229
|
-
}
|
|
291230
291198
|
}
|
|
291231
291199
|
/** Copy current selection to clipboard. Returns true if copied. */
|
|
291232
291200
|
copySelection() {
|
|
@@ -291461,6 +291429,7 @@ var init_status_bar = __esm({
|
|
|
291461
291429
|
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerP))}${BOX_BR}${RESET2}`;
|
|
291462
291430
|
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}\x1B[?7h\x1B[${pos.scrollEnd};1H`;
|
|
291463
291431
|
this.termWrite(buf);
|
|
291432
|
+
if (this._bannerRefresh) this._bannerRefresh();
|
|
291464
291433
|
} else {
|
|
291465
291434
|
this.applyScrollRegion(true);
|
|
291466
291435
|
this.fillContentArea();
|
|
@@ -291707,7 +291676,6 @@ ${CONTENT_BG_SEQ}`);
|
|
|
291707
291676
|
/** Scroll up through content history */
|
|
291708
291677
|
scrollContentUp(lines = 1) {
|
|
291709
291678
|
if (!this.active) return;
|
|
291710
|
-
this._textSelection.clear();
|
|
291711
291679
|
this.cancelMouseIdle();
|
|
291712
291680
|
this.enableMouseTracking();
|
|
291713
291681
|
this._autoScroll = false;
|
|
@@ -291720,7 +291688,6 @@ ${CONTENT_BG_SEQ}`);
|
|
|
291720
291688
|
/** Scroll down through content history */
|
|
291721
291689
|
scrollContentDown(lines = 1) {
|
|
291722
291690
|
if (!this.active) return;
|
|
291723
|
-
this._textSelection.clear();
|
|
291724
291691
|
this.cancelMouseIdle();
|
|
291725
291692
|
this.enableMouseTracking();
|
|
291726
291693
|
this._contentScrollOffset = Math.max(0, this._contentScrollOffset - lines);
|
|
@@ -291775,19 +291742,12 @@ ${CONTENT_BG_SEQ}`);
|
|
|
291775
291742
|
let buf = "\x1B[?2026h";
|
|
291776
291743
|
buf += "\x1B7";
|
|
291777
291744
|
buf += "\x1B[?25l";
|
|
291778
|
-
const selRanges = this._textSelection.hasSelection ? this._textSelection.getSelectedRanges() : [];
|
|
291779
|
-
const selByBufferIdx = /* @__PURE__ */ new Map();
|
|
291780
|
-
for (const r2 of selRanges) selByBufferIdx.set(r2.bufferIdx, { startCol: r2.startCol, endCol: r2.endCol });
|
|
291781
291745
|
for (let row = 0; row < h; row++) {
|
|
291782
291746
|
const lineIdx = startIdx + row;
|
|
291783
291747
|
let line = lineIdx < totalLines ? this._contentLines[lineIdx] : "";
|
|
291784
291748
|
const screenRow = this.scrollRegionTop + row;
|
|
291785
291749
|
if (screenRow < headerSafeFloor) continue;
|
|
291786
291750
|
line = line.replace(/\x1B\[0m/g, `\x1B[0m${CONTENT_BG_SEQ}`);
|
|
291787
|
-
const sel = selByBufferIdx.get(lineIdx);
|
|
291788
|
-
if (sel) {
|
|
291789
|
-
line = TextSelection.applyHighlight(line, sel.startCol, sel.endCol);
|
|
291790
|
-
}
|
|
291791
291751
|
buf += `\x1B[${screenRow};1H${CONTENT_BG_SEQ}\x1B[2K${line}`;
|
|
291792
291752
|
}
|
|
291793
291753
|
const L = layout();
|
|
@@ -308695,6 +308655,7 @@ var init_banner = __esm({
|
|
|
308695
308655
|
if (!isTTY7 || !this.currentDesign) return 0;
|
|
308696
308656
|
this.renderCurrentFrame();
|
|
308697
308657
|
this._resizeHandler = () => {
|
|
308658
|
+
setTermSize(process.stdout.rows ?? 24, process.stdout.columns ?? 80);
|
|
308698
308659
|
this.width = termCols();
|
|
308699
308660
|
if (this.currentDesign) {
|
|
308700
308661
|
if (this.currentDesign.type === "default") {
|
package/package.json
CHANGED