Admission now validates a wide source envelope (32MiB, 100MP, 16384px per side) and persists a canonical encoding instead of refusing large sources: EXIF orientation baked in, metadata stripped, long edge downscaled to the configured canonical target (default 2048px), PNG palette for alpha/PNG/GIF sources and a fixed JPEG quality ladder (85/75/60/45) until the canonical byte target holds (default 1MiB). In-budget PNG/JPEG/WebP passes through byte-identically so equal sources keep deduplicating to the same content address; GIF always re-encodes to the PNG of its first frame, pinning the first-frame meaning providers apply. Encoder parameters are fixed by design; only the canonical budget is deployment configuration. |
||
|---|---|---|
| .. | ||
| attachment | ||
| attachment-local | ||
| README.i18n.yaml | ||
| README.md | ||
| README.zh.md | ||
attachment/ - durable attachment capability family
English | 中文
The durable binary attachment seam and its local filesystem implementation. Both are product packages.
| Package | Role | ctx key |
|---|---|---|
attachment/ |
Immutable attachment references, image limits, and storage service | ctx.attachments |
attachment-local/ |
Content-addressed private storage below DSH_HOME |
(registers on ctx.attachments) |
Unsent browser drafts are intentionally outside this capability. Bytes enter durable storage only when a user prompt is submitted or when a provider adapter commits structured model output.