open-agents-ai 0.184.83 → 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 +33 -31
- 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);
|
|
@@ -65624,18 +65621,20 @@ Review its full output in the [${id}] tab or via full_sub_agent(action='output',
|
|
|
65624
65621
|
sessionSudoPassword = pw;
|
|
65625
65622
|
resolve36(pw);
|
|
65626
65623
|
};
|
|
65627
|
-
const
|
|
65624
|
+
const pwPrompt = `
|
|
65625
|
+
${c2.bold(c2.yellow("\u{1F511} Password needed for dependency install:"))}
|
|
65626
|
+
${c2.dim("Type your sudo password below and press Enter.")}
|
|
65628
65627
|
`;
|
|
65629
|
-
const pwPrompt2 = ` ${c2.bold(c2.yellow("\u{1F511} Password:"))} `;
|
|
65630
65628
|
if (isNeovimActive()) {
|
|
65631
|
-
writeToNeovimOutput(
|
|
65629
|
+
writeToNeovimOutput(pwPrompt);
|
|
65632
65630
|
} else {
|
|
65633
65631
|
if (statusBar?.isActive)
|
|
65634
65632
|
statusBar.beginContentWrite();
|
|
65635
|
-
process.stdout.write(
|
|
65636
|
-
process.stdout.write(pwPrompt2);
|
|
65633
|
+
process.stdout.write(pwPrompt);
|
|
65637
65634
|
if (statusBar?.isActive)
|
|
65638
65635
|
statusBar.endContentWrite();
|
|
65636
|
+
if (statusBar?.isActive)
|
|
65637
|
+
statusBar.handleResize();
|
|
65639
65638
|
}
|
|
65640
65639
|
})).catch(() => {
|
|
65641
65640
|
});
|
|
@@ -67827,6 +67826,21 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
|
|
|
67827
67826
|
};
|
|
67828
67827
|
};
|
|
67829
67828
|
rl.on("line", (line) => {
|
|
67829
|
+
if (depSudoPromptPending && depSudoResolver) {
|
|
67830
|
+
const pw = line.trim();
|
|
67831
|
+
depSudoPromptPending = false;
|
|
67832
|
+
const resolver = depSudoResolver;
|
|
67833
|
+
depSudoResolver = null;
|
|
67834
|
+
if (pw)
|
|
67835
|
+
sessionSudoPassword = pw;
|
|
67836
|
+
if (statusBar?.isActive) {
|
|
67837
|
+
statusBar.beginContentWrite();
|
|
67838
|
+
renderInfo("\u{1F511} Password received");
|
|
67839
|
+
statusBar.endContentWrite();
|
|
67840
|
+
}
|
|
67841
|
+
resolver(pw || null);
|
|
67842
|
+
return;
|
|
67843
|
+
}
|
|
67830
67844
|
if (!setupReady)
|
|
67831
67845
|
return;
|
|
67832
67846
|
persistHistoryLine(line);
|
|
@@ -67858,18 +67872,6 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
|
|
|
67858
67872
|
}, 50);
|
|
67859
67873
|
});
|
|
67860
67874
|
async function processLine(input) {
|
|
67861
|
-
if (depSudoPromptPending && depSudoResolver) {
|
|
67862
|
-
const pw = input.trim();
|
|
67863
|
-
passwordShowPlain = false;
|
|
67864
|
-
statusBar.setInputStateProvider(() => ({
|
|
67865
|
-
line: rl.line ?? "",
|
|
67866
|
-
cursor: rl.cursor ?? 0
|
|
67867
|
-
}));
|
|
67868
|
-
writeContent(() => renderInfo("\u{1F511} Password received"));
|
|
67869
|
-
depSudoResolver(pw || null);
|
|
67870
|
-
showPrompt();
|
|
67871
|
-
return;
|
|
67872
|
-
}
|
|
67873
67875
|
if (sudoPromptPending && activeTask) {
|
|
67874
67876
|
sudoPromptPending = false;
|
|
67875
67877
|
passwordShowPlain = false;
|
package/package.json
CHANGED