musubi-sdd 0.4.0 → 0.4.1
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/bin/musubi-onboard.js +6 -3
- package/package.json +1 -1
package/bin/musubi-onboard.js
CHANGED
|
@@ -204,10 +204,11 @@ async function analyzeDirectoryStructure() {
|
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
// Glob for main directories (exclude node_modules, .git, etc.)
|
|
207
|
-
const
|
|
207
|
+
const dirsResult = await glob('*/', {
|
|
208
208
|
ignore: ['node_modules/**', '.git/**', 'dist/**', 'build/**', '.vscode/**', '.idea/**'],
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
+
const dirs = Array.isArray(dirsResult) ? dirsResult : [];
|
|
211
212
|
analysis.directories = dirs.map(d => d.replace(/\/$/, ''));
|
|
212
213
|
|
|
213
214
|
// Detect architecture patterns
|
|
@@ -215,7 +216,8 @@ async function analyzeDirectoryStructure() {
|
|
|
215
216
|
analysis.patterns.push('src-based');
|
|
216
217
|
|
|
217
218
|
// Check sub-patterns within src
|
|
218
|
-
const
|
|
219
|
+
const srcDirsResult = await glob('src/*/', { ignore: ['node_modules/**'] });
|
|
220
|
+
const srcDirs = Array.isArray(srcDirsResult) ? srcDirsResult : [];
|
|
219
221
|
|
|
220
222
|
if (srcDirs.includes('src/features/')) analysis.architecture = 'feature-first';
|
|
221
223
|
else if (srcDirs.includes('src/components/')) analysis.architecture = 'component-based';
|
|
@@ -245,11 +247,12 @@ async function detectTechnologyStack(projectConfig) {
|
|
|
245
247
|
};
|
|
246
248
|
|
|
247
249
|
// Detect languages from file extensions
|
|
248
|
-
const
|
|
250
|
+
const filesResult = await glob('**/*', {
|
|
249
251
|
ignore: ['node_modules/**', '.git/**', 'dist/**', 'build/**'],
|
|
250
252
|
nodir: true,
|
|
251
253
|
});
|
|
252
254
|
|
|
255
|
+
const files = Array.isArray(filesResult) ? filesResult : [];
|
|
253
256
|
const extensions = new Set(files.map(f => path.extname(f)).filter(Boolean));
|
|
254
257
|
|
|
255
258
|
if (extensions.has('.js')) stack.languages.push('javascript');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musubi-sdd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Ultimate Specification Driven Development Tool with 25 Agents for 7 AI Coding Platforms (Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Codex, Qwen Code)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|