@kody-ade/kody-engine 0.4.318 → 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 +7 -4
- 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",
|
|
@@ -20989,7 +20989,7 @@ function autoDispatch(opts) {
|
|
|
20989
20989
|
const action = String(event.action ?? "");
|
|
20990
20990
|
if (actionName && (action === "opened" || action === "synchronize" || action === "reopened")) {
|
|
20991
20991
|
const pullRequest = objectValue(event.pull_request);
|
|
20992
|
-
if (isReleasePullRequest(pullRequest)) return null;
|
|
20992
|
+
if (isReleasePullRequest(pullRequest, opts?.config)) return null;
|
|
20993
20993
|
const route2 = resolveConfiguredAction(actionName);
|
|
20994
20994
|
if (!route2) return null;
|
|
20995
20995
|
const prNum = Number(pullRequest?.number ?? event.number ?? 0);
|
|
@@ -21194,10 +21194,13 @@ function associationAllowed(event, config) {
|
|
|
21194
21194
|
function objectValue(value) {
|
|
21195
21195
|
return value && typeof value === "object" ? value : void 0;
|
|
21196
21196
|
}
|
|
21197
|
-
function isReleasePullRequest(pullRequest) {
|
|
21197
|
+
function isReleasePullRequest(pullRequest, config) {
|
|
21198
21198
|
const head = objectValue(pullRequest?.head);
|
|
21199
|
+
const base = objectValue(pullRequest?.base);
|
|
21199
21200
|
const ref = typeof head?.ref === "string" ? head.ref : "";
|
|
21200
|
-
|
|
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;
|
|
21201
21204
|
}
|
|
21202
21205
|
var KODY_MENTION_RE = /(?:^|\s)@kody(?=\s|$|[^\w-])/i;
|
|
21203
21206
|
function hasKodyMention(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",
|