open-agents-ai 0.184.84 → 0.184.85
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 +11 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51500,12 +51500,12 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
51500
51500
|
await new Promise((r) => setTimeout(r, 200));
|
|
51501
51501
|
const { execPath, argv } = process;
|
|
51502
51502
|
try {
|
|
51503
|
-
const {
|
|
51503
|
+
const { execFileSync } = await import("node:child_process");
|
|
51504
51504
|
if (ctx.hasActiveTask?.())
|
|
51505
51505
|
ctx.abortActiveTask?.();
|
|
51506
|
-
ctx.
|
|
51506
|
+
ctx.clearScreen();
|
|
51507
51507
|
if (process.stdout.isTTY) {
|
|
51508
|
-
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[r\x1B[?25h\x1B[?1049l\x1B[0m");
|
|
51508
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[r\x1B[?25h\x1B[?1049l\x1B[2J\x1B[H\x1B[0m");
|
|
51509
51509
|
}
|
|
51510
51510
|
if (process.stdin.isTTY && typeof process.stdin.setRawMode === "function") {
|
|
51511
51511
|
process.stdin.setRawMode(false);
|
|
@@ -51515,17 +51515,14 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
51515
51515
|
process.removeAllListeners("SIGINT");
|
|
51516
51516
|
process.removeAllListeners("SIGTERM");
|
|
51517
51517
|
process.removeAllListeners("exit");
|
|
51518
|
-
|
|
51519
|
-
|
|
51520
|
-
|
|
51521
|
-
|
|
51522
|
-
|
|
51523
|
-
|
|
51524
|
-
|
|
51525
|
-
|
|
51526
|
-
child.on("error", () => {
|
|
51527
|
-
process.exit(1);
|
|
51528
|
-
});
|
|
51518
|
+
try {
|
|
51519
|
+
execFileSync(execPath, argv.slice(1), {
|
|
51520
|
+
stdio: "inherit",
|
|
51521
|
+
env: { ...process.env, __OA_RESUMED: resumeFlag }
|
|
51522
|
+
});
|
|
51523
|
+
} catch {
|
|
51524
|
+
}
|
|
51525
|
+
process.exit(0);
|
|
51529
51526
|
} catch {
|
|
51530
51527
|
process.stderr.write("\x1B[0m\nRestart oa manually to use the new version.\n");
|
|
51531
51528
|
process.exit(1);
|
package/package.json
CHANGED