14 Commits

Author SHA1 Message Date
Benjamin Oezcan
90f1c9c37e build(deploy): ship tools/ so the test bot can run on the server 2026-11-19 15:14:56 +01:00
Benjamin Oezcan
a8d6158384 feat(tools): dumb test bot that accepts challenges and drives a pattern (npm run bot) (P4-1) 2026-11-19 14:26:50 +01:00
Benjamin Oezcan
593d69714b feat(net): server measures every player's ping and its own step cost, sent with each snapshot
Also fixes the ping message schema (it checked the field t, which is the message type).
2026-11-19 14:25:46 +01:00
Benjamin Oezcan
3dc770e34a fix(server): tokens of deleted accounts are refused; a failing message or fight can no longer crash the server
After a database reset an old (still signed) token made economy.load insert a save for a missing user;
the FOREIGN KEY error escaped the WebSocket handler and took the process down in a restart loop.
2026-11-19 10:02:51 +01:00
Benjamin Oezcan
0ffa221e82 feat(server): DELETE /api/me deletes your account; smoke test cleans up after itself 2026-11-19 09:59:19 +01:00
Benjamin Oezcan
101dd7c44b build(deploy): release-based deploy with health check and rollback, node 24, service user (P3-1b, P3-2, P3-3) 2026-11-19 02:12:53 +01:00
Benjamin Oezcan
b587d12f37 refactor!: remove firebase leftovers, admin page on the server (P1-8)
BREAKING CHANGE: admin/cleanup.js, admin/setcoins.js and docs/firebase are gone; the admin page now runs at /admin/.
2026-11-19 02:11:13 +01:00
Benjamin Oezcan
0202a08b8d feat(server): achievements pay out server-side, snapshots carry opponent connection state 2026-11-19 02:09:12 +01:00
Benjamin Oezcan
dca1032ac4 feat(server)!: websocket lobby, server-run matches, server economy, new schema (P1-2, P1-4, P2-1, P2-1b, P2-5)
Replaces the Firebase-style /db facade (rtdb, rules, nodes tree) with explicit REST endpoints and a
WebSocket hub. Login by name or optional e-mail, seed accounts via npm run db:reset.

BREAKING CHANGE: old clients (lobby/netfight over /db) no longer work against this server; database is new.
2026-11-19 01:52:30 +01:00
Benjamin Oezcan
9012bee29f feat(server): server-side match room runs the fight (P1-3) 2026-11-19 01:46:17 +01:00
Benjamin Oezcan
1156bc68eb chore: add eslint, remove dead variables, pin line endings (P0-4) 2026-11-19 01:41:27 +01:00
Benjamin Oezcan
fa68ef620d feat(server): healthz, testable app, local dev script (P0-3) 2026-11-19 01:40:31 +01:00
347701d66f onlinemodus fix failed 2026-11-19 00:55:39 +01:00
64c5b65543 big update 2026-11-18 15:18:38 +01:00