Initial commit

This commit is contained in:
Dom
2026-03-05 00:20:25 +01:00
commit dcd4de9945
1954 changed files with 669380 additions and 0 deletions

73
check_workflows.sh Executable file
View File

@@ -0,0 +1,73 @@
#!/bin/bash
# Script pour vérifier les workflows sauvegardés
WORKFLOWS_DIR="geniusia2/data/user_profiles/workflows"
echo "🔍 Vérification des workflows sauvegardés"
echo "📁 Répertoire: $WORKFLOWS_DIR"
echo ""
if [ ! -d "$WORKFLOWS_DIR" ]; then
echo "❌ Le répertoire n'existe pas encore"
echo "💡 Lance GeniusIA pour créer le répertoire"
exit 1
fi
# Compter les workflows
WORKFLOW_COUNT=$(ls -1 "$WORKFLOWS_DIR"/*.json 2>/dev/null | wc -l)
if [ "$WORKFLOW_COUNT" -eq 0 ]; then
echo "📭 Aucun workflow sauvegardé"
echo ""
echo "💡 Pour créer des workflows:"
echo " 1. Lance GeniusIA en mode shadow"
echo " 2. Répète 3-5 fois la même séquence d'actions"
echo " 3. Les workflows seront automatiquement détectés et sauvegardés"
exit 0
fi
echo "$WORKFLOW_COUNT workflow(s) trouvé(s)"
echo ""
# Afficher les détails de chaque workflow
for workflow_file in "$WORKFLOWS_DIR"/*.json; do
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📄 $(basename "$workflow_file")"
echo ""
# Parser et afficher joliment
python3 -c "
import json
import sys
try:
with open('$workflow_file', 'r') as f:
workflow = json.load(f)
print(f\"🎯 Nom: {workflow['name']}\")
print(f\"🆔 ID: {workflow['workflow_id']}\")
print(f\"🔄 Répétitions: {workflow['repetitions']}\")
print(f\"📊 Confiance: {workflow['confidence']:.0%}\")
print(f\"📅 Créé: {workflow['created_at']}\")
print(f\"🕐 Dernière vue: {workflow['last_seen']}\")
print(f\"📝 Étapes: {len(workflow['steps'])}\")
print()
print('Séquence:')
for i, step in enumerate(workflow['steps'], 1):
action = step['action_type']
window = step['window']
pos = step['position']
print(f\" {i}. {action} dans '{window}' à {pos}\")
except Exception as e:
print(f'Erreur: {e}')
sys.exit(1)
" 2>/dev/null
echo ""
done
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "💡 Pour voir les workflows en temps réel:"
echo " ./monitor_workflows.sh"