@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
49 lines • 2.06 kB
TypeScript
/**
* System Template Registry for Template Orchestration
*
* Maps system_template_id values used in orchestration templates to the actual
* MODEL_FRIENDLY_TEMPLATES keys. This provides the bridge between orchestration
* templates and the MCP tools' expected template structures.
*
* @module SystemTemplateRegistry
*/
export declare const SYSTEM_TEMPLATE_REGISTRY: Record<string, {
templateKey: string;
operation: 'create' | 'update' | 'delete' | 'get';
platform: 'web' | 'feature' | 'both';
}>;
/**
* Helper function to validate platform compatibility
* @param systemTemplateId The system template ID to check
* @param projectPlatform The platform of the current project
* @returns True if the template is compatible with the platform
*/
export declare function isTemplateCompatibleWithPlatform(systemTemplateId: string, projectPlatform: 'web' | 'feature'): boolean;
/**
* Helper function to get all templates for a specific platform
* @param platform The platform to filter templates for
* @returns Array of system template IDs compatible with the platform
*/
export declare function getTemplatesForPlatform(platform: 'web' | 'feature' | 'both'): string[];
/**
* Entity type mappings for platform validation
* Maps entity types to their compatible platforms
*/
export declare const ENTITY_PLATFORM_COMPATIBILITY: Record<string, ('web' | 'feature')[]>;
/**
* Get the ModelFriendlyTemplate key for a system template ID
* @param systemTemplateId The system template ID
* @returns The corresponding ModelFriendlyTemplate key or undefined
*/
export declare function getTemplateKey(systemTemplateId: string): string | undefined;
/**
* Get template info for a system template ID
* @param systemTemplateId The system template ID
* @returns The template information or undefined
*/
export declare function getTemplateInfo(systemTemplateId: string): {
templateKey: string;
operation: "create" | "update" | "delete" | "get";
platform: "web" | "feature" | "both";
};
//# sourceMappingURL=SystemTemplateRegistry.d.ts.map