Files
deepseek-harness/packages/ssh/fs-ssh/src
MicroBlock f187020531 fs: write exact bytes, and stage an attached IM file with them
The filesystem seam could read bytes but never write them: writeText stores UTF-8 text only, so a consumer holding content it already had - a downloaded attachment - had no way to materialize it inside the execution world.

writeBytes stores the bytes as given through the same atomic staging file and optional intent guard as writeText, and reports the produced version and byte count with no diff basis. fs-local implements it, fs-sandbox fences it with the per-call policy, and fs-ssh carries it to the helper as base64 under that helper's single-frame budget.

im_read_file uses it: a media label resolves to a stored verbatim attachment and the tool stages the bytes at tools.fileDir under the session's working directory, returning a path the model's own file tools can open - including on a remote execution filesystem, where the attachment store's host path is unreachable.
2026-11-03 14:26:15 +08:00
..