wizz-method 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "wizz-method",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"description": "Wizz Method — método de agência orientado por IA em PT-BR (fork independente do BMad Method)",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agile",
|
|
@@ -140,6 +140,26 @@ class OfficialModules {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
// Add bundled local modules (src/modules/<code>), e.g. wizz. Without this
|
|
144
|
+
// they never appear in the picker nor in the --yes defaults, even with
|
|
145
|
+
// default_selected: true — findModuleSource resolves them, but nothing
|
|
146
|
+
// ever selects them (bug: maestro/agentes de área não instalavam via npx).
|
|
147
|
+
const bundledDir = getSourcePath('modules');
|
|
148
|
+
if (await fs.pathExists(bundledDir)) {
|
|
149
|
+
const entries = await fs.readdir(bundledDir, { withFileTypes: true });
|
|
150
|
+
const seen = new Set(modules.map((m) => m.id));
|
|
151
|
+
for (const entry of entries) {
|
|
152
|
+
if (!entry.isDirectory()) continue;
|
|
153
|
+
const modulePath = path.join(bundledDir, entry.name);
|
|
154
|
+
if (!(await fs.pathExists(path.join(modulePath, 'module.yaml')))) continue;
|
|
155
|
+
const info = await this.getModuleInfo(modulePath, entry.name, `src/modules/${entry.name}`);
|
|
156
|
+
if (info && !seen.has(info.id)) {
|
|
157
|
+
modules.push(info);
|
|
158
|
+
seen.add(info.id);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
143
163
|
return { modules };
|
|
144
164
|
}
|
|
145
165
|
|