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.
Files changed (240) hide show
  1. package/API-BYAN-V2.md +741 -0
  2. package/BMAD-QUICK-REFERENCE.md +370 -0
  3. package/CHANGELOG-v2.1.0.md +371 -0
  4. package/LICENSE +1 -1
  5. package/MIGRATION-v2.0-to-v2.1.md +430 -0
  6. package/README-BYAN-V2.md +446 -0
  7. package/README.md +264 -201
  8. package/install/.eslintrc.js +20 -0
  9. package/install/.prettierrc +7 -0
  10. package/install/BUGFIX-CHALK.md +173 -0
  11. package/install/BUGFIX-DOCUMENTATION-INDEX.md +299 -0
  12. package/install/BUGFIX-PATH-RESOLUTION.md +293 -0
  13. package/install/BUGFIX-QUICKSTART.md +184 -0
  14. package/install/BUGFIX-SUMMARY.txt +91 -0
  15. package/install/BUGFIX-VISUAL-SUMMARY.md +253 -0
  16. package/install/DEPLOYMENT-GUIDE-V2.md +431 -0
  17. package/install/DOCS-INDEX.md +261 -0
  18. package/install/GUIDE-INSTALLATION-BYAN-SIMPLE.md +1083 -0
  19. package/install/INSTALLER-V2-CHANGES.md +472 -0
  20. package/install/LICENSE +21 -0
  21. package/install/PUBLICATION-CHECKLIST.md +265 -0
  22. package/install/PUBLISH-GUIDE.md +190 -0
  23. package/install/QUICKSTART.md +311 -0
  24. package/install/README-NPM-PUBLISH.md +298 -0
  25. package/install/README-NPM-SHORT.md +298 -0
  26. package/install/README-NPM.md +433 -0
  27. package/install/README-RACHID.md +302 -0
  28. package/install/README-V2-INDEX.md +306 -0
  29. package/install/README.md +298 -0
  30. package/install/RESUME-EXECUTIF-YAN.md +408 -0
  31. package/install/UPDATE-SUMMARY.md +205 -0
  32. package/install/__tests__/integration/detection-flow.test.js +154 -0
  33. package/install/__tests__/platforms/claude-code.test.js +175 -0
  34. package/install/__tests__/platforms/codex.test.js +80 -0
  35. package/install/__tests__/platforms/copilot-cli.test.js +118 -0
  36. package/install/__tests__/platforms/vscode.test.js +67 -0
  37. package/install/__tests__/utils/file-utils.test.js +87 -0
  38. package/install/__tests__/utils/git-detector.test.js +80 -0
  39. package/install/__tests__/utils/logger.test.js +83 -0
  40. package/install/__tests__/utils/node-detector.test.js +71 -0
  41. package/install/__tests__/utils/os-detector.test.js +63 -0
  42. package/install/__tests__/utils/yaml-utils.test.js +85 -0
  43. package/install/__tests__/yanstaller/detector.test.js +210 -0
  44. package/install/coverage/clover.xml +219 -0
  45. package/install/coverage/coverage-final.json +13 -0
  46. package/install/coverage/lcov-report/base.css +224 -0
  47. package/install/coverage/lcov-report/block-navigation.js +87 -0
  48. package/install/coverage/lcov-report/favicon.png +0 -0
  49. package/install/coverage/lcov-report/index.html +146 -0
  50. package/install/coverage/lcov-report/lib/errors.js.html +268 -0
  51. package/install/coverage/lcov-report/lib/exit-codes.js.html +247 -0
  52. package/install/coverage/lcov-report/lib/index.html +131 -0
  53. package/install/coverage/lcov-report/lib/platforms/claude-code.js.html +343 -0
  54. package/install/coverage/lcov-report/lib/platforms/codex.js.html +361 -0
  55. package/install/coverage/lcov-report/lib/platforms/copilot-cli.js.html +454 -0
  56. package/install/coverage/lcov-report/lib/platforms/index.html +176 -0
  57. package/install/coverage/lcov-report/lib/platforms/index.js.html +127 -0
  58. package/install/coverage/lcov-report/lib/platforms/vscode.js.html +238 -0
  59. package/install/coverage/lcov-report/lib/utils/config-loader.js.html +322 -0
  60. package/install/coverage/lcov-report/lib/utils/file-utils.js.html +397 -0
  61. package/install/coverage/lcov-report/lib/utils/git-detector.js.html +190 -0
  62. package/install/coverage/lcov-report/lib/utils/index.html +206 -0
  63. package/install/coverage/lcov-report/lib/utils/logger.js.html +277 -0
  64. package/install/coverage/lcov-report/lib/utils/node-detector.js.html +259 -0
  65. package/install/coverage/lcov-report/lib/utils/os-detector.js.html +307 -0
  66. package/install/coverage/lcov-report/lib/utils/yaml-utils.js.html +346 -0
  67. package/install/coverage/lcov-report/lib/yanstaller/backuper.js.html +409 -0
  68. package/install/coverage/lcov-report/lib/yanstaller/detector.js.html +508 -0
  69. package/install/coverage/lcov-report/lib/yanstaller/index.html +236 -0
  70. package/install/coverage/lcov-report/lib/yanstaller/index.js.html +364 -0
  71. package/install/coverage/lcov-report/lib/yanstaller/installer.js.html +505 -0
  72. package/install/coverage/lcov-report/lib/yanstaller/interviewer.js.html +349 -0
  73. package/install/coverage/lcov-report/lib/yanstaller/recommender.js.html +379 -0
  74. package/install/coverage/lcov-report/lib/yanstaller/troubleshooter.js.html +352 -0
  75. package/install/coverage/lcov-report/lib/yanstaller/validator.js.html +679 -0
  76. package/install/coverage/lcov-report/lib/yanstaller/wizard.js.html +412 -0
  77. package/install/coverage/lcov-report/platforms/claude-code.js.html +343 -0
  78. package/install/coverage/lcov-report/platforms/codex.js.html +361 -0
  79. package/install/coverage/lcov-report/platforms/copilot-cli.js.html +454 -0
  80. package/install/coverage/lcov-report/platforms/index.html +176 -0
  81. package/install/coverage/lcov-report/platforms/index.js.html +127 -0
  82. package/install/coverage/lcov-report/platforms/vscode.js.html +238 -0
  83. package/install/coverage/lcov-report/prettify.css +1 -0
  84. package/install/coverage/lcov-report/prettify.js +2 -0
  85. package/install/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  86. package/install/coverage/lcov-report/sorter.js +210 -0
  87. package/install/coverage/lcov-report/utils/file-utils.js.html +397 -0
  88. package/install/coverage/lcov-report/utils/git-detector.js.html +190 -0
  89. package/install/coverage/lcov-report/utils/index.html +191 -0
  90. package/install/coverage/lcov-report/utils/logger.js.html +277 -0
  91. package/install/coverage/lcov-report/utils/node-detector.js.html +259 -0
  92. package/install/coverage/lcov-report/utils/os-detector.js.html +307 -0
  93. package/install/coverage/lcov-report/utils/yaml-utils.js.html +346 -0
  94. package/install/coverage/lcov-report/yanstaller/detector.js.html +508 -0
  95. package/install/coverage/lcov-report/yanstaller/index.html +116 -0
  96. package/install/coverage/lcov.info +414 -0
  97. package/install/install.sh +239 -0
  98. package/install/jest.config.js +33 -0
  99. package/install/lib/errors.js +61 -0
  100. package/install/lib/exit-codes.js +54 -0
  101. package/install/lib/platforms/claude-code.js +86 -0
  102. package/install/lib/platforms/codex.js +92 -0
  103. package/install/lib/platforms/copilot-cli.js +123 -0
  104. package/install/lib/platforms/index.js +14 -0
  105. package/install/lib/platforms/vscode.js +51 -0
  106. package/install/lib/utils/config-loader.js +79 -0
  107. package/install/lib/utils/file-utils.js +104 -0
  108. package/install/lib/utils/git-detector.js +35 -0
  109. package/install/lib/utils/logger.js +64 -0
  110. package/install/lib/utils/node-detector.js +58 -0
  111. package/install/lib/utils/os-detector.js +74 -0
  112. package/install/lib/utils/yaml-utils.js +87 -0
  113. package/install/lib/yanstaller/backuper.js +108 -0
  114. package/install/lib/yanstaller/detector.js +141 -0
  115. package/install/lib/yanstaller/index.js +93 -0
  116. package/install/lib/yanstaller/installer.js +140 -0
  117. package/install/lib/yanstaller/interviewer.js +88 -0
  118. package/install/lib/yanstaller/recommender.js +98 -0
  119. package/install/lib/yanstaller/troubleshooter.js +89 -0
  120. package/install/lib/yanstaller/validator.js +198 -0
  121. package/install/lib/yanstaller/wizard.js +109 -0
  122. package/install/package-npm.json +55 -0
  123. package/install/package.json +63 -0
  124. package/install/src/byan-v2/context/copilot-context.js +79 -0
  125. package/install/src/byan-v2/context/session-state.js +98 -0
  126. package/install/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
  127. package/install/src/byan-v2/dispatcher/local-executor.js +221 -0
  128. package/install/src/byan-v2/dispatcher/task-router.js +122 -0
  129. package/install/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
  130. package/install/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
  131. package/install/src/byan-v2/generation/agent-profile-validator.js +113 -0
  132. package/install/src/byan-v2/generation/profile-template.js +113 -0
  133. package/install/src/byan-v2/generation/templates/default-agent.md +49 -0
  134. package/install/src/byan-v2/generation/templates/test-template.md +1 -0
  135. package/install/src/byan-v2/index.js +199 -0
  136. package/install/src/byan-v2/observability/error-tracker.js +105 -0
  137. package/install/src/byan-v2/observability/logger.js +154 -0
  138. package/install/src/byan-v2/observability/metrics-collector.js +194 -0
  139. package/install/src/byan-v2/orchestrator/analysis-state.js +268 -0
  140. package/install/src/byan-v2/orchestrator/generation-state.js +340 -0
  141. package/install/src/byan-v2/orchestrator/interview-state.js +271 -0
  142. package/install/src/byan-v2/orchestrator/state-machine.js +204 -0
  143. package/install/src/core/cache/cache.js +126 -0
  144. package/install/src/core/context/context.js +86 -0
  145. package/install/src/core/dispatcher/dispatcher.js +135 -0
  146. package/install/src/core/worker-pool/worker-pool.js +194 -0
  147. package/install/src/core/workflow/workflow-executor.js +220 -0
  148. package/install/src/index.js +139 -0
  149. package/install/src/observability/dashboard/dashboard.js +191 -0
  150. package/install/src/observability/logger/structured-logger.js +254 -0
  151. package/install/src/observability/metrics/metrics-collector.js +325 -0
  152. package/install/switch-to-v2.sh +126 -0
  153. package/install/test-chalk-fix.sh +210 -0
  154. package/install/test-installer-v2.sh +204 -0
  155. package/install/test-path-resolution.sh +200 -0
  156. package/package.json +53 -33
  157. package/src/byan-v2/context/copilot-context.js +79 -0
  158. package/src/byan-v2/context/session-state.js +98 -0
  159. package/src/byan-v2/data/mantras.json +852 -0
  160. package/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
  161. package/src/byan-v2/dispatcher/five-whys-analyzer.js +310 -0
  162. package/src/byan-v2/dispatcher/local-executor.js +221 -0
  163. package/src/byan-v2/dispatcher/task-router.js +122 -0
  164. package/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
  165. package/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
  166. package/src/byan-v2/generation/agent-profile-validator.js +113 -0
  167. package/src/byan-v2/generation/mantra-validator.js +416 -0
  168. package/src/byan-v2/generation/profile-template.js +113 -0
  169. package/src/byan-v2/generation/templates/default-agent.md +49 -0
  170. package/src/byan-v2/generation/templates/test-template.md +1 -0
  171. package/src/byan-v2/index.js +652 -0
  172. package/src/byan-v2/integration/voice-integration.js +295 -0
  173. package/src/byan-v2/observability/error-tracker.js +105 -0
  174. package/src/byan-v2/observability/logger.js +154 -0
  175. package/src/byan-v2/observability/metrics-collector.js +194 -0
  176. package/src/byan-v2/orchestrator/active-listener.js +541 -0
  177. package/src/byan-v2/orchestrator/analysis-state.js +268 -0
  178. package/src/byan-v2/orchestrator/generation-state.js +340 -0
  179. package/src/byan-v2/orchestrator/glossary-builder.js +431 -0
  180. package/src/byan-v2/orchestrator/interview-state.js +353 -0
  181. package/src/byan-v2/orchestrator/state-machine.js +253 -0
  182. package/src/core/cache/cache.js +126 -0
  183. package/src/core/context/context.js +86 -0
  184. package/src/core/dispatcher/dispatcher.js +135 -0
  185. package/src/core/worker-pool/worker-pool.js +194 -0
  186. package/src/core/workflow/workflow-executor.js +220 -0
  187. package/src/index.js +139 -0
  188. package/src/observability/dashboard/dashboard.js +191 -0
  189. package/src/observability/logger/structured-logger.js +254 -0
  190. package/src/observability/metrics/metrics-collector.js +325 -0
  191. package/templates/.github/agents/bmad-agent-test-dynamic.md +0 -21
  192. package/templates/.github/agents/franck.md +0 -379
  193. /package/{CHANGELOG.md → install/CHANGELOG.md} +0 -0
  194. /package/{bin → install/bin}/create-byan-agent-backup.js +0 -0
  195. /package/{bin → install/bin}/create-byan-agent-fixed.js +0 -0
  196. /package/{bin → install/bin}/create-byan-agent-v2.js +0 -0
  197. /package/{bin → install/bin}/create-byan-agent.js +0 -0
  198. /package/{templates → install/templates}/.github/agents/bmad-agent-bmad-master.md +0 -0
  199. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-agent-builder.md +0 -0
  200. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-module-builder.md +0 -0
  201. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-workflow-builder.md +0 -0
  202. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-analyst.md +0 -0
  203. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-architect.md +0 -0
  204. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-dev.md +0 -0
  205. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-pm.md +0 -0
  206. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quick-flow-solo-dev.md +0 -0
  207. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quinn.md +0 -0
  208. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-sm.md +0 -0
  209. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-tech-writer.md +0 -0
  210. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-ux-designer.md +0 -0
  211. /package/{templates → install/templates}/.github/agents/bmad-agent-byan-test.md +0 -0
  212. /package/{templates → install/templates}/.github/agents/bmad-agent-byan.md +0 -0
  213. /package/{templates → install/templates}/.github/agents/bmad-agent-carmack.md +0 -0
  214. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-brainstorming-coach.md +0 -0
  215. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-creative-problem-solver.md +0 -0
  216. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-design-thinking-coach.md +0 -0
  217. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-innovation-strategist.md +0 -0
  218. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-presentation-master.md +0 -0
  219. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-storyteller.md +0 -0
  220. /package/{templates → install/templates}/.github/agents/bmad-agent-marc.md +0 -0
  221. /package/{templates → install/templates}/.github/agents/bmad-agent-patnote.md +0 -0
  222. /package/{templates → install/templates}/.github/agents/bmad-agent-rachid.md +0 -0
  223. /package/{templates → install/templates}/.github/agents/bmad-agent-tea-tea.md +0 -0
  224. /package/{templates → install/templates}/_bmad/bmb/agents/agent-builder.md +0 -0
  225. /package/{templates → install/templates}/_bmad/bmb/agents/byan-test.md +0 -0
  226. /package/{templates → install/templates}/_bmad/bmb/agents/byan.md +0 -0
  227. /package/{templates → install/templates}/_bmad/bmb/agents/marc.md +0 -0
  228. /package/{templates → install/templates}/_bmad/bmb/agents/module-builder.md +0 -0
  229. /package/{templates → install/templates}/_bmad/bmb/agents/patnote.md +0 -0
  230. /package/{templates → install/templates}/_bmad/bmb/agents/rachid.md +0 -0
  231. /package/{templates → install/templates}/_bmad/bmb/agents/workflow-builder.md +0 -0
  232. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/mantras.yaml +0 -0
  233. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/templates.yaml +0 -0
  234. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/delete-agent-workflow.md +0 -0
  235. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/edit-agent-workflow.md +0 -0
  236. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/interview-workflow.md +0 -0
  237. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/quick-create-workflow.md +0 -0
  238. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/templates/base-agent-template.md +0 -0
  239. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/validate-agent-workflow.md +0 -0
  240. /package/{templates → install/templates}/_bmad/core/agents/carmack.md +0 -0
package/README.md CHANGED
@@ -1,298 +1,361 @@
1
- # BYAN - Intelligent AI Agent Creator
1
+ # BYAN v2.1.0 - Build Your AI Network
2
2
 
3
- **Create custom AI agents in 15 minutes** | GitHub Copilot CLI, VSCode, Claude Code
3
+ [![npm version](https://img.shields.io/npm/v/create-byan-agent.svg)](https://www.npmjs.com/package/create-byan-agent)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Tests](https://img.shields.io/badge/tests-1308%2F1308-brightgreen.svg)](https://github.com/yannsix/byan-v2)
4
6
 
5
- ## Quick Start
7
+ **Intelligent AI Agent Creator** | Powered by Merise Agile + TDD + 64 Mantras
6
8
 
7
- ```bash
8
- npx create-byan-agent
9
- ```
10
-
11
- That's it! The installer launches automatically.
9
+ Create custom AI agents through intelligent structured interviews with advanced BMAD (Business Modeling & Agent Development) features.
12
10
 
13
- ## What is BYAN?
14
-
15
- BYAN guides you through an intelligent interview to create personalized AI agents:
16
-
17
- 1. ✅ Answer 12-15 simple questions (15-30 min)
18
- 2. ✅ BYAN analyzes your needs
19
- 3. ✅ Custom agent generated automatically
20
- 4. ✅ Ready to use immediately
11
+ ---
21
12
 
22
- ## Installation
13
+ ## 🚀 Quick Start
23
14
 
24
- ### Option 1: NPX (Recommended)
15
+ ### Install & Run
25
16
 
26
17
  ```bash
18
+ # Using npx (recommended - no installation needed)
27
19
  npx create-byan-agent
28
- ```
29
20
 
30
- ### Option 2: Global Install
31
-
32
- ```bash
21
+ # Or install globally
33
22
  npm install -g create-byan-agent
23
+
24
+ # Then run
34
25
  create-byan-agent
35
26
  ```
36
27
 
37
- ## Create Your First Agent
28
+ ### Programmatic Usage
38
29
 
39
- ### 1. Launch BYAN
30
+ ```javascript
31
+ const ByanV2 = require('create-byan-agent');
40
32
 
41
- **GitHub Copilot CLI:**
42
- ```bash
43
- gh copilot
44
- @byan
45
- ```
33
+ const byan = new ByanV2({
34
+ maxQuestions: 12,
35
+ outputDir: './_bmad-output'
36
+ });
46
37
 
47
- **Command Line:**
48
- ```bash
49
- npx create-byan-agent
38
+ await byan.startSession();
39
+
40
+ // Interactive interview (12 questions)
41
+ while (!byan.isComplete()) {
42
+ const question = byan.getNextQuestion();
43
+ const answer = await getUserInput(question.text);
44
+ await byan.submitResponse(answer);
45
+ }
46
+
47
+ // Generate agent profile
48
+ const profile = await byan.generateProfile();
49
+ console.log('Agent created:', profile.filePath);
50
50
  ```
51
51
 
52
- ### 2. Choose Mode
52
+ ---
53
53
 
54
- **🎤 Full Interview (15-30 min)** - Recommended for first agent
55
- - 12-15 questions
56
- - In-depth analysis
57
- - Ultra-personalized agent
54
+ ## What's New in v2.1.0
58
55
 
59
- **⚡ Quick Create (5 min)** - For experienced users
60
- - 3-5 essential questions
61
- - Functional agent quickly
56
+ ### 4 New BMAD Modules
62
57
 
63
- ### 3. Answer Questions
58
+ **📚 Glossary Builder** - Auto-builds domain vocabularies
59
+ - Auto-triggers for complex domains (ecommerce, finance, healthcare)
60
+ - Validates definition clarity (min 70%)
61
+ - Suggests related concepts
64
62
 
65
- BYAN asks questions in 4 categories:
63
+ **🔍 Five Whys Analyzer** - Root cause analysis
64
+ - Detects pain points automatically
65
+ - 5 sequential WHY questions
66
+ - Categorizes causes (technical/process/people/resource)
66
67
 
67
- 1. **Context**: Your project, goals
68
- 2. **Business**: Domain, constraints
69
- 3. **Agent**: Desired skills, tasks
70
- 4. **Validation**: Confirmation, adjustments
68
+ **👂 Active Listener** - Intelligent response processing
69
+ - Auto-reformulation every 3rd response
70
+ - Validates confirmations
71
+ - Session summaries with insights
71
72
 
72
- ### 4. Automatic Generation
73
+ **✅ Mantras Validator** - Quality validation
74
+ - 64 BMAD/IA mantras
75
+ - Compliance scoring (target: 80%+)
76
+ - Category-based validation
73
77
 
74
- ```
75
- ✅ Complete analysis
76
- ✅ Agent created: my-dev-agent.md
77
- ✅ Validated and ready
78
- ```
78
+ **417 new tests** | **100% passing** | **95%+ coverage** | **< 10% overhead**
79
79
 
80
- Agent saved to:
81
- - GitHub Copilot: `.github/copilot/agents/`
82
- - Other platforms: `.codex/prompts/`
80
+ ---
83
81
 
84
- ## Usage Examples
82
+ ## 🎯 Features
85
83
 
86
- ### Code Review Agent
84
+ ### Core Capabilities
87
85
 
88
- ```bash
89
- npx create-byan-agent
86
+ - **Intelligent 4-Phase Interview**: Context → Business → Agent Needs → Validation
87
+ - **Automatic Profile Generation**: Creates `.md` agent files with YAML frontmatter
88
+ - **Built-in Validation**: Validates against GitHub Copilot CLI requirements
89
+ - **Template System**: Flexible templates with placeholder resolution
90
+ - **Quality Enforcement**: Zero emoji policy, clean code principles
91
+ - **State Machine Workflow**: INTERVIEW → ANALYSIS → GENERATION → COMPLETED
90
92
 
91
- # BYAN asks:
92
- # Purpose? → "Review JavaScript code"
93
- # Tasks? → "Detect bugs, suggest optimizations"
94
- # Constraints? → "Follow our style guide"
93
+ ### Advanced BMAD Features (v2.1.0)
95
94
 
96
- # Result: code-reviewer.md created in 2 seconds
97
- ```
95
+ - **Domain Glossaries**: Auto-build glossaries with clarity validation
96
+ - **Root Cause Analysis**: 5 Whys technique for pain point analysis
97
+ - **Active Listening**: Intelligent reformulation and validation
98
+ - **Mantra Validation**: 64 mantras compliance checking
98
99
 
99
- ### Documentation Agent
100
+ ### 100% Backwards Compatible
100
101
 
101
- ```bash
102
- npx create-byan-agent
102
+ All v2.0.0 code works unchanged in v2.1.0. BMAD features are opt-in.
103
103
 
104
- # Purpose? → "Generate API documentation"
105
- # Tech? → "Node.js, Express, MongoDB"
106
- # Format? → "Markdown with examples"
104
+ ---
107
105
 
108
- # Result: doc-generator.md ready
109
- ```
106
+ ## 📖 Usage Examples
110
107
 
111
- ## Use Your Agent
108
+ ### Example 1: Basic Agent Creation
112
109
 
113
- ### With GitHub Copilot CLI
110
+ ```javascript
111
+ const ByanV2 = require('create-byan-agent');
114
112
 
115
- ```bash
116
- gh copilot
117
- @my-dev-agent
118
- # Your agent responds!
113
+ async function createAgent() {
114
+ const byan = new ByanV2();
115
+ await byan.startSession();
116
+
117
+ // Answer 12 interview questions
118
+ await byan.submitResponse('code-review-assistant');
119
+ await byan.submitResponse('Reviews code for bugs and best practices');
120
+ // ... 10 more responses
121
+
122
+ const profile = await byan.generateProfile();
123
+ console.log('✅ Agent created');
124
+ }
119
125
  ```
120
126
 
121
- ### With VSCode
122
-
123
- 1. Command Palette (Ctrl+Shift+P)
124
- 2. "GitHub Copilot: Chat"
125
- 3. Type `@my-dev-agent`
127
+ ### Example 2: With BMAD Features
126
128
 
127
- ### With Claude Code
129
+ ```javascript
130
+ const ByanV2 = require('create-byan-agent');
128
131
 
129
- ```bash
130
- claude chat --agent my-dev-agent
132
+ async function createWithBMAD() {
133
+ const byan = new ByanV2({
134
+ bmad_features: {
135
+ glossary_builder: { enabled: true },
136
+ five_whys: { enabled: true },
137
+ active_listener: { enabled: true },
138
+ mantras_validator: { enabled: true }
139
+ }
140
+ });
141
+
142
+ await byan.startSession();
143
+
144
+ // Glossary auto-triggers for complex domains
145
+ const glossary = byan.startGlossary('ecommerce');
146
+ byan.addConcept('Order', 'Customer purchase request...');
147
+
148
+ // Pain point detection
149
+ const detection = byan.detectPainPoints('Slow checkout');
150
+ if (detection.needsWhys) {
151
+ const question = byan.askWhy();
152
+ // ... 5 Whys analysis
153
+ }
154
+
155
+ // Generate and validate
156
+ const profile = await byan.generateProfile();
157
+ const validation = byan.validateAgent(profile.content);
158
+
159
+ console.log(`Score: ${validation.score * 100}%`);
160
+ }
131
161
  ```
132
162
 
133
- ## Key Concepts (v2.0)
163
+ ### Example 3: Validate Existing Agent
134
164
 
135
- ### 1. Intelligent Interview (4 phases)
165
+ ```javascript
166
+ const ByanV2 = require('create-byan-agent');
167
+ const fs = require('fs');
136
168
 
137
- ```
138
- CONTEXT → BUSINESS → AGENT → VALIDATION
169
+ const byan = new ByanV2({
170
+ bmad_features: {
171
+ mantras_validator: { enabled: true }
172
+ }
173
+ });
174
+
175
+ const agentContent = fs.readFileSync('my-agent.md', 'utf-8');
176
+ const validation = byan.validateAgent(agentContent);
177
+
178
+ console.log(`Compliance: ${validation.score * 100}%`);
179
+ console.log(`Compliant: ${validation.compliant.length}/64`);
180
+ console.log(`Non-compliant: ${validation.nonCompliant.length}/64`);
139
181
  ```
140
182
 
141
- Minimum 3 questions per phase = 12 total
183
+ ---
184
+
185
+ ## 🔧 Configuration
142
186
 
143
- ### 2. State Machine
187
+ ### Basic Configuration
144
188
 
189
+ ```javascript
190
+ const byan = new ByanV2({
191
+ maxQuestions: 12,
192
+ outputDir: './_bmad-output/bmb-creations',
193
+ sessionId: 'my-session'
194
+ });
145
195
  ```
146
- INTERVIEW → ANALYSIS → GENERATION → COMPLETED
196
+
197
+ ### BMAD Configuration
198
+
199
+ ```javascript
200
+ const byan = new ByanV2({
201
+ bmad_features: {
202
+ glossary_builder: {
203
+ enabled: true,
204
+ auto_trigger_domains: ['ecommerce', 'finance', 'healthcare'],
205
+ min_concepts: 5,
206
+ clarity_threshold: 0.7
207
+ },
208
+ five_whys: {
209
+ enabled: true,
210
+ max_depth: 5,
211
+ auto_trigger: true
212
+ },
213
+ active_listener: {
214
+ enabled: true,
215
+ reformulation_frequency: 3
216
+ },
217
+ mantras_validator: {
218
+ enabled: true,
219
+ min_compliance_score: 0.8
220
+ }
221
+ }
222
+ });
147
223
  ```
148
224
 
149
- ### 3. Template System
225
+ ---
150
226
 
151
- Agents generated from professional templates with YAML frontmatter + XML structure.
227
+ ## 📊 Quality Metrics
152
228
 
153
- ### 4. Automatic Validation
229
+ - **Tests**: 1,308/1,308 passing (100%)
230
+ - Core v2.0: 891 tests
231
+ - BMAD v2.1: 417 tests
232
+ - **Coverage**: 95%+
233
+ - **Performance**: < 10% overhead vs v2.0.0
234
+ - **Principles**: KISS, DRY, SOLID, TDD
235
+ - **Standards**: Zero emojis (Mantra IA-23)
154
236
 
155
- - ✅ Correct YAML format
156
- - ✅ Valid XML structure
157
- - ✅ No emojis in code (Mantra IA-23)
158
- - ✅ Valid agent name
159
- - ✅ Clear description
237
+ ---
160
238
 
161
- ### 5. Methodology: 64 Mantras
239
+ ## 📚 API Reference
162
240
 
163
- Quality principles applied:
164
- - **#37 Ockham's Razor**: Simplicity first
165
- - **IA-1 Trust But Verify**: Verify user needs
166
- - **IA-23 No Emoji Pollution**: Clean code
167
- - **IA-24 Clean Code**: Self-documenting
241
+ ### Main Class: ByanV2
168
242
 
169
- ## Advanced Configuration
243
+ #### Core Methods
170
244
 
171
- ### Customize Output
245
+ - `constructor(config)` - Initialize BYAN
246
+ - `startSession()` - Start interview session
247
+ - `getNextQuestion()` - Get next interview question
248
+ - `submitResponse(answer)` - Submit answer
249
+ - `generateProfile()` - Generate agent profile
250
+ - `isComplete()` - Check if interview complete
172
251
 
173
- ```javascript
174
- const ByanV2 = require('create-byan-agent');
252
+ #### Glossary Builder (BMAD)
175
253
 
176
- const byan = new ByanV2({
177
- outputFolder: './my-agents',
178
- language: 'en',
179
- template: 'custom'
180
- });
181
- ```
254
+ - `startGlossary(domain, options)` - Initialize glossary
255
+ - `addConcept(term, definition)` - Add concept
256
+ - `getConcepts()` - Get all concepts
257
+ - `getGlossary()` - Get full glossary
182
258
 
183
- ### Programmatic Usage
259
+ #### Five Whys Analyzer (BMAD)
184
260
 
185
- ```javascript
186
- const ByanV2 = require('create-byan-agent');
261
+ - `detectPainPoints(response)` - Detect pain points
262
+ - `askWhy()` - Get WHY question
263
+ - `processWhyAnswer(answer)` - Process answer
264
+ - `getRootCause()` - Get root cause analysis
187
265
 
188
- async function createAgent() {
189
- const byan = new ByanV2();
190
- await byan.startSession();
191
-
192
- const responses = [
193
- 'Backend development agent',
194
- 'REST API in Node.js',
195
- 'Tests, docs, deployment',
196
- // ... 12 responses total
197
- ];
198
-
199
- for (const response of responses) {
200
- await byan.getNextQuestion();
201
- await byan.submitResponse(response);
202
- }
203
-
204
- const profile = await byan.generateProfile();
205
- console.log('Agent created:', profile);
206
- }
207
- ```
266
+ #### Active Listener (BMAD)
208
267
 
209
- ## Useful Commands
268
+ - `listen(input, context)` - Process input with listening
269
+ - `reformulate(input, style)` - Reformulate input
270
+ - `validateResponse(input)` - Validate confirmation
271
+ - `summarizeSession()` - Generate session summary
210
272
 
211
- ```bash
212
- # List agents
213
- ls .github/copilot/agents/
273
+ #### Mantras Validator (BMAD)
214
274
 
215
- # Edit agent
216
- code .github/copilot/agents/my-agent.md
275
+ - `validateAgent(definition)` - Validate against mantras
276
+ - `generateComplianceReport()` - Generate report
277
+ - `validateMantra(mantraId, content)` - Validate specific mantra
278
+ - `getMantras(category)` - Get mantras by category
279
+
280
+ ---
217
281
 
218
- # Validate agent
219
- npx create-byan-agent --validate my-agent.md
282
+ ## 🔄 Migration from v2.0.0
220
283
 
221
- # Version
222
- npx create-byan-agent --version
284
+ **Good news**: Zero breaking changes! Your v2.0.0 code works unchanged.
285
+
286
+ ```javascript
287
+ // v2.0.0 code - still works in v2.1.0
288
+ const ByanV2 = require('create-byan-agent');
289
+ const byan = new ByanV2();
290
+ await byan.startSession();
291
+ // ... your existing workflow
223
292
  ```
224
293
 
225
- ## Help & Support
294
+ To use new BMAD features, simply enable them in config. See [MIGRATION.md](https://github.com/yannsix/byan-v2/blob/main/MIGRATION-v2.0-to-v2.1.md) for details.
226
295
 
227
- ### Get Help
296
+ ---
228
297
 
229
- ```
230
- /bmad-help
231
- ```
298
+ ## 📖 Documentation
232
299
 
233
- ### Documentation
300
+ - [Full Documentation](https://github.com/yannsix/byan-v2/blob/main/README-BYAN-V2.md)
301
+ - [CHANGELOG v2.1.0](https://github.com/yannsix/byan-v2/blob/main/CHANGELOG-v2.1.0.md)
302
+ - [Migration Guide](https://github.com/yannsix/byan-v2/blob/main/MIGRATION-v2.0-to-v2.1.md)
303
+ - [Manual Testing Guide](https://github.com/yannsix/byan-v2/blob/main/BYAN-V2.1.0-MANUAL-TEST-PLAN.md)
304
+ - [BMAD Quick Reference](https://github.com/yannsix/byan-v2/blob/main/BMAD-QUICK-REFERENCE.md)
234
305
 
235
- - [Full Guide](https://github.com/Yan-Acadenice/BYAN/blob/main/GUIDE-UTILISATION.md)
236
- - [API Reference](https://github.com/Yan-Acadenice/BYAN/blob/main/API-BYAN-V2.md)
237
- - [Examples](https://github.com/Yan-Acadenice/BYAN/tree/main/examples)
306
+ ---
238
307
 
239
- ### Common Issues
308
+ ## 🤝 Contributing
240
309
 
241
- **Agent doesn't appear in Copilot**
242
- ```bash
243
- cat .github/copilot/agents/my-agent.md
244
- gh copilot quit && gh copilot
245
- ```
310
+ Contributions welcome! Please read our contributing guidelines and submit pull requests to our [GitHub repository](https://github.com/yannsix/byan-v2).
246
311
 
247
- **"Node version too old"**
248
- ```bash
249
- node --version # Must be >= 18
250
- nvm install 18 && nvm use 18
251
- ```
312
+ ---
252
313
 
253
- **Tests fail**
254
- ```bash
255
- rm -rf node_modules package-lock.json
256
- npm install && npm test
257
- ```
314
+ ## 📄 License
258
315
 
259
- ## Stats (v2.0)
316
+ MIT © Yan
260
317
 
261
- - ✅ **881/881 tests passing (100%)**
262
- - ✅ **14 modules**
263
- - ✅ **77 Story Points delivered**
264
- - ✅ **Agent in < 2 seconds** after interview
265
- - ✅ **64 mantras** applied automatically
318
+ ---
266
319
 
267
- ## Use Cases
320
+ ## 🆘 Support
268
321
 
269
- **Developers**: Code review, test generation, refactoring, security analysis
322
+ - **Issues**: [GitHub Issues](https://github.com/yannsix/byan-v2/issues)
323
+ - **Repository**: [github.com/yannsix/byan-v2](https://github.com/yannsix/byan-v2)
270
324
 
271
- **Writers**: Documentation, proofreading, translation, content creation
325
+ ---
272
326
 
273
- **Project Managers**: Ticket analysis, reports, planning, prioritization
327
+ ## 🎯 Use Cases
274
328
 
275
- **Designers**: UI components, accessibility, CSS optimization, design systems
329
+ ### For Solo Developers
330
+ Create specialized agents for your workflow without complex setup.
276
331
 
277
- ## License
332
+ ### For Teams
333
+ Build consistent agent profiles following team standards and mantras.
278
334
 
279
- MIT License
335
+ ### For Agencies
336
+ Rapid agent prototyping with built-in quality validation.
280
337
 
281
- ## Contributors
338
+ ### For Open Source
339
+ Generate well-documented agent profiles for public repositories.
282
340
 
283
- **Core Team:**
284
- - **BYAN**: Intelligent agent creator
285
- - **RACHID**: NPM/NPX deployment specialist
286
- - **MARC**: GitHub Copilot CLI integration expert
287
- - **PATNOTE**: Update manager
288
- - **CARMACK**: Token optimizer
341
+ ---
289
342
 
290
- ## Links
343
+ ## 🌟 Highlights
291
344
 
292
- - 📦 [NPM](https://www.npmjs.com/package/create-byan-agent)
293
- - 🐙 [GitHub](https://github.com/Yan-Acadenice/BYAN)
294
- - 📚 [Full Docs](https://github.com/Yan-Acadenice/BYAN/blob/main/install/README.md)
345
+ - **Zero Setup**: Works immediately with npx
346
+ - **Intelligent**: Smart interview adapts to your answers
347
+ - **Quality**: Built-in validation against 64 mantras
348
+ - ✅ **Fast**: Create agents in 10-15 minutes
349
+ - ✅ **Flexible**: Use as CLI or programmatically
350
+ - ✅ **Tested**: 1,308 tests, 100% passing
351
+ - ✅ **Compatible**: Works with v2.0.0 code unchanged
295
352
 
296
353
  ---
297
354
 
298
- **BYAN v2.0** - Create professional AI agents in 15 minutes 🚀
355
+ **Ready to create your first AI agent?**
356
+
357
+ ```bash
358
+ npx create-byan-agent
359
+ ```
360
+
361
+ 🚀 Let's build something amazing!
@@ -0,0 +1,20 @@
1
+ module.exports = {
2
+ env: {
3
+ node: true,
4
+ es2021: true,
5
+ jest: true
6
+ },
7
+ extends: 'eslint:recommended',
8
+ parserOptions: {
9
+ ecmaVersion: 'latest',
10
+ sourceType: 'module'
11
+ },
12
+ rules: {
13
+ 'no-console': 'off', // CLI tool, console is OK
14
+ 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
15
+ 'semi': ['error', 'always'],
16
+ 'quotes': ['error', 'single'],
17
+ 'indent': ['error', 2],
18
+ 'comma-dangle': ['error', 'never']
19
+ }
20
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": true,
4
+ "trailingComma": "none",
5
+ "tabWidth": 2,
6
+ "printWidth": 100
7
+ }