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

Function dependenciesOf

src/context/data-flow.ts:183–188  ·  view source on GitHub ↗
(rel: string, content: string, functionName: string)

Source from the content-addressed store, hash-verified

181 * depends on (free variables). Convenience wrapper for the data_flow tool.
182 */
183export async function dependenciesOf(rel: string, content: string, functionName: string): Promise<string[]> {
184 const flows = await analyzeDataFlow(rel, content);
185 const match = flows.find(f => f.name === functionName)
186 ?? flows.find(f => f.name.toLowerCase() === functionName.toLowerCase());
187 return match ? match.freeVars.map(v => v.name) : [];
188}

Callers 1

Calls 1

analyzeDataFlowFunction · 0.85

Tested by

no test coverage detected