chore: fix bundle urls

This commit is contained in:
Murat Ozcan 2025-11-11 16:08:32 -06:00
parent 449b5b3d29
commit ad030cc16d
3 changed files with 56 additions and 87 deletions

View File

@ -33,10 +33,8 @@ jobs:
run: | run: |
mkdir -p dist/bundles mkdir -p dist/bundles
# Copy bundles with clean structure # Copy web bundles (XML files from npm run bundle output)
cp -r src/modules/bmm/sub-modules/* dist/bundles/ 2>/dev/null || true cp -r web-bundles/* dist/bundles/ 2>/dev/null || true
cp -r src/modules/bmb/sub-modules/* dist/bundles/ 2>/dev/null || true
cp -r src/modules/cis/sub-modules/* dist/bundles/ 2>/dev/null || true
# Verify bundles were copied (fail if completely empty) # Verify bundles were copied (fail if completely empty)
if [ ! "$(ls -A dist/bundles)" ]; then if [ ! "$(ls -A dist/bundles)" ]; then
@ -45,11 +43,11 @@ jobs:
exit 1 exit 1
fi fi
# Count bundles per platform # Count bundles per module
for platform in claude-code chatgpt gemini; do for module in bmm bmb cis bmgd; do
if [ -d "dist/bundles/$platform" ]; then if [ -d "dist/bundles/$module/agents" ]; then
COUNT=$(find dist/bundles/$platform -name '*.md' 2>/dev/null | wc -l) COUNT=$(find dist/bundles/$module/agents -name '*.xml' 2>/dev/null | wc -l)
echo "✅ $platform: $COUNT bundles" echo "✅ $module: $COUNT agent bundles"
fi fi
done done
@ -83,49 +81,41 @@ jobs:
<p><strong>Last Updated:</strong> <code>$TIMESTAMP</code></p> <p><strong>Last Updated:</strong> <code>$TIMESTAMP</code></p>
<p><strong>Commit:</strong> <code>$COMMIT_SHA</code></p> <p><strong>Commit:</strong> <code>$COMMIT_SHA</code></p>
<h2>Available Platforms</h2> <h2>Available Modules</h2>
<div class="platform"> <div class="platform">
<h3>Claude Code</h3> <h3>BMM (BMad Method)</h3>
<div class="module"> <div class="module">
<strong>BMM (BMad Method)</strong><br> <a href="./bmm/agents/pm.xml">PM</a> |
<a href="./claude-code/sub-agents/bmm-agent-pm.md">PM Agent</a> | <a href="./bmm/agents/architect.xml">Architect</a> |
<a href="./claude-code/sub-agents/bmm-agent-architect.md">Architect</a> | <a href="./bmm/agents/tea.xml">TEA</a> |
<a href="./claude-code/sub-agents/bmm-agent-tea.md">TEA</a> | <a href="./bmm/agents/dev.xml">Developer</a> |
<a href="./claude-code/sub-agents/bmm-agent-dev.md">Developer</a> | <a href="./bmm/agents/analyst.xml">Analyst</a> |
<a href="./claude-code/sub-agents/">All BMM Agents</a> <a href="./bmm/agents/sm.xml">Scrum Master</a> |
</div> <a href="./bmm/agents/ux-designer.xml">UX Designer</a> |
<div class="module"> <a href="./bmm/agents/tech-writer.xml">Tech Writer</a> |
<strong>BMB (BMad Builder)</strong><br> <a href="./bmm/agents/">All BMM Agents</a>
<a href="./claude-code/sub-agents/bmb-agent-builder.md">Builder Agent</a>
</div>
<div class="module">
<strong>CIS (Creative Intelligence Suite)</strong><br>
<a href="./claude-code/sub-agents/">CIS Agents</a>
</div> </div>
</div> </div>
<div class="platform"> <div class="platform">
<h3>ChatGPT</h3> <h3>BMB (BMad Builder)</h3>
<div class="module"> <div class="module">
<strong>BMM</strong>: <a href="./chatgpt/sub-agents/">Browse BMM Agents</a><br> <a href="./bmb/agents/bmad-builder.xml">Builder Agent</a> |
<strong>BMB</strong>: <a href="./chatgpt/sub-agents/">Browse BMB Agents</a><br> <a href="./bmb/agents/">All BMB Agents</a>
<strong>CIS</strong>: <a href="./chatgpt/sub-agents/">Browse CIS Agents</a>
</div> </div>
</div> </div>
<div class="platform"> <div class="platform">
<h3>Gemini</h3> <h3>CIS (Creative Intelligence Suite)</h3>
<div class="module"> <div class="module">
<strong>BMM</strong>: <a href="./gemini/sub-agents/">Browse BMM Agents</a><br> <a href="./cis/agents/">Browse CIS Agents</a>
<strong>BMB</strong>: <a href="./gemini/sub-agents/">Browse BMB Agents</a><br>
<strong>CIS</strong>: <a href="./gemini/sub-agents/">Browse CIS Agents</a>
</div> </div>
</div> </div>
<h2>Usage</h2> <h2>Usage</h2>
<p>Copy the raw markdown URL and paste into your AI platform's custom instructions or project knowledge.</p> <p>Copy the raw XML URL and paste into your AI platform's custom instructions or project knowledge.</p>
<p>Example: <code>https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-pm.md</code></p> <p>Example: <code>https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm.xml</code></p>
<h2>Installation (Recommended)</h2> <h2>Installation (Recommended)</h2>
<p>For full IDE integration with slash commands, use the installer:</p> <p>For full IDE integration with slash commands, use the installer:</p>

View File

@ -68,45 +68,27 @@ jobs:
run: | run: |
mkdir -p dist/release-bundles mkdir -p dist/release-bundles
# Create staging directory for each platform # Copy web bundles
mkdir -p dist/staging/{claude-code,chatgpt,gemini} cp -r web-bundles dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}
# Collect all modules per platform # Verify bundles exist
cp -r src/modules/bmm/sub-modules/claude-code/* dist/staging/claude-code/ 2>/dev/null || true if [ ! "$(ls -A dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }})" ]; then
cp -r src/modules/bmb/sub-modules/claude-code/* dist/staging/claude-code/ 2>/dev/null || true echo "❌ ERROR: No bundles found"
cp -r src/modules/cis/sub-modules/claude-code/* dist/staging/claude-code/ 2>/dev/null || true echo "This likely means 'npm run bundle' failed"
cp -r src/modules/bmm/sub-modules/chatgpt/* dist/staging/chatgpt/ 2>/dev/null || true
cp -r src/modules/bmb/sub-modules/chatgpt/* dist/staging/chatgpt/ 2>/dev/null || true
cp -r src/modules/cis/sub-modules/chatgpt/* dist/staging/chatgpt/ 2>/dev/null || true
cp -r src/modules/bmm/sub-modules/gemini/* dist/staging/gemini/ 2>/dev/null || true
cp -r src/modules/bmb/sub-modules/gemini/* dist/staging/gemini/ 2>/dev/null || true
cp -r src/modules/cis/sub-modules/gemini/* dist/staging/gemini/ 2>/dev/null || true
# Verify bundles were copied (fail if completely empty)
for platform in claude-code chatgpt gemini; do
if [ ! "$(ls -A dist/staging/$platform)" ]; then
echo "❌ ERROR: No bundles found for $platform"
echo "This likely means 'npm run bundle' failed or bundles weren't generated"
exit 1 exit 1
fi fi
echo "✅ $platform: $(find dist/staging/$platform -name '*.md' | wc -l) bundles"
# Count and display bundles per module
for module in bmm bmb cis bmgd; do
if [ -d "dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}/$module/agents" ]; then
COUNT=$(find dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}/$module/agents -name '*.xml' 2>/dev/null | wc -l)
echo "✅ $module: $COUNT agents"
fi
done done
# Create platform-specific archives # Create archive
tar -czf dist/release-bundles/bmad-bundles-claude-code-v${{ steps.version.outputs.new_version }}.tar.gz \ tar -czf dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}.tar.gz \
-C dist/staging/claude-code . -C dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }} .
tar -czf dist/release-bundles/bmad-bundles-chatgpt-v${{ steps.version.outputs.new_version }}.tar.gz \
-C dist/staging/chatgpt .
tar -czf dist/release-bundles/bmad-bundles-gemini-v${{ steps.version.outputs.new_version }}.tar.gz \
-C dist/staging/gemini .
# Create all-platforms archive
tar -czf dist/release-bundles/bmad-bundles-all-v${{ steps.version.outputs.new_version }}.tar.gz \
-C dist/staging .
- name: Commit version bump - name: Commit version bump
run: | run: |
@ -205,14 +187,11 @@ jobs:
## 📦 Web Bundles ## 📦 Web Bundles
Download platform-specific bundles for use in AI platforms: Download XML bundles for use in AI platforms (Claude Projects, ChatGPT, Gemini):
- `bmad-bundles-claude-code-v${{ steps.version.outputs.new_version }}.tar.gz` - Claude Code / Claude Projects - `bmad-bundles-v${{ steps.version.outputs.new_version }}.tar.gz` - All modules (BMM, BMB, CIS, BMGD)
- `bmad-bundles-chatgpt-v${{ steps.version.outputs.new_version }}.tar.gz` - ChatGPT Custom Instructions
- `bmad-bundles-gemini-v${{ steps.version.outputs.new_version }}.tar.gz` - Gemini Gems
- `bmad-bundles-all-v${{ steps.version.outputs.new_version }}.tar.gz` - All platforms
**Latest bundles** (bleeding edge): https://bmad-code-org.github.io/bmad-bundles/ **Browse online** (bleeding edge): https://bmad-code-org.github.io/bmad-bundles/
draft: false draft: false
prerelease: ${{ contains(steps.version.outputs.new_version, 'alpha') || contains(steps.version.outputs.new_version, 'beta') }} prerelease: ${{ contains(steps.version.outputs.new_version, 'alpha') || contains(steps.version.outputs.new_version, 'beta') }}
files: | files: |

View File

@ -11,10 +11,10 @@
- **Stable:** `https://github.com/bmad-code-org/BMAD-METHOD/releases/latest` - **Stable:** `https://github.com/bmad-code-org/BMAD-METHOD/releases/latest`
- **Latest:** `https://bmad-code-org.github.io/bmad-bundles/` - **Latest:** `https://bmad-code-org.github.io/bmad-bundles/`
**2. Copy raw markdown URL:** **2. Copy raw XML URL:**
``` ```
https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-pm.md https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm.xml
``` ```
**3. Add to AI platform:** **3. Add to AI platform:**
@ -25,17 +25,17 @@ https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/su
--- ---
## Available Agents ## Available Modules
### Claude Code ### BMM (BMad Method)
- [PM](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-pm.md) | [Architect](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-architect.md) | [TEA](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-tea.md) | [Developer](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/claude-code/sub-agents/bmm-agent-dev.md) - [PM](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm.xml) | [Architect](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/architect.xml) | [TEA](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/tea.xml) | [Developer](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/dev.xml)
- [All Agents](https://github.com/bmad-code-org/bmad-bundles/tree/main/claude-code/sub-agents) - [All BMM Agents](https://github.com/bmad-code-org/bmad-bundles/tree/main/bmm/agents)
### ChatGPT / Gemini ### BMB / CIS
- [Browse ChatGPT](https://github.com/bmad-code-org/bmad-bundles/tree/main/chatgpt/sub-agents) - [BMB Builder](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmb/agents/bmad-builder.xml)
- [Browse Gemini](https://github.com/bmad-code-org/bmad-bundles/tree/main/gemini/sub-agents) - [Browse CIS Agents](https://github.com/bmad-code-org/bmad-bundles/tree/main/cis/agents)
--- ---
@ -75,13 +75,13 @@ Gives you:
## Troubleshooting ## Troubleshooting
**ChatGPT: "File too large"** **ChatGPT: "File too large"**
Use stable release (compressed) or report issue Some agents (PM: 166KB, Analyst: 211KB) exceed ChatGPT limits. Use smaller agents or report issue.
**Bundle not loading** **Bundle not loading**
→ Use raw URL (not GitHub UI link) → Use raw URL (not GitHub UI link). URL should end in `.xml`.
**Out of date** **Out of date**
→ Wait 2-3 min after main merge, then refresh → Wait 2-3 min after main merge, then refresh.
--- ---