kodevu 0.1.41 → 0.1.42
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/package.json +1 -1
- package/src/report-generator.js +6 -0
- package/src/reviewers.js +11 -1
package/package.json
CHANGED
package/src/report-generator.js
CHANGED
|
@@ -258,6 +258,7 @@ export function shouldWriteFormat(config, format) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
export function buildReport(config, backend, targetInfo, details, diffPayloads, reviewer, reviewerResult, tokenUsage) {
|
|
261
|
+
const stderrText = reviewerResult.stderr?.trim();
|
|
261
262
|
const lines = [
|
|
262
263
|
`# ${backend.displayName} Review Report: ${details.displayId}`,
|
|
263
264
|
"",
|
|
@@ -300,6 +301,10 @@ export function buildReport(config, backend, targetInfo, details, diffPayloads,
|
|
|
300
301
|
diffPayloads.report.text.trim() || "(empty diff)",
|
|
301
302
|
"```",
|
|
302
303
|
"",
|
|
304
|
+
"## Reviewer Diagnostics",
|
|
305
|
+
"",
|
|
306
|
+
stderrText ? "```text\n" + stderrText + "\n```" : "_No stderr output._",
|
|
307
|
+
"",
|
|
303
308
|
`## ${reviewer.responseSectionTitle}`,
|
|
304
309
|
"",
|
|
305
310
|
reviewerResult.message?.trim() ? reviewerResult.message.trim() : reviewer.emptyResponseText
|
|
@@ -351,6 +356,7 @@ export function buildJsonReport(config, backend, targetInfo, details, diffPayloa
|
|
|
351
356
|
}
|
|
352
357
|
},
|
|
353
358
|
diff: diffPayloads.report.text.trim(),
|
|
359
|
+
reviewerDiagnostics: reviewerResult.stderr?.trim() || "",
|
|
354
360
|
reviewerResponse: reviewerResult.message?.trim() ? reviewerResult.message.trim() : reviewer.emptyResponseText
|
|
355
361
|
};
|
|
356
362
|
}
|
package/src/reviewers.js
CHANGED
|
@@ -76,7 +76,17 @@ export const REVIEWERS = {
|
|
|
76
76
|
responseSectionTitle: "Copilot Response",
|
|
77
77
|
emptyResponseText: "_No final response returned from copilot._",
|
|
78
78
|
async run(config, workingDir, promptText, diffText) {
|
|
79
|
-
const
|
|
79
|
+
const args = [
|
|
80
|
+
"-p",
|
|
81
|
+
promptText,
|
|
82
|
+
"-s",
|
|
83
|
+
"--no-color",
|
|
84
|
+
"--no-ask-user",
|
|
85
|
+
"--allow-all-tools",
|
|
86
|
+
"--add-dir",
|
|
87
|
+
workingDir
|
|
88
|
+
];
|
|
89
|
+
const execResult = await runCommand("copilot", args, {
|
|
80
90
|
cwd: workingDir,
|
|
81
91
|
input: ["Unified diff:", diffText].join("\n\n"),
|
|
82
92
|
allowFailure: true,
|