@locusai/cli 0.21.3 → 0.21.5

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/bin/locus.js +4 -3
  2. package/package.json +1 -1
package/bin/locus.js CHANGED
@@ -10705,7 +10705,7 @@ var exports_review = {};
10705
10705
  __export(exports_review, {
10706
10706
  reviewCommand: () => reviewCommand
10707
10707
  });
10708
- import { execSync as execSync15 } from "node:child_process";
10708
+ import { execFileSync as execFileSync2, execSync as execSync15 } from "node:child_process";
10709
10709
  import { existsSync as existsSync21, readFileSync as readFileSync14 } from "node:fs";
10710
10710
  import { join as join21 } from "node:path";
10711
10711
  function printHelp2() {
@@ -10857,7 +10857,7 @@ ${output.slice(0, 60000)}
10857
10857
 
10858
10858
  ---
10859
10859
  _Reviewed by Locus AI (${config.ai.provider}/${flags.model ?? config.ai.model})_`;
10860
- execSync15(`gh pr comment ${pr.number} --body ${JSON.stringify(reviewBody)}`, { cwd: projectRoot, encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
10860
+ execFileSync2("gh", ["pr", "comment", String(pr.number), "--body", reviewBody], { cwd: projectRoot, encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
10861
10861
  process.stderr.write(` ${green("✓")} Review posted ${dim(`(${timer.formatted()})`)}
10862
10862
  `);
10863
10863
  } catch (e) {
@@ -10914,7 +10914,8 @@ Pay special attention to the above areas.`;
10914
10914
  }
10915
10915
  instructions += `
10916
10916
 
10917
- End with an overall assessment: APPROVE, REQUEST_CHANGES, or COMMENT.
10917
+ End with an overall assessment: APPROVE or COMMENT.
10918
+ If there are issues or suggestions, use COMMENT — never request changes.
10918
10919
  Be constructive and specific. Praise good patterns too.`;
10919
10920
  parts.push(`<review-instructions>
10920
10921
  ${instructions}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.21.3",
3
+ "version": "0.21.5",
4
4
  "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {