MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / pathsConflict

Function pathsConflict

src/agent/parallel-mutating.ts:53–57  ·  view source on GitHub ↗
(a: string[], b: string[])

Source from the content-addressed store, hash-verified

51}
52
53function 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
59export function groupMutatingForParallel(calls: ToolCall[]): ToolCall[][] {
60 if (calls.length <= 1) return calls.map(c => [c]);

Callers 1

groupMutatingForParallelFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected