UNPKG

@bobmatnyc/ai-code-review

Version:

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

29 lines (28 loc) 1.18 kB
/** * @fileoverview Utilities for implementing code review fixes * * This module provides functions for applying fixes from code review suggestions * to the corresponding files. Currently it only provides a placeholder for future * implementation as automatic fixes are not fully supported. */ import { FixSuggestion } from './types'; import readline from 'readline'; /** * Create a readline interface for user input */ export declare function createReadlineInterface(): readline.Interface; /** * Prompt the user for confirmation * @param message Message to display to the user * @returns Promise resolving to boolean indicating user's response */ export declare function promptForConfirmation(message: string): Promise<boolean>; /** * This function is a placeholder for future functionality. * Currently, the AI code review tool does not automatically apply fixes. * It only provides suggestions that developers must review and implement manually. * * @param suggestion The fix suggestion to apply * @returns Always returns false as automatic fixes are not supported */ export declare function applyFixToFile(suggestion: FixSuggestion): Promise<boolean>;