arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
66 lines • 1.73 kB
TypeScript
/**
* Types for architecture analysis
*/
export type ArchitectureType = 'horizontal' | 'vertical' | 'hybrid';
export interface ArchitectureScore {
horizontal: number;
vertical: number;
}
export interface CouplingCohesionScores {
coupling: number;
cohesion: number;
}
export interface RepoAnalysis {
name: string;
path: string;
architecture: ArchitectureType;
scores: ArchitectureScore;
metrics: CouplingCohesionScores;
directories: DirectoryAnalysis[];
issues: ArchitectureIssue[];
}
export interface DirectoryAnalysis {
path: string;
type: DirectoryType;
fileCount: number;
internalImports: number;
externalImports: number;
importedBy: number;
}
export type DirectoryType = 'layer' | 'feature' | 'module' | 'other';
export interface ArchitectureIssue {
severity: 'critical' | 'warning' | 'info';
title: string;
description: string;
affectedFiles?: number;
affectedDirs?: string[];
recommendation?: string;
}
export interface ApiDrift {
frontendCall: string;
backendEndpoint?: string;
match: 'exact' | 'partial' | 'missing';
file?: string;
line?: number;
}
export interface ArchitectureReport {
timestamp: string;
repositories: RepoAnalysis[];
overallArchitecture: ArchitectureType;
overallScores: ArchitectureScore;
globalMetrics: CouplingCohesionScores;
issues: ArchitectureIssue[];
apiDrift: ApiDrift[];
recommendations: string[];
effort?: {
estimated: string;
breakeven: string;
roi3Year: number;
};
}
export interface AnalyzeOptions {
verbose?: boolean;
output?: 'text' | 'json';
json?: boolean;
}
//# sourceMappingURL=types.d.ts.map