Skip to content

Commit e2fce6c

Browse files
[Feat] Add Roo Code history import to the About page (#141)
* feat: adding i18n strings and handling no tasks to import edge case * fix(importRooTaskHistory): validate history_item.json content to prevent path traversal * test(importRooTaskHistory): check that only one import writes atomically * feat(About): translate aria-label --------- Co-authored-by: Elliott de Launay <edelauna@gmail.com>
1 parent de8886a commit e2fce6c

43 files changed

Lines changed: 2185 additions & 41 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/types/src/vscode-extension-host.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export interface ExtensionMessage {
100100
| "folderSelected"
101101
| "skills"
102102
| "fileContent"
103+
| "rooHistoryImportProgress"
103104
text?: string
104105
/** For fileContent: { path, content, error? } */
105106
fileContent?: { path: string; content: string | null; error?: string }
@@ -178,6 +179,15 @@ export interface ExtensionMessage {
178179
tools?: SerializedCustomToolDefinition[] // For customToolsResult
179180
skills?: SkillMetadata[] // For skills response
180181
modes?: { slug: string; name: string }[] // For modes response
182+
rooHistoryImportProgress?: {
183+
status: "starting" | "copying" | "finished" | "failed"
184+
copiedFileCount: number
185+
totalFileCount: number
186+
importedTaskCount: number
187+
totalTaskCount: number
188+
currentTaskId?: string
189+
currentFileName?: string
190+
}
181191
aggregatedCosts?: {
182192
// For taskWithAggregatedCosts response
183193
totalCost: number
@@ -590,6 +600,7 @@ export interface WebviewMessage {
590600
| "removeInstalledMarketplaceItem"
591601
| "marketplaceInstallResult"
592602
| "shareTaskSuccess"
603+
| "importRooHistory"
593604
// Skills messages
594605
| "requestSkills"
595606
| "createSkill"

0 commit comments

Comments
 (0)