MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / groupOf

Function groupOf

scripts/agent-eval/probe-allocation.mjs:86–91  ·  view source on GitHub ↗
(path, groups)

Source from the content-addressed store, hash-verified

84}
85
86const groupOf = (path, groups) => {
87 for (const [name, globs] of Object.entries(groups)) {
88 if (globs.some((g) => globToRegExp(g).test(path))) return name;
89 }
90 return 'other';
91};
92
93/**
94 * Run one explore call with the diagnostic pointed at a sidecar, and return the

Callers 1

evaluateFunction · 0.85

Calls 1

globToRegExpFunction · 0.85

Tested by

no test coverage detected