@yemi33/minions 0.1.609 → 0.1.610

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.610 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - worktree count now checks for .git file instead of any directory
7
+
3
8
  ## 0.1.609 (2026-04-08)
4
9
 
5
10
  ### Fixes
package/dashboard.js CHANGED
@@ -176,7 +176,24 @@ function _countWorktrees() {
176
176
  const root = p.localPath ? path.resolve(p.localPath) : null;
177
177
  if (!root) continue;
178
178
  const wtRoot = path.resolve(root, config.engine?.worktreeRoot || shared.ENGINE_DEFAULTS.worktreeRoot);
179
- try { count += fs.readdirSync(wtRoot).filter(f => fs.statSync(path.join(wtRoot, f)).isDirectory()).length; } catch {}
179
+ try {
180
+ for (const dir of fs.readdirSync(wtRoot)) {
181
+ const dirPath = path.join(wtRoot, dir);
182
+ try { if (!fs.statSync(dirPath).isDirectory()) continue; } catch { continue; }
183
+ // A git worktree has a .git file (not directory) in its root
184
+ if (fs.existsSync(path.join(dirPath, '.git'))) {
185
+ count++;
186
+ } else {
187
+ // Parent directory — scan subdirs for nested worktrees
188
+ try {
189
+ for (const sub of fs.readdirSync(dirPath)) {
190
+ const subPath = path.join(dirPath, sub);
191
+ try { if (fs.statSync(subPath).isDirectory() && fs.existsSync(path.join(subPath, '.git'))) count++; } catch {}
192
+ }
193
+ } catch {}
194
+ }
195
+ }
196
+ } catch {}
180
197
  }
181
198
  return count;
182
199
  } catch { return 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.609",
3
+ "version": "0.1.610",
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"