bmad-method 6.6.1-next.0 → 6.6.1-next.1
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
|
@@ -57,15 +57,6 @@ function isSafeCanonicalId(value) {
|
|
|
57
57
|
// OpenCode's native `@skills/<id>` skill-reference syntax.
|
|
58
58
|
const DEFAULT_COMMANDS_BODY_TEMPLATE = '@skills/{canonicalId}';
|
|
59
59
|
|
|
60
|
-
// `bmad-help` is the structural meta-skill across BMAD: the orientation
|
|
61
|
-
// helper that points users at every other skill. It is invoked
|
|
62
|
-
// persona-style ("ask the helper") even though it has no [agent]
|
|
63
|
-
// customize.toml of its own (it isn't a configurable persona). Surfacing
|
|
64
|
-
// it in agents-picker contexts mirrors how users actually reach for it,
|
|
65
|
-
// and the inclusion is unique and stable — there is no second meta-help
|
|
66
|
-
// skill to encourage growth of this exception.
|
|
67
|
-
const ALWAYS_AGENT_IDS = new Set(['bmad-help']);
|
|
68
|
-
|
|
69
60
|
// Is this skill a persona agent (vs. a workflow/tool/standalone skill)?
|
|
70
61
|
// Used by platforms that surface only persona agents (e.g. Copilot's Custom
|
|
71
62
|
// Agents picker). Signal: the skill's source `customize.toml` has an
|
|
@@ -77,15 +68,13 @@ const ALWAYS_AGENT_IDS = new Set(['bmad-help']);
|
|
|
77
68
|
// GDS, WDS, TEA, and correctly excludes meta-skills like
|
|
78
69
|
// `bmad-agent-builder` (a skill-builder workflow whose canonical id
|
|
79
70
|
// contains `-agent-` but which has no [agent] section because it isn't a
|
|
80
|
-
// persona itself).
|
|
81
|
-
// structural exception (`bmad-help`).
|
|
71
|
+
// persona itself).
|
|
82
72
|
//
|
|
83
73
|
// Reading the source toml — at install time the source skill directory
|
|
84
74
|
// (resolved from manifest record.path) still exists; cleanup runs later
|
|
85
75
|
// in the install flow.
|
|
86
76
|
async function isAgentSkill(record, bmadDir) {
|
|
87
77
|
if (!record?.path || !bmadDir) return false;
|
|
88
|
-
if (record.canonicalId && ALWAYS_AGENT_IDS.has(record.canonicalId)) return true;
|
|
89
78
|
const bmadFolderName = path.basename(bmadDir);
|
|
90
79
|
const bmadPrefix = bmadFolderName + '/';
|
|
91
80
|
const relativePath = record.path.startsWith(bmadPrefix) ? record.path.slice(bmadPrefix.length) : record.path;
|