@yemi33/minions 0.1.819 → 0.1.820

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.819 (2026-04-11)
3
+ ## 0.1.820 (2026-04-11)
4
4
 
5
5
  ### Features
6
6
  - verify workflow handles shared-branch plans and existing E2E PRs
@@ -17,6 +17,7 @@
17
17
  - cap review→fix cycles at evalMaxIterations (default 3)
18
18
 
19
19
  ### Fixes
20
+ - prevent duplicate verify WIs per PRD, re-open on modified plan
20
21
  - strip ===ACTIONS=== server-side in streaming chunks (not client)
21
22
  - strip ===ACTIONS=== from CC streamed text during rendering
22
23
  - ccExecuteAction routes action status to correct tab via targetTabId
@@ -36,7 +37,6 @@
36
37
  - project-scoped skill work items instruct wrong file path format (closes #790) (#804)
37
38
  - move ignoredAuthors construction outside inner comment loop (ADO)
38
39
  - approved is permanent — no path can ever downgrade it
39
- - allow fix dispatch on approved PRs (only guard is in updatePrAfterFix)
40
40
 
41
41
  ### Other
42
42
  - docs: diff-aware PRD update playbook + prioritize team memory in shared rules
@@ -185,8 +185,11 @@ function checkPlanCompletion(meta, config) {
185
185
  }
186
186
 
187
187
  // 4. Create verification work item (build, test, start webapp, write testing guide)
188
+ // Only one verify per PRD — skip if pending/dispatched, re-open if done/failed (PRD was modified)
188
189
  const existingVerify = allWorkItems.find(w => w.sourcePlan === planFile && w.itemType === 'verify');
189
- if (!existingVerify && doneItems.length > 0) {
190
+ if (existingVerify && (existingVerify.status === WI_STATUS.PENDING || existingVerify.status === WI_STATUS.DISPATCHED)) {
191
+ log('info', `Plan ${planFile}: verify WI ${existingVerify.id} already ${existingVerify.status} — skipping`);
192
+ } else if (doneItems.length > 0) {
190
193
  const verifyId = 'PL-' + shared.uid();
191
194
  const planSlug = planFile.replace('.json', '');
192
195
 
@@ -301,6 +304,24 @@ function checkPlanCompletion(meta, config) {
301
304
  const teams = require('./teams');
302
305
  teams.teamsNotifyPlanEvent({ name: plan.plan_summary || planFile, file: planFile }, 'verify-created').catch(() => {});
303
306
  } catch {}
307
+ } else if (existingVerify && DONE_STATUSES.has(existingVerify.status) && doneItems.length > 0) {
308
+ // PRD was modified and re-completed — re-open the existing verify instead of creating a duplicate
309
+ const verifyProject = existingVerify.project || projectName;
310
+ const vWiPath = shared.projectWorkItemsPath(
311
+ projects.find(p => p.name?.toLowerCase() === verifyProject?.toLowerCase()) || primaryProject
312
+ );
313
+ mutateWorkItems(vWiPath, items => {
314
+ const v = items.find(w => w.id === existingVerify.id);
315
+ if (v && DONE_STATUSES.has(v.status)) {
316
+ v.status = WI_STATUS.PENDING;
317
+ v._reopened = true;
318
+ delete v.completedAt;
319
+ delete v.dispatched_to;
320
+ delete v.dispatched_at;
321
+ v._retryCount = 0;
322
+ }
323
+ });
324
+ log('info', `Re-opened verification work item ${existingVerify.id} for modified plan ${planFile}`);
304
325
  }
305
326
 
306
327
  // Archive deferred until verify completes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.819",
3
+ "version": "0.1.820",
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"