@yemi33/minions 0.1.619 → 0.1.621
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 +7 -1
- package/engine/lifecycle.js +29 -0
- package/engine.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.621 (2026-04-08)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
|
+
- detect plan-to-prd completing without PRD file, auto-retry
|
|
7
|
+
|
|
8
|
+
## 0.1.620 (2026-04-08)
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
- import safeUnlink in engine.js spawn cleanup path (closes #575) (#576)
|
|
6
12
|
- engine stuck in stopped state after dashboard restart (closes #564) (#573)
|
|
7
13
|
|
|
8
14
|
## 0.1.618 (2026-04-08)
|
package/engine/lifecycle.js
CHANGED
|
@@ -1347,6 +1347,35 @@ async function runPostCompletionHooks(dispatchItem, agentId, code, stdout, confi
|
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
|
|
1350
|
+
// Detect plan-to-prd tasks that completed without creating a PRD file
|
|
1351
|
+
if (effectiveSuccess && type === WORK_TYPE.PLAN_TO_PRD && meta?.item?.planFile) {
|
|
1352
|
+
const prdFile = meta.item.planFile.replace(/\.md$/, '.json');
|
|
1353
|
+
const prdPath = path.join(PRD_DIR, prdFile);
|
|
1354
|
+
if (!fs.existsSync(prdPath)) {
|
|
1355
|
+
const hasOutput = stdout && stdout.length > 500;
|
|
1356
|
+
const wiPath = resolveWorkItemPath(meta);
|
|
1357
|
+
if (wiPath) {
|
|
1358
|
+
mutateJsonFileLocked(wiPath, data => {
|
|
1359
|
+
if (!Array.isArray(data)) return data;
|
|
1360
|
+
const w = data.find(i => i.id === meta.item.id);
|
|
1361
|
+
if (!w) return data;
|
|
1362
|
+
const retries = w._retryCount || 0;
|
|
1363
|
+
if (retries < ENGINE_DEFAULTS.maxRetries) {
|
|
1364
|
+
w.status = WI_STATUS.PENDING;
|
|
1365
|
+
w._retryCount = retries + 1;
|
|
1366
|
+
delete w.dispatched_at;
|
|
1367
|
+
log('warn', `plan-to-prd ${meta.item.id} completed without PRD file — auto-retry ${retries + 1}/${ENGINE_DEFAULTS.maxRetries}`);
|
|
1368
|
+
} else {
|
|
1369
|
+
w.status = WI_STATUS.FAILED;
|
|
1370
|
+
w.failReason = 'Completed without creating PRD file after ' + ENGINE_DEFAULTS.maxRetries + ' attempts';
|
|
1371
|
+
log('warn', `plan-to-prd ${meta.item.id} failed — no PRD file after ${ENGINE_DEFAULTS.maxRetries} retries`);
|
|
1372
|
+
}
|
|
1373
|
+
return data;
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1350
1379
|
if (type === WORK_TYPE.REVIEW) await updatePrAfterReview(agentId, meta?.pr, meta?.project, config);
|
|
1351
1380
|
if (type === WORK_TYPE.FIX) updatePrAfterFix(meta?.pr, meta?.project, meta?.source);
|
|
1352
1381
|
checkForLearnings(agentId, config.agents[agentId], dispatchItem.task);
|
package/engine.js
CHANGED
|
@@ -91,6 +91,7 @@ const { getProjects, projectRoot, projectStateDir, projectWorkItemsPath, project
|
|
|
91
91
|
const safeJson = shared.safeJson;
|
|
92
92
|
const safeRead = shared.safeRead;
|
|
93
93
|
const safeWrite = shared.safeWrite;
|
|
94
|
+
const safeUnlink = shared.safeUnlink;
|
|
94
95
|
const mutateJsonFileLocked = shared.mutateJsonFileLocked;
|
|
95
96
|
const mutateWorkItems = shared.mutateWorkItems;
|
|
96
97
|
const mutatePullRequests = shared.mutatePullRequests;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.621",
|
|
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"
|