@yemi33/minions 0.1.528 → 0.1.530

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.530 (2026-04-07)
4
+
5
+ ### Fixes
6
+ - post-review live check ignores 'pending' to prevent review loop
7
+ - auto-dispatch fix when review agent requests changes
8
+
3
9
  ## 0.1.528 (2026-04-07)
4
10
 
5
11
  ### Features
@@ -698,13 +698,28 @@ function updatePrAfterReview(agentId, pr, project, config) {
698
698
  const dispatch = getDispatch();
699
699
  const completedEntry = (dispatch.completed || []).find(d => d.agent === agentId && d.type === 'review');
700
700
 
701
+ // Check actual review status from the platform (agent may have approved or requested changes)
702
+ let postReviewStatus = 'waiting';
703
+ try {
704
+ const projectObj = project || shared.getProjects(config)[0];
705
+ if (projectObj) {
706
+ const host = projectObj.repoHost || 'ado';
707
+ const checkFn = host === 'github'
708
+ ? require('./github').checkLiveReviewStatus
709
+ : require('./ado').checkLiveReviewStatus;
710
+ const liveStatus = checkFn(pr, projectObj);
711
+ // Use live status only if it's a decisive verdict (not 'pending' — review may not have propagated yet)
712
+ if (liveStatus && liveStatus !== 'pending') postReviewStatus = liveStatus;
713
+ }
714
+ } catch (e) { log('warn', `Post-review status check for ${pr.id}: ${e.message}`); }
715
+
701
716
  const prPath = project ? shared.projectPrPath(project) : path.join(path.resolve(MINIONS_DIR, '..'), '.minions', 'pull-requests.json');
702
717
  let updatedTarget = null;
703
718
  shared.mutateJsonFileLocked(prPath, (prs) => {
704
719
  if (!Array.isArray(prs)) return prs;
705
720
  const target = prs.find(p => p.id === pr.id);
706
721
  if (!target) return prs;
707
- target.reviewStatus = 'waiting';
722
+ target.reviewStatus = postReviewStatus;
708
723
  target.lastReviewedAt = ts();
709
724
  target.minionsReview = {
710
725
  reviewer: reviewerName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.528",
3
+ "version": "0.1.530",
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"