UNPKG

@bobmatnyc/ai-code-review

Version:

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

35 lines (34 loc) 1.34 kB
/** * Prompt Template Manager * * This utility provides an interface between the bundledPrompts system * and the new Handlebars template system, enabling a smooth migration. */ import { ReviewType } from '../../types/review'; /** * Get prompt template for the specified review type, language, and framework * * @param reviewType The type of review to get a prompt for * @param language The programming language (optional) * @param framework The framework (optional) * @returns The prompt template string or undefined if not found */ export declare function getPromptTemplate(reviewType: ReviewType | string, language?: string, framework?: string): string | undefined; /** * Check if templates directory exists and is properly structured * * @returns true if templates are available, false otherwise */ export declare function checkTemplatesAvailability(): boolean; /** * Get a list of supported frameworks and languages * * @returns Object containing arrays of supported frameworks, languages, and review types */ export declare function getSupportedTemplates(): Record<string, string[]>; declare const _default: { getPromptTemplate: typeof getPromptTemplate; checkTemplatesAvailability: typeof checkTemplatesAvailability; getSupportedTemplates: typeof getSupportedTemplates; }; export default _default;