feat(web): 项目配置面板补全——checks/自动放行/agentRules/预算/角色模型编辑
此前 checks、autoApprovePlan/Exec、agentRules、budgetUsd、models 只能经 API 改,
看板无编辑口。现扩展项目「配置」面板:
- 分项检查:lint / typecheck / build 三命令(拼成 checks JSON,全空=null)
- 硬闸/自动放行:autoApprovePlan / autoApproveExec 两个勾选
- 角色模型:executor/planner/reviewer/conflict 四个输入(填模型 id 字符串,
或 {"easy":..,"hard":..} JSON;留空=默认 opus-4.8;非法 JSON 提示报错)
- 项目 Agent 规范(agentRules)textarea
- 成本预算:budgetUsd + budgetPeriod(按天/月)
toggle-config 回填全部新字段;save-config 一并 PATCH。新增 zh/en i18n 标签 +
.cfg-subhead/.cfg-check 样式。web/ 静态、无需 rebuild。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -274,6 +274,19 @@ body::before {
|
||||
font-size: 11px; color: var(--muted); letter-spacing: .06em;
|
||||
margin-left: auto; padding-bottom: 7px;
|
||||
}
|
||||
/* 配置分组小标题 + 自动放行勾选 */
|
||||
.cfg-subhead {
|
||||
font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
|
||||
color: var(--muted); margin: 16px 0 6px; padding-top: 10px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.cfg-checks-row { gap: 22px; }
|
||||
label.cfg-check {
|
||||
flex-direction: row; align-items: center; gap: 7px;
|
||||
text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--ink);
|
||||
cursor: pointer;
|
||||
}
|
||||
label.cfg-check input { width: auto; cursor: pointer; }
|
||||
|
||||
/* ── Agent 执行面板 ──────────────────────────────────────── */
|
||||
.agent-total { color: var(--cyan); letter-spacing: .08em; }
|
||||
|
||||
Reference in New Issue
Block a user