opencode/packages/schema
Kit Langton 8aea935131 feat: serve stored media as refs to clients that opt into experimental-media-uri
Clients that send X-OpenCode-Capabilities: experimental-media-uri get user
files and tool results stored in blob as media:<hash> refs with their size
and dimensions instead of inline base64, from session.messages,
session.message and session.inbox.list, when experimental.media_blob is on
in the session's own location (the config its media was written under).
Refs whose blob is gone become the same unavailable placeholder inline
readers get. Every other reader, the runner and export stay inline.

GET /api/experimental/media/:hash serves one blob that a stored message or
inbox item still references, with an immutable ETag, 304 support, nosniff
and a sandbox CSP; anything but a raster image is sent as an
application/octet-stream attachment. session.prompt accepts a referenced
media:<hash> ref as an attachment URI and re-admits its stored bytes as is.
2026-10-25 16:37:38 -07:00
..
script chore: use bun check for local typechecks and TypeScript 7.1 in CI (#58253) 2026-10-23 09:23:31 +10:00
src feat: serve stored media as refs to clients that opt into experimental-media-uri 2026-10-25 16:37:38 -07:00
test feat(core): typed free-limit error with reset time (#57146) 2026-10-20 15:10:35 -07:00
AGENTS.md docs: trim agent instructions (#54678) 2026-10-11 22:32:18 -05:00
package.json sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
sst-env.d.ts zen: migrate to new inference 2026-06-24 11:15:42 -04:00
tsconfig.build.json feat(schema): publish package 2026-07-01 13:33:59 -04:00
tsconfig.json chore: upgrade typecheck to TypeScript 7.0.2 (#56300) 2026-10-17 13:26:46 -07:00