bmad-method 6.12.4 → 7.1.0

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 (389) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +107 -54
  3. package/agents.json +640 -0
  4. package/bin/bmad-method.js +4 -0
  5. package/messages.yaml +267 -0
  6. package/modules.yaml +56 -0
  7. package/package.json +32 -110
  8. package/src/agent-picks.js +77 -0
  9. package/src/agents.js +141 -0
  10. package/src/bmad-scripts.js +167 -0
  11. package/src/cli.js +266 -0
  12. package/src/commands/agent-choice.js +67 -0
  13. package/src/commands/apply.js +38 -0
  14. package/src/commands/deps.js +25 -0
  15. package/src/commands/ending.js +66 -0
  16. package/src/commands/existing-install.js +50 -0
  17. package/src/commands/install-plan.js +130 -0
  18. package/src/commands/install-steps.js +66 -0
  19. package/src/commands/install.js +86 -0
  20. package/src/commands/status.js +39 -0
  21. package/src/commands/update.js +106 -0
  22. package/src/installed.js +48 -0
  23. package/src/messages.js +84 -0
  24. package/src/modules.js +221 -0
  25. package/src/preflight.js +124 -0
  26. package/src/project-lock.js +68 -0
  27. package/src/prompts.js +626 -0
  28. package/src/report.js +199 -0
  29. package/src/run.js +128 -0
  30. package/src/self-update.js +88 -0
  31. package/src/skills-cli.js +133 -0
  32. package/src/version.js +11 -0
  33. package/.claude-plugin/marketplace.json +0 -53
  34. package/AGENTS.md +0 -24
  35. package/CLAUDE.md +0 -1
  36. package/README_CN.md +0 -98
  37. package/README_KR.md +0 -90
  38. package/README_VN.md +0 -99
  39. package/bmad-modules.yaml +0 -140
  40. package/body.md +0 -17
  41. package/greptile.json +0 -52
  42. package/pr2.md +0 -11
  43. package/removals.txt +0 -87
  44. package/src/bmm-skills/agents/bmad-agent-analyst/SKILL.md +0 -76
  45. package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +0 -103
  46. package/src/bmm-skills/agents/bmad-agent-architect/SKILL.md +0 -76
  47. package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +0 -63
  48. package/src/bmm-skills/agents/bmad-agent-dev/SKILL.md +0 -76
  49. package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +0 -81
  50. package/src/bmm-skills/agents/bmad-agent-pm/SKILL.md +0 -76
  51. package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +0 -73
  52. package/src/bmm-skills/agents/bmad-agent-ux-designer/SKILL.md +0 -76
  53. package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +0 -58
  54. package/src/bmm-skills/module-help.csv +0 -19
  55. package/src/bmm-skills/module.yaml +0 -85
  56. package/src/bmm-skills/plan/bmad-architecture/SKILL.md +0 -85
  57. package/src/bmm-skills/plan/bmad-architecture/assets/spine-template.md +0 -79
  58. package/src/bmm-skills/plan/bmad-architecture/customize.toml +0 -101
  59. package/src/bmm-skills/plan/bmad-architecture/references/headless.md +0 -26
  60. package/src/bmm-skills/plan/bmad-architecture/references/reviewer-gate.md +0 -13
  61. package/src/bmm-skills/plan/bmad-architecture/scripts/lint_spine.py +0 -261
  62. package/src/bmm-skills/plan/bmad-architecture/scripts/tests/test_lint_spine.py +0 -270
  63. package/src/bmm-skills/plan/bmad-create-epics-and-stories/SKILL.md +0 -93
  64. package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +0 -39
  65. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -263
  66. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -242
  67. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
  68. package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -141
  69. package/src/bmm-skills/plan/bmad-create-epics-and-stories/templates/epics-template.md +0 -62
  70. package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +0 -12
  71. package/src/bmm-skills/plan/bmad-prd/SKILL.md +0 -94
  72. package/src/bmm-skills/plan/bmad-prd/assets/headless-schemas.md +0 -76
  73. package/src/bmm-skills/plan/bmad-prd/assets/prd-template.md +0 -165
  74. package/src/bmm-skills/plan/bmad-prd/assets/prd-validation-checklist.md +0 -135
  75. package/src/bmm-skills/plan/bmad-prd/assets/validation-report-template.html +0 -325
  76. package/src/bmm-skills/plan/bmad-prd/customize.toml +0 -148
  77. package/src/bmm-skills/plan/bmad-prd/references/headless.md +0 -39
  78. package/src/bmm-skills/plan/bmad-prd/references/validate.md +0 -97
  79. package/src/bmm-skills/plan/bmad-prfaq/SKILL.md +0 -135
  80. package/src/bmm-skills/plan/bmad-prfaq/agents/artifact-analyzer.md +0 -60
  81. package/src/bmm-skills/plan/bmad-prfaq/agents/web-researcher.md +0 -49
  82. package/src/bmm-skills/plan/bmad-prfaq/assets/prfaq-template.md +0 -62
  83. package/src/bmm-skills/plan/bmad-prfaq/bmad-manifest.json +0 -16
  84. package/src/bmm-skills/plan/bmad-prfaq/customize.toml +0 -39
  85. package/src/bmm-skills/plan/bmad-prfaq/references/customer-faq.md +0 -55
  86. package/src/bmm-skills/plan/bmad-prfaq/references/internal-faq.md +0 -51
  87. package/src/bmm-skills/plan/bmad-prfaq/references/press-release.md +0 -60
  88. package/src/bmm-skills/plan/bmad-prfaq/references/verdict.md +0 -83
  89. package/src/bmm-skills/plan/bmad-product-brief/SKILL.md +0 -91
  90. package/src/bmm-skills/plan/bmad-product-brief/assets/brief-template.md +0 -41
  91. package/src/bmm-skills/plan/bmad-product-brief/customize.toml +0 -100
  92. package/src/bmm-skills/plan/bmad-project-context/SKILL.md +0 -121
  93. package/src/bmm-skills/plan/bmad-project-context/customize.toml +0 -24
  94. package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +0 -84
  95. package/src/bmm-skills/plan/bmad-project-context/references/template.md +0 -55
  96. package/src/bmm-skills/plan/bmad-spec/SKILL.md +0 -160
  97. package/src/bmm-skills/plan/bmad-spec/assets/headless-schemas.md +0 -33
  98. package/src/bmm-skills/plan/bmad-spec/assets/spec-template.md +0 -49
  99. package/src/bmm-skills/plan/bmad-spec/assets/stories-schema.md +0 -44
  100. package/src/bmm-skills/plan/bmad-spec/customize.toml +0 -52
  101. package/src/bmm-skills/plan/bmad-sprint-planning/SKILL.md +0 -62
  102. package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +0 -39
  103. package/src/bmm-skills/plan/bmad-sprint-planning/references/fix-sprint-status.md +0 -30
  104. package/src/bmm-skills/plan/bmad-sprint-planning/references/generate-tracking.md +0 -25
  105. package/src/bmm-skills/plan/bmad-sprint-planning/references/readiness-gate.md +0 -20
  106. package/src/bmm-skills/plan/bmad-sprint-planning/references/status-view.md +0 -14
  107. package/src/bmm-skills/plan/bmad-sprint-planning/references/validate.md +0 -10
  108. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
  109. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/sprint_plan.py +0 -701
  110. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
  111. package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/test_sprint_plan.py +0 -524
  112. package/src/bmm-skills/plan/bmad-sprint-planning/sprint-status-template.yaml +0 -71
  113. package/src/bmm-skills/plan/bmad-ux/SKILL.md +0 -90
  114. package/src/bmm-skills/plan/bmad-ux/assets/color-themes.md +0 -9
  115. package/src/bmm-skills/plan/bmad-ux/assets/design-directions.md +0 -9
  116. package/src/bmm-skills/plan/bmad-ux/assets/design-example-editorial.md +0 -158
  117. package/src/bmm-skills/plan/bmad-ux/assets/design-example-mobile.md +0 -93
  118. package/src/bmm-skills/plan/bmad-ux/assets/design-example-shadcn.md +0 -109
  119. package/src/bmm-skills/plan/bmad-ux/assets/excalidraw-wireframe.md +0 -19
  120. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-mobile.md +0 -112
  121. package/src/bmm-skills/plan/bmad-ux/assets/experience-example-shadcn.md +0 -133
  122. package/src/bmm-skills/plan/bmad-ux/assets/headless-schemas.md +0 -84
  123. package/src/bmm-skills/plan/bmad-ux/assets/key-screens.md +0 -29
  124. package/src/bmm-skills/plan/bmad-ux/assets/validation-report-template.html +0 -319
  125. package/src/bmm-skills/plan/bmad-ux/customize.toml +0 -100
  126. package/src/bmm-skills/plan/bmad-ux/references/creative-tools.md +0 -19
  127. package/src/bmm-skills/plan/bmad-ux/references/design-md-spec.md +0 -50
  128. package/src/bmm-skills/plan/bmad-ux/references/headless.md +0 -37
  129. package/src/bmm-skills/plan/bmad-ux/references/validate.md +0 -115
  130. package/src/bmm-skills/ship/bmad-build/SKILL.md +0 -13
  131. package/src/bmm-skills/ship/bmad-build/compile-epic-context.md +0 -62
  132. package/src/bmm-skills/ship/bmad-build/customize.toml +0 -152
  133. package/src/bmm-skills/ship/bmad-build/references/claims-check.md +0 -14
  134. package/src/bmm-skills/ship/bmad-build/references/deletion-check.md +0 -14
  135. package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +0 -112
  136. package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +0 -113
  137. package/src/bmm-skills/ship/bmad-build/spec-template.md +0 -111
  138. package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +0 -100
  139. package/src/bmm-skills/ship/bmad-build/step-02-plan.md +0 -62
  140. package/src/bmm-skills/ship/bmad-build/step-03-implement.md +0 -51
  141. package/src/bmm-skills/ship/bmad-build/step-04-review.md +0 -85
  142. package/src/bmm-skills/ship/bmad-build/step-05-present.md +0 -43
  143. package/src/bmm-skills/ship/bmad-build/step-oneshot.md +0 -107
  144. package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +0 -5
  145. package/src/bmm-skills/ship/bmad-build/workflow.md +0 -84
  146. package/src/bmm-skills/ship/bmad-build-auto/SKILL.md +0 -13
  147. package/src/bmm-skills/ship/bmad-build-auto/compile-epic-context.md +0 -62
  148. package/src/bmm-skills/ship/bmad-build-auto/customize.toml +0 -119
  149. package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +0 -14
  150. package/src/bmm-skills/ship/bmad-build-auto/references/deletion-check.md +0 -14
  151. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +0 -112
  152. package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +0 -113
  153. package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +0 -96
  154. package/src/bmm-skills/ship/bmad-build-auto/step-01-clarify-and-route.md +0 -84
  155. package/src/bmm-skills/ship/bmad-build-auto/step-02-plan.md +0 -27
  156. package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +0 -48
  157. package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +0 -116
  158. package/src/bmm-skills/ship/bmad-build-auto/workflow.md +0 -104
  159. package/src/bmm-skills/ship/bmad-code-review/SKILL.md +0 -90
  160. package/src/bmm-skills/ship/bmad-code-review/customize.toml +0 -110
  161. package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +0 -14
  162. package/src/bmm-skills/ship/bmad-code-review/references/deletion-check.md +0 -14
  163. package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +0 -112
  164. package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +0 -113
  165. package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +0 -94
  166. package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +0 -32
  167. package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +0 -54
  168. package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +0 -134
  169. package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +0 -308
  170. package/src/bmm-skills/ship/bmad-correct-course/checklist.md +0 -288
  171. package/src/bmm-skills/ship/bmad-correct-course/customize.toml +0 -39
  172. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/SKILL.md +0 -176
  173. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/checklist.md +0 -33
  174. package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +0 -39
  175. package/src/bmm-skills/ship/bmad-retrospective/SKILL.md +0 -94
  176. package/src/bmm-skills/ship/bmad-retrospective/customize.toml +0 -39
  177. package/src/bmm-skills/ship/bmad-retrospective/references/acceptance-verdict.md +0 -55
  178. package/src/bmm-skills/ship/bmad-retrospective/references/aggregate-views.md +0 -17
  179. package/src/bmm-skills/ship/bmad-retrospective/references/evidence-gathering.md +0 -30
  180. package/src/bmm-skills/ship/bmad-retrospective/references/retro-document.md +0 -84
  181. package/src/bmm-skills/ship/bmad-retrospective/references/team-discussion.md +0 -22
  182. package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
  183. package/src/bmm-skills/ship/bmad-retrospective/scripts/git_evidence.py +0 -308
  184. package/src/bmm-skills/ship/bmad-retrospective/scripts/sprint_status.py +0 -750
  185. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
  186. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
  187. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/fixtures/sprint-status-template.yaml +0 -71
  188. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py +0 -750
  189. package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py +0 -1579
  190. package/src/bmm-skills/ship/bmad-walkthrough/SKILL.md +0 -68
  191. package/src/bmm-skills/ship/bmad-walkthrough/customize.toml +0 -39
  192. package/src/bmm-skills/ship/bmad-walkthrough/generate-trail.md +0 -38
  193. package/src/bmm-skills/ship/bmad-walkthrough/step-01-orientation.md +0 -105
  194. package/src/bmm-skills/ship/bmad-walkthrough/step-02-walkthrough.md +0 -89
  195. package/src/bmm-skills/ship/bmad-walkthrough/step-03-detail-pass.md +0 -106
  196. package/src/bmm-skills/ship/bmad-walkthrough/step-04-testing.md +0 -74
  197. package/src/bmm-skills/ship/bmad-walkthrough/step-05-wrapup.md +0 -30
  198. package/src/bmm-skills/v6-shims/README.md +0 -29
  199. package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +0 -21
  200. package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +0 -32
  201. package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +0 -39
  202. package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +0 -32
  203. package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +0 -39
  204. package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +0 -436
  205. package/src/bmm-skills/v6-shims/bmad-create-story/checklist.md +0 -357
  206. package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +0 -39
  207. package/src/bmm-skills/v6-shims/bmad-create-story/discover-inputs.md +0 -88
  208. package/src/bmm-skills/v6-shims/bmad-create-story/template.md +0 -49
  209. package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +0 -21
  210. package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +0 -504
  211. package/src/bmm-skills/v6-shims/bmad-dev-story/checklist.md +0 -80
  212. package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +0 -39
  213. package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +0 -16
  214. package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +0 -16
  215. package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +0 -32
  216. package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +0 -40
  217. package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +0 -16
  218. package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +0 -21
  219. package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +0 -28
  220. package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +0 -39
  221. package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +0 -16
  222. package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +0 -32
  223. package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +0 -40
  224. package/src/core-skills/bmad-advanced-elicitation/SKILL.md +0 -64
  225. package/src/core-skills/bmad-advanced-elicitation/assets/methods.csv +0 -72
  226. package/src/core-skills/bmad-advanced-elicitation/customize.toml +0 -54
  227. package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +0 -233
  228. package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +0 -228
  229. package/src/core-skills/bmad-brainstorming/SKILL.md +0 -80
  230. package/src/core-skills/bmad-brainstorming/assets/brain-icons.json +0 -166
  231. package/src/core-skills/bmad-brainstorming/assets/brain-methods.csv +0 -109
  232. package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +0 -328
  233. package/src/core-skills/bmad-brainstorming/customize.toml +0 -83
  234. package/src/core-skills/bmad-brainstorming/references/converge.md +0 -24
  235. package/src/core-skills/bmad-brainstorming/references/finalize.md +0 -26
  236. package/src/core-skills/bmad-brainstorming/references/headless.md +0 -54
  237. package/src/core-skills/bmad-brainstorming/references/in-chat-techniques.md +0 -18
  238. package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +0 -10
  239. package/src/core-skills/bmad-brainstorming/references/mode-facilitator.md +0 -11
  240. package/src/core-skills/bmad-brainstorming/references/mode-partner.md +0 -16
  241. package/src/core-skills/bmad-brainstorming/references/resume.md +0 -5
  242. package/src/core-skills/bmad-brainstorming/scripts/brain.py +0 -789
  243. package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +0 -289
  244. package/src/core-skills/bmad-customize/SKILL.md +0 -111
  245. package/src/core-skills/bmad-customize/scripts/list_customizable_skills.py +0 -235
  246. package/src/core-skills/bmad-customize/scripts/tests/test_list_customizable_skills.py +0 -249
  247. package/src/core-skills/bmad-deep-recon/SKILL.md +0 -82
  248. package/src/core-skills/bmad-deep-recon/assets/research.template.md +0 -18
  249. package/src/core-skills/bmad-deep-recon/customize.toml +0 -212
  250. package/src/core-skills/bmad-deep-recon/references/draft.md +0 -8
  251. package/src/core-skills/bmad-deep-recon/references/finalize.md +0 -11
  252. package/src/core-skills/bmad-deep-recon/references/html-briefing.md +0 -16
  253. package/src/core-skills/bmad-deep-recon/references/lifecycle.md +0 -11
  254. package/src/core-skills/bmad-deep-recon/references/process.md +0 -10
  255. package/src/core-skills/bmad-deep-recon/references/run.md +0 -73
  256. package/src/core-skills/bmad-deep-recon/references/selection.md +0 -13
  257. package/src/core-skills/bmad-deep-recon/references/synthesis.md +0 -16
  258. package/src/core-skills/bmad-deep-recon/references/verification.md +0 -29
  259. package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +0 -326
  260. package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +0 -144
  261. package/src/core-skills/bmad-deep-recon/types/academic-lit.md +0 -19
  262. package/src/core-skills/bmad-deep-recon/types/competitive.md +0 -19
  263. package/src/core-skills/bmad-deep-recon/types/domain.md +0 -19
  264. package/src/core-skills/bmad-deep-recon/types/market.md +0 -19
  265. package/src/core-skills/bmad-deep-recon/types/technical.md +0 -19
  266. package/src/core-skills/bmad-deep-recon/types/user-voice.md +0 -19
  267. package/src/core-skills/bmad-forge-idea/SKILL.md +0 -107
  268. package/src/core-skills/bmad-forge-idea/customize.toml +0 -41
  269. package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +0 -277
  270. package/src/core-skills/bmad-forge-idea/scripts/tests/test_resolve_personas.py +0 -160
  271. package/src/core-skills/bmad-help/SKILL.md +0 -77
  272. package/src/core-skills/bmad-party-mode/SKILL.md +0 -60
  273. package/src/core-skills/bmad-party-mode/customize.toml +0 -211
  274. package/src/core-skills/bmad-party-mode/references/create-party.md +0 -70
  275. package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +0 -13
  276. package/src/core-skills/bmad-party-mode/references/mode-auto.md +0 -13
  277. package/src/core-skills/bmad-party-mode/references/mode-subagent.md +0 -31
  278. package/src/core-skills/bmad-party-mode/references/party-memory.md +0 -51
  279. package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +0 -300
  280. package/src/core-skills/bmad-party-mode/scripts/tests/test_resolve_party.py +0 -183
  281. package/src/core-skills/bmad-review/SKILL.md +0 -50
  282. package/src/core-skills/bmad-review/customize.toml +0 -141
  283. package/src/core-skills/bmad-review/references/editorial-common.md +0 -56
  284. package/src/core-skills/bmad-review/references/lens-adversarial.md +0 -19
  285. package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +0 -72
  286. package/src/core-skills/bmad-review/references/lens-prose.md +0 -7
  287. package/src/core-skills/bmad-review/references/lens-structure.md +0 -9
  288. package/src/core-skills/bmad-review/references/lens-verification-gap.md +0 -92
  289. package/src/core-skills/bmad-review/references/structure-models.md +0 -44
  290. package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +0 -62
  291. package/src/core-skills/bmad-review/scripts/word_metrics.py +0 -102
  292. package/src/core-skills/module-help.csv +0 -10
  293. package/src/core-skills/module.yaml +0 -38
  294. package/src/core-skills/v6-shims/README.md +0 -25
  295. package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +0 -8
  296. package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +0 -31
  297. package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +0 -8
  298. package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +0 -8
  299. package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +0 -8
  300. package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +0 -8
  301. package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +0 -8
  302. package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
  303. package/src/scripts/config_utils.py +0 -119
  304. package/src/scripts/memlog.py +0 -228
  305. package/src/scripts/render_skill.py +0 -401
  306. package/src/scripts/resolve_config.py +0 -82
  307. package/src/scripts/resolve_customization.py +0 -164
  308. package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
  309. package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
  310. package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
  311. package/src/scripts/tests/test_config_utils.py +0 -85
  312. package/src/scripts/tests/test_memlog.py +0 -306
  313. package/src/scripts/tests/test_resolve_config.py +0 -117
  314. package/src/scripts/tests/test_resolve_customization.py +0 -179
  315. package/tools/bundle-web-bundles.js +0 -117
  316. package/tools/format-workflow-md.js +0 -263
  317. package/tools/installer/README.md +0 -60
  318. package/tools/installer/bmad-cli.js +0 -105
  319. package/tools/installer/cli-utils.js +0 -57
  320. package/tools/installer/commands/install.js +0 -151
  321. package/tools/installer/commands/status.js +0 -65
  322. package/tools/installer/commands/uninstall.js +0 -167
  323. package/tools/installer/core/config.js +0 -76
  324. package/tools/installer/core/existing-install.js +0 -121
  325. package/tools/installer/core/install-paths.js +0 -132
  326. package/tools/installer/core/installer.js +0 -1826
  327. package/tools/installer/core/legacy-warnings.js +0 -151
  328. package/tools/installer/core/manifest-generator.js +0 -883
  329. package/tools/installer/core/manifest.js +0 -439
  330. package/tools/installer/core/shim-policy.js +0 -159
  331. package/tools/installer/core/uv-check.js +0 -195
  332. package/tools/installer/core/wsl-node-check.js +0 -109
  333. package/tools/installer/file-ops.js +0 -204
  334. package/tools/installer/fs-native.js +0 -116
  335. package/tools/installer/ide/_config-driven.js +0 -972
  336. package/tools/installer/ide/manager.js +0 -324
  337. package/tools/installer/ide/platform-codes.js +0 -80
  338. package/tools/installer/ide/platform-codes.yaml +0 -363
  339. package/tools/installer/ide/shared/installed-skills.js +0 -50
  340. package/tools/installer/ide/shared/path-utils.js +0 -219
  341. package/tools/installer/ide/shared/skill-manifest.js +0 -57
  342. package/tools/installer/install-messages.yaml +0 -44
  343. package/tools/installer/list-options.js +0 -210
  344. package/tools/installer/message-loader.js +0 -83
  345. package/tools/installer/modules/channel-plan.js +0 -216
  346. package/tools/installer/modules/channel-resolver.js +0 -241
  347. package/tools/installer/modules/custom-module-manager.js +0 -924
  348. package/tools/installer/modules/external-manager.js +0 -673
  349. package/tools/installer/modules/git-env.js +0 -47
  350. package/tools/installer/modules/module-help-schema.js +0 -13
  351. package/tools/installer/modules/official-modules.js +0 -2289
  352. package/tools/installer/modules/plugin-resolver.js +0 -398
  353. package/tools/installer/modules/version-resolver.js +0 -336
  354. package/tools/installer/project-root.js +0 -224
  355. package/tools/installer/prompts.js +0 -804
  356. package/tools/installer/set-overrides.js +0 -330
  357. package/tools/installer/ui.js +0 -2262
  358. package/tools/installer/yaml-format.js +0 -245
  359. package/tools/javascript-conventions.md +0 -5
  360. package/tools/migrate-custom-module-paths.js +0 -124
  361. package/tools/skill-validator.md +0 -312
  362. package/tools/tests/__pycache__/test_validate_skills.cpython-311.pyc +0 -0
  363. package/tools/tests/fixtures/validate-skills/bmad/SKILL.md +0 -8
  364. package/tools/tests/fixtures/validate-skills/deprecated-shim/SKILL.md +0 -9
  365. package/tools/tests/fixtures/validate-skills/missing-trigger/SKILL.md +0 -9
  366. package/tools/tests/fixtures/validate-skills/with-trigger/SKILL.md +0 -8
  367. package/tools/tests/test_validate_skills.py +0 -476
  368. package/tools/validate-published-implementation-model.mjs +0 -59
  369. package/tools/validate-sidebar-order.js +0 -388
  370. package/tools/validate-svg-changes.sh +0 -356
  371. package/tools/validate_skills.py +0 -698
  372. package/web-bundles/README.md +0 -46
  373. package/web-bundles/brainstorming-coach/INSTRUCTIONS.md +0 -86
  374. package/web-bundles/brainstorming-coach/SKILL.md +0 -83
  375. package/web-bundles/brainstorming-coach/brain-methods.csv +0 -62
  376. package/web-bundles/bundles.json +0 -139
  377. package/web-bundles/market-and-industry-research/INSTRUCTIONS.md +0 -88
  378. package/web-bundles/market-and-industry-research/SKILL.md +0 -59
  379. package/web-bundles/prd-coach/INSTRUCTIONS.md +0 -86
  380. package/web-bundles/prd-coach/SKILL.md +0 -101
  381. package/web-bundles/prd-coach/prd-template.md +0 -165
  382. package/web-bundles/prd-coach/prd-validation-checklist.md +0 -135
  383. package/web-bundles/prfaq-coach/INSTRUCTIONS.md +0 -86
  384. package/web-bundles/prfaq-coach/SKILL.md +0 -139
  385. package/web-bundles/product-brief-coach/INSTRUCTIONS.md +0 -86
  386. package/web-bundles/product-brief-coach/SKILL.md +0 -113
  387. package/web-bundles/ux-coach/INSTRUCTIONS.md +0 -92
  388. package/web-bundles/ux-coach/SKILL.md +0 -187
  389. package/web-bundles/ux-coach/ux-validation.md +0 -100
@@ -1,117 +0,0 @@
1
- /**
2
- * Web Bundle Release Packager
3
- *
4
- * Zips each bundle under web-bundles/ into dist/web-bundles/{slug}.zip
5
- * for attachment to a GitHub Release.
6
- *
7
- * Usage:
8
- * node tools/bundle-web-bundles.js
9
- *
10
- * After running, the script prints the exact `gh release create` command
11
- * (with the correct tag from bundles.json) for you to copy.
12
- */
13
-
14
- const fs = require('node:fs');
15
- const path = require('node:path');
16
- const { execSync, execFileSync } = require('node:child_process');
17
-
18
- const REPO_ROOT = path.resolve(__dirname, '..');
19
- const BUNDLES_DIR = path.join(REPO_ROOT, 'web-bundles');
20
- const DIST_DIR = path.join(REPO_ROOT, 'dist', 'web-bundles');
21
- const MANIFEST = path.join(BUNDLES_DIR, 'bundles.json');
22
- const SLUG_RE = /^[a-z0-9][a-z0-9-]*$/;
23
-
24
- function fail(msg) {
25
- console.error(`[ERROR] ${msg}`);
26
- process.exit(1);
27
- }
28
-
29
- function requireZipCli() {
30
- try {
31
- execSync('zip -v', { stdio: 'ignore' });
32
- } catch {
33
- fail("'zip' CLI not found on PATH. Install zip (macOS: preinstalled; Debian/Ubuntu: apt install zip; Alpine: apk add zip) and re-run.");
34
- }
35
- }
36
-
37
- function loadManifest() {
38
- if (!fs.existsSync(MANIFEST)) {
39
- fail(`bundles.json not found at ${MANIFEST}`);
40
- }
41
- let manifest;
42
- try {
43
- manifest = JSON.parse(fs.readFileSync(MANIFEST, 'utf-8'));
44
- } catch (error) {
45
- fail(`bundles.json is not valid JSON: ${error.message}`);
46
- }
47
- if (!Array.isArray(manifest.bundles) || manifest.bundles.length === 0) {
48
- fail('bundles.json is missing a non-empty "bundles" array.');
49
- }
50
- if (typeof manifest.releaseTag !== 'string' || !manifest.releaseTag) {
51
- fail('bundles.json is missing "releaseTag".');
52
- }
53
- return manifest;
54
- }
55
-
56
- function main() {
57
- requireZipCli();
58
- const manifest = loadManifest();
59
- const releaseTag = manifest.releaseTag;
60
-
61
- fs.mkdirSync(DIST_DIR, { recursive: true });
62
-
63
- console.log(`Packaging ${manifest.bundles.length} bundles for release ${releaseTag}\n`);
64
-
65
- const zipped = [];
66
- const missing = [];
67
- const invalid = [];
68
- for (const bundle of manifest.bundles) {
69
- if (!bundle.slug || !SLUG_RE.test(bundle.slug)) {
70
- invalid.push(bundle.slug || '(no slug)');
71
- console.error(` [INVALID] slug must match ${SLUG_RE} — got: ${bundle.slug}`);
72
- continue;
73
- }
74
- const src = path.join(BUNDLES_DIR, bundle.slug);
75
- if (!fs.existsSync(src)) {
76
- missing.push(bundle.slug);
77
- console.error(` [MISSING] ${bundle.slug} — directory not found`);
78
- continue;
79
- }
80
-
81
- const out = path.join(DIST_DIR, `${bundle.slug}.zip`);
82
- if (fs.existsSync(out)) fs.unlinkSync(out);
83
-
84
- try {
85
- execFileSync('zip', ['-r', '-X', '-q', out, bundle.slug, '-x', '*.DS_Store'], {
86
- cwd: BUNDLES_DIR,
87
- stdio: 'inherit',
88
- });
89
- } catch (error) {
90
- fail(`zip failed for ${bundle.slug}: ${error.message}`);
91
- }
92
-
93
- const size = (fs.statSync(out).size / 1024).toFixed(1);
94
- console.log(` [OK] ${bundle.slug}.zip (${size} KB)`);
95
- zipped.push(bundle.slug);
96
- }
97
-
98
- if (invalid.length > 0) {
99
- fail(`Refusing to publish: ${invalid.length} bundle(s) have invalid slugs: ${invalid.join(', ')}`);
100
- }
101
- if (missing.length > 0) {
102
- fail(`Refusing to publish an incomplete release: missing directories for ${missing.join(', ')}`);
103
- }
104
- if (zipped.length === 0) {
105
- fail('No bundles were packaged. Check bundles.json against web-bundles/ subdirectories.');
106
- }
107
-
108
- console.log(`\nWrote ${zipped.length} bundles to ${path.relative(REPO_ROOT, DIST_DIR)}/`);
109
- console.log('\nNext step — create or update the GitHub Release:\n');
110
- console.log(` gh release create ${releaseTag} dist/web-bundles/*.zip \\`);
111
- console.log(` --title "${releaseTag}" \\`);
112
- console.log(` --notes "BMad web bundles for Gemini Gems and ChatGPT Custom GPTs. See https://bmadcode.com/web-bundles/"\n`);
113
- console.log('Or, to refresh an existing release:\n');
114
- console.log(` gh release upload ${releaseTag} dist/web-bundles/*.zip --clobber\n`);
115
- }
116
-
117
- main();
@@ -1,263 +0,0 @@
1
- /**
2
- * BMAD Workflow Markdown Formatter
3
- *
4
- * Formats mixed markdown + XML workflow instruction files with:
5
- * - 2-space XML indentation
6
- * - Preserved markdown content
7
- * - Proper tag nesting
8
- * - Consistent formatting
9
- */
10
-
11
- const fs = require('node:fs');
12
- const path = require('node:path');
13
-
14
- class WorkflowFormatter {
15
- constructor(options = {}) {
16
- this.indentSize = options.indentSize || 2;
17
- this.preserveMarkdown = options.preserveMarkdown !== false;
18
- this.verbose = options.verbose || false;
19
- }
20
-
21
- /**
22
- * Format a workflow markdown file
23
- */
24
- format(filePath) {
25
- if (this.verbose) {
26
- console.log(`Formatting: ${filePath}`);
27
- }
28
-
29
- const content = fs.readFileSync(filePath, 'utf8');
30
- const formatted = this.formatContent(content);
31
-
32
- // Only write if content changed
33
- if (content === formatted) {
34
- if (this.verbose) {
35
- console.log(`- No changes: ${filePath}`);
36
- }
37
- return false;
38
- } else {
39
- fs.writeFileSync(filePath, formatted, 'utf8');
40
- if (this.verbose) {
41
- console.log(`✓ Formatted: ${filePath}`);
42
- }
43
- return true;
44
- }
45
- }
46
-
47
- /**
48
- * Format content string with stateful indentation tracking
49
- */
50
- formatContent(content) {
51
- const lines = content.split('\n');
52
- const formatted = [];
53
- let indentLevel = 0;
54
- let inCodeBlock = false;
55
- let checkBlockDepth = 0; // Track nested check blocks
56
-
57
- for (let i = 0; i < lines.length; i++) {
58
- const line = lines[i];
59
- const trimmed = line.trim();
60
-
61
- // Track code blocks (don't format inside them)
62
- if (trimmed.startsWith('```')) {
63
- if (inCodeBlock) {
64
- inCodeBlock = false;
65
- } else {
66
- inCodeBlock = true;
67
- }
68
- formatted.push(line);
69
- continue;
70
- }
71
-
72
- // Don't format inside code blocks
73
- if (inCodeBlock) {
74
- formatted.push(line);
75
- continue;
76
- }
77
-
78
- // Handle XML tags
79
- if (this.isXMLLine(trimmed)) {
80
- const result = this.formatXMLLine(trimmed, indentLevel, checkBlockDepth, i, lines);
81
- formatted.push(result.line);
82
- indentLevel = result.nextIndent;
83
- checkBlockDepth = result.nextCheckDepth;
84
- } else if (trimmed === '') {
85
- // Preserve blank lines
86
- formatted.push('');
87
- } else {
88
- // Markdown content - preserve as-is but maintain current indent if inside XML
89
- formatted.push(line);
90
- }
91
- }
92
-
93
- return formatted.join('\n');
94
- }
95
-
96
- /**
97
- * Check if line contains XML tag
98
- */
99
- isXMLLine(line) {
100
- return /^<[a-zA-Z-]+(\s|>|\/)/.test(line) || /^<\/[a-zA-Z-]+>/.test(line);
101
- }
102
-
103
- /**
104
- * Format a single XML line with context awareness
105
- */
106
- formatXMLLine(line, currentIndent, checkDepth, lineIndex, allLines) {
107
- const trimmed = line.trim();
108
- let indent = currentIndent;
109
- let nextIndent = currentIndent;
110
- let nextCheckDepth = checkDepth;
111
-
112
- // Get the tag name
113
- const tagMatch = trimmed.match(/^<\/?([a-zA-Z-]+)/);
114
- const tagName = tagMatch ? tagMatch[1] : '';
115
-
116
- // Closing tag - decrease indent before this line
117
- if (trimmed.startsWith('</')) {
118
- indent = Math.max(0, currentIndent - 1);
119
- nextIndent = indent;
120
-
121
- // If closing a step, reset check depth
122
- if (tagName === 'step' || tagName === 'workflow') {
123
- nextCheckDepth = 0;
124
- }
125
- }
126
- // Self-closing tags (opens and closes on same line)
127
- // EXCEPT <check> tags which create logical blocks
128
- else if (this.isSelfClosingTag(trimmed) && tagName !== 'check') {
129
- // These don't change indent level
130
- indent = currentIndent;
131
- nextIndent = currentIndent;
132
- }
133
- // Opening tags
134
- else if (trimmed.startsWith('<')) {
135
- // Check if this is a <check> tag - these create logical blocks
136
- if (tagName === 'check') {
137
- indent = currentIndent;
138
- // Check tags increase indent for following content
139
- nextIndent = currentIndent + 1;
140
- nextCheckDepth = checkDepth + 1;
141
- }
142
- // <action> tags inside check blocks stay at current indent
143
- else if (tagName === 'action' && checkDepth > 0) {
144
- indent = currentIndent;
145
- nextIndent = currentIndent; // Don't increase further
146
- }
147
- // Other tags close check blocks and return to structural level
148
- else if (checkDepth > 0) {
149
- // Close all check blocks - return to base structural level
150
- indent = Math.max(0, currentIndent - checkDepth);
151
- nextIndent = indent + 1;
152
- nextCheckDepth = 0;
153
- }
154
- // Regular opening tags (no check blocks active)
155
- else {
156
- indent = currentIndent;
157
- nextIndent = currentIndent + 1;
158
- }
159
- }
160
-
161
- const indentStr = ' '.repeat(indent * this.indentSize);
162
- return {
163
- line: indentStr + trimmed,
164
- nextIndent: nextIndent,
165
- nextCheckDepth: nextCheckDepth,
166
- };
167
- }
168
-
169
- /**
170
- * Check if tag opens and closes on same line
171
- */
172
- isSelfClosingTag(line) {
173
- // Self-closing with />
174
- if (line.endsWith('/>')) {
175
- return true;
176
- }
177
- // Opens and closes on same line: <tag>content</tag>
178
- const match = line.match(/^<([a-zA-Z-]+)(\s[^>]*)?>.*<\/\1>$/);
179
- return match !== null;
180
- }
181
-
182
- /**
183
- * Check if tag is a block-level structural tag
184
- */
185
- isBlockLevelTag(tagName) {
186
- return ['step', 'workflow', 'check'].includes(tagName);
187
- }
188
- }
189
-
190
- /**
191
- * CLI Entry Point
192
- */
193
- function main() {
194
- const args = process.argv.slice(2);
195
-
196
- if (args.length === 0 || args.includes('--help') || args.includes('-h')) {
197
- console.log(`
198
- BMAD Workflow Markdown Formatter
199
-
200
- Usage:
201
- node format-workflow-md.js <file-pattern> [options]
202
-
203
- Options:
204
- --verbose, -v Verbose output
205
- --check, -c Check formatting without writing (exit 1 if changes needed)
206
- --help, -h Show this help
207
-
208
- Examples:
209
- node format-workflow-md.js src/**/instructions.md
210
- node format-workflow-md.js "src/modules/bmb/**/*.md" --verbose
211
- node format-workflow-md.js file.md --check
212
- `);
213
- process.exit(0);
214
- }
215
-
216
- const verbose = args.includes('--verbose') || args.includes('-v');
217
- const check = args.includes('--check') || args.includes('-c');
218
-
219
- // Remove flags from args
220
- const files = args.filter((arg) => !arg.startsWith('-'));
221
-
222
- const formatter = new WorkflowFormatter({ verbose });
223
- let hasChanges = false;
224
- let formattedCount = 0;
225
-
226
- // Process files
227
- for (const pattern of files) {
228
- // For now, treat as direct file path
229
- // TODO: Add glob support for patterns
230
- if (fs.existsSync(pattern)) {
231
- const stat = fs.statSync(pattern);
232
- if (stat.isFile()) {
233
- const changed = formatter.format(pattern);
234
- if (changed) {
235
- hasChanges = true;
236
- formattedCount++;
237
- }
238
- } else if (stat.isDirectory()) {
239
- console.error(`Error: ${pattern} is a directory. Please specify file paths.`);
240
- }
241
- } else {
242
- console.error(`Error: File not found: ${pattern}`);
243
- }
244
- }
245
-
246
- if (verbose || formattedCount > 0) {
247
- console.log(`\nFormatted ${formattedCount} file(s)`);
248
- }
249
-
250
- if (check && hasChanges) {
251
- console.error('\n❌ Some files need formatting. Run without --check to format.');
252
- process.exit(1);
253
- }
254
-
255
- process.exit(0);
256
- }
257
-
258
- // Run if called directly
259
- if (require.main === module) {
260
- main();
261
- }
262
-
263
- module.exports = { WorkflowFormatter };
@@ -1,60 +0,0 @@
1
- # BMad CLI Tool
2
-
3
- ## Installing external repo BMad official modules
4
-
5
- For external official modules to be discoverable during install, ensure an entry for the external repo is added to external-official-modules.yaml.
6
-
7
- For community modules - this will be handled in a different way. This file is only for registration of modules under the bmad-code-org.
8
-
9
- ## Post-Install Notes
10
-
11
- Modules can display setup guidance to users after configuration is collected during `npx bmad-method install`. Notes are defined in the module's own `module.yaml` — no changes to the installer are needed.
12
-
13
- ### Simple Format
14
-
15
- Always displayed after the module is configured:
16
-
17
- ```yaml
18
- post-install-notes: |
19
- Thank you for choosing the XYZ Cool Module
20
- For Support about this Module call 555-1212
21
- ```
22
-
23
- ### Conditional Format
24
-
25
- Display different messages based on a config question's answer:
26
-
27
- ```yaml
28
- post-install-notes:
29
- config_key_name:
30
- value1: |
31
- Instructions for value1...
32
- value2: |
33
- Instructions for value2...
34
- ```
35
-
36
- Values without an entry (e.g., `none`) display nothing. Multiple config keys can each have their own conditional notes.
37
-
38
- ### Example: TEA Module
39
-
40
- The TEA module uses the conditional format keyed on `tea_browser_automation`:
41
-
42
- ```yaml
43
- post-install-notes:
44
- tea_browser_automation:
45
- cli: |
46
- Playwright CLI Setup:
47
- npm install -g @playwright/cli@latest
48
- playwright-cli install --skills
49
- mcp: |
50
- Playwright MCP Setup (two servers):
51
- 1. playwright — npx @playwright/mcp@latest
52
- 2. playwright-test — npx playwright run-test-mcp-server
53
- auto: |
54
- Playwright CLI Setup:
55
- ...
56
- Playwright MCP Setup (two servers):
57
- ...
58
- ```
59
-
60
- When a user selects `auto`, they see both CLI and MCP instructions. When they select `none`, nothing is shown.
@@ -1,105 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { program } = require('commander');
4
- const path = require('node:path');
5
- const fs = require('node:fs');
6
- const { execSync } = require('node:child_process');
7
- const semver = require('semver');
8
- const prompts = require('./prompts');
9
-
10
- // The installer flow uses many sequential @clack/prompts, each adding keypress
11
- // listeners to stdin. Raise the limit to avoid spurious EventEmitter warnings.
12
- if (process.stdin?.setMaxListeners) {
13
- const currentLimit = process.stdin.getMaxListeners();
14
- process.stdin.setMaxListeners(Math.max(currentLimit, 50));
15
- }
16
-
17
- // Check for updates - do this asynchronously so it doesn't block startup
18
- const packageJson = require('../../package.json');
19
- const packageName = 'bmad-method';
20
- checkForUpdate().catch(() => {
21
- // Silently ignore errors - version check is best-effort
22
- });
23
-
24
- async function checkForUpdate() {
25
- try {
26
- // Prereleases (e.g. 6.5.1-next.0) live on the `next` dist-tag; stable
27
- // releases live on `latest`. semver.prerelease() returns null for stable,
28
- // so this correctly routes pre-1.0-next/rc/etc. without string matching.
29
- const tag = semver.prerelease(packageJson.version) ? 'next' : 'latest';
30
-
31
- const result = execSync(`npm view ${packageName}@${tag} version`, {
32
- encoding: 'utf8',
33
- stdio: 'pipe',
34
- timeout: 5000,
35
- }).trim();
36
-
37
- if (result && semver.gt(result, packageJson.version)) {
38
- const color = await prompts.getColor();
39
- const updateMsg = [
40
- `You are using version ${packageJson.version} but ${result} is available.`,
41
- '',
42
- 'To update, exit and first run:',
43
- ` npm cache clean --force && npx bmad-method@${tag} install`,
44
- ].join('\n');
45
- await prompts.box(updateMsg, 'Update Available', {
46
- rounded: true,
47
- formatBorder: color.yellow,
48
- });
49
- }
50
- } catch {
51
- // Silently fail - network issues or npm not available
52
- }
53
- }
54
-
55
- // Fix for stdin issues when running through npm on Windows
56
- // Ensures keyboard interaction works properly with CLI prompts
57
- if (process.stdin.isTTY) {
58
- try {
59
- process.stdin.resume();
60
- process.stdin.setEncoding('utf8');
61
-
62
- // On Windows, explicitly reference the stdin stream to ensure it's properly initialized
63
- if (process.platform === 'win32') {
64
- process.stdin.on('error', () => {
65
- // Ignore stdin errors - they can occur when the terminal is closing
66
- });
67
- }
68
- } catch {
69
- // Silently ignore - some environments may not support these operations
70
- }
71
- }
72
-
73
- // Load all command modules
74
- const commandsPath = path.join(__dirname, 'commands');
75
- const commandFiles = fs.readdirSync(commandsPath).filter((file) => file.endsWith('.js'));
76
-
77
- const commands = {};
78
- for (const file of commandFiles) {
79
- const command = require(path.join(commandsPath, file));
80
- commands[command.command] = command;
81
- }
82
-
83
- // Set up main program
84
- program.version(packageJson.version).description('BMAD Core CLI - Universal AI agent framework');
85
-
86
- // Register all commands
87
- for (const [name, cmd] of Object.entries(commands)) {
88
- const command = program.command(name).description(cmd.description);
89
-
90
- // Add options
91
- for (const option of cmd.options || []) {
92
- command.option(...option);
93
- }
94
-
95
- // Set action
96
- command.action(cmd.action);
97
- }
98
-
99
- // Parse arguments
100
- program.parse(process.argv);
101
-
102
- // Show help if no command provided
103
- if (process.argv.slice(2).length === 0) {
104
- program.outputHelp();
105
- }
@@ -1,57 +0,0 @@
1
- const prompts = require('./prompts');
2
-
3
- const CLIUtils = {
4
- /**
5
- * Display BMAD logo and version using @clack intro + box
6
- */
7
- async displayLogo() {
8
- const color = await prompts.getColor();
9
- const termWidth = process.stdout.columns || 80;
10
-
11
- // Full "BMad Method" logo for wide terminals, "BMad" only for narrow
12
- const logoWide = [
13
- ' ██████╗ ███╗ ███╗ █████╗ ██████╗ ███╗ ███╗███████╗████████╗██╗ ██╗ ██████╗ ██████╗ ™',
14
- '██╔══██╗████╗ ████║██╔══██╗██╔══██╗ ████╗ ████║██╔════╝╚══██╔══╝██║ ██║██╔═══██╗██╔══██╗',
15
- '██████╔╝██╔████╔██║███████║██║ ██║ ██╔████╔██║█████╗ ██║ ███████║██║ ██║██║ ██║',
16
- '██╔══██╗██║╚██╔╝██║██╔══██║██║ ██║ ██║╚██╔╝██║██╔══╝ ██║ ██╔══██║██║ ██║██║ ██║',
17
- '██████╔╝██║ ╚═╝ ██║██║ ██║██████╔╝ ██║ ╚═╝ ██║███████╗ ██║ ██║ ██║╚██████╔╝██████╔╝',
18
- '╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ',
19
- ];
20
-
21
- const logoNarrow = [
22
- ' ██████╗ ███╗ ███╗ █████╗ ██████╗ ™',
23
- ' ██╔══██╗████╗ ████║██╔══██╗██╔══██╗',
24
- ' ██████╔╝██╔████╔██║███████║██║ ██║',
25
- ' ██╔══██╗██║╚██╔╝██║██╔══██║██║ ██║',
26
- ' ██████╔╝██║ ╚═╝ ██║██║ ██║██████╔╝',
27
- ' ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝',
28
- ];
29
-
30
- const logoLines = termWidth >= 95 ? logoWide : logoNarrow;
31
- const logo = logoLines.map((line) => color.blue(line)).join('\n');
32
- // The wordmark supplies "BMad Method", so the lines below read as its
33
- // tagline, then its positioning, then the company credit.
34
- const tagline = color.white(' Agile Ai Driven Development');
35
- const slogan = color.dim(' the agile way to do AiDD');
36
- const credit = color.dim(' Build More, Architect Dreams · © BMad Code');
37
-
38
- await prompts.box(`${logo}\n${tagline}\n${slogan}\n${credit}`, '', {
39
- contentAlign: 'center',
40
- rounded: true,
41
- formatBorder: color.blue,
42
- });
43
- },
44
-
45
- /**
46
- * Display module configuration header
47
- * @param {string} moduleName - Module name (fallback if no custom header)
48
- * @param {string} header - Custom header from module.yaml
49
- * @param {string} subheader - Custom subheader from module.yaml
50
- */
51
- async displayModuleConfigHeader(moduleName, header = null, subheader = null) {
52
- const title = header || `Configuring ${moduleName.toUpperCase()} Module`;
53
- await prompts.note(subheader || '', title);
54
- },
55
- };
56
-
57
- module.exports = { CLIUtils };