@kody-ade/kody-engine 0.4.362 → 0.4.363

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 +10 -2
  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.362",
18
+ version: "0.4.363",
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",
@@ -2742,7 +2742,15 @@ function dispatchWorkflow(workflowFile, capability, issueNumber, repoSlug, ref)
2742
2742
  }
2743
2743
  }
2744
2744
  function startCapability(workflowFile, name, issue, repoSlug, ref) {
2745
- return dispatchWorkflow(workflowFile, name, issue, repoSlug, ref);
2745
+ const acceptsIssue = capabilityAcceptsIssue(name);
2746
+ const forwardedIssue = acceptsIssue === false ? void 0 : issue;
2747
+ return dispatchWorkflow(workflowFile, name, forwardedIssue, repoSlug, ref);
2748
+ }
2749
+ function capabilityAcceptsIssue(capability) {
2750
+ const route = resolveCapabilityAction(capability);
2751
+ if (!route) return null;
2752
+ const inputs = getProfileInputs(route.implementation) ?? [];
2753
+ return inputs.some((input) => input.name === "issue" || input.name === "pr");
2746
2754
  }
2747
2755
  function expectedDispatchTarget(capability) {
2748
2756
  const route = resolveCapabilityAction(capability);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.362",
3
+ "version": "0.4.363",
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",