@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
30 lines (29 loc) • 1.53 kB
TypeScript
/**
* @fileoverview Review generators for Anthropic models.
*
* This module provides functions for generating different types of code reviews
* using Anthropic's Claude models. It includes logic for single file reviews,
* consolidated reviews across multiple files, and architectural reviews.
*/
import { ProjectDocs } from '../../utils/projectDocs';
import { ReviewType, ReviewOptions, ReviewResult, FileInfo } from '../../types/review';
/**
* Generate a code review for a single file using the Anthropic API
* @param fileContent Content of the file to review
* @param filePath Path to the file
* @param reviewType Type of review to perform
* @param projectDocs Optional project documentation
* @param options Review options
* @returns Promise resolving to the review result
*/
export declare function generateAnthropicReview(fileContent: string, filePath: string, reviewType: ReviewType, projectDocs?: ProjectDocs | null, options?: ReviewOptions): Promise<ReviewResult>;
/**
* Generate a consolidated review for multiple files
* @param files Array of file information objects
* @param projectName Name of the project
* @param reviewType Type of review to perform
* @param projectDocs Optional project documentation
* @param options Review options
* @returns Promise resolving to the review result
*/
export declare function generateAnthropicConsolidatedReview(files: FileInfo[], projectName: string, reviewType: ReviewType, projectDocs?: ProjectDocs | null, options?: ReviewOptions): Promise<ReviewResult>;