Compare commits

...

5 Commits

Author SHA1 Message Date
Curtis Ide 2369e0b2e2
Merge 3c2d14b215 into 5b5cb1a396 2026-02-15 10:40:52 +07:00
Curtis Ide 3c2d14b215
Merge branch 'bmad-code-org:main' into main 2026-02-14 10:06:17 -07:00
Curtis Ide e2f702a7d0
fix manager.js 2026-02-14 10:05:05 -07:00
Curtis Ide a89aef674d
Merge branch 'main' of github.com:bmad-code-org/BMAD-METHOD 2026-02-14 09:26:17 -07:00
Curtis Ide e3d672d561
fix custom install bug 2026-02-14 09:22:24 -07:00
2 changed files with 22 additions and 2 deletions

View File

@ -734,8 +734,10 @@ class ModuleManager {
continue; continue;
} }
// Skip config.yaml templates - we'll generate clean ones with actual values // Skip module root config.yaml only - generated by config collector with actual values
if (file === 'config.yaml' || file.endsWith('/config.yaml')) { // Workflow-level config.yaml (e.g. workflows/orchestrate-story/config.yaml) must be copied
// for custom modules that use workflow-specific configuration
if (file === 'config.yaml') {
continue; continue;
} }

View File

@ -305,6 +305,7 @@ class UI {
// Build custom content config similar to promptCustomContentSource // Build custom content config similar to promptCustomContentSource
const customPaths = []; const customPaths = [];
const selectedModuleIds = []; const selectedModuleIds = [];
const sources = [];
for (const customPath of paths) { for (const customPath of paths) {
const expandedPath = this.expandUserPath(customPath); const expandedPath = this.expandUserPath(customPath);
@ -333,6 +334,11 @@ class UI {
customPaths.push(expandedPath); customPaths.push(expandedPath);
selectedModuleIds.push(moduleMeta.code); selectedModuleIds.push(moduleMeta.code);
sources.push({
path: expandedPath,
id: moduleMeta.code,
name: moduleMeta.name || moduleMeta.code,
});
} }
if (customPaths.length > 0) { if (customPaths.length > 0) {
@ -342,6 +348,9 @@ class UI {
hasCustomContent: true, hasCustomContent: true,
paths: customPaths, paths: customPaths,
selectedModuleIds: selectedModuleIds, selectedModuleIds: selectedModuleIds,
sources,
selected: true,
selectedFiles: customPaths.map((p) => path.join(p, 'module.yaml')),
}, },
}; };
} }
@ -446,6 +455,7 @@ class UI {
// Build custom content config similar to promptCustomContentSource // Build custom content config similar to promptCustomContentSource
const customPaths = []; const customPaths = [];
const selectedModuleIds = []; const selectedModuleIds = [];
const sources = [];
for (const customPath of paths) { for (const customPath of paths) {
const expandedPath = this.expandUserPath(customPath); const expandedPath = this.expandUserPath(customPath);
@ -474,6 +484,11 @@ class UI {
customPaths.push(expandedPath); customPaths.push(expandedPath);
selectedModuleIds.push(moduleMeta.code); selectedModuleIds.push(moduleMeta.code);
sources.push({
path: expandedPath,
id: moduleMeta.code,
name: moduleMeta.name || moduleMeta.code,
});
} }
if (customPaths.length > 0) { if (customPaths.length > 0) {
@ -481,6 +496,9 @@ class UI {
hasCustomContent: true, hasCustomContent: true,
paths: customPaths, paths: customPaths,
selectedModuleIds: selectedModuleIds, selectedModuleIds: selectedModuleIds,
sources,
selected: true,
selectedFiles: customPaths.map((p) => path.join(p, 'module.yaml')),
}; };
} }
} else if (!options.yes) { } else if (!options.yes) {