pr_01m47d24b0e6n91zwymwxg0vpx/apps/web/app/lib/diff.ts

6 lines406 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.

Agents as a team: lifecycle, merge queue, billing and a new shell1import type { Comparison, DiffLine, FileDiff } from "@g1t/contracts";
2
3/** A diff line, with its text as highlighted HTML when the language is known. */
4export type HighlightedLine = DiffLine & { html?: string };
5export type HighlightedFile = Omit<FileDiff, "hunks"> & { hunks: { lines: HighlightedLine[] }[] };
6export type HighlightedComparison = Omit<Comparison, "files"> & { files: HighlightedFile[] };