import { createDesktopWindow } from "../desktop/window.js";
import { setupIPC } from "../desktop/rpc.js";
import { init } from "../index.js";

console.log("[FarmControlServer] Starting desktop host...");

const mainWindow = await createDesktopWindow();
await setupIPC(mainWindow);

console.log("[FarmControlServer] Desktop window created, starting services...");
await init({ headless: false, skipWindow: true });
console.log("[FarmControlServer] Startup complete");
