Skip to content

Commit f379d6b

Browse files
committed
FCO: resolve conflicts, integrate types + UI, and fix provider.getCurrentTask usage
1 parent d23bc01 commit f379d6b

Some content is hidden

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

42 files changed

+3917
-92
lines changed

packages/types/src/file-changes.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export type FileChangeType = "create" | "delete" | "edit"
2+
3+
export interface FileChange {
4+
uri: string
5+
type: FileChangeType
6+
// Note: Checkpoint hashes are for backend use, but can be included
7+
fromCheckpoint: string
8+
toCheckpoint: string
9+
// Line count information for display
10+
linesAdded?: number
11+
linesRemoved?: number
12+
}
13+
14+
/**
15+
* Represents the set of file changes for the webview.
16+
* The `files` property is an array for easy serialization.
17+
*/
18+
export interface FileChangeset {
19+
baseCheckpoint: string
20+
files: FileChange[]
21+
}

packages/types/src/global-settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const globalSettingsSchema = z.object({
148148
hasOpenedModeSelector: z.boolean().optional(),
149149
lastModeExportPath: z.string().optional(),
150150
lastModeImportPath: z.string().optional(),
151+
filesChangedEnabled: z.boolean().optional(),
151152
})
152153

153154
export type GlobalSettings = z.infer<typeof globalSettingsSchema>

packages/types/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export * from "./terminal.js"
2020
export * from "./tool.js"
2121
export * from "./type-fu.js"
2222
export * from "./vscode.js"
23-
2423
export * from "./providers/index.js"
24+
export * from "./file-changes.js"

0 commit comments

Comments
 (0)