From d37ee7f27ad767f760e5e4ef20f890917cc109d9 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Wed, 4 Feb 2026 22:36:11 -0600 Subject: [PATCH 1/2] add installer warning when newer version is available --- tools/cli/bmad-cli.js | 45 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/tools/cli/bmad-cli.js b/tools/cli/bmad-cli.js index ad3aac341..2a5b8d387 100755 --- a/tools/cli/bmad-cli.js +++ b/tools/cli/bmad-cli.js @@ -1,6 +1,48 @@ const { program } = require('commander'); const path = require('node:path'); const fs = require('node:fs'); +const { execSync } = require('node:child_process'); + +// Check for updates - do this asynchronously so it doesn't block startup +const packageJson = require('../../package.json'); +const packageName = 'bmad-method'; +checkForUpdate().catch(() => { + // Silently ignore errors - version check is best-effort +}); + +async function checkForUpdate() { + try { + // For beta versions, check the beta tag; otherwise check latest + const isBeta = + packageJson.version.includes('Beta') || + packageJson.version.includes('beta') || + packageJson.version.includes('alpha') || + packageJson.version.includes('rc'); + const tag = isBeta ? 'beta' : 'latest'; + + const result = execSync(`npm view ${packageName}@${tag} version`, { + encoding: 'utf8', + stdio: 'pipe', + timeout: 5000, + }).trim(); + + if (result && result !== packageJson.version) { + console.warn(''); + console.warn(' ╔═══════════════════════════════════════════════════════════════════════════════╗'); + console.warn(' ║ UPDATE AVAILABLE ║'); + console.warn(' ║ ║'); + console.warn(` ║ You are using version ${packageJson.version} but ${result} is available. ║`); + console.warn(' ║ ║'); + console.warn(' ║ To update,exir and first run: ║'); + console.warn(` ║ npm cache clean --force && npx bmad-method@${tag} install ║`); + console.warn(' ║ ║'); + console.warn(' ╚═══════════════════════════════════════════════════════════════════════════════╝'); + console.warn(''); + } + } catch { + // Silently fail - network issues or npm not available + } +} // Fix for stdin issues when running through npm on Windows // Ensures keyboard interaction works properly with CLI prompts @@ -20,9 +62,6 @@ if (process.stdin.isTTY) { } } -// Load package.json from root for version info -const packageJson = require('../../package.json'); - // Load all command modules const commandsPath = path.join(__dirname, 'commands'); const commandFiles = fs.readdirSync(commandsPath).filter((file) => file.endsWith('.js')); From dcc55dd0d56bc51ad7ee161ceaaa3d292ef0538c Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Wed, 4 Feb 2026 22:43:22 -0600 Subject: [PATCH 2/2] Update CHANGELOG for v6.0.0-Beta.7 - Direct workflow invocation via slash commands - Installer multi-workflow file support - Version checking in CLI --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8508f9a6d..7911a7d9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [6.0.0-Beta.7] + +**Release: February 4, 2026** + +### 🌟 Key Highlights + +1. **Direct Workflow Invocation** — Agent workflows can now be run directly via slash commands instead of only through agent orchestration +2. **Installer Workflow Support** — Installer now picks up `workflow-*.md` files, enabling multiple workflow files per directory + +### 🎁 Features + +* **Slash Command Workflow Access** — Research and PRD workflows now accessible via direct slash commands: `/domain-research`, `/market-research`, `/technical-research`, `/create-prd`, `/edit-prd`, `/validate-prd` (bd620e38, 731bee26) +* **Version Checking** — CLI now checks npm for newer versions and displays a warning banner when updates are available (d37ee7f2) + +### ♻️ Refactoring + +* **Workflow File Splitting** — Split monolithic `workflow.md` files into specific `workflow-*.md` files for individual workflow invocation (bd620e38) +* **Installer Multi-Workflow Support** — Installer manifest generator now supports `workflow-*.md` pattern, allowing multiple workflow files per directory (731bee26) +* **Internal Skill Renaming** — Renamed internal project skills to use `bmad-os-` prefix for consistent naming (5276d58b) + +--- + ## [6.0.0-Beta.6] **Release: February 4, 2026**