@hyperdrive.bot/bmad-workflow 1.0.22 → 1.0.23

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.
Files changed (35) hide show
  1. package/assets/agents/dev-barry.md +69 -0
  2. package/assets/agents/dev.md +323 -0
  3. package/assets/agents/qa.md +92 -0
  4. package/assets/agents/sm-bob.md +65 -0
  5. package/assets/agents/sm.md +296 -0
  6. package/assets/config/default-config.yaml +6 -0
  7. package/assets/templates/epic-tmpl.yaml +277 -0
  8. package/assets/templates/prd-tmpl.yaml +261 -0
  9. package/assets/templates/qa-gate-tmpl.yaml +103 -0
  10. package/assets/templates/story-tmpl.yaml +138 -0
  11. package/dist/commands/eject.d.ts +76 -0
  12. package/dist/commands/eject.js +232 -0
  13. package/dist/commands/init.d.ts +47 -0
  14. package/dist/commands/init.js +265 -0
  15. package/dist/commands/stories/develop.js +1 -0
  16. package/dist/commands/stories/qa.d.ts +1 -0
  17. package/dist/commands/stories/qa.js +7 -0
  18. package/dist/commands/workflow.d.ts +6 -3
  19. package/dist/commands/workflow.js +106 -26
  20. package/dist/models/bmad-config-schema.d.ts +51 -0
  21. package/dist/models/bmad-config-schema.js +53 -0
  22. package/dist/services/agents/gemini-agent-runner.js +7 -2
  23. package/dist/services/agents/opencode-agent-runner.js +7 -2
  24. package/dist/services/file-system/asset-resolver.d.ts +117 -0
  25. package/dist/services/file-system/asset-resolver.js +234 -0
  26. package/dist/services/file-system/file-manager.d.ts +13 -0
  27. package/dist/services/file-system/file-manager.js +32 -0
  28. package/dist/services/file-system/path-resolver.d.ts +22 -1
  29. package/dist/services/file-system/path-resolver.js +36 -9
  30. package/dist/services/orchestration/dependency-graph-executor.js +1 -0
  31. package/dist/services/orchestration/workflow-orchestrator.d.ts +4 -0
  32. package/dist/services/orchestration/workflow-orchestrator.js +20 -6
  33. package/dist/utils/config-merge.d.ts +60 -0
  34. package/dist/utils/config-merge.js +52 -0
  35. package/package.json +4 -2
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Config Merge Utility
3
+ *
4
+ * Implements three-layer merge for execution config:
5
+ * CLI flags (highest) → .bmad-workflow.yaml → hardcoded defaults (lowest)
6
+ *
7
+ * Pure function — no side effects, easy to test.
8
+ */
9
+ /**
10
+ * Hardcoded defaults — final fallback when neither CLI nor config provides a value
11
+ */
12
+ export const EXECUTION_DEFAULTS = {
13
+ epicInterval: 60,
14
+ maxRetries: 0,
15
+ model: undefined,
16
+ parallel: 3,
17
+ pipeline: true,
18
+ prdInterval: 60,
19
+ provider: 'claude',
20
+ qa: false,
21
+ retryBackoffMs: 5000,
22
+ storyInterval: 60,
23
+ timeout: 2_700_000,
24
+ };
25
+ /**
26
+ * Merge execution config from three layers: CLI flags → config file → hardcoded defaults.
27
+ *
28
+ * For each field, the first defined value wins (left to right):
29
+ * 1. CLI flag (explicit user input)
30
+ * 2. Config file value (from .bmad-workflow.yaml)
31
+ * 3. Hardcoded default
32
+ *
33
+ * @param cliFlags - Flags explicitly passed via CLI (undefined = not passed)
34
+ * @param configFile - Execution defaults from .bmad-workflow.yaml
35
+ * @param defaults - Hardcoded fallback values
36
+ * @returns Fully resolved execution config
37
+ */
38
+ export function mergeExecutionConfig(cliFlags, configFile, defaults = EXECUTION_DEFAULTS) {
39
+ return {
40
+ epicInterval: cliFlags.epicInterval ?? defaults.epicInterval,
41
+ maxRetries: cliFlags.maxRetries ?? defaults.maxRetries,
42
+ model: cliFlags.model ?? configFile.model ?? defaults.model,
43
+ parallel: cliFlags.parallel ?? configFile.parallel ?? defaults.parallel,
44
+ pipeline: cliFlags.pipeline ?? configFile.pipeline ?? defaults.pipeline,
45
+ prdInterval: cliFlags.prdInterval ?? defaults.prdInterval,
46
+ provider: cliFlags.provider ?? configFile.provider ?? defaults.provider,
47
+ qa: cliFlags.qa ?? configFile.qa_enabled ?? defaults.qa,
48
+ retryBackoffMs: cliFlags.retryBackoffMs ?? defaults.retryBackoffMs,
49
+ storyInterval: cliFlags.storyInterval ?? defaults.storyInterval,
50
+ timeout: cliFlags.timeout ?? configFile.timeout ?? defaults.timeout,
51
+ };
52
+ }
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.22",
4
+ "version": "1.0.23",
5
5
  "author": {
6
6
  "name": "DevSquad",
7
7
  "email": "marcelo@devsquad.email",
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@hyperdrive.bot/plugin-telemetry": "file:../telemetry-plugin",
18
+ "@inquirer/prompts": "^8.3.2",
18
19
  "@oclif/core": "^4",
19
20
  "@oclif/plugin-help": "^6",
20
21
  "bcrypt": "^6.0.0",
@@ -71,7 +72,8 @@
71
72
  "dist/",
72
73
  "oclif.manifest.json",
73
74
  "README.md",
74
- "LICENSE"
75
+ "LICENSE",
76
+ "assets/"
75
77
  ],
76
78
  "homepage": "https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator#readme",
77
79
  "keywords": [