UNPKG

@agentled/cli

Version:

CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.

25 lines (24 loc) 1.1 kB
/** * Best-effort "new version available" check against the npm registry. * * Compares the locally-installed @agentled/cli version (from package.json) * against the latest published on npm and prints a one-line warning if the * user is behind. Never blocks setup on failure — a flaky network or * registry should not prevent first-time onboarding. */ /** * Read the version field from this package's own package.json. Returns * '0.0.0-dev' as a fallback so a missing/unreadable file doesn't crash setup. */ export declare function getInstalledCliVersion(): string; export interface VersionCheckResult { installed: string; latest: string | null; /** True if the registry returned a version newer than installed. */ outdated: boolean; /** Set when the registry could not be reached or parsed. */ error?: string; } export declare function checkCliVersion(): Promise<VersionCheckResult>; /** One-line summary suitable for the setup banner. Returns null if there is nothing to say. */ export declare function summarizeVersionCheck(r: VersionCheckResult): string | null;