UNPKG

vibe-tools

Version:
22 lines (21 loc) 834 B
export interface VersionInfo { current: string; latest: string | null; isOutdated: boolean; } /** * Gets the currently installed version of vibe-tools by searching upwards * for a package.json file with the name "vibe-tools". */ export declare function getCurrentVersion(): string; /** * Gets the latest available version of vibe-tools from the NPM registry. * Uses `npm view vibe-tools version`. */ export declare function getLatestVersion(): Promise<string | null>; /** * Checks if the currently installed version is outdated compared to the latest NPM version. * Note: This uses simple string comparison. For robust comparison (e.g., handling pre-releases), * a library like 'semver' would be better, but sticking to simplicity for now. */ export declare function checkPackageVersion(): Promise<VersionInfo>;