@kody-ade/kody-engine 0.4.586 → 0.4.587

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.
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.586",
18
+ version: "0.4.587",
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",
@@ -17537,7 +17537,7 @@ var init_parseReproOutput = __esm({
17537
17537
 
17538
17538
  // src/scripts/parseSimpleCapabilityOutput.ts
17539
17539
  import * as fs47 from "fs";
17540
- function acceptAuthoritativeFileOutput(ctx, profile, output) {
17540
+ function acceptAuthoritativeCapabilityOutput(ctx, profile, output) {
17541
17541
  ctx.data.agentDone = true;
17542
17542
  delete ctx.data.agentFailureReason;
17543
17543
  const summary = isObject2(output) && typeof output.summary === "string" ? output.summary.trim() : "";
@@ -17627,7 +17627,8 @@ var init_parseSimpleCapabilityOutput = __esm({
17627
17627
  }
17628
17628
  const outputPath = typeof ctx.data.capabilityOutputPath === "string" ? ctx.data.capabilityOutputPath : void 0;
17629
17629
  const fileOutput = readOutputFile(outputPath);
17630
- const output = fileOutput.found ? fileOutput.value : Object.hasOwn(ctx.data, "capabilityScriptOutput") ? ctx.data.capabilityScriptOutput : parseOutput(agentResult?.finalText);
17630
+ const hasScriptOutput = Object.hasOwn(ctx.data, "capabilityScriptOutput");
17631
+ const output = fileOutput.found ? fileOutput.value : hasScriptOutput ? ctx.data.capabilityScriptOutput : parseOutput(agentResult?.finalText);
17631
17632
  if (output === void 0) {
17632
17633
  const reason2 = agentResult?.outcomeKind === "out_of_turns" ? "Capability execution limit reached" : "Capability execution ended before returning a result";
17633
17634
  const blocked = {
@@ -17674,7 +17675,7 @@ var init_parseSimpleCapabilityOutput = __esm({
17674
17675
  return;
17675
17676
  }
17676
17677
  }
17677
- if (fileOutput.found) acceptAuthoritativeFileOutput(ctx, profile, output);
17678
+ if (fileOutput.found || hasScriptOutput) acceptAuthoritativeCapabilityOutput(ctx, profile, output);
17678
17679
  ctx.data.capabilityOutput = output;
17679
17680
  const structuredResult = parseCapabilityResult(output);
17680
17681
  if (structuredResult) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.586",
3
+ "version": "0.4.587",
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",
@@ -14,6 +14,10 @@ on:
14
14
  description: 'GitHub issue number (agent mode)'
15
15
  type: string
16
16
  default: ''
17
+ requestId:
18
+ description: 'Unique Kody execution request ID'
19
+ type: string
20
+ default: ''
17
21
  sessionId:
18
22
  description: 'Chat session ID (chat mode, from Kody Dashboard)'
19
23
  type: string
@@ -55,7 +59,7 @@ jobs:
55
59
  runs-on: ubuntu-latest
56
60
  timeout-minutes: 360
57
61
  concurrency:
58
- group: kody-${{ inputs.sessionId || inputs.issue_number || github.event.issue.number || github.sha }}
62
+ group: kody-${{ inputs.requestId || inputs.sessionId || inputs.issue_number || github.event.issue.number || github.sha }}
59
63
  cancel-in-progress: false
60
64
  permissions:
61
65
  issues: write