(content: ToolContent[])
| 316 | } |
| 317 | |
| 318 | function textSummary(content: ToolContent[]): { |
| 319 | lines: number; |
| 320 | characters: number; |
| 321 | } { |
| 322 | const text = contentText(content); |
| 323 | return { |
| 324 | lines: text.length === 0 ? 0 : text.split("\n").length, |
| 325 | characters: text.length, |
| 326 | }; |
| 327 | } |
| 328 | |
| 329 | function contentLineCount(content: string): number { |
| 330 | if (content.length === 0) return 0; |
no test coverage detected