@yemi33/minions 0.1.2282 → 0.1.2283

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.
@@ -749,6 +749,12 @@ function updateWorkItemStatus(meta, status, reason) {
749
749
  const _VALID_PRD_STATUSES = new Set([...Object.values(WI_STATUS), 'missing']);
750
750
  // (#984) PRD statuses that are stale when the work item is actually done
751
751
  const _STALE_PRD_STATUSES = new Set([WI_STATUS.DISPATCHED, WI_STATUS.FAILED, WI_STATUS.PENDING]);
752
+ // (W-mquoejfa000xd6b6) PRD top-level statuses that are frozen — reconcilePrdStatuses must skip
753
+ // these entirely to avoid spurious status transitions or WI dispatches on paused/rejected/
754
+ // awaiting-approval PRDs. Previously only COMPLETED was skipped.
755
+ const _PRD_FROZEN_STATUSES = new Set([
756
+ PLAN_STATUS.COMPLETED, PLAN_STATUS.PAUSED, PLAN_STATUS.REJECTED, PLAN_STATUS.AWAITING_APPROVAL,
757
+ ]);
752
758
  function syncPrdItemStatus(itemId, status, sourcePlan) {
753
759
  if (!itemId) return;
754
760
  if (!_VALID_PRD_STATUSES.has(status)) return;
@@ -826,8 +832,8 @@ function reconcilePrdStatuses(config) {
826
832
  const logMessages = [];
827
833
  mutateJsonFileLocked(fpath, (plan) => {
828
834
  if (!plan?.missing_features) return plan;
829
- // Skip completed/archived PRDs — no reconciliation needed
830
- if (plan.status === PLAN_STATUS.COMPLETED) return plan;
835
+ // Skip frozen PRDs — paused/rejected/awaiting-approval/completed require no reconciliation
836
+ if (_PRD_FROZEN_STATUSES.has(plan.status)) return plan;
831
837
 
832
838
  for (const feature of plan.missing_features) {
833
839
  if (feature.status === PRD_ITEM_STATUS.MISSING && doneWiById.has(feature.id)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.2282",
3
+ "version": "0.1.2283",
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"