@kody-ade/kody-engine 0.4.53 → 0.4.54
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 +22 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@kody-ade/kody-engine",
|
|
6
|
-
version: "0.4.
|
|
6
|
+
version: "0.4.54",
|
|
7
7
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
type: "module",
|
|
@@ -3821,6 +3821,14 @@ function mergePrSquash(prNumber, cwd) {
|
|
|
3821
3821
|
return fail(err);
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
3824
|
+
function editPrBase(prNumber, baseBranch, cwd) {
|
|
3825
|
+
try {
|
|
3826
|
+
gh(["pr", "edit", String(prNumber), "--base", baseBranch], { cwd });
|
|
3827
|
+
return { ok: true };
|
|
3828
|
+
} catch (err) {
|
|
3829
|
+
return fail(err);
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3824
3832
|
function markPrReady(prNumber, cwd) {
|
|
3825
3833
|
try {
|
|
3826
3834
|
gh(["pr", "ready", String(prNumber)], { cwd });
|
|
@@ -5432,7 +5440,19 @@ var finalizeGoal = async (ctx) => {
|
|
|
5432
5440
|
return;
|
|
5433
5441
|
}
|
|
5434
5442
|
}
|
|
5435
|
-
|
|
5443
|
+
if (pr.baseRefName !== goal.defaultBranch) {
|
|
5444
|
+
process.stdout.write(
|
|
5445
|
+
`[goal-tick] retargeting PR #${pr.number} base ${pr.baseRefName} \u2192 ${goal.defaultBranch}
|
|
5446
|
+
`
|
|
5447
|
+
);
|
|
5448
|
+
const retarget = editPrBase(pr.number, goal.defaultBranch, ctx.cwd);
|
|
5449
|
+
if (!retarget.ok) {
|
|
5450
|
+
process.stderr.write(`[goal-tick] finalizeGoal: editPrBase #${pr.number} failed: ${retarget.error}
|
|
5451
|
+
`);
|
|
5452
|
+
return;
|
|
5453
|
+
}
|
|
5454
|
+
}
|
|
5455
|
+
process.stdout.write(`[goal-tick] squash-merging PR #${pr.number} \u2192 ${goal.defaultBranch} (head=${pr.headRefName})
|
|
5436
5456
|
`);
|
|
5437
5457
|
const merged = mergePrSquash(pr.number, ctx.cwd);
|
|
5438
5458
|
if (!merged.ok) {
|
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.54",
|
|
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",
|