# XWUIDiffApplyReview

Review pane for agent-proposed file hunks with hunk-level accept/reject, a file list, checkpoints and commit. Default autonomy is `suggest`. Model diffs are untrusted text and never written into `html`. `commit()` emits accepted hunks — it does not write a filesystem.

## Basic Usage

Two pending hunks. The commit button stays disabled until every hunk is resolved.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Pending hunks with a visible autonomy badge and disabled commit.
```

## Hunk Accept

Accept one hunk through the headless core. Remaining pending hunks keep commit disabled.

```example
file: examples/HunkAccept.ts
html: examples/HunkAccept.html
title: Hunk Accept
description: Accept a single hunk via logic; commit stays disabled.
```

## Checkpoint

Accept a hunk then restore the session checkpoint. Statuses return to the original pending set.

```example
file: examples/Checkpoint.ts
html: examples/Checkpoint.html
title: Checkpoint
description: Restore the original hunk statuses after a review edit.
```

## Commit Ready

Every hunk is resolved, so commit is enabled. Clicking commit emits accepted hunks only.

```example
file: examples/CommitReady.ts
html: examples/CommitReady.html
title: Commit Ready
description: All hunks resolved; commit emits accepted hunks and writes no files.
```

```api
```
