Spaces:
Running
Running
| import type { DashboardNode, DashboardEdge, DashboardLayer } from '../../types/dashboard.js'; | |
| /** | |
| * Detects architectural layers by grouping nodes based on tags | |
| * and directory structure. | |
| * | |
| * Layer detection strategy (priority order): | |
| * 1. Check node tags for known patterns (component, api, model, util, test) | |
| * 2. Fall back to grouping by first directory segment | |
| * 3. Root files (no directory) go to "Root" layer | |
| * | |
| * @param nodes - All graph nodes to classify into layers | |
| * @param edges - Graph edges (unused, reserved for future dependency analysis) | |
| * @returns Array of detected layers with assigned node IDs | |
| */ | |
| export declare function detectLayers(nodes: DashboardNode[], edges: DashboardEdge[]): DashboardLayer[]; | |