UNPKG

@bobmatnyc/ai-code-review

Version:

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

25 lines (24 loc) 1.07 kB
/** * @fileoverview Review orchestrator module. * * This module is responsible for coordinating the review process, * selecting the appropriate API client, and managing the review workflow. */ import { ReviewOptions } from '../types/review'; /** * Orchestrate the code review process * * This function is the main entry point for the code review process. It coordinates * the entire review workflow, including: * - Validating inputs and environment variables * - Selecting the appropriate API client based on available API keys * - Discovering files to review * - Handling different review types (consolidated, individual, architectural) * - Managing output directories and file generation * - Supporting interactive mode for real-time feedback * * @param target Path to the file or directory to review * @param options Review options including type, output format, and interactive mode * @throws Error if the review process fails for any reason */ export declare function orchestrateReview(target: string, options: ReviewOptions): Promise<void>;