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

69 lines2,713 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,
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member11 packagesClient,
Projects: what a workspace builds and runs, first on every page12 projectsClient,
Integrations: your own model provider, alerts that open issues, tickets agents read13 eventsClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API14 guardrailsClient,
Integrations: your own model provider, alerts that open issues, tickets agents read15 identityClient,
16 integrationsClient,
17 reposClient,
Search across all of g1t, Explore, and a command palette18 searchClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API19 securityClient,
Webhooks: every event, to your own addresses, signed and retried20 webhooksClient,
Integrations: your own model provider, alerts that open issues, tickets agents read21 workClient,
22} from "@g1t/contracts";
API and MCP server, Rust identity service, registration, site redesign23
Fast pages, required checks on the branch, self-hosted runners, honest incidents24import { instrumented } from "./perf.server";
25
26/**
27 * Each binding the clients use, timed for `Server-Timing` and, for the
28 * services that read D1 with sessions, told where to read (lib/perf.ts).
29 */
30const IDENTITY = instrumented("identity", env.IDENTITY);
31const REPOS = instrumented("repos", env.REPOS);
32const WORK = instrumented("work", env.WORK);
33const BILLING = instrumented("billing", env.BILLING);
34const EVENTS = instrumented("events", env.EVENTS);
35const INTEGRATIONS = instrumented("integrations", env.INTEGRATIONS);
36const WEBHOOKS = instrumented("webhooks", env.WEBHOOKS);
37const ACTIONS = instrumented("actions", env.ACTIONS);
38const DEPLOYMENTS = instrumented("deployments", env.DEPLOYMENTS);
39const PROJECTS = instrumented("projects", env.PROJECTS);
40const SECURITY = instrumented("security", env.SECURITY);
41const CONTEXT = instrumented("context", env.CONTEXT);
42const SEARCH = instrumented("search", env.SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member43const PACKAGES = instrumented("packages", env.PACKAGES);
Fast pages, required checks on the branch, self-hosted runners, honest incidents44
45export const identity = identityClient(IDENTITY);
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look46/** A person's email addresses and account security: methods of identity. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents47export const accounts = accountsClient(IDENTITY);
48export const repos = reposClient(REPOS);
49export const work = workClient(WORK);
50export const billing = billingClient(BILLING);
51export const events = eventsClient(EVENTS);
52export const integrations = integrationsClient(INTEGRATIONS);
53export const webhooks = webhooksClient(WEBHOOKS);
54export const actions = actionsClient(ACTIONS);
55export const deployments = deploymentsClient(DEPLOYMENTS);
56export const projects = projectsClient(PROJECTS);
57export const security = securityClient(SECURITY);
Agents and memory, checks and conflicts, profiles, slug renames, custom domains58/** Agent runs, sessions and memory: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents59export const agents = agentsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API60/** What agents may do in a sandbox: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents61export const guardrails = guardrailsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API62/** The context hub: catalog, search and scorecards. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents63export const context = contextClient(CONTEXT);
Search across all of g1t, Explore, and a command palette64/** Search across all of g1t, and Explore. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents65export const search = searchClient(SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member66/** The workspace's registries: container images, and more to come. */
67export const packages = packagesClient(PACKAGES);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API68/** Memory candidates and their review: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents69export const memoryReview = memoryReviewClient(WORK);