ma-agents 3.12.0 → 3.12.2
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 +235 -235
- package/LICENSE +20 -20
- package/QUICK_START.md +154 -154
- package/README.md +731 -731
- package/SKILLS_STRUCTURE.md +392 -392
- package/bin/cli.js +1681 -1573
- package/docs/architecture.md +284 -284
- package/docs/deployment/vllm-nemotron.md +132 -132
- package/docs/development-guide.md +122 -122
- package/docs/index.md +48 -48
- package/docs/project-overview.md +56 -56
- package/docs/project-scan-report.json +50 -50
- package/docs/source-tree-analysis.md +84 -84
- package/docs/technical-notes/context-persistence-research.md +434 -434
- package/docs/validation/bundled-installation-validation.md +52 -52
- package/examples/programmatic-usage.js +62 -62
- package/index.js +22 -22
- package/lib/agents.js +370 -370
- package/lib/bmad-cache/bmb/.claude-plugin/marketplace.json +50 -50
- package/lib/bmad-cache/bmb/.markdownlint-cli2.yaml +36 -36
- package/lib/bmad-cache/bmb/.prettierignore +9 -9
- package/lib/bmad-cache/bmb/CNAME +1 -1
- package/lib/bmad-cache/bmb/LICENSE +30 -30
- package/lib/bmad-cache/bmb/README.md +75 -75
- package/lib/bmad-cache/bmb/_git_preserved/HEAD +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/config +13 -13
- package/lib/bmad-cache/bmb/_git_preserved/description +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/hooks/applypatch-msg.sample +15 -15
- package/lib/bmad-cache/bmb/_git_preserved/hooks/commit-msg.sample +24 -24
- package/lib/bmad-cache/bmb/_git_preserved/hooks/fsmonitor-watchman.sample +174 -174
- package/lib/bmad-cache/bmb/_git_preserved/hooks/post-update.sample +8 -8
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-applypatch.sample +14 -14
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-commit.sample +49 -49
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-merge-commit.sample +13 -13
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-push.sample +53 -53
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-rebase.sample +169 -169
- package/lib/bmad-cache/bmb/_git_preserved/hooks/pre-receive.sample +24 -24
- package/lib/bmad-cache/bmb/_git_preserved/hooks/prepare-commit-msg.sample +42 -42
- package/lib/bmad-cache/bmb/_git_preserved/hooks/push-to-checkout.sample +78 -78
- package/lib/bmad-cache/bmb/_git_preserved/hooks/sendemail-validate.sample +77 -77
- package/lib/bmad-cache/bmb/_git_preserved/hooks/update.sample +128 -128
- package/lib/bmad-cache/bmb/_git_preserved/info/exclude +6 -6
- package/lib/bmad-cache/bmb/_git_preserved/packed-refs +2 -2
- package/lib/bmad-cache/bmb/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/refs/remotes/origin/HEAD +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/refs/tags/v1.7.0 +1 -1
- package/lib/bmad-cache/bmb/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/bmb/eslint.config.mjs +141 -141
- package/lib/bmad-cache/bmb/package-lock.json +15283 -15283
- package/lib/bmad-cache/bmb/package.json +86 -86
- package/lib/bmad-cache/bmb/prettier.config.mjs +32 -32
- package/lib/bmad-cache/bmb/samples/bmad-agent-code-coach/scripts/init-sanctum.py +288 -288
- package/lib/bmad-cache/bmb/samples/bmad-agent-creative-muse/scripts/init-sanctum.py +274 -274
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/assets/module-help.csv +9 -9
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/assets/module.yaml +8 -8
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/merge-config.py +408 -408
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/merge-help-csv.py +218 -218
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/recall_metrics.py +229 -229
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/seed_tracker.py +156 -156
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/symbol_stats.py +162 -162
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/tests/test_recall_metrics.py +115 -115
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/tests/test_seed_tracker.py +140 -140
- package/lib/bmad-cache/bmb/samples/bmad-agent-dream-weaver/scripts/tests/test_symbol_stats.py +113 -113
- package/lib/bmad-cache/bmb/samples/bmad-agent-sentinel/scripts/init-sanctum.py +285 -285
- package/lib/bmad-cache/bmb/samples/bmad-agent-sentinel/scripts/tests/test-init-sanctum.py +174 -174
- package/lib/bmad-cache/bmb/samples/bmad-excalidraw/scripts/generate_excalidraw.py +605 -605
- package/lib/bmad-cache/bmb/samples/bmad-excalidraw/scripts/tests/test_generate_excalidraw.py +360 -360
- package/lib/bmad-cache/bmb/samples/bmad-excalidraw/scripts/tests/test_validate_excalidraw.py +246 -246
- package/lib/bmad-cache/bmb/samples/bmad-excalidraw/scripts/validate_excalidraw.py +264 -264
- package/lib/bmad-cache/bmb/samples/sample-module-setup/assets/module-help.csv +16 -16
- package/lib/bmad-cache/bmb/samples/sample-module-setup/assets/module.yaml +13 -13
- package/lib/bmad-cache/bmb/samples/sample-module-setup/scripts/cleanup-legacy.py +259 -259
- package/lib/bmad-cache/bmb/samples/sample-module-setup/scripts/merge-config.py +408 -408
- package/lib/bmad-cache/bmb/samples/sample-module-setup/scripts/merge-help-csv.py +218 -218
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/assets/customize-template.toml +62 -62
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/assets/init-sanctum-template.py +277 -277
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/assets/sample-customize-analyst.toml +87 -87
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/references/sample-init-sanctum.py +274 -274
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/generate-html-report.py +534 -534
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/prepass-execution-deps.py +337 -337
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/prepass-prompt-metrics.py +425 -425
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/prepass-sanctum-architecture.py +385 -385
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/prepass-structure-capabilities.py +482 -482
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/process-template.py +190 -190
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/scan-path-standards.py +324 -324
- package/lib/bmad-cache/bmb/skills/bmad-agent-builder/scripts/scan-scripts.py +747 -747
- package/lib/bmad-cache/bmb/skills/bmad-bmb-setup/assets/module-help.csv +10 -10
- package/lib/bmad-cache/bmb/skills/bmad-bmb-setup/assets/module.yaml +20 -20
- package/lib/bmad-cache/bmb/skills/bmad-bmb-setup/scripts/cleanup-legacy.py +259 -259
- package/lib/bmad-cache/bmb/skills/bmad-bmb-setup/scripts/merge-config.py +408 -408
- package/lib/bmad-cache/bmb/skills/bmad-bmb-setup/scripts/merge-help-csv.py +218 -218
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/setup-skill-template/assets/module-help.csv +1 -1
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/setup-skill-template/assets/module.yaml +6 -6
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/setup-skill-template/scripts/cleanup-legacy.py +259 -259
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/setup-skill-template/scripts/merge-config.py +408 -408
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/setup-skill-template/scripts/merge-help-csv.py +218 -218
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/standalone-module-template/merge-config.py +408 -408
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/assets/standalone-module-template/merge-help-csv.py +218 -218
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/scaffold-setup-skill.py +124 -124
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/scaffold-standalone-module.py +190 -190
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/tests/test-scaffold-setup-skill.py +230 -230
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/tests/test-scaffold-standalone-module.py +266 -266
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/tests/test-validate-module.py +314 -314
- package/lib/bmad-cache/bmb/skills/bmad-module-builder/scripts/validate-module.py +293 -293
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/assets/customize-template.toml +56 -56
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/assets/sample-customize-product-brief.toml +51 -51
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/generate-convert-report.py +406 -406
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/generate-html-report.py +539 -539
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/prepass-execution-deps.py +288 -288
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/prepass-prompt-metrics.py +285 -285
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/prepass-workflow-integrity.py +475 -475
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/scan-path-standards.py +298 -298
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/scan-scripts.py +745 -745
- package/lib/bmad-cache/bmb/skills/bmad-workflow-builder/scripts/tests/test_generate_convert_report.py +243 -243
- package/lib/bmad-cache/bmb/skills/module-help.csv +11 -11
- package/lib/bmad-cache/bmb/skills/module.yaml +20 -20
- package/lib/bmad-cache/bmb/tools/build-docs.mjs +448 -448
- package/lib/bmad-cache/bmb/tools/validate-doc-links.cjs +412 -412
- package/lib/bmad-cache/bmb/tools/validate-file-refs.mjs +657 -657
- package/lib/bmad-cache/bmb/website/astro.config.mjs +142 -142
- package/lib/bmad-cache/bmb/website/src/components/Banner.astro +57 -57
- package/lib/bmad-cache/bmb/website/src/components/Header.astro +94 -94
- package/lib/bmad-cache/bmb/website/src/components/MobileMenuFooter.astro +33 -33
- package/lib/bmad-cache/bmb/website/src/content/config.ts +6 -6
- package/lib/bmad-cache/bmb/website/src/lib/site-url.mjs +25 -25
- package/lib/bmad-cache/bmb/website/src/rehype-base-paths.js +88 -88
- package/lib/bmad-cache/bmb/website/src/rehype-markdown-links.js +117 -117
- package/lib/bmad-cache/bmb/website/src/styles/custom.css +502 -502
- package/lib/bmad-cache/cache-manifest.json +37 -37
- package/lib/bmad-cache/cis/.claude-plugin/marketplace.json +33 -33
- package/lib/bmad-cache/cis/.markdownlint-cli2.yaml +35 -35
- package/lib/bmad-cache/cis/.prettierignore +9 -9
- package/lib/bmad-cache/cis/CNAME +1 -1
- package/lib/bmad-cache/cis/LICENSE +26 -26
- package/lib/bmad-cache/cis/README.md +114 -114
- package/lib/bmad-cache/cis/_git_preserved/HEAD +1 -1
- package/lib/bmad-cache/cis/_git_preserved/config +13 -13
- package/lib/bmad-cache/cis/_git_preserved/description +1 -1
- package/lib/bmad-cache/cis/_git_preserved/hooks/applypatch-msg.sample +15 -15
- package/lib/bmad-cache/cis/_git_preserved/hooks/commit-msg.sample +24 -24
- package/lib/bmad-cache/cis/_git_preserved/hooks/fsmonitor-watchman.sample +174 -174
- package/lib/bmad-cache/cis/_git_preserved/hooks/post-update.sample +8 -8
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-applypatch.sample +14 -14
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-commit.sample +49 -49
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-merge-commit.sample +13 -13
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-push.sample +53 -53
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-rebase.sample +169 -169
- package/lib/bmad-cache/cis/_git_preserved/hooks/pre-receive.sample +24 -24
- package/lib/bmad-cache/cis/_git_preserved/hooks/prepare-commit-msg.sample +42 -42
- package/lib/bmad-cache/cis/_git_preserved/hooks/push-to-checkout.sample +78 -78
- package/lib/bmad-cache/cis/_git_preserved/hooks/sendemail-validate.sample +77 -77
- package/lib/bmad-cache/cis/_git_preserved/hooks/update.sample +128 -128
- package/lib/bmad-cache/cis/_git_preserved/info/exclude +6 -6
- package/lib/bmad-cache/cis/_git_preserved/packed-refs +2 -2
- package/lib/bmad-cache/cis/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/cis/_git_preserved/refs/remotes/origin/HEAD +1 -1
- package/lib/bmad-cache/cis/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/cis/eslint.config.mjs +141 -141
- package/lib/bmad-cache/cis/package-lock.json +17015 -17015
- package/lib/bmad-cache/cis/package.json +91 -91
- package/lib/bmad-cache/cis/prettier.config.mjs +32 -32
- package/lib/bmad-cache/cis/src/module-help.csv +7 -7
- package/lib/bmad-cache/cis/src/module.yaml +76 -76
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-brainstorming-coach/customize.toml +38 -38
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-creative-problem-solver/customize.toml +38 -38
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-design-thinking-coach/customize.toml +39 -39
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-innovation-strategist/customize.toml +38 -38
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-presentation-master/customize.toml +73 -73
- package/lib/bmad-cache/cis/src/skills/bmad-cis-agent-storyteller/customize.toml +60 -60
- package/lib/bmad-cache/cis/src/skills/bmad-cis-design-thinking/customize.toml +41 -41
- package/lib/bmad-cache/cis/src/skills/bmad-cis-design-thinking/design-methods.csv +30 -30
- package/lib/bmad-cache/cis/src/skills/bmad-cis-innovation-strategy/customize.toml +41 -41
- package/lib/bmad-cache/cis/src/skills/bmad-cis-innovation-strategy/innovation-frameworks.csv +30 -30
- package/lib/bmad-cache/cis/src/skills/bmad-cis-problem-solving/customize.toml +42 -42
- package/lib/bmad-cache/cis/src/skills/bmad-cis-problem-solving/solving-methods.csv +30 -30
- package/lib/bmad-cache/cis/src/skills/bmad-cis-storytelling/customize.toml +41 -41
- package/lib/bmad-cache/cis/src/skills/bmad-cis-storytelling/story-types.csv +25 -25
- package/lib/bmad-cache/cis/tools/build-docs.mjs +456 -456
- package/lib/bmad-cache/cis/website/astro.config.mjs +172 -172
- package/lib/bmad-cache/cis/website/src/components/Banner.astro +71 -71
- package/lib/bmad-cache/cis/website/src/components/Header.astro +94 -94
- package/lib/bmad-cache/cis/website/src/components/MobileMenuFooter.astro +33 -33
- package/lib/bmad-cache/cis/website/src/content/config.ts +7 -7
- package/lib/bmad-cache/cis/website/src/content/i18n/zh-CN.json +28 -28
- package/lib/bmad-cache/cis/website/src/lib/locales.mjs +27 -27
- package/lib/bmad-cache/cis/website/src/lib/site-url.mjs +25 -25
- package/lib/bmad-cache/cis/website/src/rehype-base-paths.js +88 -88
- package/lib/bmad-cache/cis/website/src/rehype-markdown-links.js +117 -117
- package/lib/bmad-cache/cis/website/src/styles/custom.css +503 -503
- package/lib/bmad-cache/gds/.claude-plugin/marketplace.json +59 -59
- package/lib/bmad-cache/gds/.markdownlint-cli2.yaml +35 -35
- package/lib/bmad-cache/gds/.prettierignore +9 -9
- package/lib/bmad-cache/gds/CNAME +1 -1
- package/lib/bmad-cache/gds/LICENSE +26 -26
- package/lib/bmad-cache/gds/README.md +132 -132
- package/lib/bmad-cache/gds/_git_preserved/HEAD +1 -1
- package/lib/bmad-cache/gds/_git_preserved/config +13 -13
- package/lib/bmad-cache/gds/_git_preserved/description +1 -1
- package/lib/bmad-cache/gds/_git_preserved/hooks/applypatch-msg.sample +15 -15
- package/lib/bmad-cache/gds/_git_preserved/hooks/commit-msg.sample +24 -24
- package/lib/bmad-cache/gds/_git_preserved/hooks/fsmonitor-watchman.sample +174 -174
- package/lib/bmad-cache/gds/_git_preserved/hooks/post-update.sample +8 -8
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-applypatch.sample +14 -14
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-commit.sample +49 -49
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-merge-commit.sample +13 -13
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-push.sample +53 -53
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-rebase.sample +169 -169
- package/lib/bmad-cache/gds/_git_preserved/hooks/pre-receive.sample +24 -24
- package/lib/bmad-cache/gds/_git_preserved/hooks/prepare-commit-msg.sample +42 -42
- package/lib/bmad-cache/gds/_git_preserved/hooks/push-to-checkout.sample +78 -78
- package/lib/bmad-cache/gds/_git_preserved/hooks/sendemail-validate.sample +77 -77
- package/lib/bmad-cache/gds/_git_preserved/hooks/update.sample +128 -128
- package/lib/bmad-cache/gds/_git_preserved/info/exclude +6 -6
- package/lib/bmad-cache/gds/_git_preserved/packed-refs +2 -2
- package/lib/bmad-cache/gds/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/gds/_git_preserved/refs/remotes/origin/HEAD +1 -1
- package/lib/bmad-cache/gds/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/gds/eslint.config.mjs +141 -141
- package/lib/bmad-cache/gds/package.json +91 -91
- package/lib/bmad-cache/gds/prettier.config.mjs +32 -32
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-architect/customize.toml +57 -57
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-designer/customize.toml +59 -59
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/customize.toml +129 -129
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-dev/gametest/qa-index.csv +18 -18
- package/lib/bmad-cache/gds/src/agents/gds-agent-game-solo-dev/customize.toml +60 -60
- package/lib/bmad-cache/gds/src/agents/gds-agent-tech-writer/customize.toml +65 -65
- package/lib/bmad-cache/gds/src/module-help.csv +36 -36
- package/lib/bmad-cache/gds/src/module.yaml +113 -113
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-brainstorm-game/game-brain-methods.csv +25 -25
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/gds-create-game-brief/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/1-preproduction/research/gds-domain-research/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-gdd/game-types.csv +24 -24
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-narrative/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-prd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-prd/data/domain-complexity.csv +14 -14
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-prd/data/project-types.csv +10 -10
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-create-ux-design/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-edit-gdd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-edit-prd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-gdd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-gdd/data/genre-complexity.csv +26 -26
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/data/domain-complexity.csv +14 -14
- package/lib/bmad-cache/gds/src/workflows/2-design/gds-validate-prd/data/project-types.csv +10 -10
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-check-implementation-readiness/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-create-epics-and-stories/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/architecture-patterns.yaml +507 -507
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/decision-catalog.yaml +340 -340
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/engine-mcps.yaml +270 -270
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-game-architecture/pattern-categories.csv +12 -12
- package/lib/bmad-cache/gds/src/workflows/3-technical/gds-generate-project-context/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-code-review/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-correct-course/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-create-story/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-dev-story/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-retrospective/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-planning/sprint-status-template.yaml +55 -55
- package/lib/bmad-cache/gds/src/workflows/4-production/gds-sprint-status/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-e2e-scaffold/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-performance-test/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-playtest-plan/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-automate/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-design/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-framework/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gametest/gds-test-review/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/customize.toml +41 -41
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/documentation-requirements.csv +12 -12
- package/lib/bmad-cache/gds/src/workflows/gds-document-project/templates/project-scan-report-schema.json +160 -160
- package/lib/bmad-cache/gds/src/workflows/gds-quick-flow/gds-quick-dev/customize.toml +41 -41
- package/lib/bmad-cache/gds/tools/build-docs.mjs +450 -450
- package/lib/bmad-cache/gds/website/astro.config.mjs +142 -142
- package/lib/bmad-cache/gds/website/src/components/Banner.astro +71 -71
- package/lib/bmad-cache/gds/website/src/components/Header.astro +94 -94
- package/lib/bmad-cache/gds/website/src/components/MobileMenuFooter.astro +33 -33
- package/lib/bmad-cache/gds/website/src/content/config.ts +6 -6
- package/lib/bmad-cache/gds/website/src/lib/site-url.mjs +25 -25
- package/lib/bmad-cache/gds/website/src/rehype-base-paths.js +88 -88
- package/lib/bmad-cache/gds/website/src/rehype-markdown-links.js +117 -117
- package/lib/bmad-cache/gds/website/src/styles/custom.css +503 -503
- package/lib/bmad-cache/tea/.claude-plugin/marketplace.json +33 -33
- package/lib/bmad-cache/tea/.coderabbit.yaml +40 -40
- package/lib/bmad-cache/tea/.github/CODE_OF_CONDUCT.md +128 -128
- package/lib/bmad-cache/tea/.github/FUNDING.yaml +15 -15
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/config.yaml +11 -11
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/feature_request.md +70 -70
- package/lib/bmad-cache/tea/.github/ISSUE_TEMPLATE/issue.md +61 -61
- package/lib/bmad-cache/tea/.github/workflows/docs.yaml +66 -66
- package/lib/bmad-cache/tea/.github/workflows/quality.yaml +117 -117
- package/lib/bmad-cache/tea/.husky/pre-commit +20 -20
- package/lib/bmad-cache/tea/.markdownlint-cli2.yaml +36 -36
- package/lib/bmad-cache/tea/.prettierignore +9 -9
- package/lib/bmad-cache/tea/CHANGELOG.md +241 -241
- package/lib/bmad-cache/tea/CONTRIBUTING.md +268 -268
- package/lib/bmad-cache/tea/LICENSE +26 -26
- package/lib/bmad-cache/tea/README.md +416 -416
- package/lib/bmad-cache/tea/SECURITY.md +85 -85
- package/lib/bmad-cache/tea/_git_preserved/HEAD +1 -1
- package/lib/bmad-cache/tea/_git_preserved/config +13 -13
- package/lib/bmad-cache/tea/_git_preserved/description +1 -1
- package/lib/bmad-cache/tea/_git_preserved/hooks/applypatch-msg.sample +15 -15
- package/lib/bmad-cache/tea/_git_preserved/hooks/commit-msg.sample +24 -24
- package/lib/bmad-cache/tea/_git_preserved/hooks/fsmonitor-watchman.sample +174 -174
- package/lib/bmad-cache/tea/_git_preserved/hooks/post-update.sample +8 -8
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-applypatch.sample +14 -14
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-commit.sample +49 -49
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-merge-commit.sample +13 -13
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-push.sample +53 -53
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-rebase.sample +169 -169
- package/lib/bmad-cache/tea/_git_preserved/hooks/pre-receive.sample +24 -24
- package/lib/bmad-cache/tea/_git_preserved/hooks/prepare-commit-msg.sample +42 -42
- package/lib/bmad-cache/tea/_git_preserved/hooks/push-to-checkout.sample +78 -78
- package/lib/bmad-cache/tea/_git_preserved/hooks/sendemail-validate.sample +77 -77
- package/lib/bmad-cache/tea/_git_preserved/hooks/update.sample +128 -128
- package/lib/bmad-cache/tea/_git_preserved/info/exclude +6 -6
- package/lib/bmad-cache/tea/_git_preserved/packed-refs +2 -2
- package/lib/bmad-cache/tea/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/tea/_git_preserved/refs/remotes/origin/HEAD +1 -1
- package/lib/bmad-cache/tea/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/tea/docs/404.md +20 -20
- package/lib/bmad-cache/tea/docs/explanation/engagement-models.md +767 -767
- package/lib/bmad-cache/tea/docs/explanation/fixture-architecture.md +484 -484
- package/lib/bmad-cache/tea/docs/explanation/knowledge-base-system.md +601 -601
- package/lib/bmad-cache/tea/docs/explanation/network-first-patterns.md +884 -884
- package/lib/bmad-cache/tea/docs/explanation/risk-based-testing.md +628 -628
- package/lib/bmad-cache/tea/docs/explanation/step-file-architecture.md +599 -599
- package/lib/bmad-cache/tea/docs/explanation/subagent-architecture.md +189 -189
- package/lib/bmad-cache/tea/docs/explanation/tea-overview.md +474 -474
- package/lib/bmad-cache/tea/docs/explanation/test-quality-standards.md +965 -965
- package/lib/bmad-cache/tea/docs/explanation/testing-as-engineering.md +115 -115
- package/lib/bmad-cache/tea/docs/glossary/index.md +160 -160
- package/lib/bmad-cache/tea/docs/how-to/brownfield/use-tea-for-enterprise.md +571 -571
- package/lib/bmad-cache/tea/docs/how-to/brownfield/use-tea-with-existing-tests.md +631 -631
- package/lib/bmad-cache/tea/docs/how-to/customization/configure-browser-automation.md +243 -243
- package/lib/bmad-cache/tea/docs/how-to/customization/extend-tea-with-custom-workflows.md +102 -102
- package/lib/bmad-cache/tea/docs/how-to/customization/integrate-playwright-utils.md +846 -846
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-atdd.md +462 -462
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-automate.md +693 -693
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-nfr-assess.md +731 -731
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-test-design.md +144 -144
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-test-review.md +634 -634
- package/lib/bmad-cache/tea/docs/how-to/workflows/run-trace.md +966 -966
- package/lib/bmad-cache/tea/docs/how-to/workflows/setup-ci.md +763 -763
- package/lib/bmad-cache/tea/docs/how-to/workflows/setup-test-framework.md +122 -122
- package/lib/bmad-cache/tea/docs/how-to/workflows/teach-me-testing.md +302 -302
- package/lib/bmad-cache/tea/docs/index.md +65 -65
- package/lib/bmad-cache/tea/docs/reference/commands.md +356 -356
- package/lib/bmad-cache/tea/docs/reference/configuration.md +1144 -1144
- package/lib/bmad-cache/tea/docs/reference/knowledge-base.md +406 -406
- package/lib/bmad-cache/tea/docs/reference/troubleshooting.md +837 -837
- package/lib/bmad-cache/tea/docs/tutorials/learn-testing-tea-academy.md +266 -266
- package/lib/bmad-cache/tea/docs/tutorials/tea-lite-quickstart.md +465 -465
- package/lib/bmad-cache/tea/eslint.config.mjs +141 -141
- package/lib/bmad-cache/tea/package-lock.json +16046 -16046
- package/lib/bmad-cache/tea/package.json +118 -118
- package/lib/bmad-cache/tea/prettier.config.mjs +32 -32
- package/lib/bmad-cache/tea/src/agents/bmad-tea/SKILL.md +80 -80
- package/lib/bmad-cache/tea/src/agents/bmad-tea/customize.toml +104 -104
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-consumer-framework-setup.md +704 -704
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-consumer-helpers.md +379 -379
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-overview.md +219 -219
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/pactjs-utils-zod-to-pact.md +262 -262
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/agents/bmad-tea/resources/tea-index.csv +52 -52
- package/lib/bmad-cache/tea/src/module-help.csv +11 -11
- package/lib/bmad-cache/tea/src/module.yaml +307 -307
- package/lib/bmad-cache/tea/src/workflows/testarch/README.md +76 -76
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/SKILL.md +129 -129
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/checklist.md +198 -198
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/data/curriculum.yaml +129 -129
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/data/quiz-questions.yaml +206 -206
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/data/role-paths.yaml +136 -136
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/data/session-content-map.yaml +219 -219
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/data/tea-resources-index.yaml +394 -394
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/instructions.md +137 -137
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-01-init.md +235 -235
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-01b-continue.md +147 -147
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-02-assess.md +258 -258
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-03-session-menu.md +219 -219
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-01.md +460 -460
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-02.md +465 -465
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-03.md +301 -301
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-04.md +234 -234
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-05.md +234 -234
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-06.md +209 -209
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-04-session-07.md +220 -220
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-c/step-05-completion.md +347 -347
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-e/step-e-01-assess-workflow.md +141 -141
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-e/step-e-02-apply-edits.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/steps-v/step-v-01-validate.md +272 -272
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/templates/certificate-template.md +86 -86
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/templates/progress-template.yaml +95 -95
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/templates/session-notes-template.md +83 -83
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-teach-me-testing/workflow-plan-teach-me-testing.md +950 -950
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/atdd-checklist-template.md +394 -394
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/checklist.md +375 -375
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/instructions.md +44 -44
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/contract-testing.md +1067 -1067
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-overview.md +219 -219
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/pactjs-utils-zod-to-pact.md +262 -262
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/resources/tea-index.csv +52 -52
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-01-preflight-and-context.md +244 -244
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-01b-resume.md +96 -96
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-02-generation-mode.md +125 -125
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-03-test-strategy.md +110 -110
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04-generate-tests.md +335 -335
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04a-subagent-api-failing.md +294 -294
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04b-subagent-e2e-failing.md +244 -244
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-04c-aggregate.md +394 -394
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-c/step-05-validate-and-complete.md +123 -123
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/validation-report-20260127-095021.md +73 -73
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/validation-report-20260127-102401.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/workflow-plan.md +21 -21
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-atdd/workflow.yaml +46 -46
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/checklist.md +611 -611
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/instructions.md +49 -49
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-01-preflight-and-context.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-01b-resume.md +94 -94
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-02-identify-targets.md +169 -169
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03-generate-tests.md +394 -394
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03a-subagent-api.md +271 -271
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03b-subagent-backend.md +246 -246
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03b-subagent-e2e.md +213 -213
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-03c-aggregate.md +398 -398
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-c/step-04-validate-and-summarize.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/validation-report-20260127-095021.md +72 -72
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/validation-report-20260127-102401.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/workflow-plan.md +20 -20
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-automate/workflow.yaml +53 -53
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/azure-pipelines-template.yaml +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/checklist.md +289 -289
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/github-actions-template.yaml +328 -328
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/gitlab-ci-template.yaml +158 -158
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/harness-pipeline-template.yaml +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/instructions.md +44 -44
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/jenkins-pipeline-template.groovy +129 -129
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-01-preflight.md +158 -158
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-01b-resume.md +110 -110
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-02-generate-pipeline.md +293 -293
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-03-configure-quality-gates.md +145 -145
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-c/step-04-validate-and-summary.md +100 -100
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/steps-v/step-01-validate.md +89 -89
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/validation-report-20260127-095021.md +72 -72
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/validation-report-20260127-102401.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/workflow-plan.md +20 -20
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-ci/workflow.yaml +48 -48
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/checklist.md +345 -345
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/instructions.md +44 -44
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-01-preflight.md +132 -132
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-01b-resume.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-02-select-framework.md +117 -117
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-03-scaffold-framework.md +328 -328
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-04-docs-and-scripts.md +105 -105
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-c/step-05-validate-and-summary.md +101 -101
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/validation-report-20260127-095021.md +73 -73
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/validation-report-20260127-102401.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/workflow-plan.md +22 -22
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-framework/workflow.yaml +48 -48
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/checklist.md +407 -407
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/instructions.md +43 -43
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/nfr-report-template.md +470 -470
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-01-load-context.md +138 -138
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-01b-resume.md +106 -106
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-02-define-thresholds.md +107 -107
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-03-gather-evidence.md +108 -108
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04-evaluate-and-score.md +254 -254
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04a-subagent-security.md +138 -138
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04b-subagent-performance.md +84 -84
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04c-subagent-reliability.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04d-subagent-scalability.md +88 -88
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-04e-aggregate-nfr.md +264 -264
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-c/step-05-generate-report.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/validation-report-20260127-095021.md +73 -73
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/validation-report-20260127-102401.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/workflow-plan.md +19 -19
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-nfr/workflow.yaml +48 -48
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/SKILL.md +87 -87
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/checklist.md +464 -464
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/instructions.md +104 -104
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-01-detect-mode.md +140 -140
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-01b-resume.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-02-load-context.md +248 -248
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-03-risk-and-testability.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-04-coverage-plan.md +129 -129
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-c/step-05-generate-output.md +236 -236
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-architecture-template.md +233 -233
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-handoff-template.md +70 -70
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-qa-template.md +399 -399
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/test-design-template.md +347 -347
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/validation-report-20260127-095021.md +73 -73
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/validation-report-20260127-102401.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/workflow-plan.md +22 -22
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-design/workflow.yaml +77 -77
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/SKILL.md +85 -85
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/checklist.md +475 -475
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/instructions.md +45 -45
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-01-load-context.md +197 -197
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-01b-resume.md +104 -104
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-02-discover-tests.md +120 -120
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03-quality-evaluation.md +274 -274
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03a-subagent-determinism.md +257 -257
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03b-subagent-isolation.md +125 -125
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03c-subagent-maintainability.md +102 -102
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03e-subagent-performance.md +117 -117
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-03f-aggregate-scores.md +277 -277
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-c/step-04-generate-report.md +119 -119
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/test-review-template.md +387 -387
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/validation-report-20260127-095021.md +72 -72
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/validation-report-20260127-102401.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/workflow-plan.md +18 -18
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-test-review/workflow.yaml +48 -48
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/SKILL.md +87 -87
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/checklist.md +671 -671
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/customize.toml +40 -40
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/instructions.md +45 -45
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/adr-quality-readiness-checklist.md +377 -377
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/api-request.md +563 -563
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/api-testing-patterns.md +915 -915
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/auth-session.md +548 -548
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/burn-in.md +273 -273
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/ci-burn-in.md +717 -717
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/component-tdd.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/contract-testing.md +1066 -1066
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/data-factories.md +500 -500
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/email-auth.md +721 -721
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/error-handling.md +725 -725
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/feature-flags.md +750 -750
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/file-utils.md +456 -456
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/fixture-architecture.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/fixtures-composition.md +382 -382
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/intercept-network-call.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/log.md +426 -426
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/network-error-monitor.md +401 -401
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/network-first.md +486 -486
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/network-recorder.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/nfr-criteria.md +670 -670
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/overview.md +286 -286
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-broker-webhooks.md +237 -237
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-consumer-di.md +310 -310
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-consumer-framework-setup.md +757 -757
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pact-mcp.md +205 -205
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-consumer-helpers.md +380 -380
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-overview.md +216 -216
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-provider-verifier.md +397 -397
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/pactjs-utils-request-filter.md +224 -224
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/playwright-cli.md +280 -280
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/playwright-config.md +734 -734
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/probability-impact.md +601 -601
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/recurse.md +421 -421
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/risk-governance.md +615 -615
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/selective-testing.md +732 -732
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/selector-resilience.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/test-healing-patterns.md +644 -644
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/test-levels-framework.md +473 -473
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/test-priorities-matrix.md +373 -373
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/test-quality.md +664 -664
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/timing-debugging.md +372 -372
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/visual-debugging.md +527 -527
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-module-setup.md +122 -122
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-providers.md +155 -155
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-risk-guidance.md +114 -114
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-template-matchers.md +160 -160
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-testing-fundamentals.md +42 -42
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-timeout-error.md +130 -130
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/knowledge/webhook-waiting-querying.md +167 -167
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/resources/tea-index.csv +51 -51
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-01-load-context.md +166 -166
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-01b-resume.md +102 -102
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-02-discover-tests.md +132 -132
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-03-map-criteria.md +101 -101
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-04-analyze-gaps.md +628 -628
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-c/step-05-gate-decision.md +681 -681
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-e/step-01-assess.md +65 -65
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-e/step-02-apply-edit.md +68 -68
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/steps-v/step-01-validate.md +75 -75
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/trace-template.md +716 -716
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/validation-report-20260127-095021.md +73 -73
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/validation-report-20260127-102401.md +116 -116
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/workflow-plan.md +24 -24
- package/lib/bmad-cache/tea/src/workflows/testarch/bmad-testarch-trace/workflow.yaml +80 -80
- package/lib/bmad-cache/tea/test/README.md +23 -23
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +27 -27
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +30 -30
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +22 -22
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +20 -20
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +31 -31
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +25 -25
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/metadata/empty-module-string.agent.yaml +26 -26
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/metadata/empty-name.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +27 -27
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/metadata/missing-id.agent.yaml +23 -23
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +27 -27
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +27 -27
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +29 -29
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +31 -31
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +28 -28
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +28 -28
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/top-level/empty-file.agent.yaml +5 -5
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +28 -28
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/top-level/missing-agent-key.agent.yaml +11 -11
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/yaml-errors/invalid-indentation.agent.yaml +19 -19
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/invalid/yaml-errors/malformed-yaml.agent.yaml +18 -18
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +22 -22
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +27 -27
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +31 -31
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +22 -22
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +37 -37
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml +31 -31
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +34 -34
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml +23 -23
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +22 -22
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +28 -28
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +30 -30
- package/lib/bmad-cache/tea/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +24 -24
- package/lib/bmad-cache/tea/test/schema/agent.js +491 -491
- package/lib/bmad-cache/tea/test/test-agent-schema.js +387 -387
- package/lib/bmad-cache/tea/test/test-installation-components.js +422 -422
- package/lib/bmad-cache/tea/test/test-knowledge-base.js +213 -213
- package/lib/bmad-cache/tea/test/test-release-metadata.js +71 -71
- package/lib/bmad-cache/tea/test/unit-test-schema.js +133 -133
- package/lib/bmad-cache/tea/test/validate-agent-schema.js +110 -110
- package/lib/bmad-cache/tea/tools/build-docs.js +575 -575
- package/lib/bmad-cache/tea/tools/fix-doc-links.js +288 -288
- package/lib/bmad-cache/tea/tools/schema/agent.js +491 -491
- package/lib/bmad-cache/tea/tools/validate-agent-schema.js +284 -284
- package/lib/bmad-cache/tea/tools/validate-doc-links.js +371 -371
- package/lib/bmad-cache/tea/tools/validate-tea-workflow-descriptions.js +122 -122
- package/lib/bmad-cache/tea/tools/verify-paths.js +100 -100
- package/lib/bmad-cache/tea/website/README.md +137 -137
- package/lib/bmad-cache/tea/website/astro.config.mjs +183 -183
- package/lib/bmad-cache/tea/website/package-lock.json +6856 -6856
- package/lib/bmad-cache/tea/website/package.json +24 -24
- package/lib/bmad-cache/tea/website/public/img/tea-logo.svg +7 -7
- package/lib/bmad-cache/tea/website/public/robots.txt +37 -37
- package/lib/bmad-cache/tea/website/src/components/Banner.astro +74 -74
- package/lib/bmad-cache/tea/website/src/components/Header.astro +121 -121
- package/lib/bmad-cache/tea/website/src/components/MobileMenuFooter.astro +53 -53
- package/lib/bmad-cache/tea/website/src/content/config.ts +6 -6
- package/lib/bmad-cache/tea/website/src/lib/site-url.js +25 -25
- package/lib/bmad-cache/tea/website/src/pages/404.astro +11 -11
- package/lib/bmad-cache/tea/website/src/rehype-base-paths.js +89 -89
- package/lib/bmad-cache/tea/website/src/rehype-markdown-links.js +117 -117
- package/lib/bmad-cache/tea/website/src/styles/custom.css +518 -518
- package/lib/bmad-cache/tea/website/tsconfig.json +9 -9
- package/lib/bmad-cache/wds/.claude-plugin/marketplace.json +35 -35
- package/lib/bmad-cache/wds/.markdownlint-cli2.yaml +38 -38
- package/lib/bmad-cache/wds/.prettierignore +9 -9
- package/lib/bmad-cache/wds/LICENSE +27 -27
- package/lib/bmad-cache/wds/README.md +139 -139
- package/lib/bmad-cache/wds/_git_preserved/HEAD +1 -1
- package/lib/bmad-cache/wds/_git_preserved/config +13 -13
- package/lib/bmad-cache/wds/_git_preserved/description +1 -1
- package/lib/bmad-cache/wds/_git_preserved/hooks/applypatch-msg.sample +15 -15
- package/lib/bmad-cache/wds/_git_preserved/hooks/commit-msg.sample +24 -24
- package/lib/bmad-cache/wds/_git_preserved/hooks/fsmonitor-watchman.sample +174 -174
- package/lib/bmad-cache/wds/_git_preserved/hooks/post-update.sample +8 -8
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-applypatch.sample +14 -14
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-commit.sample +49 -49
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-merge-commit.sample +13 -13
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-push.sample +53 -53
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-rebase.sample +169 -169
- package/lib/bmad-cache/wds/_git_preserved/hooks/pre-receive.sample +24 -24
- package/lib/bmad-cache/wds/_git_preserved/hooks/prepare-commit-msg.sample +42 -42
- package/lib/bmad-cache/wds/_git_preserved/hooks/push-to-checkout.sample +78 -78
- package/lib/bmad-cache/wds/_git_preserved/hooks/sendemail-validate.sample +77 -77
- package/lib/bmad-cache/wds/_git_preserved/hooks/update.sample +128 -128
- package/lib/bmad-cache/wds/_git_preserved/info/exclude +6 -6
- package/lib/bmad-cache/wds/_git_preserved/packed-refs +2 -2
- package/lib/bmad-cache/wds/_git_preserved/refs/heads/main +1 -1
- package/lib/bmad-cache/wds/_git_preserved/refs/remotes/origin/HEAD +1 -1
- package/lib/bmad-cache/wds/_git_preserved/shallow +1 -1
- package/lib/bmad-cache/wds/eslint.config.mjs +152 -152
- package/lib/bmad-cache/wds/package.json +82 -82
- package/lib/bmad-cache/wds/prettier.config.mjs +32 -32
- package/lib/bmad-cache/wds/src/agents/wds-agent-freya-ux/bmad-skill-manifest.yaml +12 -12
- package/lib/bmad-cache/wds/src/agents/wds-agent-saga-analyst/bmad-skill-manifest.yaml +12 -12
- package/lib/bmad-cache/wds/src/module-help.csv +19 -19
- package/lib/bmad-cache/wds/src/module.yaml +145 -145
- package/lib/bmad-cache/wds/src/workflows/wds-0-alignment-signoff/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-0-project-setup/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-0-project-setup/resources/wds-1-project-brief/templates/platform-requirements.template.yaml +69 -69
- package/lib/bmad-cache/wds/src/workflows/wds-0-project-setup/resources/wds-7-design-system/templates/catalog.template.html +363 -363
- package/lib/bmad-cache/wds/src/workflows/wds-1-project-brief/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-1-project-brief/templates/platform-requirements.template.yaml +69 -69
- package/lib/bmad-cache/wds/src/workflows/wds-2-trigger-mapping/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-3-scenarios/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-4-ux-design/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-4-ux-design/templates/design-delivery.template.yaml +104 -104
- package/lib/bmad-cache/wds/src/workflows/wds-4-ux-design/templates/test-scenario.template.yaml +192 -192
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/components/dev-mode.css +164 -164
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/components/dev-mode.html +18 -18
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/components/dev-mode.js +430 -430
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/demo-data-template.json +63 -63
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/page-template.html +465 -465
- package/lib/bmad-cache/wds/src/workflows/wds-5-agentic-development/templates/work-file-template.yaml +264 -264
- package/lib/bmad-cache/wds/src/workflows/wds-6-asset-generation/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-7-design-system/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-cache/wds/src/workflows/wds-7-design-system/templates/catalog.template.html +363 -363
- package/lib/bmad-cache/wds/src/workflows/wds-8-product-evolution/bmad-skill-manifest.yaml +1 -1
- package/lib/bmad-customize/bmm-analyst.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-architect.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-bmad-master.customize.yaml +6 -6
- package/lib/bmad-customize/bmm-dev.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-pm.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-qa.customize.yaml +26 -26
- package/lib/bmad-customize/bmm-sm.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-tech-writer.customize.yaml +8 -8
- package/lib/bmad-customize/bmm-ux-designer.customize.yaml +8 -8
- package/lib/bmad-extension-plugin/.claude-plugin/marketplace.json +1 -1
- package/lib/bmad.js +191 -1
- package/lib/installer.js +2024 -2024
- package/lib/merge/roomodes.js +125 -125
- package/lib/methodology/version.json +7 -7
- package/lib/mil498-templates/OCD.md +169 -169
- package/lib/mil498-templates/README.md +4 -4
- package/lib/mil498-templates/SDD.md +163 -163
- package/lib/mil498-templates/SDP.md +307 -307
- package/lib/mil498-templates/SRS.md +219 -219
- package/lib/mil498-templates/SSDD.md +154 -154
- package/lib/mil498-templates/SSS.md +225 -225
- package/lib/mil498-templates/STD.md +188 -188
- package/lib/profile.js +130 -130
- package/lib/reconfigure.js +334 -334
- package/lib/skill-authoring.js +732 -732
- package/lib/templates/agents-md.template.md +67 -67
- package/lib/templates/clinerules.template.md +13 -13
- package/lib/templates/instruction-block-onprem.template.md +86 -86
- package/lib/templates/instruction-block-universal.template.md +29 -29
- package/lib/templates/project-context.template.md +47 -47
- package/lib/templates/roomodes.template.yaml +96 -96
- package/lib/uninstall.js +314 -314
- package/lib/warning-filter.js +245 -245
- package/mil498/OCD.md +169 -169
- package/mil498/README.md +4 -4
- package/mil498/SDP.md +307 -307
- package/mil498/SRS.md +219 -219
- package/mil498/SSDD.md +154 -154
- package/mil498/SSS.md +225 -225
- package/mil498/STD.md +188 -188
- package/package.json +57 -57
- package/scripts/build-bmad-cache.js +494 -494
- package/skills/README.md +473 -473
- package/skills/add-sprint/SKILL.md +204 -204
- package/skills/add-sprint/skill.json +7 -7
- package/skills/add-to-sprint/SKILL.md +270 -270
- package/skills/add-to-sprint/skill.json +7 -7
- package/skills/ai-audit-trail/SKILL.md +19 -19
- package/skills/ai-audit-trail/skill.json +20 -20
- package/skills/auto-bug-detection/SKILL.md +165 -165
- package/skills/auto-bug-detection/skill.json +8 -8
- package/skills/bmad-sprint-planning/SKILL.md +362 -362
- package/skills/bmad-sprint-planning/skill.json +7 -7
- package/skills/bmad-sprint-status/SKILL.md +312 -312
- package/skills/bmad-sprint-status/skill.json +7 -7
- package/skills/cleanup-done/SKILL.md +242 -242
- package/skills/cleanup-done/skill.json +7 -7
- package/skills/close-sprint/SKILL.md +409 -409
- package/skills/close-sprint/skill.json +7 -7
- package/skills/code-review/SKILL.md +79 -79
- package/skills/code-review/claude-code.md +64 -64
- package/skills/code-review/cline.md +55 -55
- package/skills/code-review/generic.md +39 -39
- package/skills/code-review/skill.json +7 -7
- package/skills/commit-message/SKILL.md +75 -75
- package/skills/commit-message/generic.md +75 -75
- package/skills/commit-message/skill.json +7 -7
- package/skills/cpp-best-practices/SKILL.md +230 -230
- package/skills/cpp-best-practices/examples/modern-idioms.md +189 -189
- package/skills/cpp-best-practices/examples/naming-and-organization.md +102 -102
- package/skills/cpp-best-practices/skill.json +25 -25
- package/skills/create-hardened-docker-skill/README.md +85 -85
- package/skills/create-hardened-docker-skill/SKILL.md +633 -633
- package/skills/create-hardened-docker-skill/scripts/create-all.sh +489 -489
- package/skills/create-hardened-docker-skill/skill.json +7 -7
- package/skills/csharp-best-practices/SKILL.md +274 -274
- package/skills/csharp-best-practices/skill.json +23 -23
- package/skills/docker-hardening-verification/scripts/verify-hardening.sh +39 -39
- package/skills/docker-image-signing/scripts/sign-image.sh +33 -33
- package/skills/document-revision-history/SKILL.md +100 -100
- package/skills/document-revision-history/skill.json +18 -18
- package/skills/generate-backlog/SKILL.md +219 -219
- package/skills/generate-backlog/skill.json +7 -7
- package/skills/git-workflow-skill/README.md +135 -135
- package/skills/git-workflow-skill/SKILL.md +190 -190
- package/skills/git-workflow-skill/hooks/commit-msg +61 -61
- package/skills/git-workflow-skill/hooks/pre-commit +38 -38
- package/skills/git-workflow-skill/hooks/prepare-commit-msg +56 -56
- package/skills/git-workflow-skill/scripts/finish-feature.sh +192 -192
- package/skills/git-workflow-skill/scripts/install-hooks.sh +55 -55
- package/skills/git-workflow-skill/scripts/start-feature.sh +110 -110
- package/skills/git-workflow-skill/scripts/validate-workflow.sh +229 -229
- package/skills/git-workflow-skill/skill.json +21 -21
- package/skills/js-ts-security-skill/scripts/verify-security.sh +136 -136
- package/skills/js-ts-security-skill/skill.json +17 -17
- package/skills/modify-sprint/SKILL.md +341 -341
- package/skills/modify-sprint/skill.json +7 -7
- package/skills/open-presentation/SKILL.md +31 -31
- package/skills/open-presentation/skill.json +11 -11
- package/skills/prioritize-backlog/SKILL.md +242 -242
- package/skills/prioritize-backlog/skill.json +7 -7
- package/skills/python-best-practices/SKILL.md +381 -381
- package/skills/python-best-practices/skill.json +26 -26
- package/skills/remove-from-sprint/SKILL.md +213 -213
- package/skills/remove-from-sprint/skill.json +7 -7
- package/skills/self-signed-cert/scripts/generate-cert.sh +43 -43
- package/skills/skill-creator/SKILL.md +211 -211
- package/skills/skill-creator/claude-code.md +64 -64
- package/skills/skill-creator/generic.md +192 -192
- package/skills/skill-creator/references/output-patterns.md +82 -82
- package/skills/skill-creator/references/workflows.md +28 -28
- package/skills/skill-creator/scripts/init_skill.py +208 -208
- package/skills/skill-creator/scripts/package_skill.py +99 -99
- package/skills/skill-creator/scripts/quick_validate.py +113 -113
- package/skills/skill-creator/skill.json +8 -8
- package/skills/sprint-status-view/SKILL.md +212 -212
- package/skills/sprint-status-view/skill.json +7 -7
- package/skills/story-status-lookup/SKILL.md +106 -106
- package/skills/story-status-lookup/skill.json +8 -8
- package/skills/test-generator/SKILL.md +74 -74
- package/skills/test-generator/claude-code.md +103 -103
- package/skills/test-generator/cline.md +69 -69
- package/skills/test-generator/generic.md +61 -61
- package/skills/test-generator/skill.json +18 -18
- package/skills/vercel-react-best-practices/SKILL.md +105 -105
- package/skills/vercel-react-best-practices/claude-code.md +80 -80
- package/skills/vercel-react-best-practices/generic.md +105 -105
- package/skills/vercel-react-best-practices/skill.json +19 -19
- package/skills/verify-hardened-docker-skill/README.md +85 -85
- package/skills/verify-hardened-docker-skill/SKILL.md +438 -438
- package/skills/verify-hardened-docker-skill/scripts/verify-docker-hardening.sh +439 -439
- package/skills/verify-hardened-docker-skill/skill.json +7 -7
- package/lib/.bmad-extension-plugin.build-1264-1777348888201/.claude-plugin/marketplace.json +0 -109
- package/lib/.bmad-extension-plugin.build-1264-1777348888201/skills/module-help.csv +0 -62
- package/lib/.bmad-extension-plugin.build-1264-1777348888201/skills/module.yaml +0 -20
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/.claude-plugin/marketplace.json +0 -109
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/skills/module-help.csv +0 -62
- package/lib/.bmad-extension-plugin.build-24696-1777348768444/skills/module.yaml +0 -20
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/.claude-plugin/marketplace.json +0 -109
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/skills/module-help.csv +0 -62
- package/lib/.bmad-extension-plugin.build-25428-1777348694953/skills/module.yaml +0 -20
- package/lib/bmad-cache/bmb/_git_preserved/logs/HEAD +0 -1
- package/lib/bmad-cache/bmb/_git_preserved/logs/refs/heads/main +0 -1
- package/lib/bmad-cache/bmb/_git_preserved/logs/refs/remotes/origin/HEAD +0 -1
- package/lib/bmad-cache/cis/_git_preserved/logs/HEAD +0 -1
- package/lib/bmad-cache/cis/_git_preserved/logs/refs/heads/main +0 -1
- package/lib/bmad-cache/cis/_git_preserved/logs/refs/remotes/origin/HEAD +0 -1
- package/lib/bmad-cache/gds/_git_preserved/logs/HEAD +0 -1
- package/lib/bmad-cache/gds/_git_preserved/logs/refs/heads/main +0 -1
- package/lib/bmad-cache/gds/_git_preserved/logs/refs/remotes/origin/HEAD +0 -1
- package/lib/bmad-cache/tea/.github/workflows/publish.yaml +0 -168
- package/lib/bmad-cache/tea/.vscode/settings.json +0 -47
- package/lib/bmad-cache/wds/_git_preserved/logs/HEAD +0 -1
- package/lib/bmad-cache/wds/_git_preserved/logs/refs/heads/main +0 -1
- package/lib/bmad-cache/wds/_git_preserved/logs/refs/remotes/origin/HEAD +0 -1
package/bin/cli.js
CHANGED
|
@@ -1,1573 +1,1681 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Bug A fix — suppress the cosmetic Node.js ExperimentalWarning about
|
|
4
|
-
// CommonJS require() of an ES Module. Must be installed BEFORE any
|
|
5
|
-
// other require() so the filter catches warnings fired by the very
|
|
6
|
-
// first dependency-loading call below. See lib/warning-filter.js.
|
|
7
|
-
//
|
|
8
|
-
// Re-exec gating:
|
|
9
|
-
// - Only when this file is launched as the CLI (require.main === module).
|
|
10
|
-
// When imported by the test suite or another script, skip the re-exec
|
|
11
|
-
// path — otherwise the importing process would silently fork itself.
|
|
12
|
-
// - Only for commands that can trigger the CJS-require-ESM warning,
|
|
13
|
-
// i.e. those that spawn bmad-method or otherwise load the heavy
|
|
14
|
-
// transitive dependency graph. Informational commands (--help,
|
|
15
|
-
// --version, status, list, agents) stay single-process for fast
|
|
16
|
-
// cold start. The listener-only fallback is still attached so
|
|
17
|
-
// in-process warnings still route through our filter.
|
|
18
|
-
const { installExperimentalWarningFilter } = require('../lib/warning-filter');
|
|
19
|
-
const _reexecCommands = new Set([
|
|
20
|
-
'install', 'uninstall', 'remove',
|
|
21
|
-
'create-skill', 'validate-skill', 'set-mandatory',
|
|
22
|
-
'customize-agent', 'create-agent',
|
|
23
|
-
'config',
|
|
24
|
-
undefined, // bare `ma-agents` → interactive wizard
|
|
25
|
-
]);
|
|
26
|
-
const _firstArg = process.argv[2];
|
|
27
|
-
installExperimentalWarningFilter({
|
|
28
|
-
reexec: require.main === module && _reexecCommands.has(_firstArg),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const prompts = require('prompts');
|
|
32
|
-
const chalk = require('chalk');
|
|
33
|
-
const path = require('path');
|
|
34
|
-
const fs = require('fs');
|
|
35
|
-
const { execFileSync } = require('child_process');
|
|
36
|
-
const { installSkill, uninstallSkill, getStatus, listSkills, listAgents, updateProjectContextRepoLayout, migrateRetiredSkills } = require('../lib/installer');
|
|
37
|
-
const { getProfile, setProfile, resolveProfile } = require('../lib/profile');
|
|
38
|
-
const { reconfigure: runReconfigure, ReconfigureYesRejectedError, ManifestNotFoundError, RoomodesSlugDivergenceError } = require('../lib/reconfigure');
|
|
39
|
-
const { uninstallProfileArtifacts } = require('../lib/uninstall');
|
|
40
|
-
const bmad = require('../lib/bmad');
|
|
41
|
-
const { getBmadPlatformCode } = require('../lib/agents');
|
|
42
|
-
const { handleCreateSkill, handleValidateSkill, handleSetMandatory, handleCustomizeAgent, handleCreateAgent } = require('../lib/skill-authoring');
|
|
43
|
-
|
|
44
|
-
const PKG = require('../package.json');
|
|
45
|
-
const NAME = PKG.name;
|
|
46
|
-
const VERSION = PKG.version;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Set up logging to tee all stdout/stderr output to a file.
|
|
50
|
-
* Returns a cleanup function to close the file descriptor.
|
|
51
|
-
*
|
|
52
|
-
* @param {string} logFilePath - Path to the log file
|
|
53
|
-
* @returns {Function} cleanup function
|
|
54
|
-
*/
|
|
55
|
-
function setupLogging(logFilePath) {
|
|
56
|
-
const logFd = fs.openSync(logFilePath, 'w');
|
|
57
|
-
const header = `[${new Date().toISOString()}] ${NAME} v${VERSION} — log started\n`;
|
|
58
|
-
fs.writeSync(logFd, header);
|
|
59
|
-
|
|
60
|
-
const origStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
61
|
-
const origStderrWrite = process.stderr.write.bind(process.stderr);
|
|
62
|
-
|
|
63
|
-
process.stdout.write = function (chunk, encoding, callback) {
|
|
64
|
-
const str = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
65
|
-
try { fs.writeSync(logFd, str); } catch { /* ignore write errors */ }
|
|
66
|
-
return origStdoutWrite(chunk, encoding, callback);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
process.stderr.write = function (chunk, encoding, callback) {
|
|
70
|
-
const str = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
71
|
-
try { fs.writeSync(logFd, str); } catch { /* ignore write errors */ }
|
|
72
|
-
return origStderrWrite(chunk, encoding, callback);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
// Store log fd globally so bmad.js can use pipe mode
|
|
76
|
-
process.env.MA_AGENTS_LOG_ACTIVE = '1';
|
|
77
|
-
|
|
78
|
-
return function cleanup() {
|
|
79
|
-
process.stdout.write = origStdoutWrite;
|
|
80
|
-
process.stderr.write = origStderrWrite;
|
|
81
|
-
const footer = `\n[${new Date().toISOString()}] log ended\n`;
|
|
82
|
-
try { fs.writeSync(logFd, footer); } catch { /* ignore */ }
|
|
83
|
-
try { fs.closeSync(logFd); } catch { /* ignore */ }
|
|
84
|
-
delete process.env.MA_AGENTS_LOG_ACTIVE;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function showHelp() {
|
|
89
|
-
console.log(`
|
|
90
|
-
${chalk.bold.cyan(NAME)} ${chalk.gray(`v${VERSION}`)}
|
|
91
|
-
|
|
92
|
-
${chalk.bold('Usage:')}
|
|
93
|
-
${chalk.cyan(`npx ${NAME}`)} Interactive wizard
|
|
94
|
-
${chalk.cyan(`npx ${NAME} install`)} Interactive install wizard
|
|
95
|
-
${chalk.cyan(`npx ${NAME} install`)} <skill> <agents...> Install directly
|
|
96
|
-
${chalk.cyan(`npx ${NAME} uninstall`)} <skill> <agents..> Uninstall a skill
|
|
97
|
-
${chalk.cyan(`npx ${NAME} uninstall --profile-artifacts`)} Remove ma-agents-owned profile content from all injection files
|
|
98
|
-
${chalk.cyan(`npx ${NAME} status`)} Show installed skills
|
|
99
|
-
${chalk.cyan(`npx ${NAME} list`)} List available skills
|
|
100
|
-
${chalk.cyan(`npx ${NAME} agents`)} List supported agents
|
|
101
|
-
${chalk.cyan(`npx ${NAME} create-skill`)} <name> Scaffold a new skill directory
|
|
102
|
-
${chalk.cyan(`npx ${NAME} validate-skill`)} <name> Validate a skill against the schema
|
|
103
|
-
${chalk.cyan(`npx ${NAME} set-mandatory`)} <name> [--off] Mark a skill as always-load (or remove)
|
|
104
|
-
${chalk.cyan(`npx ${NAME} customize-agent`)} <agent> Customize a BMAD agent persona and actions
|
|
105
|
-
${chalk.cyan(`npx ${NAME} create-agent`)} <name> Create a new specialized BMAD agent
|
|
106
|
-
${chalk.cyan(`npx ${NAME} reconfigure`)} Re-run the profile prompt and re-stamp artifacts
|
|
107
|
-
${chalk.cyan(`npx ${NAME} config layout`)} Reconfigure repository layout
|
|
108
|
-
${chalk.cyan(`npx ${NAME} config layout --show`)} Show current layout (read-only)
|
|
109
|
-
${chalk.cyan(`npx ${NAME} help`)} Show this help
|
|
110
|
-
|
|
111
|
-
${chalk.bold('Install options:')}
|
|
112
|
-
${chalk.cyan('--global')} Install to global/user-level paths (default: project-level)
|
|
113
|
-
${chalk.cyan('--path <dir>')} Custom installation directory
|
|
114
|
-
${chalk.cyan('--force')} Skip upgrade prompts, always overwrite
|
|
115
|
-
${chalk.cyan('--yes')} Skip all prompts, use defaults (for CI/CD)
|
|
116
|
-
${chalk.cyan('--agent <name>')} Target a specific agent (skip agent selection)
|
|
117
|
-
${chalk.cyan('--
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
${chalk.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
npx ${NAME} install
|
|
138
|
-
npx ${NAME}
|
|
139
|
-
npx ${NAME}
|
|
140
|
-
npx ${NAME}
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
skills
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
console.log(chalk.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
positional
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
//
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
return
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
function
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
if (
|
|
462
|
-
return
|
|
463
|
-
}
|
|
464
|
-
return
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
function
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
//
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
//
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
console.log(chalk.
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
// Step 5:
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
//
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
//
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
if (
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
process.
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
})
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
console.
|
|
1569
|
-
process.exit(
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Bug A fix — suppress the cosmetic Node.js ExperimentalWarning about
|
|
4
|
+
// CommonJS require() of an ES Module. Must be installed BEFORE any
|
|
5
|
+
// other require() so the filter catches warnings fired by the very
|
|
6
|
+
// first dependency-loading call below. See lib/warning-filter.js.
|
|
7
|
+
//
|
|
8
|
+
// Re-exec gating:
|
|
9
|
+
// - Only when this file is launched as the CLI (require.main === module).
|
|
10
|
+
// When imported by the test suite or another script, skip the re-exec
|
|
11
|
+
// path — otherwise the importing process would silently fork itself.
|
|
12
|
+
// - Only for commands that can trigger the CJS-require-ESM warning,
|
|
13
|
+
// i.e. those that spawn bmad-method or otherwise load the heavy
|
|
14
|
+
// transitive dependency graph. Informational commands (--help,
|
|
15
|
+
// --version, status, list, agents) stay single-process for fast
|
|
16
|
+
// cold start. The listener-only fallback is still attached so
|
|
17
|
+
// in-process warnings still route through our filter.
|
|
18
|
+
const { installExperimentalWarningFilter } = require('../lib/warning-filter');
|
|
19
|
+
const _reexecCommands = new Set([
|
|
20
|
+
'install', 'uninstall', 'remove',
|
|
21
|
+
'create-skill', 'validate-skill', 'set-mandatory',
|
|
22
|
+
'customize-agent', 'create-agent',
|
|
23
|
+
'config',
|
|
24
|
+
undefined, // bare `ma-agents` → interactive wizard
|
|
25
|
+
]);
|
|
26
|
+
const _firstArg = process.argv[2];
|
|
27
|
+
installExperimentalWarningFilter({
|
|
28
|
+
reexec: require.main === module && _reexecCommands.has(_firstArg),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const prompts = require('prompts');
|
|
32
|
+
const chalk = require('chalk');
|
|
33
|
+
const path = require('path');
|
|
34
|
+
const fs = require('fs');
|
|
35
|
+
const { execFileSync } = require('child_process');
|
|
36
|
+
const { installSkill, uninstallSkill, getStatus, listSkills, listAgents, updateProjectContextRepoLayout, migrateRetiredSkills } = require('../lib/installer');
|
|
37
|
+
const { getProfile, setProfile, resolveProfile } = require('../lib/profile');
|
|
38
|
+
const { reconfigure: runReconfigure, ReconfigureYesRejectedError, ManifestNotFoundError, RoomodesSlugDivergenceError } = require('../lib/reconfigure');
|
|
39
|
+
const { uninstallProfileArtifacts } = require('../lib/uninstall');
|
|
40
|
+
const bmad = require('../lib/bmad');
|
|
41
|
+
const { getBmadPlatformCode } = require('../lib/agents');
|
|
42
|
+
const { handleCreateSkill, handleValidateSkill, handleSetMandatory, handleCustomizeAgent, handleCreateAgent } = require('../lib/skill-authoring');
|
|
43
|
+
|
|
44
|
+
const PKG = require('../package.json');
|
|
45
|
+
const NAME = PKG.name;
|
|
46
|
+
const VERSION = PKG.version;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Set up logging to tee all stdout/stderr output to a file.
|
|
50
|
+
* Returns a cleanup function to close the file descriptor.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} logFilePath - Path to the log file
|
|
53
|
+
* @returns {Function} cleanup function
|
|
54
|
+
*/
|
|
55
|
+
function setupLogging(logFilePath) {
|
|
56
|
+
const logFd = fs.openSync(logFilePath, 'w');
|
|
57
|
+
const header = `[${new Date().toISOString()}] ${NAME} v${VERSION} — log started\n`;
|
|
58
|
+
fs.writeSync(logFd, header);
|
|
59
|
+
|
|
60
|
+
const origStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
61
|
+
const origStderrWrite = process.stderr.write.bind(process.stderr);
|
|
62
|
+
|
|
63
|
+
process.stdout.write = function (chunk, encoding, callback) {
|
|
64
|
+
const str = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
65
|
+
try { fs.writeSync(logFd, str); } catch { /* ignore write errors */ }
|
|
66
|
+
return origStdoutWrite(chunk, encoding, callback);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
process.stderr.write = function (chunk, encoding, callback) {
|
|
70
|
+
const str = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
71
|
+
try { fs.writeSync(logFd, str); } catch { /* ignore write errors */ }
|
|
72
|
+
return origStderrWrite(chunk, encoding, callback);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Store log fd globally so bmad.js can use pipe mode
|
|
76
|
+
process.env.MA_AGENTS_LOG_ACTIVE = '1';
|
|
77
|
+
|
|
78
|
+
return function cleanup() {
|
|
79
|
+
process.stdout.write = origStdoutWrite;
|
|
80
|
+
process.stderr.write = origStderrWrite;
|
|
81
|
+
const footer = `\n[${new Date().toISOString()}] log ended\n`;
|
|
82
|
+
try { fs.writeSync(logFd, footer); } catch { /* ignore */ }
|
|
83
|
+
try { fs.closeSync(logFd); } catch { /* ignore */ }
|
|
84
|
+
delete process.env.MA_AGENTS_LOG_ACTIVE;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function showHelp() {
|
|
89
|
+
console.log(`
|
|
90
|
+
${chalk.bold.cyan(NAME)} ${chalk.gray(`v${VERSION}`)}
|
|
91
|
+
|
|
92
|
+
${chalk.bold('Usage:')}
|
|
93
|
+
${chalk.cyan(`npx ${NAME}`)} Interactive wizard
|
|
94
|
+
${chalk.cyan(`npx ${NAME} install`)} Interactive install wizard
|
|
95
|
+
${chalk.cyan(`npx ${NAME} install`)} <skill> <agents...> Install directly
|
|
96
|
+
${chalk.cyan(`npx ${NAME} uninstall`)} <skill> <agents..> Uninstall a skill
|
|
97
|
+
${chalk.cyan(`npx ${NAME} uninstall --profile-artifacts`)} Remove ma-agents-owned profile content from all injection files
|
|
98
|
+
${chalk.cyan(`npx ${NAME} status`)} Show installed skills
|
|
99
|
+
${chalk.cyan(`npx ${NAME} list`)} List available skills
|
|
100
|
+
${chalk.cyan(`npx ${NAME} agents`)} List supported agents
|
|
101
|
+
${chalk.cyan(`npx ${NAME} create-skill`)} <name> Scaffold a new skill directory
|
|
102
|
+
${chalk.cyan(`npx ${NAME} validate-skill`)} <name> Validate a skill against the schema
|
|
103
|
+
${chalk.cyan(`npx ${NAME} set-mandatory`)} <name> [--off] Mark a skill as always-load (or remove)
|
|
104
|
+
${chalk.cyan(`npx ${NAME} customize-agent`)} <agent> Customize a BMAD agent persona and actions
|
|
105
|
+
${chalk.cyan(`npx ${NAME} create-agent`)} <name> Create a new specialized BMAD agent
|
|
106
|
+
${chalk.cyan(`npx ${NAME} reconfigure`)} Re-run the profile prompt and re-stamp artifacts
|
|
107
|
+
${chalk.cyan(`npx ${NAME} config layout`)} Reconfigure repository layout
|
|
108
|
+
${chalk.cyan(`npx ${NAME} config layout --show`)} Show current layout (read-only)
|
|
109
|
+
${chalk.cyan(`npx ${NAME} help`)} Show this help
|
|
110
|
+
|
|
111
|
+
${chalk.bold('Install options:')}
|
|
112
|
+
${chalk.cyan('--global')} Install to global/user-level paths (default: project-level)
|
|
113
|
+
${chalk.cyan('--path <dir>')} Custom installation directory
|
|
114
|
+
${chalk.cyan('--force')} Skip upgrade prompts, always overwrite
|
|
115
|
+
${chalk.cyan('--yes')} Skip all prompts, use defaults (for CI/CD)
|
|
116
|
+
${chalk.cyan('--agent <name>')} Target a specific agent (skip agent selection)
|
|
117
|
+
${chalk.cyan('--bmad-modules [csv]')} Control BMAD module selection.
|
|
118
|
+
Bare: open a multiselect prompt
|
|
119
|
+
With CSV: install exactly those (e.g. tea,bmb)
|
|
120
|
+
Omitted: install every non-retired module (default)
|
|
121
|
+
'bmm' is always force-included.
|
|
122
|
+
${chalk.cyan('--log')} Log all console output to install_<datetime>.log
|
|
123
|
+
|
|
124
|
+
${chalk.bold('Reconfigure options:')}
|
|
125
|
+
${chalk.cyan('--force-roomodes-overwrite')} Accept slug-stomp on user-edited ma-agents slugs
|
|
126
|
+
${chalk.gray('(reconfigure rejects --yes by design — it is interactive only)')}
|
|
127
|
+
|
|
128
|
+
${chalk.bold('Uninstall --profile-artifacts options:')}
|
|
129
|
+
${chalk.cyan('--yes')} Skip confirmation prompt (supported for CI decommissioning)
|
|
130
|
+
${chalk.gray('(asymmetry note: uninstall --profile-artifacts accepts --yes; reconfigure does not)')}
|
|
131
|
+
|
|
132
|
+
${chalk.bold('Notes:')}
|
|
133
|
+
Divergent \`.cline/clinerules.md\` vs. \`.clinerules\` marker blocks require
|
|
134
|
+
manual reconciliation — \`--yes\` does not bypass this check.
|
|
135
|
+
|
|
136
|
+
${chalk.bold('Examples:')}
|
|
137
|
+
npx ${NAME} install
|
|
138
|
+
npx ${NAME} install code-review claude-code
|
|
139
|
+
npx ${NAME} install code-review claude-code --force
|
|
140
|
+
npx ${NAME} install --yes
|
|
141
|
+
npx ${NAME} install --yes --agent claude-code
|
|
142
|
+
npx ${NAME} install --yes --global
|
|
143
|
+
npx ${NAME} install --yes --bmad-modules bmm,tea,bmb
|
|
144
|
+
npx ${NAME} install --bmad-modules # prompt for modules
|
|
145
|
+
npx ${NAME} uninstall code-review claude-code
|
|
146
|
+
npx ${NAME} status
|
|
147
|
+
npx ${NAME} status --global
|
|
148
|
+
`);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function showSkills(args) {
|
|
152
|
+
const mandatoryOnly = args && args.includes('--mandatory');
|
|
153
|
+
let skills = listSkills();
|
|
154
|
+
if (mandatoryOnly) {
|
|
155
|
+
skills = skills.filter(s => s.always_load === true);
|
|
156
|
+
console.log(chalk.bold('\n Mandatory Skills (always_load: true):\n'));
|
|
157
|
+
} else {
|
|
158
|
+
console.log(chalk.bold('\n Available Skills:\n'));
|
|
159
|
+
}
|
|
160
|
+
skills.forEach(skill => {
|
|
161
|
+
console.log(chalk.cyan(` ${skill.id.padEnd(35)}`) + chalk.white(`${skill.name}`) + chalk.gray(` v${skill.version}`));
|
|
162
|
+
console.log(chalk.gray(` ${''.padEnd(35)}${skill.description}\n`));
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function showAgents() {
|
|
167
|
+
const agents = listAgents();
|
|
168
|
+
console.log(chalk.bold('\n Supported Agents:\n'));
|
|
169
|
+
|
|
170
|
+
const ideAgents = agents.filter(a => a.category !== 'bmad');
|
|
171
|
+
const bmadAgents = agents.filter(a => a.category === 'bmad');
|
|
172
|
+
|
|
173
|
+
console.log(chalk.bold.yellow(' AI Coding Assistants:'));
|
|
174
|
+
ideAgents.forEach(agent => {
|
|
175
|
+
console.log(chalk.cyan(` ${agent.id.padEnd(20)}`) + chalk.white(agent.name) + chalk.gray(` v${agent.version} - ${agent.description}`));
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
console.log(chalk.bold.yellow('\n BMAD Method Agents:'));
|
|
179
|
+
bmadAgents.forEach(agent => {
|
|
180
|
+
console.log(chalk.cyan(` ${agent.id.padEnd(20)}`) + chalk.white(agent.name) + chalk.gray(` v${agent.version} - ${agent.description}`));
|
|
181
|
+
});
|
|
182
|
+
console.log('');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function showStatus(args) {
|
|
186
|
+
const globalFlag = args.includes('--global');
|
|
187
|
+
const scope = globalFlag ? 'global' : 'project';
|
|
188
|
+
const positional = args.filter(a => a !== '--global');
|
|
189
|
+
|
|
190
|
+
const results = getStatus(positional, '', scope);
|
|
191
|
+
|
|
192
|
+
if (results.length === 0) {
|
|
193
|
+
console.log(chalk.gray(`\n No skills installed (${scope} scope)\n`));
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
console.log(chalk.bold(`\n Installed Skills:\n`));
|
|
198
|
+
|
|
199
|
+
for (const entry of results) {
|
|
200
|
+
console.log(chalk.cyan(` ${entry.agent.name}`) + chalk.gray(` (${entry.scope}: ${entry.installPath})`));
|
|
201
|
+
|
|
202
|
+
const skillIds = Object.keys(entry.skills);
|
|
203
|
+
for (const skillId of skillIds) {
|
|
204
|
+
const info = entry.skills[skillId];
|
|
205
|
+
const installed = new Date(info.installedAt).toLocaleDateString();
|
|
206
|
+
const updated = info.updatedAt !== info.installedAt
|
|
207
|
+
? chalk.gray(` updated ${new Date(info.updatedAt).toLocaleDateString()}`)
|
|
208
|
+
: '';
|
|
209
|
+
console.log(
|
|
210
|
+
chalk.white(` ${skillId.padEnd(35)}`) +
|
|
211
|
+
chalk.green(`v${info.version}`) +
|
|
212
|
+
chalk.gray(` installed ${installed}`) +
|
|
213
|
+
updated
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
console.log('');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// --- Parse common flags from args ---
|
|
221
|
+
|
|
222
|
+
function parseFlags(args) {
|
|
223
|
+
const globalFlag = args.includes('--global');
|
|
224
|
+
const forceFlag = args.includes('--force');
|
|
225
|
+
const yesFlag = args.includes('--yes');
|
|
226
|
+
let customPath = '';
|
|
227
|
+
let agentFlag = '';
|
|
228
|
+
|
|
229
|
+
let positional = [...args].filter(a =>
|
|
230
|
+
a !== '--global' && a !== '--force' && a !== '--yes'
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
const pathIdx = positional.indexOf('--path');
|
|
234
|
+
if (pathIdx !== -1) {
|
|
235
|
+
customPath = positional[pathIdx + 1] || '';
|
|
236
|
+
positional.splice(pathIdx, 2);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const agentIdx = positional.indexOf('--agent');
|
|
240
|
+
if (agentIdx !== -1) {
|
|
241
|
+
const agentName = positional[agentIdx + 1];
|
|
242
|
+
if (!agentName || agentName.startsWith('--')) {
|
|
243
|
+
console.error(chalk.red('Error: --agent requires an agent name'));
|
|
244
|
+
console.error(chalk.gray(' Hint: Run "list" to see available agents'));
|
|
245
|
+
process.exit(1);
|
|
246
|
+
}
|
|
247
|
+
agentFlag = agentName;
|
|
248
|
+
positional.splice(agentIdx, 2);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// --bmad-modules — controls BMad module selection. Optional-value flag:
|
|
252
|
+
// bare → ask the user via multiselect prompt
|
|
253
|
+
// with CSV → install exactly those (bmm force-prepended, unknowns rejected)
|
|
254
|
+
// not present → install all non-retired modules (no prompt)
|
|
255
|
+
// Force-prepending of `bmm` and validation of unknown ids is handled
|
|
256
|
+
// centrally by lib/bmad.resolveBmadModules.
|
|
257
|
+
let bmadModulesFlag = '';
|
|
258
|
+
let bmadModulesPrompt = false;
|
|
259
|
+
const bmadModulesIdx = positional.indexOf('--bmad-modules');
|
|
260
|
+
if (bmadModulesIdx !== -1) {
|
|
261
|
+
const value = positional[bmadModulesIdx + 1];
|
|
262
|
+
if (!value || value.startsWith('--')) {
|
|
263
|
+
// Bare flag — the next token is another flag or the end of args.
|
|
264
|
+
// Treat as a request to prompt the user.
|
|
265
|
+
bmadModulesPrompt = true;
|
|
266
|
+
positional.splice(bmadModulesIdx, 1);
|
|
267
|
+
} else {
|
|
268
|
+
bmadModulesFlag = value;
|
|
269
|
+
positional.splice(bmadModulesIdx, 2);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return {
|
|
274
|
+
globalFlag,
|
|
275
|
+
forceFlag,
|
|
276
|
+
yesFlag,
|
|
277
|
+
agentFlag,
|
|
278
|
+
customPath,
|
|
279
|
+
bmadModulesFlag,
|
|
280
|
+
bmadModulesPrompt,
|
|
281
|
+
scope: globalFlag ? 'global' : 'project',
|
|
282
|
+
positional
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// --- Repository layout wizard ---
|
|
287
|
+
|
|
288
|
+
async function collectLocalPath(concern) {
|
|
289
|
+
while (true) {
|
|
290
|
+
const { localPath } = await prompts({
|
|
291
|
+
type: 'text',
|
|
292
|
+
name: 'localPath',
|
|
293
|
+
message: `Enter local path for ${concern}:`
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
if (!localPath || !localPath.trim()) {
|
|
297
|
+
console.log(chalk.red(' Path cannot be empty. Please try again.'));
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
const resolved = path.resolve(process.cwd(), localPath.trim());
|
|
302
|
+
|
|
303
|
+
if (fs.existsSync(resolved)) {
|
|
304
|
+
if (!fs.statSync(resolved).isDirectory()) {
|
|
305
|
+
console.log(chalk.red(` "${resolved}" exists but is a file, not a directory. Please try again.`));
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
} else {
|
|
309
|
+
console.log(chalk.yellow(` Warning: "${resolved}" does not exist.`));
|
|
310
|
+
const { confirmed } = await prompts({
|
|
311
|
+
type: 'confirm',
|
|
312
|
+
name: 'confirmed',
|
|
313
|
+
message: 'Use this path anyway? (It must exist before agents run)',
|
|
314
|
+
initial: false
|
|
315
|
+
});
|
|
316
|
+
if (!confirmed) continue;
|
|
317
|
+
console.log(chalk.yellow(` Note: Path "${resolved}" must exist before agents run.`));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (resolved.startsWith(process.cwd())) {
|
|
321
|
+
console.log(chalk.yellow(` Warning: Path is inside the current repository. Nested repos may cause git confusion.`));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
return { mode: 'local', path: resolved };
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
async function collectRemotePath(concern) {
|
|
329
|
+
while (true) {
|
|
330
|
+
// Collect git URL
|
|
331
|
+
let gitUrl;
|
|
332
|
+
while (true) {
|
|
333
|
+
const { url } = await prompts({
|
|
334
|
+
type: 'text',
|
|
335
|
+
name: 'url',
|
|
336
|
+
message: `Enter git URL for ${concern}:`
|
|
337
|
+
});
|
|
338
|
+
if (!url || !url.trim()) {
|
|
339
|
+
console.log(chalk.red(' Git URL cannot be empty. Please try again.'));
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
gitUrl = url.trim();
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Collect destination path
|
|
347
|
+
let destPath;
|
|
348
|
+
while (true) {
|
|
349
|
+
const { dest } = await prompts({
|
|
350
|
+
type: 'text',
|
|
351
|
+
name: 'dest',
|
|
352
|
+
message: `Enter local destination path for clone:`
|
|
353
|
+
});
|
|
354
|
+
if (!dest || !dest.trim()) {
|
|
355
|
+
console.log(chalk.red(' Destination path cannot be empty. Please try again.'));
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
destPath = path.resolve(process.cwd(), dest.trim());
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Check destination
|
|
363
|
+
if (fs.existsSync(destPath)) {
|
|
364
|
+
if (!fs.statSync(destPath).isDirectory()) {
|
|
365
|
+
console.log(chalk.red(` "${destPath}" exists but is a file, not a directory. Please try again.`));
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
// Existing directory — show summary and confirm
|
|
369
|
+
const files = fs.readdirSync(destPath);
|
|
370
|
+
const isGitRepo = fs.existsSync(path.join(destPath, '.git'));
|
|
371
|
+
console.log(chalk.blue(` Directory exists: ${files.length} items${isGitRepo ? ' (git repo)' : ''}`));
|
|
372
|
+
const { confirmed } = await prompts({
|
|
373
|
+
type: 'confirm',
|
|
374
|
+
name: 'confirmed',
|
|
375
|
+
message: 'Use this existing directory?',
|
|
376
|
+
initial: true
|
|
377
|
+
});
|
|
378
|
+
if (!confirmed) continue;
|
|
379
|
+
} else {
|
|
380
|
+
// Clone
|
|
381
|
+
const existedBefore = fs.existsSync(destPath);
|
|
382
|
+
try {
|
|
383
|
+
console.log(chalk.cyan(` Cloning ${gitUrl}...`));
|
|
384
|
+
execFileSync('git', ['clone', gitUrl, destPath], {
|
|
385
|
+
timeout: 120000,
|
|
386
|
+
env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
|
|
387
|
+
stdio: 'inherit'
|
|
388
|
+
});
|
|
389
|
+
} catch (err) {
|
|
390
|
+
console.log(chalk.red(` Clone failed: ${err.message}`));
|
|
391
|
+
if (!existedBefore && fs.existsSync(destPath)) {
|
|
392
|
+
fs.rmSync(destPath, { recursive: true, force: true });
|
|
393
|
+
}
|
|
394
|
+
const { retry } = await prompts({
|
|
395
|
+
type: 'confirm',
|
|
396
|
+
name: 'retry',
|
|
397
|
+
message: 'Retry?',
|
|
398
|
+
initial: true
|
|
399
|
+
});
|
|
400
|
+
if (retry) continue;
|
|
401
|
+
console.log(chalk.yellow(` Falling back to current repository for ${concern}`));
|
|
402
|
+
return { mode: 'same', path: '.' };
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (destPath.startsWith(process.cwd())) {
|
|
407
|
+
console.log(chalk.yellow(` Warning: Destination is inside the current repository. Nested repos may cause git confusion.`));
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return { mode: 'remote', path: destPath, gitUrl };
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
async function collectJiraConfig() {
|
|
415
|
+
// Collect Jira server URL
|
|
416
|
+
let jiraUrl;
|
|
417
|
+
while (true) {
|
|
418
|
+
const { url } = await prompts({
|
|
419
|
+
type: 'text',
|
|
420
|
+
name: 'url',
|
|
421
|
+
message: 'Jira server URL (e.g. https://mycompany.atlassian.net):'
|
|
422
|
+
});
|
|
423
|
+
if (!url || !url.trim()) {
|
|
424
|
+
console.log(chalk.red(' Jira server URL cannot be empty. Please try again.'));
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
jiraUrl = url.trim();
|
|
428
|
+
break;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// Collect Jira project key
|
|
432
|
+
let jiraProjectKey;
|
|
433
|
+
while (true) {
|
|
434
|
+
const { key } = await prompts({
|
|
435
|
+
type: 'text',
|
|
436
|
+
name: 'key',
|
|
437
|
+
message: 'Jira project key (e.g. MYPROJ):'
|
|
438
|
+
});
|
|
439
|
+
if (!key || !key.trim()) {
|
|
440
|
+
console.log(chalk.red(' Jira project key cannot be empty. Please try again.'));
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
if (!/^[A-Z][A-Z0-9]+$/.test(key.trim())) {
|
|
444
|
+
console.log(chalk.red(' Jira project key must be uppercase alphanumeric (e.g. MYPROJ). Please try again.'));
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
jiraProjectKey = key.trim();
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
return { mode: 'jira', jiraUrl, jiraProjectKey };
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function normalizePath(p) {
|
|
455
|
+
return p.replace(/\\/g, '/');
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function yamlEscapeValue(v) {
|
|
459
|
+
if (!v) return '""';
|
|
460
|
+
const s = String(v);
|
|
461
|
+
if (/[:"#\[\]{}&*!|>%@`]/.test(s) || s !== s.trim() || s === '') {
|
|
462
|
+
return '"' + s.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"';
|
|
463
|
+
}
|
|
464
|
+
return '"' + s + '"';
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function toPortablePath(absolutePath, projectRoot) {
|
|
468
|
+
if (!absolutePath || absolutePath === '.') return { portable: '.', isAbsolute: false };
|
|
469
|
+
|
|
470
|
+
const rel = normalizePath(path.relative(projectRoot, absolutePath));
|
|
471
|
+
|
|
472
|
+
// Same directory: path.relative returns '' — treat as '.'
|
|
473
|
+
if (rel === '') return { portable: '.', isAbsolute: false };
|
|
474
|
+
|
|
475
|
+
// Cross-drive on Windows: path.relative returns the absolute target unchanged
|
|
476
|
+
if (path.isAbsolute(rel) || /^[A-Za-z]:/.test(rel)) {
|
|
477
|
+
return { portable: normalizePath(absolutePath), isAbsolute: true };
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// Too many levels up — treat as non-portable
|
|
481
|
+
const upLevels = (rel.match(/\.\./g) || []).length;
|
|
482
|
+
if (upLevels > 3) {
|
|
483
|
+
return { portable: normalizePath(absolutePath), isAbsolute: true };
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return { portable: rel, isAbsolute: false };
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function writeConfigField(content, fieldName, value) {
|
|
490
|
+
const regex = new RegExp(`^${fieldName}:.*$`, 'm');
|
|
491
|
+
const newLine = `${fieldName}: ${yamlEscapeValue(value)}`;
|
|
492
|
+
if (regex.test(content)) {
|
|
493
|
+
return content.replace(regex, newLine);
|
|
494
|
+
}
|
|
495
|
+
return content.trimEnd() + '\n' + newLine + '\n';
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function writeRepoLayoutConfig(layout) {
|
|
499
|
+
const configPath = path.join(process.cwd(), '_bmad', 'bmm', 'config.yaml');
|
|
500
|
+
try {
|
|
501
|
+
if (!fs.existsSync(configPath)) {
|
|
502
|
+
// Create an empty file so writeConfigField can append to it
|
|
503
|
+
fs.mkdirSync(path.join(process.cwd(), '_bmad', 'bmm'), { recursive: true });
|
|
504
|
+
fs.writeFileSync(configPath, '', 'utf-8');
|
|
505
|
+
}
|
|
506
|
+
let content = fs.readFileSync(configPath, 'utf-8');
|
|
507
|
+
const projectRoot = process.cwd();
|
|
508
|
+
const kbPortable = toPortablePath(layout.knowledgebase.path, projectRoot);
|
|
509
|
+
const kbPath = kbPortable.portable;
|
|
510
|
+
content = writeConfigField(content, 'knowledgebase_path', kbPath);
|
|
511
|
+
|
|
512
|
+
const spMode = layout.sprintManagement.mode;
|
|
513
|
+
if (spMode === 'jira') {
|
|
514
|
+
// Jira backend: write sprint_backend + Jira config; no sprint_management_path
|
|
515
|
+
content = writeConfigField(content, 'sprint_backend', 'jira');
|
|
516
|
+
content = writeConfigField(content, 'jira_url', layout.sprintManagement.jiraUrl);
|
|
517
|
+
content = writeConfigField(content, 'jira_project_key', layout.sprintManagement.jiraProjectKey);
|
|
518
|
+
// Derive artifact paths from kb only
|
|
519
|
+
const planningArtifacts = kbPath === '.' ? '_bmad-output/planning-artifacts' : `${kbPath}/_bmad-output/planning-artifacts`;
|
|
520
|
+
const implArtifacts = '_bmad-output/implementation-artifacts';
|
|
521
|
+
content = writeConfigField(content, 'planning_artifacts', planningArtifacts);
|
|
522
|
+
content = writeConfigField(content, 'implementation_artifacts', implArtifacts);
|
|
523
|
+
fs.writeFileSync(configPath, content, 'utf-8');
|
|
524
|
+
console.log(chalk.gray(` Config: knowledgebase_path="${kbPath}", sprint_backend=jira, jira_url="${layout.sprintManagement.jiraUrl}", jira_project_key="${layout.sprintManagement.jiraProjectKey}"`));
|
|
525
|
+
} else {
|
|
526
|
+
// File-system backend
|
|
527
|
+
const spPortable = toPortablePath(layout.sprintManagement.path, projectRoot);
|
|
528
|
+
const spPath = spPortable.portable;
|
|
529
|
+
content = writeConfigField(content, 'sprint_backend', 'file-system');
|
|
530
|
+
content = writeConfigField(content, 'sprint_management_path', spPath);
|
|
531
|
+
// Derive workflow-consumable artifact paths from layout paths (relative when base is relative)
|
|
532
|
+
const planningArtifacts = kbPath === '.' ? '_bmad-output/planning-artifacts' : `${kbPath}/_bmad-output/planning-artifacts`;
|
|
533
|
+
const implArtifacts = spPath === '.' ? '_bmad-output/implementation-artifacts' : `${spPath}/_bmad-output/implementation-artifacts`;
|
|
534
|
+
content = writeConfigField(content, 'planning_artifacts', planningArtifacts);
|
|
535
|
+
content = writeConfigField(content, 'implementation_artifacts', implArtifacts);
|
|
536
|
+
fs.writeFileSync(configPath, content, 'utf-8');
|
|
537
|
+
console.log(chalk.gray(` Config: knowledgebase_path="${kbPath}", sprint_backend=file-system, sprint_management_path="${spPath}"`));
|
|
538
|
+
}
|
|
539
|
+
} catch (e) {
|
|
540
|
+
console.log(chalk.red(` Cannot write config.yaml: ${e.message}`));
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function writeProjectLayoutYaml(layout) {
|
|
545
|
+
const layoutPath = path.join(process.cwd(), '_bmad-output', 'project-layout.yaml');
|
|
546
|
+
// Only skip writing when BOTH concerns are truly same-repo (jira requires config recording)
|
|
547
|
+
const bothSame = layout.knowledgebase.mode === 'same' && layout.sprintManagement.mode === 'same';
|
|
548
|
+
|
|
549
|
+
if (bothSame) {
|
|
550
|
+
// Single-repo mode: delete stale file if exists
|
|
551
|
+
if (fs.existsSync(layoutPath)) {
|
|
552
|
+
fs.unlinkSync(layoutPath);
|
|
553
|
+
console.log(chalk.blue(' Removed stale project-layout.yaml (now in single-repo mode)'));
|
|
554
|
+
}
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// Multi-repo or Jira mode: generate project-layout.yaml
|
|
559
|
+
fs.mkdirSync(path.join(process.cwd(), '_bmad-output'), { recursive: true });
|
|
560
|
+
|
|
561
|
+
const date = new Date().toISOString().slice(0, 10);
|
|
562
|
+
let content = `# Generated by ma-agents — do not edit manually\n`;
|
|
563
|
+
content += `# Tells agents where to find planning and sprint data\n`;
|
|
564
|
+
content += `generated: "${date}"\n`;
|
|
565
|
+
|
|
566
|
+
const projectRoot = process.cwd();
|
|
567
|
+
|
|
568
|
+
// Knowledgebase section
|
|
569
|
+
const kbPortable = toPortablePath(layout.knowledgebase.path, projectRoot);
|
|
570
|
+
content += `knowledgebase:\n`;
|
|
571
|
+
content += ` mode: ${layout.knowledgebase.mode}\n`;
|
|
572
|
+
content += ` path: ${yamlEscapeValue(kbPortable.portable)}\n`;
|
|
573
|
+
if (kbPortable.isAbsolute) {
|
|
574
|
+
content += ` # PORTABILITY: absolute path — other developers may need to reconfigure\n`;
|
|
575
|
+
}
|
|
576
|
+
if (layout.knowledgebase.mode === 'remote' && layout.knowledgebase.gitUrl) {
|
|
577
|
+
content += ` gitUrl: ${yamlEscapeValue(layout.knowledgebase.gitUrl)}\n`;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
// Sprint management section
|
|
581
|
+
content += `sprint_management:\n`;
|
|
582
|
+
content += ` mode: ${layout.sprintManagement.mode}\n`;
|
|
583
|
+
if (layout.sprintManagement.mode === 'jira') {
|
|
584
|
+
content += ` jira_url: ${yamlEscapeValue(layout.sprintManagement.jiraUrl)}\n`;
|
|
585
|
+
content += ` jira_project_key: ${yamlEscapeValue(layout.sprintManagement.jiraProjectKey)}\n`;
|
|
586
|
+
} else {
|
|
587
|
+
const spPortable = toPortablePath(layout.sprintManagement.path, projectRoot);
|
|
588
|
+
content += ` path: ${yamlEscapeValue(spPortable.portable)}\n`;
|
|
589
|
+
if (spPortable.isAbsolute) {
|
|
590
|
+
content += ` # PORTABILITY: absolute path — other developers may need to reconfigure\n`;
|
|
591
|
+
}
|
|
592
|
+
if (layout.sprintManagement.mode === 'remote' && layout.sprintManagement.gitUrl) {
|
|
593
|
+
content += ` gitUrl: ${yamlEscapeValue(layout.sprintManagement.gitUrl)}\n`;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
fs.writeFileSync(layoutPath, content, 'utf-8');
|
|
598
|
+
console.log(chalk.gray(` Created _bmad-output/project-layout.yaml`));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
function resolveStoredPath(storedPath, projectRoot) {
|
|
602
|
+
if (!storedPath) return '.';
|
|
603
|
+
if (storedPath === '.') return storedPath;
|
|
604
|
+
// If already absolute, use as-is (backward compat)
|
|
605
|
+
if (path.isAbsolute(storedPath) || /^[A-Za-z]:/.test(storedPath)) return storedPath;
|
|
606
|
+
// Relative path — resolve from project root
|
|
607
|
+
return normalizePath(path.resolve(projectRoot, storedPath));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function readExistingLayout() {
|
|
611
|
+
const projectRoot = process.cwd();
|
|
612
|
+
// Try project-layout.yaml first (authoritative source written by Story 16.2)
|
|
613
|
+
const layoutPath = path.join(projectRoot, '_bmad-output', 'project-layout.yaml');
|
|
614
|
+
try {
|
|
615
|
+
if (fs.existsSync(layoutPath)) {
|
|
616
|
+
const content = fs.readFileSync(layoutPath, 'utf-8');
|
|
617
|
+
const layout = { knowledgebase: null, sprintManagement: null };
|
|
618
|
+
|
|
619
|
+
// Parse each concern section from the simple YAML
|
|
620
|
+
for (const [section, key] of [['knowledgebase', 'knowledgebase'], ['sprint_management', 'sprintManagement']]) {
|
|
621
|
+
const sectionMatch = content.match(new RegExp(`^${section}:\\s*$`, 'm'));
|
|
622
|
+
if (!sectionMatch) continue;
|
|
623
|
+
|
|
624
|
+
const afterSection = content.slice(sectionMatch.index + sectionMatch[0].length);
|
|
625
|
+
const modeMatch = afterSection.match(/^\s+mode:\s*(\S+)/m);
|
|
626
|
+
const pathMatch = afterSection.match(/^\s+path:\s*"?([^"\n]+)"?/m);
|
|
627
|
+
const gitUrlMatch = afterSection.match(/^\s+gitUrl:\s*"?([^"\n]+)"?/m);
|
|
628
|
+
const jiraUrlMatch = afterSection.match(/^\s+jira_url:\s*"?([^"\n]+)"?/m);
|
|
629
|
+
const jiraProjectKeyMatch = afterSection.match(/^\s+jira_project_key:\s*"?([^"\n]+)"?/m);
|
|
630
|
+
|
|
631
|
+
if (modeMatch) {
|
|
632
|
+
const mode = modeMatch[1];
|
|
633
|
+
if (mode === 'jira') {
|
|
634
|
+
const jiraUrl = jiraUrlMatch ? jiraUrlMatch[1].replace(/^"(.*)"$/, '$1') : '';
|
|
635
|
+
const jiraProjectKey = jiraProjectKeyMatch ? jiraProjectKeyMatch[1].replace(/^"(.*)"$/, '$1') : '';
|
|
636
|
+
layout[key] = { mode: 'jira', jiraUrl, jiraProjectKey };
|
|
637
|
+
} else if (pathMatch) {
|
|
638
|
+
const resolvedPath = resolveStoredPath(pathMatch[1], projectRoot);
|
|
639
|
+
const entry = { mode, path: resolvedPath };
|
|
640
|
+
if (mode === 'remote' && gitUrlMatch) {
|
|
641
|
+
entry.gitUrl = gitUrlMatch[1];
|
|
642
|
+
}
|
|
643
|
+
layout[key] = entry;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// Only return if we parsed at least one valid concern
|
|
649
|
+
if (layout.knowledgebase || layout.sprintManagement) {
|
|
650
|
+
// Fill in defaults for any missing section
|
|
651
|
+
if (!layout.knowledgebase) layout.knowledgebase = { mode: 'same', path: '.' };
|
|
652
|
+
if (!layout.sprintManagement) layout.sprintManagement = { mode: 'same', path: '.' };
|
|
653
|
+
return layout;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
} catch (e) {
|
|
657
|
+
console.log(chalk.yellow(` Warning: could not read project-layout.yaml: ${e.message}`));
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
// Fallback: check config.yaml for path fields
|
|
661
|
+
const configPath = path.join(projectRoot, '_bmad', 'bmm', 'config.yaml');
|
|
662
|
+
try {
|
|
663
|
+
if (fs.existsSync(configPath)) {
|
|
664
|
+
const content = fs.readFileSync(configPath, 'utf-8');
|
|
665
|
+
const kbMatch = content.match(/^knowledgebase_path:\s*"?([^"\n]+)"?/m);
|
|
666
|
+
const spMatch = content.match(/^sprint_management_path:\s*"?([^"\n]+)"?/m);
|
|
667
|
+
|
|
668
|
+
const kbPath = kbMatch ? resolveStoredPath(kbMatch[1], projectRoot) : null;
|
|
669
|
+
const spPath = spMatch ? resolveStoredPath(spMatch[1], projectRoot) : null;
|
|
670
|
+
|
|
671
|
+
// Only return if at least one non-default path exists
|
|
672
|
+
if ((kbPath && kbPath !== '.') || (spPath && spPath !== '.')) {
|
|
673
|
+
return {
|
|
674
|
+
knowledgebase: kbPath && kbPath !== '.'
|
|
675
|
+
? { mode: 'local', path: kbPath }
|
|
676
|
+
: { mode: 'same', path: '.' },
|
|
677
|
+
sprintManagement: spPath && spPath !== '.'
|
|
678
|
+
? { mode: 'local', path: spPath }
|
|
679
|
+
: { mode: 'same', path: '.' },
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
} catch (e) {
|
|
684
|
+
console.log(chalk.yellow(` Warning: could not read config.yaml layout: ${e.message}`));
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
return null;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
function ciCloneIfNeeded(destPath, gitUrl, clonedRepos) {
|
|
691
|
+
// Deduplicate: same URL + path already cloned
|
|
692
|
+
const key = `${gitUrl}::${destPath}`;
|
|
693
|
+
if (clonedRepos.has(key)) return;
|
|
694
|
+
|
|
695
|
+
if (fs.existsSync(destPath)) {
|
|
696
|
+
if (fs.existsSync(path.join(destPath, '.git'))) {
|
|
697
|
+
console.log(chalk.gray(` Using existing clone at ${destPath}`));
|
|
698
|
+
clonedRepos.set(key, true);
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
throw new Error(`Destination exists but is not a git repo — remove it or use a different path: ${destPath}`);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
try {
|
|
705
|
+
console.log(chalk.cyan(` Cloning ${gitUrl} → ${destPath}`));
|
|
706
|
+
execFileSync('git', ['clone', '--depth', '1', gitUrl, destPath], { stdio: 'pipe' });
|
|
707
|
+
clonedRepos.set(key, true);
|
|
708
|
+
} catch (e) {
|
|
709
|
+
throw new Error(`Failed to clone ${gitUrl}: ${e.message}`);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
async function collectRepoLayout(flags, existingLayout = null) {
|
|
714
|
+
// CI/CD mode: env vars > existing layout > defaults
|
|
715
|
+
if (flags.yes) {
|
|
716
|
+
const kbPath = process.env.MA_KNOWLEDGEBASE_PATH;
|
|
717
|
+
const sprintPath = process.env.MA_SPRINT_PATH;
|
|
718
|
+
const kbGitUrl = process.env.MA_KNOWLEDGEBASE_GIT_URL;
|
|
719
|
+
const sprintGitUrl = process.env.MA_SPRINT_GIT_URL;
|
|
720
|
+
|
|
721
|
+
// Validate: git URL requires corresponding path
|
|
722
|
+
if (kbGitUrl && !kbPath) {
|
|
723
|
+
throw new Error('MA_KNOWLEDGEBASE_GIT_URL requires MA_KNOWLEDGEBASE_PATH to be set (clone destination)');
|
|
724
|
+
}
|
|
725
|
+
if (sprintGitUrl && !sprintPath) {
|
|
726
|
+
throw new Error('MA_SPRINT_GIT_URL requires MA_SPRINT_PATH to be set (clone destination)');
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// Env vars take precedence
|
|
730
|
+
if (kbPath || sprintPath || kbGitUrl || sprintGitUrl) {
|
|
731
|
+
const result = { knowledgebase: null, sprintManagement: null };
|
|
732
|
+
|
|
733
|
+
// Track cloned repos to avoid duplicate clones (AC #8)
|
|
734
|
+
const clonedRepos = new Map();
|
|
735
|
+
|
|
736
|
+
for (const [concern, envPath, envGitUrl] of [
|
|
737
|
+
['knowledgebase', kbPath, kbGitUrl],
|
|
738
|
+
['sprintManagement', sprintPath, sprintGitUrl],
|
|
739
|
+
]) {
|
|
740
|
+
if (envGitUrl && envPath) {
|
|
741
|
+
const resolvedPath = path.resolve(envPath);
|
|
742
|
+
// Clone if needed (CI-mode: fail loudly, no fallback)
|
|
743
|
+
ciCloneIfNeeded(resolvedPath, envGitUrl, clonedRepos);
|
|
744
|
+
result[concern] = { mode: 'remote', path: resolvedPath, gitUrl: envGitUrl };
|
|
745
|
+
} else if (envPath) {
|
|
746
|
+
result[concern] = { mode: 'local', path: path.resolve(envPath) };
|
|
747
|
+
} else {
|
|
748
|
+
result[concern] = existingLayout ? existingLayout[concern] : { mode: 'same', path: '.' };
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
return result;
|
|
753
|
+
}
|
|
754
|
+
// No env vars: preserve existing layout if available
|
|
755
|
+
if (existingLayout) {
|
|
756
|
+
return existingLayout;
|
|
757
|
+
}
|
|
758
|
+
// No env vars, no existing layout: default to single-repo
|
|
759
|
+
return {
|
|
760
|
+
knowledgebase: { mode: 'same', path: '.' },
|
|
761
|
+
sprintManagement: { mode: 'same', path: '.' },
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const layout = { knowledgebase: null, sprintManagement: null };
|
|
766
|
+
const labels = { knowledgebase: 'knowledgebase', sprintManagement: 'sprint management' };
|
|
767
|
+
|
|
768
|
+
for (const concern of ['knowledgebase', 'sprintManagement']) {
|
|
769
|
+
const existingMode = existingLayout && existingLayout[concern] ? existingLayout[concern].mode : null;
|
|
770
|
+
const modeChoices = [
|
|
771
|
+
{ title: 'Current repository (default)', value: 'same' },
|
|
772
|
+
{ title: 'Local path', value: 'local' },
|
|
773
|
+
{ title: 'Remote git repository', value: 'remote' },
|
|
774
|
+
...(concern === 'sprintManagement' ? [{ title: 'Jira', value: 'jira' }] : []),
|
|
775
|
+
];
|
|
776
|
+
// Pre-select existing mode if available
|
|
777
|
+
const initialIndex = existingMode ? modeChoices.findIndex(c => c.value === existingMode) : 0;
|
|
778
|
+
|
|
779
|
+
const { mode } = await prompts({
|
|
780
|
+
type: 'select',
|
|
781
|
+
name: 'mode',
|
|
782
|
+
message: `Where is your ${labels[concern]} managed?`,
|
|
783
|
+
choices: modeChoices,
|
|
784
|
+
initial: initialIndex >= 0 ? initialIndex : 0
|
|
785
|
+
});
|
|
786
|
+
|
|
787
|
+
if (!mode) process.exit(0);
|
|
788
|
+
|
|
789
|
+
if (mode === 'same') {
|
|
790
|
+
layout[concern] = { mode: 'same', path: '.' };
|
|
791
|
+
} else if (mode === 'local') {
|
|
792
|
+
layout[concern] = await collectLocalPath(labels[concern]);
|
|
793
|
+
} else if (mode === 'remote') {
|
|
794
|
+
layout[concern] = await collectRemotePath(labels[concern]);
|
|
795
|
+
} else if (mode === 'jira') {
|
|
796
|
+
layout[concern] = await collectJiraConfig();
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
// Check if both concerns point to same external path
|
|
801
|
+
if (layout.knowledgebase.mode !== 'same' && layout.sprintManagement.mode !== 'same'
|
|
802
|
+
&& layout.knowledgebase.path === layout.sprintManagement.path) {
|
|
803
|
+
console.log(chalk.cyan(' Both concerns point to same external repository'));
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
return layout;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
// --- BMad module selection ---
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Resolve which BMAD modules to install for this run.
|
|
813
|
+
*
|
|
814
|
+
* Three branches:
|
|
815
|
+
* 1. `--bmad-modules <csv>` → install exactly those (bmm force-prepended,
|
|
816
|
+
* unknowns rejected with a clear error)
|
|
817
|
+
* 2. `--bmad-modules` bare → multiselect prompt; bmm is required and
|
|
818
|
+
* pre-checked, others default-checked so a no-op confirmation matches
|
|
819
|
+
* the no-flag default
|
|
820
|
+
* 3. (no flag) → install every non-retired module from the
|
|
821
|
+
* cache manifest, no prompt — restores the originally-intended
|
|
822
|
+
* behavior that the hardcoded ['bmm'] literal had been suppressing
|
|
823
|
+
*
|
|
824
|
+
* `bmm` is force-included in every path because the BMad core agents
|
|
825
|
+
* (analyst, PM, dev, architect, ...) live there and downstream skills
|
|
826
|
+
* break without them. Retired modules (currently only `wds`) are filtered
|
|
827
|
+
* out unconditionally.
|
|
828
|
+
*/
|
|
829
|
+
async function selectBmadModules({ bmadModulesFlag, bmadModulesPrompt }) {
|
|
830
|
+
const installable = bmad.getInstallableBmadModules().filter(m => !m.retired);
|
|
831
|
+
|
|
832
|
+
// Branch 1: explicit CSV — validate + use as-is.
|
|
833
|
+
if (bmadModulesFlag) {
|
|
834
|
+
const requested = bmadModulesFlag.split(',').map(s => s.trim()).filter(Boolean);
|
|
835
|
+
try {
|
|
836
|
+
return bmad.resolveBmadModules({ requested, available: installable });
|
|
837
|
+
} catch (err) {
|
|
838
|
+
console.error(chalk.red(`Error: ${err.message}`));
|
|
839
|
+
process.exit(1);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// Branch 2: bare --bmad-modules → multiselect prompt.
|
|
844
|
+
if (bmadModulesPrompt) {
|
|
845
|
+
const choices = installable.map(m => {
|
|
846
|
+
const isCore = m.id === 'bmm';
|
|
847
|
+
const requiredTag = isCore ? chalk.yellow(' (required)') : '';
|
|
848
|
+
return {
|
|
849
|
+
title: chalk.white(m.id) + requiredTag + chalk.gray(` — ${m.description}`),
|
|
850
|
+
value: m.id,
|
|
851
|
+
// Default-check everything so hitting Enter matches the no-flag
|
|
852
|
+
// "install all" default. Users uncheck what they want to skip.
|
|
853
|
+
selected: true,
|
|
854
|
+
};
|
|
855
|
+
});
|
|
856
|
+
|
|
857
|
+
const { chosenModules } = await prompts({
|
|
858
|
+
type: 'multiselect',
|
|
859
|
+
name: 'chosenModules',
|
|
860
|
+
message: 'Select BMAD-METHOD modules to install:',
|
|
861
|
+
choices,
|
|
862
|
+
instructions: chalk.gray(' Use space to toggle, enter to confirm. bmm is required and will be installed regardless.'),
|
|
863
|
+
min: 1,
|
|
864
|
+
});
|
|
865
|
+
|
|
866
|
+
if (chosenModules === undefined) process.exit(0);
|
|
867
|
+
|
|
868
|
+
// Belt-and-suspenders: force bmm back in if the user managed to uncheck
|
|
869
|
+
// it despite the (required) tag.
|
|
870
|
+
return bmad.resolveBmadModules({ requested: chosenModules, available: installable });
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// Branch 3: no flag → install everything available.
|
|
874
|
+
return installable.map(m => m.id);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
// --- Install wizard ---
|
|
878
|
+
|
|
879
|
+
async function installWizard(preselectedSkill, preselectedAgents, customPath, forceFlag, yesFlag = false, cliScope, bmadModulesFlag = '', bmadModulesPrompt = false) {
|
|
880
|
+
const skills = listSkills();
|
|
881
|
+
const agents = listAgents();
|
|
882
|
+
|
|
883
|
+
let selectedSkillIds = preselectedSkill ? [preselectedSkill] : [];
|
|
884
|
+
let selectedAgentIds = preselectedAgents || [];
|
|
885
|
+
let installScope = cliScope || 'project';
|
|
886
|
+
let installPath = customPath || '';
|
|
887
|
+
|
|
888
|
+
const existingStatus = getStatus([], '', 'project');
|
|
889
|
+
let isUpdate = false;
|
|
890
|
+
|
|
891
|
+
// Step 0: Check for existing installation ONLY in interactive mode (no preselected skill)
|
|
892
|
+
if (!preselectedSkill && !customPath && existingStatus.length > 0) {
|
|
893
|
+
if (yesFlag) {
|
|
894
|
+
// Default: clean reinstall (avoids isUpdate path which re-triggers skill selection prompts)
|
|
895
|
+
for (const entry of existingStatus) {
|
|
896
|
+
for (const skillId of Object.keys(entry.skills)) {
|
|
897
|
+
await uninstallSkill(skillId, [entry.agent.id], '', 'project');
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
console.log(chalk.gray(' Clean slate prepared.'));
|
|
901
|
+
} else {
|
|
902
|
+
console.log(chalk.cyan('\n Existing installation detected in project.'));
|
|
903
|
+
|
|
904
|
+
const { action } = await prompts({
|
|
905
|
+
type: 'select',
|
|
906
|
+
name: 'action',
|
|
907
|
+
message: 'What would you like to do?',
|
|
908
|
+
choices: [
|
|
909
|
+
{ title: 'Update (add/remove skills)', value: 'update' },
|
|
910
|
+
{ title: 'Clean reinstall (remove all first)', value: 'reinstall' },
|
|
911
|
+
{ title: 'Uninstall all skills', value: 'uninstall' },
|
|
912
|
+
{ title: 'Cancel', value: 'cancel' }
|
|
913
|
+
]
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
if (!action || action === 'cancel') process.exit(0);
|
|
917
|
+
|
|
918
|
+
if (action === 'uninstall') {
|
|
919
|
+
const { confirmed } = await prompts({
|
|
920
|
+
type: 'confirm',
|
|
921
|
+
name: 'confirmed',
|
|
922
|
+
message: 'This will remove all ma-agents skills from this project. Are you sure?',
|
|
923
|
+
initial: false
|
|
924
|
+
});
|
|
925
|
+
if (!confirmed) process.exit(0);
|
|
926
|
+
|
|
927
|
+
for (const entry of existingStatus) {
|
|
928
|
+
for (const skillId of Object.keys(entry.skills)) {
|
|
929
|
+
await uninstallSkill(skillId, [entry.agent.id], '', 'project');
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
console.log(chalk.bold.green('\n All skills successfully removed!\n'));
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
if (action === 'reinstall') {
|
|
937
|
+
for (const entry of existingStatus) {
|
|
938
|
+
for (const skillId of Object.keys(entry.skills)) {
|
|
939
|
+
await uninstallSkill(skillId, [entry.agent.id], '', 'project');
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
console.log(chalk.gray(' Clean slate prepared.'));
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (action === 'update') {
|
|
946
|
+
isUpdate = true;
|
|
947
|
+
// Pre-populate selections from existing status
|
|
948
|
+
const existingSkillIds = new Set();
|
|
949
|
+
const existingAgentIds = new Set();
|
|
950
|
+
existingStatus.forEach(entry => {
|
|
951
|
+
existingAgentIds.add(entry.agent.id);
|
|
952
|
+
Object.keys(entry.skills).forEach(id => existingSkillIds.add(id));
|
|
953
|
+
});
|
|
954
|
+
selectedSkillIds = Array.from(existingSkillIds);
|
|
955
|
+
selectedAgentIds = Array.from(existingAgentIds);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// Step 1: Select skills
|
|
961
|
+
if (yesFlag || selectedSkillIds.length === 0 || isUpdate) {
|
|
962
|
+
if (yesFlag) {
|
|
963
|
+
selectedSkillIds = skills.map(s => s.id);
|
|
964
|
+
} else {
|
|
965
|
+
const { selectionType } = await prompts({
|
|
966
|
+
type: 'select',
|
|
967
|
+
name: 'selectionType',
|
|
968
|
+
message: 'Would you like to install all available skills or choose specific ones?',
|
|
969
|
+
choices: [
|
|
970
|
+
{ title: 'Install all available skills', value: 'all' },
|
|
971
|
+
{ title: 'Choose which skills to install', value: 'custom' }
|
|
972
|
+
]
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
if (!selectionType) process.exit(0);
|
|
976
|
+
|
|
977
|
+
if (selectionType === 'all') {
|
|
978
|
+
selectedSkillIds = skills.map(s => s.id);
|
|
979
|
+
} else {
|
|
980
|
+
const { skills: chosen } = await prompts({
|
|
981
|
+
type: 'multiselect',
|
|
982
|
+
name: 'skills',
|
|
983
|
+
message: 'Select the skills you want to have installed:',
|
|
984
|
+
choices: skills.map(s => ({
|
|
985
|
+
title: chalk.white(s.name) + chalk.gray(` v${s.version} - ${s.description}`),
|
|
986
|
+
value: s.id,
|
|
987
|
+
selected: selectedSkillIds.includes(s.id)
|
|
988
|
+
})),
|
|
989
|
+
instructions: chalk.gray(' Use space to select, enter to confirm'),
|
|
990
|
+
min: 1
|
|
991
|
+
});
|
|
992
|
+
|
|
993
|
+
if (!chosen) process.exit(0);
|
|
994
|
+
selectedSkillIds = chosen;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
// Step 2: Select agents
|
|
1000
|
+
if (yesFlag || selectedAgentIds.length === 0 || isUpdate) {
|
|
1001
|
+
const ideAgents = agents.filter(a => a.category !== 'bmad');
|
|
1002
|
+
const bmadAgents = agents.filter(a => a.category === 'bmad');
|
|
1003
|
+
|
|
1004
|
+
if (yesFlag) {
|
|
1005
|
+
// Bug B1 fix: when --agent flag is present (preselectedAgents already
|
|
1006
|
+
// populated selectedAgentIds), do NOT overwrite with all agents.
|
|
1007
|
+
// Only fall back to all agents when no agent was pre-selected.
|
|
1008
|
+
if (selectedAgentIds.length === 0) {
|
|
1009
|
+
selectedAgentIds = [...ideAgents.map(a => a.id), ...bmadAgents.map(a => a.id)];
|
|
1010
|
+
}
|
|
1011
|
+
if (selectedAgentIds.length === 0) {
|
|
1012
|
+
console.error(chalk.red('Error: No agents detected'));
|
|
1013
|
+
console.error(chalk.gray(' Hint: Ensure at least one supported IDE is present'));
|
|
1014
|
+
process.exit(1);
|
|
1015
|
+
}
|
|
1016
|
+
} else {
|
|
1017
|
+
// 2.1 Coding Assistants
|
|
1018
|
+
const { ideChosen } = await prompts({
|
|
1019
|
+
type: 'multiselect',
|
|
1020
|
+
name: 'ideChosen',
|
|
1021
|
+
message: 'Select AI Coding Assistants:',
|
|
1022
|
+
choices: ideAgents.map(a => ({
|
|
1023
|
+
title: chalk.white(a.name) + chalk.gray(` v${a.version} - ${a.description}`),
|
|
1024
|
+
value: a.id,
|
|
1025
|
+
selected: selectedAgentIds.includes(a.id)
|
|
1026
|
+
})),
|
|
1027
|
+
instructions: chalk.gray(' Use space to select, enter to confirm'),
|
|
1028
|
+
});
|
|
1029
|
+
|
|
1030
|
+
if (ideChosen === undefined) process.exit(0);
|
|
1031
|
+
|
|
1032
|
+
// 2.2 BMAD Method Agents
|
|
1033
|
+
const { bmadChosen } = await prompts({
|
|
1034
|
+
type: 'multiselect',
|
|
1035
|
+
name: 'bmadChosen',
|
|
1036
|
+
message: 'Select BMAD Method Agents:',
|
|
1037
|
+
choices: bmadAgents.map(a => ({
|
|
1038
|
+
title: chalk.white(a.name) + chalk.gray(` v${a.version} - ${a.description}`),
|
|
1039
|
+
value: a.id,
|
|
1040
|
+
selected: selectedAgentIds.includes(a.id)
|
|
1041
|
+
})),
|
|
1042
|
+
instructions: chalk.gray(' Use space to select, enter to confirm'),
|
|
1043
|
+
});
|
|
1044
|
+
|
|
1045
|
+
if (bmadChosen === undefined) process.exit(0);
|
|
1046
|
+
|
|
1047
|
+
selectedAgentIds = [...ideChosen, ...bmadChosen];
|
|
1048
|
+
|
|
1049
|
+
if (selectedAgentIds.length === 0) {
|
|
1050
|
+
console.log(chalk.yellow('No agents selected. Please select at least one agent to install skills.'));
|
|
1051
|
+
process.exit(1);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
// Step 2.4: Profile resolution (Story 21.1, ACs #7–#9)
|
|
1057
|
+
// Must run AFTER agent selection and BEFORE repo layout, so downstream stories
|
|
1058
|
+
// can gate layout-related guidance on profile. setProfile() is called BEFORE
|
|
1059
|
+
// any agent install runs — guaranteeing persistence even if a later step fails.
|
|
1060
|
+
// Profile lives at the project root (cwd), NOT the custom skills-install path.
|
|
1061
|
+
const projectRootForProfile = process.cwd();
|
|
1062
|
+
const persistedProfile = getProfile(projectRootForProfile);
|
|
1063
|
+
let resolvedProfile = resolveProfile({
|
|
1064
|
+
persisted: persistedProfile,
|
|
1065
|
+
yesMode: yesFlag
|
|
1066
|
+
});
|
|
1067
|
+
let profileSource;
|
|
1068
|
+
if (persistedProfile) profileSource = '.ma-agents.json';
|
|
1069
|
+
else if (resolvedProfile === 'standard' && yesFlag) profileSource = '--yes default';
|
|
1070
|
+
|
|
1071
|
+
if (resolvedProfile === null) {
|
|
1072
|
+
const { chosenProfile } = await prompts({
|
|
1073
|
+
type: 'select',
|
|
1074
|
+
name: 'chosenProfile',
|
|
1075
|
+
message: 'Is this an on-prem / air-gapped install using a local LLM (e.g. Nemotron)?',
|
|
1076
|
+
choices: [
|
|
1077
|
+
{ title: 'Yes — apply local-LLM guardrails (recommended for non-Claude models)', value: 'on-prem' },
|
|
1078
|
+
{ title: 'No — standard install (Claude on web, Anthropic API, etc.)', value: 'standard' }
|
|
1079
|
+
],
|
|
1080
|
+
initial: 1
|
|
1081
|
+
});
|
|
1082
|
+
if (!chosenProfile) process.exit(0);
|
|
1083
|
+
resolvedProfile = chosenProfile;
|
|
1084
|
+
profileSource = 'interactive prompt';
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
console.log(chalk.cyan(`Using profile: ${resolvedProfile} (from ${profileSource})`));
|
|
1088
|
+
|
|
1089
|
+
// Persist BEFORE any agent install step (AC #9). setProfile bootstraps the
|
|
1090
|
+
// manifest via ensureManifest when absent.
|
|
1091
|
+
setProfile(projectRootForProfile, resolvedProfile);
|
|
1092
|
+
|
|
1093
|
+
// Step 2.5: Repository layout (preserve existing config on update)
|
|
1094
|
+
const existingLayout = isUpdate ? readExistingLayout() : null;
|
|
1095
|
+
const repoLayout = await collectRepoLayout({ yes: yesFlag }, existingLayout);
|
|
1096
|
+
|
|
1097
|
+
// Step 3: Scope (Skip if update, yesFlag, CLI --global flag, or path already set)
|
|
1098
|
+
if (!isUpdate && !installPath && !yesFlag && !cliScope) {
|
|
1099
|
+
const { pathChoice } = await prompts({
|
|
1100
|
+
type: 'select',
|
|
1101
|
+
name: 'pathChoice',
|
|
1102
|
+
message: 'Installation scope:',
|
|
1103
|
+
choices: [
|
|
1104
|
+
{ title: 'Project level (current directory)', value: 'project' },
|
|
1105
|
+
{ title: 'Global (user-level settings)', value: 'global' },
|
|
1106
|
+
{ title: 'Custom path...', value: 'custom' }
|
|
1107
|
+
]
|
|
1108
|
+
});
|
|
1109
|
+
|
|
1110
|
+
if (pathChoice === 'global') {
|
|
1111
|
+
installScope = 'global';
|
|
1112
|
+
} else if (pathChoice === 'custom') {
|
|
1113
|
+
const { customDir } = await prompts({
|
|
1114
|
+
type: 'text',
|
|
1115
|
+
name: 'customDir',
|
|
1116
|
+
message: 'Enter installation directory:',
|
|
1117
|
+
initial: './skills'
|
|
1118
|
+
});
|
|
1119
|
+
installPath = customDir || '';
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// Step 3.4: Filter out BMAD agents for global scope (they require project-level install)
|
|
1124
|
+
if (installScope === 'global') {
|
|
1125
|
+
const bmadAgentIds = selectedAgentIds.filter(id => {
|
|
1126
|
+
const agent = agents.find(a => a.id === id);
|
|
1127
|
+
return agent && agent.category === 'bmad';
|
|
1128
|
+
});
|
|
1129
|
+
if (bmadAgentIds.length > 0) {
|
|
1130
|
+
console.log(chalk.yellow(`\n Warning: BMAD agents require project-level installation and will be skipped for global scope:`));
|
|
1131
|
+
console.log(chalk.yellow(` ${bmadAgentIds.join(', ')}`));
|
|
1132
|
+
console.log(chalk.gray(` Run again without --global to install BMAD agents into the current project.`));
|
|
1133
|
+
selectedAgentIds = selectedAgentIds.filter(id => !bmadAgentIds.includes(id));
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
// Step 3.5: BMAD-METHOD Integration
|
|
1138
|
+
if (installScope === 'project') {
|
|
1139
|
+
const bmadToolsFilter = agents.filter(a => a.category === 'ide').map(a => a.id);
|
|
1140
|
+
|
|
1141
|
+
if (yesFlag) {
|
|
1142
|
+
// Warn about IDE agents not supported for BMAD customizations
|
|
1143
|
+
const ideAgentIds = agents.filter(a => a.category !== 'bmad').map(a => a.id);
|
|
1144
|
+
const unsupported = selectedAgentIds.filter(id => ideAgentIds.includes(id) && !bmadToolsFilter.includes(id));
|
|
1145
|
+
unsupported.forEach(id => {
|
|
1146
|
+
console.log(chalk.yellow(` Warning: Agent '${id}' is not supported for BMAD customizations`));
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
const bmadInstalled = bmad.isBmadInstalled();
|
|
1151
|
+
const bmadTools = selectedAgentIds.filter(id => bmadToolsFilter.includes(id)).map(id => getBmadPlatformCode(id));
|
|
1152
|
+
// Story 22.6 — ma-agents customizations are now packaged as a BMAD plugin
|
|
1153
|
+
// and installed by bmad-method itself via --custom-source. The separate
|
|
1154
|
+
// `applyCustomizations()` call has been removed; installBmad()/updateBmad()
|
|
1155
|
+
// stage the plugin and invoke the installer in one pass.
|
|
1156
|
+
// v6.6.0: --tools none is rejected for fresh installs; skip BMAD entirely when no IDE tools selected.
|
|
1157
|
+
if (bmadTools.length > 0) {
|
|
1158
|
+
// Resolve module set once per BMAD invocation. Default is "install
|
|
1159
|
+
// every non-retired module"; users opt into a specific subset with
|
|
1160
|
+
// --bmad-modules <csv> or open a multiselect prompt with --bmad-modules
|
|
1161
|
+
// (bare).
|
|
1162
|
+
const bmadModules = await selectBmadModules({
|
|
1163
|
+
bmadModulesFlag,
|
|
1164
|
+
bmadModulesPrompt,
|
|
1165
|
+
});
|
|
1166
|
+
|
|
1167
|
+
if (!bmadInstalled) {
|
|
1168
|
+
if (yesFlag) {
|
|
1169
|
+
console.log(chalk.cyan(`\n Installing BMAD-METHOD (modules: ${bmadModules.join(', ')})...`));
|
|
1170
|
+
const success = await bmad.installBmad(bmadModules, bmadTools);
|
|
1171
|
+
if (success) {
|
|
1172
|
+
console.log(chalk.green(' BMAD-METHOD installed successfully!'));
|
|
1173
|
+
}
|
|
1174
|
+
} else {
|
|
1175
|
+
const { installBmad } = await prompts({
|
|
1176
|
+
type: 'confirm',
|
|
1177
|
+
name: 'installBmad',
|
|
1178
|
+
message: 'BMAD-METHOD not detected. Would you like to install it?',
|
|
1179
|
+
initial: true
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
if (installBmad) {
|
|
1183
|
+
console.log(chalk.cyan(`\n Installing BMAD-METHOD (modules: ${bmadModules.join(', ')})...`));
|
|
1184
|
+
const success = await bmad.installBmad(bmadModules, bmadTools);
|
|
1185
|
+
if (success) {
|
|
1186
|
+
console.log(chalk.green(' BMAD-METHOD installed successfully!'));
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
} else {
|
|
1191
|
+
if (yesFlag) {
|
|
1192
|
+
console.log(chalk.cyan(`\n Updating BMAD-METHOD (modules: ${bmadModules.join(', ')})...`));
|
|
1193
|
+
const success = await bmad.updateBmad(bmadModules, bmadTools);
|
|
1194
|
+
if (success) {
|
|
1195
|
+
console.log(chalk.green(' BMAD-METHOD updated successfully!'));
|
|
1196
|
+
}
|
|
1197
|
+
} else {
|
|
1198
|
+
const { updateBmad } = await prompts({
|
|
1199
|
+
type: 'confirm',
|
|
1200
|
+
name: 'updateBmad',
|
|
1201
|
+
message: 'BMAD-METHOD installation detected. Would you like to update it?',
|
|
1202
|
+
initial: true
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
if (updateBmad) {
|
|
1206
|
+
console.log(chalk.cyan(`\n Updating BMAD-METHOD (modules: ${bmadModules.join(', ')})...`));
|
|
1207
|
+
const success = await bmad.updateBmad(bmadModules, bmadTools);
|
|
1208
|
+
if (success) {
|
|
1209
|
+
console.log(chalk.green(' BMAD-METHOD updated successfully!'));
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
// Step 3.6: Write repo layout config (after BMAD install creates config.yaml)
|
|
1218
|
+
if (installScope === 'project') {
|
|
1219
|
+
writeRepoLayoutConfig(repoLayout);
|
|
1220
|
+
writeProjectLayoutYaml(repoLayout);
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
// Step 4: Confirm
|
|
1224
|
+
console.log('');
|
|
1225
|
+
console.log(chalk.bold(' Summary:'));
|
|
1226
|
+
console.log(chalk.cyan(' Skills: ') + selectedSkillIds.join(', '));
|
|
1227
|
+
console.log(chalk.cyan(' Agents: ') + selectedAgentIds.join(', '));
|
|
1228
|
+
console.log(chalk.cyan(' Path: ') + (installPath || (installScope === 'global' ? 'global (user-level)' : 'project (current directory)')));
|
|
1229
|
+
console.log('');
|
|
1230
|
+
|
|
1231
|
+
if (!yesFlag) {
|
|
1232
|
+
const { confirmed } = await prompts({
|
|
1233
|
+
type: 'confirm',
|
|
1234
|
+
name: 'confirmed',
|
|
1235
|
+
message: isUpdate ? 'Apply changes?' : 'Proceed with installation?',
|
|
1236
|
+
initial: true
|
|
1237
|
+
});
|
|
1238
|
+
|
|
1239
|
+
if (!confirmed) {
|
|
1240
|
+
console.log(chalk.yellow('Operation cancelled.'));
|
|
1241
|
+
process.exit(0);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
// Step 5: Execution
|
|
1246
|
+
if (isUpdate) {
|
|
1247
|
+
// Build a map: skillId -> set of agent IDs that originally had it installed
|
|
1248
|
+
const originalAgentsBySkill = new Map();
|
|
1249
|
+
const originalAllAgentIds = new Set();
|
|
1250
|
+
existingStatus.forEach(entry => {
|
|
1251
|
+
originalAllAgentIds.add(entry.agent.id);
|
|
1252
|
+
Object.keys(entry.skills).forEach(skillId => {
|
|
1253
|
+
if (!originalAgentsBySkill.has(skillId)) {
|
|
1254
|
+
originalAgentsBySkill.set(skillId, new Set());
|
|
1255
|
+
}
|
|
1256
|
+
originalAgentsBySkill.get(skillId).add(entry.agent.id);
|
|
1257
|
+
});
|
|
1258
|
+
});
|
|
1259
|
+
|
|
1260
|
+
const finalSkills = new Set(selectedSkillIds);
|
|
1261
|
+
|
|
1262
|
+
// Skills to fully remove (deselected from skill list)
|
|
1263
|
+
const toRemove = [...originalAgentsBySkill.keys()].filter(id => !finalSkills.has(id));
|
|
1264
|
+
|
|
1265
|
+
if (toRemove.length > 0) {
|
|
1266
|
+
console.log(chalk.gray(`\n Cleaning up ${toRemove.length} removed skills...`));
|
|
1267
|
+
for (const skillId of toRemove) {
|
|
1268
|
+
// Use the ORIGINAL agent IDs, not the new selection
|
|
1269
|
+
const originalAgents = [...originalAgentsBySkill.get(skillId)];
|
|
1270
|
+
await uninstallSkill(skillId, originalAgents, installPath, 'project');
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
// Also handle agents that were deselected: uninstall their skills
|
|
1275
|
+
const deselectedAgents = [...originalAllAgentIds].filter(id => !selectedAgentIds.includes(id));
|
|
1276
|
+
|
|
1277
|
+
if (deselectedAgents.length > 0) {
|
|
1278
|
+
console.log(chalk.gray(`\n Removing skills from ${deselectedAgents.length} deselected agents...`));
|
|
1279
|
+
for (const [skillId, agentSet] of originalAgentsBySkill) {
|
|
1280
|
+
const agentsToRemoveFrom = deselectedAgents.filter(id => agentSet.has(id));
|
|
1281
|
+
if (agentsToRemoveFrom.length > 0) {
|
|
1282
|
+
await uninstallSkill(skillId, agentsToRemoveFrom, installPath, 'project');
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
// Story 22.3 — Legacy skill retirement migration (AC 7).
|
|
1289
|
+
// Sweep every agent install path and remove any of the four retired skill IDs
|
|
1290
|
+
// (bmad-init, bmad-agent-qa, bmad-agent-sm, bmad-agent-quick-flow-solo-dev)
|
|
1291
|
+
// from the manifest and the installed skill directories. Idempotent — safe
|
|
1292
|
+
// to run on fresh installs where nothing is retired.
|
|
1293
|
+
try {
|
|
1294
|
+
await migrateRetiredSkills({ scope: installScope, customPath: installPath });
|
|
1295
|
+
} catch (err) {
|
|
1296
|
+
console.log(chalk.yellow(`\n Retired-skill migration skipped: ${err.message}`));
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
// Install requested skills
|
|
1300
|
+
const batchState = {};
|
|
1301
|
+
if (yesFlag) {
|
|
1302
|
+
batchState.globalAction = 'update';
|
|
1303
|
+
}
|
|
1304
|
+
for (const skillId of selectedSkillIds) {
|
|
1305
|
+
try {
|
|
1306
|
+
await installSkill(skillId, selectedAgentIds, installPath, installScope, { force: !!forceFlag, yes: yesFlag, batchState });
|
|
1307
|
+
} catch (error) {
|
|
1308
|
+
console.error(chalk.red(`\n Failed to install ${skillId}:`), error.message);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
// Step 6: Update project-context.md with repo layout section (after skills installed project-context.md)
|
|
1313
|
+
if (installScope === 'project') {
|
|
1314
|
+
const outputPath = path.join(process.cwd(), '_bmad-output', 'project-context.md');
|
|
1315
|
+
try {
|
|
1316
|
+
if (fs.existsSync(outputPath)) {
|
|
1317
|
+
const updated = await updateProjectContextRepoLayout(outputPath, repoLayout);
|
|
1318
|
+
if (updated) {
|
|
1319
|
+
console.log(chalk.green(' project-context.md repo layout section updated'));
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
} catch (err) {
|
|
1323
|
+
console.log(chalk.yellow(` project-context repo layout update skipped: ${err.message}`));
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
console.log(chalk.bold.green('\n Done!\n'));
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
// --- Command handlers ---
|
|
1331
|
+
|
|
1332
|
+
async function handleInstall(args) {
|
|
1333
|
+
const { globalFlag, forceFlag, yesFlag, agentFlag, customPath, bmadModulesFlag, bmadModulesPrompt, scope, positional } = parseFlags(args);
|
|
1334
|
+
|
|
1335
|
+
// Task 3.2: Validate agentFlag against known agents
|
|
1336
|
+
if (agentFlag) {
|
|
1337
|
+
const knownAgents = listAgents();
|
|
1338
|
+
const isKnown = knownAgents.some(a => a.id === agentFlag);
|
|
1339
|
+
if (!isKnown) {
|
|
1340
|
+
console.error(chalk.red(`Error: Unknown agent '${agentFlag}'`));
|
|
1341
|
+
console.error(chalk.gray(' Hint: Run "list" to see available agents'));
|
|
1342
|
+
process.exit(1);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
const skillId = positional[0];
|
|
1347
|
+
const agentIds = positional.slice(1);
|
|
1348
|
+
const preselectedAgents = agentFlag ? [agentFlag] : null;
|
|
1349
|
+
|
|
1350
|
+
// No skill → launch wizard (Task 3.3, 3.4)
|
|
1351
|
+
if (!skillId) {
|
|
1352
|
+
await installWizard(null, preselectedAgents, customPath, forceFlag, yesFlag, scope, bmadModulesFlag, bmadModulesPrompt);
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
// Skill but no agents (and no agentFlag) → wizard with skill preselected
|
|
1357
|
+
if (!agentFlag && agentIds.length === 0) {
|
|
1358
|
+
await installWizard(skillId, null, customPath, forceFlag, yesFlag, scope, bmadModulesFlag, bmadModulesPrompt);
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
// Direct install path — Story 21.1 AC #9, #11: resolve + persist profile BEFORE install.
|
|
1363
|
+
// Profile lives at the project root (cwd), not the custom skills-install path.
|
|
1364
|
+
// When stdin is not a TTY and nothing is resolvable, default to 'standard' (same
|
|
1365
|
+
// behavior as --yes) rather than aborting — keeps CI/CD direct installs working.
|
|
1366
|
+
const projectRootForProfile = process.cwd();
|
|
1367
|
+
const persistedProfile = getProfile(projectRootForProfile);
|
|
1368
|
+
let resolvedProfile = resolveProfile({
|
|
1369
|
+
persisted: persistedProfile,
|
|
1370
|
+
yesMode: yesFlag
|
|
1371
|
+
});
|
|
1372
|
+
let profileSource;
|
|
1373
|
+
if (persistedProfile) profileSource = '.ma-agents.json';
|
|
1374
|
+
else if (resolvedProfile === 'standard' && yesFlag) profileSource = '--yes default';
|
|
1375
|
+
|
|
1376
|
+
if (resolvedProfile === null) {
|
|
1377
|
+
if (!process.stdin.isTTY) {
|
|
1378
|
+
// Non-interactive fallback: default to 'standard' and persist (mirrors --yes).
|
|
1379
|
+
resolvedProfile = 'standard';
|
|
1380
|
+
profileSource = '--yes default';
|
|
1381
|
+
} else {
|
|
1382
|
+
const { chosenProfile } = await prompts({
|
|
1383
|
+
type: 'select',
|
|
1384
|
+
name: 'chosenProfile',
|
|
1385
|
+
message: 'Is this an on-prem / air-gapped install using a local LLM (e.g. Nemotron)?',
|
|
1386
|
+
choices: [
|
|
1387
|
+
{ title: 'Yes — apply local-LLM guardrails (recommended for non-Claude models)', value: 'on-prem' },
|
|
1388
|
+
{ title: 'No — standard install (Claude on web, Anthropic API, etc.)', value: 'standard' }
|
|
1389
|
+
],
|
|
1390
|
+
initial: 1
|
|
1391
|
+
});
|
|
1392
|
+
if (!chosenProfile) process.exit(0);
|
|
1393
|
+
resolvedProfile = chosenProfile;
|
|
1394
|
+
profileSource = 'interactive prompt';
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
console.log(chalk.cyan(`Using profile: ${resolvedProfile} (from ${profileSource})`));
|
|
1399
|
+
setProfile(projectRootForProfile, resolvedProfile);
|
|
1400
|
+
|
|
1401
|
+
// Full args → direct install (Task 3.5)
|
|
1402
|
+
const targetAgents = agentFlag ? [agentFlag] : agentIds;
|
|
1403
|
+
|
|
1404
|
+
// Story 22.3 (AC 7) — sweep retired legacy skills before installing.
|
|
1405
|
+
// When a customPath is given we narrow the sweep to that single path;
|
|
1406
|
+
// otherwise migrateRetiredSkills sweeps every registered agent under the
|
|
1407
|
+
// current scope (the retirement is agent-agnostic, so broader sweep is
|
|
1408
|
+
// the intended behavior even when --agent restricts the install to one).
|
|
1409
|
+
try {
|
|
1410
|
+
await migrateRetiredSkills({ scope, customPath: customPath || '' });
|
|
1411
|
+
} catch (err) {
|
|
1412
|
+
console.log(chalk.yellow(`\n Retired-skill migration skipped: ${err.message}`));
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
try {
|
|
1416
|
+
await installSkill(skillId, targetAgents, customPath, scope, { force: forceFlag, yes: yesFlag });
|
|
1417
|
+
console.log(chalk.bold.green('\n Installation complete!\n'));
|
|
1418
|
+
} catch (error) {
|
|
1419
|
+
console.error(chalk.red('\n Installation failed:'), error.message);
|
|
1420
|
+
process.exit(1);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
async function handleUninstall(args) {
|
|
1425
|
+
// Story 21.11 — if --profile-artifacts flag is present, route to uninstallProfileArtifacts.
|
|
1426
|
+
// --yes IS supported for profile-artifact uninstall (CI decommissioning use-case).
|
|
1427
|
+
// This is an intentional asymmetry vs. `reconfigure` which REJECTS --yes.
|
|
1428
|
+
if (args.includes('--profile-artifacts')) {
|
|
1429
|
+
const yesFlag = args.includes('--yes');
|
|
1430
|
+
try {
|
|
1431
|
+
await uninstallProfileArtifacts(process.cwd(), { yes: yesFlag });
|
|
1432
|
+
} catch (error) {
|
|
1433
|
+
console.error(chalk.red('\n Profile artifact uninstall failed:'), error.message);
|
|
1434
|
+
process.exit(1);
|
|
1435
|
+
}
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
const { globalFlag, customPath, scope, positional } = parseFlags(args);
|
|
1440
|
+
|
|
1441
|
+
const skillId = positional[0];
|
|
1442
|
+
const agentIds = positional.slice(1);
|
|
1443
|
+
|
|
1444
|
+
if (!skillId) {
|
|
1445
|
+
console.error(chalk.red('Usage: npx ma-agents uninstall <skill> <agents...>'));
|
|
1446
|
+
process.exit(1);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
if (agentIds.length === 0) {
|
|
1450
|
+
console.error(chalk.red('Please specify at least one agent. Run "npx ma-agents agents" to see options.'));
|
|
1451
|
+
process.exit(1);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
try {
|
|
1455
|
+
await uninstallSkill(skillId, agentIds, customPath, scope);
|
|
1456
|
+
console.log(chalk.bold.green('\n Uninstall complete!\n'));
|
|
1457
|
+
} catch (error) {
|
|
1458
|
+
console.error(chalk.red('\n Uninstall failed:'), error.message);
|
|
1459
|
+
process.exit(1);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
// --- Config layout command ---
|
|
1464
|
+
|
|
1465
|
+
function showCurrentLayout() {
|
|
1466
|
+
const layout = readExistingLayout();
|
|
1467
|
+
if (!layout) {
|
|
1468
|
+
console.log(chalk.cyan('\n Single-repo layout (default)'));
|
|
1469
|
+
console.log(chalk.gray(' Knowledgebase: . (current repository)'));
|
|
1470
|
+
console.log(chalk.gray(' Sprint management: . (current repository)'));
|
|
1471
|
+
return;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
console.log(chalk.bold.cyan('\n Current Repository Layout:\n'));
|
|
1475
|
+
for (const [label, key] of [['Knowledgebase', 'knowledgebase'], ['Sprint Management', 'sprintManagement']]) {
|
|
1476
|
+
const concern = layout[key];
|
|
1477
|
+
console.log(chalk.white(` ${label}:`));
|
|
1478
|
+
console.log(chalk.gray(` Mode: ${concern.mode}`));
|
|
1479
|
+
console.log(chalk.gray(` Path: ${concern.path}`));
|
|
1480
|
+
if (concern.gitUrl) {
|
|
1481
|
+
console.log(chalk.gray(` Git URL: ${concern.gitUrl}`));
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
console.log('');
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
async function handleConfigLayout(args) {
|
|
1488
|
+
const { yesFlag } = parseFlags(args);
|
|
1489
|
+
const showOnly = args.includes('--show');
|
|
1490
|
+
|
|
1491
|
+
if (showOnly) {
|
|
1492
|
+
showCurrentLayout();
|
|
1493
|
+
return;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// Show current before reconfiguring
|
|
1497
|
+
showCurrentLayout();
|
|
1498
|
+
|
|
1499
|
+
// Read existing and present pre-populated wizard
|
|
1500
|
+
const existingLayout = readExistingLayout();
|
|
1501
|
+
const newLayout = await collectRepoLayout({ yes: yesFlag }, existingLayout);
|
|
1502
|
+
|
|
1503
|
+
// Write updated config
|
|
1504
|
+
writeRepoLayoutConfig(newLayout);
|
|
1505
|
+
writeProjectLayoutYaml(newLayout);
|
|
1506
|
+
|
|
1507
|
+
// Update project-context.md
|
|
1508
|
+
const outputPath = path.join(process.cwd(), '_bmad-output', 'project-context.md');
|
|
1509
|
+
try {
|
|
1510
|
+
if (fs.existsSync(outputPath)) {
|
|
1511
|
+
const updated = await updateProjectContextRepoLayout(outputPath, newLayout);
|
|
1512
|
+
if (updated) {
|
|
1513
|
+
console.log(chalk.green(' project-context.md repo layout section updated'));
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
} catch (err) {
|
|
1517
|
+
console.log(chalk.yellow(` project-context repo layout update skipped: ${err.message}`));
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
console.log(chalk.bold.green('\n Layout reconfigured!\n'));
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
// --- Profile reconfigure (Story 21.10) ---
|
|
1524
|
+
async function handleReconfigure(args) {
|
|
1525
|
+
try {
|
|
1526
|
+
await runReconfigure({ projectRoot: process.cwd(), argv: args });
|
|
1527
|
+
} catch (err) {
|
|
1528
|
+
if (err instanceof ReconfigureYesRejectedError) {
|
|
1529
|
+
console.error(chalk.red(err.message));
|
|
1530
|
+
process.exit(1);
|
|
1531
|
+
}
|
|
1532
|
+
if (err instanceof ManifestNotFoundError) {
|
|
1533
|
+
console.error(chalk.red(err.message));
|
|
1534
|
+
console.error(chalk.gray(' Hint: run `npx ma-agents install` before `reconfigure`.'));
|
|
1535
|
+
process.exit(1);
|
|
1536
|
+
}
|
|
1537
|
+
if (err instanceof RoomodesSlugDivergenceError) {
|
|
1538
|
+
console.error(chalk.red(err.message));
|
|
1539
|
+
process.exit(1);
|
|
1540
|
+
}
|
|
1541
|
+
if (err && err.name === 'ClinerulesDualFileDriftError') {
|
|
1542
|
+
console.error(chalk.red(err.message));
|
|
1543
|
+
process.exit(1);
|
|
1544
|
+
}
|
|
1545
|
+
throw err;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
// --- Interactive mode ---
|
|
1550
|
+
|
|
1551
|
+
async function interactiveMode() {
|
|
1552
|
+
console.log(chalk.bold.cyan(`\n ${NAME} v${VERSION}\n`));
|
|
1553
|
+
|
|
1554
|
+
const { action } = await prompts({
|
|
1555
|
+
type: 'select',
|
|
1556
|
+
name: 'action',
|
|
1557
|
+
message: 'What would you like to do?',
|
|
1558
|
+
choices: [
|
|
1559
|
+
{ title: 'Install skills', value: 'install' },
|
|
1560
|
+
{ title: 'Show installed skills', value: 'status' },
|
|
1561
|
+
{ title: 'List available skills', value: 'list-skills' },
|
|
1562
|
+
{ title: 'List supported agents', value: 'list-agents' },
|
|
1563
|
+
{ title: 'Exit', value: 'exit' }
|
|
1564
|
+
]
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
if (!action || action === 'exit') {
|
|
1568
|
+
console.log(chalk.yellow('Goodbye!'));
|
|
1569
|
+
process.exit(0);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
if (action === 'status') {
|
|
1573
|
+
showStatus([]);
|
|
1574
|
+
process.exit(0);
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
if (action === 'list-skills') {
|
|
1578
|
+
showSkills();
|
|
1579
|
+
process.exit(0);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
if (action === 'list-agents') {
|
|
1583
|
+
showAgents();
|
|
1584
|
+
process.exit(0);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
if (action === 'install') {
|
|
1588
|
+
await installWizard();
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
// --- Main ---
|
|
1593
|
+
|
|
1594
|
+
async function main() {
|
|
1595
|
+
const args = process.argv.slice(2);
|
|
1596
|
+
|
|
1597
|
+
// Handle --log flag globally (before command routing)
|
|
1598
|
+
let cleanupLog = null;
|
|
1599
|
+
const logIdx = args.indexOf('--log');
|
|
1600
|
+
if (logIdx !== -1) {
|
|
1601
|
+
const ts = new Date().toISOString().replace(/[:.]/g, '-').replace('T', '_').replace('Z', '');
|
|
1602
|
+
const logFile = `install_${ts}.log`;
|
|
1603
|
+
cleanupLog = setupLogging(logFile);
|
|
1604
|
+
console.log(chalk.gray(` Logging to ${logFile}`));
|
|
1605
|
+
args.splice(logIdx, 1);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
const command = args[0];
|
|
1609
|
+
|
|
1610
|
+
switch (command) {
|
|
1611
|
+
case 'install':
|
|
1612
|
+
await handleInstall(args.slice(1));
|
|
1613
|
+
break;
|
|
1614
|
+
case 'uninstall':
|
|
1615
|
+
case 'remove':
|
|
1616
|
+
await handleUninstall(args.slice(1));
|
|
1617
|
+
break;
|
|
1618
|
+
case 'status':
|
|
1619
|
+
showStatus(args.slice(1));
|
|
1620
|
+
break;
|
|
1621
|
+
case 'list':
|
|
1622
|
+
case 'list-skills':
|
|
1623
|
+
showSkills(args.slice(1));
|
|
1624
|
+
break;
|
|
1625
|
+
case 'agents':
|
|
1626
|
+
case 'list-agents':
|
|
1627
|
+
showAgents();
|
|
1628
|
+
break;
|
|
1629
|
+
case 'create-skill':
|
|
1630
|
+
await handleCreateSkill(args.slice(1));
|
|
1631
|
+
break;
|
|
1632
|
+
case 'validate-skill':
|
|
1633
|
+
await handleValidateSkill(args.slice(1));
|
|
1634
|
+
break;
|
|
1635
|
+
case 'set-mandatory':
|
|
1636
|
+
await handleSetMandatory(args.slice(1));
|
|
1637
|
+
break;
|
|
1638
|
+
case 'customize-agent':
|
|
1639
|
+
await handleCustomizeAgent(args.slice(1));
|
|
1640
|
+
break;
|
|
1641
|
+
case 'create-agent':
|
|
1642
|
+
await handleCreateAgent(args.slice(1));
|
|
1643
|
+
break;
|
|
1644
|
+
case 'config':
|
|
1645
|
+
if (args[1] === 'layout') {
|
|
1646
|
+
await handleConfigLayout(args.slice(2));
|
|
1647
|
+
} else {
|
|
1648
|
+
console.error(chalk.red(`Unknown config subcommand: ${args[1] || '(none)'}`));
|
|
1649
|
+
console.error(chalk.gray(' Usage: npx ma-agents config layout [--show] [--yes]'));
|
|
1650
|
+
process.exit(1);
|
|
1651
|
+
}
|
|
1652
|
+
break;
|
|
1653
|
+
case 'reconfigure':
|
|
1654
|
+
await handleReconfigure(args.slice(1));
|
|
1655
|
+
break;
|
|
1656
|
+
case 'help':
|
|
1657
|
+
case '--help':
|
|
1658
|
+
case '-h':
|
|
1659
|
+
showHelp();
|
|
1660
|
+
break;
|
|
1661
|
+
case 'version':
|
|
1662
|
+
case '--version':
|
|
1663
|
+
case '-v':
|
|
1664
|
+
console.log(`${NAME} v${VERSION}`);
|
|
1665
|
+
break;
|
|
1666
|
+
default:
|
|
1667
|
+
await interactiveMode();
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
if (cleanupLog) cleanupLog();
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
if (require.main === module) {
|
|
1675
|
+
main().catch(error => {
|
|
1676
|
+
console.error(chalk.red('Error:'), error);
|
|
1677
|
+
process.exit(1);
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
module.exports = { parseFlags, collectRepoLayout, readExistingLayout, writeRepoLayoutConfig, writeProjectLayoutYaml, writeConfigField, normalizePath, toPortablePath, resolveStoredPath, ciCloneIfNeeded, showCurrentLayout, handleConfigLayout, yamlEscapeValue };
|