fix: support .xml task files in bmad-artifacts task discovery

This commit is contained in:
Davor Racić 2026-02-02 07:49:49 +01:00
parent e5bd51528a
commit ba00d43216
1 changed files with 5 additions and 2 deletions

View File

@ -141,13 +141,16 @@ async function getTasksFromDir(dirPath, moduleName) {
const files = await fs.readdir(dirPath); const files = await fs.readdir(dirPath);
for (const file of files) { for (const file of files) {
if (!file.endsWith('.md')) { // Include both .md and .xml task files
if (!file.endsWith('.md') && !file.endsWith('.xml')) {
continue; continue;
} }
// Remove extension to get task name
const ext = file.endsWith('.xml') ? '.xml' : '.md';
tasks.push({ tasks.push({
path: path.join(dirPath, file), path: path.join(dirPath, file),
name: file.replace('.md', ''), name: file.replace(ext, ''),
module: moduleName, module: moduleName,
}); });
} }