@kody-ade/kody-engine 0.4.491 → 0.4.493

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 +15 -8
  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.491",
18
+ version: "0.4.493",
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",
@@ -4327,7 +4327,10 @@ function validateCapabilityContractValue(boundary, schema, value) {
4327
4327
  }
4328
4328
  function capabilityContractInput(inputs, args) {
4329
4329
  const isGenericRunnerInput = inputs.some((input) => input.name === "input") && Object.hasOwn(args, "input");
4330
- if (!isGenericRunnerInput) return args;
4330
+ if (!isGenericRunnerInput) {
4331
+ const isParameterlessGenericRunner = inputs.some((input) => input.name === "capability") && Object.hasOwn(args, "capability");
4332
+ return isParameterlessGenericRunner ? {} : args;
4333
+ }
4331
4334
  const value = args.input;
4332
4335
  if (typeof value !== "string") return value;
4333
4336
  try {
@@ -4347,10 +4350,13 @@ var init_capability_contract_validation = __esm({
4347
4350
  });
4348
4351
  CapabilityContractValidationError = class extends Error {
4349
4352
  constructor(boundary, errors) {
4353
+ const details = errors.map((error) => {
4354
+ const location = error.instancePath || "$";
4355
+ const property = error.keyword === "additionalProperties" && typeof error.params.additionalProperty === "string" ? ` (${error.params.additionalProperty})` : "";
4356
+ return `${location}: ${error.message ?? error.keyword}${property}`;
4357
+ }).join("; ");
4350
4358
  super(
4351
- `Capability ${boundary} does not match its declared contract: ${validator.errorsText([...errors], {
4352
- separator: "; "
4353
- })}`
4359
+ `Capability ${boundary} does not match its declared contract: ${details}`
4354
4360
  );
4355
4361
  this.boundary = boundary;
4356
4362
  this.errors = errors;
@@ -15490,9 +15496,10 @@ async function resolveRuntimeSecret(name, ctx, opts = {}) {
15490
15496
  }
15491
15497
  async function resolveRuntimeSecrets(names, ctx, opts = {}) {
15492
15498
  const declared = Array.isArray(names) ? [...new Set(names.filter((name) => typeof name === "string" && /^[A-Z][A-Z0-9_]*$/.test(name)))] : [];
15493
- const resolved = await Promise.all(
15494
- declared.map(async (name) => ({ name, result: await resolveRuntimeSecret(name, ctx, opts) }))
15495
- );
15499
+ const resolved = [];
15500
+ for (const name of declared) {
15501
+ resolved.push({ name, result: await resolveRuntimeSecret(name, ctx, opts) });
15502
+ }
15496
15503
  return {
15497
15504
  environment: Object.fromEntries(
15498
15505
  resolved.flatMap(({ name, result }) => result.value ? [[name, result.value]] : [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.491",
3
+ "version": "0.4.493",
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",