@yemi33/minions 0.1.540 → 0.1.541

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.541 (2026-04-07)
4
+
5
+ ### Fixes
6
+ - plan edits flag PRD stale instead of auto-regenerating
7
+
3
8
  ## 0.1.540 (2026-04-07)
4
9
 
5
10
  ### Features
package/engine.js CHANGED
@@ -1098,11 +1098,19 @@ 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 — auto-regenerate for any state
1101
+ // Handle PRD based on current status
1102
1102
  const prdStatus = plan.status || (plan.requires_approval ? 'awaiting-approval' : null);
1103
1103
 
1104
- if (prdStatus) {
1105
- log('info', `PRD ${file} invalidated (was ${prdStatus}) queuing regeneration from revised plan`);
1104
+ // Approved/paused/completed PRDs: flag stale — user must click Re-execute to regenerate
1105
+ if (prdStatus && prdStatus !== 'awaiting-approval') {
1106
+ plan.planStale = true;
1107
+ safeWrite(path.join(PRD_DIR, file), plan);
1108
+ log('info', `PRD ${file} flagged as stale (plan revised while ${prdStatus}) — user can re-execute from dashboard`);
1109
+ }
1110
+
1111
+ // Awaiting-approval PRDs: auto-regenerate (no work started yet, safe to replace)
1112
+ if (prdStatus === 'awaiting-approval') {
1113
+ log('info', `PRD ${file} invalidated (was awaiting-approval) — queuing regeneration from revised plan`);
1106
1114
 
1107
1115
  // Collect completed items to carry over to new PRD
1108
1116
  const completedStatuses = new Set(['done', 'in-pr', 'implemented']); // in-pr kept for backward compat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.540",
3
+ "version": "0.1.541",
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"