@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
64 lines • 2.12 kB
TypeScript
/**
* Package Update Checker System
* Handles npm package version checking and notifications for hive.ai CLI
* Extends the existing auto-updater pattern for consistency
*/
interface PackageUpdateStatus {
lastCheck: string;
lastNotified: string;
currentVersion: string;
latestVersion: string;
availableUpdate: boolean;
updateType: 'major' | 'minor' | 'patch' | 'none';
nextCheck: string;
notificationPreferences: NotificationSettings;
}
interface NotificationSettings {
enabled: boolean;
frequency: 'daily' | 'weekly' | 'monthly' | 'never';
types: ('major' | 'minor' | 'patch')[];
lastDismissed?: string;
}
interface UpdateInfo {
currentVersion: string;
latestVersion: string;
releaseType: 'major' | 'minor' | 'patch' | 'none';
releaseDate: string;
changelogUrl: string;
importance: 'critical' | 'important' | 'optional';
updateAvailable: boolean;
}
interface UpdateResult {
checked: boolean;
updateAvailable: boolean;
currentVersion: string;
latestVersion: string;
updateType: 'major' | 'minor' | 'patch' | 'none';
timeTaken: number;
summary: string;
shouldNotify: boolean;
}
export declare class PackageUpdateChecker {
private readonly packageName;
constructor();
private getUpdateStatus;
private saveUpdateStatus;
private getCurrentVersion;
private getLatestVersion;
private getPackageInfo;
private compareVersions;
private determineReleaseType;
private determineImportance;
private shouldCheckForUpdate;
private shouldNotify;
private getNextCheckTime;
checkForUpdatesAsync(): Promise<UpdateResult>;
performUpdateCheckIfNeeded(): Promise<UpdateResult | null>;
getPackageUpdateStatus(): Promise<PackageUpdateStatus>;
updateNotificationPreferences(preferences: Partial<NotificationSettings>): Promise<void>;
getLastUpdateInfo(): Promise<string>;
getDetailedUpdateInfo(): Promise<UpdateInfo | null>;
}
export declare const packageUpdateChecker: PackageUpdateChecker;
export {};
//# sourceMappingURL=package-update-checker.d.ts.map