feat: add live replays and PostgreSQL maintenance tools
Build and Push Docker Container / build-and-push (push) Successful in 7m53s

- Stream compact live replay updates across local and clustered dashboards.
- Render responsive snake bodies as SVG paths with aligned custom icons.
- Add cache-busted assets, replay fallback routes, and live-follow playback.
- Support PostgreSQL benchmark sampling and idempotent SQLite migration.
- Add dry-run cleanup for old low-quality PostgreSQL replay payloads.
- Reward safe perimeter lanes and bump Prism to version 1.5.0.
- Add backend, migration, dashboard, and perimeter regression coverage.
This commit is contained in:
2026-08-02 00:50:46 +02:00
parent 9b99b526e4
commit f14d780f29
29 changed files with 1574 additions and 310 deletions
+7 -1
View File
@@ -1,11 +1,12 @@
class DashboardWebSocket {
constructor({ onGamesUpdate, onShutdown } = {}) {
constructor({ onGamesUpdate, onReplayUpdate, onShutdown } = {}) {
this._socket = null;
this._reconnectTimer = null;
this._shuttingDown = false;
this._pendingRequests = new Map();
this._requestSeq = 0;
this._onGamesUpdate = onGamesUpdate || (() => {});
this._onReplayUpdate = onReplayUpdate || (() => {});
this._onShutdown = onShutdown || (() => {});
}
@@ -58,6 +59,11 @@ class DashboardWebSocket {
return;
}
if (payload.type === "dashboard_game_replay_update") {
this._onReplayUpdate(payload);
return;
}
if (payload.type === "dashboard_games_update") {
this._onGamesUpdate(payload);
}