cyclic-dependency-fixer
Version:
AI-powered tool to detect and fix circular dependencies in JavaScript/TypeScript projects. Features intelligent refactoring with Claude/GPT-4, codebase pattern learning, and context-aware fix recommendations
27 lines • 1.28 kB
TypeScript
import { IAIProvider } from '../../domain/interfaces/IAIProvider';
import { IFixStrategy } from '../../domain/interfaces/IFixStrategy';
import { Cycle, Module, ModulePath, FixStrategy as FixStrategyEnum } from '../../domain/models/types';
import { IFileSystem } from '../../domain/interfaces/IFileSystem';
import { ArchitectureAnalysis } from './CodebasePatternAnalyzer';
export interface StrategyRecommendation {
readonly strategy: FixStrategyEnum;
readonly confidence: number;
readonly reasoning: string;
readonly steps: readonly string[];
readonly risks: readonly string[];
readonly alternatives: readonly {
readonly strategy: FixStrategyEnum;
readonly confidence: number;
}[];
}
export declare class AIStrategySelector {
private readonly aiProvider;
private readonly fileSystem;
constructor(aiProvider: IAIProvider, fileSystem: IFileSystem);
recommendStrategy(cycle: Cycle, modules: ReadonlyMap<ModulePath, Module>, codebaseAnalysis: ArchitectureAnalysis, availableStrategies: readonly IFixStrategy[]): Promise<StrategyRecommendation | null>;
private extractCycleCode;
private buildStrategyPrompt;
private describeCycle;
private parseRecommendation;
}
//# sourceMappingURL=AIStrategySelector.d.ts.map