@kody-ade/kody-engine 0.4.318 → 0.4.320

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +9 -6
  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.318",
18
+ version: "0.4.320",
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
- return ref.startsWith("release/");
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) {
@@ -21872,9 +21875,9 @@ async function runCi(argv) {
21872
21875
  process.stdout.write("\u2192 kody: no action for event issue_comment \u2014 exiting cleanly\n");
21873
21876
  return 0;
21874
21877
  }
21875
- process.stdout.write(`\u2192 kody: no action for event ${process.env.GITHUB_EVENT_NAME} \u2014 checking scheduled watches
21878
+ process.stdout.write(`\u2192 kody: no action for event ${process.env.GITHUB_EVENT_NAME} \u2014 exiting cleanly
21876
21879
  `);
21877
- return runScheduledFanOut(cwd, args, { force: false });
21880
+ return 0;
21878
21881
  }
21879
21882
  if (!args.issueNumber && !autoFallback) {
21880
21883
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.318",
3
+ "version": "0.4.320",
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",