@kody-ade/kody-engine 0.4.317 → 0.4.319
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 +11 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@kody-ade/kody-engine",
|
|
18
|
-
version: "0.4.
|
|
18
|
+
version: "0.4.319",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -20988,9 +20988,10 @@ function autoDispatch(opts) {
|
|
|
20988
20988
|
const actionName = opts?.config?.onPullRequest?.trim();
|
|
20989
20989
|
const action = String(event.action ?? "");
|
|
20990
20990
|
if (actionName && (action === "opened" || action === "synchronize" || action === "reopened")) {
|
|
20991
|
+
const pullRequest = objectValue(event.pull_request);
|
|
20992
|
+
if (isReleasePullRequest(pullRequest, opts?.config)) return null;
|
|
20991
20993
|
const route2 = resolveConfiguredAction(actionName);
|
|
20992
20994
|
if (!route2) return null;
|
|
20993
|
-
const pullRequest = objectValue(event.pull_request);
|
|
20994
20995
|
const prNum = Number(pullRequest?.number ?? event.number ?? 0);
|
|
20995
20996
|
if (prNum > 0) {
|
|
20996
20997
|
const targetKey = primaryNumericInputName(route2.executable) ?? "pr";
|
|
@@ -21193,6 +21194,14 @@ function associationAllowed(event, config) {
|
|
|
21193
21194
|
function objectValue(value) {
|
|
21194
21195
|
return value && typeof value === "object" ? value : void 0;
|
|
21195
21196
|
}
|
|
21197
|
+
function isReleasePullRequest(pullRequest, config) {
|
|
21198
|
+
const head = objectValue(pullRequest?.head);
|
|
21199
|
+
const base = objectValue(pullRequest?.base);
|
|
21200
|
+
const ref = typeof head?.ref === "string" ? head.ref : "";
|
|
21201
|
+
if (ref.startsWith("release/")) return true;
|
|
21202
|
+
const baseRef = typeof base?.ref === "string" ? base.ref : "";
|
|
21203
|
+
return !!config?.release?.releaseBranch && ref === config.git?.defaultBranch && baseRef === config.release.releaseBranch;
|
|
21204
|
+
}
|
|
21196
21205
|
var KODY_MENTION_RE = /(?:^|\s)@kody(?=\s|$|[^\w-])/i;
|
|
21197
21206
|
function hasKodyMention(body) {
|
|
21198
21207
|
return KODY_MENTION_RE.test(body);
|
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.319",
|
|
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",
|