open-agents-ai 0.187.83 → 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 +34 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -281028,6 +281028,7 @@ function tuiSelect(opts) {
|
|
|
281028
281028
|
enterOverlay();
|
|
281029
281029
|
overlayWrite(`\x1B[?1049h${tuiBgSeq()}\x1B[2J\x1B[H\x1B[?25l\x1B[?1003h\x1B[?1006h`);
|
|
281030
281030
|
let listRowOffset = 0;
|
|
281031
|
+
let backBtnHovered = false;
|
|
281031
281032
|
function clampScroll(displayList) {
|
|
281032
281033
|
const cursorPos = displayList.indexOf(cursor);
|
|
281033
281034
|
if (cursorPos < 0)
|
|
@@ -281048,7 +281049,10 @@ function tuiSelect(opts) {
|
|
|
281048
281049
|
}
|
|
281049
281050
|
overlayWrite(`${tuiBgSeq()}\x1B[H\x1B[2J`);
|
|
281050
281051
|
const lines = [];
|
|
281051
|
-
|
|
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);
|
|
281052
281056
|
if (hasBreadcrumbs) {
|
|
281053
281057
|
const trail = opts.breadcrumbs.map((b) => selectColors.dim(b)).join(selectColors.dim(" \u203A "));
|
|
281054
281058
|
lines.push(`
|
|
@@ -281158,6 +281162,24 @@ ${tuiBgSeq()}`);
|
|
|
281158
281162
|
const mCol = parseInt(mouseM[2]);
|
|
281159
281163
|
const mRow = parseInt(mouseM[3]);
|
|
281160
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
|
+
}
|
|
281161
281183
|
if (btn === 0 && suffix === "M") {
|
|
281162
281184
|
const listIdx = mRow - listRowOffset - 1;
|
|
281163
281185
|
if (listIdx >= 0 && listIdx < maxVisible) {
|
|
@@ -281196,6 +281218,17 @@ ${tuiBgSeq()}`);
|
|
|
281196
281218
|
}
|
|
281197
281219
|
}
|
|
281198
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
|
+
}
|
|
281199
281232
|
if ((btn === 35 || btn === 32 || btn === 67) && suffix === "M") {
|
|
281200
281233
|
const listIdx = mRow - listRowOffset - 1;
|
|
281201
281234
|
if (listIdx >= 0 && listIdx < maxVisible) {
|
package/package.json
CHANGED