open-agents-ai 0.138.46 → 0.138.47

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 +11 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52271,26 +52271,14 @@ ${CONTENT_BG_SEQ}`);
52271
52271
  self.scrollContentDown(1);
52272
52272
  return;
52273
52273
  }
52274
- const dir = key.name;
52275
- if (dir === arrowBurstDir) {
52276
- arrowBurst++;
52277
- } else {
52278
- arrowBurst = 1;
52279
- arrowBurstDir = dir;
52280
- }
52281
- if (arrowBurstTimer)
52282
- clearTimeout(arrowBurstTimer);
52283
- arrowBurstTimer = setTimeout(() => {
52284
- arrowBurst = 0;
52285
- arrowBurstDir = "";
52286
- }, 80);
52287
- if (arrowBurst >= 3) {
52288
- if (dir === "up")
52274
+ if (self._contentScrollOffset > 0) {
52275
+ if (key.name === "up")
52289
52276
  self.scrollContentUp(1);
52290
52277
  else
52291
52278
  self.scrollContentDown(1);
52292
52279
  return;
52293
52280
  }
52281
+ return origTtyWrite(s, key);
52294
52282
  }
52295
52283
  if (key?.name === "pageup" || s === "\x1B[5~") {
52296
52284
  self.pageUpContent();
@@ -52386,9 +52374,9 @@ var init_mouse_filter = __esm({
52386
52374
  if (mouseMatch) {
52387
52375
  const btn = parseInt(mouseMatch[1]);
52388
52376
  const row = parseInt(mouseMatch[3]);
52389
- if (btn === 64 && this.onScroll)
52377
+ if ((btn === 64 || btn === 96) && this.onScroll)
52390
52378
  this.onScroll("up", 3, row);
52391
- else if (btn === 65 && this.onScroll)
52379
+ else if ((btn === 65 || btn === 97) && this.onScroll)
52392
52380
  this.onScroll("down", 3, row);
52393
52381
  i += mouseMatch[0].length;
52394
52382
  continue;
@@ -53693,7 +53681,7 @@ async function startInteractive(config, repoPath) {
53693
53681
  const statusBar = new StatusBar();
53694
53682
  statusBar.setVersion(version);
53695
53683
  if (process.stdout.isTTY) {
53696
- const scrollTop = carouselLines > 0 ? carouselLines + 1 : 1;
53684
+ const scrollTop = carouselLines > 0 ? carouselLines : 1;
53697
53685
  statusBar.activate(scrollTop);
53698
53686
  statusBar.setBannerRefresh(() => banner.renderCurrentFrame());
53699
53687
  const { onOverlayLeave: onOverlayLeave2 } = await Promise.resolve().then(() => (init_overlay_lock(), overlay_lock_exports));
@@ -54065,16 +54053,15 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54065
54053
  } catch {
54066
54054
  }
54067
54055
  const { MouseFilterStream: MouseFilterStream2 } = await Promise.resolve().then(() => (init_mouse_filter(), mouse_filter_exports));
54056
+ let origTtyWriteRef = null;
54068
54057
  const mouseFilter = new MouseFilterStream2((direction, lines, row) => {
54069
54058
  const rows = process.stdout.rows ?? 24;
54070
54059
  const fh = statusBar._currentFooterHeight ?? 3;
54071
54060
  const footerStart = rows - fh + 1;
54072
54061
  if (row >= footerStart) {
54073
- if (direction === "up") {
54074
- rl._ttyWrite?.("\x1B[A", { name: "up" });
54075
- } else {
54076
- rl._ttyWrite?.("\x1B[B", { name: "down" });
54077
- }
54062
+ const arrowKey = direction === "up" ? { name: "up" } : { name: "down" };
54063
+ const arrowSeq = direction === "up" ? "\x1B[A" : "\x1B[B";
54064
+ origTtyWriteRef?.(arrowSeq, arrowKey);
54078
54065
  } else {
54079
54066
  if (direction === "up")
54080
54067
  statusBar.scrollContentUp(lines);
@@ -54092,6 +54079,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54092
54079
  history: savedHistory,
54093
54080
  completer
54094
54081
  });
54082
+ origTtyWriteRef = rl._ttyWrite?.bind(rl) ?? null;
54095
54083
  let _escapeHandler = null;
54096
54084
  statusBar.hookReadlineScroll(rl, () => {
54097
54085
  _escapeHandler?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.46",
3
+ "version": "0.138.47",
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",