feat(core): normalize tool and attachment images at settlement (#37141)

This commit is contained in:
Aiden Cline
2026-07-16 11:16:19 -05:00
committed by GitHub
parent 60c7f847c1
commit 2ad6c42143
12 changed files with 262 additions and 47 deletions
+7
View File
@@ -0,0 +1,7 @@
import { Image } from "@opencode-ai/core/image"
import { Effect, Layer } from "effect"
/** Passthrough resizer for tests that build ToolRegistry.node without a Location. */
export const imagePassthrough = Layer.mock(Image.Service, {
normalize: (_resource, content) => Effect.succeed(content),
})