open-agents-ai 0.187.69 → 0.187.71

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 +29 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -278091,10 +278091,18 @@ var status_bar_exports = {};
278091
278091
  __export(status_bar_exports, {
278092
278092
  HumanSpeedTracker: () => HumanSpeedTracker,
278093
278093
  StatusBar: () => StatusBar,
278094
+ lockFooterRedraws: () => lockFooterRedraws,
278094
278095
  refreshThemeVars: () => refreshThemeVars,
278095
- setTerminalTitle: () => setTerminalTitle
278096
+ setTerminalTitle: () => setTerminalTitle,
278097
+ unlockFooterRedraws: () => unlockFooterRedraws
278096
278098
  });
278097
278099
  import { readFileSync as readFileSync32 } from "node:fs";
278100
+ function lockFooterRedraws() {
278101
+ _globalFooterLock = true;
278102
+ }
278103
+ function unlockFooterRedraws() {
278104
+ _globalFooterLock = false;
278105
+ }
278098
278106
  function refreshThemeVars() {
278099
278107
  PANEL_BG_SEQ = tuiBgSeq();
278100
278108
  CONTENT_BG_SEQ = tuiBgSeq();
@@ -278109,7 +278117,7 @@ function setTerminalTitle(task, version4) {
278109
278117
  const title = task ? `${task.slice(0, 60)} \xB7 ${ver}` : ver;
278110
278118
  process.stdout.write(`\x1B]2;${title}\x07`);
278111
278119
  }
278112
- var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, PANEL_BG_SEQ, CONTENT_BG_SEQ, BOX_FG, TEXT_PRIMARY, TEXT_DIM, BOX_TL, BOX_TR, BOX_BL, BOX_BR, BOX_H, BOX_V, RESET, _isWindows, StatusBar;
278120
+ var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, PANEL_BG_SEQ, CONTENT_BG_SEQ, BOX_FG, TEXT_PRIMARY, TEXT_DIM, BOX_TL, BOX_TR, BOX_BL, BOX_BR, BOX_H, BOX_V, _globalFooterLock, RESET, _isWindows, StatusBar;
278113
278121
  var init_status_bar = __esm({
278114
278122
  "packages/cli/dist/tui/status-bar.js"() {
278115
278123
  "use strict";
@@ -278287,6 +278295,7 @@ var init_status_bar = __esm({
278287
278295
  BOX_BR = "\u256F";
278288
278296
  BOX_H = "\u2500";
278289
278297
  BOX_V = "\u2502";
278298
+ _globalFooterLock = false;
278290
278299
  RESET = "\x1B[0m";
278291
278300
  _isWindows = process.platform === "win32";
278292
278301
  StatusBar = class _StatusBar {
@@ -278381,8 +278390,16 @@ var init_status_bar = __esm({
278381
278390
  _suggestDelayTimer = null;
278382
278391
  /** Whether suggestions were manually dismissed via Esc */
278383
278392
  _suggestDismissed = false;
278384
- /** Suppress hookStdin redraws during Enter processing to prevent cursor shift */
278393
+ /** Suppress hookStdin redraws during Enter processing or overlay operations */
278385
278394
  _suppressStdinRedraw = false;
278395
+ /** Lock footer redraws entirely (during install overlay, loading screens, etc.) */
278396
+ lockFooter() {
278397
+ this._suppressStdinRedraw = true;
278398
+ }
278399
+ /** Unlock footer redraws */
278400
+ unlockFooter() {
278401
+ this._suppressStdinRedraw = false;
278402
+ }
278386
278403
  /** Callback to get available slash commands for suggestion matching */
278387
278404
  _commandListProvider = null;
278388
278405
  /** Callback to apply a selected suggestion to the input line */
@@ -279654,6 +279671,8 @@ var init_status_bar = __esm({
279654
279671
  if (!this.active)
279655
279672
  return;
279656
279673
  this.updateFooterHeight();
279674
+ if (this._currentFooterHeight < 4)
279675
+ this._currentFooterHeight = 4;
279657
279676
  this.writeDepth++;
279658
279677
  this.cancelMouseIdle();
279659
279678
  this.enableMouseTracking();
@@ -279836,7 +279855,8 @@ ${CONTENT_BG_SEQ}`);
279836
279855
  return;
279837
279856
  const rows = process.stdout.rows ?? 24;
279838
279857
  const pos = this.rowPositions(rows);
279839
- this.termWrite(`\x1B[${pos.inputStartRow};1H\x1B[2K\x1B[?25h`);
279858
+ const inputTextRow = pos.inputStartRow + 1;
279859
+ this.termWrite(`\x1B[${inputTextRow};${this.promptWidth + 1}H\x1B[?25h`);
279840
279860
  }
279841
279861
  /** Strip ANSI escape codes to measure visible character width */
279842
279862
  static visWidth(s2) {
@@ -280717,10 +280737,10 @@ ${CONTENT_BG_SEQ}`);
280717
280737
  process.stdin.on("data", () => {
280718
280738
  if (!this.active)
280719
280739
  return;
280720
- if (this._suppressStdinRedraw)
280740
+ if (this._suppressStdinRedraw || _globalFooterLock)
280721
280741
  return;
280722
280742
  setImmediate(() => {
280723
- if (this._suppressStdinRedraw)
280743
+ if (this._suppressStdinRedraw || _globalFooterLock)
280724
280744
  return;
280725
280745
  if (this.writeDepth > 0) {
280726
280746
  this.renderInputRowDuringStream();
@@ -294147,6 +294167,7 @@ async function handleUpdate(subcommand, ctx3) {
294147
294167
  process.stdout.write(buf);
294148
294168
  }
294149
294169
  function startInstallOverlay(version4) {
294170
+ lockFooterRedraws();
294150
294171
  let frame = 0;
294151
294172
  let status = "";
294152
294173
  renderInstallFrame(version4, frame, status);
@@ -294160,6 +294181,7 @@ async function handleUpdate(subcommand, ctx3) {
294160
294181
  },
294161
294182
  stop(finalText) {
294162
294183
  clearInterval(timer);
294184
+ unlockFooterRedraws();
294163
294185
  status = "__DONE__";
294164
294186
  renderInstallFrame(version4, frame, status);
294165
294187
  setTimeout(() => {
@@ -294169,6 +294191,7 @@ async function handleUpdate(subcommand, ctx3) {
294169
294191
  },
294170
294192
  /** Clear the overlay content area entirely — return to normal scroll area */
294171
294193
  dismiss() {
294194
+ unlockFooterRedraws();
294172
294195
  clearInterval(timer);
294173
294196
  const rows = process.stdout.rows ?? 24;
294174
294197
  const contentTop = 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.69",
3
+ "version": "0.187.71",
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",