@kody-ade/kody-engine 0.4.454 → 0.4.455

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 +4 -2
  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.454",
18
+ version: "0.4.455",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -8919,6 +8919,7 @@ function validateWorkflow(value, options = {}) {
8919
8919
  issue(issues, "missing_start_step", "startAt", `workflow startAt references missing step ${startAt ?? "<none>"}`);
8920
8920
  }
8921
8921
  const adjacency = /* @__PURE__ */ new Map();
8922
+ const explicitEndSources = /* @__PURE__ */ new Set();
8922
8923
  steps.forEach((step, index) => {
8923
8924
  if (!step) return;
8924
8925
  const id = text(step.id);
@@ -8987,6 +8988,7 @@ function validateWorkflow(value, options = {}) {
8987
8988
  return;
8988
8989
  }
8989
8990
  if (target === "$end") {
8991
+ explicitEndSources.add(id);
8990
8992
  return;
8991
8993
  }
8992
8994
  if (!seen.has(target)) {
@@ -9041,7 +9043,7 @@ function validateWorkflow(value, options = {}) {
9041
9043
  ids.forEach((id, index) => {
9042
9044
  if (!reachable.has(id)) issue(issues, "unreachable_step", `steps[${index}]`, `workflow step ${id} is unreachable`);
9043
9045
  });
9044
- if (![...reachable].some((id) => (adjacency.get(id) ?? []).length === 0)) {
9046
+ if (![...reachable].some((id) => (adjacency.get(id) ?? []).length === 0 || explicitEndSources.has(id))) {
9045
9047
  issue(issues, "missing_terminal_step", "steps", "workflow has no reachable final step");
9046
9048
  }
9047
9049
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.454",
3
+ "version": "0.4.455",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",