Commit Graph
5 Commits
Author SHA1 Message Date
Anas Syed 867a13cf22 feat: add option to fetch from a link
Clean raw HTML to JSON  to pass to an LLM
2026-01-23 18:22:37 +00:00
Anas Syed 0aed4e06a2 remove validateAndRepairJson function and tests 2026-01-22 20:32:13 +00:00
Anas Syed 263ff8adcc fix CUID2 test
Added missing mock for validateAndRepairJson to prevent validation from blocking tests
2026-01-22 20:28:42 +00:00
Anas Syed a0401bc38c use @paralleldrive/cuid2 2026-01-22 20:17:10 +00:00
Anas Syed 322feb8b67 Fix PDF generation failures from malformed AI responses
- Add OpenRouter response-healing plugin to auto-fix malformed JSON
- Add stream: false to all OpenRouter API calls (required for plugin)
- Add Zod schema validation before PDF generation with AI repair fallback
- Fix CUID2 ID generation for skills (was generating invalid "skill-0")
- Update idSchema to validate CUID2 format matching RXResume's validation
- Save failed JSON and screenshots to data/errors/ for debugging
- Add tests for CUID2 validation to prevent regression
2026-01-22 20:07:50 +00:00