open-agents-ai 0.103.93 → 0.103.94

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 +4 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33579,7 +33579,7 @@ function tuiSelect(opts) {
33579
33579
  cursor = first >= 0 ? first : 0;
33580
33580
  }
33581
33581
  const selectChrome = 3;
33582
- const contentArea = opts.availableRows ?? (process.stdout.rows ?? 24);
33582
+ const contentArea = process.stdout.rows ?? 24;
33583
33583
  const maxVisible = opts.maxVisible ?? Math.max(3, contentArea - selectChrome);
33584
33584
  let scrollOffset = 0;
33585
33585
  let lastRenderedLines = 0;
@@ -33601,7 +33601,7 @@ function tuiSelect(opts) {
33601
33601
  stdin.setRawMode(true);
33602
33602
  }
33603
33603
  stdin.resume();
33604
- process.stdout.write("\x1B[?25l");
33604
+ process.stdout.write("\x1B[?1049h\x1B[2J\x1B[H\x1B[?25l");
33605
33605
  function clampScroll(displayList) {
33606
33606
  const cursorPos = displayList.indexOf(cursor);
33607
33607
  if (cursorPos < 0)
@@ -33615,13 +33615,7 @@ function tuiSelect(opts) {
33615
33615
  scrollOffset = Math.max(0, Math.min(maxOffset, scrollOffset));
33616
33616
  }
33617
33617
  function render() {
33618
- if (lastRenderedLines > 0) {
33619
- process.stdout.write(`\x1B[${lastRenderedLines}A`);
33620
- for (let i = 0; i < lastRenderedLines; i++) {
33621
- process.stdout.write("\x1B[2K\n");
33622
- }
33623
- process.stdout.write(`\x1B[${lastRenderedLines}A`);
33624
- }
33618
+ process.stdout.write("\x1B[H\x1B[2J");
33625
33619
  const lines = [];
33626
33620
  if (title) {
33627
33621
  lines.push(`
@@ -33701,14 +33695,7 @@ function tuiSelect(opts) {
33701
33695
  function cleanup() {
33702
33696
  stdin.removeListener("data", onData);
33703
33697
  process.stdout.removeListener("resize", onResize);
33704
- process.stdout.write("\x1B[?25h");
33705
- if (lastRenderedLines > 0) {
33706
- process.stdout.write(`\x1B[${lastRenderedLines}A`);
33707
- for (let i = 0; i < lastRenderedLines; i++) {
33708
- process.stdout.write("\x1B[2K\n");
33709
- }
33710
- process.stdout.write(`\x1B[${lastRenderedLines}A`);
33711
- }
33698
+ process.stdout.write("\x1B[?1049l\x1B[?25h");
33712
33699
  if (typeof stdin.setRawMode === "function") {
33713
33700
  stdin.setRawMode(hadRawMode ?? false);
33714
33701
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.103.93",
3
+ "version": "0.103.94",
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",