@yemi33/minions 0.1.246 → 0.1.248

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.248 (2026-04-03)
4
+
5
+ ### Fixes
6
+ - skip worktrees in project scan, make scan optional during init
7
+
3
8
  ## 0.1.245 (2026-04-03)
4
9
 
5
10
  ### Features
package/minions.js CHANGED
@@ -263,6 +263,14 @@ function findGitRepos(rootDir, maxDepth = 3) {
263
263
 
264
264
  const gitDir = path.join(dir, '.git');
265
265
  if (fs.existsSync(gitDir)) {
266
+ // Skip git worktrees — their .git is a file containing "gitdir: ..." pointing to the main repo
267
+ const stat = fs.statSync(gitDir);
268
+ if (stat.isFile()) {
269
+ try {
270
+ const content = fs.readFileSync(gitDir, 'utf8');
271
+ if (content.trimStart().startsWith('gitdir:')) return; // worktree, skip
272
+ } catch {}
273
+ }
266
274
  repos.push(dir);
267
275
  return; // Don't recurse into git repos (they may have nested submodules)
268
276
  }
@@ -459,9 +467,15 @@ async function initMinions({ skipScan = false, scanRoot, scanDepth } = {}) {
459
467
  console.log(' Run "minions scan" or "minions add <dir>" to link projects.\n');
460
468
  rl.close();
461
469
  } else {
462
- // Auto-chain into scan (scanAndAdd closes rl)
463
- console.log(' Now let\'s find your repos...\n');
464
- await scanAndAdd({ root: scanRoot, depth: scanDepth });
470
+ // Offer to scan for repos (optional)
471
+ console.log(' You can link projects now or skip and add them later.\n');
472
+ const doScan = await ask('Scan for projects? (Y/n/skip)', 'Y');
473
+ if (doScan.toLowerCase() === 'n' || doScan.toLowerCase() === 'skip') {
474
+ console.log(' Skipped. Run "minions scan" or "minions add <dir>" to link projects later.\n');
475
+ rl.close();
476
+ } else {
477
+ await scanAndAdd({ root: scanRoot, depth: scanDepth });
478
+ }
465
479
  }
466
480
  }
467
481
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.246",
3
+ "version": "0.1.248",
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"