bmad-method 6.12.3 → 7.0.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.
- package/LICENSE +1 -1
- package/README.md +107 -54
- package/agents.json +640 -0
- package/bin/bmad-method.js +4 -0
- package/messages.yaml +260 -0
- package/modules.yaml +56 -0
- package/package.json +32 -110
- package/src/agent-picks.js +77 -0
- package/src/agents.js +141 -0
- package/src/bmad-scripts.js +167 -0
- package/src/cli.js +266 -0
- package/src/commands/agent-choice.js +67 -0
- package/src/commands/apply.js +38 -0
- package/src/commands/deps.js +25 -0
- package/src/commands/ending.js +54 -0
- package/src/commands/existing-install.js +50 -0
- package/src/commands/install-plan.js +130 -0
- package/src/commands/install-steps.js +66 -0
- package/src/commands/install.js +86 -0
- package/src/commands/status.js +39 -0
- package/src/commands/update.js +106 -0
- package/src/installed.js +48 -0
- package/src/messages.js +84 -0
- package/src/modules.js +221 -0
- package/src/preflight.js +124 -0
- package/src/project-lock.js +68 -0
- package/src/prompts.js +626 -0
- package/src/report.js +199 -0
- package/src/run.js +124 -0
- package/src/self-update.js +88 -0
- package/src/skills-cli.js +133 -0
- package/src/version.js +11 -0
- package/.claude-plugin/marketplace.json +0 -53
- package/AGENTS.md +0 -24
- package/CLAUDE.md +0 -1
- package/README_CN.md +0 -98
- package/README_KR.md +0 -90
- package/README_VN.md +0 -99
- package/bmad-modules.yaml +0 -140
- package/body.md +0 -17
- package/greptile.json +0 -52
- package/removals.txt +0 -87
- package/src/bmm-skills/agents/bmad-agent-analyst/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-analyst/customize.toml +0 -103
- package/src/bmm-skills/agents/bmad-agent-architect/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-architect/customize.toml +0 -63
- package/src/bmm-skills/agents/bmad-agent-dev/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-dev/customize.toml +0 -81
- package/src/bmm-skills/agents/bmad-agent-pm/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-pm/customize.toml +0 -73
- package/src/bmm-skills/agents/bmad-agent-ux-designer/SKILL.md +0 -76
- package/src/bmm-skills/agents/bmad-agent-ux-designer/customize.toml +0 -58
- package/src/bmm-skills/module-help.csv +0 -19
- package/src/bmm-skills/module.yaml +0 -85
- package/src/bmm-skills/plan/bmad-architecture/SKILL.md +0 -85
- package/src/bmm-skills/plan/bmad-architecture/assets/spine-template.md +0 -79
- package/src/bmm-skills/plan/bmad-architecture/customize.toml +0 -101
- package/src/bmm-skills/plan/bmad-architecture/references/headless.md +0 -26
- package/src/bmm-skills/plan/bmad-architecture/references/reviewer-gate.md +0 -13
- package/src/bmm-skills/plan/bmad-architecture/scripts/lint_spine.py +0 -261
- package/src/bmm-skills/plan/bmad-architecture/scripts/tests/test_lint_spine.py +0 -270
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/SKILL.md +0 -93
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -263
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -242
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -141
- package/src/bmm-skills/plan/bmad-create-epics-and-stories/templates/epics-template.md +0 -62
- package/src/bmm-skills/plan/bmad-generate-project-context/SKILL.md +0 -12
- package/src/bmm-skills/plan/bmad-prd/SKILL.md +0 -94
- package/src/bmm-skills/plan/bmad-prd/assets/headless-schemas.md +0 -76
- package/src/bmm-skills/plan/bmad-prd/assets/prd-template.md +0 -165
- package/src/bmm-skills/plan/bmad-prd/assets/prd-validation-checklist.md +0 -135
- package/src/bmm-skills/plan/bmad-prd/assets/validation-report-template.html +0 -325
- package/src/bmm-skills/plan/bmad-prd/customize.toml +0 -148
- package/src/bmm-skills/plan/bmad-prd/references/headless.md +0 -39
- package/src/bmm-skills/plan/bmad-prd/references/validate.md +0 -97
- package/src/bmm-skills/plan/bmad-prfaq/SKILL.md +0 -135
- package/src/bmm-skills/plan/bmad-prfaq/agents/artifact-analyzer.md +0 -60
- package/src/bmm-skills/plan/bmad-prfaq/agents/web-researcher.md +0 -49
- package/src/bmm-skills/plan/bmad-prfaq/assets/prfaq-template.md +0 -62
- package/src/bmm-skills/plan/bmad-prfaq/bmad-manifest.json +0 -16
- package/src/bmm-skills/plan/bmad-prfaq/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-prfaq/references/customer-faq.md +0 -55
- package/src/bmm-skills/plan/bmad-prfaq/references/internal-faq.md +0 -51
- package/src/bmm-skills/plan/bmad-prfaq/references/press-release.md +0 -60
- package/src/bmm-skills/plan/bmad-prfaq/references/verdict.md +0 -83
- package/src/bmm-skills/plan/bmad-product-brief/SKILL.md +0 -91
- package/src/bmm-skills/plan/bmad-product-brief/assets/brief-template.md +0 -41
- package/src/bmm-skills/plan/bmad-product-brief/customize.toml +0 -100
- package/src/bmm-skills/plan/bmad-project-context/SKILL.md +0 -121
- package/src/bmm-skills/plan/bmad-project-context/customize.toml +0 -24
- package/src/bmm-skills/plan/bmad-project-context/references/best-practices.md +0 -84
- package/src/bmm-skills/plan/bmad-project-context/references/template.md +0 -55
- package/src/bmm-skills/plan/bmad-spec/SKILL.md +0 -160
- package/src/bmm-skills/plan/bmad-spec/assets/headless-schemas.md +0 -33
- package/src/bmm-skills/plan/bmad-spec/assets/spec-template.md +0 -49
- package/src/bmm-skills/plan/bmad-spec/assets/stories-schema.md +0 -44
- package/src/bmm-skills/plan/bmad-spec/customize.toml +0 -52
- package/src/bmm-skills/plan/bmad-sprint-planning/SKILL.md +0 -62
- package/src/bmm-skills/plan/bmad-sprint-planning/customize.toml +0 -39
- package/src/bmm-skills/plan/bmad-sprint-planning/references/fix-sprint-status.md +0 -30
- package/src/bmm-skills/plan/bmad-sprint-planning/references/generate-tracking.md +0 -25
- package/src/bmm-skills/plan/bmad-sprint-planning/references/readiness-gate.md +0 -20
- package/src/bmm-skills/plan/bmad-sprint-planning/references/status-view.md +0 -14
- package/src/bmm-skills/plan/bmad-sprint-planning/references/validate.md +0 -10
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/__pycache__/sprint_plan.cpython-311.pyc +0 -0
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/sprint_plan.py +0 -701
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/__pycache__/test_sprint_plan.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/plan/bmad-sprint-planning/scripts/tests/test_sprint_plan.py +0 -524
- package/src/bmm-skills/plan/bmad-sprint-planning/sprint-status-template.yaml +0 -71
- package/src/bmm-skills/plan/bmad-ux/SKILL.md +0 -90
- package/src/bmm-skills/plan/bmad-ux/assets/color-themes.md +0 -9
- package/src/bmm-skills/plan/bmad-ux/assets/design-directions.md +0 -9
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-editorial.md +0 -158
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-mobile.md +0 -93
- package/src/bmm-skills/plan/bmad-ux/assets/design-example-shadcn.md +0 -109
- package/src/bmm-skills/plan/bmad-ux/assets/excalidraw-wireframe.md +0 -19
- package/src/bmm-skills/plan/bmad-ux/assets/experience-example-mobile.md +0 -112
- package/src/bmm-skills/plan/bmad-ux/assets/experience-example-shadcn.md +0 -133
- package/src/bmm-skills/plan/bmad-ux/assets/headless-schemas.md +0 -84
- package/src/bmm-skills/plan/bmad-ux/assets/key-screens.md +0 -29
- package/src/bmm-skills/plan/bmad-ux/assets/validation-report-template.html +0 -319
- package/src/bmm-skills/plan/bmad-ux/customize.toml +0 -100
- package/src/bmm-skills/plan/bmad-ux/references/creative-tools.md +0 -19
- package/src/bmm-skills/plan/bmad-ux/references/design-md-spec.md +0 -50
- package/src/bmm-skills/plan/bmad-ux/references/headless.md +0 -37
- package/src/bmm-skills/plan/bmad-ux/references/validate.md +0 -115
- package/src/bmm-skills/ship/bmad-build/SKILL.md +0 -13
- package/src/bmm-skills/ship/bmad-build/compile-epic-context.md +0 -62
- package/src/bmm-skills/ship/bmad-build/customize.toml +0 -152
- package/src/bmm-skills/ship/bmad-build/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-build/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-build/spec-template.md +0 -111
- package/src/bmm-skills/ship/bmad-build/step-01-clarify-and-route.md +0 -100
- package/src/bmm-skills/ship/bmad-build/step-02-plan.md +0 -62
- package/src/bmm-skills/ship/bmad-build/step-03-implement.md +0 -51
- package/src/bmm-skills/ship/bmad-build/step-04-review.md +0 -85
- package/src/bmm-skills/ship/bmad-build/step-05-present.md +0 -43
- package/src/bmm-skills/ship/bmad-build/step-oneshot.md +0 -107
- package/src/bmm-skills/ship/bmad-build/sync-sprint-status.md +0 -5
- package/src/bmm-skills/ship/bmad-build/workflow.md +0 -84
- package/src/bmm-skills/ship/bmad-build-auto/SKILL.md +0 -13
- package/src/bmm-skills/ship/bmad-build-auto/compile-epic-context.md +0 -62
- package/src/bmm-skills/ship/bmad-build-auto/customize.toml +0 -119
- package/src/bmm-skills/ship/bmad-build-auto/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build-auto/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-build-auto/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-build-auto/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-build-auto/spec-template.md +0 -96
- package/src/bmm-skills/ship/bmad-build-auto/step-01-clarify-and-route.md +0 -84
- package/src/bmm-skills/ship/bmad-build-auto/step-02-plan.md +0 -27
- package/src/bmm-skills/ship/bmad-build-auto/step-03-implement.md +0 -48
- package/src/bmm-skills/ship/bmad-build-auto/step-04-review.md +0 -116
- package/src/bmm-skills/ship/bmad-build-auto/workflow.md +0 -104
- package/src/bmm-skills/ship/bmad-code-review/SKILL.md +0 -90
- package/src/bmm-skills/ship/bmad-code-review/customize.toml +0 -110
- package/src/bmm-skills/ship/bmad-code-review/references/claims-check.md +0 -14
- package/src/bmm-skills/ship/bmad-code-review/references/deletion-check.md +0 -14
- package/src/bmm-skills/ship/bmad-code-review/review-prompts/edge-case-hunter.md +0 -112
- package/src/bmm-skills/ship/bmad-code-review/review-prompts/verification-gap.md +0 -113
- package/src/bmm-skills/ship/bmad-code-review/steps/step-01-gather-context.md +0 -94
- package/src/bmm-skills/ship/bmad-code-review/steps/step-02-review.md +0 -32
- package/src/bmm-skills/ship/bmad-code-review/steps/step-03-triage.md +0 -54
- package/src/bmm-skills/ship/bmad-code-review/steps/step-04-present.md +0 -134
- package/src/bmm-skills/ship/bmad-correct-course/SKILL.md +0 -308
- package/src/bmm-skills/ship/bmad-correct-course/checklist.md +0 -288
- package/src/bmm-skills/ship/bmad-correct-course/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/SKILL.md +0 -176
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/checklist.md +0 -33
- package/src/bmm-skills/ship/bmad-qa-generate-e2e-tests/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-retrospective/SKILL.md +0 -94
- package/src/bmm-skills/ship/bmad-retrospective/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-retrospective/references/acceptance-verdict.md +0 -55
- package/src/bmm-skills/ship/bmad-retrospective/references/aggregate-views.md +0 -17
- package/src/bmm-skills/ship/bmad-retrospective/references/evidence-gathering.md +0 -30
- package/src/bmm-skills/ship/bmad-retrospective/references/retro-document.md +0 -84
- package/src/bmm-skills/ship/bmad-retrospective/references/team-discussion.md +0 -22
- package/src/bmm-skills/ship/bmad-retrospective/scripts/__pycache__/sprint_status.cpython-311.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/git_evidence.py +0 -308
- package/src/bmm-skills/ship/bmad-retrospective/scripts/sprint_status.py +0 -750
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_git_evidence.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/__pycache__/test_sprint_status.cpython-311-pytest-9.1.1.pyc +0 -0
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/fixtures/sprint-status-template.yaml +0 -71
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_git_evidence.py +0 -750
- package/src/bmm-skills/ship/bmad-retrospective/scripts/tests/test_sprint_status.py +0 -1579
- package/src/bmm-skills/ship/bmad-walkthrough/SKILL.md +0 -68
- package/src/bmm-skills/ship/bmad-walkthrough/customize.toml +0 -39
- package/src/bmm-skills/ship/bmad-walkthrough/generate-trail.md +0 -38
- package/src/bmm-skills/ship/bmad-walkthrough/step-01-orientation.md +0 -105
- package/src/bmm-skills/ship/bmad-walkthrough/step-02-walkthrough.md +0 -89
- package/src/bmm-skills/ship/bmad-walkthrough/step-03-detail-pass.md +0 -106
- package/src/bmm-skills/ship/bmad-walkthrough/step-04-testing.md +0 -74
- package/src/bmm-skills/ship/bmad-walkthrough/step-05-wrapup.md +0 -30
- package/src/bmm-skills/v6-shims/README.md +0 -29
- package/src/bmm-skills/v6-shims/bmad-checkpoint-preview/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-create-architecture/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-create-architecture/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-create-prd/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-story/SKILL.md +0 -436
- package/src/bmm-skills/v6-shims/bmad-create-story/checklist.md +0 -357
- package/src/bmm-skills/v6-shims/bmad-create-story/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-create-story/discover-inputs.md +0 -88
- package/src/bmm-skills/v6-shims/bmad-create-story/template.md +0 -49
- package/src/bmm-skills/v6-shims/bmad-dev-auto/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-dev-story/SKILL.md +0 -504
- package/src/bmm-skills/v6-shims/bmad-dev-story/checklist.md +0 -80
- package/src/bmm-skills/v6-shims/bmad-dev-story/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-document-project/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-domain-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-edit-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-edit-prd/customize.toml +0 -40
- package/src/bmm-skills/v6-shims/bmad-market-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-quick-dev/SKILL.md +0 -21
- package/src/bmm-skills/v6-shims/bmad-sprint-status/SKILL.md +0 -28
- package/src/bmm-skills/v6-shims/bmad-sprint-status/customize.toml +0 -39
- package/src/bmm-skills/v6-shims/bmad-technical-research/SKILL.md +0 -16
- package/src/bmm-skills/v6-shims/bmad-validate-prd/SKILL.md +0 -32
- package/src/bmm-skills/v6-shims/bmad-validate-prd/customize.toml +0 -40
- package/src/core-skills/bmad-advanced-elicitation/SKILL.md +0 -64
- package/src/core-skills/bmad-advanced-elicitation/assets/methods.csv +0 -72
- package/src/core-skills/bmad-advanced-elicitation/customize.toml +0 -54
- package/src/core-skills/bmad-advanced-elicitation/scripts/pick_methods.py +0 -233
- package/src/core-skills/bmad-advanced-elicitation/scripts/tests/test_pick_methods.py +0 -228
- package/src/core-skills/bmad-brainstorming/SKILL.md +0 -80
- package/src/core-skills/bmad-brainstorming/assets/brain-icons.json +0 -166
- package/src/core-skills/bmad-brainstorming/assets/brain-methods.csv +0 -109
- package/src/core-skills/bmad-brainstorming/assets/brain-selector.html +0 -328
- package/src/core-skills/bmad-brainstorming/customize.toml +0 -83
- package/src/core-skills/bmad-brainstorming/references/converge.md +0 -24
- package/src/core-skills/bmad-brainstorming/references/finalize.md +0 -26
- package/src/core-skills/bmad-brainstorming/references/headless.md +0 -54
- package/src/core-skills/bmad-brainstorming/references/in-chat-techniques.md +0 -18
- package/src/core-skills/bmad-brainstorming/references/mode-autonomous.md +0 -10
- package/src/core-skills/bmad-brainstorming/references/mode-facilitator.md +0 -11
- package/src/core-skills/bmad-brainstorming/references/mode-partner.md +0 -16
- package/src/core-skills/bmad-brainstorming/references/resume.md +0 -5
- package/src/core-skills/bmad-brainstorming/scripts/brain.py +0 -789
- package/src/core-skills/bmad-brainstorming/scripts/tests/test_brain.py +0 -289
- package/src/core-skills/bmad-customize/SKILL.md +0 -111
- package/src/core-skills/bmad-customize/scripts/list_customizable_skills.py +0 -235
- package/src/core-skills/bmad-customize/scripts/tests/test_list_customizable_skills.py +0 -249
- package/src/core-skills/bmad-deep-recon/SKILL.md +0 -82
- package/src/core-skills/bmad-deep-recon/assets/research.template.md +0 -18
- package/src/core-skills/bmad-deep-recon/customize.toml +0 -212
- package/src/core-skills/bmad-deep-recon/references/draft.md +0 -8
- package/src/core-skills/bmad-deep-recon/references/finalize.md +0 -11
- package/src/core-skills/bmad-deep-recon/references/html-briefing.md +0 -16
- package/src/core-skills/bmad-deep-recon/references/lifecycle.md +0 -11
- package/src/core-skills/bmad-deep-recon/references/process.md +0 -10
- package/src/core-skills/bmad-deep-recon/references/run.md +0 -73
- package/src/core-skills/bmad-deep-recon/references/selection.md +0 -13
- package/src/core-skills/bmad-deep-recon/references/synthesis.md +0 -16
- package/src/core-skills/bmad-deep-recon/references/verification.md +0 -29
- package/src/core-skills/bmad-deep-recon/scripts/recon_kit.py +0 -326
- package/src/core-skills/bmad-deep-recon/scripts/tests/test_recon_kit.py +0 -144
- package/src/core-skills/bmad-deep-recon/types/academic-lit.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/competitive.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/domain.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/market.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/technical.md +0 -19
- package/src/core-skills/bmad-deep-recon/types/user-voice.md +0 -19
- package/src/core-skills/bmad-forge-idea/SKILL.md +0 -107
- package/src/core-skills/bmad-forge-idea/customize.toml +0 -41
- package/src/core-skills/bmad-forge-idea/scripts/resolve_personas.py +0 -277
- package/src/core-skills/bmad-forge-idea/scripts/tests/test_resolve_personas.py +0 -160
- package/src/core-skills/bmad-help/SKILL.md +0 -77
- package/src/core-skills/bmad-party-mode/SKILL.md +0 -60
- package/src/core-skills/bmad-party-mode/customize.toml +0 -211
- package/src/core-skills/bmad-party-mode/references/create-party.md +0 -70
- package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +0 -13
- package/src/core-skills/bmad-party-mode/references/mode-auto.md +0 -13
- package/src/core-skills/bmad-party-mode/references/mode-subagent.md +0 -31
- package/src/core-skills/bmad-party-mode/references/party-memory.md +0 -51
- package/src/core-skills/bmad-party-mode/scripts/resolve_party.py +0 -300
- package/src/core-skills/bmad-party-mode/scripts/tests/test_resolve_party.py +0 -183
- package/src/core-skills/bmad-review/SKILL.md +0 -50
- package/src/core-skills/bmad-review/customize.toml +0 -141
- package/src/core-skills/bmad-review/references/editorial-common.md +0 -56
- package/src/core-skills/bmad-review/references/lens-adversarial.md +0 -19
- package/src/core-skills/bmad-review/references/lens-edge-case-hunter.md +0 -72
- package/src/core-skills/bmad-review/references/lens-prose.md +0 -7
- package/src/core-skills/bmad-review/references/lens-structure.md +0 -9
- package/src/core-skills/bmad-review/references/lens-verification-gap.md +0 -92
- package/src/core-skills/bmad-review/references/structure-models.md +0 -44
- package/src/core-skills/bmad-review/scripts/tests/test_word_metrics.py +0 -62
- package/src/core-skills/bmad-review/scripts/word_metrics.py +0 -102
- package/src/core-skills/module-help.csv +0 -10
- package/src/core-skills/module.yaml +0 -38
- package/src/core-skills/v6-shims/README.md +0 -25
- package/src/core-skills/v6-shims/bmad-editorial-review/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-editorial-review/customize.toml +0 -31
- package/src/core-skills/v6-shims/bmad-editorial-review-prose/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-editorial-review-structure/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-adversarial-general/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-edge-case-hunter/SKILL.md +0 -8
- package/src/core-skills/v6-shims/bmad-review-verification-gap/SKILL.md +0 -8
- package/src/scripts/__pycache__/config_utils.cpython-311.pyc +0 -0
- package/src/scripts/config_utils.py +0 -119
- package/src/scripts/memlog.py +0 -228
- package/src/scripts/render_skill.py +0 -401
- package/src/scripts/resolve_config.py +0 -82
- package/src/scripts/resolve_customization.py +0 -164
- package/src/scripts/tests/__pycache__/test_config_utils.cpython-311.pyc +0 -0
- package/src/scripts/tests/__pycache__/test_resolve_config.cpython-311.pyc +0 -0
- package/src/scripts/tests/__pycache__/test_resolve_customization.cpython-311.pyc +0 -0
- package/src/scripts/tests/test_config_utils.py +0 -85
- package/src/scripts/tests/test_memlog.py +0 -306
- package/src/scripts/tests/test_resolve_config.py +0 -117
- package/src/scripts/tests/test_resolve_customization.py +0 -179
- package/tools/bundle-web-bundles.js +0 -117
- package/tools/format-workflow-md.js +0 -263
- package/tools/installer/README.md +0 -60
- package/tools/installer/bmad-cli.js +0 -105
- package/tools/installer/cli-utils.js +0 -57
- package/tools/installer/commands/install.js +0 -151
- package/tools/installer/commands/status.js +0 -65
- package/tools/installer/commands/uninstall.js +0 -167
- package/tools/installer/core/config.js +0 -76
- package/tools/installer/core/existing-install.js +0 -121
- package/tools/installer/core/install-paths.js +0 -132
- package/tools/installer/core/installer.js +0 -1826
- package/tools/installer/core/legacy-warnings.js +0 -151
- package/tools/installer/core/manifest-generator.js +0 -883
- package/tools/installer/core/manifest.js +0 -439
- package/tools/installer/core/shim-policy.js +0 -159
- package/tools/installer/core/uv-check.js +0 -195
- package/tools/installer/core/wsl-node-check.js +0 -109
- package/tools/installer/file-ops.js +0 -204
- package/tools/installer/fs-native.js +0 -116
- package/tools/installer/ide/_config-driven.js +0 -972
- package/tools/installer/ide/manager.js +0 -324
- package/tools/installer/ide/platform-codes.js +0 -80
- package/tools/installer/ide/platform-codes.yaml +0 -363
- package/tools/installer/ide/shared/installed-skills.js +0 -50
- package/tools/installer/ide/shared/path-utils.js +0 -219
- package/tools/installer/ide/shared/skill-manifest.js +0 -57
- package/tools/installer/install-messages.yaml +0 -44
- package/tools/installer/list-options.js +0 -210
- package/tools/installer/message-loader.js +0 -83
- package/tools/installer/modules/channel-plan.js +0 -216
- package/tools/installer/modules/channel-resolver.js +0 -241
- package/tools/installer/modules/custom-module-manager.js +0 -924
- package/tools/installer/modules/external-manager.js +0 -673
- package/tools/installer/modules/git-env.js +0 -47
- package/tools/installer/modules/module-help-schema.js +0 -13
- package/tools/installer/modules/official-modules.js +0 -2289
- package/tools/installer/modules/plugin-resolver.js +0 -398
- package/tools/installer/modules/version-resolver.js +0 -336
- package/tools/installer/project-root.js +0 -224
- package/tools/installer/prompts.js +0 -804
- package/tools/installer/set-overrides.js +0 -330
- package/tools/installer/ui.js +0 -2225
- package/tools/installer/yaml-format.js +0 -245
- package/tools/javascript-conventions.md +0 -5
- package/tools/migrate-custom-module-paths.js +0 -124
- package/tools/skill-validator.md +0 -312
- package/tools/tests/__pycache__/test_validate_skills.cpython-311.pyc +0 -0
- package/tools/tests/fixtures/validate-skills/bmad/SKILL.md +0 -8
- package/tools/tests/fixtures/validate-skills/deprecated-shim/SKILL.md +0 -9
- package/tools/tests/fixtures/validate-skills/missing-trigger/SKILL.md +0 -9
- package/tools/tests/fixtures/validate-skills/with-trigger/SKILL.md +0 -8
- package/tools/tests/test_validate_skills.py +0 -476
- package/tools/validate-published-implementation-model.mjs +0 -59
- package/tools/validate-sidebar-order.js +0 -388
- package/tools/validate-svg-changes.sh +0 -356
- package/tools/validate_skills.py +0 -698
- package/web-bundles/README.md +0 -46
- package/web-bundles/brainstorming-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/brainstorming-coach/SKILL.md +0 -83
- package/web-bundles/brainstorming-coach/brain-methods.csv +0 -62
- package/web-bundles/bundles.json +0 -139
- package/web-bundles/market-and-industry-research/INSTRUCTIONS.md +0 -88
- package/web-bundles/market-and-industry-research/SKILL.md +0 -59
- package/web-bundles/prd-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/prd-coach/SKILL.md +0 -101
- package/web-bundles/prd-coach/prd-template.md +0 -165
- package/web-bundles/prd-coach/prd-validation-checklist.md +0 -135
- package/web-bundles/prfaq-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/prfaq-coach/SKILL.md +0 -139
- package/web-bundles/product-brief-coach/INSTRUCTIONS.md +0 -86
- package/web-bundles/product-brief-coach/SKILL.md +0 -113
- package/web-bundles/ux-coach/INSTRUCTIONS.md +0 -92
- package/web-bundles/ux-coach/SKILL.md +0 -187
- package/web-bundles/ux-coach/ux-validation.md +0 -100
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
const prompts = require('../prompts');
|
|
3
|
-
const { Installer } = require('../core/installer');
|
|
4
|
-
const { UI } = require('../ui');
|
|
5
|
-
|
|
6
|
-
const installer = new Installer();
|
|
7
|
-
const ui = new UI();
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
command: 'install',
|
|
11
|
-
description: 'Install BMAD Core agents and tools',
|
|
12
|
-
options: [
|
|
13
|
-
['-d, --debug', 'Enable debug output for manifest generation'],
|
|
14
|
-
['--directory <path>', 'Installation directory (default: current directory)'],
|
|
15
|
-
['--modules <modules>', 'Comma-separated list of module IDs to install (e.g., "bmm,bmb")'],
|
|
16
|
-
[
|
|
17
|
-
'--tools <tools>',
|
|
18
|
-
'Comma-separated list of tool/IDE IDs to configure (e.g., "claude-code,cursor"). Required for fresh non-interactive (--yes) installs. Run with --list-tools to see all valid IDs.',
|
|
19
|
-
],
|
|
20
|
-
['--list-tools', 'Print all supported tool/IDE IDs (with target directories) and exit.'],
|
|
21
|
-
[
|
|
22
|
-
'--set <spec>',
|
|
23
|
-
'Set a module config option non-interactively. Spec format: <module>.<key>=<value> (e.g. bmm.project_knowledge=research). Repeatable. Run --list-options to see available keys.',
|
|
24
|
-
(value, prev) => [...(prev || []), value],
|
|
25
|
-
[],
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
'--list-options [module]',
|
|
29
|
-
'List available --set keys for all locally-known official modules, or for a single module by code, then exit.',
|
|
30
|
-
],
|
|
31
|
-
['--action <type>', 'Action type for existing installations: install, update, or quick-update'],
|
|
32
|
-
['--user-name <name>', 'Name for agents to use (default: system username)'],
|
|
33
|
-
['--communication-language <lang>', 'Language for agent communication (default: English)'],
|
|
34
|
-
['--document-output-language <lang>', 'Language for document output (default: English)'],
|
|
35
|
-
['--output-folder <path>', 'Output folder path relative to project root (default: _bmad-output)'],
|
|
36
|
-
['--custom-source <sources>', 'Comma-separated Git URLs or local paths to install custom modules from'],
|
|
37
|
-
['--shims', 'Install deprecated compatibility shim skills when the selected modules provide them'],
|
|
38
|
-
['--no-shims', 'Do not install deprecated compatibility shim skills'],
|
|
39
|
-
['-y, --yes', 'Accept all defaults and skip prompts where possible'],
|
|
40
|
-
[
|
|
41
|
-
'--channel <channel>',
|
|
42
|
-
'Apply channel (stable|next) to all external modules being installed. --all-stable and --all-next are aliases.',
|
|
43
|
-
],
|
|
44
|
-
['--all-stable', 'Alias for --channel=stable. Resolves externals to the highest stable release tag.'],
|
|
45
|
-
['--all-next', 'Alias for --channel=next. Resolves externals to main HEAD.'],
|
|
46
|
-
['--next <code>', 'Install module <code> from main HEAD (next channel). Repeatable.', (value, prev) => [...(prev || []), value], []],
|
|
47
|
-
[
|
|
48
|
-
'--pin <spec>',
|
|
49
|
-
'Pin module to a specific tag: --pin CODE=TAG (e.g. --pin bmb=v1.7.0). Repeatable.',
|
|
50
|
-
(value, prev) => [...(prev || []), value],
|
|
51
|
-
[],
|
|
52
|
-
],
|
|
53
|
-
],
|
|
54
|
-
action: async (options) => {
|
|
55
|
-
try {
|
|
56
|
-
if (options.listTools) {
|
|
57
|
-
const { formatPlatformList } = require('../ide/platform-codes');
|
|
58
|
-
process.stdout.write((await formatPlatformList()) + '\n');
|
|
59
|
-
process.exit(0);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (options.listOptions !== undefined) {
|
|
63
|
-
const { formatOptionsList } = require('../list-options');
|
|
64
|
-
const moduleArg = options.listOptions === true ? null : options.listOptions;
|
|
65
|
-
const { text, ok } = await formatOptionsList(moduleArg);
|
|
66
|
-
const stream = ok ? process.stdout : process.stderr;
|
|
67
|
-
// process.exit() forces immediate termination and can truncate the
|
|
68
|
-
// buffered write when stdout/stderr is piped or captured by CI. Wait
|
|
69
|
-
// for the write to flush, then set process.exitCode and return so the
|
|
70
|
-
// event loop drains naturally. Non-zero exit when a single-module
|
|
71
|
-
// lookup misses so a CI typo like `--list-options bmn` doesn't look
|
|
72
|
-
// successful in scripts.
|
|
73
|
-
await new Promise((resolve, reject) => {
|
|
74
|
-
stream.write(text + '\n', (error) => (error ? reject(error) : resolve()));
|
|
75
|
-
});
|
|
76
|
-
process.exitCode = ok ? 0 : 1;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const { checkWindowsNodeFromWsl } = require('../core/wsl-node-check');
|
|
81
|
-
await checkWindowsNodeFromWsl();
|
|
82
|
-
|
|
83
|
-
// Set debug flag as environment variable for all components
|
|
84
|
-
if (options.debug) {
|
|
85
|
-
process.env.BMAD_DEBUG_MANIFEST = 'true';
|
|
86
|
-
await prompts.log.info('Debug mode enabled');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Validate --set syntax up-front so malformed entries fail fast,
|
|
90
|
-
// before we touch the network or filesystem. Parsed entries are
|
|
91
|
-
// re-derived inside ui.js where overrides are seeded.
|
|
92
|
-
if (options.set && options.set.length > 0) {
|
|
93
|
-
const { parseSetEntries } = require('../set-overrides');
|
|
94
|
-
try {
|
|
95
|
-
parseSetEntries(options.set);
|
|
96
|
-
} catch (error) {
|
|
97
|
-
await prompts.log.error(error.message);
|
|
98
|
-
process.exit(1);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const config = await ui.promptInstall(options);
|
|
103
|
-
|
|
104
|
-
// Handle cancel
|
|
105
|
-
if (config.actionType === 'cancel') {
|
|
106
|
-
await prompts.log.warn('Installation cancelled.');
|
|
107
|
-
process.exit(0);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Handle quick update separately. --set is a post-install TOML patch so
|
|
111
|
-
// it works the same way for quick-update as for a regular install — the
|
|
112
|
-
// installer runs, then `applySetOverrides` patches the central config
|
|
113
|
-
// files. Pass the parsed overrides through.
|
|
114
|
-
if (config.actionType === 'quick-update') {
|
|
115
|
-
const { parseSetEntries } = require('../set-overrides');
|
|
116
|
-
config.setOverrides = parseSetEntries(options.set || []);
|
|
117
|
-
const result = await installer.quickUpdate(config);
|
|
118
|
-
await prompts.log.success('Quick update complete!');
|
|
119
|
-
await prompts.log.info(`Updated ${result.moduleCount} modules with preserved settings (${result.modules.join(', ')})`);
|
|
120
|
-
process.exit(0);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Regular install/update flow
|
|
124
|
-
const result = await installer.install(config);
|
|
125
|
-
|
|
126
|
-
// Check if installation was cancelled
|
|
127
|
-
if (result && result.cancelled) {
|
|
128
|
-
process.exit(0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// Check if installation succeeded
|
|
132
|
-
if (result && result.success) {
|
|
133
|
-
process.exit(0);
|
|
134
|
-
}
|
|
135
|
-
} catch (error) {
|
|
136
|
-
try {
|
|
137
|
-
if (error.fullMessage) {
|
|
138
|
-
await prompts.log.error(error.fullMessage);
|
|
139
|
-
} else {
|
|
140
|
-
await prompts.log.error(`Installation failed: ${error.message}`);
|
|
141
|
-
}
|
|
142
|
-
if (error.stack && !error.expected) {
|
|
143
|
-
await prompts.log.message(error.stack);
|
|
144
|
-
}
|
|
145
|
-
} catch {
|
|
146
|
-
console.error(error.fullMessage || error.message || error);
|
|
147
|
-
}
|
|
148
|
-
process.exit(1);
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
const prompts = require('../prompts');
|
|
3
|
-
const { Installer } = require('../core/installer');
|
|
4
|
-
const { Manifest } = require('../core/manifest');
|
|
5
|
-
const { UI } = require('../ui');
|
|
6
|
-
|
|
7
|
-
const installer = new Installer();
|
|
8
|
-
const manifest = new Manifest();
|
|
9
|
-
const ui = new UI();
|
|
10
|
-
|
|
11
|
-
module.exports = {
|
|
12
|
-
command: 'status',
|
|
13
|
-
description: 'Display BMAD installation status and module versions',
|
|
14
|
-
options: [],
|
|
15
|
-
action: async (options) => {
|
|
16
|
-
try {
|
|
17
|
-
// Find the bmad directory
|
|
18
|
-
const projectDir = process.cwd();
|
|
19
|
-
const { bmadDir } = await installer.findBmadDir(projectDir);
|
|
20
|
-
|
|
21
|
-
// Check if bmad directory exists
|
|
22
|
-
const fs = require('../fs-native');
|
|
23
|
-
if (!(await fs.pathExists(bmadDir))) {
|
|
24
|
-
await prompts.log.warn('No BMAD installation found in the current directory.');
|
|
25
|
-
await prompts.log.message(`Expected location: ${bmadDir}`);
|
|
26
|
-
await prompts.log.message('Run "bmad install" to set up a new installation.');
|
|
27
|
-
process.exit(0);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Read manifest
|
|
32
|
-
const manifestData = await manifest._readRaw(bmadDir);
|
|
33
|
-
|
|
34
|
-
if (!manifestData) {
|
|
35
|
-
await prompts.log.warn('No BMAD installation manifest found.');
|
|
36
|
-
await prompts.log.message('Run "bmad install" to set up a new installation.');
|
|
37
|
-
process.exit(0);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Get installation info
|
|
42
|
-
const installation = manifestData.installation || {};
|
|
43
|
-
const modules = manifestData.modules || [];
|
|
44
|
-
|
|
45
|
-
// Check for available updates (only for external modules)
|
|
46
|
-
const availableUpdates = await manifest.checkForUpdates(bmadDir);
|
|
47
|
-
|
|
48
|
-
// Display status
|
|
49
|
-
await ui.displayStatus({
|
|
50
|
-
installation,
|
|
51
|
-
modules,
|
|
52
|
-
availableUpdates,
|
|
53
|
-
bmadDir,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
process.exit(0);
|
|
57
|
-
} catch (error) {
|
|
58
|
-
await prompts.log.error(`Status check failed: ${error.message}`);
|
|
59
|
-
if (process.env.BMAD_DEBUG) {
|
|
60
|
-
await prompts.log.message(error.stack);
|
|
61
|
-
}
|
|
62
|
-
process.exit(1);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
};
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
const fs = require('../fs-native');
|
|
3
|
-
const prompts = require('../prompts');
|
|
4
|
-
const { Installer } = require('../core/installer');
|
|
5
|
-
|
|
6
|
-
const installer = new Installer();
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
command: 'uninstall',
|
|
10
|
-
description: 'Remove BMAD installation from the current project',
|
|
11
|
-
options: [
|
|
12
|
-
['-y, --yes', 'Remove all BMAD components without prompting (preserves user artifacts)'],
|
|
13
|
-
['--directory <path>', 'Project directory (default: current directory)'],
|
|
14
|
-
],
|
|
15
|
-
action: async (options) => {
|
|
16
|
-
try {
|
|
17
|
-
let projectDir;
|
|
18
|
-
|
|
19
|
-
if (options.directory) {
|
|
20
|
-
// Explicit --directory flag takes precedence
|
|
21
|
-
projectDir = path.resolve(options.directory);
|
|
22
|
-
} else if (options.yes) {
|
|
23
|
-
// Non-interactive mode: use current directory
|
|
24
|
-
projectDir = process.cwd();
|
|
25
|
-
} else {
|
|
26
|
-
// Interactive: ask user which directory to uninstall from
|
|
27
|
-
// select() handles cancellation internally (exits process)
|
|
28
|
-
const dirChoice = await prompts.select({
|
|
29
|
-
message: 'Where do you want to uninstall BMAD from?',
|
|
30
|
-
choices: [
|
|
31
|
-
{ value: 'cwd', name: `Current directory (${process.cwd()})` },
|
|
32
|
-
{ value: 'other', name: 'Another directory...' },
|
|
33
|
-
],
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
if (dirChoice === 'other') {
|
|
37
|
-
// text() handles cancellation internally (exits process)
|
|
38
|
-
const customDir = await prompts.text({
|
|
39
|
-
message: 'Enter the project directory path:',
|
|
40
|
-
placeholder: process.cwd(),
|
|
41
|
-
validate: (value) => {
|
|
42
|
-
if (!value || value.trim().length === 0) return 'Directory path is required';
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
projectDir = path.resolve(customDir.trim());
|
|
47
|
-
} else {
|
|
48
|
-
projectDir = process.cwd();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (!(await fs.pathExists(projectDir))) {
|
|
53
|
-
await prompts.log.error(`Directory does not exist: ${projectDir}`);
|
|
54
|
-
process.exit(1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const { bmadDir } = await installer.findBmadDir(projectDir);
|
|
58
|
-
|
|
59
|
-
if (!(await fs.pathExists(bmadDir))) {
|
|
60
|
-
await prompts.log.warn('No BMAD installation found.');
|
|
61
|
-
process.exit(0);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const existingInstall = await installer.getStatus(projectDir);
|
|
65
|
-
const version = existingInstall.installed ? existingInstall.version : 'unknown';
|
|
66
|
-
const modules = existingInstall.moduleIds.join(', ');
|
|
67
|
-
const ides = existingInstall.ides.join(', ');
|
|
68
|
-
|
|
69
|
-
const outputFolder = await installer.getOutputFolder(projectDir);
|
|
70
|
-
|
|
71
|
-
await prompts.intro('BMAD Uninstall');
|
|
72
|
-
await prompts.note(`Version: ${version}\nModules: ${modules}\nIDE integrations: ${ides}`, 'Current Installation');
|
|
73
|
-
|
|
74
|
-
let removeModules = true;
|
|
75
|
-
let removeIdeConfigs = true;
|
|
76
|
-
let removeOutputFolder = false;
|
|
77
|
-
|
|
78
|
-
if (!options.yes) {
|
|
79
|
-
// multiselect() handles cancellation internally (exits process)
|
|
80
|
-
const selected = await prompts.multiselect({
|
|
81
|
-
message: 'Select components to remove:',
|
|
82
|
-
options: [
|
|
83
|
-
{
|
|
84
|
-
value: 'modules',
|
|
85
|
-
label: `BMAD Modules & data (${installer.bmadFolderName}/)`,
|
|
86
|
-
hint: 'Core installation, agents, workflows, config',
|
|
87
|
-
},
|
|
88
|
-
{ value: 'ide', label: 'IDE integrations', hint: ides || 'No IDEs configured' },
|
|
89
|
-
{ value: 'output', label: `User artifacts (${outputFolder}/)`, hint: 'WARNING: Contains your work products' },
|
|
90
|
-
],
|
|
91
|
-
initialValues: ['modules', 'ide'],
|
|
92
|
-
required: true,
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
removeModules = selected.includes('modules');
|
|
96
|
-
removeIdeConfigs = selected.includes('ide');
|
|
97
|
-
removeOutputFolder = selected.includes('output');
|
|
98
|
-
|
|
99
|
-
const red = (s) => `\u001B[31m${s}\u001B[0m`;
|
|
100
|
-
await prompts.note(
|
|
101
|
-
red('💀 This action is IRREVERSIBLE! Removed files cannot be recovered!') +
|
|
102
|
-
'\n' +
|
|
103
|
-
red('💀 IDE configurations and modules will need to be reinstalled.') +
|
|
104
|
-
'\n' +
|
|
105
|
-
red('💀 User artifacts are preserved unless explicitly selected.'),
|
|
106
|
-
'!! DESTRUCTIVE ACTION !!',
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
const confirmed = await prompts.confirm({
|
|
110
|
-
message: 'Proceed with uninstall?',
|
|
111
|
-
default: false,
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
if (!confirmed) {
|
|
115
|
-
await prompts.outro('Uninstall cancelled.');
|
|
116
|
-
process.exit(0);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Phase 1: IDE integrations
|
|
121
|
-
if (removeIdeConfigs) {
|
|
122
|
-
const s = await prompts.spinner();
|
|
123
|
-
s.start('Removing IDE integrations...');
|
|
124
|
-
await installer.uninstallIdeConfigs(projectDir, existingInstall, { silent: true });
|
|
125
|
-
s.stop(`Removed IDE integrations (${ides || 'none'})`);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Phase 2: User artifacts
|
|
129
|
-
if (removeOutputFolder) {
|
|
130
|
-
const s = await prompts.spinner();
|
|
131
|
-
s.start(`Removing user artifacts (${outputFolder}/)...`);
|
|
132
|
-
await installer.uninstallOutputFolder(projectDir, outputFolder);
|
|
133
|
-
s.stop('User artifacts removed');
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Phase 3: BMAD modules & data (last — other phases may need _bmad/)
|
|
137
|
-
if (removeModules) {
|
|
138
|
-
const s = await prompts.spinner();
|
|
139
|
-
s.start(`Removing BMAD modules & data (${installer.bmadFolderName}/)...`);
|
|
140
|
-
await installer.uninstallModules(projectDir);
|
|
141
|
-
s.stop('Modules & data removed');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
const summary = [];
|
|
145
|
-
if (removeIdeConfigs) summary.push('IDE integrations cleaned');
|
|
146
|
-
if (removeModules) summary.push('Modules & data removed');
|
|
147
|
-
if (removeOutputFolder) summary.push('User artifacts removed');
|
|
148
|
-
if (!removeOutputFolder) summary.push(`User artifacts preserved in ${outputFolder}/`);
|
|
149
|
-
|
|
150
|
-
await prompts.note(summary.join('\n'), 'Summary');
|
|
151
|
-
await prompts.outro('To reinstall, run: npx bmad-method install');
|
|
152
|
-
|
|
153
|
-
process.exit(0);
|
|
154
|
-
} catch (error) {
|
|
155
|
-
try {
|
|
156
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
157
|
-
await prompts.log.error(`Uninstall failed: ${errorMessage}`);
|
|
158
|
-
if (error instanceof Error && error.stack) {
|
|
159
|
-
await prompts.log.message(error.stack);
|
|
160
|
-
}
|
|
161
|
-
} catch {
|
|
162
|
-
console.error(error instanceof Error ? error.message : error);
|
|
163
|
-
}
|
|
164
|
-
process.exit(1);
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clean install configuration built from user input.
|
|
3
|
-
* User input comes from either UI answers or headless CLI flags.
|
|
4
|
-
*/
|
|
5
|
-
class Config {
|
|
6
|
-
constructor({
|
|
7
|
-
directory,
|
|
8
|
-
modules,
|
|
9
|
-
ides,
|
|
10
|
-
skipPrompts,
|
|
11
|
-
verbose,
|
|
12
|
-
actionType,
|
|
13
|
-
coreConfig,
|
|
14
|
-
moduleConfigs,
|
|
15
|
-
quickUpdate,
|
|
16
|
-
channelOptions,
|
|
17
|
-
setOverrides,
|
|
18
|
-
installShims,
|
|
19
|
-
}) {
|
|
20
|
-
this.directory = directory;
|
|
21
|
-
this.modules = Object.freeze([...modules]);
|
|
22
|
-
this.ides = Object.freeze([...ides]);
|
|
23
|
-
this.skipPrompts = skipPrompts;
|
|
24
|
-
this.verbose = verbose;
|
|
25
|
-
this.actionType = actionType;
|
|
26
|
-
this.coreConfig = coreConfig;
|
|
27
|
-
this.moduleConfigs = moduleConfigs;
|
|
28
|
-
this._quickUpdate = quickUpdate;
|
|
29
|
-
// channelOptions carry a Map + Set; don't deep-freeze.
|
|
30
|
-
this.channelOptions = channelOptions || null;
|
|
31
|
-
// Parsed `--set <module>.<key>=<value>` overrides, applied as a TOML
|
|
32
|
-
// patch AFTER the install finishes. Shape: { moduleCode: { key: value } }.
|
|
33
|
-
// Intentionally NOT integrated with the prompt/template/schema flow; see
|
|
34
|
-
// `tools/installer/set-overrides.js` for the rationale and tradeoffs.
|
|
35
|
-
this.setOverrides = setOverrides || {};
|
|
36
|
-
this.installShims = typeof installShims === 'boolean' ? installShims : undefined;
|
|
37
|
-
Object.freeze(this);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Build a clean install config from raw user input.
|
|
42
|
-
* @param {Object} userInput - UI answers or CLI flags
|
|
43
|
-
* @returns {Config}
|
|
44
|
-
*/
|
|
45
|
-
static build(userInput) {
|
|
46
|
-
const modules = [...(userInput.modules || [])];
|
|
47
|
-
if (userInput.installCore && !modules.includes('core')) {
|
|
48
|
-
modules.unshift('core');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return new Config({
|
|
52
|
-
directory: userInput.directory,
|
|
53
|
-
modules,
|
|
54
|
-
ides: userInput.skipIde ? [] : [...(userInput.ides || [])],
|
|
55
|
-
skipPrompts: userInput.skipPrompts || false,
|
|
56
|
-
verbose: userInput.verbose || false,
|
|
57
|
-
actionType: userInput.actionType,
|
|
58
|
-
coreConfig: userInput.coreConfig || {},
|
|
59
|
-
moduleConfigs: userInput.moduleConfigs || null,
|
|
60
|
-
quickUpdate: userInput._quickUpdate || false,
|
|
61
|
-
channelOptions: userInput.channelOptions || null,
|
|
62
|
-
setOverrides: userInput.setOverrides || {},
|
|
63
|
-
installShims: userInput.installShims,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
hasCoreConfig() {
|
|
68
|
-
return this.coreConfig && Object.keys(this.coreConfig).length > 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
isQuickUpdate() {
|
|
72
|
-
return this._quickUpdate;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
module.exports = { Config };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
const path = require('node:path');
|
|
2
|
-
const fs = require('../fs-native');
|
|
3
|
-
const yaml = require('yaml');
|
|
4
|
-
const { Manifest } = require('./manifest');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Immutable snapshot of an existing BMAD installation.
|
|
8
|
-
* Pure query object — no filesystem operations after construction.
|
|
9
|
-
*/
|
|
10
|
-
class ExistingInstall {
|
|
11
|
-
#version;
|
|
12
|
-
|
|
13
|
-
constructor({ installed, version, hasCore, modules, ides }) {
|
|
14
|
-
this.installed = installed;
|
|
15
|
-
this.#version = version;
|
|
16
|
-
this.hasCore = hasCore;
|
|
17
|
-
this.modules = Object.freeze(modules.map((m) => Object.freeze({ ...m })));
|
|
18
|
-
this.moduleIds = Object.freeze(this.modules.map((m) => m.id));
|
|
19
|
-
this.ides = Object.freeze([...ides]);
|
|
20
|
-
Object.freeze(this);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
get version() {
|
|
24
|
-
if (!this.installed) {
|
|
25
|
-
throw new Error('version is not available when nothing is installed');
|
|
26
|
-
}
|
|
27
|
-
return this.#version;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static empty() {
|
|
31
|
-
return new ExistingInstall({
|
|
32
|
-
installed: false,
|
|
33
|
-
version: null,
|
|
34
|
-
hasCore: false,
|
|
35
|
-
modules: [],
|
|
36
|
-
ides: [],
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Scan a bmad directory and return an immutable snapshot of what's installed.
|
|
42
|
-
* @param {string} bmadDir - Path to bmad directory
|
|
43
|
-
* @returns {Promise<ExistingInstall>}
|
|
44
|
-
*/
|
|
45
|
-
static async detect(bmadDir) {
|
|
46
|
-
if (!(await fs.pathExists(bmadDir))) {
|
|
47
|
-
return ExistingInstall.empty();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
let version = null;
|
|
51
|
-
let hasCore = false;
|
|
52
|
-
const modules = [];
|
|
53
|
-
let ides = [];
|
|
54
|
-
|
|
55
|
-
const manifest = new Manifest();
|
|
56
|
-
const manifestData = await manifest.read(bmadDir);
|
|
57
|
-
if (manifestData) {
|
|
58
|
-
version = manifestData.version;
|
|
59
|
-
if (manifestData.ides) {
|
|
60
|
-
ides = manifestData.ides.filter((ide) => ide && typeof ide === 'string');
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const corePath = path.join(bmadDir, 'core');
|
|
65
|
-
if (await fs.pathExists(corePath)) {
|
|
66
|
-
hasCore = true;
|
|
67
|
-
|
|
68
|
-
if (!version) {
|
|
69
|
-
const coreConfigPath = path.join(corePath, 'config.yaml');
|
|
70
|
-
if (await fs.pathExists(coreConfigPath)) {
|
|
71
|
-
try {
|
|
72
|
-
const configContent = await fs.readFile(coreConfigPath, 'utf8');
|
|
73
|
-
const config = yaml.parse(configContent);
|
|
74
|
-
if (config.version) {
|
|
75
|
-
version = config.version;
|
|
76
|
-
}
|
|
77
|
-
} catch {
|
|
78
|
-
// Ignore config read errors
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (manifestData && manifestData.modules && manifestData.modules.length > 0) {
|
|
85
|
-
for (const moduleId of manifestData.modules) {
|
|
86
|
-
const modulePath = path.join(bmadDir, moduleId);
|
|
87
|
-
const moduleConfigPath = path.join(modulePath, 'config.yaml');
|
|
88
|
-
|
|
89
|
-
const moduleInfo = {
|
|
90
|
-
id: moduleId,
|
|
91
|
-
path: modulePath,
|
|
92
|
-
version: 'unknown',
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
if (await fs.pathExists(moduleConfigPath)) {
|
|
96
|
-
try {
|
|
97
|
-
const configContent = await fs.readFile(moduleConfigPath, 'utf8');
|
|
98
|
-
const config = yaml.parse(configContent);
|
|
99
|
-
moduleInfo.version = config.version || 'unknown';
|
|
100
|
-
moduleInfo.name = config.name || moduleId;
|
|
101
|
-
moduleInfo.description = config.description;
|
|
102
|
-
} catch {
|
|
103
|
-
// Ignore config read errors
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
modules.push(moduleInfo);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const installed = hasCore || modules.length > 0 || !!manifestData;
|
|
112
|
-
|
|
113
|
-
if (!installed) {
|
|
114
|
-
return ExistingInstall.empty();
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return new ExistingInstall({ installed, version, hasCore, modules, ides });
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
module.exports = { ExistingInstall };
|