Files
deepseek-harness/packages/attachment
creatixchu ba30b73f7b refactor(attachment): 求解器留在 llm-deepseek,存储层只接收目标尺寸
ImageRequestPolicy 改为 ImageRequestTarget,只含目标宽、高和字节目标;dsh-attachment 删除 token-grid 投影联合和 tokenGridProjection,只保留提供方无关的 requestImageDimensions 与 longEdgeDimensions。v41 求解器回到 llm-deepseek 的 image-tokens.ts,新增 deepSeekRequestImageDimensions,resolveRequestImageTarget 为每张图算出目标并加 4096 单边上限;pi-ai 路由按自身像素预算推导目标。

按 review 意见修正:v41 计价 Note 里已删除常量的过期句子就地改写;ProjectedDimensions 登记到 attachment 子系统页与 type-equiv 清单;Note 区分发送尺寸与提供方补齐后的网格;短边取整的措辞改为「按路由预测」。
2026-09-10 16:46:28 +08:00
..
…

description, kind
description kind
Package map for the durable image attachment capability family: what you can do with image attachments, and where your images are stored. package-group

attachment/ — durable attachment capability family

English | 中文

Summary

The attachment/ group provides durable image attachments: attach images to prompts and commands, and the harness saves them on your machine, shows them again in conversation history, and sends them to the model in later turns. The shipped dsh composition enables this with no setup. The capability and its storage are split across two packages, described below. Stored images survive restarts and are never deleted automatically, and only raster image formats are supported.

Table of Contents


Packages

These two packages provide durable image attachments; each README describes what you can do with its part.

Package Role ctx key
attachment/ Image attachments for prompts and commands that persist and come back in history ctx.attachments
attachment-local/ Stores your attached images on this machine below DSH_HOME registers on ctx.attachments

Start with the subsystem reference for the service contract, then the capability-seam table and the configuration surface of the local backend.

Dev Note

Working context for maintainers — click to expand

None.