@kody-ade/kody-engine 0.2.21 → 0.2.22
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
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.22",
|
|
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",
|
|
@@ -2479,6 +2479,28 @@ function postWith(type, n, body, cwd) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
+
// src/scripts/postPlanComment.ts
|
|
2483
|
+
var postPlanComment = async (ctx) => {
|
|
2484
|
+
if (!ctx.data.agentDone) return;
|
|
2485
|
+
const targetType = ctx.data.commentTargetType;
|
|
2486
|
+
const targetNumber = Number(ctx.data.commentTargetNumber ?? 0);
|
|
2487
|
+
const plan = ctx.data.prSummary?.trim();
|
|
2488
|
+
if (targetType !== "issue" || !targetNumber || !plan) return;
|
|
2489
|
+
const body = renderPlanComment(targetNumber, plan);
|
|
2490
|
+
try {
|
|
2491
|
+
postIssueComment(targetNumber, body, ctx.cwd);
|
|
2492
|
+
} catch {
|
|
2493
|
+
}
|
|
2494
|
+
};
|
|
2495
|
+
function renderPlanComment(issueNumber, plan) {
|
|
2496
|
+
return `## Plan for issue #${issueNumber}
|
|
2497
|
+
|
|
2498
|
+
${plan}
|
|
2499
|
+
|
|
2500
|
+
---
|
|
2501
|
+
Comment \`@kody2 run\` to execute this plan.`;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2482
2504
|
// src/scripts/postReviewResult.ts
|
|
2483
2505
|
function detectVerdict(body) {
|
|
2484
2506
|
const m = body.match(/##\s*Verdict\s*:\s*(PASS|CONCERNS|FAIL)\b/i);
|
|
@@ -3336,6 +3358,7 @@ var postflightScripts = {
|
|
|
3336
3358
|
commitAndPush: commitAndPush2,
|
|
3337
3359
|
ensurePr: ensurePr2,
|
|
3338
3360
|
postIssueComment: postIssueComment2,
|
|
3361
|
+
postPlanComment,
|
|
3339
3362
|
postReviewResult,
|
|
3340
3363
|
persistArtifacts,
|
|
3341
3364
|
writeRunSummary,
|
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.22",
|
|
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",
|