The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Layer from "effect/Layer"; |
| 2 | import { storageHttpLayer } from "./StorageBinding.ts"; |
| 3 | import { makeWriteObjectHttp } from "./StorageObjectBinding.ts"; |
| 4 | import { WriteObject } from "./WriteObject.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Typed object writes using injected or automatically scoped credentials. |
| 8 | * |
| 9 | * @layer |
| 10 | * @product Bucket |
| 11 | * @provides WriteObject |
| 12 | */ |
| 13 | export const WriteObjectHttp = Layer.effect(WriteObject, makeWriteObjectHttp()).pipe( |
| 14 | Layer.provide(storageHttpLayer), |
| 15 | ); |