@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, 06:00 UTC

main
ts 21 lines 625 Bytes
Raw
1 import * as Layer from "effect/Layer";
2 import {
3 makeReadVectorsClient,
4 makeVectorsHttpBinding,
5 readVectorsActions,
6 } from "./BindingHttp.ts";
7 import { VectorsRead } from "./VectorsRead.ts";
8
9 /**
10 * HTTP implementation of {@link VectorsRead} — calls the S3 Vectors data
11 * plane with the host Function's own credentials, granting only the read
12 * actions (`QueryVectors`, `GetVectors`, `ListVectors`) on the bound index.
13 */
14 export const VectorsReadHttp = Layer.effect(
15 VectorsRead,
16 makeVectorsHttpBinding({
17 name: "VectorsRead",
18 actions: readVectorsActions,
19 makeClient: makeReadVectorsClient,
20 }),
21 );