#!/bin/bash
# Commandes rapides pour RPA Vision V2 MVP

echo "🚀 RPA Vision V2 - Commandes Rapides"
echo ""

# Installation
alias rpa-install='cd geniusia2 && ./setup.sh'
alias rpa-install-faiss='cd geniusia2 && ./install_faiss.sh'

# Lancement
alias rpa-run='cd geniusia2 && ./run.sh'
alias rpa-workflow='python3 example_complete_workflow.py'
alias rpa-test-replay='python3 test_task_replay.py'

# Diagnostic
alias rpa-diag='python3 diagnostic_data.py'
alias rpa-list='python3 read_pkl.py --list'
alias rpa-rebuild='python3 rebuild_faiss_simple.py'

# Logs
alias rpa-logs='cat geniusia2/data/logs/logs_$(date +%Y-%m-%d).json | jq .'
alias rpa-logs-actions='cat geniusia2/data/logs/logs_$(date +%Y-%m-%d).json | jq "select(.type==\"action\")"'

echo "Aliases créés :"
echo "  rpa-install         : Installation complète"
echo "  rpa-install-faiss   : Installation FAISS"
echo "  rpa-run             : Lancer l'application"
echo "  rpa-workflow        : Workflow complet"
echo "  rpa-test-replay     : Tester le rejeu"
echo "  rpa-diag            : Diagnostic"
echo "  rpa-list            : Lister les tâches"
echo "  rpa-rebuild         : Reconstruire l'index FAISS"
echo "  rpa-logs            : Voir les logs"
echo "  rpa-logs-actions    : Voir les actions"
echo ""
echo "Usage: source COMMANDES_RAPIDES.sh"
