@kody-ade/kody-engine 0.4.196 → 0.4.197

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 +13 -1
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -1428,7 +1428,7 @@ var init_loadPriorArt = __esm({
1428
1428
  // package.json
1429
1429
  var package_default = {
1430
1430
  name: "@kody-ade/kody-engine",
1431
- version: "0.4.196",
1431
+ version: "0.4.197",
1432
1432
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1433
1433
  license: "MIT",
1434
1434
  type: "module",
@@ -8707,6 +8707,7 @@ function checkoutPrBranch(prNumber, cwd) {
8707
8707
  stdio: ["ignore", "pipe", "pipe"],
8708
8708
  timeout: 6e4
8709
8709
  });
8710
+ restoreKodyAssets(cwd);
8710
8711
  return getCurrentBranch(cwd);
8711
8712
  }
8712
8713
  function mergeBase(baseBranch, cwd) {
@@ -8731,7 +8732,18 @@ function mergeBase(baseBranch, cwd) {
8731
8732
  return "error";
8732
8733
  }
8733
8734
  }
8735
+ function restoreKodyAssets(cwd) {
8736
+ try {
8737
+ execFileSync14("git", ["checkout", "HEAD", "--", ".kody"], { cwd, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
8738
+ } catch {
8739
+ }
8740
+ }
8734
8741
  function ensureFeatureBranch(issueNumber, title, defaultBranch2, cwd, baseBranch) {
8742
+ const result = ensureFeatureBranchInner(issueNumber, title, defaultBranch2, cwd, baseBranch);
8743
+ restoreKodyAssets(cwd);
8744
+ return result;
8745
+ }
8746
+ function ensureFeatureBranchInner(issueNumber, title, defaultBranch2, cwd, baseBranch) {
8735
8747
  const branchName = deriveBranchName(issueNumber, title);
8736
8748
  resetWorkingTree(cwd);
8737
8749
  const current = getCurrentBranch(cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.196",
3
+ "version": "0.4.197",
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",