UNPKG

@samiyev/guardian

Version:

Research-backed code quality guardian for AI-assisted development. Detects hardcodes, secrets, circular deps, framework leaks, entity exposure, and 9 architecture violations. Enforces Clean Architecture/DDD principles. Works with GitHub Copilot, Cursor, W

27 lines 783 B
import { BaseEntity } from "./BaseEntity"; import { SourceFile } from "./SourceFile"; interface GraphNode { file: SourceFile; dependencies: string[]; dependents: string[]; } /** * Represents dependency graph of the analyzed project */ export declare class DependencyGraph extends BaseEntity { private readonly nodes; constructor(id?: string); addFile(file: SourceFile): void; addDependency(from: string, to: string): void; getNode(filePath: string): GraphNode | undefined; getAllNodes(): GraphNode[]; findCycles(): string[][]; getMetrics(): { totalFiles: number; totalDependencies: number; avgDependencies: number; maxDependencies: number; }; } export {}; //# sourceMappingURL=DependencyGraph.d.ts.map