@agnishc/edb-todo 0.8.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -5,20 +5,36 @@ export type TaskPriority = "high" | "medium" | "low";
5
5
 
6
6
  export interface Task {
7
7
  id: string;
8
- content: string;
8
+ content: string; // main title / subject
9
+ description?: string; // detailed description (optional)
9
10
  status: TaskStatus;
10
11
  priority: TaskPriority;
12
+ activeForm?: string; // spinner text when in_progress (e.g. "Running tests")
13
+ owner?: string; // agent name / owner
14
+ metadata: Record<string, any>;
15
+ blocks: string[]; // task IDs this task blocks
16
+ blockedBy: string[]; // task IDs that block this task
17
+ createdAt: number;
18
+ updatedAt: number;
19
+ startedAt?: number;
20
+ completedAt?: number;
11
21
  }
12
22
 
13
23
  export interface TaskDetails {
14
24
  tasks: Task[];
15
25
  }
16
26
 
27
+ /** Serialized store format on disk. */
28
+ export interface TaskStoreData {
29
+ nextId: number;
30
+ tasks: Task[];
31
+ }
32
+
17
33
  // ── Visual constants ───────────────────────────────────────────────────────────
18
34
 
19
35
  export const STATUS_ICON: Record<TaskStatus, string> = {
20
36
  pending: "○",
21
- in_progress: "",
37
+ in_progress: "",
22
38
  completed: "✓",
23
39
  };
24
40