From a3bbb575e83579342d0f81cda9ac999b5d50dad5 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 11:52:08 +0800 Subject: [PATCH] auto-sync: 2026-05-18 11:52:08 --- src/frontend/src/api.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 {