feat: unification VWB ↔ Léa — import/export bidirectionnel

- Workflows appris par Léa visibles dans le VWB ("Appris par Léa")
- Bouton "Importer" pour éditer un workflow appris
- Bouton "Exporter pour Léa" pour rendre un workflow VWB exécutable
- Conversion bidirectionnelle core ↔ VWB via learned_workflow_bridge
- Liste unifiée dans le chat Léa (merged + dédupliquée)
- reload_workflows() sur le streaming server (pas de redémarrage)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-18 22:41:34 +01:00
parent aa39af327f
commit 5973058f08
10 changed files with 1407 additions and 6 deletions

View File

@@ -950,6 +950,20 @@ class StreamProcessor:
})
return result
def reload_workflows(self) -> int:
"""Recharger les workflows depuis le disque.
Utile après qu'un nouveau workflow a été exporté depuis le VWB
ou appris par le streaming. Retourne le nombre de workflows chargés.
"""
with self._data_lock:
self._workflows.clear()
self._load_persisted_workflows()
with self._data_lock:
count = len(self._workflows)
logger.info("Workflows rechargés depuis le disque : %d", count)
return count
@property
def stats(self) -> Dict[str, Any]:
"""Statistiques du processeur."""