iconsulting/packages/services/file-service
hailin 5076e16cc7 feat: add document support for Claude + image thumbnail generation
1. Coordinator now sends all attachment types to Claude:
   - Images → native image blocks (existing)
   - PDF → native document blocks (Claude PDF support)
   - Text files (txt, csv, json, md) → text blocks with filename
   Extracted common buildAttachmentBlocks() helper.

2. File-service generates thumbnails on image upload:
   - Uses sharp to resize to 400x400 max (inside fit, no upscale)
   - Output as WebP at 80% quality for smaller file size
   - Stored in MinIO under thumbnails/ prefix
   - Generated for both direct upload and presigned URL confirm
   - Non-blocking: thumbnail failure doesn't break upload

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 04:31:53 -08:00
..
src feat: add document support for Claude + image thumbnail generation 2026-02-07 04:31:53 -08:00
Dockerfile fix(docker): fix vips package for Alpine 3.23 in file-service 2026-01-26 03:47:56 -08:00
nest-cli.json feat(multimodal): add file upload and image support for chat 2026-01-10 05:34:41 -08:00
package.json feat(multimodal): add file upload and image support for chat 2026-01-10 05:34:41 -08:00
tsconfig.json feat(multimodal): add file upload and image support for chat 2026-01-10 05:34:41 -08:00