feat(04-02): add agent lifecycle events to events module

- AgentSpawnedEvent for new agent creation
- AgentStoppedEvent with reason (user_requested, task_complete, error, waiting_for_input)
- AgentCrashedEvent for unexpected failures
- AgentResumedEvent for session resumption
- AgentWaitingEvent when agent pauses on AskUserQuestion
- Updated DomainEventMap union with all agent events
This commit is contained in:
Lukas May
2026-01-30 19:59:37 +01:00
parent eec5f1398e
commit ddc6f3b4e7
2 changed files with 66 additions and 1 deletions

View File

@@ -20,6 +20,11 @@ export type {
WorktreeRemovedEvent,
WorktreeMergedEvent,
WorktreeConflictEvent,
AgentSpawnedEvent,
AgentStoppedEvent,
AgentCrashedEvent,
AgentResumedEvent,
AgentWaitingEvent,
DomainEventMap,
DomainEventType,
} from './types.js';