Skip to content

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

72 lines2,830 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,
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all16 inboxClient,
Integrations: your own model provider, alerts that open issues, tickets agents read17 integrationsClient,
18 reposClient,
Search across all of g1t, Explore, and a command palette19 searchClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API20 securityClient,
Webhooks: every event, to your own addresses, signed and retried21 webhooksClient,
Integrations: your own model provider, alerts that open issues, tickets agents read22 workClient,
23} from "@g1t/contracts";
API and MCP server, Rust identity service, registration, site redesign24
Fast pages, required checks on the branch, self-hosted runners, honest incidents25import { instrumented } from "./perf.server";
26
27/**
28 * Each binding the clients use, timed for `Server-Timing` and, for the
29 * services that read D1 with sessions, told where to read (lib/perf.ts).
30 */
31const IDENTITY = instrumented("identity", env.IDENTITY);
32const REPOS = instrumented("repos", env.REPOS);
33const WORK = instrumented("work", env.WORK);
34const BILLING = instrumented("billing", env.BILLING);
35const EVENTS = instrumented("events", env.EVENTS);
36const INTEGRATIONS = instrumented("integrations", env.INTEGRATIONS);
37const WEBHOOKS = instrumented("webhooks", env.WEBHOOKS);
38const ACTIONS = instrumented("actions", env.ACTIONS);
39const DEPLOYMENTS = instrumented("deployments", env.DEPLOYMENTS);
40const PROJECTS = instrumented("projects", env.PROJECTS);
41const SECURITY = instrumented("security", env.SECURITY);
42const CONTEXT = instrumented("context", env.CONTEXT);
43const SEARCH = instrumented("search", env.SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member44const PACKAGES = instrumented("packages", env.PACKAGES);
Fast pages, required checks on the branch, self-hosted runners, honest incidents45
46export const identity = identityClient(IDENTITY);
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look47/** A person's email addresses and account security: methods of identity. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents48export const accounts = accountsClient(IDENTITY);
49export const repos = reposClient(REPOS);
50export const work = workClient(WORK);
51export const billing = billingClient(BILLING);
52export const events = eventsClient(EVENTS);
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all53/** Each person's inbox, which the events service keeps. */
54export const inbox = inboxClient(EVENTS);
Fast pages, required checks on the branch, self-hosted runners, honest incidents55export const integrations = integrationsClient(INTEGRATIONS);
56export const webhooks = webhooksClient(WEBHOOKS);
57export const actions = actionsClient(ACTIONS);
58export const deployments = deploymentsClient(DEPLOYMENTS);
59export const projects = projectsClient(PROJECTS);
60export const security = securityClient(SECURITY);
Agents and memory, checks and conflicts, profiles, slug renames, custom domains61/** Agent runs, sessions and memory: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents62export const agents = agentsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API63/** What agents may do in a sandbox: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents64export const guardrails = guardrailsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API65/** The context hub: catalog, search and scorecards. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents66export const context = contextClient(CONTEXT);
Search across all of g1t, Explore, and a command palette67/** Search across all of g1t, and Explore. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents68export const search = searchClient(SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member69/** The workspace's registries: container images, and more to come. */
70export const packages = packagesClient(PACKAGES);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API71/** Memory candidates and their review: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents72export const memoryReview = memoryReviewClient(WORK);