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/code"; |
| 2 | import { TreeView } from "../../components/repo-view"; | |
| Rust repos service with shipping; pull requests kept in the model | 3 | import { repos } from "../../lib/services.server"; |
| Initial g1t: services, event bus, intents and attempts | 4 | import { getViewer, unwrap } from "../../lib/session.server"; |
| 5 | ||
| 6 | export async function loader({ params, context }: Route.LoaderArgs) { | |
| 7 | const path = { namespace: params.owner, name: params.repo }; | |
| Rust repos service with shipping; pull requests kept in the model | 8 | return unwrap(await repos.tree(path, getViewer(context), null, "")); |
| Initial g1t: services, event bus, intents and attempts | 9 | } |
| 10 | ||
| 11 | export default function Code({ loaderData }: Route.ComponentProps) { | |
| 12 | return <TreeView tree={loaderData} />; | |
| 13 | } |