/** * Task Decomposer * * Responsável por decompor features em tasks mecânicas * executáveis pelo loop Ralph Wiggum. */ import { Task, NormalizedInput, DecomposeOptions, DecomposeResult, ActionType, Criterion } from '../../shared/types/index.js'; /** * Tipo de heurística disponível */ export type HeuristicType = 'crud' | 'refactor' | 'migration' | 'auto'; /** * Detecta o tipo de ação baseado na descrição normalizada */ export declare function detectActionType(description: string): ActionType; /** * Detecta a heurística mais apropriada para a feature */ export declare function detectHeuristic(input: NormalizedInput): HeuristicType; /** * Decompõe uma feature em tasks executáveis */ export declare function decompose(input: NormalizedInput, options?: DecomposeOptions): DecomposeResult; /** * Resolve e valida dependências entre tasks */ export declare function resolveDependencies(tasks: Task[]): Task[]; /** * Cria uma task com valores padrão */ export declare function createTask(id: string, name: string, options?: Partial>): Task; /** * Cria critérios comuns para diferentes tipos de verificação */ export declare function createCommonCriteria(techContext: { buildTool?: string | undefined; testFramework?: string | undefined; language?: string | undefined; }): { buildCriterion: () => Criterion; testCriterion: () => Criterion; fileCriterion: (path: string, description: string) => Criterion; }; /** * Extrai nome de entidade da descrição */ export declare function extractEntityName(description: string): string; /** * Gera ID único para task */ export declare function generateTaskId(prefix: string, index: number): string; //# sourceMappingURL=task-decomposer.d.ts.map