@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
34 lines (33 loc) • 1.36 kB
TypeScript
/**
* @fileoverview Stack-aware package analyzer for detecting and analyzing dependencies
*
* This module enhances the standard package analyzer with tech stack awareness,
* allowing it to find and analyze dependencies specific to different frameworks
* and technology stacks.
*/
import { PackageAnalysisResult, PackageInfo } from './packageAnalyzer';
import { DetectedStack } from './dependencyRegistry';
/**
* Result of stack-aware package analysis
*/
export interface StackAwarePackageAnalysisResult {
detectedStacks: DetectedStack[];
primaryStack?: DetectedStack;
packageResults: PackageAnalysisResult[];
allPackages: PackageInfo[];
productionPackages: PackageInfo[];
devPackages: PackageInfo[];
frameworkPackages: PackageInfo[];
}
/**
* Analyze dependencies with stack awareness
* @param projectPath The path to the project directory
* @returns Promise with stack-aware package analysis results
*/
export declare function analyzePackagesWithStackAwareness(projectPath: string): Promise<StackAwarePackageAnalysisResult>;
/**
* Get a summary of stack information and package counts
* @param analysisResult The stack-aware package analysis result
* @returns An HTML formatted summary of the stack and packages
*/
export declare function formatStackSummary(analysisResult: StackAwarePackageAnalysisResult): string;