@kody-ade/kody-engine 0.4.474 → 0.4.475
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 +11 -4
- 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.
|
|
18
|
+
version: "0.4.475",
|
|
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",
|
|
@@ -19055,6 +19055,7 @@ var SCRIPT_TIMEOUT_MS, SCRIPT_MAX_OUTPUT_BYTES, runSimpleCapabilityScript;
|
|
|
19055
19055
|
var init_runSimpleCapabilityScript = __esm({
|
|
19056
19056
|
"src/scripts/runSimpleCapabilityScript.ts"() {
|
|
19057
19057
|
"use strict";
|
|
19058
|
+
init_capabilityResult();
|
|
19058
19059
|
init_tickShellRunner();
|
|
19059
19060
|
SCRIPT_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
19060
19061
|
SCRIPT_MAX_OUTPUT_BYTES = 1024 * 1024;
|
|
@@ -19097,11 +19098,17 @@ var init_runSimpleCapabilityScript = __esm({
|
|
|
19097
19098
|
ctx.output.reason = `Capability script exited ${result.status ?? 99}`;
|
|
19098
19099
|
return;
|
|
19099
19100
|
}
|
|
19101
|
+
const stdout = result.stdout ?? "";
|
|
19100
19102
|
try {
|
|
19101
|
-
ctx.data.capabilityScriptOutput = JSON.parse(
|
|
19103
|
+
ctx.data.capabilityScriptOutput = JSON.parse(stdout);
|
|
19102
19104
|
} catch {
|
|
19105
|
+
const structuredResult = parseCapabilityResultsFromText(stdout).at(-1);
|
|
19106
|
+
if (structuredResult) {
|
|
19107
|
+
ctx.data.capabilityScriptOutput = structuredResult;
|
|
19108
|
+
return;
|
|
19109
|
+
}
|
|
19103
19110
|
ctx.output.exitCode = 64;
|
|
19104
|
-
ctx.output.reason = "Capability script must return exactly one valid JSON value
|
|
19111
|
+
ctx.output.reason = "Capability script must return exactly one valid JSON value or emit a valid KODY_CAPABILITY_RESULT marker";
|
|
19105
19112
|
}
|
|
19106
19113
|
};
|
|
19107
19114
|
}
|
|
@@ -22518,7 +22525,7 @@ function valueMatches(actual, expected) {
|
|
|
22518
22525
|
return actual === expected;
|
|
22519
22526
|
}
|
|
22520
22527
|
function workflowStepTargetNumber(step, parent, chainData) {
|
|
22521
|
-
if (step.target === "pr") return
|
|
22528
|
+
if (step.target === "pr") return workflowTargetFactNumber(step, chainData) ?? workflowPrNumber(chainData);
|
|
22522
22529
|
if (step.target === "issue") return workflowIssueNumber(parent) ?? workflowTargetFactNumber(step, chainData);
|
|
22523
22530
|
return typeof parent.target === "number" ? parent.target : targetFromCliArgs(parent.cliArgs);
|
|
22524
22531
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.475",
|
|
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",
|