Commits 9feacd3, 38a20e0.
chunkedNormalizeJson.ts) so large statement dumps don't blow context windows or rate limits.importImageDownscale.ts) — keeps token cost predictable.importNormalizeLlmCache.ts) — re-running the same import is free and instant.ecf3bf2 shortly after).Naive single-shot normalization broke on real-world bank exports (months of data, large attachments). Chunking + caching + downscale turn the import flow from "fragile and expensive" into "boring and cheap."
src/lib/imports/ — chunkedNormalizeJson.ts, importImageDownscale.ts, importNormalizeLlmCache.ts, importJsonChunkPlanner.ts (+ matching .test.ts files)