@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 20 lines 538 Bytes
Raw
1 import * as S3 from "@distilled.cloud/aws/s3";
2 import * as Layer from "effect/Layer";
3 import { makeTigrisS3Binding } from "./BucketBinding.ts";
4 import { GetObject } from "./GetObject.ts";
5
6 /**
7 * HTTP implementation of {@link GetObject}. Calls distilled S3
8 * `getObject` against the Tigris endpoint with the bucket's credentials.
9 *
10 * @layer
11 * @product Bucket
12 * @provides Fly.GetObject
13 */
14 export const GetObjectHttp = Layer.effect(
15 GetObject,
16 makeTigrisS3Binding({
17 tag: "Fly.GetObject",
18 operation: S3.getObject,
19 }),
20 );