@yemi33/minions 0.1.866 → 0.1.868
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,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.868 (2026-04-11)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
|
+
- show run duration on agent cards and thought-process tab
|
|
7
|
+
- live runtime counter on agent live output tab
|
|
6
8
|
- optimistic running state on pipeline Run Now click
|
|
7
9
|
|
|
8
10
|
### Fixes
|
|
@@ -44,6 +44,19 @@ function renderDetailContent(detail, tab) {
|
|
|
44
44
|
if (detail.statusData.task) html += 'Task: ' + escHtml(detail.statusData.task) + '\n';
|
|
45
45
|
if (detail.statusData.started_at) html += 'Started: ' + detail.statusData.started_at + '\n';
|
|
46
46
|
if (detail.statusData.completed_at) html += 'Completed: ' + detail.statusData.completed_at + '\n';
|
|
47
|
+
if (detail.statusData.started_at && detail.statusData.completed_at) {
|
|
48
|
+
var dMs = new Date(detail.statusData.completed_at).getTime() - new Date(detail.statusData.started_at).getTime();
|
|
49
|
+
if (dMs > 0) {
|
|
50
|
+
var dSec = Math.floor(dMs / 1000) % 60, dMin = Math.floor(dMs / 60000) % 60, dHr = Math.floor(dMs / 3600000);
|
|
51
|
+
html += 'Duration: ' + (dHr > 0 ? dHr + 'h ' : '') + dMin + 'm ' + dSec + 's\n';
|
|
52
|
+
}
|
|
53
|
+
} else if (detail.statusData.started_at && detail.statusData.status === 'working') {
|
|
54
|
+
var rMs = Date.now() - new Date(detail.statusData.started_at).getTime();
|
|
55
|
+
if (rMs > 0) {
|
|
56
|
+
var rSec = Math.floor(rMs / 1000) % 60, rMin = Math.floor(rMs / 60000) % 60, rHr = Math.floor(rMs / 3600000);
|
|
57
|
+
html += 'Running: ' + (rHr > 0 ? rHr + 'h ' : '') + rMin + 'm ' + rSec + 's\n';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
47
60
|
html += '</div>';
|
|
48
61
|
if (detail.statusData.resultSummary) {
|
|
49
62
|
html += '<h4>Last Result</h4><div class="section" style="border-left:3px solid var(--green);padding-left:12px">' + renderMd(detail.statusData.resultSummary) + '</div>';
|
|
@@ -65,11 +78,13 @@ function renderDetailContent(detail, tab) {
|
|
|
65
78
|
|
|
66
79
|
el.innerHTML = html;
|
|
67
80
|
} else if (tab === 'live') {
|
|
81
|
+
var startedAt = detail.statusData?.started_at;
|
|
68
82
|
el.innerHTML =
|
|
69
83
|
'<div id="live-chat" style="display:flex;flex-direction:column;height:60vh">' +
|
|
70
84
|
'<div id="live-messages" style="flex:1;overflow-y:auto;padding:8px;font-size:11px;line-height:1.6;display:flex;flex-direction:column"></div>' +
|
|
71
85
|
'<div id="live-status-bar" style="padding:4px 8px;display:flex;align-items:center;gap:8px;border-top:1px solid var(--border)">' +
|
|
72
86
|
'<span class="pulse"></span><span id="live-status-label" style="font-size:11px;color:var(--green)">Streaming live</span>' +
|
|
87
|
+
'<span id="live-runtime" style="font-size:10px;color:var(--muted)" data-started="' + (startedAt || '') + '"></span>' +
|
|
73
88
|
'<button class="pr-pager-btn" onclick="refreshLiveOutput()" style="font-size:10px">Refresh</button>' +
|
|
74
89
|
'</div>' +
|
|
75
90
|
'<div id="live-steer-bar" style="display:flex;gap:8px;padding:8px;border-top:1px solid var(--border)">' +
|
|
@@ -4,6 +4,20 @@ let livePollingInterval = null;
|
|
|
4
4
|
let liveEventSource = null;
|
|
5
5
|
let _steerInFlight = false;
|
|
6
6
|
let _lastRenderedText = '';
|
|
7
|
+
let _runtimeTimer = null;
|
|
8
|
+
|
|
9
|
+
function _updateRuntimeCounter() {
|
|
10
|
+
var el = document.getElementById('live-runtime');
|
|
11
|
+
if (!el) return;
|
|
12
|
+
var started = el.dataset.started;
|
|
13
|
+
if (!started) return;
|
|
14
|
+
var ms = Date.now() - new Date(started).getTime();
|
|
15
|
+
if (ms < 0) ms = 0;
|
|
16
|
+
var sec = Math.floor(ms / 1000) % 60;
|
|
17
|
+
var min = Math.floor(ms / 60000) % 60;
|
|
18
|
+
var hr = Math.floor(ms / 3600000);
|
|
19
|
+
el.textContent = (hr > 0 ? hr + 'h ' : '') + min + 'm ' + sec + 's';
|
|
20
|
+
}
|
|
7
21
|
|
|
8
22
|
function renderLiveChatMessage(raw) {
|
|
9
23
|
const el = document.getElementById('live-messages');
|
|
@@ -87,6 +101,10 @@ function startLiveStream(agentId) {
|
|
|
87
101
|
if (msgEl) msgEl.innerHTML = '';
|
|
88
102
|
_lastRenderedText = '';
|
|
89
103
|
|
|
104
|
+
// Start runtime counter
|
|
105
|
+
_updateRuntimeCounter();
|
|
106
|
+
_runtimeTimer = setInterval(_updateRuntimeCounter, 1000);
|
|
107
|
+
|
|
90
108
|
// Use polling instead of SSE to avoid HTTP/1.1 connection exhaustion
|
|
91
109
|
// (SSE holds a persistent connection, blocking CC and other API calls)
|
|
92
110
|
startLivePolling();
|
|
@@ -97,6 +115,7 @@ function stopLiveStream() {
|
|
|
97
115
|
liveEventSource.close();
|
|
98
116
|
liveEventSource = null;
|
|
99
117
|
}
|
|
118
|
+
if (_runtimeTimer) { clearInterval(_runtimeTimer); _runtimeTimer = null; }
|
|
100
119
|
stopLivePolling();
|
|
101
120
|
}
|
|
102
121
|
|
|
@@ -11,6 +11,12 @@ function renderAgents(agents) {
|
|
|
11
11
|
</div>
|
|
12
12
|
<div class="agent-role">${escHtml(a.role)}</div>
|
|
13
13
|
<div class="agent-action" title="${escHtml(a.lastAction)}">${escHtml(a.lastAction)}</div>
|
|
14
|
+
${(function() {
|
|
15
|
+
var s = a.started_at, c = a.completed_at;
|
|
16
|
+
if (s && c) { var d = new Date(c) - new Date(s); if (d > 0) { var sec = Math.floor(d/1000)%60, min = Math.floor(d/60000)%60, hr = Math.floor(d/3600000); return '<div style="font-size:9px;color:var(--muted)">Last run: ' + (hr > 0 ? hr + 'h ' : '') + min + 'm ' + sec + 's</div>'; } }
|
|
17
|
+
if (s && a.status === 'working') { var r = Date.now() - new Date(s).getTime(); if (r > 0) { var sec2 = Math.floor(r/1000)%60, min2 = Math.floor(r/60000)%60, hr2 = Math.floor(r/3600000); return '<div style="font-size:9px;color:var(--yellow)">Running: ' + (hr2 > 0 ? hr2 + 'h ' : '') + min2 + 'm ' + sec2 + 's</div>'; } }
|
|
18
|
+
return '';
|
|
19
|
+
})()}
|
|
14
20
|
${a._blockingToolCall ? `<div style="margin-top:4px;padding:4px 8px;background:rgba(130,160,210,0.13);border:1px solid rgba(130,160,210,0.3);border-radius:4px;font-size:10px;color:var(--muted)">⏳ Blocking tool call (${escHtml(a._blockingToolCall.tool)}) — silent ${Math.round(a._blockingToolCall.silentMs/60000)}min, timeout in ${Math.round(a._blockingToolCall.remainingMs/60000)}min</div>` : ''}
|
|
15
21
|
${a._warning ? `<div style="margin-top:4px;padding:4px 8px;background:rgba(210,153,34,0.15);border:1px solid rgba(210,153,34,0.3);border-radius:4px;font-size:10px;color:var(--yellow)">⚠ ${escHtml(a._warning)}</div>` : ''}
|
|
16
22
|
${a._permissionMode && a._permissionMode !== 'bypassPermissions' && !a._warning ? `<div style="margin-top:4px;font-size:9px;color:var(--muted)">Permission mode: ${escHtml(a._permissionMode)}</div>` : ''}
|
package/engine/queries.js
CHANGED
|
@@ -341,6 +341,8 @@ function getAgents(config) {
|
|
|
341
341
|
...a, status: s.status, lastAction,
|
|
342
342
|
currentTask: (s.task || '').slice(0, 200),
|
|
343
343
|
resultSummary: (s.resultSummary || '').slice(0, 500),
|
|
344
|
+
started_at: s.started_at || null,
|
|
345
|
+
completed_at: s.completed_at || null,
|
|
344
346
|
_blockingToolCall: s._blockingToolCall || null,
|
|
345
347
|
_warning: s._warning || null,
|
|
346
348
|
_permissionMode: s._permissionMode || null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.868",
|
|
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"
|