bmad-method 4.35.3 → 4.36.1

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 (26) hide show
  1. package/.github/workflows/discord.yaml +16 -0
  2. package/.github/workflows/release.yaml +1 -1
  3. package/CHANGELOG.md +14 -2
  4. package/README.md +36 -3
  5. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +102 -0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +109 -0
  13. package/package.json +2 -2
  14. package/tools/flattener/aggregate.js +76 -0
  15. package/tools/flattener/binary.js +53 -0
  16. package/tools/flattener/discovery.js +70 -0
  17. package/tools/flattener/files.js +35 -0
  18. package/tools/flattener/ignoreRules.js +176 -0
  19. package/tools/flattener/main.js +113 -466
  20. package/tools/flattener/projectRoot.js +45 -0
  21. package/tools/flattener/prompts.js +44 -0
  22. package/tools/flattener/stats.js +30 -0
  23. package/tools/flattener/xml.js +86 -0
  24. package/tools/installer/package.json +1 -1
  25. package/tools/shared/bannerArt.js +105 -0
  26. package/tools/installer/package-lock.json +0 -906
@@ -0,0 +1,16 @@
1
+ name: Discord Notification
2
+
3
+ on: [pull_request, release, create, delete, issue_comment, pull_request_review, pull_request_review_comment]
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
@@ -32,7 +32,7 @@ jobs:
32
32
  - name: Setup Node.js
33
33
  uses: actions/setup-node@v4
34
34
  with:
35
- node-version: '18'
35
+ node-version: '20'
36
36
  cache: npm
37
37
  registry-url: https://registry.npmjs.org
38
38
  - name: Install dependencies
package/CHANGELOG.md CHANGED
@@ -1,9 +1,21 @@
1
- ## [4.35.3](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.2...v4.35.3) (2025-08-06)
1
+ ## [4.36.1](https://github.com/bmadcode/BMAD-METHOD/compare/v4.36.0...v4.36.1) (2025-08-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update Node.js version to 20 in release workflow and reduce Discord spam ([3f7e19a](https://github.com/bmadcode/BMAD-METHOD/commit/3f7e19a098155341a2b89796addc47b0623cb87a))
2
7
 
8
+ # [4.36.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.3...v4.36.0) (2025-08-09)
9
+
10
+ ### Features
11
+
12
+ - 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))
13
+
14
+ ## [4.35.3](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.2...v4.35.3) (2025-08-06)
3
15
 
4
16
  ### Bug Fixes
5
17
 
6
- * doc location improvement ([1676f51](https://github.com/bmadcode/BMAD-METHOD/commit/1676f5189ed057fa2d7facbd6a771fe67cdb6372))
18
+ - doc location improvement ([1676f51](https://github.com/bmadcode/BMAD-METHOD/commit/1676f5189ed057fa2d7facbd6a771fe67cdb6372))
7
19
 
8
20
  ## [4.35.2](https://github.com/bmadcode/BMAD-METHOD/compare/v4.35.1...v4.35.2) (2025-08-06)
9
21
 
package/README.md CHANGED
@@ -42,7 +42,7 @@ This two-phase approach eliminates both **planning inconsistency** and **context
42
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
@@ -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,7 +155,40 @@ 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