@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
28 lines (27 loc) • 1.28 kB
TypeScript
/**
* This file contains bundled prompt templates that are included directly in the package,
* with support for the new Handlebars template system.
*
* IMPORTANT: This system now supports loading prompts from both bundled sources and
* the template system. The template system is preferred when available, with bundled
* prompts serving as a fallback.
*
* All prompts must be defined here and accessed through the getBundledPrompt function.
* This ensures that the system always has access to the prompts it needs, regardless of
* where it's installed or how it's packaged.
*/
import { ReviewType } from '../types/review';
export declare const USE_TEMPLATE_SYSTEM = true;
export declare const bundledPrompts: Record<string, Record<string, string>>;
/**
* Get a bundled prompt template with template system integration
*
* @param reviewType Type of review
* @param language Programming language
* @param framework Framework (optional)
* @returns The prompt template or undefined if not found
*
* This function checks for templates from the template system first,
* and falls back to bundled prompts if templates are not available.
*/
export declare function getBundledPrompt(reviewType: ReviewType, language?: string, framework?: string): string | undefined;