open-agents-ai 0.104.9 → 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.
Files changed (2) hide show
  1. package/dist/index.js +12 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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
- setTimeout(() => {
34681
- if (s && !s.cleanedUp) {
34682
- doCleanup(s);
34683
- }
34684
- }, 300);
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
- renderInfo("Neovim mode stopped.");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.104.9",
3
+ "version": "0.104.10",
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",