mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
716a9375f removed collision-data.json from tracking and gitignored it as
"regenerable", but sdk/pathfinding.ts imports it statically -- so a fresh
clone hard-failed on import with no way to know why. Nothing fetched it.
Re-track it. The anti-bloat rationale was already sunk cost: that commit
never rewrote history, so all 12 prior collision-data blobs remain reachable
and every clone already pays for them. One more version costs ~3.4MB packed
(23MB raw, but it's highly repetitive), against a 259MB .git.
Add sdk/fetch-collision-data.ts to regenerate it from a running server,
replacing the bare curl in DEVELOPERS.md -- it buffers before writing so an
interrupted download can't leave a truncated file that breaks the import,
and needs --force to clobber. The committed copy is a fresh export: 123,648
zones (= 483 mapsquares, full coverage), 1,068,791 tiles, 2,603 doors.
Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
385 B
JSON
20 lines
385 B
JSON
{
|
|
"name": "server",
|
|
"private": true,
|
|
"scripts": {
|
|
"fetch-collision-data": "bun sdk/fetch-collision-data.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"puppeteer": "^24.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"dependencies": {
|
|
"@inquirer/prompts": "^7.5.3",
|
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
"open": "^11.0.0"
|
|
}
|
|
}
|