@kody-ade/kody-engine 0.4.293 → 0.4.295

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 +19 -3
  2. package/package.json +2 -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.293",
18
+ version: "0.4.295",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -45,8 +45,9 @@ var init_package = __esm({
45
45
  lint: "biome check",
46
46
  "lint:fix": "biome check --write",
47
47
  format: "biome format --write",
48
+ "verify:package": "node scripts/verify-package-tarball.cjs",
48
49
  "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
49
- prepublishOnly: "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build"
50
+ prepublishOnly: "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build && pnpm verify:package"
50
51
  },
51
52
  dependencies: {
52
53
  "@actions/cache": "^6.0.0",
@@ -2306,6 +2307,7 @@ function listFolderCapabilityActions(root, source) {
2306
2307
  if (capability.config.internal === true || capability.config.public === false) continue;
2307
2308
  const action = capability.config.action ?? slug2;
2308
2309
  const { executable, cliArgs } = resolveCapabilityExecution(capability);
2310
+ if (hasUnresolvedExplicitImplementation(capability, executable)) continue;
2309
2311
  out.push({
2310
2312
  action,
2311
2313
  capability: slug2,
@@ -2319,6 +2321,14 @@ function listFolderCapabilityActions(root, source) {
2319
2321
  }
2320
2322
  return out.sort((a, b) => a.action.localeCompare(b.action));
2321
2323
  }
2324
+ function hasUnresolvedExplicitImplementation(capability, executable) {
2325
+ const config = capability.config;
2326
+ const hasExplicitImplementation = Boolean(config.implementation || config.executable) || (config.implementations?.length ?? 0) > 0 || (config.executables?.length ?? 0) > 0;
2327
+ if (!hasExplicitImplementation) return false;
2328
+ if (config.workflow?.steps.length) return false;
2329
+ if (config.role && PUBLIC_EXECUTABLE_ROLES.has(config.role)) return false;
2330
+ return resolveExecutable(executable) === null;
2331
+ }
2322
2332
  function listBuiltinCapabilityActions(root = getBuiltinCapabilitiesRoot()) {
2323
2333
  if (!fs6.existsSync(root) || !fs6.statSync(root).isDirectory()) return [];
2324
2334
  const out = [];
@@ -17644,6 +17654,9 @@ var init_scripts = __esm({
17644
17654
  postReviewResult,
17645
17655
  persistArtifacts,
17646
17656
  writeAgentRunSummary,
17657
+ // Deprecated profile compatibility. Older external capability profiles used
17658
+ // this name before the summary writer was made agent-result specific.
17659
+ writeRunSummary: writeAgentRunSummary,
17647
17660
  saveTaskState,
17648
17661
  mirrorStateToPr,
17649
17662
  startFlow,
@@ -17961,7 +17974,10 @@ async function runExecutable(profileName, input) {
17961
17974
  const profile = loadProfile(profilePath);
17962
17975
  const missing = validateScriptReferences(profile, allScriptNames);
17963
17976
  if (missing.length > 0) {
17964
- return finishAndEnd({ exitCode: 99, reason: `profile references unknown scripts: ${missing.join(", ")}` });
17977
+ return finishAndEnd({
17978
+ exitCode: 99,
17979
+ reason: `profile references unknown scripts: ${missing.join(", ")} (profile: ${profilePath})`
17980
+ });
17965
17981
  }
17966
17982
  let args;
17967
17983
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.293",
3
+ "version": "0.4.295",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -54,6 +54,7 @@
54
54
  "lint": "biome check",
55
55
  "lint:fix": "biome check --write",
56
56
  "format": "biome format --write",
57
+ "verify:package": "node scripts/verify-package-tarball.cjs",
57
58
  "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
58
59
  }
59
60
  }