( oldContent: string, newContent: string, filePath: string, )
| 13 | import { Tool, ToolCallPreview } from "./types.js"; |
| 14 | |
| 15 | export function generateDiff( |
| 16 | oldContent: string, |
| 17 | newContent: string, |
| 18 | filePath: string, |
| 19 | ): string { |
| 20 | return createTwoFilesPatch( |
| 21 | filePath, |
| 22 | filePath, |
| 23 | oldContent, |
| 24 | newContent, |
| 25 | undefined, |
| 26 | undefined, |
| 27 | { context: 3 }, |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | export const writeFileTool: Tool = { |
| 32 | name: "Write", |
no outgoing calls
no test coverage detected