@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 +5 -0
- package/minions.js +9 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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(
|
|
152
|
-
|
|
153
|
-
|
|
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.
|
|
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"
|