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