open-agents-ai 0.138.33 → 0.138.34
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 +21 -1
- 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}.`;
|
|
@@ -54542,6 +54560,8 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54542
54560
|
cohereToggle() {
|
|
54543
54561
|
cohereEnabled = !cohereEnabled;
|
|
54544
54562
|
statusBar.setCohereActive(cohereEnabled);
|
|
54563
|
+
saveProjectSettings(repoRoot, { cohere: cohereEnabled });
|
|
54564
|
+
saveGlobalSettings({ cohere: cohereEnabled });
|
|
54545
54565
|
return cohereEnabled;
|
|
54546
54566
|
},
|
|
54547
54567
|
isCohere() {
|
package/package.json
CHANGED