@kody-ade/kody-engine 0.4.195 → 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.
- package/dist/bin/kody.js +15 -3
- 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.
|
|
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",
|
|
@@ -8682,7 +8682,7 @@ function resetWorkingTree(cwd) {
|
|
|
8682
8682
|
} catch {
|
|
8683
8683
|
}
|
|
8684
8684
|
try {
|
|
8685
|
-
execFileSync14("git", ["clean", "-fd"], { cwd, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8685
|
+
execFileSync14("git", ["clean", "-fd", "-e", ".kody"], { cwd, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8686
8686
|
} catch {
|
|
8687
8687
|
}
|
|
8688
8688
|
}
|
|
@@ -8698,7 +8698,7 @@ function checkoutPrBranch(prNumber, cwd) {
|
|
|
8698
8698
|
} catch {
|
|
8699
8699
|
}
|
|
8700
8700
|
try {
|
|
8701
|
-
execFileSync14("git", ["clean", "-fd"], { cwd, env, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8701
|
+
execFileSync14("git", ["clean", "-fd", "-e", ".kody"], { cwd, env, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8702
8702
|
} catch {
|
|
8703
8703
|
}
|
|
8704
8704
|
execFileSync14("gh", ["pr", "checkout", String(prNumber)], {
|
|
@@ -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.
|
|
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",
|