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.
| Download ZIP from the Code button; a slimmer lifecycle panel; agent steps say what was done, not sandbox paths | 1 | import { env } from "cloudflare:workers"; |
| 2 | ||
| 3 | import { | |
| 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, | |
| Download ZIP from the Code button; a slimmer lifecycle panel; agent steps say what was done, not sandbox paths | 14 | } from "@g1t/contracts"; |
| 15 | ||
| 16 | /** Staff-only billing, on the billing service. */ | |
| 17 | export const admin = billingAdminClient(env.BILLING); | |
| 18 | ||
| 19 | /** The public price book, read-only, from the same service. */ | |
| 20 | export const priceBook = () => billingClient(env.BILLING).prices(); | |
| 21 | ||
| 22 | /** Staff-only identity: every workspace, its owners and members. */ | |
| 23 | export const identity = identityAdminClient(env.IDENTITY); | |
| 24 | ||
| 25 | /** Staff-only accounts: a person's email addresses and security log. */ | |
| 26 | export const accountsAdmin = accountsAdminClient(env.IDENTITY); | |
| 27 | ||
| 28 | /** The workspace's plan, caps and pause, as billing gives them to every service. */ | |
| 29 | export const entitlements = (workspace: string) => billingClient(env.BILLING).entitlements(workspace); | |
| 30 | ||
| 31 | /** The event log, read-only: sudo lists `abuse.flagged`. */ | |
| 32 | export const events = eventsClient(env.EVENTS); | |
| 33 | ||
| 34 | /** The status page's incidents (apps/status's `StatusAdmin` entrypoint). */ | |
| 35 | export const statusAdmin = env.STATUS as unknown as StatusAdminApi; | |
| Merge branch 'main' into actions-toolkit-oidc-artifacts | 36 | |
| 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). */ |
| 38 | export const runnersAdmin = runnersAdminClient(env.ACTIONS); | |
| 39 | ||
| 40 | /** A workspace's projects, read as the workspace itself, which sees them all. */ | |
| 41 | export 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. */ | |
| 47 | export const telemetry = telemetryClient(env.TELEMETRY); | |
| 48 | ||
| Download ZIP from the Code button; a slimmer lifecycle panel; agent steps say what was done, not sandbox paths | 49 | /** STAFF_EMAILS, for suggesting staff in the incident roles. */ |
| 50 | export const staffEmails = (): string => env.STAFF_EMAILS ?? ""; |
This file's history is long; its oldest lines are credited to the oldest commit read.