@kody-ade/kody-engine 0.2.16 → 0.2.17
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/dist/bin/kody2.js +5 -2
- package/package.json +1 -1
package/dist/bin/kody2.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@kody-ade/kody-engine",
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.17",
|
|
7
7
|
description: "kody2 \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
type: "module",
|
|
@@ -2311,6 +2311,7 @@ var postIssueComment2 = async (ctx) => {
|
|
|
2311
2311
|
const commitResult = ctx.data.commitResult;
|
|
2312
2312
|
const hasCommits = Boolean(ctx.data.hasCommitsAhead);
|
|
2313
2313
|
const prUrl = ctx.output.prUrl;
|
|
2314
|
+
const prAction = ctx.data.prResult?.action;
|
|
2314
2315
|
if (!commitResult?.committed && !hasCommits) {
|
|
2315
2316
|
const reason = "no changes to commit";
|
|
2316
2317
|
postWith(targetType, targetNumber, `\u26A0\uFE0F kody2 FAILED: ${reason}`, ctx.cwd);
|
|
@@ -2325,7 +2326,9 @@ var postIssueComment2 = async (ctx) => {
|
|
|
2325
2326
|
}
|
|
2326
2327
|
const failureReason = computeFailureReason2(ctx);
|
|
2327
2328
|
const isFailure = failureReason.length > 0;
|
|
2328
|
-
const
|
|
2329
|
+
const successMsg = prAction === "updated" ? `\u2705 kody2 pushed to ${prUrl}` : `\u2705 kody2 PR opened: ${prUrl}`;
|
|
2330
|
+
const failurePrSuffix = prUrl ? prAction === "updated" ? ` \u2014 PR: ${prUrl}` : ` \u2014 draft PR: ${prUrl}` : "";
|
|
2331
|
+
const msg = isFailure ? `\u26A0\uFE0F kody2 FAILED: ${truncate2(failureReason, 1500)}${failurePrSuffix}` : successMsg;
|
|
2329
2332
|
postWith(targetType, targetNumber, msg, ctx.cwd);
|
|
2330
2333
|
let exitCode = 0;
|
|
2331
2334
|
const agentDone = Boolean(ctx.data.agentDone);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "kody2 — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|