(
content: Extract<ToolResultContent, { kind: 'file_diff' }>,
)
| 321 | } |
| 322 | |
| 323 | function compactDiffSummary( |
| 324 | content: Extract<ToolResultContent, { kind: 'file_diff' }>, |
| 325 | ): CompactToolSummary { |
| 326 | const { additions, deletions } = countDiffLineStats(content.diff); |
| 327 | // The path is already the card's input summary; the tally is the outcome. |
| 328 | return { text: `${ansi.green(`+${additions}`)} ${ansi.red(`-${deletions}`)}`, protect: true }; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Row count for list-shaped json results (Grep `matches`, Glob `files`). |
no test coverage detected