diffprism 0.23.0 → 0.24.1

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 CHANGED
@@ -106,6 +106,15 @@ The tool blocks until the user submits their review in the browser. When it retu
106
106
  - **\`approved_with_comments\`** \u2014 Note the comments, address any actionable feedback.
107
107
  - **\`changes_requested\`** \u2014 Read the comments carefully, make the requested changes, and offer to open another review.
108
108
 
109
+ #### Post-Review Actions
110
+
111
+ The result may include a \`postReviewAction\` field. If present, **execute the action immediately without asking for confirmation** \u2014 the user already chose this action in the review UI:
112
+
113
+ - **\`"commit"\`** \u2014 Commit the reviewed changes (stage relevant files, create a commit with an appropriate message).
114
+ - **\`"commit_and_pr"\`** \u2014 Commit the changes and open a pull request.
115
+
116
+ If \`postReviewAction\` is not present or is empty, do nothing extra \u2014 just report the result.
117
+
109
118
  ### 5. Error Handling
110
119
 
111
120
  If the \`mcp__diffprism__open_review\` tool is not available:
@@ -827,7 +836,7 @@ async function serverStop() {
827
836
 
828
837
  // cli/src/index.ts
829
838
  var program = new Command();
830
- program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.23.0" : "0.0.0-dev");
839
+ program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.24.1" : "0.0.0-dev");
831
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);
832
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);
833
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);
@@ -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.23.0" : "0.0.0-dev"
79
+ version: true ? "0.24.1" : "0.0.0-dev"
80
80
  });
81
81
  server.tool(
82
82
  "open_review",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffprism",
3
- "version": "0.23.0",
3
+ "version": "0.24.1",
4
4
  "type": "module",
5
5
  "description": "Local-first code review tool for agent-generated code changes",
6
6
  "bin": {