( diffLineGenerator: AsyncGenerator<DiffLine>, indentation: string, )
| 59 | } |
| 60 | |
| 61 | export async function* addIndentation( |
| 62 | diffLineGenerator: AsyncGenerator<DiffLine>, |
| 63 | indentation: string, |
| 64 | ): AsyncGenerator<DiffLine> { |
| 65 | for await (const diffLine of diffLineGenerator) { |
| 66 | yield { |
| 67 | ...diffLine, |
| 68 | line: indentation + diffLine.line, |
| 69 | }; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function modelIsInept(model: string): boolean { |
| 74 | return !(model.includes("gpt") || model.includes("claude")); |
no outgoing calls
no test coverage detected