@yemi33/minions 0.1.201 → 0.1.202

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.202 (2026-04-02)
4
+
5
+ ### Other
6
+ - minions.js
7
+
3
8
  ## 0.1.201 (2026-04-02)
4
9
 
5
10
  ### Engine
package/minions.js CHANGED
@@ -54,7 +54,12 @@ function autoDiscover(targetDir) {
54
54
 
55
55
  // 1. Detect main branch from git
56
56
  try {
57
- const head = execSync('git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null || git symbolic-ref HEAD', { cwd: targetDir, encoding: 'utf8', timeout: 5000 }).trim();
57
+ let head = '';
58
+ try {
59
+ head = execSync('git symbolic-ref refs/remotes/origin/HEAD', { cwd: targetDir, encoding: 'utf8', timeout: 5000 }).trim();
60
+ } catch {
61
+ head = execSync('git symbolic-ref HEAD', { cwd: targetDir, encoding: 'utf8', timeout: 5000 }).trim();
62
+ }
58
63
  const branch = head.replace('refs/remotes/origin/', '').replace('refs/heads/', '');
59
64
  if (branch) { result.mainBranch = branch; result._found.push('main branch'); }
60
65
  } catch {}
@@ -141,20 +146,12 @@ function buildProjectEntry({ name, description, localPath, repoHost, repositoryI
141
146
  repoName: repoName || name,
142
147
  mainBranch: mainBranch || 'main',
143
148
  prUrlBase: buildPrUrlBase({ repoHost, org, project, repoName }),
144
- workSources: {
145
- pullRequests: { enabled: true, path: '.minions/pull-requests.json', cooldownMinutes: 30 },
146
- workItems: { enabled: true, path: '.minions/work-items.json', cooldownMinutes: 0 },
147
- }
148
149
  };
149
150
  }
150
151
 
151
- function ensureProjectStateFiles(projectPath) {
152
- const minionsDir = path.join(projectPath, '.minions');
153
- if (!fs.existsSync(minionsDir)) fs.mkdirSync(minionsDir, { recursive: true });
154
- for (const f of ['pull-requests.json', 'work-items.json']) {
155
- const fp = path.join(minionsDir, f);
156
- if (!fs.existsSync(fp)) fs.writeFileSync(fp, '[]');
157
- }
152
+ function ensureProjectStateFiles() {
153
+ // Project state is stored centrally at ~/.minions/projects/<name>/
154
+ // No files created inside user repos.
158
155
  }
159
156
 
160
157
  // ─── Commands ────────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.201",
3
+ "version": "0.1.202",
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"