@yemi33/minions 0.1.158 → 0.1.160
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/lifecycle.js +3 -2
- package/engine/queries.js +5 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/lifecycle.js
CHANGED
|
@@ -494,12 +494,13 @@ function updateWorkItemStatus(meta, status, reason) {
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
function syncPrdItemStatus(itemId, status, sourcePlan) {
|
|
497
|
-
if (!itemId) return;
|
|
497
|
+
if (!itemId || !sourcePlan) return; // sourcePlan required to prevent cross-PRD contamination
|
|
498
498
|
try {
|
|
499
499
|
const prdDir = path.join(MINIONS_DIR, 'prd');
|
|
500
|
-
const files =
|
|
500
|
+
const files = [sourcePlan];
|
|
501
501
|
for (const pf of files) {
|
|
502
502
|
const fpath = path.join(prdDir, pf);
|
|
503
|
+
if (!fs.existsSync(fpath)) continue; // skip archived/deleted PRDs
|
|
503
504
|
mutateJsonFileLocked(fpath, (plan) => {
|
|
504
505
|
if (!plan?.missing_features) return plan;
|
|
505
506
|
const feature = plan.missing_features.find(f => f.id === itemId);
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.160",
|
|
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"
|