bmad-method 6.6.1-next.5 → 6.6.1-next.7

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-method",
4
- "version": "6.6.1-next.5",
4
+ "version": "6.6.1-next.7",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -524,8 +524,20 @@ class ExternalModuleManager {
524
524
  return path.dirname(rootCandidate);
525
525
  }
526
526
 
527
- // Nothing found: return configured path (preserves old behavior for error messaging)
528
- return path.dirname(configuredPath);
527
+ // Nothing found: the cloned ref does not contain a recognizable module structure.
528
+ // This happens when a stable tag predates a module restructure (e.g. the repo
529
+ // moved files from payload/ to skills/ after the tag was cut). Returning a
530
+ // non-existent path silently causes a confusing ENOENT deep inside copyModuleWithFiltering;
531
+ // throw a descriptive error here instead so the user knows what happened and how to recover.
532
+ const resolution = ExternalModuleManager._resolutions.get(moduleCode);
533
+ const versionHint = resolution?.version ? `version ${resolution.version}` : 'the cloned version';
534
+ const channelHint =
535
+ resolution?.channel === 'stable' ? ` Try reinstalling with \`--next=${moduleCode}\` to use the latest main branch instead.` : '';
536
+ throw new Error(
537
+ `Module '${moduleCode}' was downloaded but its module definition was not found. ` +
538
+ `Expected '${moduleDefinitionPath}' to exist in ${versionHint}, but it is missing. ` +
539
+ `The repository may have been restructured after this release was tagged.${channelHint}`,
540
+ );
529
541
  }
530
542
  cachedModules = null;
531
543
  }
@@ -18,6 +18,17 @@ modules:
18
18
  npmPackage: bmad-builder
19
19
  default_channel: stable
20
20
 
21
+ bmad-automator:
22
+ url: https://github.com/bmad-code-org/bmad-automator
23
+ module-definition: skills/module.yaml
24
+ code: baut
25
+ name: "BMad Automator"
26
+ description: "Story automation skills"
27
+ defaultSelected: false
28
+ type: experimental
29
+ npmPackage: bmad-story-automator
30
+ default_channel: next
31
+
21
32
  bmad-creative-intelligence-suite:
22
33
  url: https://github.com/bmad-code-org/bmad-module-creative-intelligence-suite
23
34
  module-definition: src/module.yaml