@kody-ade/kody-engine 0.4.494 → 0.4.496
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 +10 -5
- 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.496",
|
|
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",
|
|
@@ -4325,11 +4325,13 @@ function validateCapabilityContractValue(boundary, schema, value) {
|
|
|
4325
4325
|
throw new CapabilityContractValidationError(boundary, validate.errors ?? []);
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
|
-
function capabilityContractInput(inputs, args, capabilityId) {
|
|
4328
|
+
function capabilityContractInput(inputs, args, capabilityId, contractProperties = []) {
|
|
4329
4329
|
const isGenericRunnerInput = inputs.some((input) => input.name === "input") && Object.hasOwn(args, "input");
|
|
4330
4330
|
if (!isGenericRunnerInput) {
|
|
4331
|
-
const isParameterlessGenericRunner = (inputs.some((input) => input.name === "capability") || args.capability === capabilityId) && Object.hasOwn(args, "capability");
|
|
4332
|
-
|
|
4331
|
+
const isParameterlessGenericRunner = (inputs.some((input) => input.name === "capability") || args.capability === capabilityId || !contractProperties.includes("capability")) && Object.hasOwn(args, "capability");
|
|
4332
|
+
if (!isParameterlessGenericRunner) return args;
|
|
4333
|
+
const { capability: _routingCapability, ...businessArgs } = args;
|
|
4334
|
+
return businessArgs;
|
|
4333
4335
|
}
|
|
4334
4336
|
const value = args.input;
|
|
4335
4337
|
if (typeof value !== "string") return value;
|
|
@@ -21000,7 +21002,10 @@ async function runImplementation(profileName, input) {
|
|
|
21000
21002
|
capabilityContractInput(
|
|
21001
21003
|
profile.inputs,
|
|
21002
21004
|
args,
|
|
21003
|
-
profile.canonicalContract.capabilityId
|
|
21005
|
+
profile.canonicalContract.capabilityId,
|
|
21006
|
+
Object.keys(
|
|
21007
|
+
profile.canonicalContract.inputSchema.properties ?? {}
|
|
21008
|
+
)
|
|
21004
21009
|
)
|
|
21005
21010
|
);
|
|
21006
21011
|
}
|
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.496",
|
|
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",
|