@miller-tech/uap 1.109.1 → 1.110.0
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/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +2 -1
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/dashboard.d.ts +1 -0
- package/dist/cli/dashboard.d.ts.map +1 -1
- package/dist/cli/dashboard.js +4 -1
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/dashboard/savings.d.ts.map +1 -1
- package/dist/dashboard/savings.js +13 -0
- package/dist/dashboard/savings.js.map +1 -1
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +25 -4
- package/dist/dashboard/server.js.map +1 -1
- package/package.json +1 -1
- package/src/policies/enforcers/__pycache__/_common.cpython-312.pyc +0 -0
- package/tools/agents/scripts/__pycache__/toolcall_path_normalizer.cpython-312.pyc +0 -0
- package/web/dashboard.html +10 -0
package/web/dashboard.html
CHANGED
|
@@ -685,6 +685,16 @@
|
|
|
685
685
|
renderLiveEvents();
|
|
686
686
|
} catch {}
|
|
687
687
|
};
|
|
688
|
+
// Full live snapshot (cross-process) — used when the WebSocket is down so
|
|
689
|
+
// SSE alone keeps the dashboard live rather than falling to slow polling. (C)
|
|
690
|
+
eventSource.addEventListener('snapshot', (e) => {
|
|
691
|
+
if (ws && ws.readyState === WebSocket.OPEN) return;
|
|
692
|
+
try {
|
|
693
|
+
render(JSON.parse(e.data));
|
|
694
|
+
document.getElementById('ws-status').className = 'status-dot connected';
|
|
695
|
+
document.getElementById('refresh-info').textContent = 'Live (SSE) - ' + new Date().toLocaleTimeString();
|
|
696
|
+
} catch {}
|
|
697
|
+
});
|
|
688
698
|
eventSource.onerror = () => { eventSource.close(); setTimeout(connectSSE, 5000); };
|
|
689
699
|
} catch {}
|
|
690
700
|
}
|