Commit Graph

14 Commits

Author SHA1 Message Date
0eb404d8f7 feat: solve direct edit constraints 2026-08-27 12:36:35 +08:00
ab63d23896 feat: generate direct edit handle manifest 2026-08-27 12:18:11 +08:00
3297d0c97a feat: insert direct edit constraint solver stage
Adds resolveDirectEditConstraints between compileRoadModel and
compileGeometry, per the parent design's data flow. The stage is an
identity transform until the individual constraint kinds land: it
returns empty road profiles, junction plans and handle manifest, so
compileGeometry's geometry code is untouched and output stays
byte-identical.

Constraint planning is separated from solving up front. Only `exact`
and `recheck` constraints may reach the solver; `disabled`,
`pending`, `conflicted` and `stale` are reported as unapplied with a
reason. SOLVED_KINDS starts empty and grows one entry per kind, so a
partially delivered solver reports what it skipped instead of
publishing half-solved geometry.

diagnostic() moves to src/compile/diagnostics.js so the solver can
share the compiler's diagnostic shape without depending on fs, which
would break the pure-function boundary that lets preview, the full
compile and the CLI export share one implementation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 10:29:45 +08:00
ba8eaba9d9 feat: compile revisions from area config snapshots 2026-08-26 18:08:55 +08:00
c0c8a16dd4 feat: add immutable road revision storage 2026-08-26 17:54:38 +08:00
35002371ae feat: add native road edits document validation 2026-08-26 17:46:02 +08:00
3ddb33e321 feat: migrate workbench to React 2026-08-26 15:01:07 +08:00
81e02c670d feat: export portable native road packages 2026-08-26 11:59:48 +08:00
82afafa294 feat: publish native road layer manifest 2026-08-26 09:53:21 +08:00
90400d967f test: add standalone area fixtures 2026-08-26 09:13:44 +08:00
8e79790261 feat: make road compiler standalone 2026-08-25 17:53:49 +08:00
aadd45bcad test: make road compiler fixtures self contained 2026-08-25 17:27:19 +08:00
b7a27b96cb refactor: move native road checks into package 2026-08-25 17:15:15 +08:00
eb859c40d5 refactor: move road compiler core into package 2026-08-25 17:12:58 +08:00