open-agents-ai 0.187.68 → 0.187.70

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 +33 -5
  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,6 +278390,16 @@ var init_status_bar = __esm({
278381
278390
  _suggestDelayTimer = null;
278382
278391
  /** Whether suggestions were manually dismissed via Esc */
278383
278392
  _suggestDismissed = false;
278393
+ /** Suppress hookStdin redraws during Enter processing or overlay operations */
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
+ }
278384
278403
  /** Callback to get available slash commands for suggestion matching */
278385
278404
  _commandListProvider = null;
278386
278405
  /** Callback to apply a selected suggestion to the input line */
@@ -280644,9 +280663,13 @@ ${CONTENT_BG_SEQ}`);
280644
280663
  const currentLine = rl.line ?? "";
280645
280664
  rl.line = "";
280646
280665
  rl.cursor = 0;
280666
+ self2._suppressStdinRedraw = true;
280647
280667
  self2.updateFooterHeight();
280648
280668
  self2.renderFooterAndPositionInput();
280649
- setImmediate(() => rl.emit("line", currentLine));
280669
+ rl.emit("line", currentLine);
280670
+ setImmediate(() => {
280671
+ self2._suppressStdinRedraw = false;
280672
+ });
280650
280673
  return;
280651
280674
  }
280652
280675
  if (self2.inputStateProvider && key?.name !== "backspace") {
@@ -280711,7 +280734,11 @@ ${CONTENT_BG_SEQ}`);
280711
280734
  process.stdin.on("data", () => {
280712
280735
  if (!this.active)
280713
280736
  return;
280737
+ if (this._suppressStdinRedraw || _globalFooterLock)
280738
+ return;
280714
280739
  setImmediate(() => {
280740
+ if (this._suppressStdinRedraw || _globalFooterLock)
280741
+ return;
280715
280742
  if (this.writeDepth > 0) {
280716
280743
  this.renderInputRowDuringStream();
280717
280744
  } else {
@@ -281003,7 +281030,6 @@ function tuiSelect(opts) {
281003
281030
  if (remaining > 0) {
281004
281031
  lines.push(` ${selectColors.dim(` \u25BC ${remaining} more`)}`);
281005
281032
  }
281006
- lines.push("");
281007
281033
  if (deleteConfirmIdx >= 0) {
281008
281034
  lines.push(` ${selectColors.dim("\u2190/\u2192 select Enter confirm Esc cancel")}`);
281009
281035
  } else {
@@ -281013,7 +281039,6 @@ function tuiSelect(opts) {
281013
281039
  const escLabel = filter2 ? "clear filter" : hasBreadcrumbs ? "\u2190 back" : "cancel";
281014
281040
  lines.push(` ${selectColors.dim("\u2191/\u2193 navigate Enter/Click select" + actionHint + deleteHint + customHint + " Esc " + escLabel + " Type to filter")}`);
281015
281041
  }
281016
- lines.push("");
281017
281042
  let output = lines.join("\n").replace(/\x1B\[0m/g, `\x1B[0m${tuiBgSeq()}`).replace(/\n/g, `\x1B[K
281018
281043
  ${tuiBgSeq()}`);
281019
281044
  overlayWrite(tuiBgSeq() + output + "\x1B[K");
@@ -294139,6 +294164,7 @@ async function handleUpdate(subcommand, ctx3) {
294139
294164
  process.stdout.write(buf);
294140
294165
  }
294141
294166
  function startInstallOverlay(version4) {
294167
+ lockFooterRedraws();
294142
294168
  let frame = 0;
294143
294169
  let status = "";
294144
294170
  renderInstallFrame(version4, frame, status);
@@ -294152,6 +294178,7 @@ async function handleUpdate(subcommand, ctx3) {
294152
294178
  },
294153
294179
  stop(finalText) {
294154
294180
  clearInterval(timer);
294181
+ unlockFooterRedraws();
294155
294182
  status = "__DONE__";
294156
294183
  renderInstallFrame(version4, frame, status);
294157
294184
  setTimeout(() => {
@@ -294161,6 +294188,7 @@ async function handleUpdate(subcommand, ctx3) {
294161
294188
  },
294162
294189
  /** Clear the overlay content area entirely — return to normal scroll area */
294163
294190
  dismiss() {
294191
+ unlockFooterRedraws();
294164
294192
  clearInterval(timer);
294165
294193
  const rows = process.stdout.rows ?? 24;
294166
294194
  const contentTop = 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.68",
3
+ "version": "0.187.70",
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",