/** * Template Generator Service * * Generates phase documents (spec, plan, tasks) from templates * with variable replacement and context enhancement. */ import type { MemoryService } from "./memory/index.js"; /** * Service for generating workflow documents from templates. * * Loads and renders templates with variable substitution, integrates * with memory service for context, and applies learned corrections. */ export declare class TemplateGenerator { private projectRoot; private memoryService?; private templatesPath; private correctionService; /** * @param projectRoot - Root directory of the project * @param memoryService - Optional memory service for context */ constructor(projectRoot: string, memoryService?: MemoryService | undefined); /** * Load a template file */ loadTemplate(templateName: string): Promise; /** * Replace variables in template content */ private replaceVariables; /** * Get current git branch name */ private getCurrentBranch; /** * Get corrections context for current task */ private getCorrectionsContext; /** * Enrich content with memory and corrections context */ private enrichPromptWithContext; /** * Generate specification prompt (command + template) * Returns prompt for AI to execute, not filled content */ generateSpecPrompt(description: string): Promise; /** * Generate clarify prompt (command + current spec) * Returns prompt for AI to execute, not filled content */ generateClarifyPrompt(workflowId: string): Promise; /** * Generate plan prompt (command + template) * Returns prompt for AI to execute, not filled content */ generatePlanPrompt(workflowId: string): Promise; /** * Generate review prompt (command + context) * Returns prompt for AI to execute technical review */ generateReviewPrompt(workflowId: string): Promise; /** * Generate tasks prompt (command + template) * Returns prompt for AI to execute, not filled content */ generateTasksPrompt(workflowId: string): Promise; /** * Generate implement prompt (command only, no template) * Implementation phase uses commands to coordinate execution */ generateImplementPrompt(workflowId: string): Promise; /** * Generate checklist */ generateChecklist(checklistType: string, featureName: string): Promise; } //# sourceMappingURL=template-generator.d.ts.map