@yemi33/minions 0.1.947 → 0.1.948
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/engine/ado.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.948 (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): extract stripRefsHeads helper, deduplicate refs/heads/ stripping
|
|
50
51
|
- refactor(ado): simplify comments, fix declaration order, promote ado import
|
|
51
52
|
- refactor(ado): move PR enrichment fetch into fetchAdoPrMetadata helper
|
|
52
53
|
- refactor: Make renderLiveChatMessage a thin wrapper over renderAgentOutput
|
package/engine/ado.js
CHANGED
|
@@ -16,6 +16,8 @@ function engine() {
|
|
|
16
16
|
return _engine;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
const stripRefsHeads = s => (s || '').replace('refs/heads/', '');
|
|
20
|
+
|
|
19
21
|
// ─── ADO Token Cache ─────────────────────────────────────────────────────────
|
|
20
22
|
|
|
21
23
|
let _adoTokenCache = { token: null, expiresAt: 0 };
|
|
@@ -117,7 +119,7 @@ async function fetchAdoBuildErrorLog(orgBase, project, failedStatus, token, pr,
|
|
|
117
119
|
if (!buildId) {
|
|
118
120
|
// Fallback: query recent failed builds for this PR's source branch
|
|
119
121
|
try {
|
|
120
|
-
const branch = pr?.branch || pr?.sourceRefName
|
|
122
|
+
const branch = pr?.branch || stripRefsHeads(pr?.sourceRefName);
|
|
121
123
|
if (branch) {
|
|
122
124
|
const buildsUrl = `${orgBase}/${project.adoProject}/_apis/build/builds?branchName=refs/heads/${encodeURIComponent(branch)}&statusFilter=completed&resultFilter=failed&$top=3&api-version=7.1`;
|
|
123
125
|
const builds = await adoFetch(buildsUrl, token);
|
|
@@ -648,7 +650,7 @@ async function reconcilePrs(config) {
|
|
|
648
650
|
let projectUpdated = 0;
|
|
649
651
|
for (const adoPr of adoPrs) {
|
|
650
652
|
const prId = `PR-${adoPr.pullRequestId}`;
|
|
651
|
-
const branch = (adoPr.sourceRefName
|
|
653
|
+
const branch = stripRefsHeads(adoPr.sourceRefName);
|
|
652
654
|
const title = adoPr.title || '';
|
|
653
655
|
// Extract item ID from branch name or PR title (e.g., feat(P-2cafdc2a): ...)
|
|
654
656
|
const branchMatch = branch.match(/(P-[a-z0-9]{6,})/i) || branch.match(/(W-[a-z0-9]{6,})/i) || branch.match(/(PL-[a-z0-9]{6,})/i);
|
|
@@ -775,7 +777,7 @@ async function fetchAdoPrMetadata(prNum, adoOrg, adoProj, adoRepo) {
|
|
|
775
777
|
return {
|
|
776
778
|
title: pr.title || '',
|
|
777
779
|
description: pr.description || '',
|
|
778
|
-
branch: pr.sourceRefName
|
|
780
|
+
branch: stripRefsHeads(pr.sourceRefName),
|
|
779
781
|
author: pr.createdBy?.displayName || '',
|
|
780
782
|
};
|
|
781
783
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.948",
|
|
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"
|