@kody-ade/kody-engine 0.4.148 → 0.4.149

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/dist/bin/kody.js +17 -1
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -1061,7 +1061,7 @@ var init_loadPriorArt = __esm({
1061
1061
  // package.json
1062
1062
  var package_default = {
1063
1063
  name: "@kody-ade/kody-engine",
1064
- version: "0.4.148",
1064
+ version: "0.4.149",
1065
1065
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1066
1066
  license: "MIT",
1067
1067
  type: "module",
@@ -10471,6 +10471,19 @@ var poolServe = async (ctx) => {
10471
10471
  });
10472
10472
  };
10473
10473
 
10474
+ // src/scripts/postAgentComment.ts
10475
+ init_issue();
10476
+ var postAgentComment = async (ctx) => {
10477
+ if (!ctx.data.agentDone) return;
10478
+ const targetNumber = Number(ctx.data.commentTargetNumber ?? 0);
10479
+ const answer = ctx.data.prSummary?.trim();
10480
+ if (!targetNumber || !answer) return;
10481
+ try {
10482
+ postIssueComment(targetNumber, answer, ctx.cwd);
10483
+ } catch {
10484
+ }
10485
+ };
10486
+
10474
10487
  // src/scripts/postIssueComment.ts
10475
10488
  init_issue();
10476
10489
 
@@ -12465,6 +12478,8 @@ var appendCompanyActivity = async (ctx, _profile, agentResult) => {
12465
12478
  staffTitle,
12466
12479
  trigger: resolveTrigger(force),
12467
12480
  outcome: agentResult?.outcome ?? "unknown",
12481
+ outcomeKind: agentResult?.outcomeKind ?? null,
12482
+ reason: agentResult?.error ?? null,
12468
12483
  durationMs: agentResult?.durationMs ?? null,
12469
12484
  runUrl: getRunUrl() || null
12470
12485
  };
@@ -12807,6 +12822,7 @@ var postflightScripts = {
12807
12822
  stageMergeConflicts,
12808
12823
  commitAndPush: commitAndPush2,
12809
12824
  ensurePr: ensurePr2,
12825
+ postAgentComment,
12810
12826
  postIssueComment: postIssueComment2,
12811
12827
  postPlanComment,
12812
12828
  postResearchComment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.148",
3
+ "version": "0.4.149",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",