@yemi33/minions 0.1.2334 → 0.1.2336
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/docs/harness-transparency.md +1 -1
- package/engine/gh-comment.js +0 -45
- package/engine/queries.js +1 -1
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ evaluation pass) can see what tooling drove a dispatch:
|
|
|
125
125
|
and ⚠️-marked), and returns `''` for an empty/absent record. The GitHub
|
|
126
126
|
comment path folds it in via `engine/gh-comment.js#buildMinionsCommentBody`
|
|
127
127
|
(optional `harnessUsed` arg, threaded through `postPrComment` /
|
|
128
|
-
`postPrReviewComment`
|
|
128
|
+
`postPrReviewComment`); the Azure DevOps path mirrors it via
|
|
129
129
|
`engine/ado-comment.js#postAdoPrComment` (same builder, same `harnessUsed`
|
|
130
130
|
arg). Both posters are reached from the `minions pr comment` CLI, which turns
|
|
131
131
|
`--harness-file` / `--harness-json` into the grounded record and folds the
|
package/engine/gh-comment.js
CHANGED
|
@@ -210,50 +210,6 @@ function postPrReviewComment({
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
const _REVIEW_EVENT_FLAGS = Object.freeze({
|
|
214
|
-
APPROVE: '--approve',
|
|
215
|
-
REQUEST_CHANGES: '--request-changes',
|
|
216
|
-
COMMENT: '--comment',
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
function postPrReview({
|
|
220
|
-
event,
|
|
221
|
-
repo,
|
|
222
|
-
prNumber,
|
|
223
|
-
body,
|
|
224
|
-
agentId,
|
|
225
|
-
kind,
|
|
226
|
-
workItemId,
|
|
227
|
-
harnessUsed,
|
|
228
|
-
skillSkipped,
|
|
229
|
-
timeoutMs = 30000,
|
|
230
|
-
execFileSync = _execFileSync,
|
|
231
|
-
resolveTokenForSlug,
|
|
232
|
-
} = {}) {
|
|
233
|
-
const flag = _REVIEW_EVENT_FLAGS[event];
|
|
234
|
-
if (!flag) {
|
|
235
|
-
throw new Error(
|
|
236
|
-
`invalid event: ${JSON.stringify(event)} (expected APPROVE | REQUEST_CHANGES | COMMENT)`,
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
_validateRepo(repo);
|
|
240
|
-
_validatePrNumber(prNumber);
|
|
241
|
-
const finalBody = buildMinionsCommentBody({ agentId, kind, workItemId, body, harnessUsed, skillSkipped });
|
|
242
|
-
const file = _writeTempBodyFile(finalBody);
|
|
243
|
-
const env = _resolveTokenEnvForRepo(repo, resolveTokenForSlug);
|
|
244
|
-
try {
|
|
245
|
-
const output = _runGh(
|
|
246
|
-
execFileSync,
|
|
247
|
-
['pr', 'review', String(prNumber), flag, '--repo', repo, '--body-file', file],
|
|
248
|
-
timeoutMs,
|
|
249
|
-
env,
|
|
250
|
-
);
|
|
251
|
-
return { output: String(output || '').trim(), bodyFile: file };
|
|
252
|
-
} finally {
|
|
253
|
-
try { fs.unlinkSync(file); } catch {}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
213
|
module.exports = {
|
|
258
214
|
// Builders / parsers (pure functions — usable from anywhere)
|
|
259
215
|
buildMinionsCommentBody,
|
|
@@ -271,7 +227,6 @@ module.exports = {
|
|
|
271
227
|
// gh wrappers (argv-form, --body-file)
|
|
272
228
|
postPrComment,
|
|
273
229
|
postPrReviewComment,
|
|
274
|
-
postPrReview,
|
|
275
230
|
// Internal helpers exported for tests / advanced callers
|
|
276
231
|
_buildMarker,
|
|
277
232
|
_writeTempBodyFile,
|
package/engine/queries.js
CHANGED
|
@@ -2461,7 +2461,7 @@ function getPrdInfo(config) {
|
|
|
2461
2461
|
const t = planTimings[wi.sourcePlan];
|
|
2462
2462
|
if (wi.dispatched_at) { const d = new Date(wi.dispatched_at).getTime(); if (!t.firstDispatched || d < t.firstDispatched) t.firstDispatched = d; }
|
|
2463
2463
|
if (wi.completedAt) { const c = new Date(wi.completedAt).getTime(); if (!t.lastCompleted || c > t.lastCompleted) t.lastCompleted = c; }
|
|
2464
|
-
if (wi.status
|
|
2464
|
+
if (!DONE_STATUSES.has(wi.status)) t.allDone = false;
|
|
2465
2465
|
}
|
|
2466
2466
|
|
|
2467
2467
|
const progress = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2336",
|
|
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"
|