/** * Auto-updater for Genspark Tool CLI * * Checks npm registry for newer versions and auto-updates. * Controlled by: * - GSK_NO_AUTO_UPDATE=1 env var to disable * - "auto_update": false in config file * - Disabled inside Genspark sandboxes (/opt/genspark marker, see runtime.ts) * - Checks at most once every 4 hours (cached in ~/.genspark-tool-cli/update-meta.json) */ export declare const CHECK_INTERVAL_MS: number; /** * Shared update bookkeeping for both the npm self-update (last_check / * latest_version) and the native gsk-mesh binary (last_mesh_check / * latest_mesh_version, written by src/mesh/upgrade.ts). One file, independent * throttles — so the mesh autorun check piggybacks on this 4h cadence instead * of running its own separate timer. */ export interface UpdateMeta { last_check?: string; latest_version?: string; last_mesh_check?: string; latest_mesh_version?: string; } export declare function loadUpdateMeta(): UpdateMeta | null; /** * Merge-preserving write: callers pass only the keys they own (npm side vs * mesh side), and untouched keys on disk are preserved. A plain overwrite * would let the npm check clobber the mesh fields and vice-versa. */ export declare function saveUpdateMeta(patch: Partial): void; /** * Check for updates and auto-install if a newer version is available. * Safe to call — failures never block CLI execution. */ export declare function checkForUpdates(currentVersion: string): Promise; //# sourceMappingURL=updater.d.ts.map