@yemi33/minions 0.1.437 → 0.1.439
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.
|
|
3
|
+
## 0.1.439 (2026-04-06)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- version check interval on settings page
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
- Convert remaining lifecycle.js safeWrite calls to mutateJsonFileLocked
|
|
12
12
|
|
|
13
13
|
### Fixes
|
|
14
|
+
- prevent HTTP/1.1 connection exhaustion with safeFetch timeout
|
|
15
|
+
- KB sweep failed state visible for 60s, auto-release stale guard
|
|
14
16
|
- agent detail fetch error shows retry and close buttons
|
|
15
17
|
- New Session fully resets command center state
|
|
16
18
|
- show processing dots on note card during active doc-chat
|
|
@@ -115,7 +115,7 @@ async function refreshLiveOutput() {
|
|
|
115
115
|
if (!currentAgentId || currentTab !== 'live') { stopLivePolling(); return; }
|
|
116
116
|
if (_steerInFlight) return; // Don't clobber immediate steering feedback
|
|
117
117
|
try {
|
|
118
|
-
const text = await
|
|
118
|
+
const text = await safeFetch('/api/agent/' + currentAgentId + '/live?tail=16384').then(r => r.text());
|
|
119
119
|
const el = document.getElementById('live-messages');
|
|
120
120
|
if (el) {
|
|
121
121
|
const wasAtBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 150;
|
package/dashboard/js/refresh.js
CHANGED
|
@@ -95,7 +95,7 @@ function _processStatusUpdate(data) {
|
|
|
95
95
|
|
|
96
96
|
async function refresh() {
|
|
97
97
|
try {
|
|
98
|
-
const data = await
|
|
98
|
+
const data = await safeFetch('/api/status').then(r => r.json());
|
|
99
99
|
_processStatusUpdate(data);
|
|
100
100
|
} catch(e) { console.error('refresh error', e); }
|
|
101
101
|
}
|
|
@@ -34,7 +34,7 @@ async function openAgentDetail(id) {
|
|
|
34
34
|
(agent.resultSummary ? '<div style="margin-top:4px;font-size:11px;color:var(--text);line-height:1.4">' + renderMd(agent.resultSummary.slice(0, 300)) + '</div>' : '');
|
|
35
35
|
|
|
36
36
|
try {
|
|
37
|
-
const detail = await
|
|
37
|
+
const detail = await safeFetch('/api/agent/' + id).then(r => r.json());
|
|
38
38
|
renderDetailTabs(detail);
|
|
39
39
|
renderDetailContent(detail, currentTab);
|
|
40
40
|
} catch(e) {
|
|
@@ -136,7 +136,8 @@ async function kbSweep() {
|
|
|
136
136
|
btn.textContent = 'failed';
|
|
137
137
|
showToast('cmd-toast', 'Sweep error: ' + e.message, false);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
const isError = btn.textContent === 'failed';
|
|
140
|
+
setTimeout(() => { btn.textContent = origText; btn.style.color = 'var(--muted)'; btn.disabled = false; }, isError ? 60000 : 3000);
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
function openCreateKbModal() {
|
package/dashboard/js/state.js
CHANGED
|
@@ -93,4 +93,17 @@ function rerenderPrdFromCache() {
|
|
|
93
93
|
renderPrd(window._lastStatus.prd, window._lastStatus.prdProgress);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
// Global fetch wrapper with timeout — prevents connection exhaustion from hung requests.
|
|
97
|
+
// Use for all short API calls. Long-lived streams (CC, doc-chat) manage their own AbortControllers.
|
|
98
|
+
function safeFetch(url, opts) {
|
|
99
|
+
const timeout = (opts && opts.timeout) || 15000;
|
|
100
|
+
if (opts) delete opts.timeout;
|
|
101
|
+
const controller = new AbortController();
|
|
102
|
+
const timer = setTimeout(() => controller.abort(), timeout);
|
|
103
|
+
const signal = (opts && opts.signal)
|
|
104
|
+
? AbortSignal.any([opts.signal, controller.signal])
|
|
105
|
+
: controller.signal;
|
|
106
|
+
return fetch(url, Object.assign({}, opts, { signal })).finally(() => clearTimeout(timer));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
window.MinionsState = { getPageFromUrl, switchPage, getPrdRequeueState, setPrdRequeueState, clearPrdRequeueState, prunePrdRequeueState, rerenderPrdFromCache, safeFetch };
|
package/dashboard.js
CHANGED
|
@@ -1630,8 +1630,14 @@ const server = http.createServer(async (req, res) => {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
1632
|
async function handleKnowledgeSweep(req, res) {
|
|
1633
|
+
// Auto-release stale guard after 5 min (LLM may have hung)
|
|
1634
|
+
if (global._kbSweepInFlight && global._kbSweepStartedAt && Date.now() - global._kbSweepStartedAt > 300000) {
|
|
1635
|
+
console.log('[kb-sweep] Auto-releasing stale guard (>5min)');
|
|
1636
|
+
global._kbSweepInFlight = false;
|
|
1637
|
+
}
|
|
1633
1638
|
if (global._kbSweepInFlight) return jsonReply(res, 409, { error: 'sweep already in progress' });
|
|
1634
1639
|
global._kbSweepInFlight = true;
|
|
1640
|
+
global._kbSweepStartedAt = Date.now();
|
|
1635
1641
|
try {
|
|
1636
1642
|
const entries = getKnowledgeBaseEntries();
|
|
1637
1643
|
if (entries.length < 2) return jsonReply(res, 200, { ok: true, summary: 'nothing to sweep (< 2 entries)' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.439",
|
|
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"
|