open-agents-ai 0.138.12 → 0.138.14
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 +7 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52104,6 +52104,9 @@ var init_status_bar = __esm({
|
|
|
52104
52104
|
rl._ttyWrite = function(s, key) {
|
|
52105
52105
|
if (!self.active)
|
|
52106
52106
|
return origTtyWrite(s, key);
|
|
52107
|
+
if (s && (/\x1B\[</.test(s) || /^\d+;\d+;\d*[Mm]/.test(s) || /^;\d+[Mm]/.test(s) || /\[<\d/.test(s))) {
|
|
52108
|
+
return;
|
|
52109
|
+
}
|
|
52107
52110
|
if (key?.name === "pageup" || s === "\x1B[5~") {
|
|
52108
52111
|
self.pageUpContent();
|
|
52109
52112
|
return;
|
|
@@ -53307,15 +53310,13 @@ async function startInteractive(config, repoPath) {
|
|
|
53307
53310
|
const resumeFlag = process.env.__OA_RESUMED ?? "";
|
|
53308
53311
|
const isResumed = resumeFlag !== "";
|
|
53309
53312
|
const hasTaskToResume = resumeFlag === "1";
|
|
53310
|
-
|
|
53311
|
-
delete process.env.__OA_RESUMED;
|
|
53312
|
-
}
|
|
53313
|
+
delete process.env.__OA_RESUMED;
|
|
53313
53314
|
initOaDirectory(repoRoot);
|
|
53314
53315
|
const savedSettings = resolveSettings(repoRoot);
|
|
53315
|
-
if (process.stdout.isTTY
|
|
53316
|
-
process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
|
|
53316
|
+
if (process.stdout.isTTY) {
|
|
53317
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
|
|
53317
53318
|
const restoreScreen = () => {
|
|
53318
|
-
process.stdout.write("\x1B[?25h\x1B[?1049l");
|
|
53319
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?25h\x1B[?1049l");
|
|
53319
53320
|
};
|
|
53320
53321
|
process.on("exit", restoreScreen);
|
|
53321
53322
|
process.on("SIGINT", () => {
|
|
@@ -53389,21 +53390,6 @@ async function startInteractive(config, repoPath) {
|
|
|
53389
53390
|
let carouselLines = 0;
|
|
53390
53391
|
const version = getVersion3();
|
|
53391
53392
|
if (isResumed) {
|
|
53392
|
-
if (process.stdout.isTTY) {
|
|
53393
|
-
process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
|
|
53394
|
-
const restoreScreen = () => {
|
|
53395
|
-
process.stdout.write("\x1B[?25h\x1B[?1049l");
|
|
53396
|
-
};
|
|
53397
|
-
process.on("exit", restoreScreen);
|
|
53398
|
-
process.on("SIGINT", () => {
|
|
53399
|
-
restoreScreen();
|
|
53400
|
-
process.exit(130);
|
|
53401
|
-
});
|
|
53402
|
-
process.on("SIGTERM", () => {
|
|
53403
|
-
restoreScreen();
|
|
53404
|
-
process.exit(143);
|
|
53405
|
-
});
|
|
53406
|
-
}
|
|
53407
53393
|
banner.setDesign(createDefaultBanner(version));
|
|
53408
53394
|
carouselLines = banner.start();
|
|
53409
53395
|
} else {
|
package/package.json
CHANGED