@kody-ade/kody-engine 0.4.421 → 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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +17 -3
  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.421",
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: {}
@@ -24486,8 +24496,12 @@ async function runCi(argv) {
24486
24496
  if (!route) {
24487
24497
  const root = capabilitiesRoot(cwd);
24488
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
+ });
24489
24503
  process.stderr.write(
24490
- `[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow (capabilitiesRoot=${root}, available=${available.join(",") || "none"})
24504
+ `[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow (capabilitiesRoot=${root}, available=${available.join(",") || "none"}, folders=${folders.join(",") || "none"})
24491
24505
  `
24492
24506
  );
24493
24507
  return 64;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.421",
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",