@yemi33/minions 0.1.157 → 0.1.159
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 +10 -0
- package/engine/queries.js +5 -8
- package/engine/shared.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/queries.js
CHANGED
|
@@ -490,14 +490,11 @@ function getWorkItems(config) {
|
|
|
490
490
|
if (pr) item._prUrl = pr.url;
|
|
491
491
|
}
|
|
492
492
|
if (!item._pr) {
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
if (
|
|
496
|
-
item._pr =
|
|
497
|
-
|
|
498
|
-
if (linkedPr) item._prUrl = linkedPr.url;
|
|
499
|
-
} else {
|
|
500
|
-
// no further fallback — pr-links.json and wi._pr are the sources of truth
|
|
493
|
+
// Derive from PR.prdItems (single source of truth)
|
|
494
|
+
const linkedPr = allPrs.find(p => (p.prdItems || []).includes(item.id));
|
|
495
|
+
if (linkedPr) {
|
|
496
|
+
item._pr = linkedPr.id;
|
|
497
|
+
item._prUrl = linkedPr.url;
|
|
501
498
|
}
|
|
502
499
|
}
|
|
503
500
|
}
|
package/engine/shared.js
CHANGED
|
@@ -520,7 +520,8 @@ function getPrLinks() {
|
|
|
520
520
|
// Derive from PR.prdItems (single source of truth)
|
|
521
521
|
const links = {};
|
|
522
522
|
try {
|
|
523
|
-
const
|
|
523
|
+
const config = safeJson(path.join(MINIONS_DIR, 'config.json')) || {};
|
|
524
|
+
const projects = getProjects(config);
|
|
524
525
|
for (const project of projects) {
|
|
525
526
|
const prs = safeJson(projectPrPath(project)) || [];
|
|
526
527
|
for (const pr of prs) {
|
|
@@ -536,7 +537,8 @@ function getPrLinks() {
|
|
|
536
537
|
function addPrLink(prId, itemId) {
|
|
537
538
|
if (!prId || !itemId) return;
|
|
538
539
|
try {
|
|
539
|
-
const
|
|
540
|
+
const config = safeJson(path.join(MINIONS_DIR, 'config.json')) || {};
|
|
541
|
+
const projects = getProjects(config);
|
|
540
542
|
for (const project of projects) { linkPrToItem(project, prId, itemId); }
|
|
541
543
|
} catch { /* optional */ }
|
|
542
544
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.159",
|
|
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"
|