open-agents-ai 0.187.82 → 0.187.84
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 +43 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278570,6 +278570,13 @@ var init_status_bar = __esm({
|
|
|
278570
278570
|
syncEnd() {
|
|
278571
278571
|
this.termWrite("\x1B[?2026l");
|
|
278572
278572
|
}
|
|
278573
|
+
/** Force a complete footer redraw (public wrapper for renderFooterAndPositionInput) */
|
|
278574
|
+
redrawFooter() {
|
|
278575
|
+
if (!this.active)
|
|
278576
|
+
return;
|
|
278577
|
+
this.updateFooterHeight();
|
|
278578
|
+
this.renderFooterAndPositionInput();
|
|
278579
|
+
}
|
|
278573
278580
|
/** Callback to get available slash commands for suggestion matching */
|
|
278574
278581
|
_commandListProvider = null;
|
|
278575
278582
|
/** Callback to apply a selected suggestion to the input line */
|
|
@@ -281021,6 +281028,7 @@ function tuiSelect(opts) {
|
|
|
281021
281028
|
enterOverlay();
|
|
281022
281029
|
overlayWrite(`\x1B[?1049h${tuiBgSeq()}\x1B[2J\x1B[H\x1B[?25l\x1B[?1003h\x1B[?1006h`);
|
|
281023
281030
|
let listRowOffset = 0;
|
|
281031
|
+
let backBtnHovered = false;
|
|
281024
281032
|
function clampScroll(displayList) {
|
|
281025
281033
|
const cursorPos = displayList.indexOf(cursor);
|
|
281026
281034
|
if (cursorPos < 0)
|
|
@@ -281041,7 +281049,10 @@ function tuiSelect(opts) {
|
|
|
281041
281049
|
}
|
|
281042
281050
|
overlayWrite(`${tuiBgSeq()}\x1B[H\x1B[2J`);
|
|
281043
281051
|
const lines = [];
|
|
281044
|
-
|
|
281052
|
+
const backLabel = hasBreadcrumbs ? "\u2190 back" : "\u2190 close";
|
|
281053
|
+
const backHighlighted = backBtnHovered;
|
|
281054
|
+
const backStyle = backHighlighted ? `\x1B[7m\x1B[38;5;245m ${backLabel} \x1B[0m${tuiBgSeq()}` : `${selectColors.dim(` ${backLabel} `)}`;
|
|
281055
|
+
lines.push(backStyle);
|
|
281045
281056
|
if (hasBreadcrumbs) {
|
|
281046
281057
|
const trail = opts.breadcrumbs.map((b) => selectColors.dim(b)).join(selectColors.dim(" \u203A "));
|
|
281047
281058
|
lines.push(`
|
|
@@ -281151,6 +281162,24 @@ ${tuiBgSeq()}`);
|
|
|
281151
281162
|
const mCol = parseInt(mouseM[2]);
|
|
281152
281163
|
const mRow = parseInt(mouseM[3]);
|
|
281153
281164
|
const suffix = mouseM[4];
|
|
281165
|
+
if (btn === 0 && suffix === "M" && mRow === 1 && mCol <= 9) {
|
|
281166
|
+
if (filter2) {
|
|
281167
|
+
filter2 = "";
|
|
281168
|
+
updateFilter();
|
|
281169
|
+
const valid = findSelectable(cursor, 1);
|
|
281170
|
+
if (valid >= 0)
|
|
281171
|
+
cursor = valid;
|
|
281172
|
+
scrollOffset = 0;
|
|
281173
|
+
render();
|
|
281174
|
+
} else if (hasBreadcrumbs) {
|
|
281175
|
+
cleanup();
|
|
281176
|
+
resolve39({ confirmed: false, key: "__back__", index: cursor });
|
|
281177
|
+
} else {
|
|
281178
|
+
cleanup();
|
|
281179
|
+
resolve39({ confirmed: false, key: null, index: cursor });
|
|
281180
|
+
}
|
|
281181
|
+
return;
|
|
281182
|
+
}
|
|
281154
281183
|
if (btn === 0 && suffix === "M") {
|
|
281155
281184
|
const listIdx = mRow - listRowOffset - 1;
|
|
281156
281185
|
if (listIdx >= 0 && listIdx < maxVisible) {
|
|
@@ -281189,6 +281218,17 @@ ${tuiBgSeq()}`);
|
|
|
281189
281218
|
}
|
|
281190
281219
|
}
|
|
281191
281220
|
}
|
|
281221
|
+
if ((btn === 35 || btn === 32 || btn === 67) && suffix === "M" && mRow === 1 && mCol <= 9) {
|
|
281222
|
+
if (!backBtnHovered) {
|
|
281223
|
+
backBtnHovered = true;
|
|
281224
|
+
render();
|
|
281225
|
+
}
|
|
281226
|
+
continue;
|
|
281227
|
+
}
|
|
281228
|
+
if ((btn === 35 || btn === 32 || btn === 67) && suffix === "M" && backBtnHovered && (mRow !== 1 || mCol > 9)) {
|
|
281229
|
+
backBtnHovered = false;
|
|
281230
|
+
render();
|
|
281231
|
+
}
|
|
281192
281232
|
if ((btn === 35 || btn === 32 || btn === 67) && suffix === "M") {
|
|
281193
281233
|
const listIdx = mRow - listRowOffset - 1;
|
|
281194
281234
|
if (listIdx >= 0 && listIdx < maxVisible) {
|
|
@@ -311639,10 +311679,11 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
|
|
|
311639
311679
|
if (statusBar.isActive) {
|
|
311640
311680
|
statusBar.lockFooter();
|
|
311641
311681
|
statusBar.syncBegin();
|
|
311682
|
+
statusBar.redrawFooter();
|
|
311683
|
+
statusBar.syncEnd();
|
|
311642
311684
|
}
|
|
311643
311685
|
processLine(input);
|
|
311644
311686
|
if (statusBar.isActive) {
|
|
311645
|
-
statusBar.syncEnd();
|
|
311646
311687
|
setTimeout(() => statusBar.unlockFooter(), 0);
|
|
311647
311688
|
}
|
|
311648
311689
|
return;
|
package/package.json
CHANGED