diffprism 0.13.1 → 0.13.2
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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readWatchFile,
|
|
4
4
|
startReview,
|
|
5
5
|
startWatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QB2PKDLU.js";
|
|
7
7
|
|
|
8
8
|
// cli/src/index.ts
|
|
9
9
|
import { Command } from "commander";
|
|
@@ -380,7 +380,7 @@ async function notifyStop() {
|
|
|
380
380
|
|
|
381
381
|
// cli/src/index.ts
|
|
382
382
|
var program = new Command();
|
|
383
|
-
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.13.
|
|
383
|
+
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.13.2" : "0.0.0-dev");
|
|
384
384
|
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);
|
|
385
385
|
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);
|
|
386
386
|
program.command("notify-stop").description("Signal the watch server to refresh (used by Claude Code hooks)").action(notifyStop);
|
|
@@ -1137,6 +1137,9 @@ function createWatchBridge(port, callbacks) {
|
|
|
1137
1137
|
pendingInit = payload;
|
|
1138
1138
|
}
|
|
1139
1139
|
},
|
|
1140
|
+
storeInitPayload(payload) {
|
|
1141
|
+
initPayload = payload;
|
|
1142
|
+
},
|
|
1140
1143
|
sendDiffUpdate(payload) {
|
|
1141
1144
|
sendToClient({ type: "diff:update", payload });
|
|
1142
1145
|
},
|
|
@@ -1290,7 +1293,7 @@ Review submitted: ${result.decision}`);
|
|
|
1290
1293
|
const changedFiles = detectChangedFiles(lastDiffSet, newDiffSet);
|
|
1291
1294
|
lastDiffHash = newHash;
|
|
1292
1295
|
lastDiffSet = newDiffSet;
|
|
1293
|
-
bridge.
|
|
1296
|
+
bridge.storeInitPayload({
|
|
1294
1297
|
reviewId,
|
|
1295
1298
|
diffSet: newDiffSet,
|
|
1296
1299
|
rawDiff: newRawDiff,
|
package/dist/mcp-server.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readReviewResult,
|
|
4
4
|
readWatchFile,
|
|
5
5
|
startReview
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QB2PKDLU.js";
|
|
7
7
|
|
|
8
8
|
// packages/mcp-server/src/index.ts
|
|
9
9
|
import fs from "fs";
|
|
@@ -14,7 +14,7 @@ import { z } from "zod";
|
|
|
14
14
|
async function startMcpServer() {
|
|
15
15
|
const server = new McpServer({
|
|
16
16
|
name: "diffprism",
|
|
17
|
-
version: true ? "0.13.
|
|
17
|
+
version: true ? "0.13.2" : "0.0.0-dev"
|
|
18
18
|
});
|
|
19
19
|
server.tool(
|
|
20
20
|
"open_review",
|