/** * 模型选择器 * * @deprecated 仅 SDD Engine 模式(默认模式)使用。 * Host-Driven 模式下,模型选择指导已迁移到 SKILL.md 文件中: * - `execution-sdd-orchestrator/SKILL.md` — 编排层模型选择 * - `execution-subagent-dispatch/SKILL.md` — 子代理派发模型选择表 * - `using-specpow/SKILL.md` — 快速参考表 * * 来自 Superpowers 的成本优化策略: * 使用能胜任的最低级别模型,节省成本和提升速度。 * * 模型分级: * - cheap: 机械性实现任务(单文件、明确规范) * - standard: 集成和判断任务(多文件协调) * - capable: 架构设计和最终审查 */ export type ModelTier = 'cheap' | 'standard' | 'capable'; export interface ModelConfig { cheap: string; standard: string; capable: string; } export declare class ModelSelector { private config; constructor(config?: Partial); /** * 为任务选择实现者模型 * * 复杂度信号: * - 涉及 1-2 个文件 + 完整规范 → cheap * - 涉及多文件 + 集成关注 → standard * - 需要设计判断 + 广泛代码库理解 → capable */ selectImplementerModel(fileCount: number, hasCompleteSpec: boolean, requiresDesignJudgment: boolean): string; /** * 为审查者选择模型 * * 根据 diff 的大小、复杂度和风险选择 */ selectReviewerModel(diffSize: number, isComplexChange: boolean): string; /** * 最终审查始终使用最强模型 */ getFinalReviewModel(): string; /** * 修复轮次 4-5 升级模型 */ getEscalatedModel(currentModel: string): string; /** * 获取模型配置 */ getConfig(): ModelConfig; } //# sourceMappingURL=model-selector.d.ts.map