diffprism 0.34.0 → 0.34.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 +2 -2
- package/dist/{chunk-NJKYNMAQ.js → chunk-VASCXEMN.js} +9 -0
- package/dist/mcp-server.js +2 -2
- package/package.json +1 -1
- package/ui-dist/assets/index-BfqEajZq.js +325 -0
- package/ui-dist/assets/{index-RCLz30rX.css → index-vG-fI3wH.css} +1 -1
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-1PUjTjRT.js +0 -324
package/dist/bin.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
startReview,
|
|
14
14
|
startWatch,
|
|
15
15
|
submitGitHubReview
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VASCXEMN.js";
|
|
17
17
|
|
|
18
18
|
// cli/src/index.ts
|
|
19
19
|
import { Command } from "commander";
|
|
@@ -1001,7 +1001,7 @@ async function serverStop() {
|
|
|
1001
1001
|
|
|
1002
1002
|
// cli/src/index.ts
|
|
1003
1003
|
var program = new Command();
|
|
1004
|
-
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.34.
|
|
1004
|
+
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.34.1" : "0.0.0-dev");
|
|
1005
1005
|
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);
|
|
1006
1006
|
program.command("review-pr <pr>").description("Review a GitHub pull request in DiffPrism").option("-t, --title <title>", "Override review title").option("--reasoning <text>", "Agent reasoning about the PR").option("--dev", "Use Vite dev server with HMR instead of static files").option("--post-to-github", "Automatically post review back to GitHub without prompting").action(reviewPr);
|
|
1007
1007
|
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);
|
|
@@ -2229,6 +2229,7 @@ function broadcastSessionList() {
|
|
|
2229
2229
|
broadcastToAll({ type: "session:list", payload: summaries });
|
|
2230
2230
|
}
|
|
2231
2231
|
function recordReviewHistory(session, result) {
|
|
2232
|
+
if (session.projectPath.startsWith("github:")) return;
|
|
2232
2233
|
try {
|
|
2233
2234
|
const { payload } = session;
|
|
2234
2235
|
const entry = {
|
|
@@ -2508,6 +2509,10 @@ async function handleApiRequest(req, res) {
|
|
|
2508
2509
|
jsonResponse(res, 404, { error: "Session not found" });
|
|
2509
2510
|
return true;
|
|
2510
2511
|
}
|
|
2512
|
+
if (session.projectPath.startsWith("github:")) {
|
|
2513
|
+
jsonResponse(res, 400, { error: "Ref listing not available for GitHub PRs" });
|
|
2514
|
+
return true;
|
|
2515
|
+
}
|
|
2511
2516
|
try {
|
|
2512
2517
|
const branches = listBranches({ cwd: session.projectPath });
|
|
2513
2518
|
const commits = listCommits({ cwd: session.projectPath });
|
|
@@ -2525,6 +2530,10 @@ async function handleApiRequest(req, res) {
|
|
|
2525
2530
|
jsonResponse(res, 404, { error: "Session not found" });
|
|
2526
2531
|
return true;
|
|
2527
2532
|
}
|
|
2533
|
+
if (session.projectPath.startsWith("github:")) {
|
|
2534
|
+
jsonResponse(res, 400, { error: "Ref comparison not available for GitHub PRs" });
|
|
2535
|
+
return true;
|
|
2536
|
+
}
|
|
2528
2537
|
try {
|
|
2529
2538
|
const body = await readBody(req);
|
|
2530
2539
|
const { ref } = JSON.parse(body);
|
package/dist/mcp-server.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveGitHubToken,
|
|
16
16
|
startReview,
|
|
17
17
|
submitGitHubReview
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VASCXEMN.js";
|
|
19
19
|
|
|
20
20
|
// packages/mcp-server/src/index.ts
|
|
21
21
|
import fs from "fs";
|
|
@@ -113,7 +113,7 @@ async function reviewViaGlobalServer(serverInfo, diffRef, options) {
|
|
|
113
113
|
async function startMcpServer() {
|
|
114
114
|
const server = new McpServer({
|
|
115
115
|
name: "diffprism",
|
|
116
|
-
version: true ? "0.34.
|
|
116
|
+
version: true ? "0.34.1" : "0.0.0-dev"
|
|
117
117
|
});
|
|
118
118
|
server.tool(
|
|
119
119
|
"open_review",
|