From d39220eac03fbc5b714bde989665ed1c92dd24a5 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 28 Jan 2026 23:32:26 -1000 Subject: Expand agent context API with completed log and calendar view - Add completed_tasks table to log task completions with title, due date, and completion timestamp - Extend agent context date range: 7 days back to 14 days forward - Add completed_log to API response (last 50 completed tasks) - Add day_section field to timeline items (overdue/today/tomorrow/later) - Add calendar-style view for today's schedule (6am-10pm hourly grid) - Add tabbed interface for Timeline vs Completed Log in HTML view Co-Authored-By: Claude Opus 4.5 --- internal/models/types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/models/types.go') diff --git a/internal/models/types.go b/internal/models/types.go index 5214bf8..e28d985 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -197,3 +197,13 @@ const ( AgentTrustRecognized AgentTrustLevel = "recognized" AgentTrustSuspicious AgentTrustLevel = "suspicious" ) + +// CompletedTask represents a logged completed task +type CompletedTask struct { + ID int64 `json:"id"` + Source string `json:"source"` + SourceID string `json:"source_id"` + Title string `json:"title"` + DueDate *time.Time `json:"due_date,omitempty"` + CompletedAt time.Time `json:"completed_at"` +} -- cgit v1.2.3