feat: chat unifié, GestureCatalog, Copilot, Léa UI, extraction données, vérification replay

Refonte majeure du système Agent Chat et ajout de nombreux modules :

- Chat unifié : suppression du dual Workflows/Agent Libre, tout passe par /api/chat
  avec résolution en 3 niveaux (workflow → geste → "montre-moi")
- GestureCatalog : 38 raccourcis clavier universels Windows avec matching sémantique,
  substitution automatique dans les replays, et endpoint /api/gestures
- Mode Copilot : exécution pas-à-pas des workflows avec validation humaine via WebSocket
  (approve/skip/abort) avant chaque action
- Léa UI (agent_v0/lea_ui/) : interface PyQt5 pour Windows avec overlay transparent
  pour feedback visuel pendant le replay
- Data Extraction (core/extraction/) : moteur d'extraction visuelle de données
  (OCR + VLM → SQLite), avec schémas YAML et export CSV/Excel
- ReplayVerifier (agent_v0/server_v1/) : vérification post-action par comparaison
  de screenshots, avec logique de retry (max 3)
- IntentParser durci : meilleur fallback regex, type GREETING, patterns améliorés
- Dashboard : nouvelles pages gestures, streaming, extractions
- Tests : 63 tests GestureCatalog, 47 tests extraction, corrections tests existants
- Dépréciation : /api/agent/plan et /api/agent/execute retournent HTTP 410,
  suppression du code hardcodé _plan_to_replay_actions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-15 10:02:09 +01:00
parent 74a1cb4e03
commit cf495dd82f
93 changed files with 12463 additions and 1080 deletions

View File

@@ -509,13 +509,13 @@ class ErrorHandler:
'workflow_edge': edge,
'action': action,
'details': {
'target_role': action.target.role if hasattr(action.target, 'role') else None,
'target_text': action.target.text_pattern if hasattr(action.target, 'text_pattern') else None
'target_role': action.target.by_role if hasattr(action.target, 'by_role') else None,
'target_text': action.target.by_text if hasattr(action.target, 'by_text') else None
},
'original_data': {
'target': {
'role': action.target.role if hasattr(action.target, 'role') else None,
'text_pattern': action.target.text_pattern if hasattr(action.target, 'text_pattern') else None,
'by_role': action.target.by_role if hasattr(action.target, 'by_role') else None,
'by_text': action.target.by_text if hasattr(action.target, 'by_text') else None,
'bbox': getattr(action.target, 'bbox', None)
}
}