From cdffa0508c51f1aa77a4022e281a00f0c9125dda Mon Sep 17 00:00:00 2001 From: Dicky Moore Date: Sat, 7 Mar 2026 21:03:31 +0000 Subject: [PATCH] refactor(installer): keep prototype resolution task-only and prototypeIds-only --- tools/cli/installers/lib/ide/_config-driven.js | 15 ++------------- .../installers/lib/ide/shared/skill-manifest.js | 3 +-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/tools/cli/installers/lib/ide/_config-driven.js b/tools/cli/installers/lib/ide/_config-driven.js index f2e9e3a02..4b2f7dac8 100644 --- a/tools/cli/installers/lib/ide/_config-driven.js +++ b/tools/cli/installers/lib/ide/_config-driven.js @@ -549,19 +549,8 @@ LOAD and execute from: {project-root}/{{bmadFolderName}}/{{path}} * @returns {{dirPath: string, filename: string}|null} */ resolveArtifactSourceRef(artifact, bmadDir) { - let sourcePath = ''; - - if ((artifact.type === 'task' || artifact.type === 'tool') && artifact.path) { - sourcePath = artifact.path; - } else if (artifact.type === 'workflow-command' && artifact.workflowPath) { - sourcePath = artifact.workflowPath; - } else if (artifact.type === 'agent-launcher' && artifact.agentPath) { - sourcePath = artifact.agentPath; - } else if (typeof artifact.sourcePath === 'string') { - sourcePath = artifact.sourcePath; - } - - if (!sourcePath) return null; + if (artifact.type !== 'task' || !artifact.path) return null; + const sourcePath = artifact.path; let normalized = sourcePath.replaceAll('\\', '/'); if (path.isAbsolute(normalized)) { diff --git a/tools/cli/installers/lib/ide/shared/skill-manifest.js b/tools/cli/installers/lib/ide/shared/skill-manifest.js index b47266b83..53d6afd01 100644 --- a/tools/cli/installers/lib/ide/shared/skill-manifest.js +++ b/tools/cli/installers/lib/ide/shared/skill-manifest.js @@ -46,8 +46,7 @@ function getPrototypeIds(manifest, filename) { const manifestEntry = resolveManifestEntry(manifest, filename); if (!manifestEntry) return []; - // Support one canonical field name plus temporary/fallback aliases during transition. - const rawIds = manifestEntry.prototypeIds ?? manifestEntry.skillPrototypeIds ?? manifestEntry.duplicateSkillIds ?? []; + const rawIds = manifestEntry.prototypeIds ?? []; return normalizeIdList(rawIds); }