@yemi33/minions 0.1.535 → 0.1.537
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 +6 -0
- package/dashboard.js +2 -1
- package/engine.js +4 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard.js
CHANGED
|
@@ -2269,7 +2269,8 @@ If nothing to do: { "duplicates": [], "reclassify": [], "remove": [] }`;
|
|
|
2269
2269
|
const id = 'W-' + shared.uid();
|
|
2270
2270
|
mutateJsonFileLocked(centralPath, (items) => {
|
|
2271
2271
|
if (!Array.isArray(items)) items = [];
|
|
2272
|
-
|
|
2272
|
+
// Only block if actively pending/dispatched — allow re-execute after completion
|
|
2273
|
+
const existing = items.find(w => w.type === 'plan-to-prd' && w.planFile === body.file && (w.status === 'pending' || w.status === 'dispatched'));
|
|
2273
2274
|
if (existing) { existingId = existing.id; return items; }
|
|
2274
2275
|
items.push({
|
|
2275
2276
|
id, title: 'Convert plan to PRD: ' + body.file.replace('.md', ''),
|
package/engine.js
CHANGED
|
@@ -1098,18 +1098,11 @@ function materializePlansAsWorkItems(config) {
|
|
|
1098
1098
|
plan.sourcePlanModifiedAt = new Date(sourceMtime).toISOString();
|
|
1099
1099
|
plan.lastSyncedFromPlan = ts();
|
|
1100
1100
|
|
|
1101
|
-
// Handle PRD based on current status
|
|
1101
|
+
// Handle PRD based on current status — auto-regenerate for any state
|
|
1102
1102
|
const prdStatus = plan.status || (plan.requires_approval ? 'awaiting-approval' : null);
|
|
1103
1103
|
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
plan.planStale = true;
|
|
1107
|
-
log('info', `PRD ${file} flagged as stale (plan revised while ${prdStatus}) — user can regenerate from dashboard`);
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
// Awaiting-approval PRDs: invalidate, carry over completed items, delete old PRD, queue regeneration
|
|
1111
|
-
if (prdStatus === 'awaiting-approval') {
|
|
1112
|
-
log('info', `PRD ${file} invalidated (was awaiting-approval) — queuing regeneration from revised plan`);
|
|
1104
|
+
if (prdStatus) {
|
|
1105
|
+
log('info', `PRD ${file} invalidated (was ${prdStatus}) — queuing regeneration from revised plan`);
|
|
1113
1106
|
|
|
1114
1107
|
// Collect completed items to carry over to new PRD
|
|
1115
1108
|
const completedStatuses = new Set(['done', 'in-pr', 'implemented']); // in-pr kept for backward compat
|
|
@@ -1142,7 +1135,7 @@ function materializePlansAsWorkItems(config) {
|
|
|
1142
1135
|
title: `Regenerate PRD from revised plan: ${plan.source_plan}`,
|
|
1143
1136
|
type: 'plan-to-prd',
|
|
1144
1137
|
priority: 'high',
|
|
1145
|
-
description: `Plan file: plans/${plan.source_plan}\nSource plan was revised
|
|
1138
|
+
description: `Plan file: plans/${plan.source_plan}\nSource plan was revised (PRD was ${prdStatus}) — regenerating.${completedContext}`,
|
|
1146
1139
|
status: 'pending',
|
|
1147
1140
|
created: ts(),
|
|
1148
1141
|
createdBy: 'engine:plan-revision',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.537",
|
|
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"
|