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 +16 -14
- package/docs/v4-to-v6-upgrade.md +5 -5
- package/package.json +1 -1
- package/tools/bmad-npx-wrapper.js +10 -98
package/README.md
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
# BMad CORE
|
|
1
|
+
# BMad CORE + BMad Method
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/bmad-method)
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://nodejs.org)
|
|
6
6
|
[](https://discord.gg/gk8jAdXWmj)
|
|
7
7
|
|
|
8
|
-
|
|
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
|
package/docs/v4-to-v6-upgrade.md
CHANGED
|
@@ -197,13 +197,13 @@ If you're using:
|
|
|
197
197
|
After installation:
|
|
198
198
|
|
|
199
199
|
```bash
|
|
200
|
-
#
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
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
|
@@ -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
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
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(
|
|
87
|
-
console.error(
|
|
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:
|
|
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
|
-
});
|