@yemi33/minions 0.1.436 → 0.1.438

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.436 (2026-04-06)
3
+ ## 0.1.438 (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
+ - KB sweep failed state visible for 60s, auto-release stale guard
15
+ - agent detail fetch error shows retry and close buttons
14
16
  - New Session fully resets command center state
15
17
  - show processing dots on note card during active doc-chat
16
18
  - prevent triple dispatch on same PR — 3 root causes
@@ -38,7 +38,12 @@ async function openAgentDetail(id) {
38
38
  renderDetailTabs(detail);
39
39
  renderDetailContent(detail, currentTab);
40
40
  } catch(e) {
41
- document.getElementById('detail-content').textContent = 'Error loading agent detail: ' + e.message;
41
+ document.getElementById('detail-content').innerHTML =
42
+ '<div style="padding:24px;text-align:center">' +
43
+ '<div style="color:var(--red);margin-bottom:12px">Error loading agent detail: ' + escHtml(e.message) + '</div>' +
44
+ '<button onclick="openAgentDetail(\'' + escHtml(id) + '\')" style="padding:6px 16px;background:var(--blue);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-size:12px">Retry</button>' +
45
+ ' <button onclick="closeDetail()" style="padding:6px 16px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;font-size:12px;color:var(--text)">Close</button>' +
46
+ '</div>';
42
47
  }
43
48
 
44
49
  document.getElementById('detail-overlay').classList.add('open');
@@ -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
- setTimeout(() => { btn.textContent = origText; btn.style.color = 'var(--muted)'; btn.disabled = false; }, 3000);
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 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.436",
3
+ "version": "0.1.438",
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"