feat(KB-007): add manual plan approval setting
- Add requirePlanApproval setting to core types and dashboard config - Add approve-plan and reject-plan API endpoints with handlers - Add approve/reject UI buttons to TaskDetailModal for awaiting-approval tasks - Update triage processor to check requirePlanApproval and set awaiting-approval status - Add comprehensive tests for API endpoints, UI components, and triage logic - Update AGENTS.md with documentation for the new setting
This commit is contained in:
@@ -75,6 +75,14 @@ export function unpauseTask(id: string): Promise<Task> {
|
||||
return api<Task>(`/tasks/${id}/unpause`, { method: "POST" });
|
||||
}
|
||||
|
||||
export function approvePlan(id: string): Promise<Task> {
|
||||
return api<Task>(`/tasks/${id}/approve-plan`, { method: "POST" });
|
||||
}
|
||||
|
||||
export function rejectPlan(id: string): Promise<Task> {
|
||||
return api<Task>(`/tasks/${id}/reject-plan`, { method: "POST" });
|
||||
}
|
||||
|
||||
export function fetchConfig(): Promise<{ maxConcurrent: number }> {
|
||||
return api<{ maxConcurrent: number }>("/config");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user