feat(models/protocol/types): 模型档位优化+协议扩展

- models.ts: 回退链加 fable-5 首位;planner 按复杂度分化(sonnet/opus/fable);reviewer 全升 fable-5;加 conflict 角色,reviewer/conflict 不受 project.model 覆盖
- protocol.ts: RunKind 加 conflict;DecomposeResult.subtasks 扩展 priority/deps 字段;OutboxRecord decompose-result 同步对齐
- types.ts: Project 加 autoApprovePlan / autoApproveExec / checks 可选字段

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-14 12:18:02 +08:00
parent 90d963312f
commit fa19ff6de1
3 changed files with 42 additions and 17 deletions
+5
View File
@@ -26,6 +26,11 @@ export interface Project {
sortOrder: number; // 侧栏排序(小在前)
createdAt: string;
lastSyncAt: string | null; // 最近一次 todo.json 同步完成时间
/** 项目级自动放行开关(auto-approved autonomy 下才生效)*/
autoApprovePlan?: boolean; // decompose 全 easy 时跳过 plan_review(默认 false
autoApproveExec?: boolean; // 双复审 approve 后跳过 exec_review 自动合并(默认 false
/** 分项检查命令(JSON,如 {"lint":"npm run lint","typecheck":"npm run typecheck"}*/
checks?: string | null;
}
export interface ApprovalRecord {