feat(app) : phase 3 — templates ComfyUI paramétriques + smoke tests

- Templates paramétrés (data/workflows/templates/) : substitution de variables
  ({{modele_checkpoint}}, {{resolution}}, {{resolution_largeur/hauteur}},
  {{vram_profile}}) — jamais de réécriture de topologie (PRD §4.6)
- Génération de JSON concrets (/workflows) + régénération automatique à chaque
  écriture du registre, commit git ; suppression si le modèle disparaît
- Champ comfyui_checkpoint ajouté au schéma et au formulaire registre ;
  génération refusée tant qu'il est null (anti-hallucination)
- Smoke test : prompt canari sans modèle (EmptyImage→PreviewImage) posté sur
  COMFYUI_URL/prompt, statut remonté dans l'UI, dégradation gracieuse
- Endpoint de téléchargement /workflows/fichier/[nom]
- Tests : 11 nouveaux cas (substitution, conversion numérique, variable
  inconnue, paliers VRAM, résolution invalide, checkpoint null, smoke test
  accepté/refusé/injoignable)
- Package YNH : question comfyui_url + COMFYUI_URL dans l'env applicatif
- Vérifié : check/lint/test (38)/build verts, autofixer propre, test fumée
  HTTP complet (seed templates, refus sans checkpoint, génération, JSON
  concret correct, téléchargement, smoke test dégradé, commits git)
This commit is contained in:
cyber-mawonaj
2026-08-01 11:05:30 -04:00
parent 7a90ddd641
commit 2e0220b1c9
19 changed files with 871 additions and 1 deletions
+7
View File
@@ -39,4 +39,11 @@
<symbol id="verifie" viewBox="0 0 24 24">
<path d="M3 13l6 6L21 5" />
</symbol>
<symbol id="workflow" viewBox="0 0 24 24">
<!-- Graphe de nœuds -->
<rect x="2" y="9" width="6" height="6" />
<rect x="16" y="2" width="6" height="6" />
<rect x="16" y="16" width="6" height="6" />
<path d="M8 12h4M12 12l4-7M12 12l4 7" />
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB