@yemi33/minions 0.1.691 → 0.1.692
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/dashboard/js/render-work-items.js +1 -0
- package/engine/github.js +10 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -419,6 +419,7 @@ async function _submitCreateWorkItem(e) {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
function openWorkItemDetail(id) {
|
|
422
|
+
if (window.getSelection && window.getSelection().toString().length > 0) return;
|
|
422
423
|
const item = allWorkItems.find(i => i.id === id);
|
|
423
424
|
if (!item) return;
|
|
424
425
|
|
package/engine/github.js
CHANGED
|
@@ -108,27 +108,28 @@ async function fetchGhBuildErrorLog(slug, failedRuns) {
|
|
|
108
108
|
for (const run of (failedRuns || []).slice(0, 3)) {
|
|
109
109
|
if (!run?.id) continue;
|
|
110
110
|
|
|
111
|
-
// Try annotations
|
|
111
|
+
// Try annotations for structured compiler/lint errors
|
|
112
|
+
let hasUsefulAnnotations = false;
|
|
112
113
|
try {
|
|
113
114
|
const annotations = await ghApi(`/check-runs/${run.id}/annotations`, slug);
|
|
114
115
|
if (Array.isArray(annotations) && annotations.length > 0) {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
const failures = annotations.filter(a => a.annotation_level === 'failure');
|
|
117
|
+
if (failures.length > 0) {
|
|
118
|
+
const formatted = failures
|
|
119
|
+
.map(a => `${a.path || ''}:${a.start_line || ''} [${a.annotation_level}] ${a.message || ''}`)
|
|
120
|
+
.join('\n');
|
|
120
121
|
logParts.push(`--- ${run.name || 'Check'} (annotations) ---\n${formatted}`);
|
|
121
|
-
|
|
122
|
+
hasUsefulAnnotations = true;
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
} catch { /* fall through to job log */ }
|
|
125
126
|
|
|
126
|
-
//
|
|
127
|
+
// Always fetch job log — annotations alone often lack test failure details
|
|
127
128
|
try {
|
|
128
129
|
const cmd = `gh api "repos/${slug}/actions/jobs/${run.id}/logs" 2>&1`;
|
|
129
130
|
const result = await execAsync(cmd, { timeout: 15000, encoding: 'utf-8' });
|
|
130
131
|
if (result && !result.includes('Not Found')) {
|
|
131
|
-
logParts.push(`--- ${run.name || 'Check'} ---\n${result}`);
|
|
132
|
+
logParts.push(`--- ${run.name || 'Check'} (log) ---\n${result}`);
|
|
132
133
|
}
|
|
133
134
|
} catch { /* skip individual log fetch failures */ }
|
|
134
135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.692",
|
|
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"
|