import { MultiDbManager } from '../../core/multi-db-manager'; import { IdMapper } from '../../core/id-mapper'; /** * MCP Tool: adr_generator * Deterministically reconstructs ADRs from 5D dimensions. * Uses similar modules, existing ADRs, and patterns to reconstruct implicit knowledge. */ export declare class AdrGeneratorTool { private crossDimensionApi; private moduleApi; private patternAnalyzer; private patternMatcher; private contextBuilder; private reasoningService; private workspaceRoot; private dbManager; private idMapper; constructor(dbManager: MultiDbManager, idMapper: IdMapper, workspaceRoot: string); /** * Executes the adr_generator tool. * Reconstructs ADRs for modules without ADRs. * * @param args Arguments: pluginId, minDependencies (default: 5), dryRun (default: false), limit (default: 10), useLLM (default: false), llmModel (default: gpt-4o-mini) * @returns JSON string with generation results */ execute(args: { pluginId: string; minDependencies?: number; dryRun?: boolean; limit?: number; useLLM?: boolean; llmModel?: string; }): Promise; /** * Calculates module complexity based on dependencies, symbols, and incoming dependencies. * Returns 'simple', 'medium', or 'complex'. * * Rules: * - >= 20 dependencies → automatically 'complex' * - >= 15 incoming dependencies → automatically 'complex' * - >= 30 symbols → automatically 'complex' * - Otherwise: scoring system */ private calculateComplexity; /** * Reconstructs an ADR from 5D dimensions (with optional LLM for "Why"). */ private reconstructAdr; /** * Reconstructs Refactoring Recommendations section from LLM reasoning. * Skips recommendations for simple modules. */ private reconstructRefactoringRecommendations; /** * Reconstructs Status section. */ private reconstructStatus; /** * Reconstructs Context section from module context and similar ADRs. * Uses LLM reasoning if available for problem identification. * Adjusts detail level based on module complexity. */ private reconstructContext; /** * Parses module documentation markdown to extract structured information. */ private parseModuleDocumentation; /** * Reconstructs Decision section from patterns and similar ADRs. * Uses LLM reasoning if available for decision and rationale. * Adjusts detail level based on module complexity. */ private reconstructDecision; /** * Analyzes decision structure from similar ADR. */ private analyzeDecisionStructure; /** * Deep adaptation of decision text with module-specific details. */ private adaptDecisionTextDeep; /** * Adapts decision text from similar ADR to target module. */ private adaptDecisionText; /** * Generates decision text from patterns with module-specific details. */ private generateDecisionFromPatterns; /** * Reconstructs Consequences section from dependencies and context. * Uses LLM reasoning if available for trade-offs. * Adjusts detail level based on module complexity. * For complex modules, uses structured format with ✅ and ⚠️ (similar to ADR-038). */ private reconstructConsequences; /** * Reconstructs Verweise section from dependencies and similar ADRs. */ private reconstructVerweise; /** * Reconstructs Implementation section for complex modules (similar to ADR-038). * Includes technical details, affected components, and implementation notes. */ private reconstructImplementation; /** * Extracts title from module or similar ADRs. */ private extractTitle; /** * Finds the next available ADR number. */ private findNextAdrNumber; /** * Formats ADR number with leading zeros. */ private formatAdrNumber; /** * Generates a URL-friendly slug from file path. */ private generateSlug; } //# sourceMappingURL=adr-generator.d.ts.map