refactor(core): rename attachments config to media (#39927)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-31 13:26:53 -05:00 committed by GitHub
commit e60e8d9387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 23 additions and 23 deletions

View file

@ -61,7 +61,7 @@ const layer = Layer.effect(
const image = Object.assign(
{},
...(yield* config.entries()).flatMap((entry) =>
entry.type === "document" && entry.info.attachments?.image ? [entry.info.attachments.image] : [],
entry.type === "document" && entry.info.media?.image ? [entry.info.media.image] : [],
),
)
const normalize = yield* loadAdapter