diffprism 0.13.6 → 0.13.7
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/dist/bin.js +12 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -138,6 +138,17 @@ The tool blocks until the user submits their review in the browser. When it retu
|
|
|
138
138
|
If the \`mcp__diffprism__open_review\` tool is not available:
|
|
139
139
|
- Tell the user: "The DiffPrism MCP server isn't configured. Run \`npx diffprism setup\` to set it up, then restart Claude Code."
|
|
140
140
|
|
|
141
|
+
## Watch Mode: Polling for Review Feedback
|
|
142
|
+
|
|
143
|
+
When \`diffprism watch\` is active (detected via \`.diffprism/watch.json\`), the developer can submit reviews at any time in the browser. Since there is no push notification, **you must poll for feedback** to close the loop.
|
|
144
|
+
|
|
145
|
+
**After pushing context to a watch session**, call \`mcp__diffprism__get_review_result\` to check for pending feedback:
|
|
146
|
+
- **Between tasks** \u2014 Before starting a new piece of work, check for feedback.
|
|
147
|
+
- **After making changes** \u2014 After addressing requested changes, push updated reasoning via \`update_review_context\`, then check again shortly after.
|
|
148
|
+
- **When the user mentions review feedback** \u2014 If the user says they submitted a review or left comments, check immediately.
|
|
149
|
+
|
|
150
|
+
Do not poll in a tight loop. Check at natural breakpoints in your workflow (e.g., after finishing a subtask, before committing, before moving to the next file).
|
|
151
|
+
|
|
141
152
|
## Behavior Rules
|
|
142
153
|
|
|
143
154
|
- When invoked via \`/review\`, always open a review regardless of the \`reviewTrigger\` setting.
|
|
@@ -420,7 +431,7 @@ async function notifyStop() {
|
|
|
420
431
|
|
|
421
432
|
// cli/src/index.ts
|
|
422
433
|
var program = new Command();
|
|
423
|
-
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.13.
|
|
434
|
+
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.13.7" : "0.0.0-dev");
|
|
424
435
|
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);
|
|
425
436
|
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);
|
|
426
437
|
program.command("notify-stop").description("Signal the watch server to refresh (used by Claude Code hooks)").action(notifyStop);
|
package/dist/mcp-server.js
CHANGED