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

main
ts 19 lines 605 Bytes
Raw
1 import * as cloudbuild from "@distilled.cloud/gcp/cloudbuild_v2";
2 import * as Layer from "effect/Layer";
3 import { makeRepositoryHttpBinding } from "./BindingHttp.ts";
4 import { FetchGitRefs } from "./FetchGitRefs.ts";
5
6 /**
7 * HTTP implementation of {@link FetchGitRefs}.
8 *
9 * @layer
10 * @provides GCP.CloudBuild.FetchGitRefs
11 */
12 export const FetchGitRefsHttp = Layer.effect(
13 FetchGitRefs,
14 makeRepositoryHttpBinding({
15 tag: "GCP.CloudBuild.FetchGitRefs",
16 iam: { role: "roles/cloudbuild.connectionViewer" },
17 operation: cloudbuild.fetchGitRefsProjectsLocationsConnectionsRepositories,
18 }),
19 );