@yemi33/minions 0.1.528 → 0.1.529
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 +5 -0
- package/engine/lifecycle.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/lifecycle.js
CHANGED
|
@@ -698,13 +698,27 @@ 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
|
+
if (liveStatus) postReviewStatus = liveStatus;
|
|
712
|
+
}
|
|
713
|
+
} catch (e) { log('warn', `Post-review status check for ${pr.id}: ${e.message}`); }
|
|
714
|
+
|
|
701
715
|
const prPath = project ? shared.projectPrPath(project) : path.join(path.resolve(MINIONS_DIR, '..'), '.minions', 'pull-requests.json');
|
|
702
716
|
let updatedTarget = null;
|
|
703
717
|
shared.mutateJsonFileLocked(prPath, (prs) => {
|
|
704
718
|
if (!Array.isArray(prs)) return prs;
|
|
705
719
|
const target = prs.find(p => p.id === pr.id);
|
|
706
720
|
if (!target) return prs;
|
|
707
|
-
target.reviewStatus =
|
|
721
|
+
target.reviewStatus = postReviewStatus;
|
|
708
722
|
target.lastReviewedAt = ts();
|
|
709
723
|
target.minionsReview = {
|
|
710
724
|
reviewer: reviewerName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.529",
|
|
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"
|