* Keep installed desktop skills up to date * Preserve user files during skill sync
18 lines
554 B
TypeScript
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?.();
|
|
}
|