/** * Auto-update system for @monomind packages * * Features: * - Rate-limited update checks (24h default) * - Automatic patch updates for security packages * - Compatibility validation before updates * - Rollback capability * - Update history logging */ export type { UpdateCheckResult, UpdateConfig } from './checker.js'; export { checkForUpdates, checkSinglePackage, DEFAULT_CONFIG, getInstalledVersion, } from './checker.js'; export type { UpdateExecutionResult, UpdateHistoryEntry } from './executor.js'; export { clearHistory, executeMultipleUpdates, executeUpdate, getUpdateHistory, loadHistory, rollbackUpdate, } from './executor.js'; export type { RateLimitState } from './rate-limiter.js'; export { clearCache, getCachedVersions, loadState, recordCheck, shouldCheckForUpdates, } from './rate-limiter.js'; export type { ValidationResult } from './validator.js'; export { validateBulkUpdate, validateUpdate } from './validator.js'; import { spawn } from 'node:child_process'; import type { UpdateCheckResult } from './checker.js'; /** * Synchronous — reads cached state from last check. * Returns a short inline string for the CLI version tagline, e.g. * " ↑ v1.11.12 available" * " ✓ up to date" * "" (no cache yet) */ export declare function getUpdateTagline(currentVersion: string): string; /** * `--version` returns before the startup update check runs, so on its own it * would never refresh the cache its tagline reads. When the cache is missing * or stale, reserve a check slot and hand the fetch to a detached, unref'd, * output-less child so the NEXT `--version` is accurate. Never blocks, never * prints, never throws. * * The gate is the startup check's own reserveCheck(): CI / * CONTINUOUS_INTEGRATION, MONOMIND_AUTO_UPDATE=false, the check interval and * the daily cap. Reserving stamps `lastCheck` before spawning, so a refresh * that is running (or just ran) blocks the next one. * * Returns true when a refresh was started. */ export declare function refreshUpdateCacheInBackground(spawnFn?: typeof spawn): boolean; /** * Run auto-update check on startup * This is the main entry point for the auto-update system */ export declare function runStartupUpdateCheck(_options: { verbose?: boolean; autoUpdate?: boolean; onInstalling?: (packages: string[]) => void; }): Promise<{ checked: boolean; updatesAvailable: UpdateCheckResult[]; updatesApplied: string[]; skippedReason?: string; }>; //# sourceMappingURL=index.d.ts.map