Skip to content
90 linesCodeBlameRaw

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.

Send g1t's own runs through the model proxy too1import { env } from "cloudflare:workers";
2
3import {
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,
Send g1t's own runs through the model proxy too7 billingClient,
Chat and workspace agents: channels, DMs and named agents you talk to8 chatClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API9 contextClient,
Deployments: a preview for every pull request, production on g1t.page10 deploymentsClient,
Docs: a workspace knowledge base people and agents write together11 docsClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API12 memoryReviewClient,
Merge branch 'mirroring' into artifacts-mode13 mirrorsClient,
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member14 packagesClient,
Projects: what a workspace builds and runs, first on every page15 projectsClient,
Send g1t's own runs through the model proxy too16 eventsClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API17 guardrailsClient,
Send g1t's own runs through the model proxy too18 identityClient,
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all19 inboxClient,
Send g1t's own runs through the model proxy too20 integrationsClient,
21 reposClient,
Search across all of g1t, Explore, and a command palette22 searchClient,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API23 securityClient,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar24 securitySuiteClient,
Webhooks: every event, to your own addresses, signed and retried25 webhooksClient,
Send g1t's own runs through the model proxy too26 workClient,
Chat and workspace agents: channels, DMs and named agents you talk to27 workspaceAgentsClient,
Send g1t's own runs through the model proxy too28} from "@g1t/contracts";
29
Fast pages, required checks on the branch, self-hosted runners, honest incidents30import { instrumented } from "./perf.server";
31
32/**
33 * Each binding the clients use, timed for `Server-Timing` and, for the
34 * services that read D1 with sessions, told where to read (lib/perf.ts).
35 */
36const IDENTITY = instrumented("identity", env.IDENTITY);
37const REPOS = instrumented("repos", env.REPOS);
38const WORK = instrumented("work", env.WORK);
39const BILLING = instrumented("billing", env.BILLING);
40const EVENTS = instrumented("events", env.EVENTS);
41const INTEGRATIONS = instrumented("integrations", env.INTEGRATIONS);
42const WEBHOOKS = instrumented("webhooks", env.WEBHOOKS);
43const ACTIONS = instrumented("actions", env.ACTIONS);
44const DEPLOYMENTS = instrumented("deployments", env.DEPLOYMENTS);
45const PROJECTS = instrumented("projects", env.PROJECTS);
46const SECURITY = instrumented("security", env.SECURITY);
47const CONTEXT = instrumented("context", env.CONTEXT);
48const SEARCH = instrumented("search", env.SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member49const PACKAGES = instrumented("packages", env.PACKAGES);
Chat and workspace agents: channels, DMs and named agents you talk to50const CHAT = instrumented("chat", env.CHAT);
51const AGENTS = instrumented("agents", env.AGENTS);
Docs: a workspace knowledge base people and agents write together52const DOCS = instrumented("docs", env.DOCS);
Fast pages, required checks on the branch, self-hosted runners, honest incidents53
54export const identity = identityClient(IDENTITY);
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look55/** A person's email addresses and account security: methods of identity. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents56export const accounts = accountsClient(IDENTITY);
57export const repos = reposClient(REPOS);
58export const work = workClient(WORK);
59export const billing = billingClient(BILLING);
60export const events = eventsClient(EVENTS);
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all61/** Each person's inbox, which the events service keeps. */
62export const inbox = inboxClient(EVENTS);
Fast pages, required checks on the branch, self-hosted runners, honest incidents63export const integrations = integrationsClient(INTEGRATIONS);
Merge branch 'mirroring' into artifacts-mode64/** Mirroring: a repository's remotes, takeovers and hand-backs, kept by integrations. */
65export const mirrors = mirrorsClient(INTEGRATIONS);
Fast pages, required checks on the branch, self-hosted runners, honest incidents66export const webhooks = webhooksClient(WEBHOOKS);
67export const actions = actionsClient(ACTIONS);
68export const deployments = deploymentsClient(DEPLOYMENTS);
69export const projects = projectsClient(PROJECTS);
70export const security = securityClient(SECURITY);
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar71/** The security suite: patterns, bypasses, code scanning, the dependency graph, settings. */
72export const securitySuite = securitySuiteClient(SECURITY);
Agents and memory, checks and conflicts, profiles, slug renames, custom domains73/** Agent runs, sessions and memory: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents74export const agents = agentsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API75/** What agents may do in a sandbox: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents76export const guardrails = guardrailsClient(WORK);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API77/** The context hub: catalog, search and scorecards. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents78export const context = contextClient(CONTEXT);
Search across all of g1t, Explore, and a command palette79/** Search across all of g1t, and Explore. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents80export const search = searchClient(SEARCH);
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member81/** The workspace's registries: container images, and more to come. */
82export const packages = packagesClient(PACKAGES);
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API83/** Memory candidates and their review: methods of the work service. */
Fast pages, required checks on the branch, self-hosted runners, honest incidents84export const memoryReview = memoryReviewClient(WORK);
Chat and workspace agents: channels, DMs and named agents you talk to85/** Channels, direct messages and threads, where people and agents talk. */
86export const chat = chatClient(CHAT);
87/** The workspace's own agents: who they are, their limits and their desks. */
88export const workspaceAgents = workspaceAgentsClient(AGENTS);
Docs: a workspace knowledge base people and agents write together89/** Docs: spaces, pages, history, suggestions and comments. */
90export const docs = docsClient(DOCS);

This file's history is long; its oldest lines are credited to the oldest commit read.