feat: replay E2E fonctionnel — 25/25 actions, 0 retries, SomEngine via serveur

Validé sur PC Windows (DESKTOP-58D5CAC, 2560x1600) :
- 8 clics résolus visuellement (1 anchor_template, 1 som_text_match, 6 som_vlm)
- Score moyen 0.75, temps moyen 1.6s
- Texte tapé correctement (bonjour, test word, date, email)
- 0 retries, 2 actions non vérifiées (OK)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-31 14:04:41 +02:00
parent 5e0b53cfd1
commit a7de6a488b
79542 changed files with 6091757 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{
"enabled": true,
"name": "Adapt Tests to Real Functionality",
"description": "Automatically reviews and adapts test files to ensure they test real functionality instead of using mocks or simulations, maintaining authentic behavior validation",
"version": "1",
"when": {
"type": "promptSubmit"
},
"then": {
"type": "runCommand",
"command": "Un fichier a été modifié. Vérifie que :
- Automatically reviews and adapts test files to ensure they test real functionality instead of using mocks or simulations, maintaining authentic behavior validation.
- Do not create documents without the user's permission."
},
"workspaceFolderName": "rpa_vision_v3",
"shortName": "adapt-tests-real"
}

View File

@@ -0,0 +1,22 @@
{
"enabled": true,
"name": "Figma Component Code Connect",
"description": "Check if UI component should be connected to Figma design",
"version": "1",
"when": {
"type": "fileEdited",
"patterns": [
"**/*.tsx",
"**/*.jsx",
"**/components/**/*",
"visual_workflow_builder/frontend/src/components/**/*",
"web_dashboard/templates/**/*",
"gui/**/*.py"
]
},
"then": {
"type": "askAgent",
"prompt": "When a new component file is created or updated, ask the user if they would like to confirm if the code has been correctly attached to the Figma component of the same name. If the user approves: first run the get code connect map tool for the last Figma URL provided by the user. You can prompt them to provide it again if it's unavailable. If the response is empty, run the add code connect map tool, otherwise tell the user they already have code mapped to that component. If the user rejects: Do not run any additional tools."
},
"shortName": "figma-code-connect"
}

View File

@@ -0,0 +1,15 @@
{
"enabled": true,
"name": "Standards de Code Français",
"description": "Hook qui surveille les modifications de fichiers Python et de documentation pour s'assurer que tout le contenu respecte les standards français : commentaires en français, documentation centralisée dans docs/, tests dans tests/, et attribution correcte à Dom, Alice , Kiro avec dates. Attention si les tests que tu réalise ne sont pas tous concluant corrige. ",
"version": "1",
"when": {
"type": "promptSubmit"
},
"then": {
"type": "askAgent",
"prompt": "Un fichier a été modifié. Vérifie que :\n\n1. **Langue française obligatoire** : Tous les commentaires, docstrings et documentation doivent être en français\n2. **Attribution de l'auteur** : Le code doit mentionner \"Auteur : Dom, Alice, Kiro\" avec la date actuelle\n3. **Organisation de la documentation** : Toute documentation doit être centralisée dans le répertoire docs/\n4. **Organisation des tests** : Tous les tests doivent être dans le répertoire tests/ pour une meilleure lisibilité\n5. **Cohérence du projet** : Respecter l'architecture et les conventions établies\n\nSi des corrections sont nécessaires, propose les modifications appropriées en français. Si le fichier est conforme, confirme simplement la conformité.\nAttention si les tests que tu réalise ne sont pas tous concluant corrige ! \nPas de connection fictives dans les dev, uniquement du réel."
},
"workspaceFolderName": "rpa_vision_v3",
"shortName": "french-code-standards"
}

View File

@@ -0,0 +1,15 @@
{
"enabled": true,
"name": "Test Real Functionality Review",
"description": "Automatically reviews and adapts test files to ensure they test real functionality instead of using mocks or simulations, maintaining authentic behavior validation",
"version": "1",
"when": {
"type": "promptSubmit"
},
"then": {
"type": "runCommand",
"command": ""
},
"workspaceFolderName": "rpa_vision_v3",
"shortName": "test-real-functionality"
}

View File

@@ -0,0 +1,15 @@
{
"enabled": true,
"name": "Translation Monitor",
"description": "Monitors changes to localization files (JSON, YAML, etc.) and automatically generates translations for all configured target languages while maintaining context and locale-specific conventions. Here, we are in France and we only speak and write in French.",
"version": "1",
"when": {
"type": "userTriggered"
},
"then": {
"type": "askAgent",
"prompt": "A localization file has been modified. Please analyze the changes to identify new or modified text content that needs translation. For each new or changed text:\n\n1. Identify the source language and text content: Here, we are in France and we only speak and write in French.\n2. Determine the context and meaning of the text\n3. Generate accurate translations for all configured target languages\n4. Ensure translations follow locale-specific conventions (date formats, currency, cultural adaptations)\n5. Maintain consistent terminology across the application\n6. Preserve any formatting, placeholders, or special characters\n7. Update all relevant translation files with the new content\n\nPlease provide the translations in the appropriate file format and structure, ensuring they integrate seamlessly with the existing localization system."
},
"workspaceFolderName": "rpa_vision_v3",
"shortName": "translation-monitor"
}

View File

@@ -0,0 +1,8 @@
{
"eventType": "fileEdited",
"hookAction": "askAgent",
"outputPrompt": "🔍 VÉRIFICATION DE CONFORMITÉ FRANÇAISE COMPLÈTE\n\nUn fichier a été modifié. Effectue une vérification complète selon les critères suivants :\n\n## 1. LANGUE FRANÇAISE OBLIGATOIRE\n- ✅ Tous les commentaires doivent être en français\n- ✅ Toutes les docstrings doivent être en français\n- ✅ Toute la documentation doit être en français\n- ✅ Les messages d'erreur et logs doivent être en français\n- ✅ Les noms de variables peuvent rester en anglais (convention technique)\n\n## 2. ATTRIBUTION DE L'AUTEUR\n- ✅ Le code doit mentionner \"Auteur : Dom, Alice, Kiro\" avec la date actuelle (8 janvier 2026)\n- ✅ L'attribution doit être présente dans l'en-tête du fichier\n- ✅ Format attendu : /* Auteur : Dom, Alice, Kiro - 8 janvier 2026 */\n\n## 3. ORGANISATION DE LA DOCUMENTATION\n- ✅ Toute documentation doit être centralisée dans le répertoire docs/\n- ✅ Les fichiers README locaux sont acceptés s'ils pointent vers docs/\n- ✅ Pas de documentation éparpillée dans le code\n\n## 4. ORGANISATION DES TESTS\n- ✅ Tous les tests doivent être dans le répertoire tests/ (racine du projet)\n- ✅ Structure : tests/unit/, tests/integration/, tests/property/\n- ✅ Pas de tests dans les sous-dossiers de composants\n\n## 5. COHÉRENCE DU PROJET\n- ✅ Respecter l'architecture 5-layer du projet\n- ✅ Utiliser les conventions de nommage établies\n- ✅ Suivre les patterns Material-UI pour React\n- ✅ Respecter les couleurs et tokens du design system\n\n## 6. TESTS RÉELS UNIQUEMENT\n- ✅ Pas de connexions fictives ou de mocks excessifs\n- ✅ Utiliser des données réelles dans les tests\n- ✅ Tester la fonctionnalité authentique\n- ✅ Éviter les simulations qui masquent les vrais problèmes\n- ✅ Vérifier que le backend fonctionne (http://localhost:5002/health)\n\n## 7. VÉRIFICATIONS TECHNIQUES\n- ✅ Syntaxe correcte (Python, TypeScript, CSS, etc.)\n- ✅ Imports corrects et disponibles\n- ✅ Pas d'erreurs de compilation\n- ✅ Respect des types TypeScript\n- ✅ Tests fonctionnels avec backend réel\n\n## 8. BACKEND FONCTIONNEL\n- ✅ Backend VWB disponible sur http://localhost:5002\n- ✅ Endpoints /health, /api/workflows/, /api/screen-capture/ opérationnels\n- ✅ Tests utilisant des connexions réelles au backend\n- ✅ Pas de simulation ou mock du backend\n\n## ACTIONS À EFFECTUER :\n\n1. **ANALYSER** le fichier modifié selon tous les critères ci-dessus\n2. **IDENTIFIER** les non-conformités précises\n3. **PROPOSER** les corrections spécifiques en français\n4. **TESTER** si c'est un fichier de test (exécuter et vérifier les résultats)\n5. **VÉRIFIER** la connectivité backend si nécessaire\n6. **CORRIGER** automatiquement si possible\n7. **RAPPORTER** le statut final de conformité\n\n## FORMAT DE RÉPONSE :\n\n**✅ CONFORME** - Si tout est correct\n**⚠️ CORRECTIONS MINEURES** - Si quelques ajustements sont nécessaires\n**❌ NON CONFORME** - Si des corrections majeures sont requises\n**🚨 BACKEND REQUIS** - Si le backend doit être démarré\n\nSi des corrections sont nécessaires, propose les modifications appropriées en français avec le code corrigé.\n\nAttention : Si les tests ne sont pas concluants, corrige-les immédiatement !\n\nPour démarrer le backend si nécessaire : `python3 demarrer_backend_propre.py`",
"filePatterns": "*.py,*.js,*.ts,*.tsx,*.css,*.scss,*.md,*.json,*.html,*.vue,*.jsx",
"name": "Vérification Conformité Française Complète avec Backend",
"description": "Vérification exhaustive de la conformité des fichiers selon les standards français du projet RPA Vision V3, incluant la vérification du backend fonctionnel"
}