@yemi33/minions 0.1.2226 → 0.1.2227
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/dashboard/js/refresh.js +11 -20
- package/dashboard/js/settings.js +9 -0
- package/package.json +1 -1
package/dashboard/js/refresh.js
CHANGED
|
@@ -162,7 +162,8 @@ const RENDER_VERSIONS = {
|
|
|
162
162
|
// cache-bust entry exists so future tick-driven code (or feature-flag-aware
|
|
163
163
|
// renderers) can call `_changed('settings', …)` and bump on visual revamps.
|
|
164
164
|
// Bumped to 2 by W-mpmwxkcn000646cc (left-rail tabbed Settings layout).
|
|
165
|
-
|
|
165
|
+
// Bumped to 3 by W-mqk2s8q1 (Advanced → Diagnostics: relocated the diag button).
|
|
166
|
+
settings: 3,
|
|
166
167
|
};
|
|
167
168
|
const _sectionCache = {};
|
|
168
169
|
const _lastValueByKey = {};
|
|
@@ -1383,25 +1384,15 @@ switchPage(currentPage);
|
|
|
1383
1384
|
|
|
1384
1385
|
window.MinionsRefresh = { refresh };
|
|
1385
1386
|
|
|
1386
|
-
// ── Refresh-diagnostic
|
|
1387
|
-
//
|
|
1388
|
-
//
|
|
1389
|
-
//
|
|
1390
|
-
//
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
chip.type = 'button';
|
|
1396
|
-
chip.textContent = 'diag';
|
|
1397
|
-
chip.title = 'Open dashboard refresh diagnostics';
|
|
1398
|
-
// Bottom-LEFT (not right) to avoid overlapping the Command Center Send
|
|
1399
|
-
// button when the CC drawer is open (the drawer covers the right edge).
|
|
1400
|
-
chip.style.cssText = 'position:fixed;left:12px;bottom:12px;z-index:9999;background:var(--surface,#222);color:var(--muted,#aaa);border:1px solid var(--border,#444);border-radius:10px;padding:3px 8px;font-size:var(--text-sm);font-family:inherit;cursor:pointer;opacity:0.75';
|
|
1401
|
-
chip.addEventListener('click', _openRefreshDiagModal);
|
|
1402
|
-
document.body.appendChild(chip);
|
|
1403
|
-
} catch { /* DOM may not be ready in unusual test embeds */ }
|
|
1404
|
-
})();
|
|
1387
|
+
// ── Refresh-diagnostic modal (W-mphejzx100081972) ─────────────────────────
|
|
1388
|
+
// The modal renders a table view of the ring buffer plus a "send to engine"
|
|
1389
|
+
// button that POSTs the snapshot to /api/diagnostics/refresh. Previously
|
|
1390
|
+
// opened from a floating bottom-left "diag" chip injected into document.body;
|
|
1391
|
+
// relocated into Settings → Advanced → Diagnostics (W-mqk2s8q1) so it lives
|
|
1392
|
+
// alongside the other diagnostic/admin controls instead of overlaying every
|
|
1393
|
+
// page. Exposed on window so the Settings pane's inline handler (which runs
|
|
1394
|
+
// in global scope) can invoke it.
|
|
1395
|
+
try { window._openRefreshDiagModal = _openRefreshDiagModal; } catch { /* non-browser */ }
|
|
1405
1396
|
|
|
1406
1397
|
function _openRefreshDiagModal() {
|
|
1407
1398
|
// Remove any prior instance so re-clicks re-render against the latest buffer.
|
package/dashboard/js/settings.js
CHANGED
|
@@ -521,6 +521,15 @@ async function openSettings() {
|
|
|
521
521
|
settingsToggle('Allow Temp Agents', 'set-allowTempAgents', !!e.allowTempAgents, 'Spawn ephemeral agents when all permanent agents are busy') +
|
|
522
522
|
settingsToggle('Disable model discovery', 'set-disableModelDiscovery', !!e.disableModelDiscovery, 'Skip /api/runtimes/<name>/models REST calls fleet-wide. Settings UI falls back to free-text.') +
|
|
523
523
|
settingsToggle('QA: dual-write JSON sidecars', 'set-qaDualWriteJson', e.qaDualWriteJson !== false, 'Keep mirroring qa-runs.json and qa-sessions.json on every mutation alongside the SQLite source of truth. Default ON. Disable only once external tooling has been migrated off the JSON files — disabling drops the rollback path back to the JSON store.') +
|
|
524
|
+
'</div>' +
|
|
525
|
+
// W-mqk2s8q1 — dashboard refresh diagnostics, relocated here from the
|
|
526
|
+
// floating bottom-left "diag" chip so it sits alongside the other
|
|
527
|
+
// diagnostic/admin controls. Opens the same ring-buffer modal defined in
|
|
528
|
+
// refresh.js (exposed as window._openRefreshDiagModal).
|
|
529
|
+
'<h4>Diagnostics</h4>' +
|
|
530
|
+
'<div data-search="diagnostics refresh diag ring buffer status poll etag">' +
|
|
531
|
+
'<button type="button" class="btn-add" onclick="window._openRefreshDiagModal && window._openRefreshDiagModal()">Open Refresh Diagnostics</button>' +
|
|
532
|
+
'<div style="font-size:var(--text-xs);color:var(--muted);margin-top:4px">Inspect the dashboard\'s /api/status refresh ring buffer (response status, ETag hits, render timings, per-section change flags) and optionally send a snapshot to the engine.</div>' +
|
|
524
533
|
'</div>';
|
|
525
534
|
|
|
526
535
|
// Section registry — order is intentional (Runtime + Auto-fix surface first
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2227",
|
|
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"
|