# 🌳 Structure du Projet GeniusIA v2 ## πŸ“ Structure Principale ``` Geniusia_v2/ β”‚ β”œβ”€β”€ πŸ“‚ geniusia2/ # Code source principal β”‚ β”œβ”€β”€ πŸ“„ main.py # Point d'entrΓ©e de l'application β”‚ β”œβ”€β”€ πŸ“„ run.sh # Script de lancement β”‚ β”œβ”€β”€ πŸ“„ run_headless.sh # Lancement sans GUI β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“‚ core/ # Composants principaux β”‚ β”‚ β”œβ”€β”€ πŸ“„ orchestrator.py # Orchestrateur principal (boucle cognitive) β”‚ β”‚ β”œβ”€β”€ πŸ“„ learning_manager.py # Gestion de l'apprentissage β”‚ β”‚ β”œβ”€β”€ πŸ“„ suggestion_manager.py # Gestion des suggestions (mode Assist) β”‚ β”‚ β”œβ”€β”€ πŸ“„ workflow_detector.py # DΓ©tection de workflows β”‚ β”‚ β”œβ”€β”€ πŸ“„ workflow_matcher.py # Matching de workflows β”‚ β”‚ β”œβ”€β”€ πŸ“„ session_manager.py # Gestion des sessions β”‚ β”‚ β”œβ”€β”€ πŸ“„ event_capture.py # Capture d'Γ©vΓ©nements (clavier/souris) β”‚ β”‚ β”œβ”€β”€ πŸ“„ vision_analysis.py # Analyse visuelle avec IA β”‚ β”‚ β”œβ”€β”€ πŸ“„ vision_search.py # Recherche visuelle β”‚ β”‚ β”œβ”€β”€ πŸ“„ llm_manager.py # Gestion du LLM (Ollama) β”‚ β”‚ β”œβ”€β”€ πŸ“„ logger.py # SystΓ¨me de logging β”‚ β”‚ β”œβ”€β”€ πŸ“„ config.py # Configuration β”‚ β”‚ β”œβ”€β”€ πŸ“„ models.py # ModΓ¨les de donnΓ©es β”‚ β”‚ β”œβ”€β”€ πŸ“„ whitelist_manager.py # Gestion liste blanche β”‚ β”‚ β”œβ”€β”€ πŸ“„ task_replay.py # Rejeu de tΓ’ches β”‚ β”‚ β”œβ”€β”€ πŸ“„ replay_async.py # Rejeu asynchrone β”‚ β”‚ β”œβ”€β”€ πŸ“„ metrics_collector.py # Collecte de mΓ©triques β”‚ β”‚ β”œβ”€β”€ πŸ“„ ui_change_detector.py # DΓ©tection changements UI β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“‚ embedders/ # SystΓ¨me d'embeddings β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ __init__.py β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ base.py # Classe de base β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ clip_embedder.py # Embeddings CLIP β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ pix2struct_embedder.py # Embeddings Pix2Struct β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ embedding_manager.py # Gestionnaire d'embeddings β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“„ faiss_index.py # Index FAISS β”‚ β”‚ β”‚ └── πŸ“„ fine_tuner.py # Fine-tuning β”‚ β”‚ β”‚ β”‚ β”‚ └── πŸ“‚ utils/ # Utilitaires β”‚ β”‚ β”œβ”€β”€ πŸ“„ vision_utils.py # Utilitaires vision β”‚ β”‚ β”œβ”€β”€ πŸ“„ image_utils.py # Utilitaires images β”‚ β”‚ └── πŸ“„ input_utils.py # Utilitaires entrΓ©es β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“‚ gui/ # Interface graphique β”‚ β”‚ β”œβ”€β”€ πŸ“„ __init__.py β”‚ β”‚ β”œβ”€β”€ πŸ“„ improved_gui.py # GUI amΓ©liorΓ©e (principale) β”‚ β”‚ β”œβ”€β”€ πŸ“„ minimal_gui.py # GUI minimale (ancienne) β”‚ β”‚ β”œβ”€β”€ πŸ“„ demo_gui.py # GUI de dΓ©mo β”‚ β”‚ β”œβ”€β”€ πŸ“„ signals.py # Signaux Qt β”‚ β”‚ β”œβ”€β”€ πŸ“„ models.py # ModΓ¨les de donnΓ©es GUI β”‚ β”‚ β”œβ”€β”€ πŸ“„ logs_panel.py # Panneau de logs β”‚ β”‚ β”œβ”€β”€ πŸ“„ human_logger.py # Logger lisible par humains β”‚ β”‚ β”œβ”€β”€ πŸ“„ orchestrator_integration.py # IntΓ©gration orchestrateur β”‚ β”‚ β”œβ”€β”€ πŸ“„ interactive_dialog.py # Dialogues interactifs β”‚ β”‚ β”‚ β”‚ β”‚ └── πŸ“‚ dialogs/ # Dialogues β”‚ β”‚ β”œβ”€β”€ πŸ“„ transition_notification.py β”‚ β”‚ └── πŸ“„ post_action_notification.py β”‚ β”‚ β”‚ β”œβ”€β”€ πŸ“‚ tests/ # Tests β”‚ β”‚ └── πŸ“„ test_human_logger.py β”‚ β”‚ β”‚ └── πŸ“‚ data/ # DonnΓ©es β”‚ β”œβ”€β”€ πŸ“‚ logs/ # Logs d'actions β”‚ β”œβ”€β”€ πŸ“‚ screenshots/ # Captures d'Γ©cran β”‚ β”œβ”€β”€ πŸ“‚ embeddings/ # Embeddings sauvegardΓ©s β”‚ └── πŸ“‚ workflows/ # Workflows appris β”‚ β”œβ”€β”€ πŸ“‚ docs/ # Documentation β”‚ └── πŸ“‚ sessions/ # Documentation de sessions β”‚ β”œβ”€β”€ πŸ“‚ .kiro/ # SpΓ©cifications Kiro β”‚ └── πŸ“‚ specs/ # Specs de fonctionnalitΓ©s β”‚ β”œβ”€β”€ πŸ“‚ workflow-detection-fix/ β”‚ β”œβ”€β”€ πŸ“‚ assisted-mode-suggestions/ β”‚ β”œβ”€β”€ πŸ“‚ embedding-improvement/ β”‚ └── πŸ“‚ gui-logs-improvement/ β”‚ β”œβ”€β”€ πŸ“„ README.md # Documentation principale β”œβ”€β”€ πŸ“„ GUIDE_INSTALLATION.md # Guide d'installation β”œβ”€β”€ πŸ“„ GUIDE_MODES.md # Guide des modes β”œβ”€β”€ πŸ“„ STRUCTURE_PROJET.txt # Liste des fichiers β”‚ β”œβ”€β”€ πŸ”§ Scripts de test β”‚ β”œβ”€β”€ πŸ“„ test_*.py # Scripts de test Python β”‚ β”œβ”€β”€ πŸ“„ lancer_test.sh # Lancer les tests β”‚ β”œβ”€β”€ πŸ“„ monitor_workflows.sh # Monitorer les workflows β”‚ └── πŸ“„ verifier_integration.sh # VΓ©rifier l'intΓ©gration β”‚ β”œβ”€β”€ πŸ”§ Scripts d'installation β”‚ β”œβ”€β”€ πŸ“„ installer_dependances_completes.sh β”‚ β”œβ”€β”€ πŸ“„ install_pix2struct.sh β”‚ └── πŸ“„ VERIFIER_INSTALLATION.sh β”‚ β”œβ”€β”€ πŸ”§ Scripts de diagnostic β”‚ β”œβ”€β”€ πŸ“„ diagnostic_complet_systeme.py β”‚ β”œβ”€β”€ πŸ“„ diagnostic_faiss.py β”‚ β”œβ”€β”€ πŸ“„ debug_embeddings.py β”‚ └── πŸ“„ visualize_embeddings.py β”‚ └── πŸ“š Documentation de corrections β”œβ”€β”€ πŸ“„ LOGS_GUI_CONNECTES.md β”œβ”€β”€ πŸ“„ CORRECTIONS_ERREURS_GUI.md β”œβ”€β”€ πŸ“„ FIX_MODE_SUGGESTIONS.md β”œβ”€β”€ πŸ“„ FIX_CALLBACKS_MANQUANTS.md └── πŸ“„ INTEGRATION_COMPLETE.md ``` ## 🎯 Composants ClΓ©s ### Core (CΕ“ur du SystΓ¨me) - **Orchestrator** : Boucle cognitive principale (Observer β†’ RΓ©flΓ©chir β†’ Agir β†’ Apprendre) - **LearningManager** : Gestion de l'apprentissage et des modes - **SuggestionManager** : CrΓ©ation et gestion des suggestions - **WorkflowDetector** : DΓ©tection de patterns rΓ©pΓ©titifs - **EventCapture** : Capture des Γ©vΓ©nements clavier/souris - **VisionAnalysis** : Analyse visuelle avec Qwen3-VL ### GUI (Interface Graphique) - **ImprovedGUI** : Interface principale avec logs en temps rΓ©el - **LogsPanel** : Panneau d'affichage des logs - **HumanLogger** : Messages lisibles pour l'utilisateur - **OrchestratorIntegration** : Pont entre orchestrateur et GUI ### Embeddings (SystΓ¨me d'Embeddings) - **EmbeddingManager** : Gestion des embeddings visuels - **CLIPEmbedder** : Embeddings avec CLIP - **Pix2StructEmbedder** : Embeddings avec Pix2Struct - **FAISSIndex** : Index de recherche de similaritΓ© - **FineTuner** : Fine-tuning des modΓ¨les ## πŸš€ Scripts Principaux ### Lancement ```bash ./geniusia2/run.sh # Lancer avec GUI ./geniusia2/run_headless.sh # Lancer sans GUI ``` ### Tests ```bash ./lancer_test.sh # Tests gΓ©nΓ©raux ./lancer_test_mode_assiste.sh # Tests mode assistΓ© ./monitor_workflows.sh # Monitorer workflows ``` ### Installation ```bash ./installer_dependances_completes.sh # Installer toutes les dΓ©pendances ./install_pix2struct.sh # Installer Pix2Struct ``` ### Diagnostic ```bash python3 diagnostic_complet_systeme.py # Diagnostic complet python3 diagnostic_faiss.py # Diagnostic FAISS python3 debug_embeddings.py # Debug embeddings ``` ## πŸ“Š Statistiques - **Fichiers Python** : ~80 fichiers - **Scripts Shell** : ~15 scripts - **Documentation** : ~50 fichiers MD - **Tests** : ~20 fichiers de test - **Lignes de code** : ~15,000 lignes ## πŸ”§ Technologies UtilisΓ©es - **Python 3.10+** - **PyQt5** : Interface graphique - **OpenCV** : Traitement d'images - **CLIP / Pix2Struct** : Embeddings visuels - **FAISS** : Recherche de similaritΓ© - **Ollama** : LLM local (Qwen3-VL) - **pynput** : Capture d'Γ©vΓ©nements - **numpy / torch** : Calculs numΓ©riques ## πŸ“ Notes - Le dossier `venv/` contient l'environnement virtuel Python (non inclus dans l'archive) - Le dossier `data/` contient les donnΓ©es d'exΓ©cution (logs, screenshots, workflows) - Le dossier `.git/` contient l'historique Git (non inclus dans l'archive) - Les fichiers `*.pyc` et `__pycache__/` sont gΓ©nΓ©rΓ©s automatiquement --- **Pour crΓ©er une archive : `./create_backup.sh`**