@yemi33/minions 0.1.871 → 0.1.872

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.871 (2026-04-11)
3
+ ## 0.1.872 (2026-04-11)
4
4
 
5
5
  ### Features
6
+ - show last task duration in thought-process tab when agent is idle
6
7
  - ticking runtime counter on working agent cards
7
8
  - show run duration on agent cards and thought-process tab
8
9
  - live runtime counter on agent live output tab
@@ -57,6 +57,19 @@ function renderDetailContent(detail, tab) {
57
57
  html += 'Running: ' + (rHr > 0 ? rHr + 'h ' : '') + rMin + 'm ' + rSec + 's\n';
58
58
  }
59
59
  }
60
+ // Show last completed task duration when idle (status cleared after 5min)
61
+ if (detail.statusData.status === 'idle' && detail.recentDispatches && detail.recentDispatches.length > 0) {
62
+ var last = detail.recentDispatches[0];
63
+ if (last.task) html += 'Last task: ' + escHtml(last.task.slice(0, 100)) + '\n';
64
+ if (last.started_at && last.completed_at) {
65
+ var lMs = new Date(last.completed_at).getTime() - new Date(last.started_at).getTime();
66
+ if (lMs > 0) {
67
+ var lSec = Math.floor(lMs / 1000) % 60, lMin = Math.floor(lMs / 60000) % 60, lHr = Math.floor(lMs / 3600000);
68
+ html += 'Duration: ' + (lHr > 0 ? lHr + 'h ' : '') + lMin + 'm ' + lSec + 's\n';
69
+ }
70
+ }
71
+ if (last.result) html += 'Result: <span style="color:var(--' + (last.result === 'error' ? 'red' : 'green') + ')">' + escHtml(last.result) + '</span>\n';
72
+ }
60
73
  html += '</div>';
61
74
  if (detail.statusData.resultSummary) {
62
75
  html += '<h4>Last Result</h4><div class="section" style="border-left:3px solid var(--green);padding-left:12px">' + renderMd(detail.statusData.resultSummary) + '</div>';
package/engine/queries.js CHANGED
@@ -375,7 +375,7 @@ function getAgentDetail(id) {
375
375
  .map(d => ({
376
376
  id: d.id, task: d.task || '', type: d.type || '',
377
377
  result: d.result || '', reason: d.reason || '',
378
- completed_at: d.completed_at || '',
378
+ started_at: d.started_at || '', completed_at: d.completed_at || '',
379
379
  }));
380
380
  } catch { /* optional */ }
381
381
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.871",
3
+ "version": "0.1.872",
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"