UNPKG

arela

Version:

AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.

39 lines 1.18 kB
/** * Directory pattern detection for horizontal vs vertical architecture */ import { DirectoryAnalysis } from "./types.js"; export interface DirectoryStats { path: string; depth: number; fileName: string; isLayerDir: boolean; isFeatureDir: boolean; fileCount: number; } /** * Analyze directory structure and classify as layer or feature directory */ export declare function analyzeDirectoryStructure(files: Array<{ path: string; type: string; }>): Map<string, DirectoryAnalysis>; /** * Determine if architecture is primarily horizontal or vertical */ export declare function classifyArchitecture(directories: Map<string, DirectoryAnalysis>): { type: 'horizontal' | 'vertical' | 'hybrid'; score: number; }; /** * Extract top-level directories from file paths */ export declare function getTopLevelDirs(filePaths: string[]): Set<string>; /** * Detect if a directory follows a layer pattern */ export declare function isLayerDirectory(dirName: string): boolean; /** * Detect if a directory follows a feature pattern */ export declare function isFeatureDirectory(dirName: string): boolean; //# sourceMappingURL=patterns.d.ts.map