Application systématique et méthodique de tous les patches historiques. ## ✅ FICHIERS SYNCHRONISÉS (19 fichiers) ### Core & Infrastructure: - server.js (14 patches) - Lazy loading ModeManager, SIGINT hard kill, timing logs - ModeManager.js (4 patches) - Instrumentation complète avec timing détaillé ### Pipeline System: - PipelineDefinition.js (6 patches) - Source unique getLLMProvidersList() - pipeline-builder.js (8 patches) - Standardisation LLM providers - pipeline-runner.js (6 patches) - Affichage résultats structurés + debug console - pipeline-builder.html (2 patches) - Fallback providers synchronisés - pipeline-runner.html (3 patches) - UI améliorée résultats ### Enhancement Layers: - TechnicalLayer.js (1 patch) - defaultLLM: 'gpt-4o-mini' - StyleLayer.js (1 patch) - Type safety vocabulairePref - PatternBreakingCore.js (1 patch) - Mapping modifications - PatternBreakingLayers.js (1 patch) - LLM standardisé ### Validators & Tests: - QualityMetrics.js (1 patch) - callLLM('gpt-4o-mini') - PersonalityValidator.js (1 patch) - Provider gpt-4o-mini - AntiDetectionValidator.js - Synchronisé ### Documentation: - TODO.md (1 patch) - Section LiteLLM pour tracking coûts - CLAUDE.md - Documentation à jour ### Tools: - tools/analyze-skipped-exports.js (nouveau) - tools/apply-claude-exports.js (nouveau) - tools/apply-claude-exports-fuzzy.js (nouveau) ## 🎯 Changements principaux: - ✅ Standardisation LLM providers (openai → gpt-4o-mini, claude → claude-sonnet-4-5) - ✅ Lazy loading optimisé (ModeManager chargé à la demande) - ✅ SIGINT immediate exit (pas de graceful shutdown) - ✅ Type safety renforcé (conversions string explicites) - ✅ Instrumentation timing complète - ✅ Debug logging amélioré (console.log résultats pipeline) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
361 lines
12 KiB
HTML
361 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>SEO Generator - Dashboard</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary: #667eea;
|
|
--secondary: #764ba2;
|
|
--success: #48bb78;
|
|
--warning: #ed8936;
|
|
--error: #f56565;
|
|
--bg-light: #f7fafc;
|
|
--bg-dark: #1a202c;
|
|
--text-dark: #2d3748;
|
|
--text-light: #a0aec0;
|
|
--border-light: #e2e8f0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
color: var(--text-dark);
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
color: white;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5em;
|
|
margin-bottom: 10px;
|
|
text-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.server-status {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background: rgba(255,255,255,0.2);
|
|
border-radius: 20px;
|
|
font-size: 0.9em;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.server-status.online {
|
|
background: rgba(72, 187, 120, 0.3);
|
|
}
|
|
|
|
.card-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.card {
|
|
background: white;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--primary), var(--secondary));
|
|
transform: scaleX(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.card:hover::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.card-icon {
|
|
font-size: 3em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card h2 {
|
|
color: var(--text-dark);
|
|
margin-bottom: 15px;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.card p {
|
|
color: var(--text-light);
|
|
margin-bottom: 20px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.card ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.card ul li {
|
|
padding: 8px 0;
|
|
color: var(--text-dark);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.card ul li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.card ul li::before {
|
|
content: '✓';
|
|
color: var(--success);
|
|
font-weight: bold;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.stats-panel {
|
|
background: white;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stats-panel h3 {
|
|
color: var(--text-dark);
|
|
margin-bottom: 20px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.stat-item {
|
|
background: var(--bg-light);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 2em;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 0.9em;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
color: white;
|
|
margin-top: 40px;
|
|
font-size: 0.9em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.card-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.8em;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>🎯 SEO Generator Dashboard</h1>
|
|
<div class="server-status" id="serverStatus">
|
|
<span id="statusText">Vérification...</span>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="card-container">
|
|
<!-- Card 1: Pipeline Builder -->
|
|
<div class="card" onclick="navigateTo('pipeline-builder.html')">
|
|
<div class="card-icon">🎨</div>
|
|
<h2>Pipeline Builder</h2>
|
|
<p>Créer des pipelines modulaires flexibles avec drag-and-drop</p>
|
|
<ul>
|
|
<li>Construction visuelle par glisser-déposer</li>
|
|
<li>Ordre et intensités personnalisables</li>
|
|
<li>Multi-passes d'un même module</li>
|
|
<li>Templates prédéfinis chargeables</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Card 2: Pipeline Runner -->
|
|
<div class="card" onclick="navigateTo('pipeline-runner.html')">
|
|
<div class="card-icon">⚡</div>
|
|
<h2>Pipeline Runner</h2>
|
|
<p>Exécuter vos pipelines personnalisés sur Google Sheets</p>
|
|
<ul>
|
|
<li>Chargement pipelines sauvegardés</li>
|
|
<li>Preview détaillée avant exécution</li>
|
|
<li>Suivi progression étape par étape</li>
|
|
<li>Logs d'exécution complets</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Card 3: LLM Monitoring -->
|
|
<div class="card" onclick="navigateTo('llm-monitoring.html')">
|
|
<div class="card-icon">🤖</div>
|
|
<h2>LLM Monitoring</h2>
|
|
<p>Surveiller la santé et les performances de vos modèles LLM</p>
|
|
<ul>
|
|
<li>Status en temps réel (9 LLMs)</li>
|
|
<li>Latences moyennes et barres de progression</li>
|
|
<li>Crédits restants par plateforme</li>
|
|
<li>Auto-refresh toutes les 30 secondes</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stats-panel">
|
|
<h3>📊 Statistiques Système</h3>
|
|
<div class="stats-grid">
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="configCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Configurations sauvegardées</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="uptime">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Uptime serveur</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="clientsCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Clients connectés</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="requestsCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Requêtes traitées</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<p>SEO Generator Server v1.0 - Mode MANUAL</p>
|
|
<p>Architecture Modulaire | WebSocket Logs | Production Ready</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
function navigateTo(page) {
|
|
window.location.href = page;
|
|
}
|
|
|
|
async function loadStats() {
|
|
try {
|
|
// Charger status serveur
|
|
const statusResponse = await fetch('/api/status');
|
|
const statusData = await statusResponse.json();
|
|
|
|
if (statusData.success) {
|
|
document.getElementById('serverStatus').classList.add('online');
|
|
document.getElementById('statusText').textContent = `🟢 En ligne (${statusData.mode})`;
|
|
|
|
// Uptime
|
|
const uptimeSeconds = Math.floor(statusData.uptime / 1000);
|
|
const uptimeMinutes = Math.floor(uptimeSeconds / 60);
|
|
const uptimeHours = Math.floor(uptimeMinutes / 60);
|
|
|
|
let uptimeText;
|
|
if (uptimeHours > 0) {
|
|
uptimeText = `${uptimeHours}h ${uptimeMinutes % 60}m`;
|
|
} else if (uptimeMinutes > 0) {
|
|
uptimeText = `${uptimeMinutes}m`;
|
|
} else {
|
|
uptimeText = `${uptimeSeconds}s`;
|
|
}
|
|
|
|
document.getElementById('uptime').textContent = uptimeText;
|
|
document.getElementById('clientsCount').textContent = statusData.clients || 0;
|
|
document.getElementById('requestsCount').textContent = statusData.stats?.requests || 0;
|
|
} else {
|
|
throw new Error('Server status check failed');
|
|
}
|
|
|
|
// Charger configs
|
|
const configResponse = await fetch('/api/config/list');
|
|
const configData = await configResponse.json();
|
|
|
|
if (configData.success) {
|
|
document.getElementById('configCount').textContent = configData.count || 0;
|
|
} else {
|
|
document.getElementById('configCount').textContent = '0';
|
|
}
|
|
|
|
} catch (error) {
|
|
console.error('Erreur chargement stats:', error);
|
|
document.getElementById('statusText').textContent = '🔴 Hors ligne';
|
|
document.getElementById('configCount').textContent = 'N/A';
|
|
document.getElementById('uptime').textContent = 'N/A';
|
|
document.getElementById('clientsCount').textContent = 'N/A';
|
|
document.getElementById('requestsCount').textContent = 'N/A';
|
|
}
|
|
}
|
|
|
|
// Charger les stats au démarrage
|
|
window.onload = loadStats;
|
|
|
|
// Rafraîchir les stats toutes les 30 secondes
|
|
setInterval(loadStats, 30000);
|
|
</script>
|
|
</body>
|
|
</html>
|