bmad-method 6.0.0-alpha.1 → 6.0.0-alpha.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/README.md CHANGED
@@ -1,11 +1,21 @@
1
- # BMad CORE v6 Beta
1
+ # BMad CORE + BMad Method
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/bmad-method?color=blue&label=version)](https://www.npmjs.com/package/bmad-method)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
5
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org)
6
6
  [![Discord](https://img.shields.io/badge/Discord-Join%20Community-7289da?logo=discord&logoColor=white)](https://discord.gg/gk8jAdXWmj)
7
7
 
8
- **The Universal Human-AI Collaboration Platform**
8
+ > **🚨 ALPHA VERSION DOCUMENTATION**
9
+ >
10
+ > This README documents **BMad v6 (Alpha)** - currently under active development.
11
+ >
12
+ > **To install v6 Alpha:** `npx bmad-method@alpha install`
13
+ >
14
+ > **Looking for stable v4 documentation?** [View v4 README](https://github.com/bmad-code-org/BMAD-METHOD/tree/v4-stable)
15
+ >
16
+ > **Want the stable version?** `npx bmad-method install` (installs v4.x)
17
+
18
+ ## The Universal Human-AI Collaboration Platform
9
19
 
10
20
  BMad-CORE (**C**ollaboration **O**ptimized **R**eflection **E**ngine) is a revolutionary framework that amplifies human potential through specialized AI agents. Unlike traditional AI tools that replace human thinking, BMad-CORE guides you through reflective workflows that bring out your best ideas and the AI's full capabilities.
11
21
 
@@ -148,21 +158,13 @@ Transform creative and strategic thinking through AI-powered facilitation across
148
158
  Install BMad to your project using npx:
149
159
 
150
160
  ```bash
161
+ # Install v6 Alpha (this version)
162
+ npx bmad-method@alpha install
163
+
164
+ # Install stable v4 (production-ready)
151
165
  npx bmad-method install
152
166
  ```
153
167
 
154
- > **Version Selection:** When running `npx bmad-method install`, you'll be prompted to choose:
155
- >
156
- > - **Stable (v4.x)** - Production-ready version
157
- > - **Beta (v6.0.0-beta)** - Latest features with early access
158
- >
159
- > To install a specific version directly (skip prompt):
160
- >
161
- > ```bash
162
- > npx bmad-method@4 install # Stable v4.x
163
- > npx bmad-method@6.0.0-beta.0 install # Beta v6
164
- > ```
165
-
166
168
  The interactive installer will guide you through:
167
169
 
168
170
  1. **Project location** - Where to install BMad
@@ -197,13 +197,13 @@ If you're using:
197
197
  After installation:
198
198
 
199
199
  ```bash
200
- # In your project have the agent mode run workflow-init, in Claude Code:
201
- /workflow-init
202
- # or run the analyst and tell the analyst after it loads
203
- *workflow-init
200
+ # Start the analyst and tell the analyst after it loads - claude code instructions:
201
+ claude # wait for claude to launch in terminal
202
+ - `/analyst` # wait for analyst greeting and menu
203
+ - `*workflow-init` # v6 now supports much better natural language fuzzy matching - so you could also say `workflow init` or possibly `please init the workflow`
204
204
  ```
205
205
 
206
- Select **Level 3 or 4** if you've already completed PRD/architecture in v4.
206
+ Since you are migrating an existing project from v4, its most likely **Level 3 or 4** you will want to suggest when asked - if you've already completed PRD/architecture in v4.
207
207
 
208
208
  ---
209
209
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-method",
4
- "version": "6.0.0-alpha.1",
4
+ "version": "6.0.0-alpha.2",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -3,7 +3,6 @@
3
3
  /**
4
4
  * BMad Method CLI - Direct execution wrapper for npx
5
5
  * This file ensures proper execution when run via npx from GitHub or npm registry
6
- * Supports version selection between stable (v4) and beta (v6)
7
6
  */
8
7
 
9
8
  const { execSync } = require('node:child_process');
@@ -13,114 +12,27 @@ const fs = require('node:fs');
13
12
  // Check if we're running in an npx temporary directory
14
13
  const isNpxExecution = __dirname.includes('_npx') || __dirname.includes('.npm');
15
14
 
16
- async function promptVersionSelection() {
17
- const inquirer = require('inquirer');
18
- const chalk = require('chalk');
19
-
20
- console.log(
21
- chalk.cyan(`
22
- ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•— ā–ˆā–ˆā–ˆā•— ā–ˆā–ˆā–ˆā•— ā–ˆā–ˆā–ˆā–ˆā–ˆā•— ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•— ā„¢
23
- ā–ˆā–ˆā•”ā•ā•ā–ˆā–ˆā•—ā–ˆā–ˆā–ˆā–ˆā•— ā–ˆā–ˆā–ˆā–ˆā•‘ā–ˆā–ˆā•”ā•ā•ā–ˆā–ˆā•—ā–ˆā–ˆā•”ā•ā•ā–ˆā–ˆā•—
24
- ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•”ā•ā–ˆā–ˆā•”ā–ˆā–ˆā–ˆā–ˆā•”ā–ˆā–ˆā•‘ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•‘ā–ˆā–ˆā•‘ ā–ˆā–ˆā•‘
25
- ā–ˆā–ˆā•”ā•ā•ā–ˆā–ˆā•—ā–ˆā–ˆā•‘ā•šā–ˆā–ˆā•”ā•ā–ˆā–ˆā•‘ā–ˆā–ˆā•”ā•ā•ā–ˆā–ˆā•‘ā–ˆā–ˆā•‘ ā–ˆā–ˆā•‘
26
- ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•”ā•ā–ˆā–ˆā•‘ ā•šā•ā• ā–ˆā–ˆā•‘ā–ˆā–ˆā•‘ ā–ˆā–ˆā•‘ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā•”ā•
27
- ā•šā•ā•ā•ā•ā•ā• ā•šā•ā• ā•šā•ā•ā•šā•ā• ā•šā•ā•ā•šā•ā•ā•ā•ā•ā•
28
- `),
29
- );
30
-
31
- console.log(chalk.dim(' Build More, Architect Dreams\n'));
32
-
33
- const answers = await inquirer.prompt([
34
- {
35
- type: 'list',
36
- name: 'version',
37
- message: 'Which version would you like to install?',
38
- choices: [
39
- {
40
- name: chalk.green('Stable (v4.x) - Production Ready'),
41
- value: 'stable',
42
- short: 'Stable v4.x',
43
- },
44
- {
45
- name: chalk.yellow('Beta (v6.0.0-beta) - Latest Features (Early Access)'),
46
- value: 'beta',
47
- short: 'Beta v6.0.0-beta',
48
- },
49
- ],
50
- default: 'stable',
51
- },
52
- ]);
53
-
54
- return answers.version;
55
- }
56
-
57
- async function installStableVersion(args) {
58
- const chalk = require('chalk');
59
-
60
- console.log(chalk.cyan('\nšŸ“¦ Installing BMad Method v4 (Stable)...\n'));
61
-
62
- // Use npx to install the stable version from npm registry
63
- // The @4 tag will fetch the latest v4.x.x version
64
- const npxCommand = `npx bmad-method@4 ${args.join(' ')}`;
65
-
66
- try {
67
- execSync(npxCommand, {
68
- stdio: 'inherit',
69
- cwd: process.cwd(),
70
- });
71
- } catch (error) {
72
- console.error(chalk.red('Failed to install stable version'));
73
- process.exit(error.status || 1);
74
- }
75
- }
76
-
77
- async function installBetaVersion(args) {
78
- const chalk = require('chalk');
79
-
80
- console.log(chalk.yellow('\nšŸ“¦ Installing BMad Method v6 Beta (Early Access)...\n'));
81
-
82
- // Use the v6 installer from the current installation
15
+ if (isNpxExecution) {
16
+ // Running via npx - spawn child process to preserve user's working directory
17
+ const args = process.argv.slice(2);
83
18
  const bmadCliPath = path.join(__dirname, 'cli', 'bmad-cli.js');
84
19
 
85
20
  if (!fs.existsSync(bmadCliPath)) {
86
- console.error(chalk.red('Error: Could not find bmad-cli.js at'), bmadCliPath);
87
- console.error(chalk.dim('Current directory:'), __dirname);
21
+ console.error('Error: Could not find bmad-cli.js at', bmadCliPath);
22
+ console.error('Current directory:', __dirname);
88
23
  process.exit(1);
89
24
  }
90
25
 
91
26
  try {
27
+ // Execute CLI from user's working directory (process.cwd()), not npm cache
92
28
  execSync(`node "${bmadCliPath}" ${args.join(' ')}`, {
93
29
  stdio: 'inherit',
94
- cwd: path.dirname(__dirname),
30
+ cwd: process.cwd(), // This preserves the user's working directory
95
31
  });
96
32
  } catch (error) {
97
33
  process.exit(error.status || 1);
98
34
  }
35
+ } else {
36
+ // Local execution - use require
37
+ require('./cli/bmad-cli.js');
99
38
  }
100
-
101
- async function main() {
102
- const args = process.argv.slice(2);
103
-
104
- // Check if user wants to skip version prompt
105
- const skipPrompt = args.includes('--skip-version-prompt');
106
- const filteredArgs = args.filter((arg) => arg !== '--skip-version-prompt');
107
-
108
- if (isNpxExecution && !skipPrompt) {
109
- // Running via npx - prompt for version selection unless skipped
110
- const selectedVersion = await promptVersionSelection();
111
-
112
- if (selectedVersion === 'stable') {
113
- await installStableVersion(filteredArgs);
114
- } else {
115
- await installBetaVersion(filteredArgs);
116
- }
117
- } else {
118
- // Local execution or skipped prompt - use the v6 installer directly
119
- require('./cli/bmad-cli.js');
120
- }
121
- }
122
-
123
- main().catch((error) => {
124
- console.error('Unexpected error:', error);
125
- process.exit(1);
126
- });