@kody-ade/kody-engine 0.4.151 → 0.4.152

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/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.151",
1064
+ version: "0.4.152",
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",
@@ -12097,6 +12097,11 @@ function postKodyComment(target, issueNumber, state, next, cwd) {
12097
12097
  // src/scripts/syncFlow.ts
12098
12098
  import { execFileSync as execFileSync25 } from "child_process";
12099
12099
  init_issue();
12100
+ var DONE2 = {
12101
+ label: "kody:done",
12102
+ color: "0e8a16",
12103
+ description: "kody: PR ready for human review/merge"
12104
+ };
12100
12105
  var syncFlow = async (ctx, _profile, args) => {
12101
12106
  const announceOnSuccess = Boolean(args?.announceOnSuccess);
12102
12107
  const prNumber = ctx.args.pr;
@@ -12134,6 +12139,7 @@ var syncFlow = async (ctx, _profile, args) => {
12134
12139
  if (announceOnSuccess) {
12135
12140
  ctx.output.exitCode = 0;
12136
12141
  ctx.output.reason = `already up to date with origin/${baseBranch}`;
12142
+ restoreDone(prNumber, ctx.cwd);
12137
12143
  }
12138
12144
  return;
12139
12145
  }
@@ -12148,8 +12154,15 @@ var syncFlow = async (ctx, _profile, args) => {
12148
12154
  if (announceOnSuccess) {
12149
12155
  ctx.output.exitCode = 0;
12150
12156
  ctx.output.reason = `merged origin/${baseBranch} into ${ctx.data.branch}`;
12157
+ restoreDone(prNumber, ctx.cwd);
12151
12158
  }
12152
12159
  };
12160
+ function restoreDone(prNumber, cwd) {
12161
+ try {
12162
+ setKodyLabel(prNumber, DONE2, cwd);
12163
+ } catch {
12164
+ }
12165
+ }
12153
12166
  function bail2(ctx, prNumber, reason) {
12154
12167
  ctx.skipAgent = true;
12155
12168
  ctx.output.exitCode = 1;
@@ -27,6 +27,14 @@
27
27
  "cliTools": [],
28
28
  "scripts": {
29
29
  "preflight": [
30
+ {
31
+ "script": "setLifecycleLabel",
32
+ "with": {
33
+ "label": "kody:syncing",
34
+ "color": "c5def5",
35
+ "description": "kody: syncing PR with base"
36
+ }
37
+ },
30
38
  {
31
39
  "script": "syncFlow",
32
40
  "with": { "announceOnSuccess": true }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.151",
3
+ "version": "0.4.152",
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",