@kody-ade/kody-engine 0.4.420 → 0.4.422

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 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.420",
18
+ version: "0.4.422",
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",
@@ -24015,6 +24015,7 @@ function coerceBare(spec, value) {
24015
24015
  }
24016
24016
 
24017
24017
  // src/kody-cli.ts
24018
+ init_capabilityFolders();
24018
24019
  init_definition_paths();
24019
24020
  init_gha();
24020
24021
  init_issue();
@@ -24469,7 +24470,16 @@ async function runCi(argv) {
24469
24470
  if (forceRunAction) {
24470
24471
  const config = earlyConfig ?? loadConfig(cwd);
24471
24472
  const manualGoalManager = forceRunAction === "goal-manager";
24472
- const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction, capabilitiesRoot(cwd));
24473
+ const capabilityRoot = capabilitiesRoot(cwd);
24474
+ const directCapability = manualGoalManager ? null : resolveCapabilityFolder(forceRunAction, capabilityRoot);
24475
+ const directExecution = directCapability ? resolveCapabilityExecution(directCapability, cwd) : null;
24476
+ const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction, capabilityRoot) ?? (directCapability && directExecution && (directCapability.config.action ?? directCapability.slug) === forceRunAction ? {
24477
+ action: forceRunAction,
24478
+ capability: directCapability.slug,
24479
+ implementation: directExecution.implementation,
24480
+ cliArgs: directExecution.cliArgs,
24481
+ source: "project-folder"
24482
+ } : null);
24473
24483
  const workflowRoute = manualGoalManager || capabilityRoute || !readWorkflowDefinition(config, cwd, forceRunAction) ? void 0 : {
24474
24484
  workflow: forceRunAction,
24475
24485
  cliArgs: {}
@@ -24484,8 +24494,16 @@ async function runCi(argv) {
24484
24494
  cliArgs: forceRunCliArgs
24485
24495
  } : capabilityRoute ?? workflowRoute ?? scheduledWatchRoute;
24486
24496
  if (!route) {
24487
- process.stderr.write(`[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow
24488
- `);
24497
+ const root = capabilitiesRoot(cwd);
24498
+ const available = listCapabilityActions(root).map((item) => item.action);
24499
+ const folders = listCapabilityFolderSlugs(root).map((slug) => {
24500
+ const folder = readCapabilityFolder(root, slug);
24501
+ return folder ? `${slug}:${folder.config.action ?? slug}:${folder.config.role ?? "no-role"}` : `${slug}:unreadable`;
24502
+ });
24503
+ process.stderr.write(
24504
+ `[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow (capabilitiesRoot=${root}, available=${available.join(",") || "none"}, folders=${folders.join(",") || "none"})
24505
+ `
24506
+ );
24489
24507
  return 64;
24490
24508
  }
24491
24509
  if (route.implementation === "goal-manager" && typeof forceRunCliArgs.goal !== "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.420",
3
+ "version": "0.4.422",
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",
@@ -93,4 +93,9 @@ jobs:
93
93
  INIT_MESSAGE: ${{ inputs.message }}
94
94
  MODEL: ${{ inputs.model }}
95
95
  DASHBOARD_URL: ${{ inputs.dashboardUrl }}
96
- run: npx -y -p @kody-ade/kody-engine@latest kody-engine
96
+ KODY_DEFINITIONS_ROOT: ${{ github.workspace }}/.kody-engine/definitions
97
+ KODY_DEFINITIONS_ROOT_CWD: ${{ github.workspace }}
98
+ working-directory: ${{ github.workspace }}
99
+ run: |
100
+ test -d .kody-engine/definitions/capabilities
101
+ npx -y -p @kody-ade/kody-engine@latest kody-engine ci --cwd "$GITHUB_WORKSPACE"