@yemi33/minions 0.1.946 → 0.1.947
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 +2 -1
- package/dashboard.js +2 -2
- package/engine/ado.js +10 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.947 (2026-04-14)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- make ADO poll frequency configurable and ungate reconcilePrs
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
- prioritize error_max_turns over permission-blocked in classifyFailure (#1001)
|
|
48
48
|
|
|
49
49
|
### Other
|
|
50
|
+
- refactor(ado): simplify comments, fix declaration order, promote ado import
|
|
50
51
|
- refactor(ado): move PR enrichment fetch into fetchAdoPrMetadata helper
|
|
51
52
|
- refactor: Make renderLiveChatMessage a thin wrapper over renderAgentOutput
|
|
52
53
|
- test(preflight): add unit tests for findClaudeBinary, runPreflight, printPreflight, checkOrExit (#953)
|
package/dashboard.js
CHANGED
|
@@ -21,6 +21,7 @@ const _dashboardVersion = {
|
|
|
21
21
|
const shared = require('./engine/shared');
|
|
22
22
|
const queries = require('./engine/queries');
|
|
23
23
|
const teams = require('./engine/teams');
|
|
24
|
+
const ado = require('./engine/ado');
|
|
24
25
|
const os = require('os');
|
|
25
26
|
|
|
26
27
|
const { safeRead, safeReadDir, safeWrite, safeJson, safeJsonObj, safeJsonArr, safeUnlink, mutateJsonFileLocked, mutateWorkItems, getProjects: _getProjects, DONE_STATUSES, WI_STATUS, reopenWorkItem } = shared;
|
|
@@ -4228,8 +4229,7 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
4228
4229
|
} else if (adoMatch) {
|
|
4229
4230
|
const [, adoOrg, adoProj, adoRepo] = adoMatch;
|
|
4230
4231
|
try {
|
|
4231
|
-
|
|
4232
|
-
prData = await fetchAdoPrMetadata(prNum, adoOrg, adoProj, adoRepo);
|
|
4232
|
+
prData = await ado.fetchAdoPrMetadata(prNum, adoOrg, adoProj, adoRepo);
|
|
4233
4233
|
} catch { /* ADO token may not be available */ }
|
|
4234
4234
|
}
|
|
4235
4235
|
if (!prData) return;
|
package/engine/ado.js
CHANGED
|
@@ -371,19 +371,17 @@ async function pollPrStatus(config) {
|
|
|
371
371
|
|
|
372
372
|
if (newStatus !== PR_STATUS.ACTIVE) return updated;
|
|
373
373
|
|
|
374
|
-
// Query builds API directly —
|
|
375
|
-
//
|
|
374
|
+
// Query builds API directly — /statuses is unreliable (stale codecoverage postbacks).
|
|
375
|
+
// refs/pull/{id}/merge scopes server-side to this PR; sourceVersion narrows to the current
|
|
376
|
+
// merge commit (same ref accumulates builds across all prior pushes to the PR).
|
|
376
377
|
const prNumber = pr.prNumber;
|
|
378
|
+
const mergeCommitId = prData.lastMergeCommit?.commitId;
|
|
377
379
|
let buildStatus = 'none';
|
|
378
380
|
let buildFailReason = '';
|
|
379
381
|
let buildStatuses = []; // for error log fetching
|
|
380
382
|
|
|
381
|
-
const mergeCommitId = prData.lastMergeCommit?.commitId;
|
|
382
383
|
if (prNumber && mergeCommitId) {
|
|
383
384
|
try {
|
|
384
|
-
// branchName=refs/pull/{id}/merge scopes server-side to this PR's builds.
|
|
385
|
-
// sourceVersion filter then narrows to the current merge commit — a PR updated
|
|
386
|
-
// multiple times accumulates builds on the same ref across different commits.
|
|
387
385
|
const mergeRef = encodeURIComponent(`refs/pull/${prNumber}/merge`);
|
|
388
386
|
const buildsUrl = `${orgBase}/${project.adoProject}/_apis/build/builds?branchName=${mergeRef}&repositoryId=${project.repositoryId}&repositoryType=TfsGit&$top=25&api-version=7.1`;
|
|
389
387
|
const buildsData = await adoFetch(buildsUrl, token);
|
|
@@ -768,19 +766,17 @@ async function checkLiveReviewStatus(pr, project) {
|
|
|
768
766
|
}
|
|
769
767
|
}
|
|
770
768
|
|
|
771
|
-
// Fetch basic PR metadata (title, description, branch, author) for a manually-linked ADO PR.
|
|
772
|
-
// Uses adoFetch so retry logic and circuit breaker apply — dashboard.js PR enrichment calls this.
|
|
773
769
|
async function fetchAdoPrMetadata(prNum, adoOrg, adoProj, adoRepo) {
|
|
774
770
|
const token = await getAdoToken();
|
|
775
771
|
if (!token) return null;
|
|
776
772
|
const url = `https://dev.azure.com/${adoOrg}/${adoProj}/_apis/git/repositories/${adoRepo}/pullrequests/${prNum}?api-version=7.1`;
|
|
777
|
-
const
|
|
778
|
-
if (!
|
|
773
|
+
const pr = await adoFetch(url, token);
|
|
774
|
+
if (!pr) return null;
|
|
779
775
|
return {
|
|
780
|
-
title:
|
|
781
|
-
description:
|
|
782
|
-
branch:
|
|
783
|
-
author:
|
|
776
|
+
title: pr.title || '',
|
|
777
|
+
description: pr.description || '',
|
|
778
|
+
branch: pr.sourceRefName?.replace('refs/heads/', '') || '',
|
|
779
|
+
author: pr.createdBy?.displayName || '',
|
|
784
780
|
};
|
|
785
781
|
}
|
|
786
782
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.947",
|
|
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"
|