import type { PlatformLifecycle } from '@/platform/types'; class WebLifecycle implements PlatformLifecycle { onServerReady?: () => void; async startServer(_remote = false): Promise { // Web assumes server is running externally // Return a default URL - this should be configured via env vars const serverUrl = import.meta.env.VITE_SERVER_URL || 'http://localhost:17493'; this.onServerReady?.(); return serverUrl; } async stopServer(): Promise { // No-op for web - server is managed externally } async setKeepServerRunning(_keep: boolean): Promise { // No-op for web } async setupWindowCloseHandler(): Promise { // No-op for web - no window close handling needed } } export const webLifecycle = new WebLifecycle();