//#region extensions/crypto/src/services/update-service.d.ts /** * Update Service — in-place update from GitHub + Fly restart. * * Flow: * 1. Clone latest code from GitHub (shallow, depth 1) * 2. Install deps + build + pack tarball * 3. Extract tarball over the installed extension * 4. Restart the Fly machine via Machines API * * All steps report progress via a callback so the user sees * live updates in Telegram. * * Prerequisites: * - FLY_API_TOKEN (for restart) — already required for /flykeys etc. * - git, npm, node in the container — present in Dockerfile layer 1 */ type ProgressFn = (msg: string) => void | Promise; interface UpdateResult { success: boolean; message: string; newCommit?: string; commits?: string[]; durationMs?: number; } /** Get the currently installed commit hash (if available). */ declare function getCurrentCommit(): string | null; interface UpdateCheck { available: boolean; currentRef: string | null; remoteRef: string | null; newCommits: string[]; } declare function checkForUpdates(): Promise; declare function performUpdate(progress: ProgressFn): Promise; //#endregion export { ProgressFn, UpdateCheck, UpdateResult, checkForUpdates, getCurrentCommit, performUpdate }; //# sourceMappingURL=update-service.d.mts.map