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.
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 1 | /** The audit log's entries, as the workspace's Audit log page shows them. */ |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 2 | |
| 3 | import { ShieldAlert, ShieldCheck } from "lucide-react"; | |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 4 | import { Link } from "react-router"; |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 5 | |
| 6 | import type { AuditEntry } from "@g1t/contracts"; | |
| 7 | ||
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 8 | import { actionLabel, ruleLabel, targetLabel } from "../lib/audit"; |
| The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after. | 9 | import { TimeAgo } from "./ui"; |
| 10 | import { Avatar } from "./ui/avatar"; | |
| 11 | import { Card } from "./ui/card"; | |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 12 | import { Hint } from "./ui/hint"; |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 13 | |
| 14 | /** Allowed or denied, and by which rule. */ | |
| 15 | export function OutcomeMark({ entry }: { entry: AuditEntry }) { | |
| 16 | const denied = entry.outcome === "denied"; | |
| 17 | return ( | |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 18 | <Hint label={`${entry.outcome}: ${ruleLabel(entry.rule)} (${entry.rule})`}> |
| 19 | <span | |
| 20 | className={`inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-0.5 text-xs ${ | |
| 21 | denied ? "bg-danger/10 text-danger ring-1 ring-danger/30" : "bg-raised text-muted ring-1 ring-line" | |
| 22 | }`} | |
| 23 | > | |
| 24 | {denied ? <ShieldAlert size={11} /> : <ShieldCheck size={11} />} | |
| 25 | {entry.outcome} | |
| 26 | </span> | |
| 27 | </Hint> | |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 28 | ); |
| 29 | } | |
| 30 | ||
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 31 | /** Who acted, with whoever acted for someone (an app, or an old agent) shown as working for them. */ |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 32 | export function ActorLine({ entry }: { entry: AuditEntry }) { |
| 33 | return ( | |
| 34 | <span className="flex min-w-0 items-center gap-2"> | |
| 35 | <Avatar name={entry.agent ?? entry.actor} size={18} square={entry.actorKind === "workspace"} /> | |
| 36 | <span className="truncate"> | |
| 37 | {entry.onBehalfOf ? ( | |
| 38 | <> | |
| 39 | <span className="font-medium">{entry.agent ?? entry.actor}</span> | |
| 40 | <span className="text-muted"> on behalf of </span> | |
| 41 | <span className="font-medium">{entry.onBehalfOf}</span> | |
| 42 | </> | |
| 43 | ) : ( | |
| 44 | <span className="font-medium">{entry.actor}</span> | |
| 45 | )} | |
| 46 | </span> | |
| 47 | </span> | |
| 48 | ); | |
| 49 | } | |
| 50 | ||
| 51 | /** The workspace's log, one row an entry, newest first. */ | |
| 52 | export function AuditTable({ entries, base }: { entries: AuditEntry[]; base: string }) { | |
| 53 | return ( | |
| The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after. | 54 | <Card asChild divided> |
| 55 | <ol> | |
| 56 | {entries.map((entry) => ( | |
| 57 | <li key={entry.id} className="grid gap-x-4 gap-y-1 px-4 py-3 text-sm sm:grid-cols-[9rem_1fr_auto]"> | |
| 58 | <span className="text-xs leading-5 text-faint"> | |
| 59 | <TimeAgo at={entry.time} /> | |
| 60 | </span> | |
| 61 | <div className="min-w-0"> | |
| 62 | <div className="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1"> | |
| 63 | <ActorLine entry={entry} /> | |
| 64 | <span className="font-mono text-xs text-fg/85">{actionLabel(entry.action)}</span> | |
| 65 | <span className="truncate font-mono text-xs text-muted">{targetLabel(entry)}</span> | |
| 66 | </div> | |
| 67 | <p className="mt-1 flex flex-wrap gap-x-3 text-xs text-faint"> | |
| 68 | <Hint label={entry.rule}> | |
| 69 | <span>{ruleLabel(entry.rule)}</span> | |
| 70 | </Hint> | |
| 71 | <span>{entry.surface.toUpperCase()}</span> | |
| 72 | {entry.result && entry.result !== "ok" && <span>result: {entry.result}</span>} | |
| 73 | {entry.runId && ( | |
| 74 | <Link to={`${base}?run=${encodeURIComponent(entry.runId)}`} className="hover:text-fg"> | |
| 75 | everything this run did | |
| 76 | </Link> | |
| 77 | )} | |
| 78 | {entry.credentialId && ( | |
| 79 | <Hint label="Credential"> | |
| 80 | <span className="font-mono"> | |
| 81 | <span className="sr-only">Credential </span> | |
| 82 | {entry.credentialId} | |
| 83 | </span> | |
| 84 | </Hint> | |
| 85 | )} | |
| 86 | <Hint label="Request id"> | |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 87 | <span className="font-mono"> |
| The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after. | 88 | <span className="sr-only">Request id </span> |
| 89 | {entry.requestId} | |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 90 | </span> |
| 91 | </Hint> | |
| The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after. | 92 | </p> |
| 93 | {entry.outcome === "denied" && entry.message && <p className="mt-1 text-xs text-danger">{entry.message}</p>} | |
| 94 | </div> | |
| 95 | <span className="sm:text-right"> | |
| 96 | <OutcomeMark entry={entry} /> | |
| 97 | </span> | |
| 98 | </li> | |
| 99 | ))} | |
| 100 | </ol> | |
| 101 | </Card> | |
| Last commits read trees two dozen commits at a time, and the file list waits at most 3 s for them | 102 | ); |
| 103 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.