@kody-ade/kody-engine-lite 0.1.82 → 0.1.84
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/README.md +1 -1
- package/dist/bin/cli.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ Kody auto-starts the LiteLLM proxy. [Full LiteLLM guide →](docs/LITELLM.md)
|
|
|
114
114
|
| Command | What it does |
|
|
115
115
|
|---------|-------------|
|
|
116
116
|
| `@kody` | Run full pipeline on an issue |
|
|
117
|
-
| `@kody review` | Review any PR — structured findings + GitHub approve/request-changes |
|
|
117
|
+
| `@kody review` | Review any PR — structured findings + GitHub approve/request-changes (falls back to comment if self-review blocked) |
|
|
118
118
|
| `@kody fix` | Re-run from build with human PR feedback + Kody's review as context |
|
|
119
119
|
| `@kody fix-ci` | Fix failing CI checks (auto-triggered with loop guard) |
|
|
120
120
|
| `@kody rerun` | Resume from failed or paused stage |
|
package/dist/bin/cli.js
CHANGED
|
@@ -717,8 +717,10 @@ function submitPRReview(prNumber, body, event) {
|
|
|
717
717
|
{ input: body }
|
|
718
718
|
);
|
|
719
719
|
logger.info(` PR review submitted on #${prNumber}: ${event}`);
|
|
720
|
+
return true;
|
|
720
721
|
} catch (err) {
|
|
721
722
|
logger.warn(` Failed to submit PR review: ${err}`);
|
|
723
|
+
return false;
|
|
722
724
|
}
|
|
723
725
|
}
|
|
724
726
|
function getCIFailureLogs(runId, maxLength = 8e3) {
|
|
@@ -3960,10 +3962,10 @@ async function main() {
|
|
|
3960
3962
|
if (!input.local && prNumber) {
|
|
3961
3963
|
const comment = formatReviewComment(result.reviewContent, taskId);
|
|
3962
3964
|
const verdict = detectReviewVerdict(result.reviewContent);
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3965
|
+
const event = verdict === "fail" ? "request-changes" : "approve";
|
|
3966
|
+
const posted = submitPRReview(prNumber, comment, event);
|
|
3967
|
+
if (!posted) {
|
|
3968
|
+
postPRComment(prNumber, comment);
|
|
3967
3969
|
}
|
|
3968
3970
|
}
|
|
3969
3971
|
}
|