@yemi33/minions 0.1.191 → 0.1.192

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.191 (2026-04-02)
3
+ ## 0.1.192 (2026-04-02)
4
4
 
5
5
  ### Engine
6
6
  - engine/queries.js
@@ -444,6 +444,11 @@ function renderPrdProgress(prog) {
444
444
  // Store archived data for the modal
445
445
  window._archivedPrdGroups = archivedKeys.map(k => grouped[k]);
446
446
  window._archivedPrdRenderGroup = renderGroup;
447
+ window._archivedPrdRenderItem = renderItem;
448
+ window._archivedPrdRenderGraph = renderGraph;
449
+ window._archivedPrdRenderGroupHeader = renderGroupHeader;
450
+ window._archivedPrdRenderGroupStats = renderGroupStats;
451
+ window._archivedPrdRenderE2eSection = renderE2eSection;
447
452
  html += '<div style="margin-top:8px;text-align:right;position:relative" data-file="prd-archives">' +
448
453
  '<button class="pr-pager-btn" style="font-size:10px;padding:3px 10px;color:var(--muted)" onclick="openArchivedPrdModal()">' +
449
454
  'View Archives (' + archivedKeys.length + ')' +
@@ -514,12 +519,21 @@ function showArchivedPrdDetail(idx) {
514
519
  '<button class="pr-pager-btn" style="font-size:9px;padding:2px 8px" onclick="openArchivedPrdModal()">Back</button>' +
515
520
  '</div>';
516
521
 
517
- // Reuse the renderGroup logic temporarily swap view mode
518
- const prevMode = window._prdViewMode;
519
- window._prdViewMode = isGraph ? 'graph' : 'list';
520
- const renderGroup = window._archivedPrdRenderGroup;
521
- const content = renderGroup ? renderGroup(g.file) : '<p>Error rendering</p>';
522
- window._prdViewMode = prevMode;
522
+ // Render directly from the archived group data (not from stale renderGroup closure)
523
+ const renderItem = window._archivedPrdRenderItem;
524
+ const renderGraph = window._archivedPrdRenderGraph;
525
+ const renderGroupHeader = window._archivedPrdRenderGroupHeader;
526
+ const renderGroupStats = window._archivedPrdRenderGroupStats;
527
+ const renderE2eSection = window._archivedPrdRenderE2eSection;
528
+ const viewContent = (renderItem && renderGraph)
529
+ ? (isGraph ? renderGraph(g.items) : '<div class="prd-items-list">' + g.items.map(renderItem).join('') + '</div>')
530
+ : '<p>Error rendering</p>';
531
+ const content = '<div style="margin-bottom:16px">' +
532
+ (renderGroupHeader ? renderGroupHeader(g) : '') +
533
+ (renderE2eSection ? renderE2eSection(g.file) : '') +
534
+ (renderGroupStats ? renderGroupStats(g.items) : '') +
535
+ viewContent +
536
+ '</div>';
523
537
 
524
538
  document.getElementById('modal-title').textContent = g.summary || g.file;
525
539
  document.getElementById('modal-body').innerHTML = toggleHtml + content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.191",
3
+ "version": "0.1.192",
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"