bmad-method 4.35.2 → 4.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.github/workflows/discord.yaml +16 -0
  2. package/CHANGELOG.md +14 -2
  3. package/README.md +42 -9
  4. package/dist/agents/dev.txt +9 -9
  5. package/dist/teams/team-all.txt +9 -9
  6. package/dist/teams/team-ide-minimal.txt +9 -9
  7. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +102 -0
  8. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash copy.txt +13 -0
  9. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash.txt +13 -0
  10. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.2 Agent Development Kit Installation/1.2.2 - Basic Project Structure - txt.txt +25 -0
  11. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.1 - settings.py +34 -0
  12. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.2 - main.py - Base Application.py +70 -0
  13. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +26 -0
  14. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +109 -0
  15. package/package.json +2 -2
  16. package/tools/flattener/aggregate.js +76 -0
  17. package/tools/flattener/binary.js +53 -0
  18. package/tools/flattener/discovery.js +70 -0
  19. package/tools/flattener/files.js +35 -0
  20. package/tools/flattener/ignoreRules.js +176 -0
  21. package/tools/flattener/main.js +113 -466
  22. package/tools/flattener/projectRoot.js +45 -0
  23. package/tools/flattener/prompts.js +44 -0
  24. package/tools/flattener/stats.js +30 -0
  25. package/tools/flattener/xml.js +86 -0
  26. package/tools/installer/lib/installer.js +63 -1
  27. package/tools/installer/package.json +1 -1
  28. package/tools/shared/bannerArt.js +105 -0
  29. package/tools/installer/package-lock.json +0 -906
  30. /package/{bmad-core → docs}/enhanced-ide-development-workflow.md +0 -0
  31. /package/{bmad-core → docs}/user-guide.md +0 -0
  32. /package/{bmad-core → docs}/working-in-the-brownfield.md +0 -0
@@ -0,0 +1,16 @@
1
+ name: Discord Notification
2
+
3
+ on: [push, pull_request, workflow_dispatch, release, create, delete, issue_comment, fork, watch, pull_request_review, pull_request_review_comment, repository_dispatch]
4
+
5
+ jobs:
6
+ notify:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Notify Discord
10
+ uses: sarisia/actions-status-discord@v1
11
+ if: always()
12
+ with:
13
+ webhook: ${{ secrets.DISCORD_WEBHOOK }}
14
+ status: ${{ job.status }}
15
+ title: "Triggered by ${{ github.event_name }}"
16
+ color: 0x5865F2
package/CHANGELOG.md CHANGED
@@ -1,9 +1,21 @@
1
- ## [4.35.2](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.1...v4.35.2) (2025-08-06)
1
+ # [4.36.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.3...v4.36.0) (2025-08-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * modularize flattener tool into separate components with improved project root detection ([#417](https://github.com/bmadcode/BMAD-METHOD/issues/417)) ([0fdbca7](https://github.com/bmadcode/BMAD-METHOD/commit/0fdbca73fc60e306109f682f018e105e2b4623a2))
2
7
 
8
+ ## [4.35.3](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.2...v4.35.3) (2025-08-06)
9
+
10
+ ### Bug Fixes
11
+
12
+ - doc location improvement ([1676f51](https://github.com/bmadcode/BMAD-METHOD/commit/1676f5189ed057fa2d7facbd6a771fe67cdb6372))
13
+
14
+ ## [4.35.2](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.1...v4.35.2) (2025-08-06)
3
15
 
4
16
  ### Bug Fixes
5
17
 
6
- * npx status check ([f7c2a4f](https://github.com/bmadcode/BMAD-METHOD/commit/f7c2a4fb6c454b17d250b85537129b01ffee6b85))
18
+ - npx status check ([f7c2a4f](https://github.com/bmadcode/BMAD-METHOD/commit/f7c2a4fb6c454b17d250b85537129b01ffee6b85))
7
19
 
8
20
  ## [4.35.1](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.0...v4.35.1) (2025-08-06)
9
21
 
package/README.md CHANGED
@@ -23,7 +23,7 @@ Foundations in Agentic Agile Driven Development, known as the Breakthrough Metho
23
23
 
24
24
  This two-phase approach eliminates both **planning inconsistency** and **context loss** - the biggest problems in AI-assisted development. Your Dev agent opens a story file with complete understanding of what to build, how to build it, and why.
25
25
 
26
- **📖 [See the complete workflow in the User Guide](bmad-core/user-guide.md)** - Planning phase, development cycle, and all agent roles
26
+ **📖 [See the complete workflow in the User Guide](docs/user-guide.md)** - Planning phase, development cycle, and all agent roles
27
27
 
28
28
  ## Quick Navigation
29
29
 
@@ -31,18 +31,18 @@ This two-phase approach eliminates both **planning inconsistency** and **context
31
31
 
32
32
  **Before diving in, review these critical workflow diagrams that explain how BMad works:**
33
33
 
34
- 1. **[Planning Workflow (Web UI)](bmad-core/user-guide.md#the-planning-workflow-web-ui)** - How to create PRD and Architecture documents
35
- 2. **[Core Development Cycle (IDE)](bmad-core/user-guide.md#the-core-development-cycle-ide)** - How SM, Dev, and QA agents collaborate through story files
34
+ 1. **[Planning Workflow (Web UI)](docs/user-guide.md#the-planning-workflow-web-ui)** - How to create PRD and Architecture documents
35
+ 2. **[Core Development Cycle (IDE)](docs/user-guide.md#the-core-development-cycle-ide)** - How SM, Dev, and QA agents collaborate through story files
36
36
 
37
37
  > ⚠️ **These diagrams explain 90% of BMad Method Agentic Agile flow confusion** - Understanding the PRD+Architecture creation and the SM/Dev/QA workflow and how agents pass notes through story files is essential - and also explains why this is NOT taskmaster or just a simple task runner!
38
38
 
39
39
  ### What would you like to do?
40
40
 
41
41
  - **[Install and Build software with Full Stack Agile AI Team](#quick-start)** → Quick Start Instruction
42
- - **[Learn how to use BMad](bmad-core/user-guide.md)** → Complete user guide and walkthrough
42
+ - **[Learn how to use BMad](docs/user-guide.md)** → Complete user guide and walkthrough
43
43
  - **[See available AI agents](/bmad-core/agents))** → Specialized roles for your team
44
44
  - **[Explore non-technical uses](#-beyond-software-development---expansion-packs)** → Creative writing, business, wellness, education
45
- - **[Create my own AI agents](#creating-your-own-expansion-pack)** → Build agents for your domain
45
+ - **[Create my own AI agents](docs/expansion-packs.md)** → Build agents for your domain
46
46
  - **[Browse ready-made expansion packs](expansion-packs/)** → Game dev, DevOps, infrastructure and get inspired with ideas and examples
47
47
  - **[Understand the architecture](docs/core-architecture.md)** → Technical deep dive
48
48
  - **[Join the community](https://discord.gg/gk8jAdXWmj)** → Get help and share ideas
@@ -97,7 +97,7 @@ This single command handles:
97
97
  3. **Upload & configure**: Upload the file and set instructions: "Your critical operating instructions are attached, do not break character as directed"
98
98
  4. **Start Ideating and Planning**: Start chatting! Type `*help` to see available commands or pick an agent like `*analyst` to start right in on creating a brief.
99
99
  5. **CRITICAL**: Talk to BMad Orchestrator in the web at ANY TIME (#bmad-orchestrator command) and ask it questions about how this all works!
100
- 6. **When to move to the IDE**: Once you have your PRD, Architecture, optional UX and Briefs - its time to switch over to the IDE to shard your docs, and start implementing the actual code! See the [User guide](bmad-core/user-guide.md) for more details
100
+ 6. **When to move to the IDE**: Once you have your PRD, Architecture, optional UX and Briefs - its time to switch over to the IDE to shard your docs, and start implementing the actual code! See the [User guide](docs/user-guide.md) for more details
101
101
 
102
102
  ### Alternative: Clone and Build
103
103
 
@@ -144,7 +144,7 @@ npx bmad-method flatten --input /path/to/source --output /path/to/output/codebas
144
144
 
145
145
  The tool will display progress and provide a comprehensive summary:
146
146
 
147
- ```
147
+ ```text
148
148
  📊 Completion Summary:
149
149
  ✅ Successfully processed 156 files into flattened-codebase.xml
150
150
  📁 Output file: /path/to/your/project/flattened-codebase.xml
@@ -155,13 +155,46 @@ The tool will display progress and provide a comprehensive summary:
155
155
  📊 File breakdown: 142 text, 14 binary, 0 errors
156
156
  ```
157
157
 
158
- The generated XML file contains all your project's source code in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMad-Method projects.
158
+ The generated XML file contains your project's text-based source files in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMad-Method projects.
159
+
160
+ #### Advanced Usage & Options
161
+
162
+ - CLI options
163
+ - `-i, --input <path>`: Directory to flatten. Default: current working directory or auto-detected project root when run interactively.
164
+ - `-o, --output <path>`: Output file path. Default: `flattened-codebase.xml` in the chosen directory.
165
+ - Interactive mode
166
+ - If you do not pass `--input` and `--output` and the terminal is interactive (TTY), the tool will attempt to detect your project root (by looking for markers like `.git`, `package.json`, etc.) and prompt you to confirm or override the paths.
167
+ - In non-interactive contexts (e.g., CI), it will prefer the detected root silently; otherwise it falls back to the current directory and default filename.
168
+ - File discovery and ignoring
169
+ - Uses `git ls-files` when inside a git repository for speed and correctness; otherwise falls back to a glob-based scan.
170
+ - Applies your `.gitignore` plus a curated set of default ignore patterns (e.g., `node_modules`, build outputs, caches, logs, IDE folders, lockfiles, large media/binaries, `.env*`, and previously generated XML outputs).
171
+ - Binary handling
172
+ - Binary files are detected and excluded from the XML content. They are counted in the final summary but not embedded in the output.
173
+ - XML format and safety
174
+ - UTF-8 encoded file with root element `<files>`.
175
+ - Each text file is emitted as a `<file path="relative/path">` element whose content is wrapped in `<![CDATA[ ... ]]>`.
176
+ - The tool safely handles occurrences of `]]>` inside content by splitting the CDATA to preserve correctness.
177
+ - File contents are preserved as-is and indented for readability inside the XML.
178
+ - Performance
179
+ - Concurrency is selected automatically based on your CPU and workload size. No configuration required.
180
+ - Running inside a git repo improves discovery performance.
181
+
182
+ #### Minimal XML example
183
+
184
+ ```xml
185
+ <?xml version="1.0" encoding="UTF-8"?>
186
+ <files>
187
+ <file path="src/index.js"><![CDATA[
188
+ // your source content
189
+ ]]></file>
190
+ </files>
191
+ ```
159
192
 
160
193
  ## Documentation & Resources
161
194
 
162
195
  ### Essential Guides
163
196
 
164
- - 📖 **[User Guide](bmad-core/user-guide.md)** - Complete walkthrough from project inception to completion
197
+ - 📖 **[User Guide](docs/user-guide.md)** - Complete walkthrough from project inception to completion
165
198
  - 🏗️ **[Core Architecture](docs/core-architecture.md)** - Technical deep dive and system design
166
199
  - 🚀 **[Expansion Packs Guide](docs/expansion-packs.md)** - Extend BMad to any domain beyond software development
167
200
 
@@ -72,15 +72,15 @@ commands:
72
72
  - run-tests: Execute linting and tests
73
73
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
74
74
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
75
- develop-story:
76
- order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
77
- story-file-updates-ONLY:
78
- - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
79
- - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
80
- - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
81
- blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
82
- ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
83
- completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
75
+ - develop-story:
76
+ - order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
77
+ - story-file-updates-ONLY:
78
+ - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
79
+ - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
80
+ - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
81
+ - blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
82
+ - ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
83
+ - completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
84
84
  dependencies:
85
85
  tasks:
86
86
  - execute-checklist.md
@@ -352,15 +352,15 @@ commands:
352
352
  - run-tests: Execute linting and tests
353
353
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
354
354
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
355
- develop-story:
356
- order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
357
- story-file-updates-ONLY:
358
- - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
359
- - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
360
- - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
361
- blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
362
- ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
363
- completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
355
+ - develop-story:
356
+ - order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
357
+ - story-file-updates-ONLY:
358
+ - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
359
+ - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
360
+ - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
361
+ - blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
362
+ - ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
363
+ - completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
364
364
  dependencies:
365
365
  tasks:
366
366
  - execute-checklist.md
@@ -322,15 +322,15 @@ commands:
322
322
  - run-tests: Execute linting and tests
323
323
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
324
324
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
325
- develop-story:
326
- order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
327
- story-file-updates-ONLY:
328
- - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
329
- - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
330
- - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
331
- blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
332
- ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
333
- completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
325
+ - develop-story:
326
+ - order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
327
+ - story-file-updates-ONLY:
328
+ - CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
329
+ - CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
330
+ - CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
331
+ - blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
332
+ - ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
333
+ - completion: 'All Tasks and Subtasks marked [x] and have tests→Validations and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Ensure File List is Complete→run the task execute-checklist for the checklist story-dod-checklist→set story status: ''Ready for Review''→HALT'
334
334
  dependencies:
335
335
  tasks:
336
336
  - execute-checklist.md