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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user