Skip to content

Commit e217ab0

Browse files
committed
fix: update RooCodeAPIEvents interface for backward compatibility
1 parent 11e4f69 commit e217ab0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/types/src/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export interface RooCodeAPIEvents {
1212
message: [data: { taskId: string; action: "created" | "updated"; message: ClineMessage }]
1313
taskCreated: [taskId: string]
1414
taskStarted: [taskId: string]
15-
taskModeSwitched: [taskId: string, mode: string]
15+
taskAgentSwitched: [taskId: string, agent: string]
16+
taskModeSwitched: [taskId: string, mode: string] // Backward compatibility alias
1617
taskPaused: [taskId: string]
1718
taskUnpaused: [taskId: string]
1819
taskAskResponded: [taskId: string]

0 commit comments

Comments
 (0)