* Construct a diff view from write_file content.
(content: string)
| 412 | * Construct a diff view from write_file content. |
| 413 | */ |
| 414 | function constructDiffFromWriteFile(content: string): string { |
| 415 | const lines = content.split('\n') |
| 416 | return lines.map((line) => `+ ${line}`).join('\n') |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * Check if a tool is a "create new file" operation. |