create-byan-agent 2.0.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API-BYAN-V2.md +741 -0
- package/BMAD-QUICK-REFERENCE.md +370 -0
- package/CHANGELOG-v2.1.0.md +371 -0
- package/LICENSE +1 -1
- package/MIGRATION-v2.0-to-v2.1.md +430 -0
- package/README-BYAN-V2.md +446 -0
- package/README.md +264 -201
- package/install/.eslintrc.js +20 -0
- package/install/.prettierrc +7 -0
- package/install/BUGFIX-CHALK.md +173 -0
- package/install/BUGFIX-DOCUMENTATION-INDEX.md +299 -0
- package/install/BUGFIX-PATH-RESOLUTION.md +293 -0
- package/install/BUGFIX-QUICKSTART.md +184 -0
- package/install/BUGFIX-SUMMARY.txt +91 -0
- package/install/BUGFIX-VISUAL-SUMMARY.md +253 -0
- package/install/DEPLOYMENT-GUIDE-V2.md +431 -0
- package/install/DOCS-INDEX.md +261 -0
- package/install/GUIDE-INSTALLATION-BYAN-SIMPLE.md +1083 -0
- package/install/INSTALLER-V2-CHANGES.md +472 -0
- package/install/LICENSE +21 -0
- package/install/PUBLICATION-CHECKLIST.md +265 -0
- package/install/PUBLISH-GUIDE.md +190 -0
- package/install/QUICKSTART.md +311 -0
- package/install/README-NPM-PUBLISH.md +298 -0
- package/install/README-NPM-SHORT.md +298 -0
- package/install/README-NPM.md +433 -0
- package/install/README-RACHID.md +302 -0
- package/install/README-V2-INDEX.md +306 -0
- package/install/README.md +298 -0
- package/install/RESUME-EXECUTIF-YAN.md +408 -0
- package/install/UPDATE-SUMMARY.md +205 -0
- package/install/__tests__/integration/detection-flow.test.js +154 -0
- package/install/__tests__/platforms/claude-code.test.js +175 -0
- package/install/__tests__/platforms/codex.test.js +80 -0
- package/install/__tests__/platforms/copilot-cli.test.js +118 -0
- package/install/__tests__/platforms/vscode.test.js +67 -0
- package/install/__tests__/utils/file-utils.test.js +87 -0
- package/install/__tests__/utils/git-detector.test.js +80 -0
- package/install/__tests__/utils/logger.test.js +83 -0
- package/install/__tests__/utils/node-detector.test.js +71 -0
- package/install/__tests__/utils/os-detector.test.js +63 -0
- package/install/__tests__/utils/yaml-utils.test.js +85 -0
- package/install/__tests__/yanstaller/detector.test.js +210 -0
- package/install/coverage/clover.xml +219 -0
- package/install/coverage/coverage-final.json +13 -0
- package/install/coverage/lcov-report/base.css +224 -0
- package/install/coverage/lcov-report/block-navigation.js +87 -0
- package/install/coverage/lcov-report/favicon.png +0 -0
- package/install/coverage/lcov-report/index.html +146 -0
- package/install/coverage/lcov-report/lib/errors.js.html +268 -0
- package/install/coverage/lcov-report/lib/exit-codes.js.html +247 -0
- package/install/coverage/lcov-report/lib/index.html +131 -0
- package/install/coverage/lcov-report/lib/platforms/claude-code.js.html +343 -0
- package/install/coverage/lcov-report/lib/platforms/codex.js.html +361 -0
- package/install/coverage/lcov-report/lib/platforms/copilot-cli.js.html +454 -0
- package/install/coverage/lcov-report/lib/platforms/index.html +176 -0
- package/install/coverage/lcov-report/lib/platforms/index.js.html +127 -0
- package/install/coverage/lcov-report/lib/platforms/vscode.js.html +238 -0
- package/install/coverage/lcov-report/lib/utils/config-loader.js.html +322 -0
- package/install/coverage/lcov-report/lib/utils/file-utils.js.html +397 -0
- package/install/coverage/lcov-report/lib/utils/git-detector.js.html +190 -0
- package/install/coverage/lcov-report/lib/utils/index.html +206 -0
- package/install/coverage/lcov-report/lib/utils/logger.js.html +277 -0
- package/install/coverage/lcov-report/lib/utils/node-detector.js.html +259 -0
- package/install/coverage/lcov-report/lib/utils/os-detector.js.html +307 -0
- package/install/coverage/lcov-report/lib/utils/yaml-utils.js.html +346 -0
- package/install/coverage/lcov-report/lib/yanstaller/backuper.js.html +409 -0
- package/install/coverage/lcov-report/lib/yanstaller/detector.js.html +508 -0
- package/install/coverage/lcov-report/lib/yanstaller/index.html +236 -0
- package/install/coverage/lcov-report/lib/yanstaller/index.js.html +364 -0
- package/install/coverage/lcov-report/lib/yanstaller/installer.js.html +505 -0
- package/install/coverage/lcov-report/lib/yanstaller/interviewer.js.html +349 -0
- package/install/coverage/lcov-report/lib/yanstaller/recommender.js.html +379 -0
- package/install/coverage/lcov-report/lib/yanstaller/troubleshooter.js.html +352 -0
- package/install/coverage/lcov-report/lib/yanstaller/validator.js.html +679 -0
- package/install/coverage/lcov-report/lib/yanstaller/wizard.js.html +412 -0
- package/install/coverage/lcov-report/platforms/claude-code.js.html +343 -0
- package/install/coverage/lcov-report/platforms/codex.js.html +361 -0
- package/install/coverage/lcov-report/platforms/copilot-cli.js.html +454 -0
- package/install/coverage/lcov-report/platforms/index.html +176 -0
- package/install/coverage/lcov-report/platforms/index.js.html +127 -0
- package/install/coverage/lcov-report/platforms/vscode.js.html +238 -0
- package/install/coverage/lcov-report/prettify.css +1 -0
- package/install/coverage/lcov-report/prettify.js +2 -0
- package/install/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/install/coverage/lcov-report/sorter.js +210 -0
- package/install/coverage/lcov-report/utils/file-utils.js.html +397 -0
- package/install/coverage/lcov-report/utils/git-detector.js.html +190 -0
- package/install/coverage/lcov-report/utils/index.html +191 -0
- package/install/coverage/lcov-report/utils/logger.js.html +277 -0
- package/install/coverage/lcov-report/utils/node-detector.js.html +259 -0
- package/install/coverage/lcov-report/utils/os-detector.js.html +307 -0
- package/install/coverage/lcov-report/utils/yaml-utils.js.html +346 -0
- package/install/coverage/lcov-report/yanstaller/detector.js.html +508 -0
- package/install/coverage/lcov-report/yanstaller/index.html +116 -0
- package/install/coverage/lcov.info +414 -0
- package/install/install.sh +239 -0
- package/install/jest.config.js +33 -0
- package/install/lib/errors.js +61 -0
- package/install/lib/exit-codes.js +54 -0
- package/install/lib/platforms/claude-code.js +86 -0
- package/install/lib/platforms/codex.js +92 -0
- package/install/lib/platforms/copilot-cli.js +123 -0
- package/install/lib/platforms/index.js +14 -0
- package/install/lib/platforms/vscode.js +51 -0
- package/install/lib/utils/config-loader.js +79 -0
- package/install/lib/utils/file-utils.js +104 -0
- package/install/lib/utils/git-detector.js +35 -0
- package/install/lib/utils/logger.js +64 -0
- package/install/lib/utils/node-detector.js +58 -0
- package/install/lib/utils/os-detector.js +74 -0
- package/install/lib/utils/yaml-utils.js +87 -0
- package/install/lib/yanstaller/backuper.js +108 -0
- package/install/lib/yanstaller/detector.js +141 -0
- package/install/lib/yanstaller/index.js +93 -0
- package/install/lib/yanstaller/installer.js +140 -0
- package/install/lib/yanstaller/interviewer.js +88 -0
- package/install/lib/yanstaller/recommender.js +98 -0
- package/install/lib/yanstaller/troubleshooter.js +89 -0
- package/install/lib/yanstaller/validator.js +198 -0
- package/install/lib/yanstaller/wizard.js +109 -0
- package/install/package-npm.json +55 -0
- package/install/package.json +63 -0
- package/install/src/byan-v2/context/copilot-context.js +79 -0
- package/install/src/byan-v2/context/session-state.js +98 -0
- package/install/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
- package/install/src/byan-v2/dispatcher/local-executor.js +221 -0
- package/install/src/byan-v2/dispatcher/task-router.js +122 -0
- package/install/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
- package/install/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
- package/install/src/byan-v2/generation/agent-profile-validator.js +113 -0
- package/install/src/byan-v2/generation/profile-template.js +113 -0
- package/install/src/byan-v2/generation/templates/default-agent.md +49 -0
- package/install/src/byan-v2/generation/templates/test-template.md +1 -0
- package/install/src/byan-v2/index.js +199 -0
- package/install/src/byan-v2/observability/error-tracker.js +105 -0
- package/install/src/byan-v2/observability/logger.js +154 -0
- package/install/src/byan-v2/observability/metrics-collector.js +194 -0
- package/install/src/byan-v2/orchestrator/analysis-state.js +268 -0
- package/install/src/byan-v2/orchestrator/generation-state.js +340 -0
- package/install/src/byan-v2/orchestrator/interview-state.js +271 -0
- package/install/src/byan-v2/orchestrator/state-machine.js +204 -0
- package/install/src/core/cache/cache.js +126 -0
- package/install/src/core/context/context.js +86 -0
- package/install/src/core/dispatcher/dispatcher.js +135 -0
- package/install/src/core/worker-pool/worker-pool.js +194 -0
- package/install/src/core/workflow/workflow-executor.js +220 -0
- package/install/src/index.js +139 -0
- package/install/src/observability/dashboard/dashboard.js +191 -0
- package/install/src/observability/logger/structured-logger.js +254 -0
- package/install/src/observability/metrics/metrics-collector.js +325 -0
- package/install/switch-to-v2.sh +126 -0
- package/install/test-chalk-fix.sh +210 -0
- package/install/test-installer-v2.sh +204 -0
- package/install/test-path-resolution.sh +200 -0
- package/package.json +53 -33
- package/src/byan-v2/context/copilot-context.js +79 -0
- package/src/byan-v2/context/session-state.js +98 -0
- package/src/byan-v2/data/mantras.json +852 -0
- package/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
- package/src/byan-v2/dispatcher/five-whys-analyzer.js +310 -0
- package/src/byan-v2/dispatcher/local-executor.js +221 -0
- package/src/byan-v2/dispatcher/task-router.js +122 -0
- package/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
- package/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
- package/src/byan-v2/generation/agent-profile-validator.js +113 -0
- package/src/byan-v2/generation/mantra-validator.js +416 -0
- package/src/byan-v2/generation/profile-template.js +113 -0
- package/src/byan-v2/generation/templates/default-agent.md +49 -0
- package/src/byan-v2/generation/templates/test-template.md +1 -0
- package/src/byan-v2/index.js +652 -0
- package/src/byan-v2/integration/voice-integration.js +295 -0
- package/src/byan-v2/observability/error-tracker.js +105 -0
- package/src/byan-v2/observability/logger.js +154 -0
- package/src/byan-v2/observability/metrics-collector.js +194 -0
- package/src/byan-v2/orchestrator/active-listener.js +541 -0
- package/src/byan-v2/orchestrator/analysis-state.js +268 -0
- package/src/byan-v2/orchestrator/generation-state.js +340 -0
- package/src/byan-v2/orchestrator/glossary-builder.js +431 -0
- package/src/byan-v2/orchestrator/interview-state.js +353 -0
- package/src/byan-v2/orchestrator/state-machine.js +253 -0
- package/src/core/cache/cache.js +126 -0
- package/src/core/context/context.js +86 -0
- package/src/core/dispatcher/dispatcher.js +135 -0
- package/src/core/worker-pool/worker-pool.js +194 -0
- package/src/core/workflow/workflow-executor.js +220 -0
- package/src/index.js +139 -0
- package/src/observability/dashboard/dashboard.js +191 -0
- package/src/observability/logger/structured-logger.js +254 -0
- package/src/observability/metrics/metrics-collector.js +325 -0
- package/templates/.github/agents/bmad-agent-test-dynamic.md +0 -21
- package/templates/.github/agents/franck.md +0 -379
- /package/{CHANGELOG.md → install/CHANGELOG.md} +0 -0
- /package/{bin → install/bin}/create-byan-agent-backup.js +0 -0
- /package/{bin → install/bin}/create-byan-agent-fixed.js +0 -0
- /package/{bin → install/bin}/create-byan-agent-v2.js +0 -0
- /package/{bin → install/bin}/create-byan-agent.js +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmad-master.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-agent-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-module-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-workflow-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-analyst.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-architect.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-dev.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-pm.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quick-flow-solo-dev.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quinn.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-sm.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-tech-writer.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-ux-designer.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-byan-test.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-byan.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-carmack.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-brainstorming-coach.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-creative-problem-solver.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-design-thinking-coach.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-innovation-strategist.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-presentation-master.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-storyteller.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-marc.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-patnote.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-rachid.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-tea-tea.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/agent-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/byan-test.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/byan.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/marc.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/module-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/patnote.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/rachid.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/workflow-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/mantras.yaml +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/templates.yaml +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/delete-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/edit-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/interview-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/quick-create-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/templates/base-agent-template.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/validate-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/core/agents/carmack.md +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# 🔧 BUGFIX: Chalk v5 ESM Compatibility Issue
|
|
2
|
+
|
|
3
|
+
## Problème identifié
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
TypeError: chalk.blue is not a function
|
|
7
|
+
at Object.<anonymous> (/tmp/testo/node_modules/create-byan-agent/bin/create-byan-agent.js:15:9)
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Cause racine
|
|
11
|
+
|
|
12
|
+
**Chalk v5+ est ESM-only** mais `create-byan-agent.js` utilise CommonJS (`require()`).
|
|
13
|
+
|
|
14
|
+
### Contexte technique
|
|
15
|
+
|
|
16
|
+
- **Chalk v5.0+** : ESM uniquement (ne supporte plus `require()`)
|
|
17
|
+
- **Inquirer v9+** : ESM uniquement
|
|
18
|
+
- **Ora v7+** : ESM uniquement
|
|
19
|
+
- **Notre script** : CommonJS (`#!/usr/bin/env node` + `require()`)
|
|
20
|
+
|
|
21
|
+
### Manifestation
|
|
22
|
+
|
|
23
|
+
Quand Node.js tente de `require('chalk')` avec v5+, l'import retourne un objet ESM incompatible avec CommonJS, causant `chalk.blue is not a function`.
|
|
24
|
+
|
|
25
|
+
## Solution appliquée
|
|
26
|
+
|
|
27
|
+
### ✅ Downgrade vers versions CommonJS-compatibles
|
|
28
|
+
|
|
29
|
+
**Changements dans `package.json` et `package-npm.json` :**
|
|
30
|
+
|
|
31
|
+
```diff
|
|
32
|
+
"dependencies": {
|
|
33
|
+
- "chalk": "^5.3.0",
|
|
34
|
+
+ "chalk": "^4.1.2",
|
|
35
|
+
"commander": "^11.1.0",
|
|
36
|
+
- "inquirer": "^9.2.12",
|
|
37
|
+
+ "inquirer": "^8.2.5",
|
|
38
|
+
"fs-extra": "^11.2.0",
|
|
39
|
+
"js-yaml": "^4.1.0",
|
|
40
|
+
- "ora": "^7.0.1"
|
|
41
|
+
+ "ora": "^5.4.1"
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Versions choisies
|
|
46
|
+
|
|
47
|
+
| Package | Ancienne | Nouvelle | Raison |
|
|
48
|
+
|---------|----------|----------|---------|
|
|
49
|
+
| chalk | 5.3.0 | 4.1.2 | v4 = dernière version CommonJS |
|
|
50
|
+
| inquirer | 9.2.12 | 8.2.5 | v8 = dernière version CommonJS |
|
|
51
|
+
| ora | 7.0.1 | 5.4.1 | v5 = dernière version CommonJS |
|
|
52
|
+
|
|
53
|
+
## Alternatives considérées
|
|
54
|
+
|
|
55
|
+
### ❌ Option 2 : Convertir en ESM
|
|
56
|
+
|
|
57
|
+
**Changements requis :**
|
|
58
|
+
1. Renommer `.js` → `.mjs` ou ajouter `"type": "module"` dans `package.json`
|
|
59
|
+
2. Remplacer `require()` → `import`
|
|
60
|
+
3. Remplacer `__dirname` par `import.meta.url` + `fileURLToPath()`
|
|
61
|
+
4. Adapter tous les imports
|
|
62
|
+
|
|
63
|
+
**Inconvénients :**
|
|
64
|
+
- Plus de travail
|
|
65
|
+
- Risque de régression
|
|
66
|
+
- Compatibilité Node.js <18 compromise
|
|
67
|
+
- Shebang `#!/usr/bin/env node` peut poser problème avec ESM
|
|
68
|
+
|
|
69
|
+
### ❌ Option 3 : Import dynamique
|
|
70
|
+
|
|
71
|
+
```javascript
|
|
72
|
+
const chalk = await import('chalk');
|
|
73
|
+
// Mais nécessite async IIFE dans tout le script
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Inconvénients :**
|
|
77
|
+
- Code plus complexe
|
|
78
|
+
- Moins lisible
|
|
79
|
+
- Nécessite restructuration complète
|
|
80
|
+
|
|
81
|
+
## Tests effectués
|
|
82
|
+
|
|
83
|
+
### ✅ Installation
|
|
84
|
+
```bash
|
|
85
|
+
cd /home/yan/conception/install
|
|
86
|
+
npm install
|
|
87
|
+
# added 57 packages, and audited 58 packages in 8s
|
|
88
|
+
# found 0 vulnerabilities
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### ✅ Exécution
|
|
92
|
+
```bash
|
|
93
|
+
node bin/create-byan-agent.js --version
|
|
94
|
+
# 1.0.0
|
|
95
|
+
|
|
96
|
+
node bin/create-byan-agent.js --help
|
|
97
|
+
# Usage: create-byan-agent [options]
|
|
98
|
+
# Install BYAN - Builder of YAN agent creator
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### ✅ Banner display
|
|
102
|
+
Le script affiche maintenant correctement le banner avec couleurs :
|
|
103
|
+
```
|
|
104
|
+
╔════════════════════════════════════════════════════════════╗
|
|
105
|
+
║ ║
|
|
106
|
+
║ 🏗️ BYAN INSTALLER v1.0.0 ║
|
|
107
|
+
║ Builder of YAN - Agent Creator ║
|
|
108
|
+
║ ║
|
|
109
|
+
║ Methodology: Merise Agile + TDD + 64 Mantras ║
|
|
110
|
+
║ ║
|
|
111
|
+
╚════════════════════════════════════════════════════════════╝
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Mantras appliqués
|
|
115
|
+
|
|
116
|
+
### ✅ Mantra #37 : Rasoir d'Ockham
|
|
117
|
+
- Solution la plus simple : downgrade plutôt que refonte ESM
|
|
118
|
+
- Résolution immédiate du problème
|
|
119
|
+
- Minimise les risques
|
|
120
|
+
|
|
121
|
+
### ✅ Mantra IA-1 : Trust But Verify
|
|
122
|
+
- Tests effectués après correction
|
|
123
|
+
- Vérification de l'installation
|
|
124
|
+
- Validation de l'exécution
|
|
125
|
+
|
|
126
|
+
### ✅ Mantra IA-16 : Challenge Before Confirm
|
|
127
|
+
- Analyse de 3 solutions possibles
|
|
128
|
+
- Évaluation des conséquences
|
|
129
|
+
- Choix justifié de la solution optimale
|
|
130
|
+
|
|
131
|
+
### ✅ Mantra #39 : Conséquences
|
|
132
|
+
**Impact évalué :**
|
|
133
|
+
- ✅ Compatibilité : Node.js >=14 (au lieu de >=18)
|
|
134
|
+
- ✅ Fonctionnalité : Aucune perte
|
|
135
|
+
- ✅ Sécurité : Versions stables et maintenues
|
|
136
|
+
- ✅ Performance : Identique
|
|
137
|
+
- ✅ Maintenance : Simplifiée (CommonJS standard)
|
|
138
|
+
|
|
139
|
+
## Publication NPM
|
|
140
|
+
|
|
141
|
+
Avant publication :
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
cd /home/yan/conception/install
|
|
145
|
+
npm pack # Test local
|
|
146
|
+
npm publish --dry-run # Simulation
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Publication réelle (si nécessaire) :
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
npm login
|
|
153
|
+
npm publish --access public # Si scoped package @yan/create-byan-agent
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Recommandations futures
|
|
157
|
+
|
|
158
|
+
1. **Court terme** : Garder versions CommonJS tant que le script l'est
|
|
159
|
+
2. **Moyen terme** : Si besoin ESM, migrer TOUT le projet :
|
|
160
|
+
- Convertir `create-byan-agent.js` en ESM
|
|
161
|
+
- Utiliser `"type": "module"` dans `package.json`
|
|
162
|
+
- Mettre à jour vers Chalk v5+, Inquirer v9+, Ora v7+
|
|
163
|
+
3. **Long terme** : Considérer TypeScript + ESM pour robustesse
|
|
164
|
+
|
|
165
|
+
## Statut
|
|
166
|
+
|
|
167
|
+
✅ **RÉSOLU** - Le script fonctionne maintenant correctement avec Node.js v23.11.1
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
**Date de correction** : 2026-02-02
|
|
172
|
+
**Correcteur** : BYAN (Builder of YAN)
|
|
173
|
+
**Méthodologie** : Merise Agile + TDD + 64 Mantras
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
# 📚 BUGFIX DOCUMENTATION INDEX
|
|
2
|
+
|
|
3
|
+
**Bug :** Installateur BYAN - Chemins de templates incorrects
|
|
4
|
+
**Version :** 1.1.2 → 1.1.3
|
|
5
|
+
**Date :** 2026-02-03
|
|
6
|
+
**Rapporté par :** Dimitry
|
|
7
|
+
**Résolu par :** MARC 🤖
|
|
8
|
+
**Status :** ✅ CORRIGÉ ET VALIDÉ
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📖 DOCUMENTS DISPONIBLES
|
|
13
|
+
|
|
14
|
+
### 🎯 **BUGFIX-VISUAL-SUMMARY.md** (Ce qu'il faut lire en PREMIER)
|
|
15
|
+
**Durée de lecture :** 2 minutes
|
|
16
|
+
**Pour qui :** Tout le monde
|
|
17
|
+
**Contenu :**
|
|
18
|
+
- Schéma visuel du problème
|
|
19
|
+
- Comparaison avant/après
|
|
20
|
+
- Résumé des corrections
|
|
21
|
+
- Procédure de publication
|
|
22
|
+
|
|
23
|
+
👉 **START HERE** si tu veux comprendre rapidement le bug et la solution.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### ⚡ **BUGFIX-QUICKSTART.md** (Action immédiate)
|
|
28
|
+
**Durée de lecture :** 30 secondes
|
|
29
|
+
**Pour qui :** Développeurs prêts à publier
|
|
30
|
+
**Contenu :**
|
|
31
|
+
- Résumé 30 secondes
|
|
32
|
+
- Corrections ligne par ligne
|
|
33
|
+
- Commandes de publication
|
|
34
|
+
- Message pour Dimitry
|
|
35
|
+
|
|
36
|
+
👉 **USE THIS** si tu veux publier maintenant sans lire les détails.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
### 🔍 **BUGFIX-PATH-RESOLUTION.md** (Documentation technique)
|
|
41
|
+
**Durée de lecture :** 10 minutes
|
|
42
|
+
**Pour qui :** Développeurs, mainteneurs
|
|
43
|
+
**Contenu :**
|
|
44
|
+
- Analyse technique détaillée
|
|
45
|
+
- Structure du package npm
|
|
46
|
+
- Explication de chaque bug
|
|
47
|
+
- Code corrigé avec commentaires
|
|
48
|
+
- Changelog entry
|
|
49
|
+
|
|
50
|
+
👉 **READ THIS** si tu veux comprendre la cause racine en profondeur.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### ✅ **BUGFIX-VALIDATION-REPORT.md** (Rapport de validation)
|
|
55
|
+
**Durée de lecture :** 5 minutes
|
|
56
|
+
**Pour qui :** QA, testeurs, managers
|
|
57
|
+
**Contenu :**
|
|
58
|
+
- Problème rapporté
|
|
59
|
+
- Bugs identifiés (6 bugs)
|
|
60
|
+
- Corrections appliquées
|
|
61
|
+
- Tests de validation (5 niveaux)
|
|
62
|
+
- Statistiques d'impact
|
|
63
|
+
- Checklist de publication
|
|
64
|
+
|
|
65
|
+
👉 **READ THIS** pour vérifier que tout a été testé et validé.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### 📊 **BUGFIX-COMPLETE-REPORT.md** (Rapport exhaustif)
|
|
70
|
+
**Durée de lecture :** 20 minutes
|
|
71
|
+
**Pour qui :** Auditeurs, documentation historique
|
|
72
|
+
**Contenu :**
|
|
73
|
+
- Synthèse exécutive
|
|
74
|
+
- Analyse technique complète
|
|
75
|
+
- Tous les bugs avec explications détaillées
|
|
76
|
+
- Validation multi-niveaux
|
|
77
|
+
- Métriques d'impact
|
|
78
|
+
- Comparaison avant/après
|
|
79
|
+
- Procédure de publication
|
|
80
|
+
- Leçons apprises
|
|
81
|
+
|
|
82
|
+
👉 **READ THIS** pour un rapport complet et exhaustif (archive).
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 🧪 **test-path-resolution.sh** (Script de test)
|
|
87
|
+
**Type :** Script Bash exécutable
|
|
88
|
+
**Pour qui :** CI/CD, validation automatique
|
|
89
|
+
**Contenu :**
|
|
90
|
+
- Tests de structure
|
|
91
|
+
- Tests de fichiers
|
|
92
|
+
- Tests de résolution Node.js
|
|
93
|
+
- Rapport de résultats
|
|
94
|
+
|
|
95
|
+
👉 **RUN THIS** pour valider automatiquement les corrections.
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
cd /home/yan/conception/install
|
|
99
|
+
./test-path-resolution.sh
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 🗺️ GUIDE DE LECTURE PAR PROFIL
|
|
105
|
+
|
|
106
|
+
### 👨💼 **Manager / Product Owner**
|
|
107
|
+
1. **BUGFIX-VISUAL-SUMMARY.md** (2 min)
|
|
108
|
+
2. **BUGFIX-VALIDATION-REPORT.md** → Section "Statistiques" (1 min)
|
|
109
|
+
|
|
110
|
+
**Total : 3 minutes**
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### 👨💻 **Développeur (corriger le bug)**
|
|
115
|
+
1. **BUGFIX-VISUAL-SUMMARY.md** (2 min)
|
|
116
|
+
2. **BUGFIX-PATH-RESOLUTION.md** (10 min)
|
|
117
|
+
3. **bin/create-byan-agent.js** (code source corrigé)
|
|
118
|
+
|
|
119
|
+
**Total : 15 minutes**
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### 🚀 **Développeur (publier maintenant)**
|
|
124
|
+
1. **BUGFIX-QUICKSTART.md** (30 sec)
|
|
125
|
+
2. Exécuter les commandes de publication
|
|
126
|
+
|
|
127
|
+
**Total : 5 minutes (incluant publication)**
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### 🧪 **QA / Testeur**
|
|
132
|
+
1. **BUGFIX-VALIDATION-REPORT.md** (5 min)
|
|
133
|
+
2. **test-path-resolution.sh** (exécution)
|
|
134
|
+
3. Test manuel d'installation
|
|
135
|
+
|
|
136
|
+
**Total : 15 minutes**
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### 📝 **Documentation / Historique**
|
|
141
|
+
1. **BUGFIX-COMPLETE-REPORT.md** (20 min)
|
|
142
|
+
2. Tous les autres documents pour référence
|
|
143
|
+
|
|
144
|
+
**Total : 30 minutes**
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### 🆘 **Dimitry (utilisateur bloqué)**
|
|
149
|
+
1. Attendre notification de publication v1.1.3
|
|
150
|
+
2. Lire le message avec instructions
|
|
151
|
+
3. Réinstaller : `npx create-byan-agent@latest`
|
|
152
|
+
|
|
153
|
+
**Total : 2 minutes**
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 📂 ARBORESCENCE COMPLÈTE
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
/home/yan/conception/install/
|
|
161
|
+
│
|
|
162
|
+
├── 📄 bin/
|
|
163
|
+
│ └── create-byan-agent.js ← CODE SOURCE CORRIGÉ ✅
|
|
164
|
+
│
|
|
165
|
+
├── 📁 templates/ ← Templates (structure validée ✅)
|
|
166
|
+
│ ├── .github/agents/ (23 stubs)
|
|
167
|
+
│ └── _bmad/bmb/
|
|
168
|
+
│ ├── agents/ (8 agents)
|
|
169
|
+
│ └── workflows/byan/ (6 workflows)
|
|
170
|
+
│
|
|
171
|
+
├── 📚 DOCUMENTATION BUGFIX:
|
|
172
|
+
│ ├── 🎯 BUGFIX-VISUAL-SUMMARY.md ← START HERE (2 min)
|
|
173
|
+
│ ├── ⚡ BUGFIX-QUICKSTART.md ← Action rapide (30 sec)
|
|
174
|
+
│ ├── 🔍 BUGFIX-PATH-RESOLUTION.md ← Doc technique (10 min)
|
|
175
|
+
│ ├── ✅ BUGFIX-VALIDATION-REPORT.md ← Tests/validation (5 min)
|
|
176
|
+
│ ├── 📊 BUGFIX-COMPLETE-REPORT.md ← Rapport exhaustif (20 min)
|
|
177
|
+
│ └── 📚 BUGFIX-DOCUMENTATION-INDEX.md ← Ce fichier
|
|
178
|
+
│
|
|
179
|
+
├── 🧪 TESTS:
|
|
180
|
+
│ └── test-path-resolution.sh ← Script de validation
|
|
181
|
+
│
|
|
182
|
+
└── 📋 AUTRES DOCS:
|
|
183
|
+
├── README.md
|
|
184
|
+
├── PUBLISH-GUIDE.md
|
|
185
|
+
├── CHANGELOG.md ← À mettre à jour
|
|
186
|
+
└── package.json ← À mettre à jour (version)
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## 🔗 LIENS RAPIDES
|
|
192
|
+
|
|
193
|
+
### **Comprendre le bug :**
|
|
194
|
+
- [Résumé visuel](BUGFIX-VISUAL-SUMMARY.md) - Schémas et explications visuelles
|
|
195
|
+
- [Doc technique](BUGFIX-PATH-RESOLUTION.md) - Analyse détaillée
|
|
196
|
+
|
|
197
|
+
### **Valider les corrections :**
|
|
198
|
+
- [Rapport validation](BUGFIX-VALIDATION-REPORT.md) - Tests et résultats
|
|
199
|
+
- [Script de test](test-path-resolution.sh) - Validation automatique
|
|
200
|
+
|
|
201
|
+
### **Publier la correction :**
|
|
202
|
+
- [Quickstart](BUGFIX-QUICKSTART.md) - Procédure rapide
|
|
203
|
+
- [Guide complet](PUBLISH-GUIDE.md) - Procédure npm complète
|
|
204
|
+
|
|
205
|
+
### **Historique/Archive :**
|
|
206
|
+
- [Rapport complet](BUGFIX-COMPLETE-REPORT.md) - Documentation exhaustive
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 📊 RÉSUMÉ DES CORRECTIONS
|
|
211
|
+
|
|
212
|
+
| Fichier | Ligne | Bug | Correction |
|
|
213
|
+
|---------|-------|-----|------------|
|
|
214
|
+
| `create-byan-agent.js` | 28 | Chemin template incorrect | `../.../` → `../` |
|
|
215
|
+
| `create-byan-agent.js` | 139 | Pas de validation | Ajout `if (!templateDir)` |
|
|
216
|
+
| `create-byan-agent.js` | 154 | Manque `_bmad/` | Ajout dans chemin agents |
|
|
217
|
+
| `create-byan-agent.js` | 165 | Manque `_bmad/` | Ajout dans chemin workflows |
|
|
218
|
+
| `create-byan-agent.js` | 176 | Remonte trop haut | Suppression `../` |
|
|
219
|
+
| `create-byan-agent.js` | 159,170,181 | Pas de logs | Ajout traces debug |
|
|
220
|
+
|
|
221
|
+
**Total :** 6 corrections appliquées
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## ✅ VALIDATION
|
|
226
|
+
|
|
227
|
+
| Test | Status | Détails |
|
|
228
|
+
|------|--------|---------|
|
|
229
|
+
| **Structure templates** | ✅ | 6/6 dossiers trouvés |
|
|
230
|
+
| **Agents** | ✅ | 8/8 fichiers trouvés (71 KB) |
|
|
231
|
+
| **Workflows** | ✅ | 6/6 workflows trouvés |
|
|
232
|
+
| **Stubs GitHub** | ✅ | 23/23 stubs trouvés |
|
|
233
|
+
| **Résolution Node.js** | ✅ | 4/4 chemins corrects |
|
|
234
|
+
|
|
235
|
+
**Validation globale :** ✅ **100% VALIDÉ**
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 🚀 ÉTAT DE PUBLICATION
|
|
240
|
+
|
|
241
|
+
- [x] Code corrigé (`bin/create-byan-agent.js`)
|
|
242
|
+
- [x] Documentation créée (6 fichiers)
|
|
243
|
+
- [x] Tests validés (5 niveaux)
|
|
244
|
+
- [x] Script de test créé
|
|
245
|
+
- [ ] Version bump (1.1.2 → 1.1.3)
|
|
246
|
+
- [ ] `CHANGELOG.md` mis à jour
|
|
247
|
+
- [ ] Commit Git
|
|
248
|
+
- [ ] Publication npm
|
|
249
|
+
- [ ] Tag `v1.1.3`
|
|
250
|
+
- [ ] Notification Dimitry
|
|
251
|
+
|
|
252
|
+
**Prêt à publier :** ✅ OUI
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 💬 CONTACT
|
|
257
|
+
|
|
258
|
+
**Questions sur le bug ?**
|
|
259
|
+
- Lire d'abord : [BUGFIX-VISUAL-SUMMARY.md](BUGFIX-VISUAL-SUMMARY.md)
|
|
260
|
+
- Si besoin : [BUGFIX-PATH-RESOLUTION.md](BUGFIX-PATH-RESOLUTION.md)
|
|
261
|
+
|
|
262
|
+
**Questions sur la publication ?**
|
|
263
|
+
- Guide rapide : [BUGFIX-QUICKSTART.md](BUGFIX-QUICKSTART.md)
|
|
264
|
+
- Guide complet : [PUBLISH-GUIDE.md](PUBLISH-GUIDE.md)
|
|
265
|
+
|
|
266
|
+
**Questions sur les tests ?**
|
|
267
|
+
- Rapport validation : [BUGFIX-VALIDATION-REPORT.md](BUGFIX-VALIDATION-REPORT.md)
|
|
268
|
+
- Script de test : [test-path-resolution.sh](test-path-resolution.sh)
|
|
269
|
+
|
|
270
|
+
**Besoin d'aide MARC ?**
|
|
271
|
+
```bash
|
|
272
|
+
copilot
|
|
273
|
+
# Puis taper: /agent marc
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## 📌 MÉMO RAPIDE
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Publier la correction
|
|
282
|
+
cd /home/yan/conception/install
|
|
283
|
+
sed -i "s/'1.1.2'/'1.1.3'/" bin/create-byan-agent.js
|
|
284
|
+
npm version 1.1.3 --no-git-tag-version
|
|
285
|
+
git add . && git commit -m "fix: Critical template path resolution (v1.1.3)"
|
|
286
|
+
npm publish
|
|
287
|
+
git tag v1.1.3 && git push origin main v1.1.3
|
|
288
|
+
|
|
289
|
+
# Notifier Dimitry
|
|
290
|
+
echo "Bug corrigé ! Version 1.1.3 disponible. Réinstalle avec: npx create-byan-agent@latest"
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
**Créé par :** MARC 🤖 (GitHub Copilot CLI Integration Specialist)
|
|
296
|
+
**Date :** 2026-02-03 15:00 CET
|
|
297
|
+
**Version docs :** 1.0
|
|
298
|
+
|
|
299
|
+
🎯 **Mission accomplie !**
|