@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
112 lines • 2.81 kB
TypeScript
/**
* Template Orchestration Engine
* @description Core engine for executing orchestration templates
* @author Optimizely MCP Server
* @version 1.0.0
*/
import { OrchestrationTemplate, OrchestrationContext, OrchestrationResult } from '../types/index.js';
export declare class TemplateOrchestrationEngine {
private logger;
private dependencyResolver;
private stepExecutor;
private stateManager;
private templateValidator;
private templateStore;
private executionMonitor;
private validationMiddleware;
constructor(context: OrchestrationContext);
/**
* Execute an orchestration template from inline template (DEBUG MODE)
* 🚀 NEW: Bypasses database lookup for rapid development/debugging
*/
executeOrchestrationDirect(template: OrchestrationTemplate, parameters: Record<string, any>, context: OrchestrationContext): Promise<OrchestrationResult>;
/**
* Execute an orchestration template
*/
executeOrchestration(templateId: string, parameters: Record<string, any>, context: OrchestrationContext): Promise<OrchestrationResult>;
/**
* Load template from store
*/
private loadTemplate;
/**
* Validate template and parameters
*/
private validateExecution;
/**
* Execute steps according to plan
*/
private executeSteps;
/**
* Execute steps in parallel
*/
private executeParallelBatch;
/**
* Execute steps sequentially
*/
private executeSequentialBatch;
/**
* Execute a single step
*/
private executeSingleStep;
/**
* Handle retry delay
*/
private handleRetry;
/**
* Evaluate JSONPath condition
*/
private evaluateCondition;
/**
* Check if execution should continue
*/
private shouldContinue;
/**
* Execute hook code
*/
private executeHook;
/**
* Process template outputs
*/
private processOutputs;
/**
* Perform rollback operations
*/
private performRollback;
/**
* Build success result
*/
private buildSuccessResult;
/**
* Build error result
*/
private buildErrorResult;
/**
* Extract created entities from state
*/
private extractCreatedEntities;
/**
* Build execution summary
*/
private buildSummary;
/**
* Count executed steps
*/
private countExecutedSteps;
/**
* Count skipped steps
*/
private countSkippedSteps;
/**
* Count failed steps
*/
private countFailedSteps;
/**
* Save execution record
*/
private saveExecutionRecord;
/**
* Generate unique execution ID
*/
private generateExecutionId;
}
//# sourceMappingURL=TemplateOrchestrationEngine.d.ts.map