kodevu 0.1.65 → 0.1.66

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/reviewers.js +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodevu",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Poll SVN revisions or Git commits, send each change diff to a reviewer CLI, and write configurable review reports.",
package/src/reviewers.js CHANGED
@@ -180,13 +180,8 @@ export const REVIEWERS = {
180
180
  "utf8"
181
181
  );
182
182
 
183
- const args = [
184
- "run",
185
- "Please perform the code review strictly following the instructions and unified diff provided in the attached file.",
186
- "-f",
187
- reviewInputFile,
188
- "--pure"
189
- ];
183
+ // Use a short message on the command line and pass full instructions via -f file
184
+ const args = ["run", "Review attached file", "-f", reviewInputFile, "--pure"];
190
185
 
191
186
  const execResult = await runCommand("opencode", args, {
192
187
  cwd: workingDir,
@@ -197,7 +192,7 @@ export const REVIEWERS = {
197
192
 
198
193
  return {
199
194
  ...execResult,
200
- message: execResult.stdout
195
+ message: execResult.stdout || execResult.stderr || ""
201
196
  };
202
197
  } finally {
203
198
  await fs.rm(tempDir, { recursive: true, force: true });