@kody-ade/kody-engine 0.4.38 → 0.4.40

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 +7 -14
  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.38",
6
+ version: "0.4.40",
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",
@@ -7785,17 +7785,16 @@ var runFlow = async (ctx) => {
7785
7785
  ctx.data.issue = issue;
7786
7786
  ctx.data.commentTargetType = "issue";
7787
7787
  ctx.data.commentTargetNumber = issueNumber;
7788
- const labelBase = resolveBaseFromLabels(issue.labels ?? []);
7789
7788
  const argBase = resolveBaseOverride(ctx.args.base);
7790
7789
  const baseRaw = ctx.args.base;
7791
7790
  if (baseRaw && !argBase) {
7792
- process.stderr.write(`[kody runFlow] ignoring --base "${baseRaw}" (must match /^goal-[a-z0-9-]+$/)
7791
+ process.stderr.write(`[kody runFlow] ignoring --base "${baseRaw}" (must match kody-task or goal-branch pattern)
7793
7792
  `);
7794
7793
  }
7795
- const base = labelBase ?? argBase;
7794
+ const base = argBase;
7796
7795
  if (base) {
7797
7796
  ctx.data.baseBranch = base;
7798
- process.stderr.write(`[kody runFlow] resolved base branch: ${base} (${labelBase ? "from labels" : "from --base"})
7797
+ process.stderr.write(`[kody runFlow] resolved base branch: ${base} (from --base)
7799
7798
  `);
7800
7799
  }
7801
7800
  try {
@@ -7823,15 +7822,9 @@ function tryPost(issueNumber, body, cwd) {
7823
7822
  }
7824
7823
  function resolveBaseOverride(value) {
7825
7824
  if (!value) return null;
7826
- return /^goal-[a-z0-9-]+$/.test(value) ? value : null;
7827
- }
7828
- function resolveBaseFromLabels(labels) {
7829
- if (!labels.includes("goal-runner:dispatched")) return null;
7830
- const goalLabel2 = labels.find((l) => l.startsWith("goal:"));
7831
- if (!goalLabel2) return null;
7832
- const goalId = goalLabel2.slice("goal:".length);
7833
- if (!/^[a-z0-9-]+$/.test(goalId)) return null;
7834
- return `goal-${goalId}`;
7825
+ if (/^\d+-[a-z0-9-]+$/.test(value)) return value;
7826
+ if (/^goal-[a-z0-9-]+$/.test(value)) return value;
7827
+ return null;
7835
7828
  }
7836
7829
 
7837
7830
  // src/scripts/runTickScript.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.38",
3
+ "version": "0.4.40",
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",