# Schemas: contracts/review

> T3 Code · channel `stable` · v0.1.14 @ [`c0eed7328db2`](https://github.com/pingdotgg/t3code/tree/c0eed7328db2609e5a535be704e90638aef1c111) · 2026-12-05 · generated by Everdoc from source (no LLM).

11 entries.

<a id="schema-reviewbranchcommitsinput"></a>

## `ReviewBranchCommitsInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:44](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L44-L47)
- Shape: `{ cwd: NonBlankString; baseRef?: GitRefName }`

<a id="schema-reviewbranchcommitsresult"></a>

## `ReviewBranchCommitsResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:50](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L50-L59)
- Shape: `{ commits: { sha: string; subject: string; committedAt: string }[]; truncated: boolean }`

<a id="schema-reviewdiffchangetype"></a>

## `ReviewDiffChangeType`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:11](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L11-L17)
- Shape: `"change" | "rename-pure" | "rename-changed" | "new" | "deleted"`

<a id="schema-reviewdifffilecontentsinput"></a>

## `ReviewDiffFileContentsInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:96](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L96-L104)
- Shape: `{ cwd: NonBlankString; sourceKind: ReviewDiffPreviewSourceKind; changeType: ReviewDiffChangeType; baseRef: GitRefName | null; headRef: GitRefName | null; oldPath: string; newPath: string }`

<a id="schema-reviewdifffilecontentsresult"></a>

## `ReviewDiffFileContentsResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:107](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L107-L110)
- Shape: `{ oldContents: string; newContents: string }`

<a id="schema-reviewdifffilestat"></a>

## `ReviewDiffFileStat`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:69](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L69-L76)
- Shape: `{ path: string; previousPath: string | null; changeType?: ReviewDiffChangeType; additions: number; deletions: number }`

<a id="schema-reviewdiffpreviewerror"></a>

## `ReviewDiffPreviewError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:122](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L122)
- Shape: `VcsError | GitCommandError`

<a id="schema-reviewdiffpreviewinput"></a>

## `ReviewDiffPreviewInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:20](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L20-L41)
- Shape: `{ cwd: NonBlankString; baseRef?: GitRefName; mergeBase?: string; commitSha?: TrimmedNonEmptyString; ignoreWhitespace?: boolean; sourceKind?: "working-tree" | "branch-range"; trackedOnly?: boolean; completionToken?: string; metadataOnly?: boolean; file?: { path: string; previousPath: string | null; sourceKind: "working-tree" | "branch-range" | "commit"; changeType?: ReviewDiffChangeType } }`

<a id="schema-reviewdiffpreviewresult"></a>

## `ReviewDiffPreviewResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:113](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L113-L119)
- Shape: `{ cwd: NonBlankString; generatedAt: date; sources: ReviewDiffPreviewSource[]; incomplete?: boolean; completionToken?: string }`

<a id="schema-reviewdiffpreviewsource"></a>

## `ReviewDiffPreviewSource`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:79](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L79-L93)
- Shape: `{ id: TrimmedNonEmptyString; kind: ReviewDiffPreviewSourceKind; title: TrimmedNonEmptyString; commitSubject?: TrimmedNonEmptyString; baseRef: GitRefName | null; headRef: GitRefName | null; mergeBase?: string; diff: string; diffHash: TrimmedNonEmptyString; truncated: boolean; patchesDeferred?: boolean; files?: ReviewDiffFileStat[] }`

<a id="schema-reviewdiffpreviewsourcekind"></a>

## `ReviewDiffPreviewSourceKind`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/review.ts:62](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/review.ts#L62-L66)
- Shape: `"working-tree" | "branch-range" | "commit"`
