@kody-ade/kody-engine 0.4.324 → 0.4.326

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 +10 -3
  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.324",
18
+ version: "0.4.326",
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",
@@ -6535,7 +6535,7 @@ function parseRunIndex(raw) {
6535
6535
  try {
6536
6536
  const parsed = JSON.parse(raw);
6537
6537
  const record2 = recordValue2(parsed);
6538
- const runs = Array.isArray(record2?.runs) ? record2.runs.filter(isRunIndexRow) : [];
6538
+ const runs = Array.isArray(record2?.runs) ? record2.runs.filter(isRunIndexRow).map(normalizeRunIndexRow) : [];
6539
6539
  return { version: 1, updatedAt: stringValue2(record2?.updatedAt) ?? (/* @__PURE__ */ new Date()).toISOString(), runs };
6540
6540
  } catch {
6541
6541
  return { version: 1, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), runs: [] };
@@ -6548,6 +6548,12 @@ function isRunIndexRow(value) {
6548
6548
  function isRunSubjectType(value) {
6549
6549
  return value === "goal" || value === "loop" || value === "workflow";
6550
6550
  }
6551
+ function normalizeRunIndexRow(row) {
6552
+ if ((row.status === "running" || row.status === "waiting") && (row.decision?.toLowerCase().startsWith("dispatch") || row.summary?.toLowerCase().startsWith("dispatch") || row.currentStep?.toLowerCase().includes("dispatch"))) {
6553
+ return { ...row, status: "success" };
6554
+ }
6555
+ return row;
6556
+ }
6551
6557
  function runSubjectType(data) {
6552
6558
  const value = data.runSubjectType;
6553
6559
  return isRunSubjectType(value) ? value : null;
@@ -6560,7 +6566,8 @@ function statusFromGoalEvent(event, decision) {
6560
6566
  if (status === "failure" || status === "failed" || eventName.includes("fail")) return "failed";
6561
6567
  if (status === "cancelled") return "cancelled";
6562
6568
  if (decisionKind === "blocked") return "blocked";
6563
- if (status === "running" || status === "dispatch" || eventName.includes("dispatch")) return "running";
6569
+ if (status === "dispatch" || decisionKind === "dispatch" || eventName.includes("dispatch")) return "success";
6570
+ if (status === "running") return "running";
6564
6571
  return "recorded";
6565
6572
  }
6566
6573
  function triggerKindFromEnv() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.324",
3
+ "version": "0.4.326",
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",