pr_01m47d24b0e6n91zwymwxg0vpx/apps/web/app/lib/services.server.ts

28 lines913 bytesCodeBlame
1import { env } from "cloudflare:workers";
2
3import {
4 actionsClient,
5 agentsClient,
6 billingClient,
7 deploymentsClient,
8 projectsClient,
9 eventsClient,
10 identityClient,
11 integrationsClient,
12 reposClient,
13 webhooksClient,
14 workClient,
15} from "@g1t/contracts";
16
17export const identity = identityClient(env.IDENTITY);
18export const repos = reposClient(env.REPOS);
19export const work = workClient(env.WORK);
20export const billing = billingClient(env.BILLING);
21export const events = eventsClient(env.EVENTS);
22export const integrations = integrationsClient(env.INTEGRATIONS);
23export const webhooks = webhooksClient(env.WEBHOOKS);
24export const actions = actionsClient(env.ACTIONS);
25export const deployments = deploymentsClient(env.DEPLOYMENTS);
26export const projects = projectsClient(env.PROJECTS);
27/** Agent runs, sessions and memory: methods of the work service. */
28export const agents = agentsClient(env.WORK);