feat: strengthen task workflow and compaction recovery

This commit is contained in:
lesetong
2026-07-23 01:23:10 +08:00
parent fe05b278a4
commit 7d876735b2
13 changed files with 380 additions and 81 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ export type TaskStatus = "pending" | "in-progress" | "blocked" | "done";
export interface Task {
id: number;
name: string;
description: string;
description?: string;
status: TaskStatus;
parentId: number | null;
childrenIds: number[];
@@ -16,7 +16,7 @@ export interface TaskSnapshot {
export interface AddTaskDraft {
name: string;
description: string;
description?: string;
status?: TaskStatus;
parentId?: number;
children?: AddTaskDraft[];
@@ -40,7 +40,7 @@ export interface TaskStats {
}
export interface TaskToolDetails {
action: "add" | "update" | "remove" | "list" | "get";
action: "add" | "append" | "replace" | "update" | "remove" | "list" | "get";
snapshot: TaskSnapshot;
affected: Task[];
errors?: string[];