@hyperdrive.bot/bmad-workflow 1.0.20 → 1.0.21
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.
|
@@ -27,6 +27,7 @@ export default class Workflow extends Command {
|
|
|
27
27
|
'auto-fix': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
28
28
|
cwd: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
29
|
'dev-agent': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
'sm-agent': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
31
|
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
31
32
|
'epic-interval': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
32
33
|
parallel: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -60,6 +60,9 @@ export default class Workflow extends Command {
|
|
|
60
60
|
'dev-agent': Flags.string({
|
|
61
61
|
description: 'Absolute path to a custom dev agent file (default: .bmad-core/agents/dev.md)',
|
|
62
62
|
}),
|
|
63
|
+
'sm-agent': Flags.string({
|
|
64
|
+
description: 'Absolute path to a custom SM (scrum master) agent file (default: .bmad-core/agents/sm.md)',
|
|
65
|
+
}),
|
|
63
66
|
'dry-run': Flags.boolean({
|
|
64
67
|
default: false,
|
|
65
68
|
description: 'Preview actions without execution',
|
|
@@ -281,6 +284,7 @@ export default class Workflow extends Command {
|
|
|
281
284
|
reviewScanners: flags['review-scanners'],
|
|
282
285
|
reviewTimeout: flags['review-timeout'],
|
|
283
286
|
skipDev: flags['skip-dev'],
|
|
287
|
+
smAgent: flags['sm-agent'],
|
|
284
288
|
skipEpics: flags['skip-epics'],
|
|
285
289
|
skipStories: flags['skip-stories'],
|
|
286
290
|
storyInterval: flags['story-interval'],
|
|
@@ -23,6 +23,14 @@ export interface WorkflowConfig {
|
|
|
23
23
|
* @example '/Users/marcelo/Developer/ds/super-repo/_bmad/bmm/agents/ibra.md'
|
|
24
24
|
*/
|
|
25
25
|
devAgent?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Absolute path to a custom SM (scrum master) agent file
|
|
28
|
+
*
|
|
29
|
+
* When specified, this file is used instead of the default `.bmad-core/agents/sm.md`
|
|
30
|
+
* in epic and story phase prompts.
|
|
31
|
+
* @example '/Users/marcelo/Developer/ds/super-repo/_bmad/bmm/agents/sm-custom.md'
|
|
32
|
+
*/
|
|
33
|
+
smAgent?: string;
|
|
26
34
|
/**
|
|
27
35
|
* Working directory for agent execution
|
|
28
36
|
*
|
|
@@ -118,6 +118,8 @@ export interface EpicPromptOptions {
|
|
|
118
118
|
prefix: string;
|
|
119
119
|
/** Reference file paths */
|
|
120
120
|
references: string[];
|
|
121
|
+
/** Absolute path to a custom SM agent file (optional) */
|
|
122
|
+
smAgent?: string;
|
|
121
123
|
}
|
|
122
124
|
/**
|
|
123
125
|
* Options for building a story creation prompt
|
|
@@ -133,6 +135,8 @@ export interface StoryPromptOptions {
|
|
|
133
135
|
prefix: string;
|
|
134
136
|
/** Reference file paths */
|
|
135
137
|
references: string[];
|
|
138
|
+
/** Absolute path to a custom SM agent file (optional) */
|
|
139
|
+
smAgent?: string;
|
|
136
140
|
}
|
|
137
141
|
/**
|
|
138
142
|
* WorkflowOrchestrator service for coordinating multi-phase workflows
|
|
@@ -170,10 +170,11 @@ export class WorkflowOrchestrator {
|
|
|
170
170
|
* @private
|
|
171
171
|
*/
|
|
172
172
|
buildEpicPrompt(epic, options) {
|
|
173
|
-
const { cwd, outputPath, prdPath, references } = options;
|
|
173
|
+
const { cwd, outputPath, prdPath, references, smAgent } = options;
|
|
174
174
|
const referencesText = references.length > 0 ? `\nReferences: ${references.join(', ')}` : '';
|
|
175
175
|
const cwdText = cwd ? `\n\nWorking directory: ${cwd}` : '';
|
|
176
|
-
|
|
176
|
+
const agentRef = smAgent ? `@${smAgent}` : `@.bmad-core/agents/sm.md`;
|
|
177
|
+
return `${agentRef}${cwdText}
|
|
177
178
|
|
|
178
179
|
Create epic '${epic.number}: ${epic.title}' for PRD '${prdPath}'.${referencesText}.
|
|
179
180
|
|
|
@@ -216,10 +217,11 @@ Write output to: '${outputPath}'`;
|
|
|
216
217
|
* @private
|
|
217
218
|
*/
|
|
218
219
|
buildStoryPrompt(story, options) {
|
|
219
|
-
const { cwd, epicPath, outputPath, references } = options;
|
|
220
|
+
const { cwd, epicPath, outputPath, references, smAgent } = options;
|
|
220
221
|
const referencesText = references.length > 0 ? `\nReferences: ${references.join(', ')}` : '';
|
|
221
222
|
const cwdText = cwd ? `\n\nWorking directory: ${cwd}` : '';
|
|
222
|
-
|
|
223
|
+
const agentRef = smAgent ? `@${smAgent}` : `@.bmad-core/agents/sm.md`;
|
|
224
|
+
return `${agentRef}${cwdText}
|
|
223
225
|
|
|
224
226
|
Create story '${story.fullNumber}: ${story.title}' for epic '${epicPath}'. ${referencesText}
|
|
225
227
|
|
|
@@ -1241,6 +1243,7 @@ Write output to: ${outputPath}`;
|
|
|
1241
1243
|
prdPath: prdFilePath,
|
|
1242
1244
|
prefix,
|
|
1243
1245
|
references: config.references,
|
|
1246
|
+
smAgent: config.smAgent,
|
|
1244
1247
|
});
|
|
1245
1248
|
const prompt = mcpPrefix ? `${mcpPrefix}\n\n${basePrompt}` : basePrompt;
|
|
1246
1249
|
// Log prompt if verbose
|
|
@@ -2232,6 +2235,7 @@ Write output to: ${outputPath}`;
|
|
|
2232
2235
|
outputPath: storyFilePath,
|
|
2233
2236
|
prefix,
|
|
2234
2237
|
references: config.references,
|
|
2238
|
+
smAgent: config.smAgent,
|
|
2235
2239
|
});
|
|
2236
2240
|
const prompt = mcpPrefix ? `${mcpPrefix}\n\n${basePrompt}` : basePrompt;
|
|
2237
2241
|
// Log prompt if verbose
|
|
@@ -2556,6 +2560,7 @@ Write output to: ${outputPath}`;
|
|
|
2556
2560
|
outputPath: storyFilePath,
|
|
2557
2561
|
prefix,
|
|
2558
2562
|
references: config.references,
|
|
2563
|
+
smAgent: config.smAgent,
|
|
2559
2564
|
});
|
|
2560
2565
|
const prompt = mcpPrefix ? `${mcpPrefix}\n\n${basePrompt}` : basePrompt;
|
|
2561
2566
|
// Log prompt if verbose
|
package/package.json
CHANGED