export interface DesktopStartupDependencies { hasPendingGuiLaunchRequest: boolean; runCliPassthroughIfRequested: () => Promise; inheritLoginShellEnv: () => void; bootstrapGui: () => Promise; autoUpdateInstalledSkills?: () => void; } export async function runDesktopStartup(deps: DesktopStartupDependencies): Promise { if (!deps.hasPendingGuiLaunchRequest && (await deps.runCliPassthroughIfRequested())) { return; } deps.inheritLoginShellEnv(); await deps.bootstrapGui(); deps.autoUpdateInstalledSkills?.(); }