@hyperdrive.bot/bmad-workflow 1.0.19 → 1.0.20

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.
@@ -26,6 +26,7 @@ export default class Workflow extends Command {
26
26
  static flags: {
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
+ 'dev-agent': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
29
30
  'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
30
31
  'epic-interval': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
31
32
  parallel: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
@@ -57,6 +57,9 @@ export default class Workflow extends Command {
57
57
  cwd: Flags.string({
58
58
  description: 'Working directory path to pass to AI agents. Agents will operate in this directory.',
59
59
  }),
60
+ 'dev-agent': Flags.string({
61
+ description: 'Absolute path to a custom dev agent file (default: .bmad-core/agents/dev.md)',
62
+ }),
60
63
  'dry-run': Flags.boolean({
61
64
  default: false,
62
65
  description: 'Preview actions without execution',
@@ -253,6 +256,7 @@ export default class Workflow extends Command {
253
256
  const config = {
254
257
  autoFix: flags['auto-fix'],
255
258
  cwd: flags.cwd,
259
+ devAgent: flags['dev-agent'],
256
260
  dryRun: flags['dry-run'],
257
261
  epicInterval: flags['epic-interval'],
258
262
  input: args.input,
@@ -15,6 +15,14 @@ export interface WorkflowConfig {
15
15
  * @default false
16
16
  */
17
17
  autoFix?: boolean;
18
+ /**
19
+ * Absolute path to a custom dev agent file
20
+ *
21
+ * When specified, this file is used instead of the default `.bmad-core/agents/dev.md`
22
+ * in dev phase prompts.
23
+ * @example '/Users/marcelo/Developer/ds/super-repo/_bmad/bmm/agents/ibra.md'
24
+ */
25
+ devAgent?: string;
18
26
  /**
19
27
  * Working directory for agent execution
20
28
  *
@@ -624,7 +624,7 @@ Write output to: ${outputPath}`;
624
624
  // Build prompt with auto-detected references
625
625
  const mcpPrefix = await this.getMcpPromptPrefix('dev', 'dev', config);
626
626
  let prompt = mcpPrefix ? `${mcpPrefix}\n\n` : '';
627
- prompt += `@.bmad-core/agents/dev.md\n\n`;
627
+ prompt += config.devAgent ? `@${config.devAgent}\n\n` : `@.bmad-core/agents/dev.md\n\n`;
628
628
  // Add working directory instruction if specified
629
629
  if (config.cwd) {
630
630
  prompt += `Working directory: ${config.cwd}\n\n`;
@@ -899,7 +899,7 @@ Write output to: ${outputPath}`;
899
899
  // Build prompt with auto-detected references
900
900
  const mcpPrefix = await this.getMcpPromptPrefix('dev', 'dev', config);
901
901
  let prompt = mcpPrefix ? `${mcpPrefix}\n\n` : '';
902
- prompt += `@.bmad-core/agents/dev.md\n\n`;
902
+ prompt += config.devAgent ? `@${config.devAgent}\n\n` : `@.bmad-core/agents/dev.md\n\n`;
903
903
  // Add working directory instruction if specified
904
904
  if (config.cwd) {
905
905
  prompt += `Working directory: ${config.cwd}\n\n`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/bmad-workflow",
3
3
  "description": "AI-driven development workflow orchestration CLI for BMAD projects",
4
- "version": "1.0.19",
4
+ "version": "1.0.20",
5
5
  "author": {
6
6
  "name": "DevSquad",
7
7
  "email": "marcelo@devsquad.email",