@yemi33/minions 0.1.516 → 0.1.517

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.517 (2026-04-07)
4
+
5
+ ### Features
6
+ - decomposed PRD items show WIP while children run, DONE when all complete
7
+
3
8
  ## 0.1.516 (2026-04-07)
4
9
 
5
10
  ### Fixes
@@ -109,7 +109,14 @@ function renderPrdProgress(prog) {
109
109
  }
110
110
 
111
111
  // PRD item statuses: missing → dispatched → done
112
- const statusBadge = (s) => {
112
+ const statusBadge = (s, itemId) => {
113
+ // Decomposed: show WIP if children still running, DONE if all children done
114
+ if (s === 'decomposed' && itemId) {
115
+ const children = (window._lastWorkItems || []).filter(w => w.parent_id === itemId);
116
+ const allChildrenDone = children.length > 0 && children.every(c => c.status === 'done');
117
+ if (allChildrenDone) { s = 'done'; }
118
+ else { s = 'dispatched'; } // show as WIP while children are running
119
+ }
113
120
  const styles = {
114
121
  'done': 'background:rgba(63,185,80,0.15);color:var(--green)',
115
122
  'dispatched': 'background:rgba(210,153,34,0.15);color:var(--yellow);animation:wipPulse 1.5s infinite',
@@ -173,7 +180,7 @@ function renderPrdProgress(prog) {
173
180
  }
174
181
 
175
182
  return '<div class="prd-item-row st-' + (i.status || 'missing') + '" style="flex-wrap:wrap;cursor:pointer" onclick="prdItemEdit(\'' + src + '\',\'' + iid + '\')">' +
176
- statusBadge(i.status) +
183
+ statusBadge(i.status, i.id) +
177
184
  '<span class="prd-item-id">' + escHtml(i.id) + '</span>' +
178
185
  '<span class="prd-item-name" title="' + escHtml(i.name) + '">' + escHtml(i.name) + '</span>' +
179
186
  wiLabel +
@@ -325,8 +332,13 @@ function renderPrdProgress(prog) {
325
332
  if (d > maxDepth) maxDepth = d;
326
333
  });
327
334
 
328
- const statusColor = (s) => {
329
- if (s === 'done' || s === 'decomposed') return 'var(--green)';
335
+ const statusColor = (s, itemId) => {
336
+ if (s === 'decomposed' && itemId) {
337
+ const ch = (window._lastWorkItems || []).filter(w => w.parent_id === itemId);
338
+ if (ch.length > 0 && ch.every(c => c.status === 'done')) return 'var(--green)';
339
+ return 'var(--yellow)'; // children still running
340
+ }
341
+ if (s === 'done') return 'var(--green)';
330
342
  if (s === 'dispatched') return 'var(--yellow)';
331
343
  if (s === 'failed') return 'var(--red)';
332
344
  if (s === 'paused') return 'var(--muted)';
@@ -341,7 +353,7 @@ function renderPrdProgress(prog) {
341
353
  html += '<div style="flex:1;min-width:0">' +
342
354
  '<div style="font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px;text-align:center">' + colLabel + '</div>';
343
355
  for (const i of col) {
344
- const borderColor = statusColor(i.status);
356
+ const borderColor = statusColor(i.status, i.id);
345
357
  const src = escHtml(i.source || '');
346
358
  const iid = escHtml(i.id || '');
347
359
  const agentId = wi[i.id]?.dispatched_to || '';
@@ -353,7 +365,7 @@ function renderPrdProgress(prog) {
353
365
  'style="background:var(--surface2);border:1px solid var(--border);border-left:3px solid ' + borderColor + ';' + wipAnim +
354
366
  'border-radius:4px;padding:6px 8px;margin-bottom:6px;cursor:pointer;font-size:11px">' +
355
367
  '<div style="display:flex;align-items:center;gap:4px;margin-bottom:2px">' +
356
- statusBadge(i.status) +
368
+ statusBadge(i.status, i.id) +
357
369
  '<span style="font-weight:600;color:var(--text)">' + escHtml(i.id) + '</span>' +
358
370
  '</div>' +
359
371
  '<div style="color:var(--text);font-size:11px;line-height:1.3;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical">' + escHtml(i.name) + '</div>' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.516",
3
+ "version": "0.1.517",
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"