diff --git a/src/frontend/src/api.ts b/src/frontend/src/api.ts index 2525f1a..d844940 100644 --- a/src/frontend/src/api.ts +++ b/src/frontend/src/api.ts @@ -276,6 +276,15 @@ export interface FlowEntry { at: string; from: string; to: string; remark: strin export interface TodoItem { id: string | number; title: string; status: 'not-started' | 'in-progress' | 'completed'; detail?: string; } export interface Heartbeat { status: 'active' | 'warn' | 'stalled' | 'unknown' | 'idle'; label: string; } +export interface StageInfo { id: string; label: string; order: number; total: number; done: number; active: number; } + +export interface TaskProgress { + task_id: string; title: string; + total_subtasks: number; done_subtasks: number; + active_stage: string | null; + stages: StageInfo[]; +} + export interface Task { id: string; title: string; state: string; org: string; now: string; eta: string; block: string; ac: string; output: string; @@ -285,6 +294,10 @@ export interface Task { status?: string; plan_status?: string; nodes?: TaskNode[]; latest_event?: TaskEvent; sourceMeta?: Record; activity?: ActivityEntry[]; _prev_state?: string; + parent_task?: string | null; + stage?: string | null; + stages_json?: string; + progress?: TaskProgress; } export interface TaskNode {