@yemi33/minions 0.1.76 → 0.1.77
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/engine/lifecycle.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/lifecycle.js
CHANGED
|
@@ -31,7 +31,7 @@ function checkPlanCompletion(meta, config) {
|
|
|
31
31
|
|
|
32
32
|
const projects = shared.getProjects(config);
|
|
33
33
|
|
|
34
|
-
// Collect work items from ALL projects (PRD items can
|
|
34
|
+
// Collect work items from ALL projects + central (PRD items can be in either)
|
|
35
35
|
let allWorkItems = [];
|
|
36
36
|
for (const p of projects) {
|
|
37
37
|
try {
|
|
@@ -39,6 +39,13 @@ function checkPlanCompletion(meta, config) {
|
|
|
39
39
|
allWorkItems = allWorkItems.concat(wi);
|
|
40
40
|
} catch { /* optional */ }
|
|
41
41
|
}
|
|
42
|
+
// Also check central work-items.json (for no-project setups)
|
|
43
|
+
try {
|
|
44
|
+
const central = safeJson(path.join(MINIONS_DIR, 'work-items.json')) || [];
|
|
45
|
+
for (const w of central) {
|
|
46
|
+
if (!allWorkItems.some(existing => existing.id === w.id)) allWorkItems.push(w);
|
|
47
|
+
}
|
|
48
|
+
} catch { /* optional */ }
|
|
42
49
|
const planItems = allWorkItems.filter(w => w.sourcePlan === planFile && w.itemType !== 'pr' && w.itemType !== 'verify');
|
|
43
50
|
if (planItems.length === 0) return;
|
|
44
51
|
|
package/package.json
CHANGED