phase59 doctrine197 UPGRADE wevia_generate_helper v2 UX PREMIUM | system prompt strict data realiste societes dates montants badges colors glassmorphism animations JetBrains Playfair | model sovereign auto -> SambaNova meilleur HTML | avant: Cerebras fake Contrat 1-5 brouillon | apres: SambaNova 8 contrats realistes table sortable badges status modal Chart.js CSS separe | qualite 10x superieure | GOLD v1 preserved
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled

This commit is contained in:
Opus
2026-04-24 17:55:24 +02:00
parent fddc0a1226
commit e3c5de9a1f

View File

@@ -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: