@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
31 lines (30 loc) • 1.17 kB
TypeScript
/**
* @fileoverview AI-powered dependency analysis for architectural reviews
*
* This module provides a dependency analysis approach that uses the AI model
* itself to analyze the project structure and dependencies, eliminating the
* need for external tools like dependency-cruiser that can cause installation issues.
*/
/**
* Result of the AI-based dependency analysis
*/
export interface AIDependencyAnalysisResult {
/** Summary of dependencies in the project */
dependencySummary: string;
/** Potential architectural issues identified */
architecturalIssues: string;
/** Package.json analysis */
packageAnalysis: string;
/** Import/export structure analysis */
codeStructureAnalysis: string;
/** Recommendations for dependency management */
recommendations: string;
/** Raw AI response for debugging */
rawResponse?: string;
}
/**
* Create a dependency analysis section for architectural reviews using AI
* @param projectPath The path to the project
* @returns Dependency analysis formatted for inclusion in reviews
*/
export declare function createAIDependencyAnalysis(projectPath: string): Promise<string>;