feat(agent): 接通 plan 自动放行(autoApprovePlan)+ 项目配置可写

之前 auto_approve_plan/auto_approve_exec/checks 列与 Project 类型已存在,但
PatchProjectInput 不含它们 → 无法启用(dead config)。本次接通:
- PatchProjectInput + patchProject 支持 autoApprovePlan/autoApproveExec/checks
- API PATCH /projects 透传三字段
- ingest decompose-result:auto-approved + autoApprovePlan + 全 easy + 子任务≤5
  → store.decide(accept) 跳过 plan_review 直达 decomposed(默认关)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-24 22:13:18 +08:00
parent ecea1ae9b6
commit 73f80d27c9
107 changed files with 10970 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* 额度/用量计量条:LED 分段小灯 + 同色加粗百分比,用量分级自动变色(≤80% 青 / >80% 琥珀 / >95% 红),已用格带辉光。
*/
export interface QuotaMeterProps {
/** 左侧小标签,如 "5h" / "周" */
label?: string;
/** 用量百分比 0100 */
pct?: number;
/** 右侧弱化说明,如 "3h 8m 后重置" */
detail?: string;
/** 分段格数,默认 16 */
cells?: number;
style?: React.CSSProperties;
}
export declare function QuotaMeter(props: QuotaMeterProps): JSX.Element;