bmalph 2.3.0 → 2.4.0

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.
@@ -2,151 +2,28 @@
2
2
 
3
3
  Transition from BMAD planning (Phase 3) to Ralph implementation (Phase 4).
4
4
 
5
- ## Prerequisites
5
+ ## How to Run
6
6
 
7
- - bmalph must be initialized (`bmalph/config.json` must exist)
8
- - Stories must exist in `_bmad-output/planning-artifacts/`
7
+ Execute the CLI command:
8
+ bmalph implement
9
9
 
10
- ## Steps
10
+ If pre-flight validation fails and you want to proceed anyway:
11
+ bmalph implement --force
11
12
 
12
- ### 1. Validate Prerequisites
13
+ ## What It Does
13
14
 
14
- Check that:
15
- - `bmalph/config.json` exists
16
- - `.ralph/ralph_loop.sh` exists
17
- - `_bmad-output/planning-artifacts/` exists with story files
15
+ - Validates planning artifacts (PRD, architecture, readiness report)
16
+ - Parses epics and stories into `.ralph/@fix_plan.md`
17
+ - Copies specs to `.ralph/specs/`
18
+ - Generates PROJECT_CONTEXT.md, PROMPT.md, SPECS_INDEX.md
19
+ - Customizes @AGENT.md based on detected tech stack
20
+ - Updates phase state to 4 (implementing)
18
21
 
19
- If any are missing, report the error and suggest running the required commands.
22
+ ## After Running
20
23
 
21
- ### 2. Parse Stories
24
+ Review the CLI output for:
25
+ - **Pre-flight warnings**: Address any issues or acknowledge them
26
+ - **Story count**: Verify all expected stories were parsed
27
+ - **Driver instructions**: Follow the displayed command to start the Ralph loop
22
28
 
23
- Read `_bmad-output/planning-artifacts/stories.md` (or any file matching `*stor*.md` or `*epic*.md`):
24
- - Extract epics: `## Epic N: Title`
25
- - Extract stories: `### Story N.M: Title`
26
- - Parse acceptance criteria (Given/When/Then blocks)
27
-
28
- ### 3. Generate `.ralph/@fix_plan.md`
29
-
30
- Create an ordered list of stories as checkboxes:
31
-
32
- ```markdown
33
- # Ralph Fix Plan
34
-
35
- ## Stories to Implement
36
-
37
- ### [Epic Title]
38
- > Goal: [Epic description]
39
-
40
- - [ ] Story 1.1: [Title]
41
- > [Description line 1]
42
- > AC: Given..., When..., Then...
43
-
44
- ## Completed
45
-
46
- ## Notes
47
- - Follow TDD methodology (red-green-refactor)
48
- - One story per Ralph loop iteration
49
- - Update this file after completing each story
50
- ```
51
-
52
- **Important:** If existing `@fix_plan.md` has completed items `[x]`, preserve their completion status in the new file.
53
-
54
- ### 4. Generate `.ralph/PROJECT_CONTEXT.md`
55
-
56
- Extract from planning artifacts:
57
- - Project goals from PRD (Executive Summary, Vision, Goals sections)
58
- - Success metrics from PRD
59
- - Architecture constraints from architecture document
60
- - Technical risks from architecture document
61
- - Scope boundaries from PRD
62
- - Target users from PRD
63
- - Non-functional requirements from PRD
64
-
65
- Format as:
66
-
67
- ```markdown
68
- # [Project Name] — Project Context
69
-
70
- ## Project Goals
71
- [extracted content]
72
-
73
- ## Success Metrics
74
- [extracted content]
75
-
76
- ## Architecture Constraints
77
- [extracted content]
78
-
79
- ## Technical Risks
80
- [extracted content]
81
-
82
- ## Scope Boundaries
83
- [extracted content]
84
-
85
- ## Target Users
86
- [extracted content]
87
-
88
- ## Non-Functional Requirements
89
- [extracted content]
90
- ```
91
-
92
- ### 5. Copy Specs to `.ralph/specs/`
93
-
94
- Copy the entire `_bmad-output/` tree to `.ralph/specs/`:
95
- - This includes `planning-artifacts/`, `implementation-artifacts/`, etc.
96
- - Preserve directory structure
97
-
98
- If specs existed before, generate `SPECS_CHANGELOG.md`:
99
- ```markdown
100
- # Specs Changelog
101
-
102
- Last updated: [timestamp]
103
-
104
- ## Added
105
- - [new files]
106
-
107
- ## Modified
108
- - [changed files]
109
-
110
- ## Removed
111
- - [deleted files]
112
- ```
113
-
114
- ### 6. Update State
115
-
116
- Update `bmalph/state/current-phase.json`:
117
- ```json
118
- {
119
- "currentPhase": 4,
120
- "status": "implementing",
121
- "startedAt": "[original or now]",
122
- "lastUpdated": "[now]"
123
- }
124
- ```
125
-
126
- ### 7. Report Results
127
-
128
- Output:
129
- - Number of stories found
130
- - Any warnings (missing PRD, architecture, NO-GO status in readiness report)
131
- - Whether fix_plan progress was preserved
132
-
133
- ### 8. Instruct User
134
-
135
- Display:
136
-
137
- ```
138
- Transition complete. To start the Ralph autonomous loop:
139
-
140
- bash .ralph/ralph_loop.sh
141
-
142
- Or in a separate terminal for background execution:
143
-
144
- nohup bash .ralph/ralph_loop.sh > .ralph/logs/ralph.log 2>&1 &
145
- ```
146
-
147
- ## Warnings to Check
148
-
149
- - No PRD document found
150
- - No architecture document found
151
- - Readiness report indicates NO-GO status
152
- - No stories parsed from the epics file
29
+ If there are errors, fix the underlying planning artifacts and re-run.
@@ -0,0 +1,15 @@
1
+ # Project Status
2
+
3
+ Show the current bmalph project status, including phase, Ralph progress, and version info.
4
+
5
+ ## How to Run
6
+
7
+ Execute the CLI command:
8
+ bmalph status
9
+
10
+ ## What It Does
11
+
12
+ - Shows current phase (1-4) and status (planning, implementing, completed)
13
+ - Displays Ralph loop progress (tasks completed / total)
14
+ - Reports installed bmalph version and bundled asset versions
15
+ - Indicates whether updates are available
@@ -0,0 +1,15 @@
1
+ # Upgrade Bundled Assets
2
+
3
+ Update BMAD and Ralph assets to match the currently installed bmalph version.
4
+
5
+ ## How to Run
6
+
7
+ Execute the CLI command:
8
+ bmalph upgrade
9
+
10
+ ## What It Does
11
+
12
+ - Overwrites `_bmad/` with the latest bundled BMAD agents and workflows
13
+ - Overwrites `.ralph/` base files with the latest bundled Ralph loop and libraries
14
+ - Preserves project-specific state (config, fix plan progress, specs)
15
+ - Reports which files were updated