CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
help.tsx
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 80bed05 | 1 | /** |
| 2 | * /help — public quickstart + API cheatsheet for owners migrating their | |
| 3 | * products onto gluecron. Covers the first five minutes (register, clone, | |
| 4 | * push), integration surfaces (SSH, import, webhooks, tokens), and the | |
| 5 | * AI-native extras (gates + AI review). Linked from the landing page nav. | |
| 6 | * | |
| 7 | * Uses softAuth so the nav bar renders with the signed-in user's session | |
| 8 | * cookie when present; the page itself is reachable without auth. | |
| 9 | */ | |
| 10 | ||
| 11 | import { Hono } from "hono"; | |
| 12 | import { Layout } from "../views/layout"; | |
| 13 | import { softAuth } from "../middleware/auth"; | |
| 14 | import type { AuthEnv } from "../middleware/auth"; | |
| 15 | ||
| 16 | const help = new Hono<AuthEnv>(); | |
| 17 | help.use("*", softAuth); | |
| 18 | ||
| bdb51e4 | 19 | // ─── PAGE-SCOPED CSS ───────────────────────────────────────── |
| 20 | // All classes prefixed with `.help-` so styles cannot bleed into other | |
| 21 | // surfaces. Mirrors the 2026 hero polish in admin, dashboard, import, | |
| 22 | // settings, and repo-settings. | |
| 23 | const helpStyles = ` | |
| eed4684 | 24 | .help-wrap { max-width: 1320px; margin: 0 auto; padding: var(--space-6) var(--space-4); } |
| bdb51e4 | 25 | |
| 26 | /* ─── Hero ─── */ | |
| 27 | .help-hero { | |
| 28 | position: relative; | |
| 29 | margin-bottom: var(--space-5); | |
| 30 | padding: var(--space-5) var(--space-6); | |
| 31 | background: var(--bg-elevated); | |
| 32 | border: 1px solid var(--border); | |
| 33 | border-radius: 16px; | |
| 34 | overflow: hidden; | |
| 35 | } | |
| 36 | .help-hero::before { | |
| 37 | content: ''; | |
| 38 | position: absolute; | |
| 39 | top: 0; left: 0; right: 0; | |
| 40 | height: 2px; | |
| 41 | background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%); | |
| 42 | opacity: 0.75; | |
| 43 | pointer-events: none; | |
| 44 | } | |
| 45 | .help-hero-bg { | |
| 46 | position: absolute; | |
| 47 | inset: -20% -10% auto auto; | |
| 48 | width: 360px; height: 360px; | |
| 49 | pointer-events: none; | |
| 50 | z-index: 0; | |
| 51 | } | |
| 52 | .help-hero-orb { | |
| 53 | position: absolute; | |
| 54 | inset: 0; | |
| 55 | background: radial-gradient(circle, rgba(140,109,255,0.20), rgba(54,197,214,0.10) 45%, transparent 70%); | |
| 56 | filter: blur(80px); | |
| 57 | opacity: 0.7; | |
| 58 | animation: helpHeroOrb 14s ease-in-out infinite; | |
| 59 | } | |
| 60 | @keyframes helpHeroOrb { | |
| 61 | 0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; } | |
| 62 | 50% { transform: scale(1.1) translate(-10px, 8px); opacity: 0.85; } | |
| 63 | } | |
| 64 | @media (prefers-reduced-motion: reduce) { | |
| 65 | .help-hero-orb { animation: none; } | |
| 66 | } | |
| 67 | .help-hero-inner { | |
| 68 | position: relative; | |
| 69 | z-index: 1; | |
| 70 | max-width: 680px; | |
| 71 | } | |
| 72 | .help-hero-eyebrow { | |
| 73 | display: inline-flex; | |
| 74 | align-items: center; | |
| 75 | gap: 8px; | |
| 76 | font-size: 12px; | |
| 77 | font-weight: 600; | |
| 78 | letter-spacing: 0.06em; | |
| 79 | text-transform: uppercase; | |
| 80 | color: var(--text-muted); | |
| 81 | margin-bottom: var(--space-3); | |
| 82 | } | |
| 83 | .help-hero-eyebrow-pill { | |
| 84 | display: inline-flex; | |
| 85 | align-items: center; | |
| 86 | justify-content: center; | |
| 87 | width: 22px; height: 22px; | |
| 88 | border-radius: 7px; | |
| 89 | background: linear-gradient(135deg, rgba(140,109,255,0.20), rgba(54,197,214,0.18)); | |
| 90 | box-shadow: inset 0 0 0 1px rgba(140,109,255,0.35); | |
| 91 | color: #c4b6ff; | |
| 92 | font-size: 13px; | |
| 93 | line-height: 1; | |
| 94 | } | |
| 95 | .help-hero-title { | |
| 96 | font-size: clamp(28px, 4vw, 40px); | |
| 97 | font-family: var(--font-display); | |
| 98 | font-weight: 800; | |
| 99 | letter-spacing: -0.028em; | |
| 100 | line-height: 1.05; | |
| 101 | margin: 0 0 var(--space-3); | |
| 102 | color: var(--text-strong); | |
| 103 | } | |
| 104 | .help-hero-title .help-gradient-text { | |
| 105 | background-image: linear-gradient(135deg, #a48bff 0%, #8c6dff 50%, #36c5d6 100%); | |
| 106 | -webkit-background-clip: text; | |
| 107 | background-clip: text; | |
| 108 | -webkit-text-fill-color: transparent; | |
| 109 | color: transparent; | |
| 110 | } | |
| 111 | .help-hero-sub { | |
| 112 | font-size: 15px; | |
| 113 | color: var(--text-muted); | |
| 114 | margin: 0; | |
| 115 | line-height: 1.55; | |
| 116 | max-width: 600px; | |
| 117 | } | |
| 118 | ||
| 119 | /* ─── On-this-page nav ─── */ | |
| 120 | .help-toc { | |
| 121 | position: relative; | |
| 122 | padding: var(--space-4) var(--space-5); | |
| 123 | background: var(--bg-elevated); | |
| 124 | border: 1px solid var(--border); | |
| 125 | border-radius: 14px; | |
| 126 | margin-bottom: var(--space-5); | |
| 127 | } | |
| 128 | .help-toc-label { | |
| 129 | font-size: 11px; | |
| 130 | font-weight: 600; | |
| 131 | letter-spacing: 0.08em; | |
| 132 | text-transform: uppercase; | |
| 133 | color: var(--accent); | |
| 134 | margin-bottom: 10px; | |
| 135 | } | |
| 136 | .help-toc-list { | |
| 137 | display: flex; | |
| 138 | flex-wrap: wrap; | |
| 139 | gap: 8px; | |
| 140 | } | |
| 141 | .help-toc-list a { | |
| 142 | display: inline-flex; | |
| 143 | align-items: center; | |
| 144 | padding: 5px 10px; | |
| 145 | font-size: 12.5px; | |
| 146 | color: var(--text); | |
| 147 | background: var(--bg); | |
| 148 | border: 1px solid var(--border); | |
| 149 | border-radius: 8px; | |
| 150 | text-decoration: none; | |
| 151 | transition: border-color 120ms ease, background 120ms ease, color 120ms ease; | |
| 152 | } | |
| 153 | .help-toc-list a:hover { | |
| 154 | border-color: rgba(140,109,255,0.45); | |
| 155 | background: rgba(140,109,255,0.06); | |
| 156 | color: var(--text-strong); | |
| 157 | } | |
| 158 | ||
| 159 | /* ─── Section cards ─── */ | |
| 160 | .help-section { | |
| 161 | background: var(--bg-elevated); | |
| 162 | border: 1px solid var(--border); | |
| 163 | border-radius: 14px; | |
| 164 | margin-bottom: var(--space-5); | |
| 165 | overflow: hidden; | |
| 166 | scroll-margin-top: var(--space-6); | |
| 167 | } | |
| 168 | .help-section-head { | |
| 169 | padding: var(--space-4) var(--space-5) var(--space-3); | |
| 170 | border-bottom: 1px solid var(--border); | |
| 171 | } | |
| 172 | .help-section-eyebrow { | |
| 173 | font-size: 11px; | |
| 174 | font-weight: 600; | |
| 175 | letter-spacing: 0.08em; | |
| 176 | text-transform: uppercase; | |
| 177 | color: var(--accent); | |
| 178 | margin-bottom: 6px; | |
| 179 | } | |
| 180 | .help-section-title { | |
| 181 | font-family: var(--font-display); | |
| 182 | font-size: 19px; | |
| 183 | font-weight: 700; | |
| 184 | letter-spacing: -0.02em; | |
| 185 | margin: 0 0 4px; | |
| 186 | color: var(--text-strong); | |
| 187 | } | |
| 188 | .help-section-desc { | |
| 189 | font-size: 13.5px; | |
| 190 | color: var(--text-muted); | |
| 191 | margin: 0; | |
| 192 | line-height: 1.5; | |
| 193 | } | |
| 194 | .help-section-body { | |
| 195 | padding: var(--space-4) var(--space-5); | |
| 196 | display: flex; | |
| 197 | flex-direction: column; | |
| 198 | gap: var(--space-3); | |
| 199 | } | |
| 200 | ||
| 201 | /* ─── Item rows inside a section card ─── */ | |
| 202 | .help-item { | |
| 203 | padding: 12px 14px; | |
| 204 | background: var(--bg); | |
| 205 | border: 1px solid var(--border-subtle, var(--border)); | |
| 206 | border-radius: 10px; | |
| 207 | font-size: 14px; | |
| 208 | line-height: 1.55; | |
| 209 | color: var(--text); | |
| 210 | } | |
| 211 | .help-item strong { color: var(--text-strong); font-weight: 600; } | |
| 212 | .help-item code { | |
| 213 | font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); | |
| 214 | font-size: 12.5px; | |
| 215 | padding: 1px 5px; | |
| 216 | border-radius: 4px; | |
| 217 | background: rgba(140,109,255,0.10); | |
| 218 | color: #c4b6ff; | |
| 219 | } | |
| 220 | .help-item a { color: var(--text-link, var(--accent)); } | |
| 221 | ||
| 222 | /* ─── Code blocks inside items ─── */ | |
| 223 | .help-code { | |
| 224 | margin: 8px 0 0; | |
| 225 | padding: 12px 14px; | |
| 226 | background: #0a0c14; | |
| 227 | border: 1px solid var(--border-subtle, var(--border)); | |
| 228 | border-radius: 8px; | |
| 229 | font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); | |
| 230 | font-size: 12.5px; | |
| 231 | line-height: 1.55; | |
| 232 | color: #d6d8e3; | |
| 233 | overflow-x: auto; | |
| 234 | } | |
| 235 | ||
| 236 | /* ─── Footer hint ─── */ | |
| 237 | .help-footnote { | |
| 238 | margin-top: var(--space-6); | |
| 239 | padding-top: var(--space-4); | |
| 240 | border-top: 1px solid var(--border); | |
| 241 | color: var(--text-muted); | |
| 242 | font-size: 13px; | |
| 243 | line-height: 1.55; | |
| 244 | } | |
| 245 | `; | |
| 246 | ||
| 80bed05 | 247 | help.get("/help", (c) => { |
| 248 | const user = c.get("user"); | |
| 249 | ||
| 250 | return c.html( | |
| 5acce80 | 251 | <Layout |
| 252 | title="Help — gluecron" | |
| 253 | user={user} | |
| 254 | description="Gluecron documentation — getting started, workflow YAML, MCP server, API reference." | |
| 255 | ogTitle="Help — Gluecron" | |
| 256 | ogDescription="Gluecron documentation — getting started, workflow YAML, MCP server, API reference." | |
| 257 | twitterCard="summary" | |
| 258 | > | |
| bdb51e4 | 259 | <style dangerouslySetInnerHTML={{ __html: helpStyles }} /> |
| 260 | <div class="help-wrap"> | |
| 261 | {/* ─── Hero ─── */} | |
| 262 | <header class="help-hero"> | |
| 263 | <div class="help-hero-bg" aria-hidden="true"> | |
| 264 | <div class="help-hero-orb" /> | |
| 265 | </div> | |
| 266 | <div class="help-hero-inner"> | |
| 267 | <div class="help-hero-eyebrow"> | |
| 268 | <span class="help-hero-eyebrow-pill" aria-hidden="true">?</span> | |
| 269 | <span>Help & quickstart</span> | |
| 270 | </div> | |
| 271 | <h1 class="help-hero-title"> | |
| 272 | Ship onto{" "} | |
| 273 | <span class="help-gradient-text">gluecron</span> in five minutes. | |
| 274 | </h1> | |
| 275 | <p class="help-hero-sub"> | |
| 276 | Everything an owner migrating a product onto gluecron needs in one | |
| 277 | page. If something's unclear, open an issue — link at the bottom. | |
| 278 | </p> | |
| 279 | </div> | |
| 280 | </header> | |
| 80bed05 | 281 | |
| bdb51e4 | 282 | {/* ─── On this page ─── */} |
| 283 | <nav class="help-toc" aria-label="On this page"> | |
| 284 | <div class="help-toc-label">On this page</div> | |
| 285 | <div class="help-toc-list"> | |
| 286 | <a href="#getting-started">Getting started</a> | |
| 287 | <a href="#git-https">Git over HTTPS</a> | |
| 288 | <a href="#git-ssh">Git over SSH</a> | |
| 289 | <a href="#import">Importing from GitHub</a> | |
| 290 | <a href="#webhooks">Webhooks</a> | |
| 8809b87 | 291 | <a href="#chat-bots">Slack & Discord bots</a> |
| bdb51e4 | 292 | <a href="#tokens">Personal access tokens</a> |
| 293 | <a href="#gates">Gates & AI review</a> | |
| 294 | <a href="#ai-native">AI-native flow</a> | |
| c6018a5 | 295 | <a href="#ai-surfaces">New AI surfaces</a> |
| 296 | <a href="#repo-chat">Chat with a repo</a> | |
| 297 | <a href="#previews">Branch previews</a> | |
| 298 | <a href="#migrations">Migration assistant</a> | |
| 299 | <a href="#slash-commands">PR slash commands</a> | |
| 300 | <a href="#release-notes">AI release notes</a> | |
| 301 | <a href="#ai-commits">AI commit messages</a> | |
| 302 | <a href="#agents">Agent multiplayer</a> | |
| 303 | <a href="#semantic">Semantic search API</a> | |
| bdb51e4 | 304 | <a href="#shortcuts">Keyboard shortcuts</a> |
| 305 | <a href="#api">API</a> | |
| c6018a5 | 306 | <a href="#build-agents">Build-agent integration</a> |
| c4e643c | 307 | <a href="#self-host">Self-host (single binary)</a> |
| bdb51e4 | 308 | </div> |
| 80bed05 | 309 | </nav> |
| 310 | ||
| bdb51e4 | 311 | {/* ─── Getting started ─── */} |
| 312 | <section id="getting-started" class="help-section"> | |
| 313 | <div class="help-section-head"> | |
| 314 | <div class="help-section-eyebrow">Step 01</div> | |
| 315 | <h2 class="help-section-title">Getting started</h2> | |
| 316 | <p class="help-section-desc"> | |
| 317 | Register, verify, and create your first repo. | |
| 318 | </p> | |
| 319 | </div> | |
| 320 | <div class="help-section-body"> | |
| 321 | <div class="help-item"> | |
| 322 | <strong>1. Register an account.</strong>{" "} | |
| 323 | Head to <a href="/register">/register</a>, pick a username, and | |
| 324 | set a password. Usernames are your public handle and appear in | |
| 325 | every repo URL. | |
| 80bed05 | 326 | </div> |
| bdb51e4 | 327 | <div class="help-item"> |
| 328 | <strong>2. Verify your email.</strong>{" "} | |
| 329 | We send a one-time link the first time you sign in. Verified | |
| 330 | addresses can receive issue, PR, and gate-run notifications. | |
| 80bed05 | 331 | </div> |
| bdb51e4 | 332 | <div class="help-item"> |
| 333 | <strong>3. Create your first repo.</strong>{" "} | |
| 334 | From the dashboard hit <strong>New repository</strong>, or | |
| 335 | visit <a href="/new">/new</a>. Pick public or private, add a | |
| 336 | README, and you're ready to clone. | |
| 80bed05 | 337 | </div> |
| 338 | </div> | |
| 339 | </section> | |
| 340 | ||
| bdb51e4 | 341 | {/* ─── Git over HTTPS ─── */} |
| 342 | <section id="git-https" class="help-section"> | |
| 343 | <div class="help-section-head"> | |
| 344 | <div class="help-section-eyebrow">Protocol</div> | |
| 345 | <h2 class="help-section-title">Git over HTTPS</h2> | |
| 346 | <p class="help-section-desc"> | |
| 347 | HTTPS works out of the box. Authenticate with your account | |
| 348 | password or, better, a personal access token. | |
| 349 | </p> | |
| 350 | </div> | |
| 351 | <div class="help-section-body"> | |
| 352 | <div class="help-item"> | |
| 353 | <strong>Clone</strong> | |
| 354 | <pre class="help-code"> | |
| 80bed05 | 355 | {`git clone https://<your-host>/<owner>/<repo>.git`} |
| bdb51e4 | 356 | </pre> |
| 80bed05 | 357 | </div> |
| bdb51e4 | 358 | <div class="help-item"> |
| 359 | <strong>Push</strong> | |
| 360 | <pre class="help-code"> | |
| 80bed05 | 361 | {`git push origin main`} |
| bdb51e4 | 362 | </pre> |
| 80bed05 | 363 | </div> |
| bdb51e4 | 364 | <div class="help-item"> |
| 365 | <strong>Pull</strong> | |
| 366 | <pre class="help-code"> | |
| 80bed05 | 367 | {`git pull origin main`} |
| bdb51e4 | 368 | </pre> |
| 80bed05 | 369 | </div> |
| 370 | </div> | |
| 371 | </section> | |
| 372 | ||
| bdb51e4 | 373 | {/* ─── Git over SSH ─── */} |
| 374 | <section id="git-ssh" class="help-section"> | |
| 375 | <div class="help-section-head"> | |
| 376 | <div class="help-section-eyebrow">Protocol</div> | |
| 377 | <h2 class="help-section-title">Git over SSH</h2> | |
| 378 | <p class="help-section-desc"> | |
| 379 | SSH avoids typing credentials and is recommended for day-to-day | |
| 380 | work. | |
| 381 | </p> | |
| 382 | </div> | |
| 383 | <div class="help-section-body"> | |
| 384 | <div class="help-item"> | |
| 385 | <strong>1. Add your key.</strong>{" "} | |
| 386 | Copy your public key (usually{" "} | |
| 387 | <code>~/.ssh/id_ed25519.pub</code>) and paste it into{" "} | |
| 388 | <a href="/settings/keys">/settings/keys</a>. Keys take effect | |
| 389 | immediately. | |
| 80bed05 | 390 | </div> |
| bdb51e4 | 391 | <div class="help-item"> |
| 392 | <strong>2. Clone using the SSH URL.</strong> | |
| 393 | <pre class="help-code"> | |
| 80bed05 | 394 | {`git clone git@<your-host>:<owner>/<repo>.git`} |
| bdb51e4 | 395 | </pre> |
| 80bed05 | 396 | </div> |
| bdb51e4 | 397 | <div class="help-item"> |
| 398 | <strong>3. Rotate or revoke</strong> any key from the same | |
| 399 | settings page — useful when a laptop walks off. | |
| 80bed05 | 400 | </div> |
| 401 | </div> | |
| 402 | </section> | |
| 403 | ||
| bdb51e4 | 404 | {/* ─── Import ─── */} |
| 405 | <section id="import" class="help-section"> | |
| 406 | <div class="help-section-head"> | |
| 407 | <div class="help-section-eyebrow">Migration</div> | |
| 408 | <h2 class="help-section-title">Importing from GitHub</h2> | |
| 409 | <p class="help-section-desc"> | |
| 410 | One-time mirror with full history, branches, and tags. | |
| 411 | </p> | |
| 412 | </div> | |
| 413 | <div class="help-section-body"> | |
| 414 | <div class="help-item"> | |
| 415 | Visit <a href="/import">/import</a>, paste the source URL, and | |
| 416 | gluecron will mirror the repository — full history, branches, | |
| 417 | and tags. The mirror is a one-time copy; subsequent pushes | |
| 418 | land on gluecron, not the source. Private sources need a PAT | |
| 419 | on the source side. | |
| 80bed05 | 420 | </div> |
| 421 | </div> | |
| 422 | </section> | |
| 423 | ||
| bdb51e4 | 424 | {/* ─── Webhooks ─── */} |
| 425 | <section id="webhooks" class="help-section"> | |
| 426 | <div class="help-section-head"> | |
| 427 | <div class="help-section-eyebrow">Integrations</div> | |
| 428 | <h2 class="help-section-title">Webhooks</h2> | |
| 429 | <p class="help-section-desc"> | |
| 430 | Per-repo webhooks live at{" "} | |
| 431 | <code>/:owner/:repo/settings/webhooks</code>. Register a URL, pick | |
| 432 | events (push, issue, pr, star), and set a secret. | |
| 433 | </p> | |
| 434 | </div> | |
| 435 | <div class="help-section-body"> | |
| 436 | <div class="help-item"> | |
| 437 | <strong>HMAC signature.</strong>{" "} | |
| 438 | Every delivery includes{" "} | |
| 439 | <code>X-Gluecron-Signature: sha256=<hex></code>.{" "} | |
| 440 | Compute HMAC-SHA256 over the raw request body using your | |
| 441 | secret and compare in constant time. | |
| 80bed05 | 442 | </div> |
| bdb51e4 | 443 | <div class="help-item"> |
| 444 | <strong>Payload shape.</strong> | |
| 445 | <pre class="help-code"> | |
| 80bed05 | 446 | {`{ |
| 447 | "event": "push", | |
| 448 | "repo": { "owner": "acme", "name": "api" }, | |
| 449 | "ref": "refs/heads/main", | |
| 450 | "before": "<sha>", | |
| 451 | "after": "<sha>", | |
| 452 | "commits": [ /* ... */ ], | |
| 453 | "sender": { "username": "kit" } | |
| 454 | }`} | |
| bdb51e4 | 455 | </pre> |
| 80bed05 | 456 | </div> |
| bdb51e4 | 457 | <div class="help-item"> |
| 458 | Deliveries are retried with exponential backoff; inspect the | |
| 459 | last N attempts from the webhook's settings page. | |
| 80bed05 | 460 | </div> |
| 461 | </div> | |
| 462 | </section> | |
| 463 | ||
| 8809b87 | 464 | {/* ─── Slack + Discord bots ─── */} |
| 465 | <section id="chat-bots" class="help-section"> | |
| 466 | <div class="help-section-head"> | |
| 467 | <div class="help-section-eyebrow">Integrations</div> | |
| 468 | <h2 class="help-section-title">Slack & Discord</h2> | |
| 469 | <p class="help-section-desc"> | |
| 470 | Install the Gluecron bot from{" "} | |
| 471 | <a href="/settings/integrations">/settings/integrations</a>{" "} | |
| 472 | to drive your repos from chat. PR opens, merges, and AI | |
| 473 | review summaries also push back into the channel. | |
| 474 | </p> | |
| 475 | </div> | |
| 476 | <div class="help-section-body"> | |
| 477 | <div class="help-item"> | |
| 478 | <strong>Slash commands.</strong> | |
| 479 | <pre class="help-code"> | |
| 480 | {`/gluecron pr list owner/repo | |
| 481 | /gluecron pr open owner/repo "Add dark mode" | |
| 482 | /gluecron issue list owner/repo | |
| 483 | /gluecron issue create owner/repo "Bug in foo()" | |
| 484 | /gluecron spec ship "rewrite the cron scheduler" | |
| 485 | /gluecron chat "How do I run the tests?" | |
| 486 | /gluecron help`} | |
| 487 | </pre> | |
| 488 | </div> | |
| 489 | <div class="help-item"> | |
| 490 | <strong>Signature verification.</strong> Slack requests are | |
| 491 | checked against your signing secret (HMAC-SHA256 over{" "} | |
| 492 | <code>v0:<timestamp>:<body></code>). Discord | |
| 493 | interactions are verified against your Application Public | |
| 494 | Key with Ed25519. Bad signatures get a 401. | |
| 495 | </div> | |
| 496 | <div class="help-item"> | |
| 497 | <strong>Outbound notifications.</strong> Once installed, PR | |
| 498 | opens / merges, issue creates, and AI review summaries | |
| 499 | auto-post to your channel. Disable on a per-workspace basis | |
| 500 | from <a href="/settings/integrations">/settings/integrations</a>. | |
| 501 | </div> | |
| 502 | </div> | |
| 503 | </section> | |
| 504 | ||
| bdb51e4 | 505 | {/* ─── Tokens ─── */} |
| 506 | <section id="tokens" class="help-section"> | |
| 507 | <div class="help-section-head"> | |
| 508 | <div class="help-section-eyebrow">Auth</div> | |
| 509 | <h2 class="help-section-title">Personal access tokens</h2> | |
| 510 | <p class="help-section-desc"> | |
| 511 | Tokens authenticate CLI clients, CI jobs, and scripts. Create | |
| 512 | them at <a href="/settings/tokens">/settings/tokens</a>; the value | |
| 513 | is shown once, so copy it immediately. Tokens start with{" "} | |
| 514 | <code>glc_</code>. | |
| 515 | </p> | |
| 516 | </div> | |
| 517 | <div class="help-section-body"> | |
| 518 | <div class="help-item"> | |
| 519 | <strong>Example: list your repos via the API.</strong> | |
| 520 | <pre class="help-code"> | |
| 80bed05 | 521 | {`curl -H "Authorization: Bearer glc_your_token_here" \\ |
| 522 | https://<your-host>/api/v2/repos`} | |
| bdb51e4 | 523 | </pre> |
| 80bed05 | 524 | </div> |
| bdb51e4 | 525 | <div class="help-item"> |
| 526 | Tokens can also authenticate <code>git</code> over HTTPS — use | |
| 527 | the token as the password in place of your account password. | |
| 80bed05 | 528 | </div> |
| 529 | </div> | |
| 530 | </section> | |
| 531 | ||
| bdb51e4 | 532 | {/* ─── Gates & AI review ─── */} |
| 533 | <section id="gates" class="help-section"> | |
| 534 | <div class="help-section-head"> | |
| 535 | <div class="help-section-eyebrow">Quality</div> | |
| 536 | <h2 class="help-section-title">Gates & AI review</h2> | |
| 537 | <p class="help-section-desc"> | |
| 538 | Push-time scanning + an AI pair reviewer on every PR. | |
| 539 | </p> | |
| 540 | </div> | |
| 541 | <div class="help-section-body"> | |
| 542 | <div class="help-item"> | |
| 543 | Every push to the default branch (usually <code>main</code>) | |
| 544 | triggers a gate run: GateTest scans the diff for secrets, | |
| 545 | dependency advisories, and policy violations, while the AI | |
| 546 | reviewer reads the patch and comments on any PRs that touch | |
| 547 | the same files. Failing gates block the push by default; | |
| 548 | results appear on the commit page and in the repo's{" "} | |
| 549 | <em>Gate runs</em> tab. Configure gate policy per-repo in | |
| 550 | <strong> Settings → Gates</strong>. | |
| 80bed05 | 551 | </div> |
| 552 | </div> | |
| 553 | </section> | |
| 554 | ||
| bdb51e4 | 555 | {/* ─── AI-native flow ─── */} |
| 556 | <section id="ai-native" class="help-section"> | |
| 557 | <div class="help-section-head"> | |
| 558 | <div class="help-section-eyebrow">AI-native</div> | |
| 559 | <h2 class="help-section-title">AI-native flow</h2> | |
| 560 | <p class="help-section-desc"> | |
| 561 | Surfaces that ride on <code>ANTHROPIC_API_KEY</code>, with | |
| 562 | deterministic fallbacks when it's missing. | |
| 563 | </p> | |
| 564 | </div> | |
| 565 | <div class="help-section-body"> | |
| 566 | <div class="help-item"> | |
| 567 | <strong>Issue → PR in one click.</strong> Open any issue you | |
| 568 | own and hit <em>Build with AI</em> in the header. The spec | |
| 569 | form pre-fills with the issue title + body and a{" "} | |
| 570 | <code>Closes #N</code> footer; Claude drafts the diff, opens | |
| 571 | a draft PR, and the merge auto-closes the originating issue. | |
| 2afb411 | 572 | </div> |
| bdb51e4 | 573 | <div class="help-item"> |
| 574 | <strong>AI-drafted PR descriptions.</strong> The new-PR form | |
| 575 | has a <em>Suggest description with AI</em> button that runs | |
| 576 | <code> generatePrSummary</code> against{" "} | |
| 577 | <code>git diff base...head</code> and fills the description | |
| 578 | with a structured summary (Why · Key changes · Test plan · | |
| 579 | Risks). | |
| 2afb411 | 580 | </div> |
| bdb51e4 | 581 | <div class="help-item"> |
| 582 | <strong>Auto-review on PR open.</strong> Non-draft PRs get a | |
| 583 | summary comment plus inline file/line annotations from the | |
| 584 | AI reviewer. A second comment posts label + reviewer + | |
| 585 | priority suggestions (the <em>AI Triage</em> block). All | |
| 586 | suggestions; nothing applied automatically. | |
| 2afb411 | 587 | </div> |
| bdb51e4 | 588 | <div class="help-item"> |
| 589 | <strong>Repo-wide AI surfaces.</strong>{" "} | |
| 590 | <a href="/help#explore">Explain</a> a codebase, run{" "} | |
| 591 | <a href="/help#explore">semantic search</a>, ask the chat | |
| 592 | anything about the repo, generate failing test stubs from a | |
| 593 | source file (the <em>Tests</em> link in the repo nav), and | |
| 594 | draft full PRs from a plain-English spec via{" "} | |
| 595 | <em>Spec to PR</em>. All require{" "} | |
| 596 | <code>ANTHROPIC_API_KEY</code>; without it the surfaces | |
| 597 | degrade gracefully to deterministic fallbacks. | |
| 2afb411 | 598 | </div> |
| bdb51e4 | 599 | <div class="help-item"> |
| 600 | <strong>Scheduled workflows.</strong> Drop{" "} | |
| 601 | <code>on: schedule: [{`{cron: "0 * * * *"}`}]</code> into any | |
| 602 | <code> .gluecron/workflows/*.yml</code>. The autopilot | |
| 603 | ticker fires the cron from the same node that handles your | |
| 604 | pushes — no external scheduler needed. | |
| 2afb411 | 605 | </div> |
| 606 | </div> | |
| 607 | </section> | |
| 608 | ||
| c6018a5 | 609 | {/* ─── New AI surfaces (global) ─── */} |
| 610 | <section id="ai-surfaces" class="help-section"> | |
| 611 | <div class="help-section-head"> | |
| 612 | <div class="help-section-eyebrow">Discover</div> | |
| 613 | <h2 class="help-section-title">New AI surfaces</h2> | |
| 614 | <p class="help-section-desc"> | |
| 615 | Seven cross-repo dashboards that ship with Gluecron — find | |
| 616 | them under the <strong>AI</strong> dropdown in the top nav, | |
| 617 | plus the always-on <em>Pulls</em>, <em>Issues</em>,{" "} | |
| 618 | <em>Activity</em>, and <em>Inbox</em> tabs. | |
| 619 | </p> | |
| 620 | </div> | |
| 621 | <div class="help-section-body"> | |
| 622 | <div class="help-item"> | |
| 623 | <strong><a href="/pulls">/pulls</a> — global pull-request | |
| 624 | dashboard.</strong> Every open PR across every repo you own | |
| 625 | or follow, grouped by review state. Filter by author, label, | |
| 626 | or repo. Replaces tab-flicking between repos when you just | |
| 627 | want to know "what needs me right now." | |
| 628 | </div> | |
| 629 | <div class="help-item"> | |
| 630 | <strong><a href="/issues">/issues</a> — global issue | |
| 631 | dashboard.</strong> Same shape as <code>/pulls</code> for | |
| 632 | issues. Combine the <code>ai:build</code> filter with{" "} | |
| 633 | <em>assigned to me</em> to scan everything Claude is queued | |
| 634 | to build for you. | |
| 635 | </div> | |
| 636 | <div class="help-item"> | |
| 637 | <strong><a href="/inbox">/inbox</a> — unified inbox.</strong>{" "} | |
| 638 | Mentions, review requests, CI failures, and AI-generated | |
| 639 | actions in one stream. Filters at the top:{" "} | |
| 640 | <code>filter=mentions</code>, <code>filter=review</code>,{" "} | |
| 641 | <code>filter=ci</code>, <code>filter=ai</code>. The badge | |
| 642 | count next to <em>Inbox</em> in the nav is unread items. | |
| 643 | </div> | |
| 644 | <div class="help-item"> | |
| 645 | <strong><a href="/activity">/activity</a> — your | |
| 646 | timeline.</strong> A chronological feed of every push, | |
| 647 | merge, comment, and AI action across your repos. Useful for | |
| 648 | writing your own weekly recap and for spotting when an | |
| 649 | autopilot task fired without you noticing. | |
| 650 | </div> | |
| 651 | <div class="help-item"> | |
| 652 | <strong><a href="/standups">/standups</a> — daily AI | |
| 653 | brief.</strong> Claude writes a short standup at your | |
| 654 | configured time (defaults to 09:00 UTC) summarising | |
| 655 | yesterday's pushes, today's open PRs, and anything blocking. | |
| 656 | Toggle the cadence in <a href="/settings">Settings → | |
| 657 | Standups</a>. Hit <em>Refresh</em> on the page to regenerate | |
| 658 | for the current window. | |
| 659 | </div> | |
| 660 | <div class="help-item"> | |
| 661 | <strong><a href="/voice">/voice</a> — voice-to-PR.</strong>{" "} | |
| 662 | Hit record, speak a feature spec, stop — Claude transcribes, | |
| 663 | picks the target repo, drafts the diff, and opens a draft | |
| 664 | PR. The whole loop fits in a single browser tab; no native | |
| 665 | app, no Whisper setup. Uses the browser's MediaRecorder API | |
| 666 | under the hood — Chrome, Safari 17+, Firefox. | |
| 667 | </div> | |
| 668 | <div class="help-item"> | |
| 669 | <strong><a href="/refactors">/refactors</a> — multi-repo | |
| 670 | refactor agent.</strong> Paste a brief like "rename the{" "} | |
| 671 | <code>cents</code> field to <code>amountMinor</code> across | |
| 672 | every API repo." Claude walks each repo, generates a patch, | |
| 673 | and opens a draft PR per repo. Tracking dashboard shows | |
| 674 | per-repo status (drafted / pushed / merged / failed). | |
| 675 | </div> | |
| 676 | <div class="help-item"> | |
| 677 | <strong><a href="/specs">/specs</a> — spec-to-PR loop.</strong> | |
| 678 | Every <code>.gluecron/specs/*.md</code> file across your | |
| 679 | repos shows up here. Add a spec, push it, then either run | |
| 680 | the spec-to-PR generator from the page or label the file | |
| 5acce80 | 681 | and let autopilot run it automatically. |
| c6018a5 | 682 | </div> |
| 683 | </div> | |
| 684 | </section> | |
| 685 | ||
| 686 | {/* ─── Chat with a repo ─── */} | |
| 687 | <section id="repo-chat" class="help-section"> | |
| 688 | <div class="help-section-head"> | |
| 689 | <div class="help-section-eyebrow">Per-repo</div> | |
| 690 | <h2 class="help-section-title">Chat with a repo</h2> | |
| 691 | <p class="help-section-desc"> | |
| 692 | Rubber-duck a question against any single repo. Powered by | |
| 693 | the semantic code index — Claude pulls the relevant files | |
| 694 | on every turn so answers stay grounded in your actual code. | |
| 695 | </p> | |
| 696 | </div> | |
| 697 | <div class="help-section-body"> | |
| 698 | <div class="help-item"> | |
| 699 | Visit <code>/:owner/:repo/chat</code> on any repo you can | |
| 700 | read (the dashboard <em>Quick actions</em> panel has a | |
| 701 | one-click link). Ask "where does auth happen?", "what does | |
| 702 | this Drizzle migration do?", "draft a test for {`<file>`}". | |
| 703 | The chat scrolls forever and the context is freshly retrieved | |
| 704 | on every message — so file moves and recent pushes are | |
| 705 | immediately visible to Claude. | |
| 706 | </div> | |
| 707 | <div class="help-item"> | |
| 708 | <strong>Foundation: semantic search.</strong>{" "} | |
| 709 | <code>/:owner/:repo/semantic-search?q=…</code> is the | |
| 710 | underlying retrieval. Chunks are embedded with{" "} | |
| 711 | <code>voyage-code-3</code> when <code>VOYAGE_API_KEY</code>{" "} | |
| 712 | is set; otherwise a lexical fallback (still useful — same | |
| 713 | chunking and ranking, just no embeddings). | |
| 714 | </div> | |
| 715 | </div> | |
| 716 | </section> | |
| 717 | ||
| 718 | {/* ─── Branch previews ─── */} | |
| 719 | <section id="previews" class="help-section"> | |
| 720 | <div class="help-section-head"> | |
| 721 | <div class="help-section-eyebrow">Per-repo</div> | |
| 722 | <h2 class="help-section-title">Branch previews</h2> | |
| 723 | <p class="help-section-desc"> | |
| 724 | Every non-default branch with a Dockerfile or a{" "} | |
| 725 | <code>.gluecron/preview.yml</code> gets an ephemeral preview | |
| 726 | URL. Spin up, share, tear down — automatically on push. | |
| 727 | </p> | |
| 728 | </div> | |
| 729 | <div class="help-section-body"> | |
| 730 | <div class="help-item"> | |
| 731 | Open <code>/:owner/:repo/previews</code> to see the list of | |
| 732 | live previews for the repo. Each row shows the branch, the | |
| 733 | last commit, the preview URL, and the most recent build log. | |
| 734 | Previews self-destruct when the branch is deleted or merged. | |
| 735 | </div> | |
| 736 | <div class="help-item"> | |
| 737 | <strong>Linked from PRs.</strong> Whenever a PR is opened | |
| 738 | against the default branch, the PR header surfaces the | |
| 739 | preview URL so reviewers click straight through to a running | |
| 740 | instance instead of pulling locally. | |
| 741 | </div> | |
| 742 | </div> | |
| 743 | </section> | |
| 744 | ||
| 79ed944 | 745 | {/* ─── PR sandboxes (migration 0067) ─── */} |
| 746 | <section id="pr-sandboxes" class="help-section"> | |
| 747 | <div class="help-section-head"> | |
| 748 | <div class="help-section-eyebrow">Per-PR</div> | |
| 749 | <h2 class="help-section-title">Runnable PR sandboxes</h2> | |
| 750 | <p class="help-section-desc"> | |
| 751 | Every PR can spin up a live, executable sandbox at{" "} | |
| 752 | <code>pr-N-owner-repo.sandbox.gluecron.com</code>. | |
| 753 | Reviewers click "Try this PR live" and poke the change in | |
| 754 | a real browser before merging. Auto-destroys after 4h. | |
| 755 | </p> | |
| 756 | </div> | |
| 757 | <div class="help-section-body"> | |
| 758 | <div class="help-item"> | |
| 759 | <strong>Opt-in defaults.</strong> Per-PR sandboxes are | |
| 760 | triggered manually from the PR detail page; flip{" "} | |
| 761 | <code>auto_pr_sandbox</code> on in repo settings to make | |
| 762 | every newly opened PR provision one automatically. | |
| 763 | </div> | |
| 764 | <div class="help-item"> | |
| 765 | <strong>Customise via <code>.gluecron/playground.yml</code>.</strong>{" "} | |
| 766 | Commit this file at the repo root to control what the | |
| 767 | sandbox runs. If it's missing, Claude drafts one from your | |
| 768 | repo on first provision. | |
| 769 | <pre class="help-code"> | |
| 770 | {`# .gluecron/playground.yml | |
| 771 | runtime: docker | |
| 772 | image: node:20-alpine | |
| 773 | ports: [3000] | |
| 774 | seed: | |
| 775 | - "npm install" | |
| 776 | - "node scripts/seed-demo.js" | |
| 777 | command: "npm start" | |
| 778 | env: | |
| 779 | NODE_ENV: development`} | |
| 780 | </pre> | |
| 781 | </div> | |
| 782 | <div class="help-item"> | |
| 783 | <strong>API.</strong> Poll{" "} | |
| 784 | <code>GET /:owner/:repo/pulls/:n/sandbox</code> for the | |
| 785 | status JSON. <code>POST .../sandbox/provision</code> and{" "} | |
| 786 | <code>POST .../sandbox/destroy</code> drive the lifecycle. | |
| 787 | Sandboxes are deterministic by PR number, so the URL is | |
| 788 | stable across re-provisions. | |
| 789 | </div> | |
| 790 | </div> | |
| 791 | </section> | |
| 792 | ||
| 9b3a183 | 793 | {/* ─── Cloud dev environments (migration 0072) ─── */} |
| 794 | <section id="dev-envs" class="help-section"> | |
| 795 | <div class="help-section-eyebrow">Per-repo</div> | |
| 796 | <h2 class="help-section-title">Cloud dev environments</h2> | |
| 797 | <p class="help-section-desc"> | |
| 798 | Hit <code>/:owner/:repo/dev</code> to get a hosted VS Code IDE | |
| 799 | in your browser, backed by a cold-start container. One env per | |
| 800 | (repo, user); idle envs stop themselves after{" "} | |
| 801 | <strong>30 minutes</strong> so we don't leak compute. | |
| 802 | Customise per-repo via <code>.gluecron/dev.yml</code>. | |
| 803 | </p> | |
| 804 | <div class="help-section-body"> | |
| 805 | <div class="help-item"> | |
| 806 | <strong>Opt-in defaults.</strong> Cloud dev environments are | |
| 807 | off by default. Flip the toggle in repo settings under{" "} | |
| 808 | <code>Settings → Dev environments</code> to surface the route | |
| 809 | on your repo. | |
| 810 | </div> | |
| 811 | <div class="help-item"> | |
| 812 | <strong>Customise via <code>.gluecron/dev.yml</code>.</strong>{" "} | |
| 813 | Commit this file at the repo root to control what your dev | |
| 814 | env runs. If it's missing, Claude drafts one from your | |
| 815 | repo on first start. | |
| 816 | <pre class="help-code"> | |
| 817 | {`# .gluecron/dev.yml — Node example | |
| 818 | image: node:20-alpine | |
| 819 | ports: [3000] | |
| 820 | install: | |
| 821 | - npm install | |
| 822 | postCreate: | |
| 823 | - npm run db:seed | |
| 824 | command: npm run dev | |
| 825 | recommendedExtensions: | |
| 826 | - dbaeumer.vscode-eslint | |
| 827 | - esbenp.prettier-vscode`} | |
| 828 | </pre> | |
| 829 | <pre class="help-code"> | |
| 830 | {`# .gluecron/dev.yml — Python example | |
| 831 | image: python:3.12-slim | |
| 832 | ports: [8000] | |
| 833 | install: | |
| 834 | - pip install -r requirements.txt | |
| 835 | postCreate: | |
| 836 | - python manage.py migrate | |
| 837 | command: python manage.py runserver 0.0.0.0:8000 | |
| 838 | recommendedExtensions: | |
| 839 | - ms-python.python | |
| 840 | - ms-python.vscode-pylance`} | |
| 841 | </pre> | |
| 842 | <pre class="help-code"> | |
| 843 | {`# .gluecron/dev.yml — Rust example | |
| 844 | image: rust:1.78 | |
| 845 | ports: [8080] | |
| 846 | install: | |
| 847 | - cargo fetch | |
| 848 | postCreate: [] | |
| 849 | command: cargo run | |
| 850 | recommendedExtensions: | |
| 851 | - rust-lang.rust-analyzer | |
| 852 | - vadimcn.vscode-lldb`} | |
| 853 | </pre> | |
| 854 | </div> | |
| 855 | <div class="help-item"> | |
| 856 | <strong>API.</strong>{" "} | |
| 857 | <code>POST /api/v2/repos/:owner/:repo/dev/start</code>{" "} | |
| 858 | provisions (or warms-up) an env;{" "} | |
| 859 | <code>POST /api/v2/repos/:owner/:repo/dev/stop</code>{" "} | |
| 860 | gracefully stops one; and{" "} | |
| 861 | <code>GET /api/v2/repos/:owner/:repo/dev/status</code>{" "} | |
| 862 | returns the JSON shape used by the in-page poller. | |
| 863 | </div> | |
| 864 | <div class="help-item"> | |
| 865 | <strong>Idle sweep.</strong> The{" "} | |
| 866 | <code>dev-env-idle-sweep</code> autopilot task runs every | |
| 867 | 5 minutes and stops any env whose{" "} | |
| 868 | <code>last_active_at + idle_minutes</code> has passed. Each | |
| 869 | page hit bumps <code>last_active_at</code> so an open IDE | |
| 870 | tab keeps the env warm. | |
| 871 | </div> | |
| 872 | </div> | |
| 873 | </section> | |
| 874 | ||
| c6018a5 | 875 | {/* ─── Migration assistant ─── */} |
| 876 | <section id="migrations" class="help-section"> | |
| 877 | <div class="help-section-head"> | |
| 878 | <div class="help-section-eyebrow">Per-repo</div> | |
| 879 | <h2 class="help-section-title">Migration assistant</h2> | |
| 880 | <p class="help-section-desc"> | |
| 881 | When you touch a Drizzle schema, Claude proposes the | |
| 882 | corresponding migration SQL and a one-line rollback plan. | |
| 883 | No more "did I forget the migration?" PRs. | |
| 884 | </p> | |
| 885 | </div> | |
| 886 | <div class="help-section-body"> | |
| 887 | <div class="help-item"> | |
| 888 | Visit <code>/:owner/:repo/migrations/propose</code> and | |
| 889 | point the assistant at a recent schema change. It returns | |
| 890 | the SQL diff, an up/down script, and a checklist of edge | |
| 891 | cases (NULL→NOT NULL, type widening, default backfill). Save | |
| 892 | the suggestion straight into <code>drizzle/NNNN_*.sql</code>{" "} | |
| 893 | when you're happy with it. | |
| 894 | </div> | |
| 895 | <div class="help-item"> | |
| 896 | <strong>Discoverability.</strong> Surfaced from{" "} | |
| 897 | <code>Settings → Integrations</code> on the repo, and | |
| 898 | auto-pinged when a push modifies <code>src/db/schema.ts</code>{" "} | |
| 899 | without a sibling migration file. | |
| 900 | </div> | |
| 901 | </div> | |
| 902 | </section> | |
| 903 | ||
| 904 | {/* ─── PR slash commands ─── */} | |
| 905 | <section id="slash-commands" class="help-section"> | |
| 906 | <div class="help-section-head"> | |
| 907 | <div class="help-section-eyebrow">PR power</div> | |
| 908 | <h2 class="help-section-title">PR slash commands</h2> | |
| 909 | <p class="help-section-desc"> | |
| 910 | Type <code>/</code> at the start of a PR comment to invoke | |
| 911 | Claude inline. The composer hint shows the list as you type. | |
| 912 | </p> | |
| 913 | </div> | |
| 914 | <div class="help-section-body"> | |
| 915 | <div class="help-item"> | |
| 916 | <strong>Available commands.</strong> | |
| 917 | <pre class="help-code"> | |
| 918 | {`/review Re-run the AI reviewer on the latest diff | |
| 919 | /summarise Drop a fresh PR summary into the description | |
| 920 | /test-plan Generate a test plan from the diff | |
| 921 | /explain-this Plain-English summary of one file or hunk | |
| 922 | /risk Score the diff for breaking-change risk | |
| 923 | /migrate Propose a Drizzle migration for schema changes | |
| 924 | /release-notes Draft release notes covering this PR only | |
| 925 | /help List every command`} | |
| 926 | </pre> | |
| 927 | </div> | |
| 928 | <div class="help-item"> | |
| 929 | Commands are deterministic when <code>ANTHROPIC_API_KEY</code>{" "} | |
| 930 | is missing (fallbacks summarise file lists; no model output). | |
| 931 | They also work from the CLI: <code>gluecron pr cmd /review</code>. | |
| 932 | </div> | |
| 933 | </div> | |
| 934 | </section> | |
| 935 | ||
| 936 | {/* ─── AI release notes ─── */} | |
| 937 | <section id="release-notes" class="help-section"> | |
| 938 | <div class="help-section-head"> | |
| 939 | <div class="help-section-eyebrow">Releases</div> | |
| 940 | <h2 class="help-section-title">AI release notes</h2> | |
| 941 | <p class="help-section-desc"> | |
| 942 | The release form has a <em>Generate notes</em> button that | |
| 943 | drafts a polished changelog from every PR merged since the | |
| 944 | previous tag. | |
| 945 | </p> | |
| 946 | </div> | |
| 947 | <div class="help-section-body"> | |
| 948 | <div class="help-item"> | |
| 949 | From <code>/:owner/:repo/releases/new</code>, type a new tag | |
| 950 | name and click <em>Generate notes</em>. Claude calls{" "} | |
| 951 | <code>POST /api/v2/repos/:owner/:repo/releases/notes</code>{" "} | |
| 952 | with the from/to tags and returns markdown grouped by{" "} | |
| 953 | <em>Features</em>, <em>Fixes</em>, <em>Internal</em>. Edit | |
| 954 | before publishing or accept as-is. | |
| 955 | </div> | |
| 956 | </div> | |
| 957 | </section> | |
| 958 | ||
| 959 | {/* ─── Agent multiplayer ─── */} | |
| 960 | <section id="agents" class="help-section"> | |
| 961 | <div class="help-section-head"> | |
| 962 | <div class="help-section-eyebrow">Multi-agent</div> | |
| 963 | <h2 class="help-section-title">Agent multiplayer</h2> | |
| 964 | <p class="help-section-desc"> | |
| 965 | Mint scoped tokens for AI agents, give each its own branch | |
| 966 | namespace + daily budget, and let them coordinate through | |
| 967 | the lease API so two Claudes never touch the same file. | |
| 968 | </p> | |
| 969 | </div> | |
| 970 | <div class="help-section-body"> | |
| 971 | <div class="help-item"> | |
| 972 | <strong>Manage agents</strong> at{" "} | |
| 973 | <a href="/settings/agents">/settings/agents</a>. Each agent | |
| 974 | gets a name, a branch namespace | |
| 975 | (<code>refs/heads/<namespace>*</code>), and a daily | |
| 976 | spend cap. Tokens are shown once on creation — copy them | |
| 977 | immediately. The same page lists the most recent leases | |
| 978 | (work-in-progress markers) per agent. | |
| 979 | </div> | |
| 980 | <div class="help-item"> | |
| 981 | <strong>Lease API.</strong>{" "} | |
| 982 | <code>POST /api/v2/agents/leases</code> acquires a lease on | |
| 983 | an issue, PR, or file path. Agents see currently-held | |
| 984 | leases via <code>GET /api/v2/agents/leases</code> and back | |
| 985 | off when a conflict is hit. Full protocol is in{" "} | |
| 986 | <code>docs/multiplayer.md</code> on the gluecron source repo. | |
| 987 | </div> | |
| 988 | </div> | |
| 989 | </section> | |
| 990 | ||
| 991 | {/* ─── Semantic search API ─── */} | |
| 992 | <section id="semantic" class="help-section"> | |
| 993 | <div class="help-section-head"> | |
| 994 | <div class="help-section-eyebrow">API</div> | |
| 995 | <h2 class="help-section-title">Semantic search API</h2> | |
| 996 | <p class="help-section-desc"> | |
| 997 | The same index that powers <em>Chat with a repo</em> is | |
| 998 | available as a JSON endpoint. | |
| 999 | </p> | |
| 1000 | </div> | |
| 1001 | <div class="help-section-body"> | |
| 1002 | <div class="help-item"> | |
| 1003 | <pre class="help-code"> | |
| 1004 | {`curl -H "Authorization: Bearer glc_…" \\ | |
| 1005 | "https://<your-host>/api/v2/repos/<owner>/<repo>/semantic-search?q=password+hashing&limit=10"`} | |
| 1006 | </pre> | |
| 1007 | Returns a JSON array of <code>{`{ path, startLine, endLine, snippet, score }`}</code>{" "} | |
| 1008 | objects sorted by relevance. When <code>VOYAGE_API_KEY</code>{" "} | |
| 1009 | is unset on the server the endpoint falls back to lexical | |
| 1010 | ranking — useful for offline / air-gapped installs. | |
| 1011 | </div> | |
| 1012 | </div> | |
| 1013 | </section> | |
| 1014 | ||
| 9018b1f | 1015 | {/* ─── Setup AI commits ─── */} |
| 1016 | <section id="ai-commits" class="help-section"> | |
| 1017 | <div class="help-section-head"> | |
| 1018 | <div class="help-section-eyebrow">CLI</div> | |
| 1019 | <h2 class="help-section-title">Setup AI commits</h2> | |
| 1020 | <p class="help-section-desc"> | |
| 1021 | Let Claude write your commit messages. Two ways in: an | |
| 1022 | explicit <code>gluecron commit</code> wrapper, or a git | |
| 1023 | hook that fires whenever <code>git commit</code> runs | |
| 1024 | without <code>-m</code>. | |
| 1025 | </p> | |
| 1026 | </div> | |
| 1027 | <div class="help-section-body"> | |
| 1028 | <div class="help-item"> | |
| 1029 | <strong>1. Install the CLI.</strong> Grab a personal | |
| 1030 | access token from{" "} | |
| 1031 | <a href="/settings/tokens">/settings/tokens</a>, then: | |
| 1032 | <pre class="help-code"> | |
| 1033 | {`bun build --compile --outfile gluecron cli/gluecron.ts | |
| 1034 | sudo mv gluecron /usr/local/bin/ | |
| 1035 | gluecron login # paste the token`} | |
| 1036 | </pre> | |
| 1037 | </div> | |
| 1038 | <div class="help-item"> | |
| 1039 | <strong>2. Use <code>gluecron commit</code>.</strong>{" "} | |
| 1040 | Stage your changes the usual way, then: | |
| 1041 | <pre class="help-code"> | |
| 1042 | {`gluecron commit # AI drafts → [y]es / [e]dit / [n]o | |
| 1043 | gluecron commit -a # same, but stages tracked changes first | |
| 1044 | gluecron commit -m "..." # plain pass-through, no AI`} | |
| 1045 | </pre> | |
| 1046 | The draft is a Conventional Commit by default | |
| 1047 | (<code>feat(scope): subject</code> + body explaining why). | |
| 1048 | Pass <code>--plain</code> for a plain-English subject. | |
| 1049 | </div> | |
| 1050 | <div class="help-item"> | |
| 1051 | <strong>3. Or: install the git hook.</strong> One-time | |
| 1052 | setup; every plain <code>git commit</code> (no <code>-m</code>) | |
| 1053 | gets a draft pre-filled into the editor. | |
| 1054 | <pre class="help-code"> | |
| 1055 | {`cd /path/to/your/repo | |
| 1056 | gluecron hook install commit-msg | |
| 1057 | # undo: | |
| 1058 | gluecron hook uninstall commit-msg`} | |
| 1059 | </pre> | |
| 1060 | The hook only fires when the message is empty — explicit | |
| 1061 | <code> -m</code>, <code>--amend</code>, and merge commits | |
| 1062 | are left untouched. | |
| 1063 | </div> | |
| 1064 | <div class="help-item"> | |
| 1065 | All AI calls hit <code>POST /api/v2/ai/commit-message</code>, | |
| 1066 | rate-limited to <strong>60 requests/minute per token</strong>. | |
| 1067 | If <code>ANTHROPIC_API_KEY</code> is unset on the server, | |
| 1068 | the endpoint falls back to a deterministic heuristic so | |
| 1069 | the CLI keeps working. | |
| 1070 | </div> | |
| 1071 | </div> | |
| 1072 | </section> | |
| 1073 | ||
| bdb51e4 | 1074 | {/* ─── Shortcuts ─── */} |
| 1075 | <section id="shortcuts" class="help-section"> | |
| 1076 | <div class="help-section-head"> | |
| 1077 | <div class="help-section-eyebrow">Power user</div> | |
| 1078 | <h2 class="help-section-title">Keyboard shortcuts</h2> | |
| 1079 | <p class="help-section-desc"> | |
| 1080 | Press <code>?</code> on any page to pop the overlay. | |
| 1081 | </p> | |
| 1082 | </div> | |
| 1083 | <div class="help-section-body"> | |
| 1084 | <div class="help-item"> | |
| 1085 | gluecron ships a full keyboard-first mode — see{" "} | |
| 1086 | <a href="/shortcuts">/shortcuts</a> for the complete cheat | |
| 1087 | sheet. Press <code>?</code> on any page to pop the overlay. | |
| 80bed05 | 1088 | </div> |
| 1089 | </div> | |
| 1090 | </section> | |
| 1091 | ||
| bdb51e4 | 1092 | {/* ─── API ─── */} |
| 1093 | <section id="api" class="help-section"> | |
| 1094 | <div class="help-section-head"> | |
| 1095 | <div class="help-section-eyebrow">Reference</div> | |
| 1096 | <h2 class="help-section-title">API</h2> | |
| 1097 | <p class="help-section-desc"> | |
| 1098 | REST + GraphQL surfaces, both documented inline. | |
| 1099 | </p> | |
| 1100 | </div> | |
| 1101 | <div class="help-section-body"> | |
| 1102 | <div class="help-item"> | |
| 1103 | Full REST + GraphQL reference lives at{" "} | |
| 1104 | <a href="/api/docs">/api/docs</a>. The GraphQL explorer is at{" "} | |
| 1105 | <a href="/api/graphql">/api/graphql</a>. | |
| 80bed05 | 1106 | </div> |
| 1107 | </div> | |
| 1108 | </section> | |
| 1109 | ||
| c6018a5 | 1110 | {/* ─── Build-agent integration spec ─── */} |
| 1111 | <section id="build-agents" class="help-section"> | |
| 1112 | <div class="help-section-head"> | |
| 1113 | <div class="help-section-eyebrow">For AI vendors</div> | |
| 1114 | <h2 class="help-section-title">Build-agent integration</h2> | |
| 1115 | <p class="help-section-desc"> | |
| 1116 | Public spec for AI build-agent vendors (Holden Mercer, | |
| 1117 | Cursor, Claude Code, etc.) who want to read issues, open | |
| 1118 | PRs, and post review comments via the Gluecron API. | |
| 1119 | </p> | |
| 1120 | </div> | |
| 1121 | <div class="help-section-body"> | |
| 1122 | <div class="help-item"> | |
| 1123 | The full integration contract lives at{" "} | |
| 1124 | <a href="/docs/build-agent-integration">/docs/build-agent-integration</a>{" "} | |
| 1125 | — endpoint list, auth scopes, webhook payloads, and the | |
| 1126 | <code>ai:build</code> label convention. | |
| 1127 | </div> | |
| 0feb720 | 1128 | <div class="help-item"> |
| 1129 | Prefer model-context-protocol over REST? Same page now | |
| 1130 | documents the full 50+ <strong>MCP tool surface</strong> at{" "} | |
| 1131 | <a href="/docs/build-agent-integration#ba-mcp-title">/docs/build-agent-integration</a>{" "} | |
| 1132 | — every Gluecron action callable from any Claude/Cursor/etc. | |
| 1133 | tool-use loop. The JSON-RPC endpoint is{" "} | |
| 1134 | <code>POST /mcp</code>. | |
| 1135 | </div> | |
| c6018a5 | 1136 | </div> |
| 1137 | </section> | |
| 1138 | ||
| c4e643c | 1139 | {/* ─── Self-host (single binary) ─── */} |
| 1140 | <section id="self-host" class="help-section"> | |
| 1141 | <div class="help-section-head"> | |
| 1142 | <div class="help-section-eyebrow">Self-host</div> | |
| 1143 | <h2 class="help-section-title">Single-binary self-host</h2> | |
| 1144 | <p class="help-section-desc"> | |
| 1145 | GitHub Enterprise Server is a 50 GB blob and a week of | |
| 1146 | professional services. Gluecron self-host is a ~200 MB | |
| 1147 | binary and 60 seconds. One curl, you own the whole stack. | |
| 1148 | </p> | |
| 1149 | </div> | |
| 1150 | <div class="help-section-body"> | |
| 1151 | <div class="help-item"> | |
| 1152 | <strong>One-liner.</strong> | |
| 1153 | <pre><code>curl -fsSL https://gluecron.com/install-server | bash</code></pre> | |
| 1154 | The script detects your OS + arch, downloads the right | |
| 1155 | binary from <code>/dist/</code>, verifies SHA-256 against{" "} | |
| 1156 | <code>/dist/SHA256SUMS</code>, installs to{" "} | |
| 1157 | <code>/opt/gluecron/bin/gluecron-server</code> (or | |
| 1158 | <code>~/.gluecron/bin</code> with no sudo), provisions | |
| 1159 | Postgres, writes <code>/etc/gluecron.env</code>, runs | |
| 1160 | migrations, and starts the systemd unit (linux) or launchd | |
| 1161 | plist (darwin). | |
| 1162 | </div> | |
| 1163 | <div class="help-item"> | |
| 1164 | <strong>Hardware requirements.</strong> | |
| 1165 | <ul> | |
| 1166 | <li>4 GB RAM (8 GB for teams > 20)</li> | |
| 1167 | <li>20 GB disk for repos + Postgres data</li> | |
| 1168 | <li>Postgres 14+ (auto-installed via docker if missing)</li> | |
| 1169 | <li>Linux (x64 / arm64) or macOS (x64 / arm64)</li> | |
| 1170 | </ul> | |
| 1171 | </div> | |
| 1172 | <div class="help-item"> | |
| 1173 | <strong>Configuration walkthrough.</strong> The installer | |
| 1174 | writes <code>/etc/gluecron.env</code> seeded from{" "} | |
| 1175 | <code>.env.example</code>. At minimum, set: | |
| 1176 | <ul> | |
| 1177 | <li><code>DATABASE_URL</code> — Postgres connection string</li> | |
| 1178 | <li><code>APP_BASE_URL</code> — public URL of the instance</li> | |
| 1179 | <li><code>PORT</code> — listen port (default 3010)</li> | |
| 1180 | <li><code>GIT_REPOS_PATH</code> — bare-repo directory</li> | |
| 1181 | </ul> | |
| 1182 | Anything else (Anthropic key for AI features, GateTest | |
| 1183 | callback secret, OAuth providers) can be added later | |
| 1184 | without a restart via <code>/admin/integrations</code>. | |
| 1185 | </div> | |
| 1186 | <div class="help-item"> | |
| 1187 | <strong>Operations.</strong> | |
| 1188 | <ul> | |
| 1189 | <li> | |
| 1190 | <em>Backup.</em>{" "} | |
| 1191 | <code>pg_dump $DATABASE_URL | gzip > gluecron-$(date +%F).sql.gz</code>{" "} | |
| 1192 | plus <code>tar -czf repos-$(date +%F).tgz /opt/gluecron/repos</code>. | |
| 1193 | </li> | |
| 1194 | <li> | |
| 1195 | <em>Restore.</em> Stop systemd, restore the SQL dump | |
| 1196 | with <code>gunzip -c < dump.sql.gz | psql $DATABASE_URL</code>, | |
| 1197 | untar the repos, and start the unit. | |
| 1198 | </li> | |
| 1199 | <li> | |
| 1200 | <em>Upgrade.</em> Re-run the installer — it overwrites | |
| 1201 | the binary in place and restarts the service. The | |
| 1202 | migrations runner is idempotent. | |
| 1203 | </li> | |
| 1204 | <li> | |
| 1205 | <em>Logs.</em>{" "} | |
| 1206 | <code>journalctl -u gluecron -f</code> (linux) or{" "} | |
| 1207 | <code>tail -f ~/.gluecron/data/gluecron.err.log</code>{" "} | |
| 1208 | (darwin). | |
| 1209 | </li> | |
| 1210 | </ul> | |
| 1211 | </div> | |
| 1212 | <div class="help-item"> | |
| 1213 | <strong>Versus GitHub Enterprise Server.</strong> GHES is a | |
| 1214 | 50 GB OVA image, requires VMware/Hyper-V, and bills | |
| 1215 | per-seat. Gluecron self-host is a single binary, runs | |
| 1216 | anywhere bun runs, and is BYO-license. | |
| 1217 | </div> | |
| 1218 | </div> | |
| 1219 | </section> | |
| 1220 | ||
| bdb51e4 | 1221 | <p class="help-footnote"> |
| 80bed05 | 1222 | Something missing? Open an issue on gluecron's source repo. |
| 1223 | </p> | |
| 1224 | </div> | |
| 1225 | </Layout> | |
| 1226 | ); | |
| 1227 | }); | |
| 1228 | ||
| 1229 | export default help; |