feat(coderd): add experimental tasks logs endpoint (#19958)

Fixes coder/internal#901
This commit is contained in:
Mathias Fredriksson
2025-09-25 15:12:49 +00:00
committed by GitHub
parent 063e8634c7
commit 0bac5a4d5c
5 changed files with 300 additions and 0 deletions
+18
View File
@@ -2883,6 +2883,24 @@ export interface Task {
readonly updated_at: string;
}
// From codersdk/aitasks.go
export interface TaskLogEntry {
readonly id: number;
readonly content: string;
readonly type: TaskLogType;
readonly time: string;
}
// From codersdk/aitasks.go
export type TaskLogType = "input" | "output";
export const TaskLogTypes: TaskLogType[] = ["input", "output"];
// From codersdk/aitasks.go
export interface TaskLogsResponse {
readonly logs: readonly TaskLogEntry[];
}
// From codersdk/aitasks.go
export interface TaskSendRequest {
readonly input: string;