open-agents-ai 0.138.33 → 0.138.35

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 +38 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52306,6 +52306,21 @@ ${CONTENT_BG_SEQ}`);
52306
52306
  writer(`\x1B8`);
52307
52307
  return;
52308
52308
  }
52309
+ if (self.inputStateProvider && (key?.name !== "return" && key?.name !== "enter" && key?.name !== "backspace")) {
52310
+ const { line } = self.inputStateProvider();
52311
+ const w = getTermWidth();
52312
+ const avail = Math.max(1, w - self.promptWidth);
52313
+ const currentLines = Math.ceil(Math.max(1, line.length) / avail);
52314
+ const nextLines = Math.ceil((line.length + 1) / avail);
52315
+ if (nextLines > currentLines) {
52316
+ self.updateFooterHeight();
52317
+ const rows = process.stdout.rows ?? 24;
52318
+ const pos = self.rowPositions(rows);
52319
+ const writer = self._origWrite ?? process.stdout.write.bind(process.stdout);
52320
+ writer(`\x1B[${self.scrollRegionTop};${pos.scrollEnd}r`);
52321
+ self.renderFooterAndPositionInput();
52322
+ }
52323
+ }
52309
52324
  return origTtyWrite(s, key);
52310
52325
  };
52311
52326
  }
@@ -53631,7 +53646,7 @@ async function startInteractive(config, repoPath) {
53631
53646
  let currentStyle = PRESET_NAMES.includes(savedSettings.style) ? savedSettings.style : "balanced";
53632
53647
  let deepContextEnabled = savedSettings.deepContext ?? false;
53633
53648
  let flowEnabled = savedSettings.flow === true;
53634
- let cohereEnabled = false;
53649
+ let cohereEnabled = savedSettings.cohere ?? false;
53635
53650
  let commandsMode = savedSettings.commandsMode ?? "manual";
53636
53651
  if (savedSettings.emojis !== void 0)
53637
53652
  setEmojisEnabled(savedSettings.emojis);
@@ -53674,6 +53689,9 @@ async function startInteractive(config, repoPath) {
53674
53689
  if (statusBar.isActive)
53675
53690
  statusBar.handleResize();
53676
53691
  });
53692
+ if (cohereEnabled) {
53693
+ statusBar.setCohereActive(true);
53694
+ }
53677
53695
  if (isResumed) {
53678
53696
  statusBar.beginContentWrite();
53679
53697
  const resumeMsg = hasTaskToResume ? `Updated to v${version} \u2014 picking up where you left off.` : `Updated to v${version}.`;
@@ -54035,10 +54053,26 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54035
54053
  statusBar.scrollContentDown(lines);
54036
54054
  });
54037
54055
  process.stdin.pipe(mouseFilter);
54056
+ const { PassThrough } = await import("node:stream");
54057
+ const rlOutput = new PassThrough();
54058
+ rlOutput.on("data", (chunk) => {
54059
+ if (!statusBar.isActive) {
54060
+ process.stdout.write(chunk);
54061
+ return;
54062
+ }
54063
+ const rows = process.stdout.rows ?? 24;
54064
+ const fh = statusBar._currentFooterHeight ?? 3;
54065
+ const inputRow = rows - fh + 1;
54066
+ const writer = statusBar._origWrite ? statusBar._origWrite.bind(process.stdout) : process.stdout.write.bind(process.stdout);
54067
+ writer(`\x1B7\x1B[${inputRow};1H`);
54068
+ writer(chunk);
54069
+ writer(`\x1B8`);
54070
+ });
54038
54071
  const rl = readline2.createInterface({
54039
54072
  input: mouseFilter,
54040
54073
  // filtered stream, NOT raw stdin
54041
- output: process.stdout,
54074
+ output: rlOutput,
54075
+ // forced to input row, NOT raw stdout
54042
54076
  prompt: idlePrompt,
54043
54077
  terminal: true,
54044
54078
  historySize: MAX_HISTORY_LINES,
@@ -54542,6 +54576,8 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54542
54576
  cohereToggle() {
54543
54577
  cohereEnabled = !cohereEnabled;
54544
54578
  statusBar.setCohereActive(cohereEnabled);
54579
+ saveProjectSettings(repoRoot, { cohere: cohereEnabled });
54580
+ saveGlobalSettings({ cohere: cohereEnabled });
54545
54581
  return cohereEnabled;
54546
54582
  },
54547
54583
  isCohere() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.33",
3
+ "version": "0.138.35",
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",