Skip to content

Commit ca11628

Browse files
committed
docs: add base param + /api/diff/switch to Review Server API table
CLAUDE.md (symlinked to AGENTS.md) was edited in the previous commit but AGENTS.md wasn't staged. This captures the actual file change. For provenance purposes, this commit was AI assisted.
1 parent 6b49c7f commit ca11628

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ During normal plan review, an Archive sidebar tab provides the same browsing via
223223

224224
| Endpoint | Method | Purpose |
225225
| --------------------- | ------ | ------------------------------------------ |
226-
| `/api/diff` | GET | Returns `{ rawPatch, gitRef, origin, diffType, gitContext }` |
227-
| `/api/file-content` | GET | Returns `{ oldContent, newContent }` for expandable diff context |
226+
| `/api/diff` | GET | Returns `{ rawPatch, gitRef, origin, diffType, base, gitContext }` |
227+
| `/api/diff/switch` | POST | Switch diff type and/or base branch (body: `{ diffType, base? }`) |
228+
| `/api/file-content` | GET | Returns `{ oldContent, newContent }` for expandable diff context (`?path=&oldPath=&base=`) |
228229
| `/api/git-add` | POST | Stage/unstage a file (body: `{ filePath, undo? }`) |
229230
| `/api/feedback` | POST | Submit review (body: feedback, annotations, agentSwitch) |
230231
| `/api/image` | GET | Serve image by path query param |

0 commit comments

Comments
 (0)