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 attempts | 1 | import type { Route } from "./+types/blob"; |
| 2 | import { BlobView } from "../../components/repo-view"; | |
| API and MCP server, Rust identity service, registration, site redesign | 3 | import { highlight } from "../../lib/highlight.server"; |
| Rust repos service with shipping; pull requests kept in the model | 4 | import { repos } from "../../lib/services.server"; |
| Initial g1t: services, event bus, intents and attempts | 5 | import { getViewer, unwrap } from "../../lib/session.server"; |
| 6 | ||
| 7 | export function meta({ params }: Route.MetaArgs) { | |
| 8 | return [{ title: `${params["*"]} · ${params.owner}/${params.repo} · g1t` }]; | |
| 9 | } | |
| 10 | ||
| 11 | export async function loader({ params, context }: Route.LoaderArgs) { | |
| 12 | const path = { namespace: params.owner, name: params.repo }; | |
| API and MCP server, Rust identity service, registration, site redesign | 13 | const blob = unwrap( |
| Rust repos service with shipping; pull requests kept in the model | 14 | await repos.blob(path, getViewer(context), params.ref, params["*"] ?? ""), |
| Initial g1t: services, event bus, intents and attempts | 15 | ); |
| API and MCP server, Rust identity service, registration, site redesign | 16 | return { |
| 17 | blob, | |
| 18 | html: blob.text == null ? null : await highlight(blob.path, blob.text), | |
| 19 | }; | |
| Initial g1t: services, event bus, intents and attempts | 20 | } |
| 21 | ||
| 22 | export default function Blob({ loaderData }: Route.ComponentProps) { | |
| API and MCP server, Rust identity service, registration, site redesign | 23 | return <BlobView blob={loaderData.blob} html={loaderData.html} />; |
| Initial g1t: services, event bus, intents and attempts | 24 | } |