(text: string)
| 211 | } |
| 212 | |
| 213 | function textResultSummary(text: string): CompactToolSummary { |
| 214 | if (!text.trim()) return noOutput(); |
| 215 | return { |
| 216 | text: `${linesText(readBodyLineCount(text))} · ${byteLength(text)} bytes`, |
| 217 | protect: true, |
| 218 | }; |
| 219 | } |
| 220 | |
| 221 | function linesText(count: number): string { |
| 222 | return `${count} line${count === 1 ? '' : 's'}`; |
no test coverage detected