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.

411 linesCodeBlameRaw
1import { type RouteConfig, index, layout, route } from "@react-router/dev/routes";
2
3export default [
4 index("routes/home.tsx"),
5 route("login", "routes/login.tsx"),
6 // The second step of signing in, for an account with two-factor authentication.
7 route("login/two-factor", "routes/login-two-factor.tsx"),
8 route("register", "routes/register.tsx"),
9 // An invite link: who sent it, then sign-up or joining. `invite` is reserved.
10 route("invite/:code", "routes/invite.tsx"),
11 route("logout", "routes/logout.tsx"),
12 route("verify", "routes/verify.tsx"),
13 // Where an account confirms its email address, with the code from the
14 // email; every other page sends it here until it has (lib/confirm-gate.ts).
15 route("confirm-email", "routes/confirm-email.tsx"),
16 route("forgot", "routes/forgot.tsx"),
17 route("reset", "routes/reset.tsx"),
18 route("device", "routes/device.tsx"),
19 route("oauth/authorize", "routes/oauth-authorize.tsx"),
20 route("new", "routes/new.tsx"),
21 // GitHub: signing in with it, and bringing repositories across through
22 // g1t's GitHub App. `auth` and `integrations` are reserved names.
23 route("new/github", "routes/new-github.tsx"),
24 route("auth/github", "routes/auth-github.ts"),
25 route("auth/github/callback", "routes/auth-github-callback.tsx"),
26 route("auth/github/username", "routes/auth-github-username.tsx"),
27 // A workspace's single sign-on: setting off to its identity provider,
28 // coming back from it (OpenID Connect and OAuth 2.0), what a SAML sign-in
29 // that did not work says (the provider's POST is answered before React
30 // Router, workers/sso-saml.ts), and g1t's SAML metadata.
31 route("auth/sso/:owner", "routes/auth-sso.tsx"),
32 route("auth/sso/:owner/callback", "routes/auth-sso-callback.tsx"),
33 route("auth/sso/:owner/saml", "routes/auth-sso-saml.tsx"),
34 route("auth/sso/:owner/metadata", "routes/auth-sso-metadata.ts"),
35 route("integrations/github/install", "routes/github-install.ts"),
36 route("integrations/github/setup", "routes/github-setup.tsx"),
37 // Your own settings: one page each, so links can name the one they mean.
38 // `/settings` goes to the first; an old link's `#anchor` to its page.
39 route("settings", "routes/settings/layout.tsx", [
40 // Its pages fail inside its frame (routes/page-boundary.tsx).
41 layout("routes/page-boundary.tsx", { id: "routes/page-boundary/settings" }, [
42 index("routes/settings/index.tsx"),
43 route("profile", "routes/settings/profile.tsx"),
44 route("emails", "routes/settings/emails.tsx"),
45 route("notifications", "routes/settings/notifications.tsx"),
46 // Invite a friend: your invites to g1t.
47 route("invites", "routes/settings/invites.tsx"),
48 route("keys", "routes/settings/keys.tsx"),
49 // Your access tokens: the list, a new one, and each one's page.
50 route("tokens", "routes/settings/tokens.tsx"),
51 route("tokens/new", "routes/settings/token-new.tsx"),
52 route("tokens/:id", "routes/settings/token.tsx"),
53 route("github", "routes/settings/github.tsx"),
54 route("applications", "routes/settings/applications.tsx"),
55 route("integrations", "routes/settings/integrations.tsx"),
56 route("two-factor", "routes/settings/two-factor.tsx"),
57 route("security-log", "routes/settings/security-log.tsx"),
58 route("account", "routes/settings/account.tsx"),
59 ]),
60 ]),
61 // The account menu's header: name, primary email and invites left.
62 route("settings/menu.json", "routes/settings-menu-json.ts"),
63 // People, apart from workspaces: `u` is a reserved name. Their profile's
64 // tabs are paths (`/u/ada/pulls`); `?tab=` is sent on (lib/tab-paths.ts).
65 route("u/:username/:tab?", "routes/user.tsx"),
66 // The card that opens over a person's name or avatar (lib/hovercard.ts).
67 // `-` is no workspace's name, so nothing else is ever found here.
68 route("-/hovercard/user/:username", "routes/hovercard-user.ts"),
69 // A person's picture by username, for avatars drawn from a name alone.
70 route("-/avatar/user/:username", "routes/avatar-user.ts"),
71 // An image pasted, dropped or chosen in a comment box, kept for its Markdown.
72 route("-/attachments", "routes/attachments.ts"),
73 // Live notifications: each tab's feed socket, and the person's
74 // notification settings as JSON (services/notify).
75 route("-/live", "routes/notify/live.ts"),
76 // A page opened with an access token asks here for each socket's
77 // short-lived ticket (lib/socket-ticket.ts).
78 route("-/live/ticket", "routes/notify/ticket.ts"),
79 route("-/notify", "routes/notify/api.ts"),
80 route("explore", "routes/explore.tsx", { id: "explore" }),
81 route("pricing", "routes/pricing.tsx"),
82 route("features", "routes/features.tsx"),
83 route("search", "routes/search.tsx"),
84 // Each person's notifications, what the panel in the top bar fetches,
85 // and the address the page once had. Saved and Done are
86 // `/notifications/saved` and `/notifications/done`.
87 route("notifications/:view?", "routes/notifications.tsx"),
88 route("inbox", "routes/inbox-moved.ts"),
89 route("inbox.json", "routes/inbox-json.ts"),
90 // What the command palette shows as someone types.
91 route("search.json", "routes/search-json.ts"),
92 route("workspaces/new", "routes/workspace/new.tsx"),
93 // Workspace invitations waiting for the person's answer. `invitations` is reserved.
94 route("invitations", "routes/invitations.tsx"),
95 // People to invite, as the People page's invite form searches them.
96 route("-/people.json", "routes/people-json.ts"),
97 // The desktop app's runner: its registration token, and its reports (lib/desktop-runner.ts).
98 route("-/desktop/runner", "routes/desktop-runner.ts"),
99 // Trust pages: reserved names, like the rest above.
100 route("policies", "routes/policies.tsx"),
101 route("policies/:policy", "routes/policy.tsx"),
102 route("security", "routes/security.tsx"),
103 route("support", "routes/support.tsx"),
104 // Status moved to status.g1t.sh (apps/status); old links go there.
105 route("status", "routes/status.tsx"),
106 route("status.json", "routes/status-json.ts"),
107 route(".well-known/security.txt", "routes/security-txt.ts"),
108 // Where this g1t's parts are, for the phone app pointed at it (packages/contracts src/discovery.ts).
109 route(".well-known/g1t.json", "routes/well-known-g1t.ts"),
110 // For search engines: what may be crawled, and a map of the public pages.
111 route("robots.txt", "routes/robots-txt.ts"),
112 route("sitemap.xml", "routes/sitemap-xml.ts"),
113 // The desktop app: which to install, from its newest release.
114 route("download", "routes/download.tsx"),
115 // Releases of the desktop app, the self-hosted runner and the g1t CLI, from R2.
116 route("downloads/:tool/*", "routes/downloads-runner.ts"),
117 // The g1t CLI's install scripts, for Linux and macOS and for Windows. `install` is reserved.
118 route("install", "routes/install-script.ts", { id: "routes/install-sh" }),
119 route("install.ps1", "routes/install-script.ts", { id: "routes/install-ps1" }),
120 // A workspace's own pages sit under `-`, which no repository can be named.
121 route(":owner", "routes/workspace/layout.tsx", [
122 // Its pages fail inside its frame (routes/page-boundary.tsx).
123 layout("routes/page-boundary.tsx", { id: "routes/page-boundary/workspace" }, [
124 index("routes/workspace/overview.tsx"),
125 // Its pages, each in the sidebar: Overview (above), Projects, People, Insights; Teams and Packages below.
126 route("-/projects", "routes/workspace/projects.tsx"),
127 // People mode: the directory of people and each one's profile.
128 route("-/people", "routes/workspace/people.tsx"),
129 route("-/people/:username", "routes/workspace/people/person.tsx"),
130 // Workspace mode's Access: who is a member and their roles, the invitations sent, and who may do what.
131 route("-/members", "routes/workspace/members.tsx"),
132 route("-/members/invitations", "routes/workspace/member-invitations.tsx"),
133 route("-/permissions", "routes/workspace/permissions.tsx"),
134 // Single sign-on through the workspace's own identity provider.
135 route("-/sso", "routes/workspace/sso.tsx"),
136 route("-/insights", "routes/workspace/insights.tsx"),
137 // Pinning its projects, for the person signed in.
138 route("-/pins", "routes/workspace/pins.ts"),
139 // Getting started, for its owners: the guide's state, and dismissing
140 // it or skipping a step (components/onboarding.tsx).
141 route("-/onboarding", "routes/workspace/onboarding.ts"),
142 // Code's Overview: Mission control's code panels, for this workspace.
143 route("-/overview", "routes/workspace/code-overview.tsx"),
144 // The workspace itself, at a glance: members, plan and spend.
145 route("-/workspace", "routes/workspace/workspace-overview.tsx"),
146 // Teams: the list, a new one, and each team's pages.
147 route("-/teams", "routes/workspace/teams.tsx"),
148 route("-/teams/new", "routes/workspace/team-new.tsx"),
149 route("-/teams/:team", "routes/workspace/team/layout.tsx", [
150 index("routes/workspace/team/members.tsx"),
151 route("teams", "routes/workspace/team/teams.tsx"),
152 route("repositories", "routes/workspace/team/repositories.tsx"),
153 route("settings", "routes/workspace/team/settings.tsx"),
154 ]),
155 // The workspace's own access tokens: the list, a new one, and each one's page.
156 route("-/tokens", "routes/workspace/tokens.tsx"),
157 route("-/tokens/new", "routes/workspace/token-new.tsx"),
158 route("-/tokens/:id", "routes/workspace/token.tsx"),
159 // Its rules for members' personal access tokens, and approving them.
160 route("-/personal-access-tokens", "routes/workspace/personal-access-tokens.tsx"),
161 route("-/usage", "routes/workspace/usage.tsx"),
162 route("-/billing", "routes/workspace/billing.tsx"),
163 // What the workspace's AI providers say its organization spent, from
164 // their own cost reports (services/billing/src/provider_costs.rs).
165 route("-/provider-costs", "routes/workspace/provider-costs.tsx"),
166 route("-/billing/entries", "routes/workspace/statement-entries.ts"),
167 route("-/billing/statement.csv", "routes/workspace/statement-csv.ts"),
168 // The workspace's AI: its AI providers, managed or self-hosted, and
169 // what Ask answers with. A base setting, not an integration.
170 route("-/ai", "routes/workspace/ai.tsx"),
171 // The integrations directory, and the setup pages for alerts and
172 // trackers (lib/integration-sections).
173 route("-/integrations", "routes/workspace/integrations-directory.tsx"),
174 route("-/integrations/:section", "routes/workspace/integrations.tsx"),
175 // Ask g1t, from the top bar: what it answers with, and each answer,
176 // streamed (components/ask-composer).
177 route("-/ask", "routes/workspace/ask.ts"),
178 route("-/webhooks", "routes/workspace/webhooks.tsx"),
179 // The workspace's own emoji, for chat (components/emoji).
180 route("-/emoji", "routes/workspace/emoji.tsx"),
181 route("-/secrets", "routes/workspace/secrets.tsx"),
182 route("-/runners", "routes/workspace/runners.tsx"),
183 route("-/actions", "routes/workspace/actions-settings.tsx"),
184 route("-/packages", "routes/workspace/packages.tsx"),
185 route("-/packages/:ecosystem/*", "routes/workspace/package.tsx"),
186 route("-/settings", "routes/workspace/settings.tsx"),
187 // What members may do in chat: channels, emoji, default channels.
188 route("-/settings/chat", "routes/workspace/chat-settings.tsx"),
189 route("-/repositories", "routes/workspace/repositories.tsx"),
190 // Chat mode: channels by name, direct messages by id, and what the page
191 // calls as it runs: the live socket and the JSON for sending and reading.
192 route("-/chat/live", "routes/workspace/chat/live.ts"),
193 route("-/chat/api", "routes/workspace/chat/api.ts"),
194 // A person's card in Chat: their profile and teams here.
195 route("-/chat/person/:username", "routes/workspace/chat/person.ts"),
196 // A work item or pull request's card, over its chip in chat and g1t's answers.
197 route("-/chat/ref", "routes/workspace/chat/ref.ts"),
198 route("-/chat", "routes/workspace/chat/layout.tsx", [
199 index("routes/workspace/chat/index.tsx"),
200 route("browse", "routes/workspace/chat/browse.tsx"),
201 route("dm/:id", "routes/workspace/chat/channel.tsx", { id: "routes/workspace/chat/dm" }),
202 route(":channel", "routes/workspace/chat/channel.tsx"),
203 ]),
204 // Artifacts mode (code says "folio"): what its
205 // pages call as they run (an artifact's live socket, JSON, comments,
206 // uploads, export), then Home, making one, templates, the trash, the
207 // spaces, and each artifact by its address. Addresses are flat and end
208 // in the id, so renaming or moving one keeps links working.
209 route("-/artifacts/live", "routes/workspace/folios/live.ts"),
210 route("-/artifacts/api", "routes/workspace/folios/api.ts"),
211 route("-/artifacts/threads/:folio/*", "routes/workspace/folios/threads.ts"),
212 route("-/artifacts/upload", "routes/workspace/folios/upload.ts"),
213 route("-/artifacts/export", "routes/workspace/folios/export.ts"),
214 route("-/artifacts", "routes/workspace/folios/layout.tsx", [
215 index("routes/workspace/folios/home.tsx"),
216 route("new/:kind", "routes/workspace/folios/new.tsx"),
217 route("templates", "routes/workspace/folios/templates.tsx"),
218 route("trash", "routes/workspace/folios/trash.tsx"),
219 // Artifacts possibly out of date, and a project's docs folder, read-only.
220 route("stale", "routes/workspace/folios/stale.tsx"),
221 route("spaces", "routes/workspace/folios/spaces.tsx"),
222 route("spaces/new", "routes/workspace/folios/space-new.tsx"),
223 route("spaces/:space", "routes/workspace/folios/space.tsx"),
224 route("spaces/:space/settings", "routes/workspace/folios/space-settings.tsx"),
225 route("repo/:repoOwner/:repoName/*", "routes/workspace/folios/repo-file.tsx"),
226 route(":folio", "routes/workspace/folios/folio.tsx"),
227 route(":folio/history", "routes/workspace/folios/history.tsx"),
228 ]),
229 // Home, the workspace's front page (`-/today` leads there), where it
230 // marks your visit, and every app in it you can use, with pinning them
231 // to your rail.
232 route("-/home", "routes/workspace/home.tsx"),
233 route("-/home/seen", "routes/workspace/home-seen.ts"),
234 // Work: the workspace's work items, for every member. The list (its
235 // filters in the address), the board of them as they move, a new one,
236 // the labels and milestones they share with pull requests, `#12` read
237 // in the workspace, and each item. Sessions are Work's too: what is
238 // cooking across the workspace, in every repository of it the viewer
239 // may read (live sessions of every kind, the merge queues, what landed
240 // and what happened), and one session's page.
241 route("-/work", "routes/workspace/work/list.tsx"),
242 route("-/work/board", "routes/workspace/work/board.tsx"),
243 route("-/work/sessions", "routes/workspace/work/sessions/list.tsx"),
244 route("-/work/sessions/:id", "routes/workspace/work/sessions/session.tsx"),
245 route("-/work/new", "routes/workspace/work/new.tsx"),
246 route("-/work/labels", "routes/workspace/work/labels.tsx"),
247 route("-/work/milestones", "routes/workspace/work/milestones.tsx"),
248 route("-/work/milestones/:number", "routes/workspace/work/milestone.tsx"),
249 route("-/work/ref/:number", "routes/workspace/work/ref.ts"),
250 route("-/work/:number", "routes/workspace/work/item.tsx"),
251 route("-/today", "routes/workspace/moved.ts", { id: "routes/workspace/moved-today" }),
252 route("-/apps", "routes/workspace/apps.tsx"),
253 // Routines: standing work for @g1t, on a schedule or when something
254 // happens. Not on yet: the page shows what it will be, every control off.
255 route("-/routines", "routes/workspace/routines.tsx"),
256 // What Code's pages say to a member without Code.
257 route("-/code-access", "routes/workspace/code-access.tsx"),
258 route("-/security", "routes/workspace/security.tsx"),
259 route("-/security/patterns", "routes/workspace/security-patterns.tsx"),
260 route("-/security/bypass-requests", "routes/workspace/security-bypass.tsx"),
261 route("-/security/settings", "routes/workspace/security-settings.tsx"),
262 route("-/audit", "routes/workspace/audit.tsx"),
263 route("-/audit/export", "routes/workspace/audit-export.ts"),
264 route("-/guardrails", "routes/workspace/guardrails.tsx"),
265 route("-/rules", "routes/workspace/rules.tsx"),
266 route("-/rules/insights", "routes/workspace/rules.tsx", { id: "routes/workspace/rules-insights" }),
267 route("-/rules/:id", "routes/workspace/ruleset.tsx"),
268 // What the workspace will have across its projects.
269 route("-/soon/:feature", "routes/workspace/soon.tsx"),
270 ]),
271 ]),
272 // `#12` read in a repository: where Markdown's `#12` leads, and, as JSON,
273 // the card over a `#12` in a commit message or on a timeline.
274 route(":owner/:repo/ref/:number", "routes/repo/ref-card.ts"),
275 // A repository's issues, labels and milestones moved to its workspace's
276 // Work: old links are sent on (routes/repo/moved-work.ts), before the
277 // repository's own pages.
278 route(":owner/:repo/issues", "routes/repo/moved-work.ts", { id: "routes/repo/moved-issues" }),
279 route(":owner/:repo/issues/new", "routes/repo/moved-work.ts", { id: "routes/repo/moved-issue-new" }),
280 route(":owner/:repo/issues/:number", "routes/repo/moved-work.ts", { id: "routes/repo/moved-issue" }),
281 route(":owner/:repo/labels", "routes/repo/moved-work.ts", { id: "routes/repo/moved-labels" }),
282 route(":owner/:repo/milestones", "routes/repo/moved-work.ts", { id: "routes/repo/moved-milestones" }),
283 route(":owner/:repo/milestones/:number", "routes/repo/moved-work.ts", { id: "routes/repo/moved-milestone" }),
284 // Why a line is the way it is, fetched by the blame view.
285 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
286 // Files of a large change with their lines, fetched as the diff view reaches them.
287 route(":owner/:repo/diff-files.json", "routes/repo/diff-files.ts"),
288 // Its branch names, for changing the branch a pull request merges into.
289 route(":owner/:repo/branches.json", "routes/repo/branch-names.ts"),
290 // An invitation to a repository, answered by someone who cannot see it yet.
291 route(":owner/:repo/invitations", "routes/repo/invitations.tsx"),
292 // The Files page's About as JSON, asked again while it is first worked out.
293 route(":owner/:repo/about.json", "routes/repo/about-json.ts"),
294 // Starring it, from the header's Star button.
295 route(":owner/:repo/star", "routes/repo/star.ts"),
296 // Bringing a fork's branch up to date with its parent's (components/fork-bar.tsx).
297 route(":owner/:repo/sync-fork", "routes/repo/sync-fork.ts"),
298 // Subscribing to its work items and pull requests, and watching it.
299 route(":owner/:repo/notifications", "routes/repo/notifications.ts"),
300 // A starter CI workflow, opened as a pull request (components/add-ci.tsx).
301 route(":owner/:repo/add-ci", "routes/repo/add-ci.ts"),
302 // A screenshot of a project's production, for its overview.
303 route(":owner/:repo/production.jpg", "routes/repo/production-screenshot.ts"),
304 // The same, of production deployed elsewhere, at its address.
305 route(":owner/:repo/production-elsewhere.jpg", "routes/repo/production-elsewhere.ts"),
306 // A file as it is, sent on to the usercontent origin (lib/usercontent.ts).
307 route(":owner/:repo/raw/:ref/*", "routes/repo/raw.ts"),
308 // A file's blame as JSON, fetched by its blame view (routes/repo/blob.tsx).
309 route(":owner/:repo/blame/:ref/*", "routes/repo/blame-data.ts"),
310 // A project: its overview first, its repository's code under Code. The
311 // 1:1 project of a repository has the repository's name, so every
312 // repository address below keeps working.
313 route(":owner/:repo", "routes/repo/layout.tsx", [
314 // Its pages fail inside its frame (routes/page-boundary.tsx).
315 layout("routes/page-boundary.tsx", { id: "routes/page-boundary/repo" }, [
316 index("routes/repo/overview.tsx"),
317 route("code", "routes/repo/code.tsx"),
318 route("tree/:ref/*", "routes/repo/tree.tsx"),
319 route("blob/:ref/*", "routes/repo/blob.tsx"),
320 route("archive/*", "routes/repo/archive.ts"),
321 route("commits", "routes/repo/commits.tsx"),
322 // Its tabs are paths: `branches/yours`, `branches/stale`, ….
323 route("branches/:tab?", "routes/repo/branches.tsx"),
324 route("tags", "routes/repo/tags.tsx"),
325 route("releases", "routes/repo/releases.tsx"),
326 route("releases/new", "routes/repo/release-new.tsx"),
327 route("releases/tag/*", "routes/repo/release.tsx"),
328 route("contributors", "routes/repo/contributors.tsx"),
329 route("activity", "routes/repo/activity.tsx"),
330 route("stargazers", "routes/repo/stargazers.tsx"),
331 // Forking it into a workspace, and the forks there are.
332 route("fork", "routes/repo/fork.tsx"),
333 route("forks", "routes/repo/forks.tsx"),
334 route("compare/*", "routes/repo/compare.tsx", { id: "routes/repo/compare-range" }),
335 route("compare", "routes/repo/compare.tsx"),
336 route("commit/:hash", "routes/repo/commit.tsx"),
337 // A check run reported on a commit: its report, annotations and buttons.
338 route("checks/:id", "routes/repo/check-run.tsx"),
339 route("pulls", "routes/repo/pulls.tsx"),
340 route("pulls/new", "routes/repo/pull-new.tsx"),
341 // Its tabs are paths: `pull/12/session`, `pull/12/files`.
342 route("pull/:number/:tab?", "routes/repo/pull.tsx"),
343 route("queue", "routes/repo/queue.tsx"),
344 route("usage", "routes/repo/usage.tsx"),
345 route("actions", "routes/repo/actions.tsx"),
346 route("actions/runs/:id", "routes/repo/actions-run.tsx"),
347 route("actions/runs/:id/artifacts/:name", "routes/repo/actions-artifact.ts"),
348 route("actions/jobs/:job/log", "routes/repo/actions-log.ts"),
349 route("actions/jobs/:job/log.txt", "routes/repo/actions-job-log-download.ts"),
350 route("actions/runs/:id/logs.zip", "routes/repo/actions-logs-download.ts"),
351 route("actions/workflows/:file/badge.svg", "routes/repo/actions-badge.ts"),
352 route("deployments", "routes/repo/deployments.tsx"),
353 route("deployments/:id", "routes/repo/deployment.tsx"),
354 // Observability: what the project's running software did (services/telemetry).
355 route("observability", "routes/repo/observability.tsx"),
356 route("observability/requests", "routes/repo/observability-requests.tsx"),
357 route("observability/requests/:id", "routes/repo/observability-request.tsx"),
358 route("observability/logs", "routes/repo/observability-logs.tsx"),
359 route("observability/traces", "routes/repo/observability-traces.tsx"),
360 route("observability/traces/:trace", "routes/repo/observability-trace.tsx"),
361 route("observability/errors", "routes/repo/observability-errors.tsx"),
362 route("observability/metrics", "routes/repo/observability-metrics.tsx"),
363 route("observability/settings", "routes/repo/observability-settings.tsx"),
364 // The live tail's socket, forwarded to the project's store.
365 route("observability/live", "routes/repo/observability-live.ts"),
366 // Security: an overview, then a page for each part. Old links to
367 // `security?tab=…` are sent on by the overview.
368 route("security", "routes/repo/security-overview.tsx"),
369 route("security/secret-scanning", "routes/repo/security-secrets.tsx"),
370 route("security/secret-scanning/patterns", "routes/repo/security-patterns.tsx"),
371 route("security/secret-scanning/:id", "routes/repo/security-secret.tsx"),
372 route("security/code-scanning", "routes/repo/security-code.tsx"),
373 route("security/code-scanning/setup", "routes/repo/security-code-setup.ts"),
374 route("security/code-scanning/:number", "routes/repo/security-code-alert.tsx"),
375 route("security/vulnerabilities", "routes/repo/security.tsx"),
376 route("security/dependency-graph", "routes/repo/security-graph.tsx"),
377 route("security/dependency-graph/sbom.json", "routes/repo/security-sbom.ts"),
378 route("security/dependency-updates", "routes/repo/security-updates.tsx"),
379 route("security/pulls/:number", "routes/repo/security-pull.tsx"),
380 route("security/settings", "routes/repo/security-settings.tsx"),
381 // Reporting: the policy's pull request, advisories, and private vulnerability reports.
382 route("security/policy/setup", "routes/repo/security-policy-setup.ts"),
383 route("security/advisories", "routes/repo/security-advisories.tsx"),
384 route("security/advisories/new", "routes/repo/security-advisory-edit.tsx", { id: "routes/repo/security-advisory-new" }),
385 route("security/advisories/:id", "routes/repo/security-advisory.tsx"),
386 route("security/advisories/:id/edit", "routes/repo/security-advisory-edit.tsx"),
387 route("security/reports", "routes/repo/security-reports.tsx"),
388 route("security/report", "routes/repo/security-report.tsx"),
389 route("settings", "routes/repo/settings.tsx"),
390 route("settings/repository", "routes/repo/settings-repository.tsx"),
391 route("settings/access", "routes/repo/settings-access.tsx"),
392 route("settings/keys", "routes/repo/settings-deploy-keys.tsx"),
393 route("settings/branches", "routes/repo/settings-branches.tsx"),
394 route("settings/rules", "routes/repo/settings-rules.tsx"),
395 route("settings/rules/insights", "routes/repo/settings-rules.tsx", { id: "routes/repo/settings-rules-insights" }),
396 route("settings/rules/:id", "routes/repo/settings-ruleset.tsx"),
397 route("settings/webhooks", "routes/repo/webhooks.tsx"),
398 route("settings/secrets", "routes/repo/secrets.tsx"),
399 route("settings/actions", "routes/repo/settings-actions.tsx"),
400 route("settings/environments", "routes/repo/settings-environments.tsx"),
401 route("settings/runners", "routes/repo/settings-runners.tsx"),
402 route("settings/deployments", "routes/repo/settings-deployments.tsx"),
403 route("settings/domains", "routes/repo/settings-domains.tsx"),
404 route("settings/guardrails", "routes/repo/settings-guardrails.tsx"),
405 // What the project will have: one page for each Soon in its menu.
406 route("soon/:feature", "routes/repo/soon.tsx"),
407 ]),
408 ]),
409 // Anything else: a 404 that still knows who is signed in.
410 route("*", "routes/not-found.tsx"),
411] satisfies RouteConfig;