@kody-ade/kody-engine 0.4.510 → 0.4.511

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 +9 -22
  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.510",
18
+ version: "0.4.511",
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",
@@ -1969,9 +1969,7 @@ function parseCapabilityContract(raw) {
1969
1969
  if (timeoutMs !== void 0 && parsed.execution !== "script") {
1970
1970
  throw new Error('contract.json timeoutMs is supported only when execution is "script"');
1971
1971
  }
1972
- const requiredSubagents = parsed.requiredSubagents === void 0 ? void 0 : Array.isArray(parsed.requiredSubagents) && parsed.requiredSubagents.length > 0 && parsed.requiredSubagents.every(
1973
- (name) => typeof name === "string" && /^[a-z][a-z0-9-]{0,63}$/.test(name)
1974
- ) ? [...new Set(parsed.requiredSubagents)] : null;
1972
+ const requiredSubagents = parsed.requiredSubagents === void 0 ? void 0 : Array.isArray(parsed.requiredSubagents) && parsed.requiredSubagents.length > 0 && parsed.requiredSubagents.every((name) => typeof name === "string" && /^[a-z][a-z0-9-]{0,63}$/.test(name)) ? [...new Set(parsed.requiredSubagents)] : null;
1975
1973
  if (requiredSubagents === null) {
1976
1974
  throw new Error("contract.json requiredSubagents must contain valid specialist names");
1977
1975
  }
@@ -4913,9 +4911,7 @@ var init_capability_contract_validation = __esm({
4913
4911
  const property = error.keyword === "additionalProperties" && typeof error.params.additionalProperty === "string" ? ` (${error.params.additionalProperty})` : "";
4914
4912
  return `${location}: ${error.message ?? error.keyword}${property}`;
4915
4913
  }).join("; ");
4916
- super(
4917
- `Capability ${boundary} does not match its declared contract: ${details}`
4918
- );
4914
+ super(`Capability ${boundary} does not match its declared contract: ${details}`);
4919
4915
  this.boundary = boundary;
4920
4916
  this.errors = errors;
4921
4917
  this.name = "CapabilityContractValidationError";
@@ -7950,10 +7946,7 @@ function capabilityInputEnvironment(input) {
7950
7946
  function capabilityConfigEnvironment(config) {
7951
7947
  if (!config || typeof config !== "object" || Array.isArray(config)) return {};
7952
7948
  return Object.fromEntries(
7953
- flattenConfig(config).map(([key, value]) => [
7954
- `KODY_CFG_${key}`,
7955
- value
7956
- ])
7949
+ flattenConfig(config).map(([key, value]) => [`KODY_CFG_${key}`, value])
7957
7950
  );
7958
7951
  }
7959
7952
  function flattenConfig(config, prefix = "") {
@@ -7966,9 +7959,7 @@ function flattenConfig(config, prefix = "") {
7966
7959
  } else if (Array.isArray(value)) {
7967
7960
  entries.push([key, JSON.stringify(value)]);
7968
7961
  } else if (typeof value === "object") {
7969
- entries.push(
7970
- ...flattenConfig(value, key)
7971
- );
7962
+ entries.push(...flattenConfig(value, key));
7972
7963
  }
7973
7964
  }
7974
7965
  return entries;
@@ -13648,9 +13639,7 @@ import { randomUUID } from "crypto";
13648
13639
  function assertLoopDispatchesSucceeded(results) {
13649
13640
  const failed = results.filter((result) => result.status === "failed");
13650
13641
  if (failed.length === 0) return;
13651
- throw new Error(
13652
- `Loop dispatch failed: ${failed.map((result) => `${result.loopId}: ${result.reason}`).join("; ")}`
13653
- );
13642
+ throw new Error(`Loop dispatch failed: ${failed.map((result) => `${result.loopId}: ${result.reason}`).join("; ")}`);
13654
13643
  }
13655
13644
  async function dispatchLoopsWith(input) {
13656
13645
  const results = [];
@@ -15697,10 +15686,10 @@ var init_loadQaContext = __esm({
15697
15686
  });
15698
15687
 
15699
15688
  // src/scripts/loadSimpleCapability.ts
15689
+ import { randomUUID as randomUUID2 } from "crypto";
15700
15690
  import * as fs43 from "fs";
15701
- import * as path40 from "path";
15702
15691
  import * as os6 from "os";
15703
- import { randomUUID as randomUUID2 } from "crypto";
15692
+ import * as path40 from "path";
15704
15693
  function registerCapabilitySubagents(profile, toolRoot, toolFiles) {
15705
15694
  const subagentFiles = toolFiles.flatMap((file) => {
15706
15695
  const match = /^agents\/([a-z][a-z0-9-]{0,63})\.md$/.exec(file);
@@ -21144,9 +21133,7 @@ async function runImplementation(profileName, input) {
21144
21133
  profile.inputs,
21145
21134
  args,
21146
21135
  profile.canonicalContract.capabilityId,
21147
- Object.keys(
21148
- profile.canonicalContract.inputSchema.properties ?? {}
21149
- )
21136
+ Object.keys(profile.canonicalContract.inputSchema.properties ?? {})
21150
21137
  )
21151
21138
  );
21152
21139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.510",
3
+ "version": "0.4.511",
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",