From 63d8e66bd6e566bc00c9698334a0e86857d6f03a Mon Sep 17 00:00:00 2001 From: huangzhuang_3rd Date: Thu, 13 Aug 2026 18:20:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20DAG=E5=8F=AF=E8=A7=86=E5=8C=96=E7=BC=96?= =?UTF-8?q?=E6=8E=92=E7=94=BB=E5=B8=83=20-=20=E5=9B=BE=E6=9F=A5=E8=AF=A2/?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=A2=9E=E5=88=A0=E6=8E=A5=E5=8F=A3=20+=20Re?= =?UTF-8?q?act=20Flow=E7=94=BB=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/types/index.ts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index 36ac8eb..79d38ff 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -386,7 +386,8 @@ export interface DagExecuteResult { execution_id?: number; status: string; message?: string; - results?: Array<{ + success?: boolean; + results?: Record | Array<{ task_id: number; status: string; output?: string; @@ -394,6 +395,36 @@ export interface DagExecuteResult { }>; } +// ============ DAG Canvas ============ + +export interface DagGraphNode { + id: number; + title: string; + status: TaskStatus; + priority: TaskPriority; + task_type: string; + worker_id?: number; + assignee_id?: number; + requires_review: boolean; +} + +export interface DagGraphEdge { + id: string; + source: number; + target: number; +} + +export interface DagGraph { + project_id: number; + nodes: DagGraphNode[]; + edges: DagGraphEdge[]; +} + +export interface DependencyPayload { + task_id: number; + depends_on_id: number; +} + // ============ Generic ============ export interface ApiError {