Repository navigation
legends-geogrid v0.3.2
legends-geogrid v0.3.2
Highlights
- Static Companion Shows a Real Street Map from
file://: A Companion opened straight from disk (python tools/study.py --open,cto-legends run legends-geogrid --open) now renders a real OpenFreeMap Dark street map on first load with zero keys and no server. The static runtime bundles MapLibre and starts its worker as a classic worker from a Blob URL (src/maplibre-worker-inline.js), so OpenFreeMap styles, tiles, glyphs and sprites load from the page'snullorigin. - No More "Access Blocked" Tiles: A
file://page sends no Referer, so it no longer requeststile.openstreetmap.organd lists only working OpenFreeMap backgrounds instead of disabled "(HTTP server only)" entries. - OpenFreeMap Dark Everywhere: OpenFreeMap Dark is now the default background over HTTP as well. OpenStreetMap stays selectable there and remains the rescue background. Without WebGL the map fails fast to its neutral dark background with every ranking overlay intact.
- Background Tab Safe Map Deadlines (
src/visible-timeout.js): Map load deadlines count only while the page is visible, so a Companion opened behind another tab no longer reports a healthy basemap as "Map loading timed out". - Hardened Basemap Switching: In-flight loads are cancelled on supersede and unload, Worker support is probed up front, and switch completion is guarded after destroy and for detached pending layers.
- Hermetic Regression Coverage: New Playwright test (
tests/test_companion_file_origin.py) opens the built Companion viafile://with the network mocked, plus visibility timer unit tests driven by mock timers so they hold on coarse Windows timer granularity.
Verification
- CI on
0c4dfc8: 6/6 jobs green (Ubuntu, macOS, Windows on Python 3.11 and 3.12) python -m pytest -W error: 444 passed, 1 skippednode --test: 235 passed, 6 skippedpython scripts/check_release.py: PASS (0issues)- Release bundle built deterministically from the tagged commit (
git archive+ gzipmtime=0) and verified byte-identical across two independent builds
Install or Upgrade
cto-legends install legends-geogrid --apply
cto-legends handoff legends-geogridOr run the zero-cost South Philadelphia starter study directly:
python tools/study.py --openChecksums
See attached SHA256SUMS.txt for SHA-256 verification of the release archives.