Andrey Antukh 29345fd381 ♻️ Replace format string with version integer in library export API
Use version (1 for legacy, 2 for compact) instead of format strings
("compact" / "legacy") throughout the export pipeline. Matches the
backend pattern where version alone determines format behavior. Added
validation that rejects invalid versions with a clear error.

AI-assisted-by: deepseek-v4-pro
2026-07-31 13:28:22 +02:00
..