open-agents-ai 0.104.8 → 0.104.10
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.
- package/dist/index.js +15 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34579,12 +34579,12 @@ async function startNeovimMode(opts) {
|
|
|
34579
34579
|
const ptyCols = opts.cols;
|
|
34580
34580
|
const ptyRows = Math.max(5, opts.contentRows);
|
|
34581
34581
|
const initVimCmd = "set mouse= autoread updatetime=300 signcolumn=no noswapfile";
|
|
34582
|
-
const luaBootstrap = [
|
|
34583
|
-
'
|
|
34582
|
+
const luaBootstrap = "lua " + [
|
|
34583
|
+
'local lp = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"',
|
|
34584
34584
|
'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',
|
|
34585
34585
|
"vim.opt.rtp:prepend(lp)",
|
|
34586
34586
|
'pcall(function() require("lazy").setup({{"nvim-neo-tree/neo-tree.nvim", branch="v3.x", dependencies={"nvim-lua/plenary.nvim","MunifTanjim/nui.nvim"},config=function() require("neo-tree").setup({close_if_last_window=true,filesystem={follow_current_file={enabled=true},use_libuv_file_watcher=true},window={position="left",width=30}}) end}},{install={colorscheme={}},checker={enabled=false}}) end)'
|
|
34587
|
-
].join("
|
|
34587
|
+
].join("; ");
|
|
34588
34588
|
const nvimArgs = [
|
|
34589
34589
|
"--listen",
|
|
34590
34590
|
socketPath,
|
|
@@ -34671,17 +34671,20 @@ async function startNeovimMode(opts) {
|
|
|
34671
34671
|
}
|
|
34672
34672
|
function stopNeovimMode() {
|
|
34673
34673
|
if (!_state || _state.cleanedUp)
|
|
34674
|
-
return;
|
|
34674
|
+
return Promise.resolve();
|
|
34675
34675
|
try {
|
|
34676
34676
|
_state.pty?.write("\x1B:qa!\r");
|
|
34677
34677
|
} catch {
|
|
34678
34678
|
}
|
|
34679
34679
|
const s = _state;
|
|
34680
|
-
|
|
34681
|
-
|
|
34682
|
-
|
|
34683
|
-
|
|
34684
|
-
|
|
34680
|
+
return new Promise((resolve32) => {
|
|
34681
|
+
setTimeout(() => {
|
|
34682
|
+
if (s && !s.cleanedUp) {
|
|
34683
|
+
doCleanup(s);
|
|
34684
|
+
}
|
|
34685
|
+
resolve32();
|
|
34686
|
+
}, 300);
|
|
34687
|
+
});
|
|
34685
34688
|
}
|
|
34686
34689
|
function writeToNeovimOutput(text) {
|
|
34687
34690
|
if (!_state || _state.cleanedUp || !_state.nvim || !_state.outputChanId)
|
|
@@ -37961,8 +37964,9 @@ async function handleSlashCommand(input, ctx) {
|
|
|
37961
37964
|
case "nvim":
|
|
37962
37965
|
case "vim": {
|
|
37963
37966
|
if (isNeovimActive()) {
|
|
37964
|
-
stopNeovimMode();
|
|
37965
|
-
|
|
37967
|
+
await stopNeovimMode();
|
|
37968
|
+
ctx.clearScreen();
|
|
37969
|
+
renderInfo("Neovim mode stopped. Main waterfall restored.");
|
|
37966
37970
|
} else {
|
|
37967
37971
|
const contentRows = ctx.availableContentRows?.() ?? Math.max(5, (process.stdout.rows ?? 24) - 6);
|
|
37968
37972
|
const cols = process.stdout.columns ?? 80;
|
package/package.json
CHANGED