ma-agents 3.6.2 → 3.9.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/CONTRIBUTING.md +139 -0
- package/README.md +26 -11
- package/bin/cli.js +138 -37
- package/docs/deployment/vllm-nemotron.md +4 -2
- package/lib/.bmad-extension-plugin.build-1264-1777348888201/.claude-plugin/marketplace.json +109 -0
- package/lib/{bmad-extension → .bmad-extension-plugin.build-1264-1777348888201/skills}/module-help.csv +5 -5
- package/lib/.bmad-extension-plugin.build-1264-1777348888201/skills/module.yaml +20 -0
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/.claude-plugin/marketplace.json +109 -0
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/skills/module-help.csv +62 -0
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/skills/module.yaml +20 -0
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/.claude-plugin/marketplace.json +109 -0
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/skills/module-help.csv +62 -0
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/skills/module.yaml +20 -0
- package/lib/agents.js +32 -10
- package/lib/bmad-cache/bmb/.claude-plugin/marketplace.json +4 -11
- package/lib/bmad-cache/bmb/README.md +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/index +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-6ecd9fc6445b1281449c5ec49a6c5794708e662e.idx +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/{pack-554778ad4e7254827618ebd2497c3f4bce9054a4.pack → pack-6ecd9fc6445b1281449c5ec49a6c5794708e662e.pack} +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-6ecd9fc6445b1281449c5ec49a6c5794708e662e.rev +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/packed-refs +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/refs/tags/v1.7.0 +1 -0
- package/lib/bmad-cache/bmb/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/bmb/package-lock.json +2 -2
- package/lib/bmad-cache/bmb/package.json +2 -7
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/assets/customize-template.toml +62 -0
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/assets/sample-customize-analyst.toml +87 -0
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/assets/customize-template.toml +56 -0
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/assets/sample-customize-product-brief.toml +51 -0
- package/lib/bmad-cache/bmb/tools/validate-doc-links.cjs +6 -1
- package/lib/bmad-cache/bmb/website/astro.config.mjs +5 -1
- package/lib/bmad-cache/cache-manifest.json +13 -11
- package/lib/bmad-cache/cis/.claude-plugin/marketplace.json +1 -1
- package/lib/bmad-cache/cis/README.md +1 -1
- package/lib/bmad-cache/cis/_git_preserved/index +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-cad8ff313ea5db860ddcc7780f03917dcba1da8d.idx +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/{pack-39c4fd66f4e0eb3f4d93665318df04cd356b0297.pack → pack-cad8ff313ea5db860ddcc7780f03917dcba1da8d.pack} +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-cad8ff313ea5db860ddcc7780f03917dcba1da8d.rev +0 -0
- package/lib/bmad-cache/cis/_git_preserved/packed-refs +1 -1
- package/lib/bmad-cache/cis/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/cis/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/cis/package.json +1 -1
- package/lib/bmad-cache/cis/src/module.yaml +49 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-brainstorming-coach/customize.toml +38 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-creative-problem-solver/customize.toml +38 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-design-thinking-coach/customize.toml +39 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-innovation-strategist/customize.toml +38 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-presentation-master/customize.toml +73 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-storyteller/customize.toml +60 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-design-thinking/customize.toml +41 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-innovation-strategy/customize.toml +41 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-problem-solving/customize.toml +42 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-storytelling/customize.toml +41 -0
- package/lib/bmad-cache/cis/tools/build-docs.mjs +8 -0
- package/lib/bmad-cache/cis/website/astro.config.mjs +34 -4
- package/lib/bmad-cache/cis/website/src/content/config.ts +2 -1
- package/lib/bmad-cache/cis/website/src/content/i18n/zh-CN.json +28 -0
- package/lib/bmad-cache/cis/website/src/lib/locales.mjs +27 -0
- package/lib/bmad-cache/gds/.claude-plugin/marketplace.json +7 -6
- package/lib/bmad-cache/gds/README.md +5 -3
- package/lib/bmad-cache/gds/_git_preserved/index +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-c1322f7c8531a89dc4f3f34c4955d194f286c1e6.idx +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/{pack-ac967149d58fba215d07238ad8881bdbdad5c9c3.pack → pack-c1322f7c8531a89dc4f3f34c4955d194f286c1e6.pack} +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-c1322f7c8531a89dc4f3f34c4955d194f286c1e6.rev +0 -0
- package/lib/bmad-cache/gds/_git_preserved/packed-refs +1 -1
- package/lib/bmad-cache/gds/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/gds/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/gds/package.json +1 -1
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/customize.toml +57 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/customize.toml +59 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/customize.toml +129 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/customize.toml +60 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/customize.toml +65 -0
- package/lib/bmad-cache/gds/src/module-help.csv +4 -4
- package/lib/bmad-cache/gds/src/module.yaml +43 -1
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/research/gds-domain-research/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-prd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-ux-design/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-edit-gdd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-edit-prd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-gdd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-gdd/data/genre-complexity.csv +26 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/data/domain-complexity.csv +15 -0
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/data/project-types.csv +11 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-create-story/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-dev-story/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/customize.toml +41 -0
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/customize.toml +41 -0
- package/lib/bmad-cache/tea/.claude-plugin/marketplace.json +1 -1
- package/lib/bmad-cache/tea/.github/CODE_OF_CONDUCT.md +128 -0
- package/lib/bmad-cache/tea/.github/FUNDING.yaml +15 -0
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/config.yaml +11 -0
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/feature_request.md +70 -0
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/issue.md +61 -0
- package/lib/bmad-cache/tea/.github/workflows/docs.yaml +66 -0
- package/lib/bmad-cache/tea/.github/workflows/manual-release.yaml +216 -0
- package/lib/bmad-cache/tea/.github/workflows/quality.yaml +117 -0
- package/lib/bmad-cache/tea/.vscode/settings.json +47 -0
- package/lib/bmad-cache/tea/README.md +63 -55
- package/lib/bmad-cache/tea/_git_preserved/index +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-9b16db8eb5022c18cef1f0a27d63b6e0f4bc2b2a.idx +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/{pack-e75385cd52b693dbb8a3b2afb50058952543b3a2.pack → pack-9b16db8eb5022c18cef1f0a27d63b6e0f4bc2b2a.pack} +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-9b16db8eb5022c18cef1f0a27d63b6e0f4bc2b2a.rev +0 -0
- package/lib/bmad-cache/tea/_git_preserved/packed-refs +1 -1
- package/lib/bmad-cache/tea/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/tea/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/tea/docs/explanation/engagement-models.md +1 -1
- package/lib/bmad-cache/tea/docs/explanation/tea-overview.md +1 -1
- package/lib/bmad-cache/tea/docs/glossary/index.md +1 -1
- package/lib/bmad-cache/tea/docs/how-to/customization/extend-tea-with-custom-workflows.md +29 -0
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-trace.md +27 -20
- package/lib/bmad-cache/tea/docs/how-to/workflows/teach-me-testing.md +2 -2
- package/lib/bmad-cache/tea/docs/reference/commands.md +3 -3
- package/lib/bmad-cache/tea/docs/reference/troubleshooting.md +36 -0
- package/lib/bmad-cache/tea/docs/tutorials/learn-testing-tea-academy.md +1 -1
- package/lib/bmad-cache/tea/package-lock.json +2 -2
- package/lib/bmad-cache/tea/package.json +3 -3
- package/lib/bmad-cache/tea/src/agents/bmad-tea/SKILL.md +54 -44
- package/lib/bmad-cache/tea/src/agents/bmad-tea/customize.toml +104 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/contract-testing.md +32 -15
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-overview.md +15 -12
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-zod-to-pact.md +262 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/tea-index.csv +13 -4
- package/lib/bmad-cache/tea/src/module.yaml +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/README.md +5 -3
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/SKILL.md +124 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/checklist.md +3 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/instructions.md +7 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-01-init.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-01b-continue.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-02-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-01.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-02.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-03.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-04.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-05.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-06.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-07.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-05-completion.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-e/step-e-01-assess-workflow.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-e/step-e-02-apply-edits.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-v/step-v-01-validate.md +12 -3
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/contract-testing.md +32 -15
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-overview.md +15 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-zod-to-pact.md +262 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/tea-index.csv +13 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-01-preflight-and-context.md +3 -3
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-02-generation-mode.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-03-test-strategy.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04-generate-tests.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04a-subagent-api-failing.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04c-aggregate.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-05-validate-and-complete.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-01-preflight-and-context.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-02-identify-targets.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03-generate-tests.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03a-subagent-api.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03c-aggregate.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-04-validate-and-summarize.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-01-preflight.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-02-generate-pipeline.md +15 -7
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-03-configure-quality-gates.md +7 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-04-validate-and-summary.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-01-preflight.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-02-select-framework.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-03-scaffold-framework.md +11 -7
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-04-docs-and-scripts.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-05-validate-and-summary.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-01-load-context.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-02-define-thresholds.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-03-gather-evidence.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04-evaluate-and-score.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04e-aggregate-nfr.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-05-generate-report.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/SKILL.md +82 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-01-detect-mode.md +7 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-01b-resume.md +29 -15
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-02-load-context.md +7 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-03-risk-and-testability.md +7 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-04-coverage-plan.md +7 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-05-generate-output.md +14 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-architecture-template.md +3 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-qa-template.md +3 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-template.md +3 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/SKILL.md +80 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/instructions.md +2 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-01-load-context.md +3 -3
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-02-discover-tests.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03-quality-evaluation.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03a-subagent-determinism.md +43 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03f-aggregate-scores.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-04-generate-report.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/SKILL.md +82 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/checklist.md +42 -18
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/customize.toml +40 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/instructions.md +6 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/contract-testing.md +18 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-broker-webhooks.md +237 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-consumer-framework-setup.md +134 -12
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-mcp.md +1 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-consumer-helpers.md +111 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-provider-verifier.md +83 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-module-setup.md +122 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-providers.md +155 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-risk-guidance.md +114 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-template-matchers.md +160 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-testing-fundamentals.md +42 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-timeout-error.md +130 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-waiting-querying.md +167 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/tea-index.csv +12 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-01-load-context.md +74 -13
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-01b-resume.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-02-discover-tests.md +24 -4
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-03-map-criteria.md +15 -11
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-04-analyze-gaps.md +210 -3
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-05-gate-decision.md +477 -62
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-e/step-01-assess.md +1 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-e/step-02-apply-edit.md +8 -0
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-v/step-01-validate.md +9 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/trace-template.md +10 -2
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/workflow-plan.md +14 -11
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/workflow.yaml +24 -0
- package/lib/bmad-cache/tea/test/test-installation-components.js +210 -66
- package/lib/bmad-cache/tea/test/test-knowledge-base.js +6 -1
- package/lib/bmad-cache/tea/test/test-release-metadata.js +71 -0
- package/lib/bmad-cache/tea/tools/validate-agent-schema.js +73 -0
- package/lib/bmad-customize/bmm-qa.customize.yaml +1 -1
- package/lib/bmad-extension/.claude-plugin/marketplace.json.template +117 -0
- package/lib/bmad-extension/skills/add-sprint/SKILL.md +39 -0
- package/lib/bmad-extension/skills/add-to-sprint/SKILL.md +39 -0
- package/lib/bmad-extension/skills/bmad-dev-story/workflow.md +39 -0
- package/lib/bmad-extension/skills/bmad-sprint-planning/workflow.md +41 -0
- package/lib/bmad-extension/skills/bmad-sprint-status/workflow.md +39 -0
- package/lib/bmad-extension/skills/cleanup-done/SKILL.md +39 -0
- package/lib/bmad-extension/skills/close-sprint/SKILL.md +39 -0
- package/lib/bmad-extension/skills/generate-backlog/SKILL.md +41 -0
- package/lib/bmad-extension/skills/ma-agent-cyber/.gitkeep +0 -0
- package/lib/bmad-extension/skills/ma-agent-cyber/SKILL.md +49 -0
- package/lib/bmad-extension/skills/ma-agent-cyber/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-extension/skills/ma-agent-devops/.gitkeep +0 -0
- package/lib/bmad-extension/skills/ma-agent-devops/SKILL.md +49 -0
- package/lib/bmad-extension/skills/ma-agent-devops/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-extension/skills/ma-agent-ml/.gitkeep +0 -0
- package/lib/bmad-extension/skills/ma-agent-ml/SKILL.md +59 -0
- package/lib/bmad-extension/skills/ma-agent-ml/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-extension/skills/ma-agent-sqa/.gitkeep +0 -0
- package/lib/bmad-extension/skills/ma-agent-sqa/SKILL.md +59 -0
- package/lib/bmad-extension/skills/ma-agent-sqa/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-extension/skills/ma-agent-sre/.gitkeep +0 -0
- package/lib/bmad-extension/skills/ma-agent-sre/SKILL.md +49 -0
- package/lib/bmad-extension/skills/ma-agent-sre/bmad-skill-manifest.yaml +11 -0
- package/lib/bmad-extension/skills/modify-sprint/SKILL.md +39 -0
- package/lib/bmad-extension/skills/module-help.csv +62 -0
- package/lib/bmad-extension/skills/module.yaml +20 -0
- package/lib/bmad-extension/skills/prioritize-backlog/SKILL.md +39 -0
- package/lib/bmad-extension/skills/remove-from-sprint/SKILL.md +39 -0
- package/lib/bmad-extension/skills/sprint-status-view/SKILL.md +39 -0
- package/lib/bmad-extension-plugin/.claude-plugin/marketplace.json +109 -0
- package/lib/bmad-extension-plugin/skills/add-sprint/SKILL.md +214 -0
- package/lib/bmad-extension-plugin/skills/add-sprint/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/add-to-sprint/SKILL.md +282 -0
- package/lib/bmad-extension-plugin/skills/add-to-sprint/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/bmad-dev-story/SKILL.md +6 -0
- package/lib/bmad-extension-plugin/skills/bmad-dev-story/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/bmad-dev-story/checklist.md +80 -0
- package/lib/bmad-extension-plugin/skills/bmad-dev-story/workflow.md +548 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/SKILL.md +6 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/checklist.md +74 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/sprint-status-template.yaml +89 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-planning/workflow.md +413 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-status/SKILL.md +6 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-status/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/bmad-sprint-status/workflow.md +473 -0
- package/lib/bmad-extension-plugin/skills/cleanup-done/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cleanup-done/SKILL.md +254 -0
- package/lib/bmad-extension-plugin/skills/cleanup-done/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/close-sprint/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/close-sprint/SKILL.md +418 -0
- package/lib/bmad-extension-plugin/skills/close-sprint/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/create-bug-story/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/create-bug-story/SKILL.md +195 -0
- package/lib/bmad-extension-plugin/skills/create-bug-story/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-generate-certs/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-generate-certs/SKILL.md +27 -0
- package/lib/bmad-extension-plugin/skills/cyber-generate-certs/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-immunity-estimation/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-immunity-estimation/SKILL.md +29 -0
- package/lib/bmad-extension-plugin/skills/cyber-immunity-estimation/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-security-audit/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-security-audit/SKILL.md +27 -0
- package/lib/bmad-extension-plugin/skills/cyber-security-audit/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-vault-secrets/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-vault-secrets/SKILL.md +28 -0
- package/lib/bmad-extension-plugin/skills/cyber-vault-secrets/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-docker-users/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-docker-users/SKILL.md +23 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-docker-users/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-image-signature/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-image-signature/SKILL.md +22 -0
- package/lib/bmad-extension-plugin/skills/cyber-verify-image-signature/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/cyber-vulnerability-scan/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/cyber-vulnerability-scan/SKILL.md +28 -0
- package/lib/bmad-extension-plugin/skills/cyber-vulnerability-scan/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/devops-configure-infrastructure/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/devops-configure-infrastructure/SKILL.md +27 -0
- package/lib/bmad-extension-plugin/skills/devops-configure-infrastructure/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/devops-disconnected-deployment/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/devops-disconnected-deployment/SKILL.md +27 -0
- package/lib/bmad-extension-plugin/skills/devops-disconnected-deployment/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/devops-docker-compose-setup/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/devops-docker-compose-setup/SKILL.md +26 -0
- package/lib/bmad-extension-plugin/skills/devops-docker-compose-setup/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/devops-manage-helm/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/devops-manage-helm/SKILL.md +28 -0
- package/lib/bmad-extension-plugin/skills/devops-manage-helm/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/devops-sign-docker-image/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/devops-sign-docker-image/SKILL.md +24 -0
- package/lib/bmad-extension-plugin/skills/devops-sign-docker-image/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/generate-backlog/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/generate-backlog/SKILL.md +236 -0
- package/lib/bmad-extension-plugin/skills/generate-backlog/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ma-agent-cyber/.gitkeep +0 -0
- package/lib/{bmad-extension/skills/bmad-ma-agent-cyber → bmad-extension-plugin/skills/ma-agent-cyber}/SKILL.md +1 -1
- package/lib/{bmad-extension/skills/bmad-ma-agent-cyber → bmad-extension-plugin/skills/ma-agent-cyber}/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-extension-plugin/skills/ma-agent-devops/.gitkeep +0 -0
- package/lib/{bmad-extension/skills/bmad-ma-agent-devops → bmad-extension-plugin/skills/ma-agent-devops}/SKILL.md +1 -1
- package/lib/{bmad-extension/skills/bmad-ma-agent-devops → bmad-extension-plugin/skills/ma-agent-devops}/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-extension-plugin/skills/ma-agent-ml/.gitkeep +0 -0
- package/lib/{bmad-extension/skills/bmad-ma-agent-ml → bmad-extension-plugin/skills/ma-agent-ml}/SKILL.md +1 -1
- package/lib/{bmad-extension/skills/bmad-ma-agent-ml → bmad-extension-plugin/skills/ma-agent-ml}/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-extension-plugin/skills/ma-agent-sqa/.gitkeep +0 -0
- package/lib/{bmad-extension/skills/bmad-ma-agent-sqa → bmad-extension-plugin/skills/ma-agent-sqa}/SKILL.md +1 -1
- package/lib/{bmad-extension/skills/bmad-ma-agent-sqa → bmad-extension-plugin/skills/ma-agent-sqa}/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-extension-plugin/skills/ma-agent-sre/.gitkeep +0 -0
- package/lib/{bmad-extension/skills/bmad-ma-agent-sre → bmad-extension-plugin/skills/ma-agent-sre}/SKILL.md +1 -1
- package/lib/{bmad-extension/skills/bmad-ma-agent-sre → bmad-extension-plugin/skills/ma-agent-sre}/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-extension-plugin/skills/mil498-ocd/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/SKILL.md +30 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/01-discover-project-artifacts.md +26 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/03-generate-document.md +90 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/04-validate.md +14 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/prompts/06-save.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-ocd/template.md +169 -0
- package/lib/bmad-extension-plugin/skills/mil498-requirement-quality/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-requirement-quality/SKILL.md +105 -0
- package/lib/bmad-extension-plugin/skills/mil498-requirement-quality/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/SKILL.md +30 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/01-discover-project-artifacts.md +50 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/03-generate-document.md +98 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/04-validate.md +16 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/prompts/06-save.md +19 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdd/template.md +163 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/SKILL.md +30 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/01-discover-project-artifacts.md +32 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/03-generate-document.md +187 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/04-validate.md +13 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/prompts/06-save.md +14 -0
- package/lib/bmad-extension-plugin/skills/mil498-sdp/template.md +307 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/SKILL.md +30 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/01-discover-project-artifacts.md +42 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/03-generate-document.md +100 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/04-validate.md +16 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/prompts/06-save.md +18 -0
- package/lib/bmad-extension-plugin/skills/mil498-srs/template.md +219 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/SKILL.md +32 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/01-discover-project-artifacts.md +32 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/03-csci-discovery-interview.md +43 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/04-generate-document.md +96 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/05-validate.md +18 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/06-review.md +16 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/prompts/07-save.md +16 -0
- package/lib/bmad-extension-plugin/skills/mil498-ssdd/template.md +154 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/SKILL.md +31 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/01-discover-project-artifacts.md +31 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/03-generate-document.md +108 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/04-validate.md +16 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/prompts/06-save.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-sss/template.md +225 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/SKILL.md +30 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/bmad-skill-manifest.yaml +5 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/01-discover-project-artifacts.md +42 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/02-load-template.md +10 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/03-generate-document.md +117 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/04-validate.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/05-review.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/prompts/06-save.md +15 -0
- package/lib/bmad-extension-plugin/skills/mil498-std/template.md +188 -0
- package/lib/bmad-extension-plugin/skills/ml-advise/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-advise/SKILL.md +76 -0
- package/lib/bmad-extension-plugin/skills/ml-advise/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-advise/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-analysis/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-analysis/SKILL.md +60 -0
- package/lib/bmad-extension-plugin/skills/ml-analysis/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-analysis/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-architecture/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-architecture/SKILL.md +55 -0
- package/lib/bmad-extension-plugin/skills/ml-architecture/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-architecture/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-detailed-design/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-detailed-design/SKILL.md +67 -0
- package/lib/bmad-extension-plugin/skills/ml-detailed-design/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-detailed-design/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/SKILL.md +56 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/scripts/baseline_classifier.py +522 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/scripts/class_weights_calculator.py +295 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/scripts/clustering_explorer.py +383 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/scripts/eda_analyzer.py +654 -0
- package/lib/bmad-extension-plugin/skills/ml-eda/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/SKILL.md +74 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/assets/advanced_trainer_configs.py +430 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/assets/quick_trainer_setup.py +233 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/assets/template_datamodule.py +219 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/assets/template_gnn_module.py +341 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/assets/template_lightning_module.py +158 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-experiment/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-hparam/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-hparam/SKILL.md +81 -0
- package/lib/bmad-extension-plugin/skills/ml-hparam/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-hparam/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-ideation/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-ideation/SKILL.md +50 -0
- package/lib/bmad-extension-plugin/skills/ml-ideation/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-ideation/scripts/validate_ml_prd.py +287 -0
- package/lib/bmad-extension-plugin/skills/ml-ideation/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-infra/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-infra/SKILL.md +58 -0
- package/lib/bmad-extension-plugin/skills/ml-infra/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-infra/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-retrospective/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-retrospective/SKILL.md +63 -0
- package/lib/bmad-extension-plugin/skills/ml-retrospective/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-retrospective/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-revision/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-revision/SKILL.md +82 -0
- package/lib/bmad-extension-plugin/skills/ml-revision/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-revision/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/ml-techspec/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/ml-techspec/SKILL.md +80 -0
- package/lib/bmad-extension-plugin/skills/ml-techspec/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/ml-techspec/skill.json +7 -0
- package/lib/bmad-extension-plugin/skills/modify-sprint/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/modify-sprint/SKILL.md +350 -0
- package/lib/bmad-extension-plugin/skills/modify-sprint/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/module-help.csv +62 -0
- package/lib/bmad-extension-plugin/skills/module.yaml +20 -0
- package/lib/bmad-extension-plugin/skills/prioritize-backlog/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/prioritize-backlog/SKILL.md +256 -0
- package/lib/bmad-extension-plugin/skills/prioritize-backlog/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/project-context-expansion/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/project-context-expansion/SKILL.md +238 -0
- package/lib/bmad-extension-plugin/skills/project-context-expansion/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/remove-from-sprint/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/remove-from-sprint/SKILL.md +223 -0
- package/lib/bmad-extension-plugin/skills/remove-from-sprint/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sprint-status-view/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sprint-status-view/SKILL.md +216 -0
- package/lib/bmad-extension-plugin/skills/sprint-status-view/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sqa-audit/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sqa-audit/SKILL.md +279 -0
- package/lib/bmad-extension-plugin/skills/sqa-audit/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sqa-ieee12207/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sqa-ieee12207/SKILL.md +374 -0
- package/lib/bmad-extension-plugin/skills/sqa-ieee12207/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sqa-requirements-quality/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sqa-requirements-quality/SKILL.md +244 -0
- package/lib/bmad-extension-plugin/skills/sqa-requirements-quality/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-check-deployment-status/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-check-deployment-status/SKILL.md +32 -0
- package/lib/bmad-extension-plugin/skills/sre-check-deployment-status/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-check-secrets/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-check-secrets/SKILL.md +23 -0
- package/lib/bmad-extension-plugin/skills/sre-check-secrets/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-check-system-status/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-check-system-status/SKILL.md +27 -0
- package/lib/bmad-extension-plugin/skills/sre-check-system-status/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-day-2-ops/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-day-2-ops/SKILL.md +26 -0
- package/lib/bmad-extension-plugin/skills/sre-day-2-ops/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-deployment-strategies/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-deployment-strategies/SKILL.md +28 -0
- package/lib/bmad-extension-plugin/skills/sre-deployment-strategies/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-fix-deployments/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-fix-deployments/SKILL.md +25 -0
- package/lib/bmad-extension-plugin/skills/sre-fix-deployments/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad-extension-plugin/skills/sre-gitops-status/.gitkeep +0 -0
- package/lib/bmad-extension-plugin/skills/sre-gitops-status/SKILL.md +25 -0
- package/lib/bmad-extension-plugin/skills/sre-gitops-status/bmad-skill-manifest.yaml +3 -0
- package/lib/bmad.js +1375 -372
- package/lib/installer.js +367 -2
- package/package.json +23 -5
- package/scripts/build-bmad-cache.js +250 -47
- package/scripts/build-plugin.js +574 -0
- package/skills/add-sprint/SKILL.md +39 -0
- package/skills/add-to-sprint/SKILL.md +39 -0
- package/skills/bmad-sprint-planning/SKILL.md +41 -0
- package/skills/bmad-sprint-status/SKILL.md +39 -0
- package/skills/cleanup-done/SKILL.md +39 -0
- package/skills/close-sprint/SKILL.md +39 -0
- package/skills/generate-backlog/SKILL.md +41 -0
- package/skills/modify-sprint/SKILL.md +39 -0
- package/skills/prioritize-backlog/SKILL.md +39 -0
- package/skills/remove-from-sprint/SKILL.md +39 -0
- package/skills/sprint-status-view/SKILL.md +39 -0
- package/skills/story-status-lookup/SKILL.md +38 -21
- package/.ma-agents.json +0 -10
- package/AGENTS.md +0 -97
- package/AiAudit.md +0 -12
- package/DEVELOPMENT.md +0 -173
- package/MANIFEST.yaml +0 -3
- package/_bmad-output/implementation-artifacts/16-4-validation-report.md +0 -79
- package/_bmad-output/implementation-artifacts/17-10-rework-generate-backlog.md +0 -237
- package/_bmad-output/implementation-artifacts/17-11-rework-add-to-sprint.md +0 -339
- package/_bmad-output/implementation-artifacts/17-12-rework-remove-from-sprint.md +0 -348
- package/_bmad-output/implementation-artifacts/17-13-rework-sprint-status-view.md +0 -383
- package/_bmad-output/implementation-artifacts/17-14-rework-cleanup-done.md +0 -348
- package/_bmad-output/implementation-artifacts/17-15-rework-bmad-sprint-planning.md +0 -385
- package/_bmad-output/implementation-artifacts/17-16-rework-add-sprint.md +0 -362
- package/_bmad-output/implementation-artifacts/17-17-rework-modify-sprint.md +0 -477
- package/_bmad-output/implementation-artifacts/17-18-rework-bmad-dev-story.md +0 -377
- package/_bmad-output/implementation-artifacts/17-19-rework-story-status-lookup.md +0 -301
- package/_bmad-output/implementation-artifacts/17-20-rework-bmad-sprint-status.md +0 -508
- package/_bmad-output/implementation-artifacts/17-21-new-close-sprint.md +0 -455
- package/_bmad-output/implementation-artifacts/17-22-jira-adapter-pattern.md +0 -325
- package/_bmad-output/implementation-artifacts/17-23-migration-deprecation-old-files.md +0 -403
- package/_bmad-output/implementation-artifacts/17-24-rework-prioritize-backlog.md +0 -344
- package/_bmad-output/implementation-artifacts/17-9-unified-sprint-status-schema.md +0 -279
- package/_bmad-output/implementation-artifacts/19-1-knowledge-graph-core-library.md +0 -239
- package/_bmad-output/implementation-artifacts/19-2-graph-emission-create-prd.md +0 -171
- package/_bmad-output/implementation-artifacts/19-3-graph-emission-create-architecture-epics.md +0 -179
- package/_bmad-output/implementation-artifacts/19-4-graph-emission-create-story-remaining.md +0 -190
- package/_bmad-output/implementation-artifacts/19-5-open-graph-skill.md +0 -213
- package/_bmad-output/implementation-artifacts/19-6-interactive-visualization-renderer.md +0 -259
- package/_bmad-output/implementation-artifacts/19-7-llm-writability-validation-tests.md +0 -280
- package/_bmad-output/implementation-artifacts/21-1-install-time-profile-prompt.md +0 -181
- package/_bmad-output/implementation-artifacts/21-10-profile-reconfigure.md +0 -161
- package/_bmad-output/implementation-artifacts/21-11-profile-uninstall.md +0 -150
- package/_bmad-output/implementation-artifacts/21-2-universal-instruction-block-expansion.md +0 -253
- package/_bmad-output/implementation-artifacts/21-3-roomodes-template-bmad-modes.md +0 -229
- package/_bmad-output/implementation-artifacts/21-4-agents-md-template-opencode.md +0 -275
- package/_bmad-output/implementation-artifacts/21-5-clinerules-template-extension.md +0 -221
- package/_bmad-output/implementation-artifacts/21-6-onprem-layered-guardrails.md +0 -287
- package/_bmad-output/implementation-artifacts/21-7-bmad-persona-phase-prefix.md +0 -258
- package/_bmad-output/implementation-artifacts/21-8-vllm-reference-doc-readme.md +0 -158
- package/_bmad-output/implementation-artifacts/21-9-tests-validation.md +0 -368
- package/_bmad-output/implementation-artifacts/4-1-vs-agent-registry-entry.md +0 -173
- package/_bmad-output/implementation-artifacts/4-2-vs-skill-template-format.md +0 -129
- package/_bmad-output/implementation-artifacts/5-5-explicit-parameter-passing.md +0 -274
- package/_bmad-output/implementation-artifacts/5-6-fix-space-in-path-bug.md +0 -186
- package/_bmad-output/implementation-artifacts/7-1-test-infrastructure-setup.md +0 -144
- package/_bmad-output/implementation-artifacts/7-2-installer-pipeline-tests.md +0 -132
- package/_bmad-output/implementation-artifacts/7-3-bmad-pipeline-tests.md +0 -119
- package/_bmad-output/implementation-artifacts/7-4-cli-command-routing-tests.md +0 -162
- package/_bmad-output/implementation-artifacts/bug-bmad-recompile-fails-on-airgapped-network.md +0 -112
- package/_bmad-output/implementation-artifacts/bug-experimentalwarning-about-commonjs-loading-es-module-during-install.md +0 -57
- package/_bmad-output/implementation-artifacts/deferred-work.md +0 -9
- package/_bmad-output/implementation-artifacts/done/1-1-ci-cd-yes-flag.md +0 -200
- package/_bmad-output/implementation-artifacts/done/10-1-ensure-bmad-output-not-gitignored.md +0 -172
- package/_bmad-output/implementation-artifacts/done/10-2-document-bmad-output-policy.md +0 -102
- package/_bmad-output/implementation-artifacts/done/11-1-auto-bug-detection-skill.md +0 -119
- package/_bmad-output/implementation-artifacts/done/11-2-bug-story-extension-workflow.md +0 -132
- package/_bmad-output/implementation-artifacts/done/11-3-integrate-bug-detection-code-review.md +0 -111
- package/_bmad-output/implementation-artifacts/done/12-1-add-sprint-workflow.md +0 -126
- package/_bmad-output/implementation-artifacts/done/12-2-add-to-sprint-workflow.md +0 -137
- package/_bmad-output/implementation-artifacts/done/12-3-modify-sprint-workflow.md +0 -127
- package/_bmad-output/implementation-artifacts/done/12-4-sprint-status-assigned-items.md +0 -129
- package/_bmad-output/implementation-artifacts/done/13-1-project-context-template-and-generator.md +0 -179
- package/_bmad-output/implementation-artifacts/done/13-2-install-pipeline-integration.md +0 -138
- package/_bmad-output/implementation-artifacts/done/13-3-bmad-critical-actions-update.md +0 -150
- package/_bmad-output/implementation-artifacts/done/13-4-retrospective-expansion-trigger.md +0 -128
- package/_bmad-output/implementation-artifacts/done/13-5-document-project-context-generation.md +0 -118
- package/_bmad-output/implementation-artifacts/done/15-1-bump-bmad-method-to-6-2-1.md +0 -132
- package/_bmad-output/implementation-artifacts/done/15-2-restructure-extension-module.md +0 -174
- package/_bmad-output/implementation-artifacts/done/15-3-convert-custom-agents-to-skill-folders.md +0 -183
- package/_bmad-output/implementation-artifacts/done/15-4-convert-mil498-workflows-to-skill-md.md +0 -252
- package/_bmad-output/implementation-artifacts/done/15-5-convert-sre-devops-cyber-workflows.md +0 -232
- package/_bmad-output/implementation-artifacts/done/15-6-separate-built-in-agent-customizations.md +0 -163
- package/_bmad-output/implementation-artifacts/done/15-7-migration-detection-and-upgrade-path.md +0 -133
- package/_bmad-output/implementation-artifacts/done/15-8-validate-migrated-agents-and-workflows.md +0 -172
- package/_bmad-output/implementation-artifacts/done/15-8-validation-report.md +0 -342
- package/_bmad-output/implementation-artifacts/done/16-1-repository-layout-wizard.md +0 -223
- package/_bmad-output/implementation-artifacts/done/16-2-config-storage-and-cross-reference.md +0 -180
- package/_bmad-output/implementation-artifacts/done/16-3-project-context-multi-repo-section.md +0 -136
- package/_bmad-output/implementation-artifacts/done/16-4-validate-cross-repo-path-resolution.md +0 -137
- package/_bmad-output/implementation-artifacts/done/16-4-validation-report.md +0 -79
- package/_bmad-output/implementation-artifacts/done/16-5-fix-config-lost-on-update.md +0 -110
- package/_bmad-output/implementation-artifacts/done/16-6-repo-sync-check-skill.md +0 -116
- package/_bmad-output/implementation-artifacts/done/16-7-portable-path-storage.md +0 -109
- package/_bmad-output/implementation-artifacts/done/16-8-cicd-remote-mode.md +0 -97
- package/_bmad-output/implementation-artifacts/done/16-9-reconfigure-layout-workflow.md +0 -125
- package/_bmad-output/implementation-artifacts/done/17-1-sprint-entity-model.md +0 -322
- package/_bmad-output/implementation-artifacts/done/17-2-flat-backlog-model.md +0 -264
- package/_bmad-output/implementation-artifacts/done/17-3-bug-as-story-type.md +0 -208
- package/_bmad-output/implementation-artifacts/done/17-4-backlog-to-sprint-workflow.md +0 -209
- package/_bmad-output/implementation-artifacts/done/17-5-sprint-to-backlog-workflow.md +0 -221
- package/_bmad-output/implementation-artifacts/done/17-6-done-item-cleanup.md +0 -273
- package/_bmad-output/implementation-artifacts/done/17-7-multi-criteria-prioritization.md +0 -235
- package/_bmad-output/implementation-artifacts/done/17-8-rework-sprint-status-display.md +0 -285
- package/_bmad-output/implementation-artifacts/done/2-1-cpp-coding-standards-skill.md +0 -188
- package/_bmad-output/implementation-artifacts/done/2-2-csharp-coding-standards-skill.md +0 -211
- package/_bmad-output/implementation-artifacts/done/2-3-python-coding-standards-skill.md +0 -189
- package/_bmad-output/implementation-artifacts/done/3-1-skill-scaffolding-tool.md +0 -184
- package/_bmad-output/implementation-artifacts/done/3-2-skill-validation-tool.md +0 -178
- package/_bmad-output/implementation-artifacts/done/3-3-mandatory-skill-designation.md +0 -136
- package/_bmad-output/implementation-artifacts/done/3-4-bmad-persona-customization-tooling.md +0 -141
- package/_bmad-output/implementation-artifacts/done/3-5-specialized-agent-development-tooling.md +0 -145
- package/_bmad-output/implementation-artifacts/done/5-1-bmad-method-direct-dependency.md +0 -188
- package/_bmad-output/implementation-artifacts/done/5-2-bmad-cache-build-script.md +0 -219
- package/_bmad-output/implementation-artifacts/done/5-3-pre-populate-bmad-cache.md +0 -234
- package/_bmad-output/implementation-artifacts/done/5-4-validate-bundled-installation.md +0 -274
- package/_bmad-output/implementation-artifacts/done/6-1-methodology-presentation-bundle.md +0 -173
- package/_bmad-output/implementation-artifacts/done/8-1-move-instruction-injection-to-top.md +0 -131
- package/_bmad-output/implementation-artifacts/done/8-2-agent-aware-injection-strategy.md +0 -124
- package/_bmad-output/implementation-artifacts/done/8-3-create-bmad-extension-module.md +0 -187
- package/_bmad-output/implementation-artifacts/done/8-4-integration-verification.md +0 -102
- package/_bmad-output/implementation-artifacts/done/8-5-per-agent-enforcement-hooks-research.md +0 -126
- package/_bmad-output/implementation-artifacts/done/8-6-context-persistence-research.md +0 -101
- package/_bmad-output/implementation-artifacts/done/9-1-register-opencode-agent.md +0 -73
- package/_bmad-output/implementation-artifacts/done/9-2-json-merge-injection.md +0 -91
- package/_bmad-output/implementation-artifacts/done/9-3-json-merge-existing.md +0 -113
- package/_bmad-output/implementation-artifacts/done/9-4-json-error-handling.md +0 -90
- package/_bmad-output/implementation-artifacts/epic-11-12-shared-guardrails.md +0 -53
- package/_bmad-output/implementation-artifacts/epic-15-adversarial-fixes.md +0 -287
- package/_bmad-output/implementation-artifacts/epic-16-adversarial-review.md +0 -49
- package/_bmad-output/implementation-artifacts/epic-16-edge-case-review.md +0 -230
- package/_bmad-output/implementation-artifacts/epic-17-adversarial-review.md +0 -37
- package/_bmad-output/implementation-artifacts/epic-17-edge-case-review.md +0 -140
- package/_bmad-output/implementation-artifacts/sprint-status.yaml +0 -139
- package/_bmad-output/planning-artifacts/adapter-pattern-spec.md +0 -508
- package/_bmad-output/planning-artifacts/architecture.md +0 -2023
- package/_bmad-output/planning-artifacts/domain-research-roocode-2026-03-31.md +0 -295
- package/_bmad-output/planning-artifacts/epics.md +0 -4232
- package/_bmad-output/planning-artifacts/mil498-workflow-audit.md +0 -290
- package/_bmad-output/planning-artifacts/prd.md +0 -811
- package/_bmad-output/planning-artifacts/product-brief-agents-2026-03-08.md +0 -214
- package/_bmad-output/planning-artifacts/sprint-status-schema.md +0 -506
- package/_bmad-output/planning-artifacts/validation-report-prd-2026-04-07.md +0 -330
- package/_bmad-output/project-context.md +0 -47
- package/agents.code-workspace +0 -11
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-554778ad4e7254827618ebd2497c3f4bce9054a4.idx +0 -0
- package/lib/bmad-cache/bmb/_git_preserved/objects/pack/pack-554778ad4e7254827618ebd2497c3f4bce9054a4.rev +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-39c4fd66f4e0eb3f4d93665318df04cd356b0297.idx +0 -0
- package/lib/bmad-cache/cis/_git_preserved/objects/pack/pack-39c4fd66f4e0eb3f4d93665318df04cd356b0297.rev +0 -0
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-brainstorming-coach/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-creative-problem-solver/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-design-thinking-coach/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-innovation-strategist/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-presentation-master/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-storyteller/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/cis/src/skills/bmad-cis-design-thinking/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/cis/src/skills/bmad-cis-innovation-strategy/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/cis/src/skills/bmad-cis-problem-solving/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/cis/src/skills/bmad-cis-storytelling/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-ac967149d58fba215d07238ad8881bdbdad5c9c3.idx +0 -0
- package/lib/bmad-cache/gds/_git_preserved/objects/pack/pack-ac967149d58fba215d07238ad8881bdbdad5c9c3.rev +0 -0
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-qa/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-scrum-master/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/bmad-skill-manifest.yaml +0 -11
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/research/bmad-skill-manifest.yaml +0 -9
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/research/gds-domain-research/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/2-design/create-prd/bmad-skill-manifest.yaml +0 -14
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-ux-design/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-create-story/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-dev-story/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev-new-preview/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-spec/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-e75385cd52b693dbb8a3b2afb50058952543b3a2.idx +0 -0
- package/lib/bmad-cache/tea/_git_preserved/objects/pack/pack-e75385cd52b693dbb8a3b2afb50058952543b3a2.rev +0 -0
- package/lib/bmad-cache/tea/_git_preserved/refs/tags/v1.10.0 +0 -1
- package/lib/bmad-cache/tea/src/agents/bmad-tea/bmad-skill-manifest.yaml +0 -14
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/workflow.md +0 -90
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/workflow.md +0 -41
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/bmad-skill-manifest.yaml +0 -1
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/workflow.md +0 -41
- package/lib/bmad-customizations/bmm-demerzel.customize.yaml +0 -36
- package/lib/bmad-customizations/demerzel.md +0 -32
- package/lib/bmad-customize/bmm-quick-flow-solo-dev.customize.yaml +0 -8
- package/lib/bmad-extension/module.yaml +0 -5
- package/out.txt +0 -0
- package/test/agent-injection-strategy.test.js +0 -129
- package/test/agents-md.test.js +0 -398
- package/test/bmad-extension.test.js +0 -283
- package/test/bmad-output-policy.test.js +0 -119
- package/test/bmad-persona-phase-prefix.test.js +0 -271
- package/test/bmad-version-bump.test.js +0 -313
- package/test/build-bmad-args.test.js +0 -368
- package/test/cicd-remote-mode.test.js +0 -224
- package/test/clinerules.test.js +0 -339
- package/test/config-layout.test.js +0 -230
- package/test/config-lost-on-update.test.js +0 -363
- package/test/config-storage.test.js +0 -275
- package/test/convert-agents-to-skills.test.js +0 -255
- package/test/create-agent.test.js +0 -232
- package/test/cross-repo-validation.test.js +0 -201
- package/test/enforcement-hooks.test.js +0 -324
- package/test/experimental-warning.test.js +0 -314
- package/test/extension-module-restructure.test.js +0 -407
- package/test/fixtures/README.md +0 -74
- package/test/fixtures/empty-project/README.md +0 -5
- package/test/fixtures/empty-project/package.json +0 -5
- package/test/fixtures/onprem-profile-baseline/.gitkeep +0 -2
- package/test/fixtures/standard-profile-baseline/.gitkeep +0 -2
- package/test/generate-project-context.test.js +0 -483
- package/test/instruction-block.test.js +0 -388
- package/test/instruction-injection.test.js +0 -336
- package/test/integration-verification.test.js +0 -433
- package/test/migration-validation.test.js +0 -506
- package/test/migration.test.js +0 -832
- package/test/offline-recompile.test.js +0 -267
- package/test/onprem-injection.test.js +0 -441
- package/test/onprem-layer.test.js +0 -419
- package/test/opencode-agent.test.js +0 -150
- package/test/opencode-json-error.test.js +0 -260
- package/test/opencode-json-injection.test.js +0 -264
- package/test/opencode-json-merge.test.js +0 -318
- package/test/portable-paths.test.js +0 -268
- package/test/profile.test.js +0 -301
- package/test/reconfigure.test.js +0 -436
- package/test/repo-layout.test.js +0 -246
- package/test/roo-code-agent.test.js +0 -166
- package/test/roo-code-injection.test.js +0 -172
- package/test/roomodes.test.js +0 -343
- package/test/skill-authoring.test.js +0 -272
- package/test/skill-customize-agent.test.js +0 -253
- package/test/skill-mandatory.test.js +0 -235
- package/test/skill-validation.test.js +0 -378
- package/test/story-15-5-workflow-skills.test.js +0 -311
- package/test/uninstall.test.js +0 -402
- package/test/yes-flag.test.js +0 -200
- /package/lib/bmad-cache/gds/src/{gametest → agents/gds-agent-game-dev/gametest}/qa-index.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/2-design/{create-prd → gds-create-prd}/data/domain-complexity.csv +0 -0
- /package/lib/bmad-cache/gds/src/workflows/2-design/{create-prd → gds-create-prd}/data/project-types.csv +0 -0
- /package/lib/{bmad-extension/skills/bmad-ma-agent-cyber → bmad-extension-plugin/skills/add-sprint}/.gitkeep +0 -0
- /package/lib/{bmad-extension/skills/bmad-ma-agent-devops → bmad-extension-plugin/skills/add-to-sprint}/.gitkeep +0 -0
- /package/lib/{bmad-extension/skills/bmad-ma-agent-ml → bmad-extension-plugin/skills/bmad-dev-story}/.gitkeep +0 -0
- /package/lib/{bmad-extension/skills/bmad-ma-agent-sqa → bmad-extension-plugin/skills/bmad-sprint-planning}/.gitkeep +0 -0
- /package/lib/{bmad-extension/skills/bmad-ma-agent-sre → bmad-extension-plugin/skills/bmad-sprint-status}/.gitkeep +0 -0
package/test/migration.test.js
DELETED
|
@@ -1,832 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Tests for Story 15-7: Migration Detection and Upgrade Path
|
|
4
|
-
*
|
|
5
|
-
* Task 1: detectMigrationNeed()
|
|
6
|
-
* Task 2: backupCustomizations()
|
|
7
|
-
* Task 3: mergeUserCustomizations()
|
|
8
|
-
* Task 4: cleanupLegacyArtifacts()
|
|
9
|
-
* Task 5: restoreCustomizations() (rollback)
|
|
10
|
-
* Task 6: Integration into install flow
|
|
11
|
-
*/
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
const assert = require('assert');
|
|
15
|
-
const path = require('path');
|
|
16
|
-
const fs = require('fs-extra');
|
|
17
|
-
const os = require('os');
|
|
18
|
-
|
|
19
|
-
let passed = 0;
|
|
20
|
-
let failed = 0;
|
|
21
|
-
const errors = [];
|
|
22
|
-
|
|
23
|
-
function test(name, fn) {
|
|
24
|
-
try {
|
|
25
|
-
fn();
|
|
26
|
-
console.log(` \u2713 ${name}`);
|
|
27
|
-
passed++;
|
|
28
|
-
} catch (err) {
|
|
29
|
-
console.error(` \u2717 ${name}: ${err.message}`);
|
|
30
|
-
failed++;
|
|
31
|
-
errors.push({ name, err });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
async function testAsync(name, fn) {
|
|
36
|
-
try {
|
|
37
|
-
await fn();
|
|
38
|
-
console.log(` \u2713 ${name}`);
|
|
39
|
-
passed++;
|
|
40
|
-
} catch (err) {
|
|
41
|
-
console.error(` \u2717 ${name}: ${err.message}`);
|
|
42
|
-
failed++;
|
|
43
|
-
errors.push({ name, err });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Create a temp directory for test fixtures
|
|
48
|
-
let tmpRoot;
|
|
49
|
-
|
|
50
|
-
function setupTmpDir() {
|
|
51
|
-
tmpRoot = path.join(os.tmpdir(), `ma-agents-migration-test-${Date.now()}`);
|
|
52
|
-
fs.ensureDirSync(tmpRoot);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function cleanupTmpDir() {
|
|
56
|
-
if (tmpRoot && fs.existsSync(tmpRoot)) {
|
|
57
|
-
fs.removeSync(tmpRoot);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Create a mock project at the given subpath under tmpRoot.
|
|
63
|
-
*/
|
|
64
|
-
function createMockProject(subdir, opts = {}) {
|
|
65
|
-
const projectRoot = path.join(tmpRoot, subdir);
|
|
66
|
-
fs.ensureDirSync(projectRoot);
|
|
67
|
-
|
|
68
|
-
if (opts.bmadVersion !== undefined) {
|
|
69
|
-
// Create _bmad/core/config.yaml with specified version
|
|
70
|
-
const configDir = path.join(projectRoot, '_bmad', 'core');
|
|
71
|
-
fs.ensureDirSync(configDir);
|
|
72
|
-
|
|
73
|
-
if (opts.bmadVersion === null) {
|
|
74
|
-
// Write empty config (simulates 6.2.1 installer emptying it)
|
|
75
|
-
fs.writeFileSync(path.join(configDir, 'config.yaml'), '{}', 'utf-8');
|
|
76
|
-
} else if (opts.bmadVersion === 'missing-file') {
|
|
77
|
-
// _bmad/ exists but no config.yaml
|
|
78
|
-
// Do nothing — directory already created
|
|
79
|
-
} else {
|
|
80
|
-
fs.writeFileSync(
|
|
81
|
-
path.join(configDir, 'config.yaml'),
|
|
82
|
-
`version: ${opts.bmadVersion}\nname: bmad-method\n`,
|
|
83
|
-
'utf-8'
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (opts.customizeFiles) {
|
|
89
|
-
const configAgentsDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
90
|
-
fs.ensureDirSync(configAgentsDir);
|
|
91
|
-
for (const [name, content] of Object.entries(opts.customizeFiles)) {
|
|
92
|
-
fs.writeFileSync(path.join(configAgentsDir, name), content, 'utf-8');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (opts.legacyXml) {
|
|
97
|
-
const customAgentsDir = path.join(projectRoot, '_bmad', 'custom', 'agents');
|
|
98
|
-
fs.ensureDirSync(customAgentsDir);
|
|
99
|
-
for (const name of opts.legacyXml) {
|
|
100
|
-
fs.writeFileSync(path.join(customAgentsDir, name), '<agent/>', 'utf-8');
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (opts.legacyWorkflowYaml) {
|
|
105
|
-
const workflowDir = path.join(projectRoot, '_bmad', 'bmm', 'workflows');
|
|
106
|
-
fs.ensureDirSync(workflowDir);
|
|
107
|
-
for (const name of opts.legacyWorkflowYaml) {
|
|
108
|
-
fs.writeFileSync(path.join(workflowDir, name), 'steps: []', 'utf-8');
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return projectRoot;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const bmad = require('../lib/bmad');
|
|
116
|
-
|
|
117
|
-
async function runAllTests() {
|
|
118
|
-
|
|
119
|
-
console.log('\nStory 15-7: Migration Detection and Upgrade Path Tests\n');
|
|
120
|
-
|
|
121
|
-
// ─── Task 1: detectMigrationNeed() ──────────────────────────────────────────
|
|
122
|
-
|
|
123
|
-
console.log('Task 1: detectMigrationNeed()');
|
|
124
|
-
|
|
125
|
-
setupTmpDir();
|
|
126
|
-
|
|
127
|
-
test('detectMigrationNeed is exported', () => {
|
|
128
|
-
assert.strictEqual(typeof bmad.detectMigrationNeed, 'function');
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
test('fresh install — no _bmad/ directory', () => {
|
|
132
|
-
const projectRoot = createMockProject('fresh');
|
|
133
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
134
|
-
assert.strictEqual(result.action, 'install');
|
|
135
|
-
assert.strictEqual(result.migrate, false);
|
|
136
|
-
assert.strictEqual(result.fromVersion, undefined);
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
test('old version 6.0.4 — needs migration', () => {
|
|
140
|
-
const projectRoot = createMockProject('old-604', { bmadVersion: '6.0.4' });
|
|
141
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
142
|
-
assert.strictEqual(result.action, 'update');
|
|
143
|
-
assert.strictEqual(result.migrate, true);
|
|
144
|
-
assert.strictEqual(result.fromVersion, '6.0.4');
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
test('old version 5.1.0 — needs migration', () => {
|
|
148
|
-
const projectRoot = createMockProject('old-510', { bmadVersion: '5.1.0' });
|
|
149
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
150
|
-
assert.strictEqual(result.action, 'update');
|
|
151
|
-
assert.strictEqual(result.migrate, true);
|
|
152
|
-
assert.strictEqual(result.fromVersion, '5.1.0');
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
test('old version 6.1.9 — needs migration', () => {
|
|
156
|
-
const projectRoot = createMockProject('old-619', { bmadVersion: '6.1.9' });
|
|
157
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
158
|
-
assert.strictEqual(result.action, 'update');
|
|
159
|
-
assert.strictEqual(result.migrate, true);
|
|
160
|
-
assert.strictEqual(result.fromVersion, '6.1.9');
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
test('current version 6.2.0 — update without migration', () => {
|
|
164
|
-
const projectRoot = createMockProject('current-620', { bmadVersion: '6.2.0' });
|
|
165
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
166
|
-
assert.strictEqual(result.action, 'update');
|
|
167
|
-
assert.strictEqual(result.migrate, false);
|
|
168
|
-
assert.strictEqual(result.fromVersion, undefined);
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
test('current version 6.2.1 — update without migration', () => {
|
|
172
|
-
const projectRoot = createMockProject('current-621', { bmadVersion: '6.2.1' });
|
|
173
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
174
|
-
assert.strictEqual(result.action, 'update');
|
|
175
|
-
assert.strictEqual(result.migrate, false);
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
test('future version 7.0.0 — update without migration', () => {
|
|
179
|
-
const projectRoot = createMockProject('future-700', { bmadVersion: '7.0.0' });
|
|
180
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
181
|
-
assert.strictEqual(result.action, 'update');
|
|
182
|
-
assert.strictEqual(result.migrate, false);
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
test('empty config.yaml ({}) — treats as needing migration', () => {
|
|
186
|
-
const projectRoot = createMockProject('empty-config', { bmadVersion: null });
|
|
187
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
188
|
-
assert.strictEqual(result.action, 'update');
|
|
189
|
-
assert.strictEqual(result.migrate, true);
|
|
190
|
-
assert.strictEqual(result.fromVersion, 'unknown');
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
test('missing config.yaml but _bmad/ exists — treats as needing migration', () => {
|
|
194
|
-
const projectRoot = createMockProject('no-config', { bmadVersion: 'missing-file' });
|
|
195
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
196
|
-
assert.strictEqual(result.action, 'update');
|
|
197
|
-
assert.strictEqual(result.migrate, true);
|
|
198
|
-
assert.strictEqual(result.fromVersion, 'unknown');
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
cleanupTmpDir();
|
|
202
|
-
|
|
203
|
-
// ─── Task 2: backupCustomizations() ─────────────────────────────────────────
|
|
204
|
-
|
|
205
|
-
console.log('\nTask 2: backupCustomizations()');
|
|
206
|
-
|
|
207
|
-
setupTmpDir();
|
|
208
|
-
|
|
209
|
-
test('backupCustomizations is exported', () => {
|
|
210
|
-
assert.strictEqual(typeof bmad.backupCustomizations, 'function');
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
await testAsync('backs up customize.yaml files', async () => {
|
|
214
|
-
const projectRoot = createMockProject('backup-test', {
|
|
215
|
-
bmadVersion: '6.0.4',
|
|
216
|
-
customizeFiles: {
|
|
217
|
-
'generic.customize.yaml': 'persona:\n name: "Test"\n',
|
|
218
|
-
'bmm-dev.customize.yaml': 'critical_actions:\n 1: "test action"\n',
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
const backedUp = await bmad.backupCustomizations(projectRoot);
|
|
223
|
-
assert.strictEqual(backedUp.length, 2);
|
|
224
|
-
assert.ok(backedUp.includes('generic.customize.yaml'));
|
|
225
|
-
assert.ok(backedUp.includes('bmm-dev.customize.yaml'));
|
|
226
|
-
|
|
227
|
-
// Verify backup files exist
|
|
228
|
-
const backupDir = path.join(projectRoot, '_bmad', '_config', 'agents', '.backup-pre-migration');
|
|
229
|
-
assert.ok(fs.existsSync(path.join(backupDir, 'generic.customize.yaml')));
|
|
230
|
-
assert.ok(fs.existsSync(path.join(backupDir, 'bmm-dev.customize.yaml')));
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
await testAsync('returns empty array when no _config/agents directory', async () => {
|
|
234
|
-
const projectRoot = createMockProject('no-config-dir');
|
|
235
|
-
const backedUp = await bmad.backupCustomizations(projectRoot);
|
|
236
|
-
assert.strictEqual(backedUp.length, 0);
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
await testAsync('returns empty array when no customize.yaml files', async () => {
|
|
240
|
-
const projectRoot = createMockProject('empty-agents', { bmadVersion: '6.0.4' });
|
|
241
|
-
// Create _config/agents but with no customize files
|
|
242
|
-
const agentsDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
243
|
-
fs.ensureDirSync(agentsDir);
|
|
244
|
-
fs.writeFileSync(path.join(agentsDir, 'other.yaml'), 'test: true', 'utf-8');
|
|
245
|
-
|
|
246
|
-
const backedUp = await bmad.backupCustomizations(projectRoot);
|
|
247
|
-
assert.strictEqual(backedUp.length, 0);
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
cleanupTmpDir();
|
|
251
|
-
|
|
252
|
-
// ─── Task 5: restoreCustomizations() (rollback) ─────────────────────────────
|
|
253
|
-
|
|
254
|
-
console.log('\nTask 5: restoreCustomizations()');
|
|
255
|
-
|
|
256
|
-
setupTmpDir();
|
|
257
|
-
|
|
258
|
-
test('restoreCustomizations is exported', () => {
|
|
259
|
-
assert.strictEqual(typeof bmad.restoreCustomizations, 'function');
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
await testAsync('restores backed-up files', async () => {
|
|
263
|
-
const projectRoot = createMockProject('restore-test', {
|
|
264
|
-
bmadVersion: '6.0.4',
|
|
265
|
-
customizeFiles: {
|
|
266
|
-
'generic.customize.yaml': 'persona:\n name: "Original"\n',
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
// Create backup
|
|
271
|
-
await bmad.backupCustomizations(projectRoot);
|
|
272
|
-
|
|
273
|
-
// Simulate update wiping the file
|
|
274
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
275
|
-
fs.writeFileSync(path.join(configDir, 'generic.customize.yaml'), 'persona:\n name: "New"\n', 'utf-8');
|
|
276
|
-
|
|
277
|
-
// Restore
|
|
278
|
-
const success = await bmad.restoreCustomizations(projectRoot);
|
|
279
|
-
assert.strictEqual(success, true);
|
|
280
|
-
|
|
281
|
-
// Verify restored content
|
|
282
|
-
const content = fs.readFileSync(path.join(configDir, 'generic.customize.yaml'), 'utf-8');
|
|
283
|
-
assert.ok(content.includes('name: "Original"'));
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
await testAsync('returns false when no backup directory', async () => {
|
|
287
|
-
const projectRoot = createMockProject('no-backup');
|
|
288
|
-
const success = await bmad.restoreCustomizations(projectRoot);
|
|
289
|
-
assert.strictEqual(success, false);
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
cleanupTmpDir();
|
|
293
|
-
|
|
294
|
-
// ─── Task 3: mergeUserCustomizations() ──────────────────────────────────────
|
|
295
|
-
|
|
296
|
-
console.log('\nTask 3: mergeUserCustomizations()');
|
|
297
|
-
|
|
298
|
-
setupTmpDir();
|
|
299
|
-
|
|
300
|
-
test('mergeUserCustomizations is exported', () => {
|
|
301
|
-
assert.strictEqual(typeof bmad.mergeUserCustomizations, 'function');
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
await testAsync('merges user memories into new file', async () => {
|
|
305
|
-
const projectRoot = createMockProject('merge-memories', {
|
|
306
|
-
bmadVersion: '6.0.4',
|
|
307
|
-
customizeFiles: {
|
|
308
|
-
'bmm-dev.customize.yaml': [
|
|
309
|
-
'critical_actions:',
|
|
310
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
311
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
312
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
313
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
314
|
-
'memories:',
|
|
315
|
-
' - "Always use TypeScript strict mode"',
|
|
316
|
-
' - "Prefer functional patterns"',
|
|
317
|
-
].join('\n') + '\n',
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
// Backup
|
|
322
|
-
await bmad.backupCustomizations(projectRoot);
|
|
323
|
-
|
|
324
|
-
// Simulate new file deployed (no memories)
|
|
325
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
326
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
327
|
-
'critical_actions:',
|
|
328
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
329
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
330
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
331
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
332
|
-
].join('\n') + '\n', 'utf-8');
|
|
333
|
-
|
|
334
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
335
|
-
assert.ok(result.merged.includes('bmm-dev.customize.yaml'));
|
|
336
|
-
|
|
337
|
-
const content = fs.readFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), 'utf-8');
|
|
338
|
-
assert.ok(content.includes('Always use TypeScript strict mode'), 'Should contain merged memory');
|
|
339
|
-
assert.ok(content.includes('Prefer functional patterns'), 'Should contain merged memory');
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
await testAsync('merges user-added critical_actions', async () => {
|
|
343
|
-
const projectRoot = createMockProject('merge-ca', {
|
|
344
|
-
bmadVersion: '6.0.4',
|
|
345
|
-
customizeFiles: {
|
|
346
|
-
'bmm-dev.customize.yaml': [
|
|
347
|
-
'critical_actions:',
|
|
348
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
349
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
350
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
351
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
352
|
-
' 5: "Always run linting before committing"',
|
|
353
|
-
' 6: "Check for security vulnerabilities in dependencies"',
|
|
354
|
-
].join('\n') + '\n',
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
await bmad.backupCustomizations(projectRoot);
|
|
359
|
-
|
|
360
|
-
// Simulate new file with standard 4 critical_actions
|
|
361
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
362
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
363
|
-
'critical_actions:',
|
|
364
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
365
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
366
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
367
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
368
|
-
].join('\n') + '\n', 'utf-8');
|
|
369
|
-
|
|
370
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
371
|
-
assert.ok(result.merged.includes('bmm-dev.customize.yaml'));
|
|
372
|
-
|
|
373
|
-
const content = fs.readFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), 'utf-8');
|
|
374
|
-
assert.ok(content.includes('Always run linting before committing'), 'Should contain user CA');
|
|
375
|
-
assert.ok(content.includes('Check for security vulnerabilities'), 'Should contain user CA');
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
await testAsync('skips files with no user customizations', async () => {
|
|
379
|
-
const projectRoot = createMockProject('merge-skip', {
|
|
380
|
-
bmadVersion: '6.0.4',
|
|
381
|
-
customizeFiles: {
|
|
382
|
-
'bmm-dev.customize.yaml': [
|
|
383
|
-
'critical_actions:',
|
|
384
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
385
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
386
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
387
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
388
|
-
].join('\n') + '\n',
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
await bmad.backupCustomizations(projectRoot);
|
|
393
|
-
|
|
394
|
-
// Deploy identical new file
|
|
395
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
396
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
397
|
-
'critical_actions:',
|
|
398
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
399
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
400
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
401
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
402
|
-
].join('\n') + '\n', 'utf-8');
|
|
403
|
-
|
|
404
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
405
|
-
assert.ok(result.skipped.includes('bmm-dev.customize.yaml'));
|
|
406
|
-
assert.strictEqual(result.merged.length, 0);
|
|
407
|
-
});
|
|
408
|
-
|
|
409
|
-
await testAsync('returns empty result when no backup directory', async () => {
|
|
410
|
-
const projectRoot = createMockProject('merge-no-backup');
|
|
411
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
412
|
-
assert.strictEqual(result.merged.length, 0);
|
|
413
|
-
assert.strictEqual(result.skipped.length, 0);
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
await testAsync('merge with YAML special characters produces valid output', async () => {
|
|
417
|
-
const projectRoot = createMockProject('merge-yaml-special', {
|
|
418
|
-
bmadVersion: '6.0.4',
|
|
419
|
-
customizeFiles: {
|
|
420
|
-
'bmm-dev.customize.yaml': [
|
|
421
|
-
'critical_actions:',
|
|
422
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
423
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
424
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
425
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
426
|
-
'memories:',
|
|
427
|
-
' - "Value with colon: inside it"',
|
|
428
|
-
' - "Value with # hash character"',
|
|
429
|
-
' - "Value with | pipe character"',
|
|
430
|
-
].join('\n') + '\n',
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
await bmad.backupCustomizations(projectRoot);
|
|
435
|
-
|
|
436
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
437
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
438
|
-
'critical_actions:',
|
|
439
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
440
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
441
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
442
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
443
|
-
].join('\n') + '\n', 'utf-8');
|
|
444
|
-
|
|
445
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
446
|
-
assert.ok(result.merged.includes('bmm-dev.customize.yaml'));
|
|
447
|
-
|
|
448
|
-
const content = fs.readFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), 'utf-8');
|
|
449
|
-
assert.ok(content.includes('colon: inside it'), 'Should preserve colon in value');
|
|
450
|
-
assert.ok(content.includes('# hash character'), 'Should preserve hash in value');
|
|
451
|
-
assert.ok(content.includes('| pipe character'), 'Should preserve pipe in value');
|
|
452
|
-
|
|
453
|
-
// Validate the output can be re-parsed
|
|
454
|
-
const parsed = bmad.parseCustomizeYaml(content);
|
|
455
|
-
assert.ok(parsed.criticalActions.length >= 4, 'Merged output should have at least 4 critical actions');
|
|
456
|
-
assert.ok(parsed.memories.length >= 3, 'Merged output should have at least 3 memories');
|
|
457
|
-
});
|
|
458
|
-
|
|
459
|
-
await testAsync('corrupt merge output triggers backup restore', async () => {
|
|
460
|
-
// This test verifies that if mergeUserCustomizations produces output where
|
|
461
|
-
// critical_actions section exists but parses to nothing, it restores from backup.
|
|
462
|
-
// We simulate this by creating a scenario with adversarial content.
|
|
463
|
-
const projectRoot = createMockProject('merge-corrupt', {
|
|
464
|
-
bmadVersion: '6.0.4',
|
|
465
|
-
customizeFiles: {
|
|
466
|
-
'bmm-dev.customize.yaml': [
|
|
467
|
-
'critical_actions:',
|
|
468
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
469
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
470
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
471
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
472
|
-
'memories:',
|
|
473
|
-
' - "Normal memory"',
|
|
474
|
-
].join('\n') + '\n',
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
|
|
478
|
-
await bmad.backupCustomizations(projectRoot);
|
|
479
|
-
|
|
480
|
-
// Deploy a new file that has critical_actions section with valid entries
|
|
481
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
482
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
483
|
-
'critical_actions:',
|
|
484
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
485
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
486
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
487
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
488
|
-
].join('\n') + '\n', 'utf-8');
|
|
489
|
-
|
|
490
|
-
// The merge should succeed since both files are valid
|
|
491
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
492
|
-
// Verify the output file exists and is parseable
|
|
493
|
-
const content = fs.readFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), 'utf-8');
|
|
494
|
-
const parsed = bmad.parseCustomizeYaml(content);
|
|
495
|
-
assert.ok(parsed.criticalActions.length >= 4, 'Output should have valid critical actions');
|
|
496
|
-
});
|
|
497
|
-
|
|
498
|
-
cleanupTmpDir();
|
|
499
|
-
|
|
500
|
-
// ─── Task 4: cleanupLegacyArtifacts() ───────────────────────────────────────
|
|
501
|
-
|
|
502
|
-
console.log('\nTask 4: cleanupLegacyArtifacts()');
|
|
503
|
-
|
|
504
|
-
setupTmpDir();
|
|
505
|
-
|
|
506
|
-
test('cleanupLegacyArtifacts is exported', () => {
|
|
507
|
-
assert.strictEqual(typeof bmad.cleanupLegacyArtifacts, 'function');
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
await testAsync('removes XML agent definitions', async () => {
|
|
511
|
-
const projectRoot = createMockProject('cleanup-xml', {
|
|
512
|
-
bmadVersion: '6.0.4',
|
|
513
|
-
legacyXml: ['sre.xml', 'devops.xml'],
|
|
514
|
-
});
|
|
515
|
-
|
|
516
|
-
const cleaned = await bmad.cleanupLegacyArtifacts(projectRoot);
|
|
517
|
-
assert.ok(cleaned.some(p => p.includes('sre.xml')));
|
|
518
|
-
assert.ok(cleaned.some(p => p.includes('devops.xml')));
|
|
519
|
-
|
|
520
|
-
// Verify files are gone
|
|
521
|
-
const customAgentsDir = path.join(projectRoot, '_bmad', 'custom', 'agents');
|
|
522
|
-
assert.ok(!fs.existsSync(path.join(customAgentsDir, 'sre.xml')));
|
|
523
|
-
assert.ok(!fs.existsSync(path.join(customAgentsDir, 'devops.xml')));
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
await testAsync('removes legacy YAML workflow files but not subdirectories', async () => {
|
|
527
|
-
const projectRoot = createMockProject('cleanup-workflows', {
|
|
528
|
-
bmadVersion: '6.0.4',
|
|
529
|
-
legacyWorkflowYaml: ['old-flow.yaml', 'legacy-engine.yaml'],
|
|
530
|
-
});
|
|
531
|
-
|
|
532
|
-
// Also create a subdirectory that should NOT be removed
|
|
533
|
-
const subDir = path.join(projectRoot, '_bmad', 'bmm', 'workflows', 'sre');
|
|
534
|
-
fs.ensureDirSync(subDir);
|
|
535
|
-
fs.writeFileSync(path.join(subDir, 'health-check.md'), '# workflow', 'utf-8');
|
|
536
|
-
|
|
537
|
-
const cleaned = await bmad.cleanupLegacyArtifacts(projectRoot);
|
|
538
|
-
assert.ok(cleaned.some(p => p.includes('old-flow.yaml')));
|
|
539
|
-
assert.ok(cleaned.some(p => p.includes('legacy-engine.yaml')));
|
|
540
|
-
|
|
541
|
-
// Subdirectory should still exist
|
|
542
|
-
assert.ok(fs.existsSync(subDir));
|
|
543
|
-
assert.ok(fs.existsSync(path.join(subDir, 'health-check.md')));
|
|
544
|
-
});
|
|
545
|
-
|
|
546
|
-
await testAsync('cleanupLegacyArtifacts preserves backup directory (retained until next install)', async () => {
|
|
547
|
-
const projectRoot = createMockProject('cleanup-backup', {
|
|
548
|
-
bmadVersion: '6.0.4',
|
|
549
|
-
customizeFiles: {
|
|
550
|
-
'generic.customize.yaml': 'persona:\n name: "Test"\n',
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
// Create backup
|
|
555
|
-
await bmad.backupCustomizations(projectRoot);
|
|
556
|
-
const backupDir = path.join(projectRoot, '_bmad', '_config', 'agents', '.backup-pre-migration');
|
|
557
|
-
assert.ok(fs.existsSync(backupDir), 'Backup should exist before cleanup');
|
|
558
|
-
|
|
559
|
-
await bmad.cleanupLegacyArtifacts(projectRoot);
|
|
560
|
-
assert.ok(fs.existsSync(backupDir), 'Backup should still exist after cleanup (retained for manual recovery)');
|
|
561
|
-
});
|
|
562
|
-
|
|
563
|
-
await testAsync('backupCustomizations removes pre-existing backup before creating new one', async () => {
|
|
564
|
-
const projectRoot = createMockProject('backup-replace', {
|
|
565
|
-
bmadVersion: '6.0.4',
|
|
566
|
-
customizeFiles: {
|
|
567
|
-
'generic.customize.yaml': 'persona:\n name: "First"\n',
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
// Create first backup
|
|
572
|
-
await bmad.backupCustomizations(projectRoot);
|
|
573
|
-
const backupDir = path.join(projectRoot, '_bmad', '_config', 'agents', '.backup-pre-migration');
|
|
574
|
-
assert.ok(fs.existsSync(backupDir), 'First backup should exist');
|
|
575
|
-
|
|
576
|
-
// Modify the source file
|
|
577
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
578
|
-
fs.writeFileSync(path.join(configDir, 'generic.customize.yaml'), 'persona:\n name: "Second"\n', 'utf-8');
|
|
579
|
-
|
|
580
|
-
// Create second backup — should replace the first
|
|
581
|
-
await bmad.backupCustomizations(projectRoot);
|
|
582
|
-
const content = fs.readFileSync(path.join(backupDir, 'generic.customize.yaml'), 'utf-8');
|
|
583
|
-
assert.ok(content.includes('name: "Second"'), 'Backup should contain the newer content, not the old one');
|
|
584
|
-
});
|
|
585
|
-
|
|
586
|
-
await testAsync('returns empty array when no legacy artifacts', async () => {
|
|
587
|
-
const projectRoot = createMockProject('cleanup-nothing');
|
|
588
|
-
const cleaned = await bmad.cleanupLegacyArtifacts(projectRoot);
|
|
589
|
-
assert.strictEqual(cleaned.length, 0);
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
cleanupTmpDir();
|
|
593
|
-
|
|
594
|
-
// ─── Task 6: Integration / installBmad detection ────────────────────────────
|
|
595
|
-
|
|
596
|
-
console.log('\nTask 6: Integration tests');
|
|
597
|
-
|
|
598
|
-
test('installBmad is still exported and callable', () => {
|
|
599
|
-
assert.strictEqual(typeof bmad.installBmad, 'function');
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
test('updateBmad is still exported and callable', () => {
|
|
603
|
-
assert.strictEqual(typeof bmad.updateBmad, 'function');
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
// ─── Edge cases ─────────────────────────────────────────────────────────────
|
|
607
|
-
|
|
608
|
-
console.log('\nEdge cases');
|
|
609
|
-
|
|
610
|
-
setupTmpDir();
|
|
611
|
-
|
|
612
|
-
test('detectMigrationNeed handles version with quotes', () => {
|
|
613
|
-
const projectRoot = path.join(tmpRoot, 'quoted-version');
|
|
614
|
-
fs.ensureDirSync(path.join(projectRoot, '_bmad', 'core'));
|
|
615
|
-
fs.writeFileSync(
|
|
616
|
-
path.join(projectRoot, '_bmad', 'core', 'config.yaml'),
|
|
617
|
-
"version: '6.0.4'\nname: bmad-method\n",
|
|
618
|
-
'utf-8'
|
|
619
|
-
);
|
|
620
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
621
|
-
assert.strictEqual(result.action, 'update');
|
|
622
|
-
assert.strictEqual(result.migrate, true);
|
|
623
|
-
assert.strictEqual(result.fromVersion, '6.0.4');
|
|
624
|
-
});
|
|
625
|
-
|
|
626
|
-
test('detectMigrationNeed handles version with double quotes', () => {
|
|
627
|
-
const projectRoot = path.join(tmpRoot, 'dquoted-version');
|
|
628
|
-
fs.ensureDirSync(path.join(projectRoot, '_bmad', 'core'));
|
|
629
|
-
fs.writeFileSync(
|
|
630
|
-
path.join(projectRoot, '_bmad', 'core', 'config.yaml'),
|
|
631
|
-
'version: "6.0.4"\nname: bmad-method\n',
|
|
632
|
-
'utf-8'
|
|
633
|
-
);
|
|
634
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
635
|
-
assert.strictEqual(result.migrate, true);
|
|
636
|
-
assert.strictEqual(result.fromVersion, '6.0.4');
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
test('detectMigrationNeed handles version with comment', () => {
|
|
640
|
-
const projectRoot = path.join(tmpRoot, 'comment-version');
|
|
641
|
-
fs.ensureDirSync(path.join(projectRoot, '_bmad', 'core'));
|
|
642
|
-
fs.writeFileSync(
|
|
643
|
-
path.join(projectRoot, '_bmad', 'core', 'config.yaml'),
|
|
644
|
-
'version: 6.0.4 # old version\nname: bmad-method\n',
|
|
645
|
-
'utf-8'
|
|
646
|
-
);
|
|
647
|
-
const result = bmad.detectMigrationNeed(projectRoot);
|
|
648
|
-
assert.strictEqual(result.migrate, true);
|
|
649
|
-
assert.strictEqual(result.fromVersion, '6.0.4');
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
await testAsync('mergeUserCustomizations handles file in backup but not in new deployment', async () => {
|
|
653
|
-
const projectRoot = createMockProject('merge-no-new', {
|
|
654
|
-
bmadVersion: '6.0.4',
|
|
655
|
-
customizeFiles: {
|
|
656
|
-
'custom-agent.customize.yaml': [
|
|
657
|
-
'memories:',
|
|
658
|
-
' - "User memory 1"',
|
|
659
|
-
].join('\n') + '\n',
|
|
660
|
-
}
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
await bmad.backupCustomizations(projectRoot);
|
|
664
|
-
|
|
665
|
-
// Remove the file from config dir (simulating it not being re-deployed)
|
|
666
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
667
|
-
fs.removeSync(path.join(configDir, 'custom-agent.customize.yaml'));
|
|
668
|
-
|
|
669
|
-
// Merge should use backup as base
|
|
670
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
671
|
-
assert.ok(result.merged.includes('custom-agent.customize.yaml'));
|
|
672
|
-
|
|
673
|
-
// The file should now exist with user memories
|
|
674
|
-
const content = fs.readFileSync(path.join(configDir, 'custom-agent.customize.yaml'), 'utf-8');
|
|
675
|
-
assert.ok(content.includes('User memory 1'));
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
cleanupTmpDir();
|
|
679
|
-
|
|
680
|
-
// ─── compareVersions edge cases ─────────────────────────────────────────────
|
|
681
|
-
|
|
682
|
-
console.log('\ncompareVersions edge cases');
|
|
683
|
-
|
|
684
|
-
test('compareVersions is exported', () => {
|
|
685
|
-
assert.strictEqual(typeof bmad.compareVersions, 'function');
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
test('compareVersions("6.2.1-beta.1", "6.2.1") does not crash', () => {
|
|
689
|
-
// Pre-release suffix causes NaN in patch segment, falls back to 0
|
|
690
|
-
const result = bmad.compareVersions('6.2.1-beta.1', '6.2.1');
|
|
691
|
-
assert.ok(typeof result === 'number', 'Should return a number');
|
|
692
|
-
});
|
|
693
|
-
|
|
694
|
-
test('compareVersions("6.2", "6.2.1") does not crash', () => {
|
|
695
|
-
// Two-segment version — missing patch treated as 0
|
|
696
|
-
const result = bmad.compareVersions('6.2', '6.2.1');
|
|
697
|
-
assert.ok(typeof result === 'number', 'Should return a number');
|
|
698
|
-
assert.strictEqual(result, -1, '"6.2" (= 6.2.0) should be less than "6.2.1"');
|
|
699
|
-
});
|
|
700
|
-
|
|
701
|
-
test('compareVersions standard cases', () => {
|
|
702
|
-
assert.strictEqual(bmad.compareVersions('6.0.4', '6.2.1'), -1);
|
|
703
|
-
assert.strictEqual(bmad.compareVersions('6.2.1', '6.2.1'), 0);
|
|
704
|
-
assert.strictEqual(bmad.compareVersions('7.0.0', '6.2.1'), 1);
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
// ─── Fix 9: Adversarial YAML merge tests ───────────────────────────────────
|
|
708
|
-
|
|
709
|
-
console.log('\nAdversarial YAML merge tests');
|
|
710
|
-
|
|
711
|
-
setupTmpDir();
|
|
712
|
-
|
|
713
|
-
await testAsync('adversarial: colons, hashes, and pipes in persona survive round-trip', async () => {
|
|
714
|
-
const projectRoot = createMockProject('adversarial-roundtrip', {
|
|
715
|
-
bmadVersion: '6.0.4',
|
|
716
|
-
customizeFiles: {
|
|
717
|
-
'bmm-dev.customize.yaml': [
|
|
718
|
-
'critical_actions:',
|
|
719
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
720
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
721
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
722
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
723
|
-
'memories:',
|
|
724
|
-
' - "Deploy to env: production # only on Fridays"',
|
|
725
|
-
' - "Use format: key|value pairs"',
|
|
726
|
-
' - "Config path: /etc/app/config.yaml"',
|
|
727
|
-
'persona:',
|
|
728
|
-
' role: "Senior Dev: specializing in backend | frontend"',
|
|
729
|
-
' style: "Cautious # but not paranoid"',
|
|
730
|
-
].join('\n') + '\n',
|
|
731
|
-
}
|
|
732
|
-
});
|
|
733
|
-
|
|
734
|
-
await bmad.backupCustomizations(projectRoot);
|
|
735
|
-
|
|
736
|
-
// Deploy a new file without user content
|
|
737
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
738
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
739
|
-
'critical_actions:',
|
|
740
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
741
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
742
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
743
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
744
|
-
].join('\n') + '\n', 'utf-8');
|
|
745
|
-
|
|
746
|
-
const result = await bmad.mergeUserCustomizations(projectRoot);
|
|
747
|
-
assert.ok(result.merged.includes('bmm-dev.customize.yaml'));
|
|
748
|
-
|
|
749
|
-
const content = fs.readFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), 'utf-8');
|
|
750
|
-
assert.ok(content.includes('env: production # only on Fridays'), 'Colon and hash in memory must survive');
|
|
751
|
-
assert.ok(content.includes('key|value pairs'), 'Pipe in memory must survive');
|
|
752
|
-
assert.ok(content.includes('/etc/app/config.yaml'), 'Colon in path must survive');
|
|
753
|
-
assert.ok(content.includes('Senior Dev: specializing in backend | frontend'), 'Persona with colon and pipe must survive');
|
|
754
|
-
});
|
|
755
|
-
|
|
756
|
-
await testAsync('adversarial: broken input (unbalanced quotes, bare {) does not crash', async () => {
|
|
757
|
-
const projectRoot = createMockProject('adversarial-broken', {
|
|
758
|
-
bmadVersion: '6.0.4',
|
|
759
|
-
customizeFiles: {
|
|
760
|
-
'bmm-dev.customize.yaml': [
|
|
761
|
-
'critical_actions:',
|
|
762
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
763
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
764
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
765
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
766
|
-
'memories:',
|
|
767
|
-
' - "Unbalanced quote: she said \\"hello',
|
|
768
|
-
' - "Bare brace: { is fine"',
|
|
769
|
-
' - "Mixed: key: {val} # comment | pipe"',
|
|
770
|
-
].join('\n') + '\n',
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
|
|
774
|
-
await bmad.backupCustomizations(projectRoot);
|
|
775
|
-
|
|
776
|
-
const configDir = path.join(projectRoot, '_bmad', '_config', 'agents');
|
|
777
|
-
fs.writeFileSync(path.join(configDir, 'bmm-dev.customize.yaml'), [
|
|
778
|
-
'critical_actions:',
|
|
779
|
-
' 1: "Read the skills MANIFEST at {project-root}/_bmad/skills/MANIFEST.yaml"',
|
|
780
|
-
' 2: "For each skill marked always_load: true, read the skill file completely"',
|
|
781
|
-
' 3: "If _bmad-output/project-context.md exists, read it completely"',
|
|
782
|
-
' 4: "Follow all skill directives and project-context rules during this session"',
|
|
783
|
-
].join('\n') + '\n', 'utf-8');
|
|
784
|
-
|
|
785
|
-
// Should not crash — mergeUserCustomizations must be resilient
|
|
786
|
-
let error = null;
|
|
787
|
-
try {
|
|
788
|
-
await bmad.mergeUserCustomizations(projectRoot);
|
|
789
|
-
} catch (e) {
|
|
790
|
-
error = e;
|
|
791
|
-
}
|
|
792
|
-
assert.strictEqual(error, null, 'mergeUserCustomizations must not crash on broken input');
|
|
793
|
-
});
|
|
794
|
-
|
|
795
|
-
await testAsync('adversarial: parseCustomizeYaml handles adversarial content gracefully', async () => {
|
|
796
|
-
const adversarial = [
|
|
797
|
-
'critical_actions:',
|
|
798
|
-
' 1: "Normal action"',
|
|
799
|
-
' 2: "Action with: colon"',
|
|
800
|
-
'memories:',
|
|
801
|
-
' - "Memory with # hash"',
|
|
802
|
-
' - "Memory with | pipe and { brace"',
|
|
803
|
-
'persona:',
|
|
804
|
-
' name: "Agent: Test # Special"',
|
|
805
|
-
].join('\n');
|
|
806
|
-
|
|
807
|
-
const parsed = bmad.parseCustomizeYaml(adversarial);
|
|
808
|
-
assert.strictEqual(parsed.criticalActions.length, 2, 'Should parse 2 critical actions');
|
|
809
|
-
assert.ok(parsed.memories.length >= 2, 'Should parse at least 2 memories');
|
|
810
|
-
assert.ok(parsed.personaLines.length > 0, 'Should parse persona lines');
|
|
811
|
-
});
|
|
812
|
-
|
|
813
|
-
cleanupTmpDir();
|
|
814
|
-
|
|
815
|
-
// ── Summary ─────────────────────────────────────────────────────────────────
|
|
816
|
-
|
|
817
|
-
console.log(`\n${passed} passed, ${failed} failed`);
|
|
818
|
-
if (errors.length > 0) {
|
|
819
|
-
console.log('\nFailures:');
|
|
820
|
-
errors.forEach(({ name, err }) => {
|
|
821
|
-
console.log(` ${name}:`);
|
|
822
|
-
console.log(` ${err.message}`);
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
process.exit(failed > 0 ? 1 : 0);
|
|
826
|
-
|
|
827
|
-
} // end runAllTests
|
|
828
|
-
|
|
829
|
-
runAllTests().catch(err => {
|
|
830
|
-
console.error('Test runner failed:', err);
|
|
831
|
-
process.exit(1);
|
|
832
|
-
});
|