bmad-method 6.0.0-alpha.15 → 6.0.0-alpha.17
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/.coderabbit.yaml +8 -4
- package/.github/scripts/discord-helpers.sh +21 -2
- package/.github/workflows/discord.yaml +31 -7
- package/.github/workflows/manual-release.yaml +12 -42
- package/.markdownlint-cli2.yaml +2 -2
- package/.prettierignore +2 -2
- package/.vscode/settings.json +1 -1
- package/CHANGELOG.md +126 -1
- package/LICENSE +1 -1
- package/README.md +29 -2
- package/docs/agent-customization-guide.md +10 -10
- package/docs/custom-content-installation.md +100 -196
- package/docs/custom-content.md +122 -0
- package/docs/ide-info/crush.md +1 -1
- package/docs/ide-info/cursor.md +7 -7
- package/docs/ide-info/iflow.md +3 -3
- package/docs/ide-info/opencode.md +1 -1
- package/docs/ide-info/rovo-dev.md +1 -1
- package/docs/index.md +2 -2
- package/docs/installers-bundlers/ide-injections.md +2 -2
- package/docs/installers-bundlers/installers-modules-platforms-reference.md +25 -25
- package/docs/sample-custom-modules/README.md +11 -0
- package/docs/sample-custom-modules/sample-unitary-module/README.md +8 -0
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/commit-poet/commit-poet.agent.yaml +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith.agent.yaml +14 -14
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/module.yaml +5 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-01-init.md +2 -2
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-02-q1.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-03-q2.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-04-q3.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-05-q4.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-06-q5.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-07-q6.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-08-q7.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-09-q8.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-10-q9.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-11-q10.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/steps/step-12-results.md +1 -1
- package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/workflow.md +1 -1
- package/docs/sample-custom-modules/sample-wellness-module/README.md +6 -0
- package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/meditation-guide.agent.yaml +37 -39
- package/docs/sample-custom-modules/sample-wellness-module/agents/wellness-companion/foo.md +3 -0
- package/docs/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/addition1.md +1 -0
- package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/wellness-companion/wellness-companion.agent.yaml +8 -13
- package/docs/sample-custom-modules/sample-wellness-module/module.yaml +17 -0
- package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/wellness-journal/workflow.md +3 -3
- package/docs/v4-to-v6-upgrade.md +27 -27
- package/docs/web-bundles-gemini-gpt-guide.md +6 -458
- package/eslint.config.mjs +2 -2
- package/package.json +1 -1
- package/src/core/agents/bmad-master.agent.yaml +6 -11
- package/src/core/module.yaml +10 -24
- package/src/core/resources/excalidraw/README.md +6 -6
- package/src/core/tasks/advanced-elicitation.xml +3 -3
- package/src/core/tasks/index-docs.xml +1 -1
- package/src/core/tasks/validate-workflow.xml +1 -1
- package/src/core/tasks/workflow.xml +4 -4
- package/src/core/tools/shard-doc.xml +12 -12
- package/src/core/workflows/brainstorming/workflow.md +3 -3
- package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +2 -2
- package/src/core/workflows/party-mode/workflow.md +4 -4
- package/src/modules/bmb/agents/bmad-builder.agent.yaml +15 -15
- package/src/modules/bmb/{README.md → docs/README.md} +15 -27
- package/src/modules/bmb/docs/agents/agent-compilation.md +3 -3
- package/src/modules/bmb/docs/agents/agent-menu-patterns.md +23 -24
- package/src/modules/bmb/docs/agents/expert-agent-architecture.md +21 -22
- package/src/modules/bmb/docs/agents/index.md +1 -1
- package/src/modules/bmb/docs/agents/simple-agent-architecture.md +17 -52
- package/src/modules/bmb/docs/agents/understanding-agent-types.md +6 -6
- package/src/modules/bmb/docs/workflows/architecture.md +1 -1
- package/src/modules/bmb/docs/workflows/common-workflow-tools.csv +3 -3
- package/src/modules/bmb/docs/workflows/templates/step-01-init-continuable-template.md +1 -1
- package/src/modules/bmb/docs/workflows/templates/step-1b-template.md +1 -1
- package/src/modules/bmb/docs/workflows/templates/step-file.md +3 -3
- package/src/modules/bmb/docs/workflows/templates/step-template.md +3 -3
- package/src/modules/bmb/docs/workflows/templates/workflow-template.md +2 -2
- package/src/modules/bmb/docs/workflows/templates/workflow.md +1 -1
- package/src/modules/bmb/module.yaml +6 -16
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +7 -7
- package/src/modules/bmb/reference/agents/module-examples/README.md +3 -4
- package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +5 -5
- package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +7 -7
- package/src/modules/bmb/reference/agents/simple-examples/README.md +1 -1
- package/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml +1 -1
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +1 -1
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +1 -1
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +3 -3
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +3 -3
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +5 -5
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +5 -5
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +5 -5
- package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +2 -2
- package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +1 -3
- package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +6 -6
- package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +7 -7
- package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +1 -1
- package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +1 -1
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +1 -1
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +1 -1
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +3 -3
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +3 -3
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +5 -5
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +5 -5
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +5 -5
- package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +2 -2
- package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +5 -5
- package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +5 -5
- package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +7 -11
- package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +7 -7
- package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +10 -10
- package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +7 -6
- package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +20 -58
- package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +6 -6
- package/src/modules/bmb/workflows/create-agent/steps/{step-11-celebrate.md → step-08-celebrate.md} +3 -7
- package/src/modules/bmb/workflows/create-agent/templates/agent-plan.template.md +3 -0
- package/src/modules/bmb/workflows/create-agent/templates/expert-agent.template.md +364 -0
- package/src/modules/bmb/workflows/create-agent/templates/simple-agent.template.md +257 -0
- package/src/modules/bmb/workflows/create-agent/workflow.md +2 -35
- package/src/modules/bmb/workflows/create-module/steps/step-01-init.md +4 -4
- package/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md +2 -2
- package/src/modules/bmb/workflows/create-module/steps/step-02-concept.md +5 -5
- package/src/modules/bmb/workflows/create-module/steps/step-03-components.md +5 -5
- package/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +6 -6
- package/src/modules/bmb/workflows/create-module/steps/step-05-config.md +5 -5
- package/src/modules/bmb/workflows/create-module/steps/step-06-agents.md +9 -9
- package/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md +5 -5
- package/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +8 -8
- package/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md +7 -7
- package/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md +7 -7
- package/src/modules/bmb/workflows/create-module/steps/step-11-validate.md +6 -6
- package/src/modules/bmb/workflows/create-module/templates/agent.template.md +15 -19
- package/src/modules/bmb/workflows/create-module/templates/module.template.yaml +1 -1
- package/src/modules/bmb/workflows/create-module/workflow.md +3 -3
- package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +4 -4
- package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +6 -6
- package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +5 -5
- package/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md +4 -4
- package/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +4 -4
- package/src/modules/bmb/workflows/create-workflow/steps/step-06-design.md +11 -11
- package/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md +14 -14
- package/src/modules/bmb/workflows/create-workflow/steps/step-08-review.md +4 -4
- package/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md +2 -2
- package/src/modules/bmb/workflows/create-workflow/workflow.md +2 -2
- package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +3 -3
- package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +13 -13
- package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +5 -5
- package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +3 -3
- package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +5 -5
- package/src/modules/bmb/workflows/edit-agent/workflow.md +1 -1
- package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +4 -4
- package/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +3 -3
- package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +6 -6
- package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +3 -3
- package/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +3 -3
- package/src/modules/bmb/workflows/edit-workflow/workflow.md +1 -1
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +3 -3
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +5 -5
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +6 -6
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +4 -4
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +4 -4
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +4 -4
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +4 -4
- package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +3 -3
- package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +1 -1
- package/src/modules/bmb/workflows-legacy/edit-module/README.md +1 -17
- package/src/modules/bmb/workflows-legacy/edit-module/checklist.md +3 -4
- package/src/modules/bmb/workflows-legacy/edit-module/instructions.md +4 -5
- package/src/modules/bmb/workflows-legacy/edit-module/workflow.yaml +10 -10
- package/src/modules/bmb/workflows-legacy/module-brief/README.md +2 -2
- package/src/modules/bmb/workflows-legacy/module-brief/instructions.md +2 -2
- package/src/modules/bmb/workflows-legacy/module-brief/workflow.yaml +4 -4
- package/src/modules/bmgd/README.md +1 -1
- package/src/modules/bmgd/agents/game-architect.agent.yaml +6 -6
- package/src/modules/bmgd/agents/game-designer.agent.yaml +7 -7
- package/src/modules/bmgd/agents/game-dev.agent.yaml +10 -10
- package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +21 -21
- package/src/modules/bmgd/module.yaml +2 -8
- package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md +1 -1
- package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.yaml +9 -9
- package/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md +1 -1
- package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.yaml +8 -8
- package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +4 -4
- package/src/modules/bmgd/workflows/2-design/gdd/workflow.yaml +30 -30
- package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +1 -1
- package/src/modules/bmgd/workflows/2-design/narrative/workflow.yaml +5 -5
- package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +1 -1
- package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +4 -4
- package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
- package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/epic-tech-context/checklist.md +1 -1
- package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +3 -3
- package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/story-context/checklist.md +1 -1
- package/src/modules/bmgd/workflows/4-production/story-context/context-template.xml +2 -2
- package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +2 -2
- package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/story-done/instructions.md +1 -1
- package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +2 -2
- package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +1 -1
- package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +2 -2
- package/src/modules/bmm/README.md +1 -1
- package/src/modules/bmm/agents/analyst.agent.yaml +9 -9
- package/src/modules/bmm/agents/architect.agent.yaml +8 -8
- package/src/modules/bmm/agents/dev.agent.yaml +5 -5
- package/src/modules/bmm/agents/pm.agent.yaml +8 -8
- package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +5 -5
- package/src/modules/bmm/agents/sm.agent.yaml +11 -11
- package/src/modules/bmm/agents/tea.agent.yaml +13 -13
- package/src/modules/bmm/agents/tech-writer.agent.yaml +9 -9
- package/src/modules/bmm/agents/ux-designer.agent.yaml +6 -6
- package/src/modules/bmm/docs/README.md +0 -25
- package/src/modules/bmm/docs/agents-guide.md +16 -14
- package/src/modules/bmm/docs/brownfield-guide.md +6 -6
- package/src/modules/bmm/docs/enterprise-agentic-development.md +3 -3
- package/src/modules/bmm/docs/faq.md +5 -18
- package/src/modules/bmm/docs/glossary.md +3 -4
- package/src/modules/bmm/docs/images/README.md +1 -1
- package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +8 -8
- package/src/modules/bmm/docs/party-mode.md +3 -3
- package/src/modules/bmm/docs/quick-flow-solo-dev.md +5 -5
- package/src/modules/bmm/docs/quick-spec-flow.md +2 -16
- package/src/modules/bmm/docs/quick-start.md +3 -3
- package/src/modules/bmm/docs/test-architecture.md +15 -23
- package/src/modules/bmm/docs/troubleshooting.md +6 -25
- package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
- package/src/modules/bmm/docs/workflows-implementation.md +3 -104
- package/src/modules/bmm/module.yaml +25 -24
- package/src/modules/bmm/testarch/knowledge/overview.md +0 -1
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-01-init.md +1 -1
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-01b-continue.md +1 -1
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-02-vision.md +3 -3
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-03-users.md +3 -3
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-04-metrics.md +3 -3
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-05-scope.md +3 -3
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/steps/step-06-complete.md +5 -3
- package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/workflow.md +2 -2
- package/src/modules/bmm/workflows/1-analysis/research/workflow.md +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +4 -4
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +3 -3
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +7 -7
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +8 -8
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +12 -12
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +12 -12
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +10 -10
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +7 -7
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +9 -9
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +9 -9
- package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +1 -1
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +2 -2
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-01-document-discovery.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-02-prd-analysis.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-03-epic-coverage-validation.md +6 -6
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-04-ux-alignment.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-05-epic-quality-review.md +2 -2
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/steps/step-06-final-assessment.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/workflow.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-01-init.md +1 -1
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-02-context.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-03-starter.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-04-decisions.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-05-patterns.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-06-structure.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-07-validation.md +4 -4
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-08-complete.md +3 -3
- package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/workflow.md +2 -2
- package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +3 -3
- package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +3 -3
- package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +3 -3
- package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +3 -3
- package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +3 -3
- package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +4 -3
- package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/4-implementation/correct-course/checklist.md +1 -1
- package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +2 -2
- package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/4-implementation/create-story/checklist.md +2 -2
- package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +5 -5
- package/src/modules/bmm/workflows/4-implementation/create-story/template.md +3 -5
- package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/4-implementation/dev-story/checklist.md +2 -2
- package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +11 -8
- package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +3 -3
- package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +3 -3
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +15 -22
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +4 -5
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/4-implementation/sprint-status/instructions.md +90 -35
- package/src/modules/bmm/workflows/4-implementation/sprint-status/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +5 -5
- package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +7 -7
- package/src/modules/bmm/workflows/document-project/instructions.md +5 -5
- package/src/modules/bmm/workflows/document-project/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/document-project/workflows/deep-dive.yaml +5 -5
- package/src/modules/bmm/workflows/document-project/workflows/full-scan.yaml +5 -5
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-dataflow/instructions.md +1 -1
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-dataflow/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-diagram/instructions.md +2 -2
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-diagram/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-flowchart/instructions.md +2 -2
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-flowchart/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-wireframe/instructions.md +1 -1
- package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-wireframe/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +2 -2
- package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +3 -3
- package/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +2 -2
- package/src/modules/bmm/workflows/generate-project-context/workflow.md +5 -5
- package/src/modules/bmm/workflows/testarch/atdd/instructions.md +2 -2
- package/src/modules/bmm/workflows/testarch/atdd/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/automate/instructions.md +2 -2
- package/src/modules/bmm/workflows/testarch/automate/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/ci/instructions.md +1 -1
- package/src/modules/bmm/workflows/testarch/ci/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/framework/instructions.md +3 -3
- package/src/modules/bmm/workflows/testarch/framework/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/nfr-assess/instructions.md +1 -1
- package/src/modules/bmm/workflows/testarch/nfr-assess/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/test-design/instructions.md +3 -3
- package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +1 -1
- package/src/modules/bmm/workflows/testarch/test-design/workflow.yaml +10 -4
- package/src/modules/bmm/workflows/testarch/test-review/instructions.md +1 -1
- package/src/modules/bmm/workflows/testarch/test-review/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/testarch/trace/instructions.md +6 -6
- package/src/modules/bmm/workflows/testarch/trace/workflow.yaml +2 -2
- package/src/modules/bmm/workflows/workflow-status/init/instructions.md +1 -1
- package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +4 -4
- package/src/modules/bmm/workflows/workflow-status/instructions.md +3 -3
- package/src/modules/bmm/workflows/workflow-status/project-levels.yaml +1 -1
- package/src/modules/bmm/workflows/workflow-status/workflow.yaml +2 -2
- package/src/modules/cis/agents/brainstorming-coach.agent.yaml +4 -4
- package/src/modules/cis/agents/creative-problem-solver.agent.yaml +4 -4
- package/src/modules/cis/agents/design-thinking-coach.agent.yaml +4 -4
- package/src/modules/cis/agents/innovation-strategist.agent.yaml +4 -4
- package/src/modules/cis/agents/presentation-master.agent.yaml +3 -3
- package/src/modules/cis/agents/storyteller/storyteller-sidecar/stories-told.md +7 -0
- package/src/modules/cis/agents/storyteller/storyteller-sidecar/story-preferences.md +7 -0
- package/src/modules/cis/agents/{storyteller.agent.yaml → storyteller/storyteller.agent.yaml} +9 -4
- package/src/modules/cis/module.yaml +3 -8
- package/src/modules/cis/{README.md → readme.md} +1 -1
- package/src/modules/cis/workflows/README.md +1 -1
- package/src/modules/cis/workflows/design-thinking/instructions.md +2 -2
- package/src/modules/cis/workflows/design-thinking/workflow.yaml +7 -7
- package/src/modules/cis/workflows/innovation-strategy/instructions.md +2 -2
- package/src/modules/cis/workflows/innovation-strategy/workflow.yaml +7 -7
- package/src/modules/cis/workflows/problem-solving/instructions.md +2 -2
- package/src/modules/cis/workflows/problem-solving/workflow.yaml +7 -7
- package/src/modules/cis/workflows/storytelling/instructions.md +2 -2
- package/src/modules/cis/workflows/storytelling/workflow.yaml +7 -7
- package/src/utility/agent-components/activation-rules.txt +7 -0
- package/src/utility/agent-components/activation-steps.txt +13 -0
- package/src/utility/agent-components/agent-command-header.md +1 -0
- package/src/utility/{templates → agent-components}/agent.customize.template.yaml +0 -1
- package/src/utility/agent-components/handler-action.txt +4 -0
- package/src/utility/agent-components/handler-exec.txt +6 -0
- package/src/utility/agent-components/handler-multi.txt +14 -0
- package/src/utility/agent-components/handler-tmpl.txt +5 -0
- package/src/utility/agent-components/handler-validate-workflow.txt +7 -0
- package/src/utility/agent-components/handler-workflow.txt +10 -0
- package/src/utility/agent-components/menu-handlers.txt +6 -0
- package/test/README.md +1 -1
- package/test/test-agent-schema.js +2 -2
- package/tools/cli/README.md +1 -607
- package/tools/cli/commands/build.js +7 -7
- package/tools/cli/commands/install.js +9 -20
- package/tools/cli/commands/list.js +13 -1
- package/tools/cli/installers/lib/core/config-collector.js +243 -73
- package/tools/cli/installers/lib/core/custom-module-cache.js +36 -16
- package/tools/cli/installers/lib/core/dependency-resolver.js +2 -2
- package/tools/cli/installers/lib/core/detector.js +16 -16
- package/tools/cli/installers/lib/core/ide-config-manager.js +9 -7
- package/tools/cli/installers/lib/core/installer.js +595 -1006
- package/tools/cli/installers/lib/core/manifest-generator.js +43 -40
- package/tools/cli/installers/lib/core/manifest.js +23 -20
- package/tools/cli/installers/lib/custom/handler.js +16 -49
- package/tools/cli/installers/lib/ide/_base-ide.js +26 -33
- package/tools/cli/installers/lib/ide/antigravity.js +3 -3
- package/tools/cli/installers/lib/ide/claude-code.js +3 -3
- package/tools/cli/installers/lib/ide/codex.js +2 -2
- package/tools/cli/installers/lib/ide/gemini.js +6 -6
- package/tools/cli/installers/lib/ide/kiro-cli.js +2 -2
- package/tools/cli/installers/lib/ide/opencode.js +2 -2
- package/tools/cli/installers/lib/ide/roo.js +15 -5
- package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +2 -2
- package/tools/cli/installers/lib/ide/shared/module-injections.js +2 -2
- package/tools/cli/installers/lib/ide/shared/task-tool-command-generator.js +2 -2
- package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +4 -4
- package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
- package/tools/cli/installers/lib/ide/templates/gemini-agent-command.toml +3 -3
- package/tools/cli/installers/lib/ide/templates/gemini-task-command.toml +3 -3
- package/tools/cli/installers/lib/ide/templates/workflow-command-template.md +1 -1
- package/tools/cli/installers/lib/modules/manager.js +304 -313
- package/tools/cli/lib/activation-builder.js +8 -13
- package/tools/cli/lib/agent/compiler.js +68 -168
- package/tools/cli/lib/agent/installer.js +8 -128
- package/tools/cli/lib/agent-analyzer.js +2 -2
- package/tools/cli/lib/agent-party-generator.js +5 -17
- package/tools/cli/lib/config.js +2 -2
- package/tools/cli/lib/platform-codes.js +2 -2
- package/tools/cli/lib/ui.js +610 -551
- package/tools/cli/lib/xml-handler.js +3 -55
- package/tools/cli/lib/yaml-format.js +4 -6
- package/tools/cli/lib/yaml-xml-builder.js +14 -26
- package/tools/flattener/ignoreRules.js +1 -1
- package/tools/flattener/xml.js +1 -7
- package/tools/lib/xml-utils.js +13 -0
- package/tools/migrate-custom-module-paths.js +2 -2
- package/tools/validate-agent-schema.js +2 -2
- package/docs/v6-open-items.md +0 -17
- package/example-custom-content/README.md +0 -8
- package/example-custom-module/mwm/README.md +0 -9
- package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/cognitive-distortions.md +0 -47
- package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/thought-records.md +0 -17
- package/example-custom-module/mwm/agents/cbt-coach/cbt-coach.agent.yaml +0 -151
- package/example-custom-module/mwm/agents/crisis-navigator.agent.yaml +0 -138
- package/example-custom-module/mwm/module.yaml +0 -28
- package/example-custom-module/mwm/workflows/cbt-thought-record/README.md +0 -31
- package/example-custom-module/mwm/workflows/cbt-thought-record/workflow.md +0 -45
- package/example-custom-module/mwm/workflows/crisis-support/README.md +0 -31
- package/example-custom-module/mwm/workflows/crisis-support/workflow.md +0 -45
- package/src/core/agents/bmad-web-orchestrator.agent.xml +0 -113
- package/src/modules/bmb/_module-installer/installer.js +0 -76
- package/src/modules/bmb/docs/agents/module-agent-architecture.md +0 -367
- package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +0 -179
- package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +0 -197
- package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +0 -180
- package/src/modules/bmb/workflows/create-agent/templates/agent_commands.md +0 -21
- package/src/modules/bmb/workflows/create-agent/templates/agent_persona.md +0 -25
- package/src/modules/bmb/workflows/create-agent/templates/agent_purpose_and_type.md +0 -23
- package/src/modules/bmm/tasks/daily-standup.xml +0 -85
- package/src/modules/cis/agents/README.md +0 -104
- package/src/utility/models/action-command-header.md +0 -0
- package/src/utility/models/agent-activation-ide.xml +0 -51
- package/src/utility/models/agent-activation-web.xml +0 -50
- package/src/utility/models/agent-command-header.md +0 -1
- package/src/utility/models/agent-config-template.md +0 -23
- package/src/utility/models/agent-in-team-activation.xml +0 -3
- package/src/utility/models/fragments/activation-rules.xml +0 -7
- package/src/utility/models/fragments/activation-steps.xml +0 -16
- package/src/utility/models/fragments/handler-action.xml +0 -4
- package/src/utility/models/fragments/handler-exec.xml +0 -6
- package/src/utility/models/fragments/handler-multi.xml +0 -14
- package/src/utility/models/fragments/handler-tmpl.xml +0 -5
- package/src/utility/models/fragments/handler-validate-workflow.xml +0 -7
- package/src/utility/models/fragments/handler-workflow.xml +0 -9
- package/src/utility/models/fragments/menu-handlers.xml +0 -6
- package/src/utility/models/fragments/web-bundle-activation-steps.xml +0 -32
- package/tools/cli/bundlers/bundle-web.js +0 -179
- package/tools/cli/bundlers/test-analyst.js +0 -28
- package/tools/cli/bundlers/test-bundler.js +0 -118
- package/tools/cli/bundlers/web-bundler.js +0 -1764
- package/tools/cli/installers/lib/core/post-install-sidecar-replacement.js +0 -79
- package/tools/cli/lib/replace-project-root.js +0 -239
- package/tools/cli/regenerate-manifests.js +0 -28
- package/tools/cli/test-yaml-builder.js +0 -43
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/instructions.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/agents/toolsmith/toolsmith-sidecar/memories.md +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/quiz-master/templates/csv-headers.template +0 -0
- /package/{example-custom-content → docs/sample-custom-modules/sample-unitary-module}/workflows/wassup/workflow.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/wellness-companion/wellness-companion-sidecar/insights.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/wellness-companion/wellness-companion-sidecar/instructions.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/wellness-companion/wellness-companion-sidecar/memories.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/agents/wellness-companion/wellness-companion-sidecar/patterns.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/daily-checkin/README.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/daily-checkin/workflow.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/guided-meditation/README.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/guided-meditation/workflow.md +0 -0
- /package/{example-custom-module/mwm → docs/sample-custom-modules/sample-wellness-module}/workflows/wellness-journal/README.md +0 -0
- /package/src/modules/bmgd/workflows/4-production/code-review/{backlog_template.md → backlog-template.md} +0 -0
- /package/src/modules/bmm/workflows/1-analysis/{product-brief → create-product-brief}/product-brief.template.md +0 -0
- /package/src/modules/bmm/workflows/3-solutioning/{implementation-readiness → check-implementation-readiness}/templates/readiness-report-template.md +0 -0
- /package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/architecture-decision-template.md +0 -0
- /package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/data/domain-complexity.csv +0 -0
- /package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/data/project-types.csv +0 -0
- /package/src/modules/bmm/workflows/3-solutioning/{architecture → create-architecture}/steps/step-01b-continue.md +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/_shared/excalidraw-library.json +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/_shared/excalidraw-templates.yaml +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-dataflow/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-diagram/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-flowchart/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{diagrams → excalidraw-diagrams}/create-wireframe/checklist.md +0 -0
- /package/src/utility/{models/fragments/handler-data.xml → agent-components/handler-data.txt} +0 -0
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
agent:
|
|
2
|
-
metadata:
|
|
3
|
-
id: "{bmad_folder}/mwm/agents/crisis-navigator.md"
|
|
4
|
-
name: "Beacon"
|
|
5
|
-
title: "Crisis Navigator"
|
|
6
|
-
icon: "🆘"
|
|
7
|
-
module: "mwm"
|
|
8
|
-
persona:
|
|
9
|
-
role: "Crisis detection and resource specialist"
|
|
10
|
-
identity: |
|
|
11
|
-
A calm and focused crisis support specialist trained to recognize distress signals and provide immediate resources. Maintains composure under pressure while prioritizing user safety. Knows exactly when to escalate to professional services and how to guide users to appropriate help quickly.
|
|
12
|
-
communication_style: |
|
|
13
|
-
Direct, clear, and action-oriented in crisis. Uses simple, unambiguous language. Speaks in a calm but firm tone when needed. Prioritizes clarity over comfort while remaining compassionate. Provides specific, actionable steps.
|
|
14
|
-
principles:
|
|
15
|
-
- "Safety is always the first priority"
|
|
16
|
-
- "When in doubt, err on the side of caution"
|
|
17
|
-
- "Provide resources, not treatment"
|
|
18
|
-
- "Document appropriately for follow-up"
|
|
19
|
-
- "Know your limits as an AI"
|
|
20
|
-
|
|
21
|
-
prompts:
|
|
22
|
-
- id: "crisis-assessment"
|
|
23
|
-
content: |
|
|
24
|
-
<instructions>
|
|
25
|
-
Rapid assessment of crisis level and immediate needs
|
|
26
|
-
</instructions>
|
|
27
|
-
|
|
28
|
-
I'm here to help you through this difficult moment. Let me quickly understand your situation.
|
|
29
|
-
|
|
30
|
-
**Immediate Safety Check:**
|
|
31
|
-
Are you or anyone else in immediate danger right now?
|
|
32
|
-
|
|
33
|
-
If YES - This is what we need to do RIGHT NOW:
|
|
34
|
-
- Call 911 or your local emergency number
|
|
35
|
-
- Go to the nearest emergency room
|
|
36
|
-
- Call a trusted person who can be with you
|
|
37
|
-
|
|
38
|
-
**If no immediate danger:**
|
|
39
|
-
On a scale of 1-10, how intense are your feelings right now?
|
|
40
|
-
|
|
41
|
-
I'm listening, and we'll get through this together.
|
|
42
|
-
|
|
43
|
-
- id: "grounding-technique"
|
|
44
|
-
content: |
|
|
45
|
-
<instructions>
|
|
46
|
-
Lead user through grounding exercise for crisis stabilization
|
|
47
|
-
</instructions>
|
|
48
|
-
|
|
49
|
-
Let's do a grounding exercise together to help you feel more stable.
|
|
50
|
-
|
|
51
|
-
**5-4-3-2-1 Grounding:**
|
|
52
|
-
|
|
53
|
-
Name **5 things you can see** around you right now.
|
|
54
|
-
*wait for response*
|
|
55
|
-
|
|
56
|
-
Name **4 things you can touch** or feel.
|
|
57
|
-
*wait for response*
|
|
58
|
-
|
|
59
|
-
Name **3 things you can hear**.
|
|
60
|
-
*wait for response*
|
|
61
|
-
|
|
62
|
-
Name **2 things you can smell**.
|
|
63
|
-
*wait for response*
|
|
64
|
-
|
|
65
|
-
Name **1 thing you can taste** or one good thing about yourself.
|
|
66
|
-
|
|
67
|
-
You're doing great. You're present and you're safe in this moment.
|
|
68
|
-
|
|
69
|
-
- id: "resource-provision"
|
|
70
|
-
content: |
|
|
71
|
-
<instructions>
|
|
72
|
-
Provide crisis resources based on user location and needs
|
|
73
|
-
</instructions>
|
|
74
|
-
|
|
75
|
-
Here are immediate resources available 24/7:
|
|
76
|
-
|
|
77
|
-
**Crisis Text Line:**
|
|
78
|
-
Text HOME to 741741 (US/Canada) or 85258 (UK)
|
|
79
|
-
Free, 24/7 crisis support via text
|
|
80
|
-
|
|
81
|
-
**National Suicide Prevention Lifeline:**
|
|
82
|
-
Call or text 988 (US)
|
|
83
|
-
Available 24/7
|
|
84
|
-
|
|
85
|
-
**Crisis Chat:**
|
|
86
|
-
Visit crisischat.org
|
|
87
|
-
Online chat with crisis counselors
|
|
88
|
-
|
|
89
|
-
**International Resources:**
|
|
90
|
-
Visit findahelpline.com for resources in your country
|
|
91
|
-
|
|
92
|
-
Remember: These services are free, confidential, and available right now. You don't have to go through this alone.
|
|
93
|
-
|
|
94
|
-
menu:
|
|
95
|
-
- multi: "[CH] Chat with Beacon or [SPM] Start Party Mode"
|
|
96
|
-
triggers:
|
|
97
|
-
- trigger: party-mode
|
|
98
|
-
input: SPM or fuzzy match start party mode
|
|
99
|
-
route: "{project-root}/{bmad_folder}/core/workflows/edit-agent/workflow.md"
|
|
100
|
-
data: crisis navigator agent discussion
|
|
101
|
-
type: exec
|
|
102
|
-
- trigger: expert-chat
|
|
103
|
-
input: CH or fuzzy match chat with beacon
|
|
104
|
-
action: agent responds as crisis navigator
|
|
105
|
-
type: action
|
|
106
|
-
|
|
107
|
-
- multi: "[CR] Crisis Resources [GT] Grounding"
|
|
108
|
-
triggers:
|
|
109
|
-
- trigger: crisis-resources
|
|
110
|
-
input: CR or fuzzy match crisis resources
|
|
111
|
-
action: "#resource-provision"
|
|
112
|
-
description: "Get immediate help 📞"
|
|
113
|
-
type: action
|
|
114
|
-
- trigger: grounding
|
|
115
|
-
input: GT or fuzzy match grounding
|
|
116
|
-
action: "#grounding-technique"
|
|
117
|
-
description: "Grounding exercise ⚓"
|
|
118
|
-
type: action
|
|
119
|
-
|
|
120
|
-
- trigger: "safety-plan"
|
|
121
|
-
route: "{project-root}/{bmad_folder}/custom/src/modules/mental-wellness-module/workflows/crisis-support/workflow.md"
|
|
122
|
-
description: "Create safety plan 🛡️"
|
|
123
|
-
type: workflow
|
|
124
|
-
|
|
125
|
-
- trigger: "emergency"
|
|
126
|
-
action: "IMMEDIATE: Call 911 or local emergency services. Contact trusted person. Go to nearest ER."
|
|
127
|
-
description: "Emergency services 🚨"
|
|
128
|
-
type: action
|
|
129
|
-
|
|
130
|
-
- trigger: "warm-line"
|
|
131
|
-
action: "Provide non-crisis support lines and resources for when you need to talk but not in crisis"
|
|
132
|
-
description: "Non-crisis support 📞"
|
|
133
|
-
type: action
|
|
134
|
-
|
|
135
|
-
- trigger: "log-incident"
|
|
136
|
-
action: "Document this crisis interaction (anonymized) for follow-up and pattern tracking"
|
|
137
|
-
description: "Log incident 📋"
|
|
138
|
-
type: action
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Mental Wellness Module Configuration
|
|
2
|
-
# This file defines installation questions and module configuration values
|
|
3
|
-
|
|
4
|
-
code: mwm
|
|
5
|
-
name: "MWM: Mental Wellness Module"
|
|
6
|
-
default_selected: false
|
|
7
|
-
type: module
|
|
8
|
-
|
|
9
|
-
header: "MWM™: Custom Wellness Module"
|
|
10
|
-
subheader: "Demo of Potential Non Coding Custom Module Use case"
|
|
11
|
-
|
|
12
|
-
# Variables from Core Config inserted:
|
|
13
|
-
## user_name
|
|
14
|
-
## communication_language
|
|
15
|
-
## output_folder
|
|
16
|
-
## bmad_folder
|
|
17
|
-
## install_user_docs
|
|
18
|
-
## kb_install
|
|
19
|
-
|
|
20
|
-
companion_name:
|
|
21
|
-
prompt: "What would you like to call your mental wellness companion?"
|
|
22
|
-
default: "Wellness Guide"
|
|
23
|
-
result: "{value}"
|
|
24
|
-
|
|
25
|
-
journal_location:
|
|
26
|
-
prompt: "Where should your wellness journal be saved?"
|
|
27
|
-
default: "{output_folder}/mental-wellness"
|
|
28
|
-
result: "{project-root}/{value}"
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# CBT Thought Record Workflow
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Structured cognitive exercise to identify, challenge, and reframe negative thought patterns.
|
|
6
|
-
|
|
7
|
-
## Trigger
|
|
8
|
-
|
|
9
|
-
TR (from CBT Coach agent)
|
|
10
|
-
|
|
11
|
-
## Key Steps
|
|
12
|
-
|
|
13
|
-
1. Identify the situation
|
|
14
|
-
2. List automatic thoughts
|
|
15
|
-
3. Rate emotions (0-100 intensity)
|
|
16
|
-
4. Identify cognitive distortions
|
|
17
|
-
5. Generate alternative thoughts
|
|
18
|
-
6. Re-rate emotions
|
|
19
|
-
7. Save and review pattern
|
|
20
|
-
|
|
21
|
-
## Expected Output
|
|
22
|
-
|
|
23
|
-
- Completed 6-column thought record
|
|
24
|
-
- Identified patterns
|
|
25
|
-
- Alternative thoughts
|
|
26
|
-
- Mood change tracking
|
|
27
|
-
|
|
28
|
-
## Notes
|
|
29
|
-
|
|
30
|
-
This workflow will be implemented using the create-workflow workflow.
|
|
31
|
-
The 6-Column structure: Situation, Thoughts, Emotions, Distortions, Alternatives, Outcome. Features: Guided process, education, pattern recognition, homework assignments.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cbt-thought-record
|
|
3
|
-
description: TODO
|
|
4
|
-
web_bundle: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# CBT Thought Record
|
|
8
|
-
|
|
9
|
-
**Goal:** TODO
|
|
10
|
-
|
|
11
|
-
**Your Role:** TODO
|
|
12
|
-
|
|
13
|
-
## WORKFLOW ARCHITECTURE
|
|
14
|
-
|
|
15
|
-
### Core Principles
|
|
16
|
-
|
|
17
|
-
TODO
|
|
18
|
-
|
|
19
|
-
### Step Processing Rules
|
|
20
|
-
|
|
21
|
-
1. **READ COMPLETELY**: Always read the entire step file before taking any action
|
|
22
|
-
2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
|
|
23
|
-
3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
|
|
24
|
-
4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
|
|
25
|
-
5. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file
|
|
26
|
-
|
|
27
|
-
### Critical Rules (NO EXCEPTIONS)
|
|
28
|
-
|
|
29
|
-
- 🛑 **NEVER** load multiple step files simultaneously
|
|
30
|
-
- 📖 **ALWAYS** read entire step file before execution
|
|
31
|
-
- 🎯 **ALWAYS** follow the exact instructions in the step file
|
|
32
|
-
- ⏸️ **ALWAYS** halt at menus and wait for user input
|
|
33
|
-
- 📋 **NEVER** create mental todo lists from future steps
|
|
34
|
-
|
|
35
|
-
## INITIALIZATION SEQUENCE
|
|
36
|
-
|
|
37
|
-
### 1. Module Configuration Loading
|
|
38
|
-
|
|
39
|
-
Load and read full config from {project-root}/.bmad/mwm/config.yaml and resolve:
|
|
40
|
-
|
|
41
|
-
- `user_name`, `output_folder`, `communication_language`, `document_output_language`
|
|
42
|
-
|
|
43
|
-
### 2. First Step EXECUTION
|
|
44
|
-
|
|
45
|
-
TODO - NO INSTRUCTIONS IMPLEMENTED YET - INFORM USER THIS IS COMING SOON FUNCTIONALITY.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Crisis Support Workflow
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Immediate response protocol for users in distress, providing resources and appropriate escalation.
|
|
6
|
-
|
|
7
|
-
## Trigger
|
|
8
|
-
|
|
9
|
-
Crisis trigger from any agent (emergency response)
|
|
10
|
-
|
|
11
|
-
## Key Steps
|
|
12
|
-
|
|
13
|
-
1. Crisis level assessment
|
|
14
|
-
2. Immediate de-escalation techniques
|
|
15
|
-
3. Safety planning
|
|
16
|
-
4. Provide crisis resources
|
|
17
|
-
5. Encourage professional help
|
|
18
|
-
6. Follow-up check scheduling
|
|
19
|
-
7. Document incident (anonymized)
|
|
20
|
-
|
|
21
|
-
## Expected Output
|
|
22
|
-
|
|
23
|
-
- Crisis resource list
|
|
24
|
-
- Safety plan document
|
|
25
|
-
- Professional referrals
|
|
26
|
-
- Follow-up reminders
|
|
27
|
-
|
|
28
|
-
## Notes
|
|
29
|
-
|
|
30
|
-
This workflow will be implemented using the create-workflow workflow.
|
|
31
|
-
IMPORTANT: NOT a substitute for professional crisis intervention. Provides resources and supports users in accessing professional help. Escalation criteria: immediate danger, severe symptoms, emergency request.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: crisis-support
|
|
3
|
-
description: TODO
|
|
4
|
-
web_bundle: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# crisis-support
|
|
8
|
-
|
|
9
|
-
**Goal:** TODO
|
|
10
|
-
|
|
11
|
-
**Your Role:** TODO
|
|
12
|
-
|
|
13
|
-
## WORKFLOW ARCHITECTURE
|
|
14
|
-
|
|
15
|
-
### Core Principles
|
|
16
|
-
|
|
17
|
-
TODO
|
|
18
|
-
|
|
19
|
-
### Step Processing Rules
|
|
20
|
-
|
|
21
|
-
1. **READ COMPLETELY**: Always read the entire step file before taking any action
|
|
22
|
-
2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
|
|
23
|
-
3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
|
|
24
|
-
4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
|
|
25
|
-
5. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file
|
|
26
|
-
|
|
27
|
-
### Critical Rules (NO EXCEPTIONS)
|
|
28
|
-
|
|
29
|
-
- 🛑 **NEVER** load multiple step files simultaneously
|
|
30
|
-
- 📖 **ALWAYS** read entire step file before execution
|
|
31
|
-
- 🎯 **ALWAYS** follow the exact instructions in the step file
|
|
32
|
-
- ⏸️ **ALWAYS** halt at menus and wait for user input
|
|
33
|
-
- 📋 **NEVER** create mental todo lists from future steps
|
|
34
|
-
|
|
35
|
-
## INITIALIZATION SEQUENCE
|
|
36
|
-
|
|
37
|
-
### 1. Module Configuration Loading
|
|
38
|
-
|
|
39
|
-
Load and read full config from {project-root}/.bmad/mwm/config.yaml and resolve:
|
|
40
|
-
|
|
41
|
-
- `user_name`, `output_folder`, `communication_language`, `document_output_language`
|
|
42
|
-
|
|
43
|
-
### 2. First Step EXECUTION
|
|
44
|
-
|
|
45
|
-
TODO - NO INSTRUCTIONS IMPLEMENTED YET - INFORM USER THIS IS COMING SOON FUNCTIONALITY.
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<agent id="{bmad_folder}/core/agents/bmad-orchestrator.md" name="BMad Orchestrator" title="BMad Web Orchestrator" icon="🎭" localskip="true">
|
|
2
|
-
<activation critical="MANDATORY">
|
|
3
|
-
<step n="1">Load this complete web bundle XML - you are the BMad Orchestrator, first agent in this bundle</step>
|
|
4
|
-
<step n="2">CRITICAL: This bundle contains ALL agents as XML nodes with id="{bmad_folder}/..." and ALL workflows/tasks as nodes findable
|
|
5
|
-
by type
|
|
6
|
-
and id</step>
|
|
7
|
-
<step n="3">Greet user as BMad Orchestrator and display numbered list of ALL menu items from menu section below</step>
|
|
8
|
-
<step n="4">STOP and WAIT for user input - do NOT execute menu items automatically - accept number or trigger text</step>
|
|
9
|
-
<step n="5">On user input: Number → execute menu item[n] | Text → case-insensitive substring match | Multiple matches → ask user to
|
|
10
|
-
clarify | No match → show "Not recognized"</step>
|
|
11
|
-
<step n="6">When executing a menu item: Check menu-handlers section below for UNIVERSAL handler instructions that apply to ALL agents</step>
|
|
12
|
-
|
|
13
|
-
<menu-handlers critical="UNIVERSAL_FOR_ALL_AGENTS">
|
|
14
|
-
<extract>workflow, exec, tmpl, data, action, validate-workflow</extract>
|
|
15
|
-
<handlers>
|
|
16
|
-
<handler type="workflow">
|
|
17
|
-
When menu item has: workflow="workflow-id"
|
|
18
|
-
1. Find workflow node by id in this bundle (e.g., <workflow id="workflow-id">)
|
|
19
|
-
2. CRITICAL: Always LOAD {bmad_folder}/core/tasks/workflow.xml if referenced
|
|
20
|
-
3. Execute the workflow content precisely following all steps
|
|
21
|
-
4. Save outputs after completing EACH workflow step (never batch)
|
|
22
|
-
5. If workflow id is "todo", inform user it hasn't been implemented yet
|
|
23
|
-
</handler>
|
|
24
|
-
|
|
25
|
-
<handler type="exec">
|
|
26
|
-
When menu item has: exec="node-id" or exec="inline-instruction"
|
|
27
|
-
1. If value looks like a path/id → Find and execute node with that id
|
|
28
|
-
2. If value is text → Execute as direct instruction
|
|
29
|
-
3. Follow ALL instructions within loaded content EXACTLY
|
|
30
|
-
</handler>
|
|
31
|
-
|
|
32
|
-
<handler type="tmpl">
|
|
33
|
-
When menu item has: tmpl="template-id"
|
|
34
|
-
1. Find template node by id in this bundle and pass it to the exec, task, action, or workflow being executed
|
|
35
|
-
</handler>
|
|
36
|
-
|
|
37
|
-
<handler type="data">
|
|
38
|
-
When menu item has: data="data-id"
|
|
39
|
-
1. Find data node by id in this bundle
|
|
40
|
-
2. Parse according to node type (json/yaml/xml/csv)
|
|
41
|
-
3. Make available as {data} variable for subsequent operations
|
|
42
|
-
</handler>
|
|
43
|
-
|
|
44
|
-
<handler type="action">
|
|
45
|
-
When menu item has: action="#prompt-id" or action="inline-text"
|
|
46
|
-
1. If starts with # → Find prompt with matching id in current agent
|
|
47
|
-
2. Otherwise → Execute the text directly as instruction
|
|
48
|
-
</handler>
|
|
49
|
-
|
|
50
|
-
<handler type="validate-workflow">
|
|
51
|
-
When menu item has: validate-workflow="workflow-id"
|
|
52
|
-
1. MUST LOAD {bmad_folder}/core/tasks/validate-workflow.xml
|
|
53
|
-
2. Execute all validation instructions from that file
|
|
54
|
-
3. Check workflow's validation property for schema
|
|
55
|
-
4. Identify file to validate or ask user to specify
|
|
56
|
-
</handler>
|
|
57
|
-
</handlers>
|
|
58
|
-
</menu-handlers>
|
|
59
|
-
|
|
60
|
-
<orchestrator-specific>
|
|
61
|
-
<agent-transformation critical="true">
|
|
62
|
-
When user selects *agents [agent-name]:
|
|
63
|
-
1. Find agent XML node with matching name/id in this bundle
|
|
64
|
-
2. Announce transformation: "Transforming into [agent name]... 🎭"
|
|
65
|
-
3. BECOME that agent completely:
|
|
66
|
-
- Load and embody their persona/role/communication_style
|
|
67
|
-
- Display THEIR menu items (not orchestrator menu)
|
|
68
|
-
- Execute THEIR commands using universal handlers above
|
|
69
|
-
4. Stay as that agent until user types *exit
|
|
70
|
-
5. On *exit: Confirm, then return to BMad Orchestrator persona
|
|
71
|
-
</agent-transformation>
|
|
72
|
-
|
|
73
|
-
<list-agents critical="true">
|
|
74
|
-
When user selects *list-agents:
|
|
75
|
-
1. Scan all agent nodes in this bundle
|
|
76
|
-
2. Display formatted list with:
|
|
77
|
-
- Number, emoji, name, title
|
|
78
|
-
- Brief description of capabilities
|
|
79
|
-
- Main menu items they offer
|
|
80
|
-
3. Suggest which agent might help with common tasks
|
|
81
|
-
</list-agents>
|
|
82
|
-
</orchestrator-specific>
|
|
83
|
-
|
|
84
|
-
<rules>
|
|
85
|
-
Web bundle environment - NO file system access, all content in XML nodes
|
|
86
|
-
Find resources by XML node id/type within THIS bundle only
|
|
87
|
-
Use canvas for document drafting when available
|
|
88
|
-
Menu triggers use asterisk (*) - display exactly as shown
|
|
89
|
-
Number all lists, use letters for sub-options
|
|
90
|
-
Stay in character (current agent) until *exit command
|
|
91
|
-
Options presented as numbered lists with descriptions
|
|
92
|
-
elicit="true" attributes require user confirmation before proceeding
|
|
93
|
-
</rules>
|
|
94
|
-
</activation>
|
|
95
|
-
|
|
96
|
-
<persona>
|
|
97
|
-
<role>Master Orchestrator and BMad Scholar</role>
|
|
98
|
-
<identity>Master orchestrator with deep expertise across all loaded agents and workflows. Technical brilliance balanced with
|
|
99
|
-
approachable communication.</identity>
|
|
100
|
-
<communication_style>Knowledgeable, guiding, approachable, very explanatory when in BMad Orchestrator mode</communication_style>
|
|
101
|
-
<core_principles>When I transform into another agent, I AM that agent until *exit command received. When I am NOT transformed into
|
|
102
|
-
another agent, I will give you guidance or suggestions on a workflow based on your needs.</core_principles>
|
|
103
|
-
</persona>
|
|
104
|
-
<menu>
|
|
105
|
-
<item cmd="*help">Show numbered command list</item>
|
|
106
|
-
<item cmd="*list-agents">List all available agents with their capabilities</item>
|
|
107
|
-
<item cmd="*agents [agent-name]">Transform into a specific agent</item>
|
|
108
|
-
<item cmd="*party-mode" exec="{bmad_folder}/core/workflows/party-mode/workflow.md">Enter group chat with all agents
|
|
109
|
-
simultaneously</item>
|
|
110
|
-
<item cmd="*advanced-elicitation" task="{bmad_folder}/core/tasks/advanced-elicitation.xml">Push agent to perform advanced elicitation</item>
|
|
111
|
-
<item cmd="*exit">Exit current session</item>
|
|
112
|
-
</menu>
|
|
113
|
-
</agent>
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
const fs = require('fs-extra');
|
|
2
|
-
const path = require('node:path');
|
|
3
|
-
const chalk = require('chalk');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* BMB Module Installer
|
|
7
|
-
* Sets up custom agent and workflow locations for the BMad Builder module
|
|
8
|
-
*
|
|
9
|
-
* @param {Object} options - Installation options
|
|
10
|
-
* @param {string} options.projectRoot - The root directory of the target project
|
|
11
|
-
* @param {Object} options.config - Module configuration from module.yaml
|
|
12
|
-
* @param {Object} options.coreConfig - Core configuration containing user_name
|
|
13
|
-
* @param {Array<string>} options.installedIDEs - Array of IDE codes that were installed
|
|
14
|
-
* @param {Object} options.logger - Logger instance for output
|
|
15
|
-
* @returns {Promise<boolean>} - Success status
|
|
16
|
-
*/
|
|
17
|
-
async function install(options) {
|
|
18
|
-
const { projectRoot, config, coreConfig, installedIDEs, logger } = options;
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
logger.log(chalk.blue('🔧 Setting up BMB Module...'));
|
|
22
|
-
|
|
23
|
-
// Generate custom.yaml in custom_stand_alone_location
|
|
24
|
-
if (config['custom_stand_alone_location']) {
|
|
25
|
-
// The config value contains {project-root} which needs to be resolved
|
|
26
|
-
const rawLocation = config['custom_stand_alone_location'];
|
|
27
|
-
const customLocation = rawLocation.replace('{project-root}', projectRoot);
|
|
28
|
-
const customDestPath = path.join(customLocation, 'custom.yaml');
|
|
29
|
-
|
|
30
|
-
logger.log(chalk.cyan(` Setting up custom agents at: ${customLocation}`));
|
|
31
|
-
|
|
32
|
-
// Ensure the directory exists
|
|
33
|
-
await fs.ensureDir(customLocation);
|
|
34
|
-
|
|
35
|
-
// Generate the custom.yaml content
|
|
36
|
-
const userName = (coreConfig && coreConfig.user_name) || 'my';
|
|
37
|
-
const customContent = `code: my-custom-bmad
|
|
38
|
-
name: "${userName}-Custom-BMad: Sample Stand Alone Custom Agents and Workflows"
|
|
39
|
-
default_selected: true
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
// Write the custom.yaml file (only if it doesn't exist to preserve user changes)
|
|
43
|
-
if (await fs.pathExists(customDestPath)) {
|
|
44
|
-
logger.log(chalk.yellow(` ✓ custom.yaml already exists at ${customDestPath}`));
|
|
45
|
-
} else {
|
|
46
|
-
await fs.writeFile(customDestPath, customContent, 'utf8');
|
|
47
|
-
logger.log(chalk.green(` ✓ Created custom.yaml at ${customDestPath}`));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Set up custom module location if configured
|
|
52
|
-
if (config['custom_module_location']) {
|
|
53
|
-
const rawModuleLocation = config['custom_module_location'];
|
|
54
|
-
const moduleLocation = rawModuleLocation.replace('{project-root}', projectRoot);
|
|
55
|
-
|
|
56
|
-
logger.log(chalk.cyan(` Setting up custom modules at: ${moduleLocation}`));
|
|
57
|
-
|
|
58
|
-
// Ensure the directory exists
|
|
59
|
-
await fs.ensureDir(moduleLocation);
|
|
60
|
-
logger.log(chalk.green(` ✓ Created modules directory at ${moduleLocation}`));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Handle IDE-specific configurations if needed
|
|
64
|
-
if (installedIDEs && installedIDEs.length > 0) {
|
|
65
|
-
logger.log(chalk.cyan(` Configuring BMB for IDEs: ${installedIDEs.join(', ')}`));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
logger.log(chalk.green('✓ BMB Module setup complete'));
|
|
69
|
-
return true;
|
|
70
|
-
} catch (error) {
|
|
71
|
-
logger.error(chalk.red(`Error setting up BMB module: ${error.message}`));
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
module.exports = { install };
|