feat(frontend): build chronological activity timeline
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user