open-agents-ai 0.187.48 → 0.187.49
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 +14 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -299061,16 +299061,21 @@ function hitTestHeaderButton(row, col, termWidth) {
|
|
|
299061
299061
|
if (row === 2) {
|
|
299062
299062
|
if (col <= 3)
|
|
299063
299063
|
return "header-prev";
|
|
299064
|
-
if (col >= termWidth -
|
|
299064
|
+
if (col >= termWidth - 3)
|
|
299065
299065
|
return "header-next";
|
|
299066
|
-
const
|
|
299067
|
-
|
|
299068
|
-
|
|
299069
|
-
|
|
299070
|
-
|
|
299071
|
-
|
|
299072
|
-
|
|
299073
|
-
|
|
299066
|
+
const btnDefs = [
|
|
299067
|
+
{ cmd: "/help", label: " help " },
|
|
299068
|
+
{ cmd: "/voice", label: " voice " },
|
|
299069
|
+
{ cmd: "/model", label: " model " },
|
|
299070
|
+
{ cmd: "/cohere", label: " cohere " }
|
|
299071
|
+
];
|
|
299072
|
+
let btnEnd = termWidth - 4;
|
|
299073
|
+
for (let i2 = btnDefs.length - 1; i2 >= 0; i2--) {
|
|
299074
|
+
const btn = btnDefs[i2];
|
|
299075
|
+
const btnStart = btnEnd - btn.label.length;
|
|
299076
|
+
if (col >= btnStart && col <= btnEnd)
|
|
299077
|
+
return btn.cmd;
|
|
299078
|
+
btnEnd = btnStart - 1;
|
|
299074
299079
|
}
|
|
299075
299080
|
}
|
|
299076
299081
|
return null;
|
package/package.json
CHANGED