Refactor modes

This commit is contained in:
Matt Rubens
2025-01-17 01:12:06 -05:00
parent b35206bc9d
commit 72fe12d096
39 changed files with 909 additions and 4310 deletions

View File

@@ -107,7 +107,7 @@ export class NewUnifiedDiffStrategy implements DiffStrategy {
return { hunks }
}
getToolDescription(cwd: string): string {
getToolDescription(args: { cwd: string; toolOptions?: { [key: string]: string } }): string {
return `# apply_diff Tool Rules:
Generate a unified diff similar to what "diff -U0" would produce.
@@ -173,7 +173,7 @@ Format Requirements:
Be precise, consistent, and follow these rules carefully to generate correct diffs!
Parameters:
- path: (required) The path of the file to apply the diff to (relative to the current working directory ${cwd})
- path: (required) The path of the file to apply the diff to (relative to the current working directory ${args.cwd})
- diff: (required) The diff content in unified format to apply to the file.
Usage: