open-agents-ai 0.187.66 → 0.187.67

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 +14 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -280634,9 +280634,9 @@ ${CONTENT_BG_SEQ}`);
280634
280634
  const currentLine = rl.line ?? "";
280635
280635
  rl.line = "";
280636
280636
  rl.cursor = 0;
280637
- rl.emit("line", currentLine);
280638
280637
  self2.updateFooterHeight();
280639
280638
  self2.renderFooterAndPositionInput();
280639
+ setImmediate(() => rl.emit("line", currentLine));
280640
280640
  return;
280641
280641
  }
280642
280642
  if (self2.inputStateProvider && key?.name !== "backspace") {
@@ -280876,7 +280876,7 @@ function tuiSelect(opts) {
280876
280876
  const first2 = findSelectable(0, 1);
280877
280877
  cursor = first2 >= 0 ? first2 : 0;
280878
280878
  }
280879
- const reservedTopBottom = 1;
280879
+ const reservedTopBottom = 0;
280880
280880
  const hasCrumbs = opts.breadcrumbs && opts.breadcrumbs.length > 0;
280881
280881
  const selectChrome = (hasCrumbs ? 11 : 10) + 3;
280882
280882
  const contentArea = opts.availableRows ? opts.availableRows + reservedTopBottom : process.stdout.rows ?? 24;
@@ -294075,13 +294075,16 @@ async function handleUpdate(subcommand, ctx3) {
294075
294075
  function renderInstallFrame(version4, _frame, statusLine) {
294076
294076
  const cols = process.stdout.columns ?? 80;
294077
294077
  const rows = process.stdout.rows ?? 24;
294078
- const yellow = 178;
294078
+ const { tuiAccent: getAccent, tuiBgSeq: getBgSeq, tuiBoxFg: getBoxFg } = (init_theme(), __toCommonJS(theme_exports));
294079
+ const accentColor = getAccent() < 0 ? 252 : getAccent();
294080
+ const boxFg = getBoxFg();
294081
+ const bgSeq = getBgSeq();
294079
294082
  const contentTop = 4;
294080
294083
  const contentBottom = rows - 5;
294081
294084
  const contentHeight = Math.max(5, contentBottom - contentTop + 1);
294082
294085
  let buf = "\x1B[?2026h\x1B7\x1B[?25l";
294083
294086
  for (let r2 = contentTop; r2 <= contentBottom; r2++) {
294084
- buf += `\x1B[${r2};1H\x1B[49m\x1B[2K`;
294087
+ buf += `\x1B[${r2};1H${bgSeq}\x1B[2K`;
294085
294088
  }
294086
294089
  const centerRow = contentTop + Math.floor(contentHeight / 2);
294087
294090
  const centerCol = Math.floor(cols / 2);
@@ -294090,14 +294093,14 @@ async function handleUpdate(subcommand, ctx3) {
294090
294093
  const boxTop = centerRow - Math.floor(boxH / 2);
294091
294094
  const boxLeft = centerCol - Math.floor(boxW / 2);
294092
294095
  const innerW = boxW - 2;
294093
- buf += `\x1B[${boxTop};${boxLeft}H\x1B[38;5;${yellow}m\u256D${"\u2500".repeat(innerW)}\u256E`;
294096
+ buf += `\x1B[${boxTop};${boxLeft}H${boxFg}\u256D${"\u2500".repeat(innerW)}\u256E`;
294094
294097
  for (let r2 = 1; r2 < boxH - 1; r2++) {
294095
- buf += `\x1B[${boxTop + r2};${boxLeft}H\x1B[38;5;${yellow}m\u2502${" ".repeat(innerW)}\u2502`;
294098
+ buf += `\x1B[${boxTop + r2};${boxLeft}H${boxFg}\u2502${bgSeq}${" ".repeat(innerW)}${boxFg}\u2502`;
294096
294099
  }
294097
- buf += `\x1B[${boxTop + boxH - 1};${boxLeft}H\x1B[38;5;${yellow}m\u2570${"\u2500".repeat(innerW)}\u256F`;
294100
+ buf += `\x1B[${boxTop + boxH - 1};${boxLeft}H${boxFg}\u2570${"\u2500".repeat(innerW)}\u256F`;
294098
294101
  const isDone = statusLine === "__DONE__";
294099
294102
  const label = isDone ? "INSTALLED" : "INSTALLING";
294100
- const labelColor = isDone ? 82 : yellow;
294103
+ const labelColor = isDone ? 82 : accentColor;
294101
294104
  const labelCol = centerCol - Math.floor(label.length / 2);
294102
294105
  buf += `\x1B[${boxTop + 1};${labelCol}H\x1B[1;38;5;${labelColor}m${label}\x1B[0m`;
294103
294106
  const progress = isDone ? 1 : Math.min(0.95, _installProgress / Math.max(1, _installTotal));
@@ -294116,7 +294119,7 @@ async function handleUpdate(subcommand, ctx3) {
294116
294119
  }
294117
294120
  }
294118
294121
  const barCol = boxLeft + 3;
294119
- buf += `\x1B[${boxTop + 2};${barCol}H\x1B[38;5;${yellow}m${bar}\x1B[0m`;
294122
+ buf += `\x1B[${boxTop + 2};${barCol}H\x1B[38;5;${accentColor}m${bar}\x1B[0m`;
294120
294123
  const statusText = isDone ? `v${version4}` : statusLine || `v${version4}`;
294121
294124
  const statusTrunc = statusText.slice(0, innerW - 2);
294122
294125
  const sCol = centerCol - Math.floor(statusTrunc.length / 2);
@@ -294148,13 +294151,13 @@ async function handleUpdate(subcommand, ctx3) {
294148
294151
  /** Clear the overlay content area entirely — return to normal scroll area */
294149
294152
  dismiss() {
294150
294153
  clearInterval(timer);
294151
- const cols = process.stdout.columns ?? 80;
294152
294154
  const rows = process.stdout.rows ?? 24;
294153
294155
  const contentTop = 4;
294154
294156
  const contentBottom = rows - 5;
294157
+ const { tuiBgSeq: getDismissBg } = (init_theme(), __toCommonJS(theme_exports));
294155
294158
  let buf = "\x1B7";
294156
294159
  for (let r2 = contentTop; r2 <= contentBottom; r2++) {
294157
- buf += `\x1B[${r2};1H\x1B[49m\x1B[2K`;
294160
+ buf += `\x1B[${r2};1H${getDismissBg()}\x1B[2K`;
294158
294161
  }
294159
294162
  buf += "\x1B8";
294160
294163
  process.stdout.write(buf);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.66",
3
+ "version": "0.187.67",
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",