@yemi33/minions 0.1.205 → 0.1.206
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/CHANGELOG.md +5 -0
- package/minions.js +19 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/minions.js
CHANGED
|
@@ -281,25 +281,34 @@ function findGitRepos(rootDir, maxDepth = 3) {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
async function scanAndAdd({ root, depth } = {}) {
|
|
284
|
-
let
|
|
284
|
+
let scanRoots;
|
|
285
285
|
if (root) {
|
|
286
|
-
|
|
286
|
+
scanRoots = [path.resolve(root)];
|
|
287
287
|
} else {
|
|
288
288
|
const homeDir = process.env.USERPROFILE || process.env.HOME || '';
|
|
289
|
-
const answer = await ask('Where are your projects?', homeDir);
|
|
290
|
-
|
|
289
|
+
const answer = await ask('Where are your projects? (comma-separate for multiple)', homeDir);
|
|
290
|
+
scanRoots = answer.split(',').map(s => path.resolve(s.trim())).filter(Boolean);
|
|
291
291
|
}
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
// Validate all paths
|
|
293
|
+
const validRoots = [];
|
|
294
|
+
for (const r of scanRoots) {
|
|
295
|
+
if (fs.existsSync(r)) { validRoots.push(r); }
|
|
296
|
+
else { console.log(` Directory not found (skipping): ${r}`); }
|
|
297
|
+
}
|
|
298
|
+
if (validRoots.length === 0) {
|
|
299
|
+
console.log(' No valid directories to scan.\n');
|
|
294
300
|
rl.close();
|
|
295
301
|
return;
|
|
296
302
|
}
|
|
297
303
|
const maxDepth = depth !== undefined ? (parseInt(depth, 10) || 4) : 4;
|
|
298
304
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
305
|
+
let repos = [];
|
|
306
|
+
for (const scanRoot of validRoots) {
|
|
307
|
+
console.log(`\n Scanning: ${scanRoot} (depth ${maxDepth})`);
|
|
308
|
+
repos.push(...findGitRepos(scanRoot, maxDepth));
|
|
309
|
+
}
|
|
310
|
+
// Deduplicate by resolved path
|
|
311
|
+
repos = [...new Map(repos.map(r => [path.resolve(r), r])).values()];
|
|
303
312
|
if (repos.length === 0) {
|
|
304
313
|
console.log(' No git repositories found.\n');
|
|
305
314
|
rl.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.206",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|