UNPKG

@bobmatnyc/ai-code-review

Version:

A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter

44 lines (43 loc) 1.45 kB
/** * @fileoverview Framework detection utility for AI Code Review * * This module analyzes project files to determine which framework is being used, * allowing for more specific prompts and improved review quality. */ /** * Framework detection result */ export interface FrameworkDetectionResult { /** Primary programming language detected */ language: string; /** Framework detected */ framework: string; /** Confidence level (0-1) */ confidence: number; /** Detection method used */ detectionMethod: string; /** Any additional frameworks detected */ additionalFrameworks?: string[]; /** CSS frameworks detected */ cssFrameworks?: { name: string; version?: string; confidence: number; }[]; /** Detected framework version */ frameworkVersion?: string; /** Framework type (ui, css, backend, etc.) */ frameworkType?: string; } /** * Detect frameworks used in a project * @param projectPath Path to project root directory * @returns Promise resolving to framework detection result */ export declare function detectFramework(projectPath: string): Promise<FrameworkDetectionResult | null>; /** * Detect the primary programming language used in a project * @param projectPath Path to project root directory * @returns Promise resolving to language name */ export declare function detectPrimaryLanguage(projectPath: string): Promise<string | null>;