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.
Files changed (2) hide show
  1. package/dist/index.js +14 -9
  2. 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 - 2)
299064
+ if (col >= termWidth - 3)
299065
299065
  return "header-next";
299066
- const btnZoneStart = Math.floor(termWidth * 0.5);
299067
- if (col >= btnZoneStart) {
299068
- const btnWidth = 8;
299069
- const btnOffset = col - btnZoneStart;
299070
- const btnIdx = Math.floor(btnOffset / btnWidth);
299071
- const cmds = ["/help", "/voice", "/model", "/cohere"];
299072
- if (btnIdx >= 0 && btnIdx < cmds.length)
299073
- return cmds[btnIdx];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.48",
3
+ "version": "0.187.49",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",