open-agents-ai 0.138.32 → 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 +32 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52249,6 +52249,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
52249
52249
|
}
|
|
52250
52250
|
sawEscape = false;
|
|
52251
52251
|
if (key?.name === "up" || key?.name === "down") {
|
|
52252
|
+
if (self.writeDepth > 0) {
|
|
52253
|
+
if (key.name === "up")
|
|
52254
|
+
self.scrollContentUp(1);
|
|
52255
|
+
else
|
|
52256
|
+
self.scrollContentDown(1);
|
|
52257
|
+
return;
|
|
52258
|
+
}
|
|
52252
52259
|
const dir = key.name;
|
|
52253
52260
|
if (dir === arrowBurstDir) {
|
|
52254
52261
|
arrowBurst++;
|
|
@@ -52287,6 +52294,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
52287
52294
|
return;
|
|
52288
52295
|
}
|
|
52289
52296
|
if (self.writeDepth > 0) {
|
|
52297
|
+
if (s && (s.startsWith("\x1B") || s.startsWith("[")))
|
|
52298
|
+
return;
|
|
52299
|
+
if (key?.name === "escape")
|
|
52300
|
+
return;
|
|
52290
52301
|
const rows = process.stdout.rows ?? 24;
|
|
52291
52302
|
const pos = self.rowPositions(rows);
|
|
52292
52303
|
const writer = self._origWrite ?? process.stdout.write.bind(process.stdout);
|
|
@@ -52295,6 +52306,21 @@ ${CONTENT_BG_SEQ}`);
|
|
|
52295
52306
|
writer(`\x1B8`);
|
|
52296
52307
|
return;
|
|
52297
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
|
+
}
|
|
52298
52324
|
return origTtyWrite(s, key);
|
|
52299
52325
|
};
|
|
52300
52326
|
}
|
|
@@ -53620,7 +53646,7 @@ async function startInteractive(config, repoPath) {
|
|
|
53620
53646
|
let currentStyle = PRESET_NAMES.includes(savedSettings.style) ? savedSettings.style : "balanced";
|
|
53621
53647
|
let deepContextEnabled = savedSettings.deepContext ?? false;
|
|
53622
53648
|
let flowEnabled = savedSettings.flow === true;
|
|
53623
|
-
let cohereEnabled = false;
|
|
53649
|
+
let cohereEnabled = savedSettings.cohere ?? false;
|
|
53624
53650
|
let commandsMode = savedSettings.commandsMode ?? "manual";
|
|
53625
53651
|
if (savedSettings.emojis !== void 0)
|
|
53626
53652
|
setEmojisEnabled(savedSettings.emojis);
|
|
@@ -53663,6 +53689,9 @@ async function startInteractive(config, repoPath) {
|
|
|
53663
53689
|
if (statusBar.isActive)
|
|
53664
53690
|
statusBar.handleResize();
|
|
53665
53691
|
});
|
|
53692
|
+
if (cohereEnabled) {
|
|
53693
|
+
statusBar.setCohereActive(true);
|
|
53694
|
+
}
|
|
53666
53695
|
if (isResumed) {
|
|
53667
53696
|
statusBar.beginContentWrite();
|
|
53668
53697
|
const resumeMsg = hasTaskToResume ? `Updated to v${version} \u2014 picking up where you left off.` : `Updated to v${version}.`;
|
|
@@ -54531,6 +54560,8 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54531
54560
|
cohereToggle() {
|
|
54532
54561
|
cohereEnabled = !cohereEnabled;
|
|
54533
54562
|
statusBar.setCohereActive(cohereEnabled);
|
|
54563
|
+
saveProjectSettings(repoRoot, { cohere: cohereEnabled });
|
|
54564
|
+
saveGlobalSettings({ cohere: cohereEnabled });
|
|
54534
54565
|
return cohereEnabled;
|
|
54535
54566
|
},
|
|
54536
54567
|
isCohere() {
|
package/package.json
CHANGED