@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 21 lines 622 Bytes
Raw
1 import * as Layer from "effect/Layer";
2 import {
3 makeVectorsHttpBinding,
4 makeWriteVectorsClient,
5 writeVectorsActions,
6 } from "./BindingHttp.ts";
7 import { VectorsWrite } from "./VectorsWrite.ts";
8
9 /**
10 * HTTP implementation of {@link VectorsWrite} — calls the S3 Vectors data
11 * plane with the host Function's own credentials, granting only the write
12 * actions (`PutVectors`, `DeleteVectors`) on the bound index.
13 */
14 export const VectorsWriteHttp = Layer.effect(
15 VectorsWrite,
16 makeVectorsHttpBinding({
17 name: "VectorsWrite",
18 actions: writeVectorsActions,
19 makeClient: makeWriteVectorsClient,
20 }),
21 );