feat(google-docs): structure-preserving sync up with remote-conflict guard

This commit is contained in:
Gagancreates 2026-06-01 02:27:33 +05:30
parent 8463c8ba57
commit 7e6ee040aa
6 changed files with 409 additions and 24 deletions

View file

@ -693,10 +693,14 @@ const ipcSchemas = {
req: z.object({
path: RelPath,
markdown: z.string(),
// Overwrite the Google Doc even if it changed remotely since last sync.
force: z.boolean().optional(),
}),
res: z.object({
synced: z.boolean(),
syncedAt: z.string().optional(),
// True when a remote edit was detected and the push was held back.
conflict: z.boolean().optional(),
error: z.string().optional(),
}),
},