open-agents-ai 0.140.1 → 0.140.2
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 +24 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31083,43 +31083,42 @@ function setContentWriteHook(hook) {
|
|
|
31083
31083
|
}
|
|
31084
31084
|
function renderError(message) {
|
|
31085
31085
|
const redir = _contentWriteHook?.redirect?.();
|
|
31086
|
-
const icon = _emojisEnabled ? "\x1B[38;5;
|
|
31086
|
+
const icon = _emojisEnabled ? "\x1B[38;5;198m\u2716\x1B[0m" : "\x1B[38;5;198mE\x1B[0m";
|
|
31087
|
+
const text = `
|
|
31088
|
+
${icon} \x1B[38;5;198m${message}\x1B[0m
|
|
31089
|
+
`;
|
|
31087
31090
|
if (redir) {
|
|
31088
|
-
redir(
|
|
31089
|
-
${icon} ${message}
|
|
31090
|
-
`);
|
|
31091
|
+
redir(text);
|
|
31091
31092
|
return;
|
|
31092
31093
|
}
|
|
31093
31094
|
_contentWriteHook?.begin();
|
|
31094
|
-
process.stdout.write(
|
|
31095
|
-
${icon} ${message}
|
|
31096
|
-
`);
|
|
31095
|
+
process.stdout.write(text);
|
|
31097
31096
|
_contentWriteHook?.end();
|
|
31098
31097
|
}
|
|
31099
31098
|
function renderInfo(message) {
|
|
31100
31099
|
const redir = _contentWriteHook?.redirect?.();
|
|
31101
|
-
const icon =
|
|
31100
|
+
const icon = "\x1B[38;5;178mi\x1B[0m";
|
|
31101
|
+
const text = `${icon} \x1B[38;5;252m${message}\x1B[0m
|
|
31102
|
+
`;
|
|
31102
31103
|
if (redir) {
|
|
31103
|
-
redir(
|
|
31104
|
-
`);
|
|
31104
|
+
redir(text);
|
|
31105
31105
|
return;
|
|
31106
31106
|
}
|
|
31107
31107
|
_contentWriteHook?.begin();
|
|
31108
|
-
process.stdout.write(
|
|
31109
|
-
`);
|
|
31108
|
+
process.stdout.write(text);
|
|
31110
31109
|
_contentWriteHook?.end();
|
|
31111
31110
|
}
|
|
31112
31111
|
function renderWarning(message) {
|
|
31113
31112
|
const redir = _contentWriteHook?.redirect?.();
|
|
31114
|
-
const icon =
|
|
31113
|
+
const icon = "\x1B[38;5;214m!\x1B[0m";
|
|
31114
|
+
const text = `${icon} \x1B[38;5;214m${message}\x1B[0m
|
|
31115
|
+
`;
|
|
31115
31116
|
if (redir) {
|
|
31116
|
-
redir(
|
|
31117
|
-
`);
|
|
31117
|
+
redir(text);
|
|
31118
31118
|
return;
|
|
31119
31119
|
}
|
|
31120
31120
|
_contentWriteHook?.begin();
|
|
31121
|
-
process.stdout.write(
|
|
31122
|
-
`);
|
|
31121
|
+
process.stdout.write(text);
|
|
31123
31122
|
_contentWriteHook?.end();
|
|
31124
31123
|
}
|
|
31125
31124
|
function renderVerbose(message) {
|
|
@@ -56697,7 +56696,6 @@ ${entry.fullContent}`
|
|
|
56697
56696
|
break;
|
|
56698
56697
|
case "sudo_request":
|
|
56699
56698
|
contentWrite(() => renderWarning(`Sudo required: ${event.content ?? "elevated privileges needed"}`));
|
|
56700
|
-
contentWrite(() => renderInfo("Enter your password at the prompt below to continue."));
|
|
56701
56699
|
if (sudoCallback)
|
|
56702
56700
|
sudoCallback(event.content ?? "");
|
|
56703
56701
|
break;
|
|
@@ -57694,8 +57692,13 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
57694
57692
|
if (process.stdout.isTTY) {
|
|
57695
57693
|
process.stdout.write("\x1B[?1002l\x1B[?1006l");
|
|
57696
57694
|
}
|
|
57697
|
-
writeContent(() =>
|
|
57698
|
-
|
|
57695
|
+
writeContent(() => {
|
|
57696
|
+
process.stdout.write(`
|
|
57697
|
+
\x1B[5;38;5;198m\u2B24 Enter Password:\x1B[0m \x1B[38;5;245mType below, Enter to submit. Ctrl+O to show/hide.\x1B[0m
|
|
57698
|
+
|
|
57699
|
+
`);
|
|
57700
|
+
});
|
|
57701
|
+
const pwPrompt = `\x1B[38;5;198m\u25CF password:\x1B[0m `;
|
|
57699
57702
|
rl.setPrompt(pwPrompt);
|
|
57700
57703
|
if (statusBar.isActive) {
|
|
57701
57704
|
const origProvider = statusBar.inputStateProvider;
|
|
@@ -57705,7 +57708,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
57705
57708
|
return state;
|
|
57706
57709
|
return { line: "\u25CF".repeat(state.line.length), cursor: state.cursor };
|
|
57707
57710
|
};
|
|
57708
|
-
statusBar.setPromptText(pwPrompt,
|
|
57711
|
+
statusBar.setPromptText(pwPrompt, 12);
|
|
57709
57712
|
}
|
|
57710
57713
|
showPrompt();
|
|
57711
57714
|
}
|
package/package.json
CHANGED