cli: use ANSI escape codes for reasoning output formatting
This commit is contained in:
parent
2a7869dbf8
commit
d3d261d37e
1 changed files with 5 additions and 5 deletions
|
|
@ -418,13 +418,13 @@ export const RunCommand = cmd({
|
||||||
if (emit("reasoning", { part })) continue
|
if (emit("reasoning", { part })) continue
|
||||||
const text = part.text.trim()
|
const text = part.text.trim()
|
||||||
if (!text) continue
|
if (!text) continue
|
||||||
if (!process.stdout.isTTY) {
|
if (process.stdout.isTTY) {
|
||||||
process.stdout.write(text + EOL)
|
UI.empty()
|
||||||
|
UI.println(`\u001b[3m${text}\u001b[0m`)
|
||||||
|
UI.empty()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
UI.empty()
|
process.stdout.write(text + EOL)
|
||||||
UI.println(`_${text}_`)
|
|
||||||
UI.empty()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue