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;
+11 -1
View File
@@ -1,4 +1,11 @@
export type SessionEventKind = 'status' | 'message-delta' | 'message-complete' | 'error';
export type SessionActivityType = 'thinking' | 'tool-calling' | 'handoff' | 'completed';
export type SessionEventKind =
| 'status'
| 'message-delta'
| 'message-complete'
| 'agent-activity'
| 'error';
export interface SessionEventRecord {
sessionId: string;
@@ -8,5 +15,8 @@ export interface SessionEventRecord {
messageId?: string;
authorName?: string;
contentDelta?: string;
activityType?: SessionActivityType;
agentName?: string;
toolName?: string;
error?: string;
}