@yemi33/minions 0.1.630 → 0.1.631

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,8 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.630 (2026-04-08)
3
+ ## 0.1.631 (2026-04-08)
4
4
 
5
5
  ### Fixes
6
+ - PRD existence check scans by source_plan, not filename
6
7
  - add 'When to Stop' to remaining 5 playbooks
7
8
  - hold _ccSending during abort delay, check wasAborted per queue item
8
9
  - abort+queue sends queued message after brief delay, not discard
@@ -1349,9 +1349,19 @@ async function runPostCompletionHooks(dispatchItem, agentId, code, stdout, confi
1349
1349
 
1350
1350
  // Detect plan-to-prd tasks that completed without creating a PRD file
1351
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)) {
1352
+ // PRD filename may differ from plan filename — scan prd/ for any file referencing this plan
1353
+ const planFile = meta.item.planFile;
1354
+ let prdFound = false;
1355
+ try {
1356
+ for (const f of fs.readdirSync(PRD_DIR)) {
1357
+ if (!f.endsWith('.json')) continue;
1358
+ try {
1359
+ const prd = safeJson(path.join(PRD_DIR, f));
1360
+ if (prd && prd.source_plan === planFile) { prdFound = true; break; }
1361
+ } catch {}
1362
+ }
1363
+ } catch {}
1364
+ if (!prdFound) {
1355
1365
  const hasOutput = stdout && stdout.length > 500;
1356
1366
  const wiPath = resolveWorkItemPath(meta);
1357
1367
  if (wiPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.630",
3
+ "version": "0.1.631",
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"