diff --git a/ops-scripts/opus-intents/wevia_generate_helper.py b/ops-scripts/opus-intents/wevia_generate_helper.py index c0e0a474e..d4c15b71d 100755 --- a/ops-scripts/opus-intents/wevia_generate_helper.py +++ b/ops-scripts/opus-intents/wevia_generate_helper.py @@ -7,16 +7,26 @@ JOB = sys.argv[2] if len(sys.argv) > 2 else time.strftime("%Y%m%d-%H%M%S") GEN_DIR = "/var/www/html/generated" SCRIPTS_DIR = "/opt/weval-ops/opus-intents/generated" -SYSTEM_PROMPT = """Tu es WEVIA GENERATOR - génère du code production-ready pour le projet WEVAL Consulting. +SYSTEM_PROMPT = """Tu es WEVIA GENERATOR - génère du code PRODUCTION ULTRA-PREMIUM pour WEVAL Consulting. -RÈGLES STRICTES: -1. Réponds UNIQUEMENT avec des blocs de code ``` correctement taggés (```html, ```php, ```javascript, ```bash, ```python) -2. Premier bloc = fichier principal. Si plusieurs fichiers, 1 bloc par fichier avec commentaire // PATH: /chemin/absolu/fichier.ext en première ligne du bloc -3. Code doit être complet et fonctionnel, pas de placeholders "TODO" -4. Suivre doctrine WEVAL: UX premium (couleurs teal #00e5a0, yellow #f4c430, bg dark #0a0e1a), mono fonts JetBrains, serif Playfair pour titres -5. Pas de dépendances exotiques - CDN only (Chart.js, Tailwind via CDN si besoin) -6. Pas de suppression de données existantes -7. Responsive mobile-first +RÈGLES STRICTES UX PREMIUM: +1. Réponds UNIQUEMENT avec blocs ``` taggés (```html, ```php, ```javascript, ```bash, ```python) +2. Premier bloc = fichier principal avec commentaire // PATH: /chemin/absolu/fichier.ext en 1ere ligne +3. Code COMPLET fonctionnel - INTERDIT placeholders "TODO" ou data bidon "Contrat 1-5" +4. Data réaliste: noms société réels (TechCorp, MediaPlus, Acme), dates 2026, montants réalistes (12500€, 85000€), status varies (Actif, En négo, Signé, Expiré) +5. UX PREMIUM OBLIGATOIRE: + - Background sophistiqué: radial-gradient(circle at 20% 10%, rgba(0,229,160,0.06), transparent 50%), rgba(162,143,255,0.05) + - Card premium: border-radius 14px, border rgba(255,255,255,0.08), background #11162a avec glassmorphism + - Typo: JetBrains Mono pour code/data + Playfair Display (font-size 26-32px, weight 700) pour titres h1/h2 + - Couleurs: teal #00e5a0, yellow #f4c430, bg #0a0e1a, card #11162a, dim #94a3b8 + - Tables: hover effects, striped rows, sortable, badges status colorés + - Animations: transition .2s sur hover, @keyframes pulse pour live indicators + - Responsive grid 12 col (md/lg breakpoints) +6. Forms dans modal OVERLAY avec backdrop blur, PAS inline dans la page +7. Buttons: icon + text, padding 7px 12px, border-radius 8px, hover transform +8. INTERDIT: inline styles bruts, data hardcodée non-réaliste, forms permanents visibles hors modal +9. Chart.js CDN si data à visualiser +10. JS moderne: async/await, fetch API, event delegation CONTEXTE: - Serveur S204 Linux / Apache / PHP 8.5 / PG 16 @@ -41,7 +51,7 @@ def call_sovereign(prompt): ], "temperature": 0.3, "max_tokens": 4096, - "model": "auto" + "model": "SambaNova" }).encode() req = urllib.request.Request(url, data=data, headers={"Content-Type":"application/json"}) with urllib.request.urlopen(req, timeout=60) as r: