Implements Google Drive sync operations (find, create, update, download, delete) via the Electron main process to work around CORS and COEP restrictions in the renderer. Updates the preload bridge and type definitions to expose new API methods, and adapts the sync logic to prefer main process proxies when available. Improves error handling and ensures prompt UI updates on disconnect.
Enables more reliable Google Drive cloud sync across platforms.
Routes Google OAuth code exchange, token refresh, and user info requests through the main process to avoid CORS issues. Improves security and reliability of authentication and cloud sync by using IPC handlers instead of direct client-side HTTP requests.