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

Function dependenciesIn

src/ui-server/api/steps.ts:359–363  ·  view source on GitHub ↗

FastAPI: `dependencies=[Depends(auth), Depends(rate_limit)]` inside the route decorator.

(text: string)

Source from the content-addressed store, hash-verified

357
358/** FastAPI: `dependencies=[Depends(auth), Depends(rate_limit)]` inside the route decorator. */
359function dependenciesIn(text: string): string[] {
360 const m = /dependencies\s*=\s*\[([^\]]*)\]/.exec(text);
361 if (!m) return [];
362 return m[1]!.split(/,(?![^()]*\))/).map((x) => x.trim()).filter(Boolean);
363}
364
365// =============================================================================
366// The endpoint

Callers 1

chainForFunction · 0.85

Calls 2

mapMethod · 0.80
execMethod · 0.65

Tested by

no test coverage detected