diffprism 1.5.0 → 1.6.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 +8 -5
- package/dist/{chunk-M5NJBIOV.js → chunk-3BB3NNRU.js} +2 -2
- package/dist/{chunk-4JLGL3O6.js → chunk-ZFVQBTBB.js} +1 -1
- package/dist/{demo-5UQ7CLKT.js → demo-D6NYAZWR.js} +2 -2
- package/dist/mcp-server.js +1 -1
- package/package.json +2 -1
- package/ui-dist/assets/index-Cz4yBwvD.js +350 -0
- package/ui-dist/index.html +1 -1
- package/ui-dist/assets/index-C_mA2r7X.js +0 -350
package/dist/bin.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-RFDSC6MC.js";
|
|
6
6
|
import {
|
|
7
7
|
demo
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZFVQBTBB.js";
|
|
9
9
|
import {
|
|
10
10
|
COMMIT_GATE_DIFF_REF,
|
|
11
11
|
DEFAULT_DIFF_REF,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
recordError,
|
|
27
27
|
startGlobalServer,
|
|
28
28
|
submitReviewToServer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3BB3NNRU.js";
|
|
30
30
|
import {
|
|
31
31
|
getDiff
|
|
32
32
|
} from "./chunk-GGK6TIQZ.js";
|
|
@@ -176,11 +176,14 @@ ${REPORT_HINT}`);
|
|
|
176
176
|
`Commit blocked: no review decision was returned (got ${String(decision)}).`
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
+
function lineLabel(at) {
|
|
180
|
+
return at.side === "old" ? `${at.file}:${at.line} (deleted line)` : `${at.file}:${at.line}`;
|
|
181
|
+
}
|
|
179
182
|
function printQuestions(sessionId, threads) {
|
|
180
183
|
console.error("");
|
|
181
184
|
for (const t of threads) {
|
|
182
185
|
const last = t.replies?.at(-1)?.body ?? t.body;
|
|
183
|
-
console.error(` ${t
|
|
186
|
+
console.error(` ${lineLabel(t)}`);
|
|
184
187
|
for (const line of last.split("\n")) {
|
|
185
188
|
console.error(` ${line}`);
|
|
186
189
|
}
|
|
@@ -207,7 +210,7 @@ function printFeedback(review2) {
|
|
|
207
210
|
}
|
|
208
211
|
}
|
|
209
212
|
for (const c of comments) {
|
|
210
|
-
console.error(` ${c
|
|
213
|
+
console.error(` ${lineLabel(c)} [${c.type}] ${c.body}`);
|
|
211
214
|
}
|
|
212
215
|
console.error("");
|
|
213
216
|
}
|
|
@@ -721,7 +724,7 @@ async function setupInteractive(flags) {
|
|
|
721
724
|
}
|
|
722
725
|
async function runDemo(dev) {
|
|
723
726
|
console.log("");
|
|
724
|
-
const { demo: demo2 } = await import("./demo-
|
|
727
|
+
const { demo: demo2 } = await import("./demo-D6NYAZWR.js");
|
|
725
728
|
await demo2({ dev });
|
|
726
729
|
}
|
|
727
730
|
async function setupBatch(flags) {
|
|
@@ -111,7 +111,7 @@ import fs2 from "fs";
|
|
|
111
111
|
import path2 from "path";
|
|
112
112
|
import { fileURLToPath } from "url";
|
|
113
113
|
function builtAt() {
|
|
114
|
-
return true ?
|
|
114
|
+
return true ? 1789702097017 : null;
|
|
115
115
|
}
|
|
116
116
|
function getBuildInfo() {
|
|
117
117
|
let dir = path2.dirname(fileURLToPath(import.meta.url));
|
|
@@ -141,7 +141,7 @@ function describeVersion(version) {
|
|
|
141
141
|
var ISSUES_NEW_URL = "https://github.com/CodeJonesW/diffprism/issues/new";
|
|
142
142
|
var MAX_ERROR_CHARS = 1500;
|
|
143
143
|
function currentVersion() {
|
|
144
|
-
return true ? "1.
|
|
144
|
+
return true ? "1.6.1" : "0.0.0-dev";
|
|
145
145
|
}
|
|
146
146
|
function describeEnvironment() {
|
|
147
147
|
return {
|
package/dist/mcp-server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "diffprism",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local-first code review tool for agent-generated code changes",
|
|
6
6
|
"bin": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"lint": "pnpm -r run lint",
|
|
18
18
|
"test": "pnpm -r run test",
|
|
19
19
|
"docs:check": "pnpm -F diffprism-cli docs:check",
|
|
20
|
+
"journal": "pnpm -F diffprism-cli journal",
|
|
20
21
|
"cli": "pnpm -F @diffprism/ui build && tsx cli/src/index.ts",
|
|
21
22
|
"prepublishOnly": "pnpm run build"
|
|
22
23
|
},
|