feat: make road compiler standalone

This commit is contained in:
2026-08-25 17:53:49 +08:00
parent aadd45bcad
commit 8e79790261
8 changed files with 588 additions and 2 deletions

11
README.md Normal file
View File

@@ -0,0 +1,11 @@
# Road Compiler
Compiles a `native-road-package/v1` `RoadCompilerInput` JSON file into native-road GeoJSON, diagnostics, traffic-signal runtime assets, and a deterministic completion marker.
```bash
npx road-compiler --input /absolute/path/road-compiler.input.json
```
The compiler does not read host area configuration. The caller owns configuration normalization and creates the input JSON. Successful compilation writes exactly one `NATIVE_ROAD_COMPILE_DONE` JSON marker to stdout.
Run `npm test` and `npm run test:road-parity` after `npm ci` to validate the package without the host repository.