open-agents-ai 0.187.113 → 0.187.115
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 +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271927,10 +271927,18 @@ function renderSlashHelp() {
|
|
|
271927
271927
|
process.stdout.write("\n");
|
|
271928
271928
|
}
|
|
271929
271929
|
function renderModelSwitch(oldModel, newModel) {
|
|
271930
|
-
|
|
271930
|
+
const redir = _contentWriteHook?.redirect?.();
|
|
271931
|
+
const text = `
|
|
271931
271932
|
${c3.green("\u2714")} Switched model: ${c3.dim(oldModel)} \u2192 ${c3.bold(c3.green(newModel))}
|
|
271932
271933
|
|
|
271933
|
-
|
|
271934
|
+
`;
|
|
271935
|
+
if (redir) {
|
|
271936
|
+
redir(text);
|
|
271937
|
+
return;
|
|
271938
|
+
}
|
|
271939
|
+
_contentWriteHook?.begin();
|
|
271940
|
+
process.stdout.write(text);
|
|
271941
|
+
_contentWriteHook?.end();
|
|
271934
271942
|
}
|
|
271935
271943
|
function formatToolArgs(toolName, args, verbose) {
|
|
271936
271944
|
const maxArg = verbose ? 1e4 : Math.max(40, getTermWidth() - 20);
|
package/package.json
CHANGED