@yemi33/minions 0.1.828 → 0.1.829

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.828 (2026-04-11)
3
+ ## 0.1.829 (2026-04-11)
4
4
 
5
5
  ### Features
6
6
  - stale PRD shows Regenerate PRD + Resume as-is buttons
@@ -11,6 +11,9 @@
11
11
  - hide conflicting action buttons when stale PRD banner is showing
12
12
  - diff-aware plan-to-prd triggered by Resume, not auto-dispatch
13
13
 
14
+ ### Other
15
+ - refactor: remove dead criteria variable, DRY plan resume functions
16
+
14
17
  ## 0.1.823 (2026-04-11)
15
18
 
16
19
  ### Features
@@ -766,16 +766,16 @@ async function prdItemRequeue(workItemId, source, prdFile) {
766
766
  }
767
767
  }
768
768
 
769
- async function prdRegenerate(prdFile) {
770
- if (!confirm('Source plan was revised.\n\nRegenerate PRD? An agent will compare the updated plan against existing implementation and update items accordingly.\n\nDone items stay done unless modified. New items are added. Removed items are cancelled.')) return;
769
+ async function _planApproveAction(prdFile, skipRegen, confirmMsg, successMsg) {
770
+ if (!confirm(confirmMsg)) return;
771
771
  try {
772
772
  const res = await fetch('/api/plans/approve', {
773
773
  method: 'POST', headers: { 'Content-Type': 'application/json' },
774
- body: JSON.stringify({ file: prdFile })
774
+ body: JSON.stringify({ file: prdFile, skipRegen: skipRegen || undefined })
775
775
  });
776
776
  const d = await res.json();
777
777
  if (res.ok) {
778
- showToast('cmd-toast', d.diffAwareUpdate ? 'Diff-aware PRD update queued' : 'Plan approved', true);
778
+ showToast('cmd-toast', successMsg || (d.diffAwareUpdate ? 'Diff-aware PRD update queued' : 'Plan approved'), true);
779
779
  refresh();
780
780
  } else {
781
781
  alert('Failed: ' + (d.error || 'unknown'));
@@ -783,21 +783,15 @@ async function prdRegenerate(prdFile) {
783
783
  } catch (e) { alert('Error: ' + e.message); }
784
784
  }
785
785
 
786
- async function prdResumeWithoutRegen(prdFile) {
787
- if (!confirm('Resume this plan without regenerating the PRD?\n\nThe current PRD items will be used as-is. New work items will be materialized from any missing/planned items.')) return;
788
- try {
789
- const res = await fetch('/api/plans/approve', {
790
- method: 'POST', headers: { 'Content-Type': 'application/json' },
791
- body: JSON.stringify({ file: prdFile, skipRegen: true })
792
- });
793
- const d = await res.json();
794
- if (res.ok) {
795
- showToast('cmd-toast', 'Plan resumed (PRD unchanged)', true);
796
- refresh();
797
- } else {
798
- alert('Failed: ' + (d.error || 'unknown'));
799
- }
800
- } catch (e) { alert('Error: ' + e.message); }
786
+ function prdRegenerate(prdFile) {
787
+ _planApproveAction(prdFile, false,
788
+ 'Source plan was revised.\n\nRegenerate PRD? An agent will compare the updated plan against existing implementation and update items accordingly.\n\nDone items stay done unless modified. New items are added. Removed items are cancelled.');
789
+ }
790
+
791
+ function prdResumeWithoutRegen(prdFile) {
792
+ _planApproveAction(prdFile, true,
793
+ 'Resume this plan without regenerating the PRD?\n\nThe current PRD items will be used as-is. New work items will be materialized from any missing/planned items.',
794
+ 'Plan resumed (PRD unchanged)');
801
795
  }
802
796
 
803
797
  function openArchive(i) {
package/engine.js CHANGED
@@ -1478,7 +1478,6 @@ function materializePlansAsWorkItems(config) {
1478
1478
  if (existingWi && DONE_STATUSES.has(existingWi.status) && shouldReopen) {
1479
1479
  existingWi.status = WI_STATUS.PENDING;
1480
1480
  existingWi._reopened = true;
1481
- const criteria = (item.acceptance_criteria || []).map(c => `- ${c}`).join('\n');
1482
1481
  existingWi.description = buildWiDescription(item, file);
1483
1482
  existingWi.title = `Implement: ${item.name}`;
1484
1483
  created++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.828",
3
+ "version": "0.1.829",
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"