Files
paseo/packages/desktop/src/desktop-startup.ts
T
Mohamed BoudraandGitHub c0a0e3a1c6 Keep desktop skills up to date automatically (#1309)
* Keep installed desktop skills up to date

* Preserve user files during skill sync
2026-06-03 11:09:02 +00:00

18 lines
554 B
TypeScript

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