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

65 lines2,517 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

API and MCP server, Rust identity service, registration, site redesign1import { env } from "cloudflare:workers";
2
Integrations: your own model provider, alerts that open issues, tickets agents read3import {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look4 accountsClient,
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs5 actionsClient,
Agents and memory, checks and conflicts, profiles, slug renames, custom domains6 agentsClient,
Integrations: your own model provider, alerts that open issues, tickets agents read7 billingClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API8 contextClient,
Deployments: a preview for every pull request, production on g1t.page9 deploymentsClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API10 memoryReviewClient,
Projects: what a workspace builds and runs, first on every page11 projectsClient,
Integrations: your own model provider, alerts that open issues, tickets agents read12 eventsClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API13 guardrailsClient,
Integrations: your own model provider, alerts that open issues, tickets agents read14 identityClient,
15 integrationsClient,
16 reposClient,
Search across all of g1t, Explore, and a command palette17 searchClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API18 securityClient,
Webhooks: every event, to your own addresses, signed and retried19 webhooksClient,
Integrations: your own model provider, alerts that open issues, tickets agents read20 workClient,
21} from "@g1t/contracts";
API and MCP server, Rust identity service, registration, site redesign22
Fast pages, required checks on the branch, self-hosted runners, honest incidents23import { instrumented } from "./perf.server";
24
25/**
26 * Each binding the clients use, timed for `Server-Timing` and, for the
27 * services that read D1 with sessions, told where to read (lib/perf.ts).
28 */
29const IDENTITY = instrumented("identity", env.IDENTITY);
30const REPOS = instrumented("repos", env.REPOS);
31const WORK = instrumented("work", env.WORK);
32const BILLING = instrumented("billing", env.BILLING);
33const EVENTS = instrumented("events", env.EVENTS);
34const INTEGRATIONS = instrumented("integrations", env.INTEGRATIONS);
35const WEBHOOKS = instrumented("webhooks", env.WEBHOOKS);
36const ACTIONS = instrumented("actions", env.ACTIONS);
37const DEPLOYMENTS = instrumented("deployments", env.DEPLOYMENTS);
38const PROJECTS = instrumented("projects", env.PROJECTS);
39const SECURITY = instrumented("security", env.SECURITY);
40const CONTEXT = instrumented("context", env.CONTEXT);
41const SEARCH = instrumented("search", env.SEARCH);
42
43export const identity = identityClient(IDENTITY);
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look44/** A person's email addresses and account security: methods of identity. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents45export const accounts = accountsClient(IDENTITY);
46export const repos = reposClient(REPOS);
47export const work = workClient(WORK);
48export const billing = billingClient(BILLING);
49export const events = eventsClient(EVENTS);
50export const integrations = integrationsClient(INTEGRATIONS);
51export const webhooks = webhooksClient(WEBHOOKS);
52export const actions = actionsClient(ACTIONS);
53export const deployments = deploymentsClient(DEPLOYMENTS);
54export const projects = projectsClient(PROJECTS);
55export const security = securityClient(SECURITY);
Agents and memory, checks and conflicts, profiles, slug renames, custom domains56/** Agent runs, sessions and memory: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents57export const agents = agentsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API58/** What agents may do in a sandbox: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents59export const guardrails = guardrailsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API60/** The context hub: catalog, search and scorecards. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents61export const context = contextClient(CONTEXT);
Search across all of g1t, Explore, and a command palette62/** Search across all of g1t, and Explore. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents63export const search = searchClient(SEARCH);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API64/** Memory candidates and their review: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents65export const memoryReview = memoryReviewClient(WORK);