(p: ToolProps<typeof WriteTool>)
| 498 | } |
| 499 | |
| 500 | function snapWrite(p: ToolProps<typeof WriteTool>): ToolSnapshot | undefined { |
| 501 | const file = p.input.filePath || "" |
| 502 | const content = p.input.content || "" |
| 503 | if (!file && !content) { |
| 504 | return undefined |
| 505 | } |
| 506 | |
| 507 | return { |
| 508 | kind: "code", |
| 509 | title: `# Wrote ${toolPath(file)}`, |
| 510 | content, |
| 511 | file, |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | function snapEdit(p: ToolProps<typeof EditTool>): ToolSnapshot | undefined { |
| 516 | const file = p.input.filePath || "" |
nothing calls this directly
no test coverage detected