UNPKG

erosolar-cli

Version:

Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning

62 lines 1.47 kB
/** * Update Manager - Claude Code Style * * Handles CLI updates and version checking. * Similar to `claude update` command. * * Features: * - Check for new versions * - Auto-update capability * - Version comparison * - Update notifications */ export interface VersionInfo { current: string; latest: string; updateAvailable: boolean; releaseNotes?: string; publishedAt?: string; } export interface UpdateCheckResult { success: boolean; versionInfo?: VersionInfo; error?: string; } export interface UpdateResult { success: boolean; previousVersion?: string; newVersion?: string; error?: string; } /** * Get current package version */ export declare function getCurrentVersion(): string; /** * Check for updates from npm registry */ export declare function checkForUpdates(): Promise<UpdateCheckResult>; /** * Perform the update */ export declare function performUpdate(): Promise<UpdateResult>; /** * Get last update check info */ export declare function getLastUpdateCheck(): { timestamp: number; latestVersion: string; } | null; /** * Check if update check is due */ export declare function isUpdateCheckDue(): boolean; /** * Format version info for display */ export declare function formatVersionInfo(info: VersionInfo): string; /** * Format update result for display */ export declare function formatUpdateResult(result: UpdateResult): string; //# sourceMappingURL=updateManager.d.ts.map