@kody-ade/kody-engine 0.3.32 → 0.3.33
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@kody-ade/kody-engine",
|
|
6
|
-
version: "0.3.
|
|
6
|
+
version: "0.3.33",
|
|
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",
|
|
@@ -4967,8 +4967,8 @@ function postKodyComment(target, issueNumber, state, next, cwd) {
|
|
|
4967
4967
|
|
|
4968
4968
|
// src/scripts/syncFlow.ts
|
|
4969
4969
|
import { execFileSync as execFileSync19 } from "child_process";
|
|
4970
|
-
var syncFlow = async (ctx) => {
|
|
4971
|
-
|
|
4970
|
+
var syncFlow = async (ctx, _profile, args) => {
|
|
4971
|
+
const announceOnSuccess = Boolean(args?.announceOnSuccess);
|
|
4972
4972
|
const prNumber = ctx.args.pr;
|
|
4973
4973
|
const pr = getPr(prNumber, ctx.cwd);
|
|
4974
4974
|
if (pr.state !== "OPEN") {
|
|
@@ -4976,8 +4976,10 @@ var syncFlow = async (ctx) => {
|
|
|
4976
4976
|
return;
|
|
4977
4977
|
}
|
|
4978
4978
|
ctx.data.pr = pr;
|
|
4979
|
-
|
|
4980
|
-
|
|
4979
|
+
if (announceOnSuccess) {
|
|
4980
|
+
ctx.data.commentTargetType = "pr";
|
|
4981
|
+
ctx.data.commentTargetNumber = prNumber;
|
|
4982
|
+
}
|
|
4981
4983
|
checkoutPrBranch(prNumber, ctx.cwd);
|
|
4982
4984
|
ctx.data.branch = getCurrentBranch(ctx.cwd);
|
|
4983
4985
|
const baseBranch = pr.baseRefName || ctx.config.git.defaultBranch;
|
|
@@ -4998,9 +5000,12 @@ var syncFlow = async (ctx) => {
|
|
|
4998
5000
|
}
|
|
4999
5001
|
const headAfter = revParseHead(ctx.cwd);
|
|
5000
5002
|
if (headAfter === headBefore) {
|
|
5001
|
-
ctx.
|
|
5002
|
-
|
|
5003
|
-
|
|
5003
|
+
ctx.data.syncResult = "noop";
|
|
5004
|
+
if (announceOnSuccess) {
|
|
5005
|
+
ctx.output.exitCode = 0;
|
|
5006
|
+
ctx.output.reason = `already up to date with origin/${baseBranch}`;
|
|
5007
|
+
tryPostPr5(prNumber, `\u2139\uFE0F kody sync: already up to date with origin/${baseBranch}`, ctx.cwd);
|
|
5008
|
+
}
|
|
5004
5009
|
return;
|
|
5005
5010
|
}
|
|
5006
5011
|
try {
|
|
@@ -5010,13 +5015,21 @@ var syncFlow = async (ctx) => {
|
|
|
5010
5015
|
bail2(ctx, prNumber, `merge succeeded but push failed: ${msg}`);
|
|
5011
5016
|
return;
|
|
5012
5017
|
}
|
|
5013
|
-
ctx.
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
+
ctx.data.syncResult = "merged";
|
|
5019
|
+
if (announceOnSuccess) {
|
|
5020
|
+
ctx.output.exitCode = 0;
|
|
5021
|
+
ctx.output.reason = `merged origin/${baseBranch} into ${ctx.data.branch}`;
|
|
5022
|
+
const runUrl = getRunUrl();
|
|
5023
|
+
const runSuffix = runUrl ? ` ([logs](${runUrl}))` : "";
|
|
5024
|
+
tryPostPr5(
|
|
5025
|
+
prNumber,
|
|
5026
|
+
`\u2705 kody sync: merged \`origin/${baseBranch}\` into \`${ctx.data.branch}\`${runSuffix}`,
|
|
5027
|
+
ctx.cwd
|
|
5028
|
+
);
|
|
5029
|
+
}
|
|
5018
5030
|
};
|
|
5019
5031
|
function bail2(ctx, prNumber, reason) {
|
|
5032
|
+
ctx.skipAgent = true;
|
|
5020
5033
|
ctx.output.exitCode = 1;
|
|
5021
5034
|
ctx.output.reason = reason;
|
|
5022
5035
|
const runUrl = getRunUrl();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
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",
|