fix: update RooCodeAPIEvents interface for backward compatibility

This commit is contained in:
Roo Code 2025-07-28 18:37:15 +00:00
parent 11e4f6933b
commit e217ab078f

View file

@ -12,7 +12,8 @@ export interface RooCodeAPIEvents {
message: [data: { taskId: string; action: "created" | "updated"; message: ClineMessage }]
taskCreated: [taskId: string]
taskStarted: [taskId: string]
taskModeSwitched: [taskId: string, mode: string]
taskAgentSwitched: [taskId: string, agent: string]
taskModeSwitched: [taskId: string, mode: string] // Backward compatibility alias
taskPaused: [taskId: string]
taskUnpaused: [taskId: string]
taskAskResponded: [taskId: string]