Skip to content

Commit 67dee67

Browse files
committed
Merge remote-tracking branch 'origin/main' into support-roo-directory
2 parents 579dcd5 + 0e4be83 commit 67dee67

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

src/exports/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
133133
}
134134

135135
public async resumeTask(taskId: string): Promise<void> {
136-
const { historyItem } = await this.provider.getTaskWithId(taskId)
137-
await this.provider.initClineWithHistoryItem(historyItem)
138-
await this.provider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
136+
const { historyItem } = await this.sidebarProvider.getTaskWithId(taskId)
137+
await this.sidebarProvider.initClineWithHistoryItem(historyItem)
138+
await this.sidebarProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
139139
}
140140

141141
public async isTaskInHistory(taskId: string): Promise<boolean> {
142142
try {
143-
await this.provider.getTaskWithId(taskId)
143+
await this.sidebarProvider.getTaskWithId(taskId)
144144
return true
145145
} catch {
146146
return false

src/exports/interface.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ export interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
2727
newTab?: boolean
2828
}): Promise<string>
2929

30+
/**
31+
* Resumes a task with the given ID.
32+
* @param taskId The ID of the task to resume.
33+
* @throws Error if the task is not found in the task history.
34+
*/
35+
resumeTask(taskId: string): Promise<void>
36+
37+
/**
38+
* Checks if a task with the given ID is in the task history.
39+
* @param taskId The ID of the task to check.
40+
* @returns True if the task is in the task history, false otherwise.
41+
*/
42+
isTaskInHistory(taskId: string): Promise<boolean>
43+
3044
/**
3145
* Returns the current task stack.
3246
* @returns An array of task IDs.

src/exports/roo-code.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,14 +557,12 @@ interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
557557
* @throws Error if the task is not found in the task history.
558558
*/
559559
resumeTask(taskId: string): Promise<void>
560-
561560
/**
562561
* Checks if a task with the given ID is in the task history.
563562
* @param taskId The ID of the task to check.
564563
* @returns True if the task is in the task history, false otherwise.
565564
*/
566565
isTaskInHistory(taskId: string): Promise<boolean>
567-
568566
/**
569567
* Returns the current task stack.
570568
* @returns An array of task IDs.

0 commit comments

Comments
 (0)