@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 +5 -0
- package/minions.js +17 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
//
|
|
463
|
-
console.log('
|
|
464
|
-
await
|
|
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.
|
|
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"
|