@yemi33/minions 0.1.400 → 0.1.401

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,11 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.400 (2026-04-06)
3
+ ## 0.1.401 (2026-04-06)
4
4
 
5
5
  ### Features
6
6
  - pipeline stages detect and link inbox notes as artifacts
7
7
 
8
8
  ### Fixes
9
+ - reconcilePrs only auto-tracks PRs linked to minions work items
9
10
  - auto-detect main branch when configured mainBranch doesn't exist
10
11
  - engine restart button shows toast + green checkmark, suppresses stale banner 30s
11
12
 
package/engine/ado.js CHANGED
@@ -399,6 +399,11 @@ async function reconcilePrs(config) {
399
399
  continue;
400
400
  }
401
401
 
402
+ // Only auto-track PRs that are linked to a minions work item.
403
+ // PRs on feat/ or work/ branches without a work item ID (P-xxx, W-xxx, PL-xxx)
404
+ // are human-authored and should not be auto-tracked or auto-reviewed.
405
+ if (!confirmedItemId) continue;
406
+
402
407
  const prUrl = project.prUrlBase ? project.prUrlBase + adoPr.pullRequestId : '';
403
408
  existingPrs.push({
404
409
  id: prId,
@@ -409,12 +414,12 @@ async function reconcilePrs(config) {
409
414
  status: 'active',
410
415
  created: adoPr.creationDate || ts(),
411
416
  url: prUrl,
412
- prdItems: confirmedItemId ? [confirmedItemId] : [],
417
+ prdItems: [confirmedItemId],
413
418
  });
414
- if (confirmedItemId) addPrLink(prId, confirmedItemId);
419
+ addPrLink(prId, confirmedItemId);
415
420
  existingIds.add(prId);
416
421
  projectAdded++;
417
- log('info', `PR reconciliation: added ${prId} (branch: ${branch}${confirmedItemId ? ', linked to ' + confirmedItemId : ''}) to ${project.name}`);
422
+ log('info', `PR reconciliation: added ${prId} (branch: ${branch}, linked to ${confirmedItemId}) to ${project.name}`);
418
423
  }
419
424
 
420
425
  // Backfill prdItems from pr-links for any PR with empty array
package/engine/github.js CHANGED
@@ -396,6 +396,9 @@ async function reconcilePrs(config) {
396
396
  continue;
397
397
  }
398
398
 
399
+ // Only auto-track PRs linked to a minions work item — skip human-authored PRs
400
+ if (!confirmedItemId) continue;
401
+
399
402
  const prUrl = project.prUrlBase ? project.prUrlBase + ghPr.number : ghPr.html_url || '';
400
403
 
401
404
  existingPrs.push({
@@ -407,13 +410,13 @@ async function reconcilePrs(config) {
407
410
  status: 'active',
408
411
  created: ghPr.created_at || ts(),
409
412
  url: prUrl,
410
- prdItems: confirmedItemId ? [confirmedItemId] : [],
413
+ prdItems: [confirmedItemId],
411
414
  });
412
- if (confirmedItemId) addPrLink(prId, confirmedItemId);
415
+ addPrLink(prId, confirmedItemId);
413
416
  existingIds.add(prId);
414
417
  projectAdded++;
415
418
 
416
- log('info', `GitHub PR reconciliation: added ${prId} (branch: ${branch}${confirmedItemId ? ', linked to ' + confirmedItemId : ''}) to ${project.name}`);
419
+ log('info', `GitHub PR reconciliation: added ${prId} (branch: ${branch}, linked to ${confirmedItemId}) to ${project.name}`);
417
420
  }
418
421
 
419
422
  // Backfill prdItems from pr-links for any PR with empty array
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.400",
3
+ "version": "0.1.401",
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"