fix: guard against missing workflow-file in bmad-help.csv entries

Skip entries where workflow-file is empty/undefined to prevent
workflowFile.endsWith() from throwing during prompt generation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jheyworth 2026-02-09 00:54:19 +00:00
parent 2db8d7f428
commit b7682d809e
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ You must fully embody this agent's persona and follow all activation instruction
if (!command) continue; // Skip entries without a command (tech-writer commands have no command column)
const workflowFile = entry['workflow-file'];
if (!workflowFile) continue; // Skip entries with no workflow file path
const promptContent = this.createWorkflowPromptContent(entry, workflowFile);
const promptPath = path.join(promptsDir, `${command}.prompt.md`);
await this.writeFile(promptPath, promptContent);