@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.
Files changed (3) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/minions.js +19 -10
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.206 (2026-04-02)
4
+
5
+ ### Other
6
+ - minions.js
7
+
3
8
  ## 0.1.205 (2026-04-02)
4
9
 
5
10
  ### Engine
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 scanRoot;
284
+ let scanRoots;
285
285
  if (root) {
286
- scanRoot = path.resolve(root);
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
- scanRoot = path.resolve(answer);
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
- if (!fs.existsSync(scanRoot)) {
293
- console.log(` Directory not found: ${scanRoot}\n`);
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
- console.log(`\n Scanning for git repos in: ${scanRoot}`);
300
- console.log(` Max depth: ${maxDepth}\n`);
301
-
302
- const repos = findGitRepos(scanRoot, maxDepth);
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.205",
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"