diffprism 0.24.2 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/bin.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,10 +13,12 @@ DiffPrism gives you a visual review step for AI-written code — stage your chan
|
|
|
13
13
|
- **Agent reasoning panel** — see why the AI made each change
|
|
14
14
|
- **Dark/light mode** — toggle with theme persistence
|
|
15
15
|
- **Keyboard shortcuts** — `j`/`k` navigate files, `s` cycles file status, `Cmd/Ctrl+Enter` saves comments, `?` toggles hotkey guide
|
|
16
|
-
- **
|
|
16
|
+
- **Four review decisions** — approve, request changes, approve with comments, or dismiss
|
|
17
|
+
- **Quick actions** — Approve & Commit or Approve, Commit & PR directly from the review UI via the ⋮ menu; the agent executes the action automatically
|
|
17
18
|
- **Branch display** — current git branch shown in the review header
|
|
18
19
|
- **Global server mode** — `diffprism server` runs a persistent multi-session review server, multiple agents post reviews to one browser tab
|
|
19
20
|
- **Multi-session UI** — session list with live status badges, branch info, file counts, and change stats; stale sessions auto-expire
|
|
21
|
+
- **Desktop notifications** — native browser notifications when new review sessions arrive while the tab is backgrounded (global server mode)
|
|
20
22
|
- **One-command setup & teardown** — `diffprism setup` configures Claude Code integration, `diffprism teardown` cleanly reverses it
|
|
21
23
|
|
|
22
24
|
## Quick Start
|
|
@@ -71,7 +73,7 @@ diffprism review main..feature-branch
|
|
|
71
73
|
diffprism review --staged --title "Add auth middleware"
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
A browser window opens with the diff viewer. Review the changes and click **Approve**, **Request Changes**,
|
|
76
|
+
A browser window opens with the diff viewer. Review the changes and click **Approve**, **Request Changes**, **Approve with Comments**, or **Dismiss**. Use the ⋮ menu for quick actions like Approve & Commit.
|
|
75
77
|
|
|
76
78
|
### Quick Start (setup + watch in one command)
|
|
77
79
|
|
|
@@ -190,9 +192,10 @@ Fetches the most recent review result from a DiffPrism session (watch mode or gl
|
|
|
190
192
|
|
|
191
193
|
| Field | Description |
|
|
192
194
|
|-------|-------------|
|
|
193
|
-
| `decision` | `approved`, `changes_requested`, or `
|
|
195
|
+
| `decision` | `approved`, `changes_requested`, `approved_with_comments`, or `dismissed` |
|
|
194
196
|
| `comments` | Array of inline comments with file, line, body, and type (`must_fix`, `suggestion`, `question`, `nitpick`) |
|
|
195
197
|
| `summary` | Optional reviewer summary |
|
|
198
|
+
| `postReviewAction` | Optional: `"commit"` or `"commit_and_pr"` — set when user selects a quick action from the ⋮ menu |
|
|
196
199
|
|
|
197
200
|
## How It Works
|
|
198
201
|
|
package/dist/bin.js
CHANGED
|
@@ -836,7 +836,7 @@ async function serverStop() {
|
|
|
836
836
|
|
|
837
837
|
// cli/src/index.ts
|
|
838
838
|
var program = new Command();
|
|
839
|
-
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.
|
|
839
|
+
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.25.0" : "0.0.0-dev");
|
|
840
840
|
program.command("review [ref]").description("Open a browser-based diff review").option("--staged", "Review staged changes").option("--unstaged", "Review unstaged changes").option("-t, --title <title>", "Review title").option("--dev", "Use Vite dev server with HMR instead of static files").action(review);
|
|
841
841
|
program.command("start [ref]").description("Set up DiffPrism and start watching for changes").option("--staged", "Watch staged changes").option("--unstaged", "Watch unstaged changes").option("-t, --title <title>", "Review title").option("--interval <ms>", "Poll interval in milliseconds (default: 1000)").option("--dev", "Use Vite dev server with HMR instead of static files").option("--global", "Install skill globally (~/.claude/skills/)").option("--force", "Overwrite existing configuration files").action(start);
|
|
842
842
|
program.command("watch [ref]").description("Start a persistent diff watcher with live-updating browser UI").option("--staged", "Watch staged changes").option("--unstaged", "Watch unstaged changes").option("-t, --title <title>", "Review title").option("--interval <ms>", "Poll interval in milliseconds (default: 1000)").option("--dev", "Use Vite dev server with HMR instead of static files").action(watch);
|
package/dist/mcp-server.js
CHANGED
|
@@ -76,7 +76,7 @@ async function reviewViaGlobalServer(serverInfo, diffRef, options) {
|
|
|
76
76
|
async function startMcpServer() {
|
|
77
77
|
const server = new McpServer({
|
|
78
78
|
name: "diffprism",
|
|
79
|
-
version: true ? "0.
|
|
79
|
+
version: true ? "0.25.0" : "0.0.0-dev"
|
|
80
80
|
});
|
|
81
81
|
server.tool(
|
|
82
82
|
"open_review",
|