Skip to content
72 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.

Merge branch 'worktree-agent-a8752162fea25f63f' into spend-guardrails1import type { RateLimitBinding, RunnerApi, ServiceBinding } from "@g1t/contracts";
Initial g1t: services, event bus, intents and attempts2
3declare global {
4 namespace Cloudflare {
5 interface Env {
API and MCP server, Rust identity service, registration, site redesign6 IDENTITY: ServiceBinding;
Initial g1t: services, event bus, intents and attempts7 /** Also serves git over HTTPS through `fetch`. */
Rust repos service with shipping; pull requests kept in the model8 REPOS: ServiceBinding & { fetch(request: Request): Promise<Response> };
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member9 /** Also serves the container registry (`/v2/`) through `fetch`. */
10 PACKAGES: ServiceBinding & { fetch(request: Request): Promise<Response> };
Work service in Rust, with RFC 3339 timestamps11 WORK: ServiceBinding;
Hosted agents: sandboxes on Cloudflare Containers started from an intent12 RUNNER: RunnerApi;
Agents as a team: lifecycle, merge queue, billing and a new shell13 BILLING: ServiceBinding;
What happened across an outcome, as a feed beside its graph14 EVENTS: ServiceBinding;
Integrations: your own model provider, alerts that open issues, tickets agents read15 INTEGRATIONS: ServiceBinding;
Webhooks: every event, to your own addresses, signed and retried16 WEBHOOKS: ServiceBinding;
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs17 ACTIONS: ServiceBinding;
Deployments: a preview for every pull request, production on g1t.page18 DEPLOYMENTS: ServiceBinding;
Projects: what a workspace builds and runs, first on every page19 PROJECTS: ServiceBinding;
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API20 SECURITY: ServiceBinding;
21 /** The context hub: catalog, search and scorecards. */
22 CONTEXT: ServiceBinding;
Search across all of g1t, Explore, and a command palette23 /** Search across all of g1t, and Explore. */
24 SEARCH: ServiceBinding;
Chat and workspace agents: channels, DMs and named agents you talk to25 /**
26 * Chat: channels, messages and read state over RPC, and the live
27 * socket, forwarded as it is (app/lib/chat-live.server.ts).
28 */
29 CHAT: ServiceBinding & { fetch(request: Request): Promise<Response> };
30 /** The workspace's own agents: definitions, templates and desks. */
31 AGENTS: ServiceBinding;
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look32 /** Production screenshots, from the og service's `Screenshots` entrypoint. */
33 SCREENSHOTS?: {
Production thumbnails follow each deploy, not each commit, and old ones are cleared daily34 image(input: { host: string; commit: string; since?: string }): Promise<{
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look35 body: ArrayBuffer;
36 contentType: string;
37 commit: string;
38 capturedAt: string;
39 } | null>;
40 };
Actions: workflow_run, workflow.completed, artifacts on the run page, Node 2441 BLOBS: KVNamespace;
Workspace names and icons, and a component kit for every control42 /** Uploaded avatars by SHA-256, with `{ contentType }`; written by identity. */
43 AVATARS: KVNamespace;
Fast pages, required checks on the branch, self-hosted runners, honest incidents44 /** The self-hosted runner's releases (scripts/runner-release.mjs). Absent when self-hosted. */
45 DOWNLOADS?: R2Bucket;
Merge branch 'worktree-agent-aaf03bdceac799c89'46 /** The site's own origin. Unset on g1t.sh, which is https://g1t.sh (app/lib/addresses.server.ts). */
47 SITE_URL?: string;
48 /** The REST API's origin, which is also the OAuth issuer. Unset on g1t.sh. */
49 API_URL?: string;
50 /** The MCP server's URL, as agents are told to add it. Unset on g1t.sh. */
51 MCP_URL?: string;
52 /** The social-card image service; an empty string for none. Unset on g1t.sh. */
53 OG_URL?: string;
Merge branch 'worktree-agent-a8752162fea25f63f' into spend-guardrails54 /** The front door's rate limits (app/lib/front-door-limits.ts). Absent when self-hosted. */
55 WEB_ANONYMOUS_LIMIT?: RateLimitBinding;
56 WEB_HEAVY_LIMIT?: RateLimitBinding;
57 WEB_SESSION_LIMIT?: RateLimitBinding;
58 WEB_ADDRESS_LIMIT?: RateLimitBinding;
59 GIT_ANONYMOUS_LIMIT?: RateLimitBinding;
60 GIT_SIGNED_LIMIT?: RateLimitBinding;
Merge g1tusercontent.com: registry answers run nothing in a browser, the site's pages run only their own scripts, repository files and avatars on their own origin, raw files rate limited per address61 /**
62 * Where repository files and avatars are served (app/lib/usercontent.ts).
63 * Unset on g1t.sh, which is https://g1tusercontent.com; unset on another
64 * site, `<SITE_URL>/-/usercontent`.
65 */
66 USERCONTENT_URL?: string;
67 /** Signs the short-lived addresses of private repositories' files. A secret. */
68 USERCONTENT_KEY?: string;
Initial g1t: services, event bus, intents and attempts69 }
70 }
71 interface Env extends Cloudflare.Env {}
72}

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