UNPKG

@bobmatnyc/ai-code-review

Version:

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

32 lines (31 loc) 1.34 kB
/** * @fileoverview Consolidated review strategy implementation. * * This module implements a consolidated review strategy using the abstract strategy * base class. It handles reviewing multiple files as a consolidated unit, using * the appropriate API client for the selected model. */ import { AbstractStrategy } from '../base'; import { FileInfo, ReviewOptions, ReviewResult, ReviewType } from '../../types/review'; import { ProjectDocs } from '../../utils/projectDocs'; import { ApiClientConfig } from '../../core/ApiClientSelector'; /** * Strategy for consolidated code reviews */ export declare class ConsolidatedReviewStrategy extends AbstractStrategy { /** * Constructor * @param reviewType The type of review to perform */ constructor(reviewType: ReviewType); /** * Execute the consolidated review strategy * @param files Array of file information objects * @param projectName Name of the project * @param projectDocs Optional 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>; }