feat(frontend): build chronological activity timeline

This commit is contained in:
User
2026-07-14 22:56:41 +02:00
parent e0a97a01f3
commit f0f6c3c223
6 changed files with 272 additions and 26 deletions
+27
View File
@@ -57,10 +57,37 @@ export interface UiResponse {
tables?: { id: string; enacted: boolean; columns?: string[] }[];
}
export type ActivityKind =
| "prompt"
| "thinking"
| "assistant"
| "tool"
| "gate"
| "status"
| "lifecycle";
export interface ActivityEntry {
kind: ActivityKind;
phase: string | null;
text: string;
level?: "info" | "warning" | "error";
toolCallId?: string;
status?: "running" | "completed" | "failed";
}
export type StreamEvent =
| { type: "ui_request"; ui_request: WidgetDescriptor }
| { type: "text_delta"; text: string }
| { type: "activity_delta"; text: string }
| {
type: "activity_event";
activity: {
kind: "tool";
toolCallId: string;
toolName: string;
status: "running" | "completed" | "failed";
};
}
| { type: "info"; level?: "info" | "warning" | "error"; text: string }
| { type: "system_event"; event: string; [k: string]: unknown };