From 1d98b463ac79905b542d45d632e5135ea90af585 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 9 Nov 2025 07:18:18 -0500 Subject: Implement epic and task types to replace project field Major refactoring of task data model: - Added TaskType enum (Epic | WorkTask) - Replaced taskProject with taskType and taskParent fields - Epics are containers for tasks (hierarchical organization) - Tasks can have optional parent epics - Updated createTask signature to accept type and parent - Updated CLI: --type=epic|task and --parent= options - Updated list command to filter by type and parent - Updated printTask to display type and parent info - Fixed naming collision (WorkTask instead of Task constructor) Example usage: task create "Auth System" --type=epic task create "Design API" --type=task --parent=t-abc123 task list --type=epic task list --parent=t-abc123 Completed task: t-8WR5Zg Amp-Thread-ID: https://ampcode.com/threads/T-85f4ee29-a529-4f59-ac6f-6ffec75b6a56 Co-authored-by: Amp --- .tasks/tasks.jsonl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.tasks') diff --git a/.tasks/tasks.jsonl b/.tasks/tasks.jsonl index d43d37a..a58fee2 100644 --- a/.tasks/tasks.jsonl +++ b/.tasks/tasks.jsonl @@ -1,3 +1,2 @@ -{"taskCreatedAt":"2025-11-08T21:41:26.038817033Z","taskDependencies":[],"taskId":"t-1nex3MX","taskNamespace":null,"taskProject":"test-project","taskStatus":"Open","taskTitle":"Test task","taskUpdatedAt":"2025-11-08T21:41:26.038817033Z"} -{"taskCreatedAt":"2025-11-08T21:41:26.048075145Z","taskDependencies":[],"taskId":"t-1nex6ch","taskNamespace":null,"taskProject":"test","taskStatus":"Open","taskTitle":"First task","taskUpdatedAt":"2025-11-08T21:41:26.048075145Z"} -{"taskCreatedAt":"2025-11-08T21:41:26.057905215Z","taskDependencies":["t-1nex6ch"],"taskId":"t-1nex8KQ","taskNamespace":null,"taskProject":"test","taskStatus":"Open","taskTitle":"Blocked task","taskUpdatedAt":"2025-11-08T21:41:26.057905215Z"} +{"taskCreatedAt":"2025-11-09T12:17:09.286039287Z","taskDependencies":[],"taskId":"t-MhfzLf","taskNamespace":null,"taskParent":null,"taskStatus":"Done","taskTitle":"Authentication System","taskType":"Epic","taskUpdatedAt":"2025-11-09T12:17:29.632200648Z"} +{"taskCreatedAt":"2025-11-09T12:17:14.313519244Z","taskDependencies":[],"taskId":"t-MhAFDD","taskNamespace":null,"taskParent":"t-MhfzLf","taskStatus":"Done","taskTitle":"Design auth API","taskType":"WorkTask","taskUpdatedAt":"2025-11-09T12:17:29.659843447Z"} -- cgit v1.2.3