@hyperdrive.bot/bmad-workflow 1.0.10 → 1.0.11

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.
@@ -203,7 +203,7 @@ export default class Decompose extends Command {
203
203
  }
204
204
  }
205
205
  this.log(colors.bold('\n⚙️ Phase 3: Executing task graph...\n'));
206
- const executor = new DependencyGraphExecutor(taskGraph, createAgentRunner(flags.provider, this.logger), new BatchProcessor(flags['max-parallel'], 0, this.logger), this.fileManager, this.logger, flags.cwd);
206
+ const executor = new DependencyGraphExecutor(taskGraph, createAgentRunner(flags.provider, this.logger), new BatchProcessor(flags['max-parallel'], 0, this.logger), this.fileManager, this.logger, flags.cwd, flags.model);
207
207
  const executionResult = await executor.execute((layerIndex, totalLayers, layerSize) => {
208
208
  this.log(colors.info(`\n🔄 Starting Layer ${layerIndex + 1}/${totalLayers} (${layerSize} task${layerSize > 1 ? 's' : ''} in parallel)`));
209
209
  }, (taskId, _layerIndex, _taskIndex, _totalTasks) => {
@@ -27,8 +27,9 @@ export declare class DependencyGraphExecutor {
27
27
  private readonly cwd?;
28
28
  private readonly fileManager;
29
29
  private readonly logger;
30
+ private readonly model?;
30
31
  private readonly taskGraph;
31
- constructor(taskGraph: TaskGraph, agentRunner: AIProviderRunner, batchProcessor: BatchProcessor, fileManager: FileManager, logger: pino.Logger, cwd?: string);
32
+ constructor(taskGraph: TaskGraph, agentRunner: AIProviderRunner, batchProcessor: BatchProcessor, fileManager: FileManager, logger: pino.Logger, cwd?: string, model?: string);
32
33
  /**
33
34
  * Execute the entire task graph
34
35
  *
@@ -14,15 +14,17 @@ export class DependencyGraphExecutor {
14
14
  cwd;
15
15
  fileManager;
16
16
  logger;
17
+ model;
17
18
  taskGraph;
18
19
  // eslint-disable-next-line max-params -- Constructor dependencies will be refactored to config object in future
19
- constructor(taskGraph, agentRunner, batchProcessor, fileManager, logger, cwd) {
20
+ constructor(taskGraph, agentRunner, batchProcessor, fileManager, logger, cwd, model) {
20
21
  this.taskGraph = taskGraph;
21
22
  this.agentRunner = agentRunner;
22
23
  this.batchProcessor = batchProcessor;
23
24
  this.fileManager = fileManager;
24
25
  this.logger = logger;
25
26
  this.cwd = cwd;
27
+ this.model = model;
26
28
  }
27
29
  /**
28
30
  * Execute the entire task graph
@@ -306,6 +308,7 @@ Use the file at the path above to document:
306
308
  // Execute agent
307
309
  const result = await this.agentRunner.runAgent(fullPrompt, {
308
310
  agentType,
311
+ model: this.model,
309
312
  references: task.targetFiles, // Pass target files as references
310
313
  timeout: task.estimatedMinutes * 60 * 1000 * 1.5, // 1.5x estimated time as buffer
311
314
  });
@@ -507,6 +507,7 @@ YOUR RESPONSE MUST START WITH "masterPrompt: |" - NO OTHER TEXT ALLOWED!`;
507
507
  this.logger.info('Asking Claude to fix YAML errors');
508
508
  const fixResult = await this.agentRunner.runAgent(fixPrompt, {
509
509
  agentType: 'architect',
510
+ model: options.model,
510
511
  timeout: 60_000, // 1 minute for fix
511
512
  });
512
513
  if (!fixResult.success) {
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.10",
4
+ "version": "1.0.11",
5
5
  "author": {
6
6
  "name": "DevSquad",
7
7
  "email": "marcelo@devsquad.email",