open-agents-ai 0.187.123 → 0.187.125

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 +17 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -285375,7 +285375,7 @@ async function startNeovimMode(opts) {
285375
285375
  const ptyRows = Math.max(5, opts.contentRows);
285376
285376
  if (isTTY5) {
285377
285377
  const L = layout();
285378
- const bottomBound = Math.max(L.contentTop, L.contentBottom - 2);
285378
+ const bottomBound = L.contentBottom;
285379
285379
  process.stdout.write(
285380
285380
  `\x1B[${L.contentTop};${bottomBound}r\x1B[${L.contentTop};1H`
285381
285381
  );
@@ -285385,7 +285385,7 @@ async function startNeovimMode(opts) {
285385
285385
  'local lp = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"',
285386
285386
  'if not vim.loop.fs_stat(lp) then pcall(vim.fn.system, {"git", "clone", "--filter=blob:none", "--depth=1", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lp}) end',
285387
285387
  "vim.opt.rtp:prepend(lp)",
285388
- 'pcall(function() require("lazy").setup({{"nvim-neo-tree/neo-tree.nvim", branch="v3.x", lazy=false, dependencies={"nvim-lua/plenary.nvim","MunifTanjim/nui.nvim","nvim-tree/nvim-web-devicons"},config=function() require("neo-tree").setup({close_if_last_window=true,enable_git_status=true,filesystem={follow_current_file={enabled=true},use_libuv_file_watcher=true,hijack_netrw_behavior="open_default",filtered_items={hide_dotfiles=false,hide_gitignored=false}},window={position="left",width=30,mappings={"<leftmouse>"="open","<2-LeftMouse>"="open"}}}) end}},{install={colorscheme={}},checker={enabled=false}}) end)',
285388
+ 'pcall(function() require("lazy").setup({{"nvim-neo-tree/neo-tree.nvim", branch="v3.x", lazy=false, dependencies={"nvim-lua/plenary.nvim","MunifTanjim/nui.nvim","nvim-tree/nvim-web-devicons"},config=function() require("neo-tree").setup({close_if_last_window=true,enable_git_status=true,filesystem={follow_current_file={enabled=true},use_libuv_file_watcher=true,hijack_netrw_behavior="open_default",filtered_items={hide_dotfiles=false,hide_gitignored=false}},window={position="left",width=30,mappings={["<leftmouse>"]="open",["<2-LeftMouse>"]="open"}}}) end}},{install={colorscheme={}},checker={enabled=false}}) end)',
285389
285389
  // Open neo-tree sidebar after lazy.nvim finishes loading (needs short defer).
285390
285390
  // Uses pcall so a missing/broken neo-tree doesn't block the editor.
285391
285391
  'vim.defer_fn(function() pcall(vim.cmd, "Neotree show") end, 300)'
@@ -285435,7 +285435,7 @@ async function startNeovimMode(opts) {
285435
285435
  { label: " redo ", action: "redo" },
285436
285436
  { label: " save ", action: "save" }
285437
285437
  ];
285438
- let col = 2;
285438
+ let col = 4;
285439
285439
  for (const b of btns) {
285440
285440
  toolbarBtns.push({ label: b.label, startCol: col, endCol: col + b.label.length - 1, action: b.action });
285441
285441
  col += b.label.length + 1;
@@ -285447,7 +285447,6 @@ async function startNeovimMode(opts) {
285447
285447
  const hdrRow = L.headerContent;
285448
285448
  const fg2 = 252;
285449
285449
  let buf = "\x1B7";
285450
- buf += `\x1B[${hdrRow};1H\x1B[49m\x1B[2K`;
285451
285450
  for (const btn of toolbarBtns) {
285452
285451
  buf += `\x1B[${hdrRow};${btn.startCol}H`;
285453
285452
  buf += `\x1B]8;;oa-cmd:${btn.action}\x07`;
@@ -285784,9 +285783,21 @@ function doCleanup(state) {
285784
285783
  }
285785
285784
  _state = null;
285786
285785
  process.stdout.write(
285787
- `\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1004l\x1B[?2004l\x1B[1;${termRows()}r\x1B[H\x1B[J`
285788
- // clear screen
285786
+ `\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1004l\x1B[?2004l\x1B[1;${termRows()}r`
285787
+ // reset scroll region to full terminal
285789
285788
  );
285789
+ try {
285790
+ stdin.resume();
285791
+ stdin.read();
285792
+ setTimeout(() => {
285793
+ try {
285794
+ stdin.read();
285795
+ stdin.pause();
285796
+ } catch {
285797
+ }
285798
+ }, 100);
285799
+ } catch {
285800
+ }
285790
285801
  state.opts.onExit?.();
285791
285802
  }
285792
285803
  var isTTY5, PTY_MODE_ENABLE_RE, STDIN_MOUSE_FOCUS_RE, _state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.123",
3
+ "version": "0.187.125",
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",