@ikunin/sprintpilot 2.0.6 → 2.0.8

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.
@@ -35,14 +35,19 @@ async function verifyBmadInstalled(projectRoot) {
35
35
  return data || {};
36
36
  }
37
37
 
38
- // BMad Method has used two manifest shapes:
39
- // - flat: { version: "6.3.0" }
40
- // - nested: { bmad: { version: "6.2.0" } }
41
- // The shipping v6 installer writes the nested form; some older installs
42
- // and our own unit-test fixture use the flat form. Try nested first,
43
- // then fall back to flat so either layout resolves to a real version.
38
+ // BMad Method has used three manifest shapes:
39
+ // - installation-scoped: { installation: { version: "6.2.2" }, modules: [...] }
40
+ // (the actual v6.2.x installer writes this — installation.version is
41
+ // the canonical source; modules[].version is per-module and not the
42
+ // overall BMad version)
43
+ // - nested: { bmad: { version: "6.2.0" } }
44
+ // - flat: { version: "6.3.0" }
45
+ // Try installation-scoped first (matches what users actually have on
46
+ // disk today), then nested, then flat. Older installs and our unit-test
47
+ // fixture use the flat form.
44
48
  function extractBmadVersion(data) {
45
49
  if (!data) return null;
50
+ if (data.installation && data.installation.version) return data.installation.version;
46
51
  if (data.bmad && data.bmad.version) return data.bmad.version;
47
52
  if (data.version) return data.version;
48
53
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikunin/sprintpilot",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Sprintpilot — autopilot and multi-agent addon for BMad Method v6: git workflow, parallel agents, autonomous story execution",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {