Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
50 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.

ARTIFACTS.md: R8 (shallow sandbox clones) is built1import { env } from "cloudflare:workers";
2
3import {
4 type StatusAdminApi,
5 accountsAdminClient,
6 billingAdminClient,
7 billingClient,
8 eventsClient,
9 identityAdminClient,
Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them.10 projectsClient,
11 runnersAdminClient,
12 telemetryClient,
13 type User,
ARTIFACTS.md: R8 (shallow sandbox clones) is built14} from "@g1t/contracts";
15
16/** Staff-only billing, on the billing service. */
17export const admin = billingAdminClient(env.BILLING);
18
19/** The public price book, read-only, from the same service. */
20export const priceBook = () => billingClient(env.BILLING).prices();
21
22/** Staff-only identity: every workspace, its owners and members. */
23export const identity = identityAdminClient(env.IDENTITY);
24
25/** Staff-only accounts: a person's email addresses and security log. */
26export const accountsAdmin = accountsAdminClient(env.IDENTITY);
27
28/** The workspace's plan, caps and pause, as billing gives them to every service. */
29export const entitlements = (workspace: string) => billingClient(env.BILLING).entitlements(workspace);
30
31/** The event log, read-only: sudo lists `abuse.flagged`. */
32export const events = eventsClient(env.EVENTS);
33
34/** The status page's incidents (apps/status's `StatusAdmin` entrypoint). */
35export const statusAdmin = env.STATUS as unknown as StatusAdminApi;
Merge branch 'main' into actions-toolkit-oidc-artifacts36
Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them.37/** A workspace's self-hosted runners, and removing them (actions' admin_* methods). */
38export const runnersAdmin = runnersAdminClient(env.ACTIONS);
39
40/** A workspace's projects, read as the workspace itself, which sees them all. */
41export const workspaceProjects = (slug: string) => {
42 const workspace: User = { id: `staff:${slug}`, username: slug, kind: "workspace", verified: true, workspaces: [{ slug, role: "member" }] };
43 return projectsClient(env.PROJECTS).list(slug, workspace);
44};
45
46/** Projects' telemetry: their ingest tokens, to see and revoke. */
47export const telemetry = telemetryClient(env.TELEMETRY);
48
ARTIFACTS.md: R8 (shallow sandbox clones) is built49/** STAFF_EMAILS, for suggesting staff in the incident roles. */
50export const staffEmails = (): string => env.STAFF_EMAILS ?? "";

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