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
22 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 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.1/**
2 * The g1t CLI's install scripts: g1t.sh/install for Linux and macOS
3 * (`curl -fsSL https://g1t.sh/install | sh`) and g1t.sh/install.ps1 for
4 * Windows (`irm https://g1t.sh/install.ps1 | iex`). Each downloads the newest
5 * release from g1t.sh/downloads/cli/ (scripts/cli-release.mjs), checks it
6 * against the release's SHA256SUMS, and installs it. `install` is a
7 * reserved name.
8 */
9import type { Route } from "./+types/install-script";
10import sh from "../content/install/install.sh?raw";
11import ps1 from "../content/install/install.ps1?raw";
12
13export function loader({ request }: Route.LoaderArgs) {
14 const windows = new URL(request.url).pathname.endsWith(".ps1");
15 return new Response(windows ? ps1 : sh, {
16 headers: {
17 "content-type": "text/plain; charset=utf-8",
18 "cache-control": "public, max-age=300",
19 "x-content-type-options": "nosniff",
20 },
21 });
22}

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