@kody-ade/kody-engine 0.4.299 → 0.4.300

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 +25 -2
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.299",
18
+ version: "0.4.300",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -14720,6 +14720,21 @@ function markRunFailed(ctx) {
14720
14720
  setKodyLabel(targetNumber, FAILED_LABEL_SPEC, ctx.cwd);
14721
14721
  }
14722
14722
  }
14723
+ function markPrReadyForReview(ctx, prResult) {
14724
+ if (prResult?.kind !== "created" && prResult?.kind !== "updated") return;
14725
+ const targets = /* @__PURE__ */ new Set();
14726
+ const issueNumber = ctx.args.issue;
14727
+ if (typeof issueNumber === "number" && Number.isFinite(issueNumber)) {
14728
+ targets.add(issueNumber);
14729
+ }
14730
+ const targetNumber = Number(ctx.data.commentTargetNumber ?? 0);
14731
+ if (targetNumber > 0) targets.add(targetNumber);
14732
+ const prNumber = prResult.number ?? parsePrNumber(prResult.url);
14733
+ if (prNumber) targets.add(prNumber);
14734
+ for (const target of targets) {
14735
+ setKodyLabel(target, REVIEWING_LABEL_SPEC, ctx.cwd);
14736
+ }
14737
+ }
14723
14738
  function computeFailureSuffix(input) {
14724
14739
  if (input.prResult?.kind === "created") return ` \u2014 draft PR: ${input.prResult.url}`;
14725
14740
  if (input.prResult?.kind === "updated") return ` \u2014 PR: ${input.prResult.url}`;
@@ -14783,7 +14798,7 @@ function postWith(type, n, body, cwd) {
14783
14798
  } catch {
14784
14799
  }
14785
14800
  }
14786
- var FAILED_LABEL_SPEC, postIssueComment2;
14801
+ var FAILED_LABEL_SPEC, REVIEWING_LABEL_SPEC, postIssueComment2;
14787
14802
  var init_postIssueComment = __esm({
14788
14803
  "src/scripts/postIssueComment.ts"() {
14789
14804
  "use strict";
@@ -14796,6 +14811,11 @@ var init_postIssueComment = __esm({
14796
14811
  color: "e11d21",
14797
14812
  description: "kody: flow failed"
14798
14813
  };
14814
+ REVIEWING_LABEL_SPEC = {
14815
+ label: "kody:reviewing",
14816
+ color: "d93f0b",
14817
+ description: "kody: PR ready for human review"
14818
+ };
14799
14819
  postIssueComment2 = async (ctx, profile) => {
14800
14820
  if (ctx.skipAgent && ctx.output.exitCode !== void 0) return;
14801
14821
  const targetType = ctx.data.commentTargetType;
@@ -14858,6 +14878,9 @@ var init_postIssueComment = __esm({
14858
14878
  githubRepo: ctx.config.github?.repo
14859
14879
  });
14860
14880
  postWith(targetType, targetNumber, msg, ctx.cwd);
14881
+ if (!isFailure) {
14882
+ markPrReadyForReview(ctx, prResult);
14883
+ }
14861
14884
  let exitCode = 0;
14862
14885
  const agentDone = Boolean(ctx.data.agentDone);
14863
14886
  const verifyOk = ctx.data.verifyOk !== false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.299",
3
+ "version": "0.4.300",
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",