What is this about?
Problem
trimTextForApi() caps OCR text at 14,000 chars before sending to AI providers. No tests verify this behavior.
Where to look
ai/text.js — trimTextForApi, MAX_API_TEXT_CHARS
- New file:
scripts/test-text.mjs
- Wire into
npm test (see related markdown test issue)
Acceptance criteria
Skills needed
Basic Node assertions — pair nicely with the markdown test issue.
What is this about?
Problem
trimTextForApi()caps OCR text at 14,000 chars before sending to AI providers. No tests verify this behavior.Where to look
ai/text.js—trimTextForApi,MAX_API_TEXT_CHARSscripts/test-text.mjsnpm test(see related markdown test issue)Acceptance criteria
[truncated to save tokens]Skills needed
Basic Node assertions — pair nicely with the markdown test issue.