@agnishc/edb-todo 0.8.2 → 0.10.4
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/CHANGELOG.md +29 -0
- package/README.md +145 -33
- package/package.json +1 -1
- package/src/auto-clear.ts +87 -0
- package/src/component.ts +194 -57
- package/src/config.ts +25 -0
- package/src/file-store.ts +408 -0
- package/src/index.ts +554 -108
- package/src/process-tracker.ts +146 -0
- package/src/prompt.ts +15 -11
- package/src/schemas.ts +52 -27
- package/src/state.ts +224 -97
- package/src/types.ts +14 -1
package/src/types.ts
CHANGED
|
@@ -5,10 +5,17 @@ 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
|
|
11
17
|
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
12
19
|
startedAt?: number;
|
|
13
20
|
completedAt?: number;
|
|
14
21
|
}
|
|
@@ -17,6 +24,12 @@ export interface TaskDetails {
|
|
|
17
24
|
tasks: Task[];
|
|
18
25
|
}
|
|
19
26
|
|
|
27
|
+
/** Serialized store format on disk. */
|
|
28
|
+
export interface TaskStoreData {
|
|
29
|
+
nextId: number;
|
|
30
|
+
tasks: Task[];
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
// ── Visual constants ───────────────────────────────────────────────────────────
|
|
21
34
|
|
|
22
35
|
export const STATUS_ICON: Record<TaskStatus, string> = {
|