bmad-method 6.2.1-next.27 → 6.2.1-next.28
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
|
@@ -704,21 +704,12 @@ class ManifestGenerator {
|
|
|
704
704
|
continue;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
// Check if this looks like a module (has agents
|
|
707
|
+
// Check if this looks like a module (has agents directory or skill manifests)
|
|
708
708
|
const modulePath = path.join(bmadDir, entry.name);
|
|
709
709
|
const hasAgents = await fs.pathExists(path.join(modulePath, 'agents'));
|
|
710
|
-
const
|
|
711
|
-
const hasTasks = await fs.pathExists(path.join(modulePath, 'tasks'));
|
|
712
|
-
const hasTools = await fs.pathExists(path.join(modulePath, 'tools'));
|
|
713
|
-
|
|
714
|
-
// Check for native-entrypoint-only modules: recursive scan for SKILL.md
|
|
715
|
-
let hasSkills = false;
|
|
716
|
-
if (!hasAgents && !hasWorkflows && !hasTasks && !hasTools) {
|
|
717
|
-
hasSkills = await this._hasSkillMdRecursive(modulePath);
|
|
718
|
-
}
|
|
710
|
+
const hasSkills = await this._hasSkillMdRecursive(modulePath);
|
|
719
711
|
|
|
720
|
-
|
|
721
|
-
if (hasAgents || hasWorkflows || hasTasks || hasTools || hasSkills) {
|
|
712
|
+
if (hasAgents || hasSkills) {
|
|
722
713
|
modules.push(entry.name);
|
|
723
714
|
}
|
|
724
715
|
}
|
|
@@ -27,7 +27,7 @@ async function loadSkillManifest(dirPath) {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get the canonicalId for a specific file from a loaded skill manifest.
|
|
29
29
|
* @param {Object|null} manifest - Loaded manifest (from loadSkillManifest)
|
|
30
|
-
* @param {string} filename - Source filename to look up (e.g., 'pm.md', 'help.md'
|
|
30
|
+
* @param {string} filename - Source filename to look up (e.g., 'pm.md', 'help.md')
|
|
31
31
|
* @returns {string} canonicalId or empty string
|
|
32
32
|
*/
|
|
33
33
|
function getCanonicalId(manifest, filename) {
|
|
@@ -36,12 +36,6 @@ function getCanonicalId(manifest, filename) {
|
|
|
36
36
|
if (manifest.__single) return manifest.__single.canonicalId || '';
|
|
37
37
|
// Multi-entry: look up by filename directly
|
|
38
38
|
if (manifest[filename]) return manifest[filename].canonicalId || '';
|
|
39
|
-
// Fallback: try alternate extensions for compiled files
|
|
40
|
-
const baseName = filename.replace(/\.(md|xml)$/i, '');
|
|
41
|
-
const agentKey = `${baseName}.agent.yaml`;
|
|
42
|
-
if (manifest[agentKey]) return manifest[agentKey].canonicalId || '';
|
|
43
|
-
const xmlKey = `${baseName}.xml`;
|
|
44
|
-
if (manifest[xmlKey]) return manifest[xmlKey].canonicalId || '';
|
|
45
39
|
return '';
|
|
46
40
|
}
|
|
47
41
|
|
|
@@ -57,12 +51,6 @@ function getArtifactType(manifest, filename) {
|
|
|
57
51
|
if (manifest.__single) return manifest.__single.type || null;
|
|
58
52
|
// Multi-entry: look up by filename directly
|
|
59
53
|
if (manifest[filename]) return manifest[filename].type || null;
|
|
60
|
-
// Fallback: try alternate extensions for compiled files
|
|
61
|
-
const baseName = filename.replace(/\.(md|xml)$/i, '');
|
|
62
|
-
const agentKey = `${baseName}.agent.yaml`;
|
|
63
|
-
if (manifest[agentKey]) return manifest[agentKey].type || null;
|
|
64
|
-
const xmlKey = `${baseName}.xml`;
|
|
65
|
-
if (manifest[xmlKey]) return manifest[xmlKey].type || null;
|
|
66
54
|
return null;
|
|
67
55
|
}
|
|
68
56
|
|
|
@@ -78,12 +66,6 @@ function getInstallToBmad(manifest, filename) {
|
|
|
78
66
|
if (manifest.__single) return manifest.__single.install_to_bmad !== false;
|
|
79
67
|
// Multi-entry: look up by filename directly
|
|
80
68
|
if (manifest[filename]) return manifest[filename].install_to_bmad !== false;
|
|
81
|
-
// Fallback: try alternate extensions for compiled files
|
|
82
|
-
const baseName = filename.replace(/\.(md|xml)$/i, '');
|
|
83
|
-
const agentKey = `${baseName}.agent.yaml`;
|
|
84
|
-
if (manifest[agentKey]) return manifest[agentKey].install_to_bmad !== false;
|
|
85
|
-
const xmlKey = `${baseName}.xml`;
|
|
86
|
-
if (manifest[xmlKey]) return manifest[xmlKey].install_to_bmad !== false;
|
|
87
69
|
return true;
|
|
88
70
|
}
|
|
89
71
|
|