open-agents-ai 0.138.6 → 0.138.7
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 +33 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52213,9 +52213,26 @@ var init_status_bar = __esm({
|
|
|
52213
52213
|
if (this.stdinHooked)
|
|
52214
52214
|
return;
|
|
52215
52215
|
this.stdinHooked = true;
|
|
52216
|
-
process.stdin.on("data", () => {
|
|
52216
|
+
process.stdin.on("data", (chunk) => {
|
|
52217
52217
|
if (!this.active)
|
|
52218
52218
|
return;
|
|
52219
|
+
const seq = chunk.toString();
|
|
52220
|
+
if (seq === "\x1B[5~" || seq === "\x1B[1;2A") {
|
|
52221
|
+
this.pageUpContent();
|
|
52222
|
+
return;
|
|
52223
|
+
}
|
|
52224
|
+
if (seq === "\x1B[6~" || seq === "\x1B[1;2B") {
|
|
52225
|
+
this.pageDownContent();
|
|
52226
|
+
return;
|
|
52227
|
+
}
|
|
52228
|
+
if (seq.startsWith("\x1B[<65;")) {
|
|
52229
|
+
this.scrollContentUp(3);
|
|
52230
|
+
return;
|
|
52231
|
+
}
|
|
52232
|
+
if (seq.startsWith("\x1B[<64;")) {
|
|
52233
|
+
this.scrollContentDown(3);
|
|
52234
|
+
return;
|
|
52235
|
+
}
|
|
52219
52236
|
setImmediate(() => {
|
|
52220
52237
|
if (this.writeDepth > 0) {
|
|
52221
52238
|
this.renderInputRowDuringStream();
|
|
@@ -55214,8 +55231,10 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
|
|
|
55214
55231
|
if (!carouselRetired && carousel.isRunning) {
|
|
55215
55232
|
carousel.stop();
|
|
55216
55233
|
carouselRetired = true;
|
|
55217
|
-
|
|
55218
|
-
|
|
55234
|
+
const bannerActive = banner.getDesign() !== null;
|
|
55235
|
+
if (statusBar.isActive) {
|
|
55236
|
+
statusBar.setScrollRegionTop(bannerActive ? 5 : 1);
|
|
55237
|
+
}
|
|
55219
55238
|
}
|
|
55220
55239
|
},
|
|
55221
55240
|
destroyProject() {
|
|
@@ -55528,8 +55547,9 @@ Execute this skill now. Follow the behavioral guidance above.`;
|
|
|
55528
55547
|
if (!carouselRetired && carousel.isRunning) {
|
|
55529
55548
|
carousel.stop();
|
|
55530
55549
|
carouselRetired = true;
|
|
55550
|
+
const bannerActive = banner.getDesign() !== null;
|
|
55531
55551
|
if (statusBar.isActive)
|
|
55532
|
-
statusBar.setScrollRegionTop(1);
|
|
55552
|
+
statusBar.setScrollRegionTop(bannerActive ? 5 : 1);
|
|
55533
55553
|
}
|
|
55534
55554
|
writeContent(() => renderUserMessage(`/${cmdResult.name}${cmdResult.args ? " " + cmdResult.args : ""}`));
|
|
55535
55555
|
lastSubmittedPrompt = skillPrompt;
|
|
@@ -55757,8 +55777,9 @@ Summarize or analyze this transcription as appropriate.`;
|
|
|
55757
55777
|
if (!carouselRetired && carousel.isRunning) {
|
|
55758
55778
|
carousel.stop();
|
|
55759
55779
|
carouselRetired = true;
|
|
55780
|
+
const bannerActive = banner.getDesign() !== null;
|
|
55760
55781
|
if (statusBar.isActive)
|
|
55761
|
-
statusBar.setScrollRegionTop(1);
|
|
55782
|
+
statusBar.setScrollRegionTop(bannerActive ? 5 : 1);
|
|
55762
55783
|
}
|
|
55763
55784
|
const inputLineCount = fullInput.split("\n").length;
|
|
55764
55785
|
const displayText = isImage ? `[Image: ${cleanPath}]` : inputLineCount > 1 ? `[pasted ${inputLineCount} lines]` : fullInput;
|
|
@@ -55999,28 +56020,21 @@ ${c2.dim("(Use /quit to exit)")}
|
|
|
55999
56020
|
process.stdin.on("keypress", (_str, key) => {
|
|
56000
56021
|
if (!key)
|
|
56001
56022
|
return;
|
|
56002
|
-
if (key.name === "pageup" || key.shift && key.name === "up") {
|
|
56023
|
+
if (key.name === "pageup" || key.sequence === "\x1B[5~" || key.shift && key.name === "up" || key.sequence === "\x1B[1;2A") {
|
|
56003
56024
|
statusBar.pageUpContent();
|
|
56004
56025
|
return;
|
|
56005
56026
|
}
|
|
56006
|
-
if (key.name === "pagedown" || key.shift && key.name === "down") {
|
|
56027
|
+
if (key.name === "pagedown" || key.sequence === "\x1B[6~" || key.shift && key.name === "down" || key.sequence === "\x1B[1;2B") {
|
|
56007
56028
|
statusBar.pageDownContent();
|
|
56008
56029
|
return;
|
|
56009
56030
|
}
|
|
56010
|
-
if (key.name === "end" && key.ctrl) {
|
|
56011
|
-
|
|
56031
|
+
if (key.name === "end" && key.ctrl || key.name === "home" && key.ctrl) {
|
|
56032
|
+
if (key.name === "end")
|
|
56033
|
+
statusBar.jumpToLive();
|
|
56034
|
+
else
|
|
56035
|
+
statusBar.scrollContentUp(99999);
|
|
56012
56036
|
return;
|
|
56013
56037
|
}
|
|
56014
|
-
if (key.sequence) {
|
|
56015
|
-
if (key.sequence.includes("[<65;") || key.sequence === "\x1B[A" && key.shift) {
|
|
56016
|
-
statusBar.scrollContentUp(3);
|
|
56017
|
-
return;
|
|
56018
|
-
}
|
|
56019
|
-
if (key.sequence.includes("[<64;") || key.sequence === "\x1B[B" && key.shift) {
|
|
56020
|
-
statusBar.scrollContentDown(3);
|
|
56021
|
-
return;
|
|
56022
|
-
}
|
|
56023
|
-
}
|
|
56024
56038
|
if (key.name === "escape" && activeTask) {
|
|
56025
56039
|
if (!activeTask.runner.isPaused) {
|
|
56026
56040
|
activeTask.runner.pause();
|
package/package.json
CHANGED