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

39 lines1,404 bytesCodeBlame
1import { env } from "cloudflare:workers";
2
3import {
4 actionsClient,
5 agentsClient,
6 billingClient,
7 contextClient,
8 deploymentsClient,
9 memoryReviewClient,
10 projectsClient,
11 eventsClient,
12 guardrailsClient,
13 identityClient,
14 integrationsClient,
15 reposClient,
16 securityClient,
17 webhooksClient,
18 workClient,
19} from "@g1t/contracts";
20
21export const identity = identityClient(env.IDENTITY);
22export const repos = reposClient(env.REPOS);
23export const work = workClient(env.WORK);
24export const billing = billingClient(env.BILLING);
25export const events = eventsClient(env.EVENTS);
26export const integrations = integrationsClient(env.INTEGRATIONS);
27export const webhooks = webhooksClient(env.WEBHOOKS);
28export const actions = actionsClient(env.ACTIONS);
29export const deployments = deploymentsClient(env.DEPLOYMENTS);
30export const projects = projectsClient(env.PROJECTS);
31export const security = securityClient(env.SECURITY);
32/** Agent runs, sessions and memory: methods of the work service. */
33export const agents = agentsClient(env.WORK);
34/** What agents may do in a sandbox: methods of the work service. */
35export const guardrails = guardrailsClient(env.WORK);
36/** The context hub: catalog, search and scorecards. */
37export const context = contextClient(env.CONTEXT);
38/** Memory candidates and their review: methods of the work service. */
39export const memoryReview = memoryReviewClient(env.WORK);