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

Method getModuleAggregation

src/index.ts:2649–2659  ·  view source on GitHub ↗

* Roll the edge table up to module granularity, for a file → module * assignment the caller decides. * * The architecture map's single query: cross-module edge counts by kind, * the `declared` subset of each (see QueryBuilder.aggregateModuleGraph), * and the busiest symbol pai

(
    assignments: ReadonlyArray<{ filePath: string; module: string }>,
    options: {
      kinds: readonly Edge['kind'][];
      minConfidence: number;
      topPairsPerLink: number;
      pairKinds: readonly Edge['kind'][];
    }
  )

Source from the content-addressed store, hash-verified

2647 * the number of modules rather than the number of edges.
2648 */
2649 getModuleAggregation(
2650 assignments: ReadonlyArray<{ filePath: string; module: string }>,
2651 options: {
2652 kinds: readonly Edge['kind'][];
2653 minConfidence: number;
2654 topPairsPerLink: number;
2655 pairKinds: readonly Edge['kind'][];
2656 }
2657 ): ReturnType<QueryBuilder['aggregateModuleGraph']> {
2658 return this.queries.aggregateModuleGraph(assignments, options);
2659 }
2660
2661 /**
2662 * Every ordered pair of files where one reaches into the other. See

Callers 1

buildMapFunction · 0.80

Calls 1

aggregateModuleGraphMethod · 0.80

Tested by

no test coverage detected