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
14 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.

The runner base keeps its old comment, so the pushed base image still matches its folder1/**
2 * The note shown before someone starts compute their workspace's plan would
3 * refuse (`computeNote` in `@g1t/contracts` compute.ts). Members only: the
4 * routes that call it decide who sees it.
5 */
6import { type ComputeKind, computeNote, readEntitlements } from "@g1t/contracts";
7
8import { billing } from "./services.server";
9
10/** Null when the plan would let it start, or billing cannot say. */
11export async function computeNoteFor(workspace: string, kind: ComputeKind, isPublic = false): Promise<string | null> {
12 const ent = readEntitlements(await billing.entitlements(workspace.toLowerCase()).catch(() => null));
13 return ent ? computeNote(ent, kind, isPublic, workspace) : null;
14}

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