(a: string[], b: string[])
| 51 | } |
| 52 | |
| 53 | function pathsConflict(a: string[], b: string[]): boolean { |
| 54 | const sa = new Set(a); |
| 55 | for (const p of b) if (sa.has(p)) return true; |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | export function groupMutatingForParallel(calls: ToolCall[]): ToolCall[][] { |
| 60 | if (calls.length <= 1) return calls.map(c => [c]); |
no test coverage detected