@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.
- package/bin/locus.js +4 -3
- 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
|
-
|
|
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
|
|
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}
|