open-agents-ai 0.138.31 → 0.138.32
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 +14 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29411,7 +29411,7 @@ function formatMarkdownBlock(text) {
|
|
|
29411
29411
|
}
|
|
29412
29412
|
function renderUserMessage(text) {
|
|
29413
29413
|
process.stdout.write(`
|
|
29414
|
-
|
|
29414
|
+
\x1B[38;5;178m\u25B9\x1B[0m ${c2.bold(text)}
|
|
29415
29415
|
`);
|
|
29416
29416
|
}
|
|
29417
29417
|
function renderAssistantText(text) {
|
|
@@ -29681,7 +29681,7 @@ function setContentWriteHook(hook) {
|
|
|
29681
29681
|
}
|
|
29682
29682
|
function renderError(message) {
|
|
29683
29683
|
const redir = _contentWriteHook?.redirect?.();
|
|
29684
|
-
const icon = _emojisEnabled ?
|
|
29684
|
+
const icon = _emojisEnabled ? "\x1B[38;5;178m\u2716\x1B[0m" : c2.red("E");
|
|
29685
29685
|
if (redir) {
|
|
29686
29686
|
redir(`
|
|
29687
29687
|
${icon} ${message}
|
|
@@ -29696,7 +29696,7 @@ ${icon} ${message}
|
|
|
29696
29696
|
}
|
|
29697
29697
|
function renderInfo(message) {
|
|
29698
29698
|
const redir = _contentWriteHook?.redirect?.();
|
|
29699
|
-
const icon = _emojisEnabled ?
|
|
29699
|
+
const icon = _emojisEnabled ? "\x1B[38;5;178m\u2139\x1B[0m" : "\x1B[38;5;178mi\x1B[0m";
|
|
29700
29700
|
if (redir) {
|
|
29701
29701
|
redir(`${icon} ${message}
|
|
29702
29702
|
`);
|
|
@@ -29709,7 +29709,7 @@ function renderInfo(message) {
|
|
|
29709
29709
|
}
|
|
29710
29710
|
function renderWarning(message) {
|
|
29711
29711
|
const redir = _contentWriteHook?.redirect?.();
|
|
29712
|
-
const icon = _emojisEnabled ?
|
|
29712
|
+
const icon = _emojisEnabled ? "\x1B[38;5;178m\u26A0\x1B[0m" : "\x1B[38;5;178m!\x1B[0m";
|
|
29713
29713
|
if (redir) {
|
|
29714
29714
|
redir(`${icon} ${message}
|
|
29715
29715
|
`);
|
|
@@ -29722,7 +29722,7 @@ function renderWarning(message) {
|
|
|
29722
29722
|
}
|
|
29723
29723
|
function renderVerbose(message) {
|
|
29724
29724
|
const redir = _contentWriteHook?.redirect?.();
|
|
29725
|
-
const text =
|
|
29725
|
+
const text = ` \x1B[38;5;178m\u25B9\x1B[0m ${c2.dim(message)}
|
|
29726
29726
|
`;
|
|
29727
29727
|
if (redir) {
|
|
29728
29728
|
redir(text);
|
|
@@ -52286,6 +52286,15 @@ ${CONTENT_BG_SEQ}`);
|
|
|
52286
52286
|
self.scrollContentDown(3);
|
|
52287
52287
|
return;
|
|
52288
52288
|
}
|
|
52289
|
+
if (self.writeDepth > 0) {
|
|
52290
|
+
const rows = process.stdout.rows ?? 24;
|
|
52291
|
+
const pos = self.rowPositions(rows);
|
|
52292
|
+
const writer = self._origWrite ?? process.stdout.write.bind(process.stdout);
|
|
52293
|
+
writer(`\x1B7\x1B[${pos.inputStartRow};1H`);
|
|
52294
|
+
origTtyWrite(s, key);
|
|
52295
|
+
writer(`\x1B8`);
|
|
52296
|
+
return;
|
|
52297
|
+
}
|
|
52289
52298
|
return origTtyWrite(s, key);
|
|
52290
52299
|
};
|
|
52291
52300
|
}
|
package/package.json
CHANGED