UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

45 lines (34 loc) • 1.46 kB
#!/usr/bin/env node /** * Quick Cache Sync - JavaScript bypass for TypeScript compilation issues * This is a temporary workaround to get cache sync working while TypeScript issues are resolved */ const { execSync } = require('child_process'); console.log('šŸš€ Starting quick cache sync...'); try { // Try to run the enhanced sync with --no-check to bypass TypeScript console.log('šŸ“„ Running cache sync with TypeScript checking disabled...'); const result = execSync('npx tsx --no-check scripts/cache-sync-enhanced.ts', { stdio: 'inherit', encoding: 'utf8' }); console.log('āœ… Cache sync completed successfully!'); } catch (error) { console.log('āŒ Enhanced sync failed, trying basic sync...'); try { // Fallback to basic cache sync const basicResult = execSync('npm run cache-sync', { stdio: 'inherit', encoding: 'utf8' }); console.log('āœ… Basic cache sync completed!'); } catch (basicError) { console.error('āŒ All sync methods failed:', basicError.message); console.log('\nšŸ’” Please check your Optimizely API token and network connection.'); process.exit(1); } } console.log('\nšŸ“‹ Next steps:'); console.log('1. Check data/optimizely-cache.db for updated rules data'); console.log('2. Copy database to test folder for analytics validation'); console.log('3. Run validation tests to check for improvements');