Skip to content

Commit 0fa93ef

Browse files
committed
fix: add missing taskCommandExecuted event to RooCodeAPIEvents interface
The integration tests were failing because the taskCommandExecuted event was added to ClineEvents but not to RooCodeAPIEvents. This commit adds the missing event definition to maintain consistency between the interfaces.
1 parent cf491fc commit 0fa93ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/types/src/api.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ export interface RooCodeAPIEvents {
2121
taskCompleted: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage, isSubtask: IsSubtask]
2222
taskTokenUsageUpdated: [taskId: string, tokenUsage: TokenUsage]
2323
taskToolFailed: [taskId: string, toolName: ToolName, error: string]
24+
taskCommandExecuted: [
25+
taskId: string,
26+
details: {
27+
command: string
28+
exitCode: number | undefined
29+
output: string
30+
succeeded: boolean
31+
failureReason?: string
32+
},
33+
]
2434
}
2535

2636
export interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents> {

0 commit comments

Comments
 (0)