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

23 lines 819 B
import { BaseEntity } from "./BaseEntity"; import { ProjectPath } from "../value-objects/ProjectPath"; /** * Represents a source code file in the analyzed project */ export declare class SourceFile extends BaseEntity { private readonly _path; private readonly _content; private readonly _imports; private readonly _exports; private readonly _layer?; constructor(path: ProjectPath, content: string, imports?: string[], exports?: string[], id?: string); get path(): ProjectPath; get content(): string; get imports(): string[]; get exports(): string[]; get layer(): string | undefined; addImport(importPath: string): void; addExport(exportName: string): void; private detectLayer; importsFrom(layer: string): boolean; } //# sourceMappingURL=SourceFile.d.ts.map