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:
parent
2db8d7f428
commit
b7682d809e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue