open-agents-ai 0.138.87 → 0.138.88
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 +15 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37854,8 +37854,9 @@ function tuiSelect(opts) {
|
|
|
37854
37854
|
const first = findSelectable(0, 1);
|
|
37855
37855
|
cursor = first >= 0 ? first : 0;
|
|
37856
37856
|
}
|
|
37857
|
+
const reservedTopBottom = 6;
|
|
37857
37858
|
const selectChrome = 3;
|
|
37858
|
-
const contentArea = opts.availableRows ?? process.stdout.rows ?? 24;
|
|
37859
|
+
const contentArea = opts.availableRows ?? Math.max(6, (process.stdout.rows ?? 24) - reservedTopBottom);
|
|
37859
37860
|
const maxVisible = opts.maxVisible ?? Math.max(3, contentArea - selectChrome);
|
|
37860
37861
|
let scrollOffset = 0;
|
|
37861
37862
|
let lastRenderedLines = 0;
|
|
@@ -56480,10 +56481,22 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
56480
56481
|
headerBtnActive = command;
|
|
56481
56482
|
(async () => {
|
|
56482
56483
|
try {
|
|
56483
|
-
|
|
56484
|
+
const needsContentWrap = command === "/help" || command === "/cohere";
|
|
56485
|
+
if (needsContentWrap && statusBar.isActive)
|
|
56486
|
+
statusBar.beginContentWrite();
|
|
56487
|
+
await handleSlashCommand(command, commandCtxRef);
|
|
56488
|
+
if (needsContentWrap && statusBar.isActive)
|
|
56489
|
+
statusBar.endContentWrite();
|
|
56484
56490
|
} catch {
|
|
56491
|
+
try {
|
|
56492
|
+
if (statusBar.isActive)
|
|
56493
|
+
statusBar.endContentWrite();
|
|
56494
|
+
} catch {
|
|
56495
|
+
}
|
|
56485
56496
|
}
|
|
56486
56497
|
headerBtnActive = null;
|
|
56498
|
+
if (statusBar.isActive)
|
|
56499
|
+
statusBar.handleResize();
|
|
56487
56500
|
})();
|
|
56488
56501
|
});
|
|
56489
56502
|
rl.output = null;
|
package/package.json
CHANGED