UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

128 lines 3.22 kB
/** * Entity Migration Orchestrator * @description Core engine that coordinates entity migration between Optimizely projects * using dual OptimizelyMCPTools instances and intelligent dependency management */ import { OptimizelyMCPTools } from '../tools/OptimizelyMCPTools.js'; import { MigrationConfig, MigrationProgress, MigrationResult } from './types.js'; export declare class EntityMigrationOrchestrator { private logger; private sourceTools; private destinationTools; private config; private progress; private executionPlan?; private createdEntities; private progressCallback?; private checkpointSaveInterval?; constructor(sourceTools: OptimizelyMCPTools, destinationTools: OptimizelyMCPTools, config: MigrationConfig); /** * Set progress callback for real-time updates */ setProgressCallback(callback: (progress: MigrationProgress) => void): void; /** * Execute the migration */ execute(): Promise<MigrationResult>; /** * Initialize migration engine */ private initialize; /** * Analyze dependencies and build execution plan */ private analyzeAndPlan; /** * Execute the migration plan */ private migrate; /** * Migrate a single entity */ private migrateEntity; /** * Find a specific entity for migration using semantic identifiers */ private findEntityForMigration; /** * Fetch entities from source project */ private fetchSourceEntities; /** * Fetch full entity details */ private fetchFullEntity; /** * Check if entity exists in destination */ private checkEntityExists; /** * Transform entity references using mappings */ private transformReferences; /** * Translate a single reference */ private translateReference; /** * Create entity in destination */ private createInDestination; /** * Update entity in destination */ private updateInDestination; /** * Resolve conflict when entity exists in destination */ private resolveConflict; /** * Extract dependencies from entity */ private extractDependencies; /** * Get entity type dependencies */ private getEntityDependencies; /** * Get target entity type from field name */ private getTargetTypeFromField; /** * Update progress */ private updateProgress; /** * Save checkpoint for resume capability */ private saveCheckpoint; /** * Restore from checkpoint */ private restoreFromCheckpoint; /** * Rollback created entities */ private rollback; /** * Check if error is recoverable */ private isRecoverableError; /** * Create validation result */ private createValidationResult; /** * Create success result */ private createSuccessResult; /** * Create dry run result with simulation data */ private createDryRunResult; /** * Create error result */ private createErrorResult; } //# sourceMappingURL=EntityMigrationOrchestrator.d.ts.map