feat: add agent activity events

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-21 12:48:27 +01:00
co-authored by Copilot
parent b9e9662f6e
commit c5979d07bd
14 changed files with 754 additions and 33 deletions
+12
View File
@@ -61,6 +61,17 @@ export interface TurnCompleteEvent {
messages: ChatMessageRecord[];
}
export type AgentActivityType = 'thinking' | 'tool-calling' | 'handoff' | 'completed';
export interface AgentActivityEvent {
type: 'agent-activity';
requestId: string;
sessionId: string;
activityType: AgentActivityType;
agentName?: string;
toolName?: string;
}
export interface CommandErrorEvent {
type: 'command-error';
requestId: string;
@@ -77,5 +88,6 @@ export type SidecarEvent =
| PatternValidationEvent
| TurnDeltaEvent
| TurnCompleteEvent
| AgentActivityEvent
| CommandErrorEvent
| CommandCompleteEvent;