fix(installer): suppress canonicalId warning for type:agent skills
Agent-type skill manifests legitimately use canonicalId for agent-manifest mapping (e.g., bmad-analyst). Only warn for regular type:skill manifests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5a4d50a319
commit
d37898c565
|
|
@ -191,7 +191,8 @@ class ManifestGenerator {
|
|||
: `${this.bmadFolderName}/${moduleName}/${skillFile}`;
|
||||
|
||||
// Skills derive canonicalId from directory name — never from manifest
|
||||
if (manifest && manifest.__single && manifest.__single.canonicalId) {
|
||||
// (agent-type skills legitimately use canonicalId for agent-manifest mapping, so skip warning)
|
||||
if (manifest && manifest.__single && manifest.__single.canonicalId && artifactType !== 'agent') {
|
||||
console.warn(
|
||||
`Warning: Skill manifest at ${dir}/bmad-skill-manifest.yaml contains canonicalId — this field is ignored for skills (directory name is the canonical ID)`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue