Files
FFF_vtt_frozen/devbox.json
T
SirStone 3c0258ea31 feat: client shell, sign-in and protocol client (#67)
New `client/` package (Vite + TypeScript + PixiJS v8, plain DOM overlay):
the pure reducer seam (no Pixi import), an append-only slice registry
build-time glob, the `proto` 2 WS client with envelope/ack/closing mapping,
the sign-in door (`POST /join`, one "Key not recognised." for wrong and
unknown), the DOM shell/HUD and a minimal Pixi stage created only after a
live `hello`. `hello` resets every slice so a reconnect cannot show stale
state; `proto-mismatch` shows reload; `revoked` returns to the sign-in page
and stops.

The browser e2e moves into the client package (`client/e2e/`, owning
playwright-core) and runs the real Vite build through the TLS/HTTP2 test
nginx: join -> canvas -> hello/roster for GM and player, no data before
join, identical wrong/unknown key refusal, proto mismatch, revoked.
`devbox run client-test` adds the Vitest seam; `devbox run e2e` builds the
client first. The #66 stub dist stays local to `tools/vhost.test.mjs`, so
`devbox run test` still needs no npm install.

Refs #67
2026-11-20 23:57:16 +01:00

47 lines
1.0 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.2/.schema/devbox.schema.json",
"packages": {
"nim": "2",
"nimble": "latest",
"coreutils": "latest",
"gnused": "latest",
"diffutils": "latest",
"gnugrep": "latest",
"nodejs": "26",
"sqlite": {
"version": "latest",
"outputs": [
"out",
"bin"
]
},
"nginx": "latest",
"openssl": "latest",
"chromium": "latest"
},
"shell": {
"init_hook": [],
"scripts": {
"test": [
"tools/test.sh"
],
"e2e": [
"client/e2e/run.sh"
],
"client-test": [
"client/run-tests.sh"
],
"mutation": [
"tools/mutation.sh"
],
"bench": [
"mkdir -p results; nim c -d:release --hints:off -r tools/bench.nim > results/bench.log 2>&1; rc=$?; cat results/bench.log; exit $rc"
]
}
},
"env": {
"NIMBLE_DIR": "$DEVBOX_PROJECT_ROOT/.devbox/nimble",
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"
}
}