2026-07-16 16:16:19 +00:00
|
|
|
import { Image } from "@opencode-ai/core/image"
|
|
|
|
|
import { Effect, Layer } from "effect"
|
|
|
|
|
|
2026-07-27 00:08:55 +00:00
|
|
|
/** Passthrough resizer for tests that build Tool.node without a Location. */
|
2026-07-16 16:16:19 +00:00
|
|
|
export const imagePassthrough = Layer.mock(Image.Service, {
|
|
|
|
|
normalize: (_resource, content) => Effect.succeed(content),
|
|
|
|
|
})
|