@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
25 lines • 1.1 kB
TypeScript
/**
* Shared Prompt Loader
*
* Loads prompt templates from files and replaces variables using Handlebars
* Following CLAUDE.md guidelines for file-based prompts
*
* Extracted from unified-creation-session.ts to be shared across all creation workflows
* Extended to support custom base directories and file extensions
*/
/**
* Load template from file and replace variables using Handlebars
*
* @param templateName - Name of the template file (without extension)
* @param variables - Key-value pairs to replace in template
* @param baseDir - Base directory (relative to project root or absolute path; default: 'prompts')
* @param fileExtension - File extension (default: '.md')
* @returns Processed template content
*
* Supports Handlebars syntax:
* - {{variable}} - Variable interpolation
* - {{#if variable}}...{{/if}} - Conditional blocks
* - {{#each array}}...{{/each}} - Iteration
*/
export declare function loadPrompt(templateName: string, variables?: Record<string, unknown>, baseDir?: string, fileExtension?: string): string;
//# sourceMappingURL=shared-prompt-loader.d.ts.map