@kody-ade/kody-engine 0.4.568 → 0.4.569

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 +27 -1
  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.568",
18
+ version: "0.4.569",
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",
@@ -23654,6 +23654,7 @@ async function runGraphCapabilityWorkflow(parent, workflow, capability, base, ch
23654
23654
  workflowContinueOn: step.continueOn ?? []
23655
23655
  }
23656
23656
  });
23657
+ result = workflowStepDeadlineResult(result, stepAbort.controller, step.timeoutSeconds);
23657
23658
  } finally {
23658
23659
  stepAbort.cleanup();
23659
23660
  }
@@ -23985,6 +23986,31 @@ function workflowStepAbortController(parent, timeoutSeconds) {
23985
23986
  function workflowOutcome(result) {
23986
23987
  return result.taskState?.core.lastOutcome ?? result.action ?? null;
23987
23988
  }
23989
+ function workflowStepDeadlineResult(result, controller, timeoutSeconds) {
23990
+ if (!timeoutSeconds || !controller?.signal.aborted || result.exitCode === 0) return result;
23991
+ const reason = `workflow step timed out after ${timeoutSeconds}s`;
23992
+ const action = {
23993
+ type: "RUN_FAILED",
23994
+ payload: { reason },
23995
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
23996
+ };
23997
+ const timeoutResult = {
23998
+ version: 1,
23999
+ status: "blocked",
24000
+ summary: reason,
24001
+ facts: { status: "blocked", summary: reason },
24002
+ artifacts: [],
24003
+ missingEvidence: [],
24004
+ blockers: [reason]
24005
+ };
24006
+ return {
24007
+ ...result,
24008
+ reason,
24009
+ action,
24010
+ capabilityResults: [...result.capabilityResults ?? [], timeoutResult],
24011
+ capabilityOutput: { status: "blocked", summary: reason }
24012
+ };
24013
+ }
23988
24014
  function workflowConditionContext(data) {
23989
24015
  const lastOutcome = data.workflowLastOutcome;
23990
24016
  const lastResult = data.workflowLastResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.568",
3
+ "version": "0.4.569",
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",