@kody-ade/kody-engine 0.4.493 → 0.4.495

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 +8 -4
  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.493",
18
+ version: "0.4.495",
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,10 +4325,10 @@ function validateCapabilityContractValue(boundary, schema, value) {
4325
4325
  throw new CapabilityContractValidationError(boundary, validate.errors ?? []);
4326
4326
  }
4327
4327
  }
4328
- function capabilityContractInput(inputs, args) {
4328
+ function capabilityContractInput(inputs, args, capabilityId) {
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") && Object.hasOwn(args, "capability");
4331
+ const isParameterlessGenericRunner = (inputs.some((input) => input.name === "capability") || args.capability === capabilityId) && Object.hasOwn(args, "capability");
4332
4332
  return isParameterlessGenericRunner ? {} : args;
4333
4333
  }
4334
4334
  const value = args.input;
@@ -20988,7 +20988,11 @@ async function runImplementation(profileName, input) {
20988
20988
  validateCapabilityContractValue(
20989
20989
  "input",
20990
20990
  profile.canonicalContract.inputSchema,
20991
- capabilityContractInput(profile.inputs, args)
20991
+ capabilityContractInput(
20992
+ profile.inputs,
20993
+ args,
20994
+ profile.canonicalContract.capabilityId
20995
+ )
20992
20996
  );
20993
20997
  }
20994
20998
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.493",
3
+ "version": "0.4.495",
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",