open-agents-ai 0.104.15 → 0.104.16

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 +26 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34560,6 +34560,14 @@ import { execSync as execSync26 } from "node:child_process";
34560
34560
  function isNeovimActive() {
34561
34561
  return _state !== null && !_state.cleanedUp;
34562
34562
  }
34563
+ function isNeovimFocused() {
34564
+ return _state?.focused ?? false;
34565
+ }
34566
+ function refocusNeovim() {
34567
+ if (!_state || _state.cleanedUp || _state.focused)
34568
+ return;
34569
+ toggleFocus(_state);
34570
+ }
34563
34571
  async function startNeovimMode(opts) {
34564
34572
  if (_state && !_state.cleanedUp) {
34565
34573
  return "Neovim mode is already active. Use /neovim to exit first.";
@@ -38008,6 +38016,7 @@ async function handleSlashCommand(input, ctx) {
38008
38016
  ctx.clearScreen();
38009
38017
  renderInfo("Neovim mode stopped. Main waterfall restored.");
38010
38018
  } else {
38019
+ ctx.retireCarousel?.();
38011
38020
  const contentRows = ctx.availableContentRows?.() ?? Math.max(5, (process.stdout.rows ?? 24) - 6);
38012
38021
  const cols = process.stdout.columns ?? 80;
38013
38022
  const err = await startNeovimMode({
@@ -38023,8 +38032,6 @@ async function handleSlashCommand(input, ctx) {
38023
38032
  });
38024
38033
  if (err) {
38025
38034
  renderError(err);
38026
- } else {
38027
- renderInfo("Neovim mode started. Ctrl+N toggles focus between editor and input.");
38028
38035
  }
38029
38036
  }
38030
38037
  return "handled";
@@ -51463,6 +51470,14 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
51463
51470
  showPrompt() {
51464
51471
  showPrompt();
51465
51472
  },
51473
+ retireCarousel() {
51474
+ if (!carouselRetired && carousel.isRunning) {
51475
+ carousel.stop();
51476
+ carouselRetired = true;
51477
+ if (statusBar.isActive)
51478
+ statusBar.setScrollRegionTop(1);
51479
+ }
51480
+ },
51466
51481
  destroyProject() {
51467
51482
  const oaPath = join51(repoRoot, OA_DIR);
51468
51483
  if (existsSync42(oaPath)) {
@@ -51797,6 +51812,9 @@ Execute this skill now. Follow the behavioral guidance above.`;
51797
51812
  }, currentTaskType, resolvedContextWindowSize, resolvedCaps, currentStyle, deepContextEnabled, compactionSNRCallback(), emotionEngine, flowEnabled, buildSlashCommandHandler(), thinkingEnabled, handleAskUser);
51798
51813
  activeTask = task;
51799
51814
  showPrompt();
51815
+ if (isNeovimActive() && !isNeovimFocused()) {
51816
+ refocusNeovim();
51817
+ }
51800
51818
  await task.promise;
51801
51819
  } catch (err) {
51802
51820
  const errMsg = err instanceof Error ? err.message : String(err);
@@ -51857,6 +51875,9 @@ ${result.text}`;
51857
51875
  } else {
51858
51876
  writeContent(() => renderUserInterrupt(input));
51859
51877
  }
51878
+ if (isNeovimActive() && !isNeovimFocused()) {
51879
+ refocusNeovim();
51880
+ }
51860
51881
  const steerRunner = activeTask.runner;
51861
51882
  const steerTaskGoal = lastSubmittedPrompt;
51862
51883
  const steerFeed = getActivityFeed();
@@ -52041,6 +52062,9 @@ NEW TASK: ${fullInput}`;
52041
52062
  }, currentTaskType, resolvedContextWindowSize, resolvedCaps, currentStyle, deepContextEnabled, compactionSNRCallback(), emotionEngine, flowEnabled, buildSlashCommandHandler(), thinkingEnabled, handleAskUser);
52042
52063
  activeTask = task;
52043
52064
  showPrompt();
52065
+ if (isNeovimActive() && !isNeovimFocused()) {
52066
+ refocusNeovim();
52067
+ }
52044
52068
  await task.promise;
52045
52069
  } catch (err) {
52046
52070
  const errMsg = err instanceof Error ? err.message : String(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.104.15",
3
+ "version": "0.104.16",
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",