@kody-ade/kody-engine 0.4.567 → 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 +29 -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.567",
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",
@@ -22385,6 +22385,7 @@ async function runImplementation(profileName, input) {
22385
22385
  exitCode: ctx.output.exitCode ?? 0,
22386
22386
  prUrl: ctx.output.prUrl,
22387
22387
  reason: ctx.output.reason,
22388
+ action: ctx.data.action,
22388
22389
  nextDispatch: ctx.output.nextDispatch,
22389
22390
  nextJob: ctx.output.nextJob,
22390
22391
  afterNextJob: ctx.output.afterNextJob,
@@ -23653,6 +23654,7 @@ async function runGraphCapabilityWorkflow(parent, workflow, capability, base, ch
23653
23654
  workflowContinueOn: step.continueOn ?? []
23654
23655
  }
23655
23656
  });
23657
+ result = workflowStepDeadlineResult(result, stepAbort.controller, step.timeoutSeconds);
23656
23658
  } finally {
23657
23659
  stepAbort.cleanup();
23658
23660
  }
@@ -23982,7 +23984,32 @@ function workflowStepAbortController(parent, timeoutSeconds) {
23982
23984
  };
23983
23985
  }
23984
23986
  function workflowOutcome(result) {
23985
- return result.taskState?.core.lastOutcome ?? null;
23987
+ return result.taskState?.core.lastOutcome ?? result.action ?? null;
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
+ };
23986
24013
  }
23987
24014
  function workflowConditionContext(data) {
23988
24015
  const lastOutcome = data.workflowLastOutcome;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.567",
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",