open-agents-ai 0.184.90 → 0.184.92

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 +22 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60966,7 +60966,7 @@ var init_status_bar = __esm({
60966
60966
  // native text selection. We disable it when idle (allowing selection) and
60967
60967
  // re-enable when scroll/streaming starts (allowing mouse scroll).
60968
60968
  // Users can always hold Shift for selection as a universal fallback.
60969
- /** Enable mouse tracking (for scroll during streaming/scrollback) */
60969
+ /** Enable mouse tracking (click + scroll + motion during drag) */
60970
60970
  enableMouseTracking() {
60971
60971
  if (this._mouseTrackingEnabled)
60972
60972
  return;
@@ -60975,7 +60975,8 @@ var init_status_bar = __esm({
60975
60975
  this._trueStdoutWrite.call(process.stdout, "\x1B[?1002h\x1B[?1006h");
60976
60976
  }
60977
60977
  }
60978
- /** Disable mouse tracking (allows native terminal text selection) */
60978
+ /** Disable mouse tracking entirely (only for overlay transitions + exit).
60979
+ * NOT called on idle — mouse stays active for clicks, scroll, buttons. */
60979
60980
  disableMouseTracking() {
60980
60981
  if (!this._mouseTrackingEnabled)
60981
60982
  return;
@@ -60994,12 +60995,6 @@ var init_status_bar = __esm({
60994
60995
  * This is the v0.138.67 behavior that worked: mouse on during activity, off during idle.
60995
60996
  */
60996
60997
  scheduleMouseIdle() {
60997
- if (this._mouseIdleTimer)
60998
- clearTimeout(this._mouseIdleTimer);
60999
- this._mouseIdleTimer = setTimeout(() => {
61000
- this._mouseIdleTimer = null;
61001
- this.disableMouseTracking();
61002
- }, _StatusBar.MOUSE_IDLE_MS);
61003
60998
  }
61004
60999
  /** Cancel mouse idle timer (user is actively scrolling or streaming started) */
61005
61000
  cancelMouseIdle() {
@@ -61248,12 +61243,9 @@ var init_status_bar = __esm({
61248
61243
  return;
61249
61244
  const w = process.stdout.columns ?? 80;
61250
61245
  const overlay = renderHeaderButtons(w);
61251
- if (!overlay)
61252
- return;
61253
- const writer = this._origWrite ?? process.stdout.write.bind(process.stdout);
61254
- writer(overlay);
61255
- if (this.writeDepth === 0) {
61256
- this.renderFooterAndPositionInput();
61246
+ if (overlay) {
61247
+ const writer = this._origWrite ?? process.stdout.write.bind(process.stdout);
61248
+ writer(overlay);
61257
61249
  }
61258
61250
  }
61259
61251
  /** Set a callback to re-render the banner after resize/redraw */
@@ -62045,6 +62037,11 @@ ${CONTENT_BG_SEQ}`);
62045
62037
  }
62046
62038
  buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}`;
62047
62039
  buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}`;
62040
+ if (this._focusedZone === "footer") {
62041
+ buf += `\x1B[${pos.inputStartRow};1H\x1B[38;5;${TEXT_PRIMARY}m\x1B[48;5;${PANEL_BG}m\u258E\x1B[0m`;
62042
+ } else if (this._focusedZone === "content") {
62043
+ buf += `\x1B[${this.scrollRegionTop};1H\x1B[38;5;${TEXT_PRIMARY}m\x1B[48;5;${CONTENT_BG}m\u258E\x1B[0m`;
62044
+ }
62048
62045
  buf += `\x1B[?7h\x1B[${cursorTermRow};${inputWrap.cursorCol}H\x1B[?25h`;
62049
62046
  this.termWrite(buf);
62050
62047
  }
@@ -62212,7 +62209,14 @@ ${CONTENT_BG_SEQ}`);
62212
62209
  onCtrlO();
62213
62210
  return;
62214
62211
  }
62215
- if (s === "" || key?.ctrl && key?.name === "\\" || s === "\x1B[9;5u") {
62212
+ if (key?.name === "tab" && self.inputStateProvider) {
62213
+ const { line = "" } = self.inputStateProvider() ?? {};
62214
+ if (line.length === 0) {
62215
+ self.cycleFocus();
62216
+ return;
62217
+ }
62218
+ }
62219
+ if (s === "") {
62216
62220
  self.cycleFocus();
62217
62221
  return;
62218
62222
  }
@@ -65960,9 +65964,6 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
65960
65964
  statusBar.handlePointerEvent(type, col, row);
65961
65965
  });
65962
65966
  process.stdin.pipe(mouseFilter);
65963
- if (process.stdout.isTTY) {
65964
- process.stdout.write("\x1B[?1002h\x1B[?1006h");
65965
- }
65966
65967
  process.stdin.on("error", (err) => {
65967
65968
  if (err.code === "EIO" || err.code === "ENOTTY")
65968
65969
  return;
@@ -66030,6 +66031,9 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
66030
66031
  if (process.stdin.isTTY && typeof process.stdin.setRawMode === "function") {
66031
66032
  process.stdin.setRawMode(true);
66032
66033
  }
66034
+ if (process.stdout.isTTY) {
66035
+ process.stdout.write("\x1B[?1002h\x1B[?1006h");
66036
+ }
66033
66037
  function persistHistoryLine(line) {
66034
66038
  if (!line.trim())
66035
66039
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.90",
3
+ "version": "0.184.92",
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",