@yemi33/minions 0.1.582 → 0.1.583

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.583 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - use Date.now() for agent runtime since completed_at not yet set
7
+
3
8
  ## 0.1.582 (2026-04-08)
4
9
 
5
10
  ### Fixes
@@ -1019,9 +1019,9 @@ function updateMetrics(agentId, dispatchItem, result, taskUsage, prsCreatedCount
1019
1019
  m.lastTask = dispatchItem.task;
1020
1020
  m.lastCompleted = ts();
1021
1021
  if (model) m.model = model;
1022
- // Track runtime (wall-clock duration from dispatch start to completion)
1023
- const runtimeMs = (dispatchItem.started_at && dispatchItem.completed_at)
1024
- ? new Date(dispatchItem.completed_at).getTime() - new Date(dispatchItem.started_at).getTime()
1022
+ // Track runtime (wall-clock duration from dispatch start to now — completed_at not yet set)
1023
+ const runtimeMs = dispatchItem.started_at
1024
+ ? Date.now() - new Date(dispatchItem.started_at).getTime()
1025
1025
  : 0;
1026
1026
  if (runtimeMs > 0) m.totalRuntimeMs = (m.totalRuntimeMs || 0) + runtimeMs;
1027
1027
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.582",
3
+ "version": "0.1.583",
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"