UNPKG

@jmkim85/dev-flow-mcp

Version:

MCP-based Dev Flow - AI-powered development workflow management with 13 essential tools for TDD and context management

74 lines 2.25 kB
/** * Centralized Version Management for Dev Flow MCP * Single source of truth for all version information */ /** * Get the current version from package.json (single source of truth) */ export declare function getVersion(): Promise<string>; /** * Get the full package.json content */ export declare function getPackageJson(): Promise<any>; /** * Get version with prefix (e.g., "v2.3.0") */ export declare function getVersionWithPrefix(prefix?: string): Promise<string>; /** * Get major version only (e.g., "2" from "2.3.0") */ export declare function getMajorVersion(): Promise<string>; /** * Get major.minor version (e.g., "2.3" from "2.3.0") */ export declare function getMajorMinorVersion(): Promise<string>; /** * Get version info object with various formats */ export declare function getVersionInfo(): Promise<{ full: string; withPrefix: string; major: string; majorMinor: string; name: string; description: string; }>; /** * Clear version cache (useful for testing or when package.json changes) */ export declare function clearVersionCache(): void; /** * Validate that version follows semantic versioning */ export declare function validateVersion(): Promise<{ valid: boolean; message: string; }>; /** * Get version for display in CLI/UI contexts */ export declare function getDisplayVersion(): Promise<string>; /** * Get version for server/API contexts */ export declare function getServerVersion(): Promise<string>; /** * Replace version placeholders in text */ export declare function replaceVersionPlaceholders(text: string): Promise<string>; /** * Update version in package.json (for version management scripts) */ export declare function updateVersion(newVersion: string): Promise<void>; declare const _default: { getVersion: typeof getVersion; getVersionWithPrefix: typeof getVersionWithPrefix; getVersionInfo: typeof getVersionInfo; getDisplayVersion: typeof getDisplayVersion; getServerVersion: typeof getServerVersion; replaceVersionPlaceholders: typeof replaceVersionPlaceholders; validateVersion: typeof validateVersion; clearVersionCache: typeof clearVersionCache; }; export default _default; //# sourceMappingURL=version-manager.d.ts.map