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/web/app/routes.ts

97 lines5,143 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.

Initial g1t: services, event bus, intents and attempts1import { type RouteConfig, index, route } from "@react-router/dev/routes";
2
3export default [
4 index("routes/home.tsx"),
5 route("login", "routes/login.tsx"),
API and MCP server, Rust identity service, registration, site redesign6 route("register", "routes/register.tsx"),
Initial g1t: services, event bus, intents and attempts7 route("logout", "routes/logout.tsx"),
Email verification, password reset, and Git for AI scale positioning8 route("verify", "routes/verify.tsx"),
9 route("forgot", "routes/forgot.tsx"),
10 route("reset", "routes/reset.tsx"),
Device sign-in replaces registering and minting tokens over the API11 route("device", "routes/device.tsx"),
OAuth 2.1 sign-in for MCP clients and other applications12 route("oauth/authorize", "routes/oauth-authorize.tsx"),
Initial g1t: services, event bus, intents and attempts13 route("new", "routes/new.tsx"),
14 route("settings", "routes/settings.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains15 // People, apart from workspaces: `u` is a reserved name.
16 route("u/:username", "routes/user.tsx"),
API and MCP server, Rust identity service, registration, site redesign17 route("explore", "routes/explore.tsx", { id: "explore" }),
Prices keep themselves current with what g1t pays18 route("pricing", "routes/pricing.tsx"),
Search across all of g1t, Explore, and a command palette19 route("search", "routes/search.tsx"),
20 // What the command palette shows as someone types.
21 route("search.json", "routes/search-json.ts"),
Agents as a team: lifecycle, merge queue, billing and a new shell22 route("workspaces/new", "routes/workspace/new.tsx"),
23 // A workspace's own pages sit under `-`, which no repository can be named.
24 route(":owner", "routes/workspace/layout.tsx", [
25 index("routes/workspace/overview.tsx"),
26 route("-/people", "routes/workspace/people.tsx"),
27 route("-/tokens", "routes/workspace/tokens.tsx"),
Usage, like a hosting provider's: what agents cost, per day, task, repository and pull request28 route("-/usage", "routes/workspace/usage.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell29 route("-/billing", "routes/workspace/billing.tsx"),
The statement is a month at a time, a line per kind of charge30 route("-/billing/entries", "routes/workspace/statement-entries.ts"),
31 route("-/billing/statement.csv", "routes/workspace/statement-csv.ts"),
Integrations: your own model provider, alerts that open issues, tickets agents read32 route("-/integrations", "routes/workspace/integrations.tsx"),
Webhooks: every event, to your own addresses, signed and retried33 route("-/webhooks", "routes/workspace/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs34 route("-/secrets", "routes/workspace/secrets.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell35 route("-/settings", "routes/workspace/settings.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains36 route("-/agents", "routes/workspace/agents.tsx"),
37 route("-/memory", "routes/workspace/memory.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API38 route("-/context", "routes/workspace/context.tsx"),
39 route("-/security", "routes/workspace/security.tsx"),
40 route("-/audit", "routes/workspace/audit.tsx"),
41 route("-/audit/export", "routes/workspace/audit-export.ts"),
42 route("-/guardrails", "routes/workspace/guardrails.tsx"),
A flat project menu with Code first, views as tabs, and Stripe for every owner43 // What the workspace will have across its projects.
44 route("-/soon/:feature", "routes/workspace/soon.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell45 ]),
46 // Why a line is the way it is, fetched by the blame view.
47 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains48 // A project's agent runs as JSON, and stopping or messaging one.
49 route(":owner/:repo/agents.json", "routes/repo/agents-live.ts"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API50 // What a project's agent runs did, from the audit log, for the Agent panel.
51 route(":owner/:repo/audit.json", "routes/repo/audit-live.ts"),
Projects: what a workspace builds and runs, first on every page52 // A project: its overview first, its repository's code under Code. The
53 // 1:1 project of a repository has the repository's name, so every
54 // repository address below keeps working.
Initial g1t: services, event bus, intents and attempts55 route(":owner/:repo", "routes/repo/layout.tsx", [
Projects: what a workspace builds and runs, first on every page56 index("routes/repo/overview.tsx"),
57 route("code", "routes/repo/code.tsx"),
Initial g1t: services, event bus, intents and attempts58 route("tree/:ref/*", "routes/repo/tree.tsx"),
59 route("blob/:ref/*", "routes/repo/blob.tsx"),
API and MCP server, Rust identity service, registration, site redesign60 route("commits", "routes/repo/commits.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell61 route("commit/:hash", "routes/repo/commit.tsx"),
Issues and pull requests replace intents and attempts62 route("issues", "routes/repo/issues.tsx"),
63 route("issues/new", "routes/repo/issue-new.tsx"),
64 route("issues/:number", "routes/repo/issue.tsx"),
65 route("pulls", "routes/repo/pulls.tsx"),
Pull requests from branches66 route("pulls/new", "routes/repo/pull-new.tsx"),
Issues and pull requests replace intents and attempts67 route("pull/:number", "routes/repo/pull.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell68 route("queue", "routes/repo/queue.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains69 route("agents", "routes/repo/agents.tsx"),
70 route("agents/runs/:id", "routes/repo/agents-run.tsx"),
71 route("sessions", "routes/repo/sessions.tsx"),
72 route("sessions/:number", "routes/repo/session.tsx"),
73 route("memory", "routes/repo/memory.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs74 route("actions", "routes/repo/actions.tsx"),
75 route("actions/runs/:id", "routes/repo/actions-run.tsx"),
Actions: workflow_run, workflow.completed, artifacts on the run page, Node 2476 route("actions/runs/:id/artifacts/:name", "routes/repo/actions-artifact.ts"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs77 route("actions/jobs/:job/log", "routes/repo/actions-log.ts"),
Deployments: a preview for every pull request, production on g1t.page78 route("deployments", "routes/repo/deployments.tsx"),
79 route("deployments/:id", "routes/repo/deployment.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API80 route("security", "routes/repo/security.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell81 route("plans", "routes/repo/plans.tsx"),
82 route("plans/:id", "routes/repo/plan.tsx"),
83 route("settings", "routes/repo/settings.tsx"),
Projects: what a workspace builds and runs, first on every page84 route("settings/repository", "routes/repo/settings-repository.tsx"),
Webhooks: every event, to your own addresses, signed and retried85 route("settings/webhooks", "routes/repo/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs86 route("settings/secrets", "routes/repo/secrets.tsx"),
Secrets and variables: one list, rows per environment, for workflows and deployments87 route("settings/deployments", "routes/repo/settings-deployments.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains88 route("settings/domains", "routes/repo/settings-domains.tsx"),
Project dependencies: addresses, preview stacks, Affects, and agents who know89 route("settings/dependencies", "routes/repo/settings-dependencies.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API90 route("settings/guardrails", "routes/repo/settings-guardrails.tsx"),
91 route("settings/agents", "routes/repo/settings-agents.tsx"),
A menu shaped by how g1t works, Soon pages for every promise, and sudo for sales92 // What the project will have: one page for each Soon in its menu.
93 route("soon/:feature", "routes/repo/soon.tsx"),
Initial g1t: services, event bus, intents and attempts94 ]),
Webhooks: every event, to your own addresses, signed and retried95 // Anything else: a 404 that still knows who is signed in.
96 route("*", "routes/not-found.tsx"),
Initial g1t: services, event bus, intents and attempts97] satisfies RouteConfig;