UNPKG

ai-team-orchestrator

Version:

🧠 AI Team Advanced - Maximum Quality Agent System avec 9 agents ultra-spĂ©cialisĂ©s et collaboration intelligente

185 lines (140 loc) ‱ 4.67 kB
# 🔐 Guide complet de configuration GitHub ## 📋 PrĂ©requis absolus ### 1. Repository GitHub - ✅ Repository GitHub existant - ✅ AccĂšs admin au repository - ✅ GitHub Actions activĂ© ### 2. Token GitHub (Personal Access Token) #### 🔧 CrĂ©ation du token : 1. Allez sur : https://github.com/settings/tokens 2. Cliquez "Generate new token" → "Generate new token (classic)" 3. **Nom :** `AI Team Orchestrator` 4. **Expiration :** 90 days (ou plus) #### 🔑 Permissions OBLIGATOIRES : ``` ✅ repo (Full control of private repositories) ├── repo:status ├── repo_deployment ├── public_repo └── repo:invite ✅ workflow (Update GitHub Action workflows) ✅ write:packages (optionnel) ✅ read:org (optionnel pour les organisations) ``` #### 🚹 Permissions minimales critiques : - **`repo`** → Pour crĂ©er/modifier issues, PRs, fichiers - **`workflow`** → Pour dĂ©clencher les GitHub Actions ### 3. Secrets Repository #### 📍 Localisation : `Repository → Settings → Secrets and variables → Actions` #### 🔒 Secrets requis : | Secret | Valeur | Obligatoire | |--------|--------|-------------| | `TOGETHER_AI_API_KEY` | Votre clĂ© Together.ai | ✅ OUI | | `GITHUB_TOKEN` | Votre PAT GitHub | ⚠ RecommandĂ© | > **Note :** `GITHUB_TOKEN` est automatiquement fourni par GitHub Actions, mais avec des permissions limitĂ©es. Un PAT personnel donne plus de contrĂŽle. ## 🚀 Configuration pas Ă  pas ### Étape 1 : Installer les workflows ```bash cd votre-projet ai-team init ``` ### Étape 2 : Configurer l'API ```bash ai-team setup-api ``` ### Étape 3 : Configurer le token GitHub ```bash # Option A : Variable d'environnement (local) export GITHUB_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxx" # Option B : Secret repository (recommandĂ©) # Allez dans Settings → Secrets → Actions # CrĂ©ez : GITHUB_TOKEN = ghp_xxxxxxxxxxxxxxxxxxxx ``` ### Étape 4 : VĂ©rifier tout ```bash ai-team check ``` ## 🔍 Diagnostic des problĂšmes ### Workflows non dĂ©clenchĂ©s ✅ **VĂ©rifications :** 1. `ai-team check` → Tout vert ? 2. Repository Settings → Actions → ActivĂ© ? 3. Secrets configurĂ©s correctement ? 4. Permissions du token suffisantes ? ### Erreurs de permissions ``` Error: Resource not accessible by integration ``` **Solutions :** 1. VĂ©rifiez les permissions du token PAT 2. RecrĂ©ez le token avec `repo` + `workflow` 3. Configurez le secret `GITHUB_TOKEN` dans le repository ### API Together.ai Ă©choue ``` 401 Unauthorized ``` **Solutions :** 1. VĂ©rifiez la clĂ© API : `ai-team setup-api` 2. Testez : `ai-team check` 3. RĂ©gĂ©nĂ©rez la clĂ© sur together.ai ## ⚡ Test rapide ```bash # 1. Diagnostic complet ai-team check # 2. Test avec une issue simple ai-team issue "Test DeepSeek R1" --type feature # 3. VĂ©rifiez dans Actions → Workflows ``` ## đŸ› ïž DĂ©pannage avancĂ© ### Token GitHub : Permissions dĂ©taillĂ©es ```json { "repo": { "status": "✅ Requis - Status checks", "deployment": "✅ Requis - Deployments", "public_repo": "✅ Requis - Public repos", "invite": "✅ Requis - Collaborators" }, "workflow": "✅ CRITIQUE - GitHub Actions", "write:packages": "⚠ Optionnel - Packages", "read:org": "⚠ Optionnel - Organisation" } ``` ### Variables d'environnement alternatives ```bash # Pour GitHub CLI export GH_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxx" # Pour Together.ai export TOGETHER_AI_API_KEY="votre-cle-together" # Test ai-team check ``` ### Structure des fichiers requis ``` votre-projet/ ├── .github/ │ ├── workflows/ │ │ └── ai-team-mcp.yml ✅ Principal DeepSeek R1 │ └── scripts/ │ ├── ai_team_mcp.py ✅ Script DeepSeek R1 │ └── requirements.txt ✅ DĂ©pendances Python └── .env (optionnel) ├── TOGETHER_AI_API_KEY=xxx └── GITHUB_TOKEN=xxx ``` ## 🎯 Workflow de dĂ©clenchement 1. **Issue créée** → `ai-team issue "titre"` 2. **Workflow dĂ©tecte** → `.github/workflows/ai-team-mcp.yml` 3. **Script Python** → `ai_team_mcp.py` + DeepSeek R1 4. **Code gĂ©nĂ©rĂ©** → Fichiers créés automatiquement 5. **PR créée** → Pull Request automatique 6. **Review** → Code prĂȘt Ă  merger --- ## 🆘 Support Si `ai-team check` montre tout en vert mais les workflows ne se dĂ©clenchent pas : 1. VĂ©rifiez les logs dans **Actions** → **Workflows** 2. Recherchez les erreurs dans les logs de workflow 3. Confirmez que l'issue a bien le label `ai-team` 4. VĂ©rifiez que le repository autorise les GitHub Actions **🧠 AI Team Orchestrator - PropulsĂ© par DeepSeek R1**