flagon-io/g1t

public

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/apps/docs/src/pages/api/reference.astro

169 lines4,949 bytesCodeBlame

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.

Docs as their own app; shared theme package1---
Merge branch 'worktree-agent-ab2e39e11a6493412'2// The API explorer, for trying calls from the browser: Scalar's explorer over g1t's OpenAPI
Docs as their own app; shared theme package3// document. It is a standalone page because the explorer brings its own
Merge branch 'worktree-agent-ab2e39e11a6493412'4// layout. The reference itself is the Starlight pages under /reference/api/.
Docs as their own app; shared theme package5import '@g1t/theme/tokens.css';
6
7const configuration = {
8 theme: 'none',
9 darkMode: true,
10 hideDarkModeToggle: true,
11 hideClientButton: true,
Docs worth reading, and kept that way12 hideModels: true,
Docs as their own app; shared theme package13 defaultHttpClient: { targetKey: 'shell', clientKey: 'curl' },
14};
15---
16
17<!doctype html>
18<html lang="en">
19 <head>
20 <meta charset="utf-8" />
21 <meta name="viewport" content="width=device-width, initial-scale=1" />
Merge branch 'worktree-agent-ab2e39e11a6493412'22 <title>API explorer · g1t docs</title>
Docs as their own app; shared theme package23 <meta
24 name="description"
25 content="Every g1t API endpoint, with an explorer to call them from the page."
26 />
The fleet: g1t's new mark27 <link rel="icon" href="/favicon.ico" sizes="32x32" />
Docs as their own app; shared theme package28 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
The fleet: g1t's new mark29 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
Docs as their own app; shared theme package30 <link rel="canonical" href="https://docs.g1t.sh/api/reference/" />
31 <link rel="preconnect" href="https://fonts.googleapis.com" />
32 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
33 <link
34 rel="stylesheet"
35 href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap"
36 />
37 </head>
38 <body>
39 <header class="bar">
Docs worth reading, and kept that way40 <a class="brand" href="/" aria-label="g1t docs home">
41 <svg viewBox="0 0 32 32" aria-hidden="true">
42 <path d="M16 2.5 28 9.4 16 16.3 4 9.4Z" fill="currentColor"></path>
43 <path d="M4 10.9 15.3 17.4V30.2L4 23.7Z" fill="currentColor" fill-opacity="0.55"></path>
44 <path d="M28 10.9 16.7 17.4V30.2L28 23.7Z" fill="currentColor" fill-opacity="0.25"></path>
45 </svg>
46 <b>g1t</b>
47 <span class="pill">Docs</span>
48 </a>
49 <nav>
50 <a href="/">Guides</a>
Merge branch 'worktree-agent-ab2e39e11a6493412'51 <a href="/reference/api/">API reference</a>
Docs worth reading, and kept that way52 <a href="/reference/mcp/">MCP tools</a>
53 <a href="https://api.g1t.sh/openapi.json">OpenAPI</a>
54 <a href="https://g1t.sh/register" class="cta">Sign up</a>
55 </nav>
Docs as their own app; shared theme package56 </header>
57 <script
58 is:inline
59 id="api-reference"
60 data-url="https://api.g1t.sh/openapi.json"
61 data-configuration={JSON.stringify(configuration)}></script>
62 <script is:inline src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
63 </body>
64</html>
65
66<style is:global>
67 body {
68 margin: 0;
69 background: var(--g1t-bg);
70 }
71
72 /* Scalar's names for the shared g1t tokens. */
73 :root {
Integrations: your own model provider, alerts that open issues, tickets agents read74 /* The g1t header above: Scalar's sticky sidebar starts below it. */
75 --scalar-custom-header-height: 56px;
Docs as their own app; shared theme package76 --scalar-font: var(--g1t-font-sans);
77 --scalar-font-code: var(--g1t-font-mono);
78 }
79 .dark-mode {
80 --scalar-background-1: var(--g1t-bg);
81 --scalar-background-2: var(--g1t-surface);
82 --scalar-background-3: var(--g1t-raised);
83 --scalar-border-color: var(--g1t-line);
84 --scalar-color-1: var(--g1t-fg);
85 --scalar-color-2: var(--g1t-muted);
86 --scalar-color-3: var(--g1t-faint);
Docs worth reading, and kept that way87 --scalar-color-accent: #cfc6ff;
88 --scalar-background-accent: color-mix(in srgb, var(--g1t-merged) 12%, transparent);
Docs as their own app; shared theme package89 --scalar-button-1: var(--g1t-fg);
90 --scalar-button-1-color: var(--g1t-bg);
91 --scalar-button-1-hover: #ffffff;
92 --scalar-color-green: var(--g1t-accent);
93 --scalar-color-blue: var(--g1t-info);
94 --scalar-color-red: var(--g1t-danger);
95 --scalar-color-orange: var(--g1t-warn);
96 --scalar-sidebar-background-1: var(--g1t-bg);
97 --scalar-sidebar-color-1: var(--g1t-fg);
98 --scalar-sidebar-color-2: var(--g1t-muted);
99 --scalar-sidebar-border-color: var(--g1t-line);
100 --scalar-sidebar-item-hover-background: var(--g1t-surface);
101 --scalar-sidebar-item-active-background: var(--g1t-raised);
Docs worth reading, and kept that way102 --scalar-sidebar-color-active: var(--g1t-fg);
Docs as their own app; shared theme package103 }
104
105 .bar {
Docs worth reading, and kept that way106 position: sticky;
107 top: 0;
108 z-index: 10;
Docs as their own app; shared theme package109 display: flex;
110 align-items: center;
Docs worth reading, and kept that way111 justify-content: space-between;
Docs as their own app; shared theme package112 height: 56px;
Docs worth reading, and kept that way113 padding: 0 20px;
114 background: color-mix(in srgb, var(--g1t-bg) 88%, transparent);
115 backdrop-filter: blur(10px);
Docs as their own app; shared theme package116 border-bottom: 1px solid var(--g1t-line);
117 font: 14px var(--g1t-font-sans);
118 }
119 .bar a {
120 color: var(--g1t-muted);
121 text-decoration: none;
122 }
Docs worth reading, and kept that way123 .bar .brand {
124 display: inline-flex;
125 align-items: center;
126 gap: 9px;
Docs as their own app; shared theme package127 color: var(--g1t-fg);
128 }
Docs worth reading, and kept that way129 .bar .brand svg {
130 width: 21px;
131 height: 21px;
132 }
133 .bar .brand b {
134 font-size: 17px;
135 letter-spacing: -0.035em;
136 }
137 .bar .pill {
138 border-radius: 999px;
139 padding: 1px 8px;
140 font-size: 11.5px;
141 color: var(--g1t-muted);
142 box-shadow: inset 0 0 0 1px var(--g1t-line-strong);
143 }
144 .bar nav {
145 display: flex;
146 align-items: center;
147 gap: 4px;
148 }
149 .bar nav a {
150 border-radius: 6px;
151 padding: 5px 10px;
152 font-size: 13.5px;
153 }
154 .bar nav a:hover {
155 background: var(--g1t-raised);
Docs as their own app; shared theme package156 color: var(--g1t-fg);
157 }
Docs worth reading, and kept that way158 .bar nav a.cta {
159 margin-left: 4px;
160 background: var(--g1t-fg);
161 color: var(--g1t-bg);
162 font-weight: 500;
163 }
164 @media (max-width: 760px) {
165 .bar nav a:not(.cta) {
166 display: none;
167 }
Docs as their own app; shared theme package168 }
169</style>

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