open-agents-ai 0.187.88 → 0.187.89

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 +21 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -279500,22 +279500,27 @@ var init_status_bar = __esm({
279500
279500
  return this._cohereActive;
279501
279501
  }
279502
279502
  // ── Mouse tracking management ──────────────────────────────────────
279503
- // Uses ?1000h (normal tracking) instead of ?1002h (button-event tracking)
279504
- // so the terminal handles text selection natively. ?1000h reports:
279505
- // - Button press + release (header buttons, click-to-select)
279506
- // - Scroll wheel events (content scrolling)
279507
- // But does NOT capture drag/motion — the terminal handles that as
279508
- // native text selection. Users can Ctrl+Shift+C to copy normally.
279509
- /** Enable mouse tracking (clicks + scroll only — native selection works) */
279503
+ // TUI uses ?1000h (normal tracking) for native text selection.
279504
+ // Neovim mode uses ?1002h (cell-motion) for mouse=a drag support.
279505
+ // All mode transitions check neovim focus to avoid conflicts.
279506
+ /** Callback to check if neovim has focus (set by interactive.ts to avoid circular import) */
279507
+ _isNeovimFocused = null;
279508
+ /** Register neovim focus checker called from interactive.ts after neovim-mode imports */
279509
+ setNeovimFocusChecker(checker) {
279510
+ this._isNeovimFocused = checker;
279511
+ }
279512
+ /** Enable mouse tracking — respects neovim focus state */
279510
279513
  enableMouseTracking() {
279511
279514
  if (this._mouseTrackingEnabled || isOverlayActive())
279512
279515
  return;
279516
+ if (this._isNeovimFocused?.())
279517
+ return;
279513
279518
  this._mouseTrackingEnabled = true;
279514
279519
  if (process.stdout.isTTY) {
279515
279520
  this._trueStdoutWrite.call(process.stdout, "\x1B[?1000h\x1B[?1006h");
279516
279521
  }
279517
279522
  }
279518
- /** Disable mouse tracking entirely (only for overlay transitions + exit). */
279523
+ /** Disable mouse tracking entirely (overlay transitions + exit). */
279519
279524
  disableMouseTracking() {
279520
279525
  if (!this._mouseTrackingEnabled || isOverlayActive())
279521
279526
  return;
@@ -288845,6 +288850,9 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
288845
288850
  if (process.stdout.isTTY) {
288846
288851
  process.stdout.write("\x1B[?1000h\x1B[?1006h");
288847
288852
  }
288853
+ if (process.stdout.isTTY) {
288854
+ process.stdout.write("\x1B[?1002l\x1B[?1003l");
288855
+ }
288848
288856
  } catch (err) {
288849
288857
  renderWarning(` Could not install system build deps: ${err instanceof Error ? err.message : String(err)}`);
288850
288858
  }
@@ -295353,7 +295361,7 @@ async function showExposeDashboard(gateway, rl, ctx3) {
295353
295361
  }
295354
295362
  };
295355
295363
  if (process.stdout.isTTY) {
295356
- process.stdout.write("\x1B[?1002l\x1B[?1006l");
295364
+ process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1006l");
295357
295365
  }
295358
295366
  process.stdin.on("data", onData);
295359
295367
  const cleanup = () => {
@@ -309736,6 +309744,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
309736
309744
  }
309737
309745
  });
309738
309746
  origTtyWriteRef = null;
309747
+ statusBar.setNeovimFocusChecker(() => isNeovimFocused());
309739
309748
  let _escapeHandler = null;
309740
309749
  statusBar.hookDirectInput(rl, () => {
309741
309750
  _escapeHandler?.();
@@ -310255,7 +310264,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
310255
310264
  }
310256
310265
  sudoPromptPending = true;
310257
310266
  if (process.stdout.isTTY) {
310258
- process.stdout.write("\x1B[?1002l\x1B[?1006l");
310267
+ process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1006l");
310259
310268
  }
310260
310269
  writeContent(() => {
310261
310270
  process.stdout.write(`
@@ -311867,7 +311876,8 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
311867
311876
  sessionSudoPassword = input;
311868
311877
  activeTask.runner.setSudoPassword(input);
311869
311878
  if (process.stdout.isTTY) {
311870
- process.stdout.write("\x1B[?1000h\x1B[?1006h");
311879
+ const mouseMode = isNeovimFocused() ? "\x1B[?1002h\x1B[?1006h" : "\x1B[?1000h\x1B[?1006h";
311880
+ process.stdout.write(mouseMode);
311871
311881
  }
311872
311882
  statusBar.setInputStateProvider(() => ({
311873
311883
  line: rl.line ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.88",
3
+ "version": "0.187.89",
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",