(text: string, maxChars: number)
| 156 | } |
| 157 | |
| 158 | export function limitText(text: string, maxChars: number): string { |
| 159 | if (text.length <= maxChars) return text; |
| 160 | return `${text.slice(0, maxChars)}\n... ${text.length - maxChars} chars truncated`; |
| 161 | } |
| 162 | |
| 163 | export const markdownTheme: MarkdownTheme = { |
| 164 | heading: ansi.accent, |
no outgoing calls
no test coverage detected