feat: Phase2 完整管线——score 调度 + 自动复审 + 模型分级 + 归档与详情
调度: - model/scoring.ts: score = 自身分(P0=3/P1=2/P2=1) + 已完成依赖分(链条惯性) + 等待解锁的 blocked 任务分(解锁加权),编排器与 nextExecutable 同一打分 - createTask 校验 deps 存在且同项目(依赖图天然无环) - daemon 重启中断自愈: executing 任务标 failed run 后重新入队(reconcileInterrupted) 执行管线: - executor/cc.ts: 公共 headless CC 执行器(转录/超时/模型回退重试) - executor/reviewer.ts: 执行后自动复审(只读 CC 审 diff),固定模板 summary (做了什么/怎么做/测试/CodeReview/安全Review/结论) + VERDICT 解析 - executor/models.ts: 按复杂度选模型(easy→sonnet/medium→opus/hard→fable5), env 可覆盖、project.model 最优先、不可用自动回退链 - runner: 测试/构建命令白名单(npm/go/shellcheck/make/pytest),prompt 要求实跑测试 - TaskResult 加 summary/verdict; RunKind 加 reviewer - 容器收口: 已拆解 Hard 子任务全 done → 容器自动 done(afterDone 逐级向上) 看板: - 五徽章组(待审批/待执行/执行中/被阻塞/总量,hover 展开,均不含已完成) - 归档区: 深度1整树完成沉底,时间倒序分页(10/20/50/100 chip 选择) - 归档详情对话框: 全属性/执行历史与时长/审批记录/状态流转时间线(含相关人或事) - Agent 面板显示调度模式 + 各复杂度实际模型 - 结果闸展示复审 summary + 建议通过/拒绝徽章 - 筛选修复(组选与单选分离、已拆解移出进行中)、同步按钮收进配置面板、 保存配置自动收起、预览全宽、被依赖阻塞→被阻塞 - API: GET /api/tasks/:id/events(任务级事件时间线)、/api/agents 带 scheduling/models 测试: 49/49(新增 scoring/复审/模型/容器收口/deps 校验/中断恢复) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -415,6 +415,19 @@ textarea { resize: vertical; min-height: 72px; width: 100%; }
|
||||
.cplx-medium { color: var(--amber); border-color: var(--amber-dim); background: rgba(240,180,41,.07); }
|
||||
.cplx-easy { color: var(--green); border-color: var(--green-dim); background: rgba(95,221,125,.07); }
|
||||
|
||||
/* 复审结论徽章(exec_review 闸 / RESULT 区块) */
|
||||
.verdict {
|
||||
display: inline-block; vertical-align: 1px; flex: none;
|
||||
font-size: 10px; font-weight: 700; letter-spacing: .14em;
|
||||
padding: 1px 7px; margin-left: 6px; border: 1px solid;
|
||||
}
|
||||
.verdict-approve { color: var(--green); border-color: var(--green-dim); background: rgba(95,221,125,.1); }
|
||||
.verdict-reject { color: var(--red); border-color: var(--red-dim); background: rgba(255,93,93,.1); }
|
||||
.verdict-none { color: var(--muted); border-color: var(--line); background: rgba(140,150,140,.08); }
|
||||
|
||||
/* 复审 SUMMARY 区块:略加边框突出 */
|
||||
.review-summary { border-left: 2px solid var(--line); padding-left: 10px; }
|
||||
|
||||
/* 复杂度徽章可点 + 下拉 */
|
||||
.cplx-wrap { position: relative; display: inline-flex; flex: none; }
|
||||
button.cplx { font-family: var(--mono); cursor: default; }
|
||||
@@ -693,3 +706,51 @@ li.ev-updated { --ev: var(--muted); }
|
||||
0%, 35% { background: var(--amber-dim); box-shadow: inset 2px 0 0 var(--amber); }
|
||||
100% { background: transparent; box-shadow: none; }
|
||||
}
|
||||
|
||||
/* 徽章组扩展:被阻塞 / 总量 */
|
||||
.bdg-blocked { color: var(--amber); border: 1px dashed var(--amber-dim); }
|
||||
.bdg-total { color: var(--ink); border: 1px solid var(--line); }
|
||||
|
||||
/* ── 归档区 ── */
|
||||
#archiveSection { margin-top: 28px; opacity: .82; }
|
||||
.archive-row {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 7px 12px; font-size: 12.5px;
|
||||
border-bottom: 1px dashed var(--line-soft);
|
||||
}
|
||||
.archive-row:hover { background: var(--panel); }
|
||||
.archive-row .t-title { color: var(--muted); }
|
||||
.archive-subs { flex: none; font-size: 10.5px; color: var(--faint); }
|
||||
.archive-time { flex: none; font-size: 11px; color: var(--faint); }
|
||||
.archive-size { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
|
||||
.archive-size select { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); padding: 2px 6px; font-family: var(--mono); }
|
||||
.archive-pager { display: flex; align-items: center; gap: 12px; padding: 10px 0; justify-content: center; }
|
||||
.archive-page { font-size: 11px; color: var(--muted); }
|
||||
|
||||
/* 归档详情:状态流转时间线 */
|
||||
.tl { display: grid; gap: 0; margin-top: 4px; }
|
||||
.tl-item {
|
||||
display: flex; gap: 12px; align-items: baseline;
|
||||
padding: 5px 0 5px 14px; font-size: 12px;
|
||||
border-left: 2px solid var(--line);
|
||||
position: relative;
|
||||
}
|
||||
.tl-item::before {
|
||||
content: ''; position: absolute; left: -4px; top: 11px;
|
||||
width: 6px; height: 6px; border-radius: 50%; background: var(--green-dim);
|
||||
}
|
||||
.tl-time { flex: none; color: var(--faint); font-size: 11px; min-width: 150px; }
|
||||
.tl-text { color: var(--ink); }
|
||||
.tl-who { color: var(--muted); font-size: 11px; }
|
||||
.archive-row { cursor: pointer; }
|
||||
|
||||
/* 顶栏动作不换行(同步 todo / 配置 按钮文字曾被挤成两行) */
|
||||
.top-actions { flex-wrap: nowrap; }
|
||||
.top-actions .btn, .sync-meta { white-space: nowrap; }
|
||||
|
||||
/* 归档分页底栏:尺寸 chip 组替代原生下拉 */
|
||||
.archive-size-chips { display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; }
|
||||
.archive-size-label { font-size: 11px; color: var(--faint); margin-right: 2px; }
|
||||
|
||||
/* 配置面板内的同步行 */
|
||||
.cfg-sync-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); align-items: center; gap: 10px; }
|
||||
|
||||
Reference in New Issue
Block a user