|
|
@@ -5,7 +5,7 @@ import type { RooCodeSettings } from "./global-settings.js"
|
|
|
import type { ProviderSettingsEntry, ProviderSettings } from "./provider-settings.js"
|
|
|
import type { ClineMessage, TokenUsage } from "./message.js"
|
|
|
import type { ToolUsage, ToolName } from "./tool.js"
|
|
|
-import type { IpcMessage, IpcServerEvents } from "./ipc.js"
|
|
|
+import type { IpcMessage, IpcServerEvents, IsSubtask } from "./ipc.js"
|
|
|
|
|
|
// TODO: Make sure this matches `RooCodeEvents` from `@roo-code/types`.
|
|
|
export interface RooCodeAPIEvents {
|
|
|
@@ -18,7 +18,7 @@ export interface RooCodeAPIEvents {
|
|
|
taskAskResponded: [taskId: string]
|
|
|
taskAborted: [taskId: string]
|
|
|
taskSpawned: [parentTaskId: string, childTaskId: string]
|
|
|
- taskCompleted: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage]
|
|
|
+ taskCompleted: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage, isSubtask: IsSubtask]
|
|
|
taskTokenUsageUpdated: [taskId: string, tokenUsage: TokenUsage]
|
|
|
taskToolFailed: [taskId: string, toolName: ToolName, error: string]
|
|
|
}
|