A user turn: a dim `>` quote prefix per line, no speaker label.
(text: string, width: number)
| 1656 | |
| 1657 | /** A user turn: a dim `>` quote prefix per line, no speaker label. */ |
| 1658 | function renderUserBlock(text: string, width: number): string[] { |
| 1659 | if (!text.trim()) return []; |
| 1660 | const prefix = ansi.dim('>'); |
| 1661 | // renderIndented reserves a 2-column gutter; reuse it and swap the two |
| 1662 | // leading spaces for `> ` so wrapped lines stay aligned under the prefix. |
| 1663 | return renderIndented(text, width, 2).map((line) => fitLine(`${prefix} ${line.slice(2)}`, width)); |
| 1664 | } |
| 1665 | |
| 1666 | function renderLegacyAutomationBlock(text: string, width: number): string[] { |
| 1667 | if (!text.trim()) return []; |
no test coverage detected