@yemi33/minions 0.1.535 → 0.1.536

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.536 (2026-04-07)
4
+
5
+ ### Fixes
6
+ - plan regenerate/execute always queues fresh plan-to-prd (#449)
7
+
3
8
  ## 0.1.535 (2026-04-07)
4
9
 
5
10
  ### Features
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
- // Approved/executing PRDs: flag as stale but don't disrupt in-flight work
1105
- if (prdStatus === 'approved' || prdStatus === 'completed') {
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 while PRD was awaiting approval — regenerating.${completedContext}`,
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.535",
3
+ "version": "0.1.536",
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"