@yemi33/minions 0.1.1876 → 0.1.1877

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.1877 (2026-05-11)
4
+
5
+ ### Fixes
6
+ - PRD header showing Completed when items are still missing (#2364)
7
+
3
8
  ## 0.1.1876 (2026-05-11)
4
9
 
5
10
  ### Features
@@ -35,7 +35,9 @@ function renderPrd(prd, prog) {
35
35
  // Single PRD — show status + actions in header
36
36
  const implementItems = allWi.filter(w => prdItems.some(pi => pi.id === w.id));
37
37
  const allDone = implementItems.length > 0 && implementItems.every(w => w.status === 'done');
38
- const hasActive = implementItems.some(w => w.status === 'pending' || w.status === 'dispatched');
38
+ // Unmaterialized PRD items (status === 'missing') count as active — they still need work.
39
+ const hasMissing = prdItems.some(i => i.status === 'missing');
40
+ const hasActive = hasMissing || implementItems.some(w => w.status === 'pending' || w.status === 'dispatched');
39
41
  const prdFile = existing[0]?.file || '';
40
42
  const prdStatus = existing[0]?.status || '';
41
43
  const effectiveStatus = allDone && !hasActive ? 'completed' : hasActive ? 'dispatched' : prdStatus || 'active';
@@ -65,7 +67,9 @@ function renderPrd(prd, prog) {
65
67
  const items = prdItems.filter(i => i.source === p.file);
66
68
  const wiForPrd = allWi.filter(w => items.some(pi => pi.id === w.id));
67
69
  const allDone = wiForPrd.length > 0 && wiForPrd.every(w => w.status === 'done');
68
- const hasActive = wiForPrd.some(w => w.status === 'pending' || w.status === 'dispatched');
70
+ // Unmaterialized PRD items (status === 'missing') count as active — they still need work.
71
+ const hasMissing = items.some(i => i.status === 'missing');
72
+ const hasActive = hasMissing || wiForPrd.some(w => w.status === 'pending' || w.status === 'dispatched');
69
73
  const s = allDone && !hasActive ? 'completed' : hasActive ? 'dispatched' : p.status || 'active';
70
74
  counts[s] = (counts[s] || 0) + 1;
71
75
  }
package/engine/queries.js CHANGED
@@ -1313,6 +1313,7 @@ function getPrdInfo(config) {
1313
1313
  if (_prdResultCache && hash === _prdResultInputHash) return _prdResultCache;
1314
1314
 
1315
1315
  let allPrdItems = [];
1316
+ const existingPrds = [];
1316
1317
  let latestStat = null;
1317
1318
 
1318
1319
  // Check if directory listings need refresh
@@ -1353,6 +1354,13 @@ function getPrdInfo(config) {
1353
1354
  if (recorded && sourceMtime > recorded) planStale = true;
1354
1355
  } catch { /* optional */ }
1355
1356
  }
1357
+ existingPrds.push({
1358
+ file: pf,
1359
+ status: plan.status || 'active',
1360
+ planStale: planStale || plan.planStale || false,
1361
+ completedAt: plan.completedAt || '',
1362
+ _archived: archived,
1363
+ });
1356
1364
  for (const f of plan.missing_features) {
1357
1365
  allPrdItems.push({
1358
1366
  ...f, _source: pf, _planStatus: plan.status || 'active',
@@ -1497,7 +1505,7 @@ function getPrdInfo(config) {
1497
1505
 
1498
1506
  const status = {
1499
1507
  exists: true, age: latestStat ? timeSince(latestStat.mtimeMs) : 'unknown',
1500
- existing: 0, missing: items.filter(i => i.status === 'missing').length, questions: 0, summary: '',
1508
+ existing: existingPrds, missing: items.filter(i => i.status === 'missing').length, questions: 0, summary: '',
1501
1509
  missingList: items.filter(i => i.status === 'missing').map(f => ({ id: f.id, name: f.name || f.title, priority: f.priority, complexity: f.estimated_complexity || f.size })),
1502
1510
  };
1503
1511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.1876",
3
+ "version": "0.1.1877",
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"