@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 19 lines 529 Bytes
Raw
1 import * as datastore from "@distilled.cloud/gcp/datastore_v1";
2 import * as Layer from "effect/Layer";
3 import { makeDatastoreHttpBinding } from "./BindingHttp.ts";
4 import { Commit } from "./Commit.ts";
5
6 /**
7 * HTTP implementation of {@link Commit}.
8 *
9 * @layer
10 * @provides GCP.Datastore.Commit
11 */
12 export const CommitHttp = Layer.effect(
13 Commit,
14 makeDatastoreHttpBinding({
15 tag: "GCP.Datastore.Commit",
16 iam: { role: "roles/datastore.user", scopeByCondition: true },
17 operation: datastore.commitProjects,
18 }),
19 );