integrate knowledge sync with oauth

This commit is contained in:
Ramnique Singh 2026-01-06 06:57:03 +05:30
parent dfe940d0ba
commit 41eef3c1b5
3 changed files with 324 additions and 216 deletions

View file

@ -3,6 +3,8 @@ import path from "node:path";
import { setupIpcHandlers, startRunsWatcher, startWorkspaceWatcher, stopWorkspaceWatcher } from "./ipc.js";
import { fileURLToPath } from "node:url";
import { dirname } from "node:path";
import { init as initGmailSync } from "@x/core/dist/knowledge/sync_gmail.js";
import { init as initCalendarSync } from "@x/core/dist/knowledge/sync_calendar.js";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
@ -42,6 +44,12 @@ app.whenReady().then(() => {
// start runs watcher
startRunsWatcher();
// start gmail sync
initGmailSync();
// start calendar sync
initCalendarSync();
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();