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

main
ts 17 lines 689 Bytes
Raw
1 import * as b2bi from "@distilled.cloud/aws/b2bi";
2 import * as Layer from "effect/Layer";
3 import { makeB2biAccountHttpBinding } from "./BindingHttp.ts";
4 import { TestParsing } from "./TestParsing.ts";
5
6 export const TestParsingHttp = Layer.effect(
7 TestParsing,
8 makeB2biAccountHttpBinding({
9 tag: "AWS.B2BI.TestParsing",
10 operation: b2bi.testParsing,
11 // B2BI reads `inputFile` through the caller's session (verified live:
12 // "Access denied when getting object attributes from s3://…" without
13 // the S3 grants), so the documented companion permissions are granted
14 // alongside.
15 actions: ["b2bi:TestParsing", "s3:GetObject", "s3:GetObjectAttributes"],
16 }),
17 );