feat(cli): add exp task logs (#19915)

Closes https://github.com/coder/internal/issues/894
This commit is contained in:
Danielle Maywood
2025-09-26 10:37:52 +01:00
committed by GitHub
parent 82bebc7cc8
commit b7e0b2a73d
4 changed files with 280 additions and 6 deletions
+4 -4
View File
@@ -261,10 +261,10 @@ const (
//
// Experimental: This type is experimental and may change in the future.
type TaskLogEntry struct {
ID int `json:"id"`
Content string `json:"content"`
Type TaskLogType `json:"type" enum:"input,output"`
Time time.Time `json:"time" format:"date-time"`
ID int `json:"id" table:"id"`
Content string `json:"content" table:"content"`
Type TaskLogType `json:"type" enum:"input,output" table:"type"`
Time time.Time `json:"time" format:"date-time" table:"time,default_sort"`
}
// TaskLogsResponse contains the logs for a task.