(cwd: string | undefined, toolName: string)
| 577 | } |
| 578 | |
| 579 | function requireCwd(cwd: string | undefined, toolName: string): string { |
| 580 | if (!cwd) { |
| 581 | throw new Error( |
| 582 | `cwd is required for the ${toolName} tool. Please provide cwd in CodebuffClientOptions or override the ${toolName} tool.`, |
| 583 | ) |
| 584 | } |
| 585 | return cwd |
| 586 | } |
| 587 | |
| 588 | async function readFiles({ |
| 589 | filePaths, |
no outgoing calls
no test coverage detected