@versatil/sdlc-framework
Version:
🚀 AI-Native SDLC framework with 11-MCP ecosystem, RAG memory, OPERA orchestration, and 6 specialized agents achieving ZERO CONTEXT LOSS. Features complete CI/CD pipeline with 7 GitHub workflows (MCP testing, security scanning, performance benchmarking),
67 lines (66 loc) • 1.66 kB
TypeScript
/**
* VERSATIL SDLC Framework - Update Manager
* Manages framework updates with backup and rollback capabilities
*/
import { UpdateCheckResult } from './github-release-checker.js';
export interface UpdateConfig {
autoCheck: boolean;
checkInterval: number;
includePrerelease: boolean;
backupBeforeUpdate: boolean;
autoUpdate: boolean;
}
export interface UpdateHistory {
timestamp: string;
fromVersion: string;
toVersion: string;
success: boolean;
error?: string;
}
export declare class UpdateManager {
private releaseChecker;
private config;
private versatilHome;
private updateHistoryFile;
constructor(config?: Partial<UpdateConfig>);
/**
* Check for available updates
*/
checkForUpdates(currentVersion: string): Promise<UpdateCheckResult>;
/**
* Perform framework update
*/
update(currentVersion: string, targetVersion?: string): Promise<boolean>;
/**
* Create backup before update
*/
private createBackup;
/**
* Perform npm update
*/
private performUpdate;
/**
* Rollback to previous version (from backup)
*/
rollback(backupFile?: string): Promise<boolean>;
/**
* Record update in history
*/
private recordUpdate;
/**
* Get update history
*/
getUpdateHistory(): Promise<UpdateHistory[]>;
/**
* Get latest changelog
*/
getChangelog(version?: string): Promise<string>;
/**
* List available backups
*/
listBackups(): Promise<string[]>;
}
/**
* Default update manager instance
*/
export declare const defaultUpdateManager: UpdateManager;