Keep desktop skills up to date automatically (#1309)

* Keep installed desktop skills up to date

* Preserve user files during skill sync
This commit is contained in:
Mohamed Boudra
2026-06-03 11:09:02 +00:00
committed by GitHub
parent 3681fd132b
commit c0a0e3a1c6
10 changed files with 297 additions and 55 deletions
+6
View File
@@ -64,6 +64,7 @@ import {
stopDesktopManagedDaemonOnQuitIfNeeded,
} from "./daemon/quit-lifecycle.js";
import { runDesktopStartup } from "./desktop-startup.js";
import { autoUpdateInstalledSkills } from "./integrations/skills/index.js";
const DEV_SERVER_URL = process.env.EXPO_DEV_URL ?? "http://localhost:8081";
const APP_SCHEME = "paseo";
@@ -714,6 +715,11 @@ void runDesktopStartup({
runCliPassthroughIfRequested,
inheritLoginShellEnv,
bootstrapGui: bootstrap,
autoUpdateInstalledSkills: () => {
void autoUpdateInstalledSkills().catch((error) => {
log.error("[skills] auto-update failed", error);
});
},
}).catch((error) => {
const message = error instanceof Error ? (error.stack ?? error.message) : String(error);
process.stderr.write(`${message}\n`);