@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.28 kB
TypeScript
/**
* @fileoverview Consolidated review strategy implementation.
*
* This module implements the consolidated review strategy, which analyzes multiple files
* together to provide a comprehensive review of the codebase.
*/
import { BaseReviewStrategy } from './ReviewStrategy';
import { FileInfo, ReviewOptions, ReviewResult, ReviewType } from '../types/review';
import { ProjectDocs } from '../utils/projectDocs';
import { ApiClientConfig } from '../core/ApiClientSelector';
/**
* Strategy for consolidated reviews of multiple files
*/
export declare class ConsolidatedReviewStrategy extends BaseReviewStrategy {
/**
* Create a new consolidated review strategy
* @param reviewType Type of review to perform
*/
constructor(reviewType: ReviewType);
/**
* Execute the consolidated review strategy
* @param files Files to review
* @param projectName Project name
* @param projectDocs Project documentation
* @param options Review options
* @param apiClientConfig API client configuration
* @returns Promise resolving to the review result
*/
execute(files: FileInfo[], projectName: string, projectDocs: ProjectDocs | null, options: ReviewOptions, apiClientConfig: ApiClientConfig): Promise<ReviewResult>;
}