@yemi33/minions 0.1.620 → 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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.621 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - detect plan-to-prd completing without PRD file, auto-retry
7
+
3
8
  ## 0.1.620 (2026-04-08)
4
9
 
5
10
  ### Fixes
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.620",
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"