@yemi33/minions 0.1.670 → 0.1.671

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,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.670 (2026-04-09)
3
+ ## 0.1.671 (2026-04-09)
4
+
5
+ ### Features
6
+ - populate _artifacts on work items for detail modal
4
7
 
5
8
  ### Fixes
6
9
  - surface blocking tool call state in dashboard (closes #619) (#634)
package/engine/queries.js CHANGED
@@ -706,6 +706,29 @@ function getWorkItems(config) {
706
706
  }
707
707
  }
708
708
 
709
+ // Populate _artifacts for the work item detail modal
710
+ for (const item of allItems) {
711
+ const arts = {};
712
+ const agentId = item.dispatched_to || item.agent;
713
+ if (agentId) {
714
+ // Output log — find most recent matching dispatch output
715
+ const agentDir = path.join(MINIONS_DIR, 'agents', agentId);
716
+ try {
717
+ const files = safeReadDir(agentDir).filter(f => f.startsWith('output-') && f.includes(item.id?.slice(-8) || '___') && f.endsWith('.log'));
718
+ if (files.length > 0) arts.outputLog = agentId + '/' + files[files.length - 1];
719
+ } catch {}
720
+ // Inbox notes created by this agent for this task
721
+ try {
722
+ const inboxFiles = safeReadDir(INBOX_DIR).filter(f => f.includes(agentId) && (f.includes(item.id || '___') || f.includes(item.id?.slice(-8) || '___')));
723
+ if (inboxFiles.length > 0) arts.notes = inboxFiles;
724
+ } catch {}
725
+ }
726
+ if (item.branch) arts.branch = item.branch;
727
+ if (item.sourcePlan) arts.sourcePlan = item.sourcePlan;
728
+ if (item._pr) arts.pr = item._pr;
729
+ if (Object.keys(arts).length > 0) item._artifacts = arts;
730
+ }
731
+
709
732
  const statusOrder = {
710
733
  pending: 0,
711
734
  queued: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.670",
3
+ "version": "0.1.671",
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"