feat: better image handling (auto resize & max size constraints) (#26401)

This commit is contained in:
Aiden Cline 2026-05-10 01:48:19 -05:00 committed by GitHub
commit 85ce6a5f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 417 additions and 34 deletions

View file

@ -9,6 +9,7 @@
### General Principles
- Keep things in one function unless composable or reusable
- Do not extract single-use helpers preemptively. Inline the logic at the call site unless the helper is reused, hides a genuinely complex boundary, or has a clear independent name that improves the caller.
- Avoid `try`/`catch` where possible
- Avoid using the `any` type
- Use Bun APIs when possible, like `Bun.file()`