mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
The RTK R5 grouping strategy (collapse near-equivalent consecutive lines) is read by the engine (config.enableGrouping / groupingThreshold) but was unreachable in production: the rtkConfigSchema (.strict()) rejected the two fields on write and normalizeRtkConfig dropped them on read, so they could never be anything but undefined. Add enableGrouping (bool) + groupingThreshold (int, 2..100, default 3) to DEFAULT_RTK_CONFIG, normalizeRtkConfig, and rtkConfigSchema so the feature is actually settable and survives the DB round-trip. Default stays OFF — no behavior change for existing configs. Part of the compression "100% functional" program (audit follow-up).