Slice a PNG/WebP map into the gate's <x>_<y>.png tree under <state>/tiles/<scene>/v<art_version>/ and update the one scene row (w, h, tile_size, art_version); a re-import grows art_version so clients never serve stale tiles. The state-dir lock keeps a running server out (it loads the scene at startup), so stop/import/restart. Decoding is ImageMagick from the root devbox with a disk-backed pixel cache (-limit memory/map), keeping a 16384 px source memory-sane; no Nim/npm image dependency and the FIXED stack is unchanged. The black-box harness covers the tile geometry, scene row, restart pickup through the gate, re-import bump and every refused-import case. Records the M6 -> M4 move in DESIGN 3.3/11.1/13 and DESIGN-history, and documents the CLI plus the 16384 px/50-token recipe in README.
51 lines
1.3 KiB
JSON
51 lines
1.3 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",
|
|
"imagemagick": "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"
|
|
],
|
|
"fogbench": [
|
|
"mkdir -p results; nim c -d:release --hints:off -o:run/test/fogbench tools/fogbench.nim > results/m4-fog-bench.log 2>&1 && ./run/test/fogbench >> results/m4-fog-bench.log 2>&1; rc=$?; cat results/m4-fog-bench.log; exit $rc"
|
|
]
|
|
}
|
|
},
|
|
"env": {
|
|
"NIMBLE_DIR": "$DEVBOX_PROJECT_ROOT/.devbox/nimble",
|
|
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"
|
|
}
|
|
}
|