deepseek-harness/packages/attachment
creatixchu 83a526eea1 feat(attachment-local): store a deterministic canonical image encoding
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.
2026-08-21 15:01:45 +08:00
..
attachment refactor(attachment): saveImage returns the canonical ref beside source facts 2026-08-21 15:01:45 +08:00
attachment-local feat(attachment-local): store a deterministic canonical image encoding 2026-08-21 15:01:45 +08:00
README.i18n.yaml docs(i18n): include complete proofreading corpus 2026-08-12 12:30:19 +08:00
README.md Merge remote-tracking branch 'origin/master' into worktree/web-multimodal-image-input 2026-07-27 12:27:30 +08:00
README.zh.md docs(i18n): include complete proofreading corpus 2026-08-12 12:30:19 +08:00

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.