@kody-ade/kody-engine 0.4.362 → 0.4.364

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 +13 -4
  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.364",
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);
@@ -2848,11 +2856,12 @@ function capabilityToolDefinitions(opts) {
2848
2856
  name: "read_check_runs",
2849
2857
  description: "Read CI for a branch or commit ref (e.g. 'dev'). Returns {sha, state, failing:[{name,conclusion,detailsUrl}], pending:[{name,status}]}. state is RED (\u22651 check has a terminal-failure conclusion: failure/timed_out/startup_failure/action_required), PENDING (none failed but some still running), or GREEN (all completed, none failed). Kody's own job check-runs (run/kody/capability-tick/\u2026) are excluded by default. This reads the commit's authoritative check-runs \u2014 use it instead of guessing CI health from a run list.",
2850
2858
  inputSchema: {
2851
- ref: z3.string().min(1).describe("Branch name or commit SHA to read CI for (e.g. 'dev')."),
2859
+ ref: z3.string().min(1).optional().describe("Branch name, commit SHA, or 'default' for the configured agency branch."),
2852
2860
  ignoreNames: z3.array(z3.string()).optional().describe("Check names to exclude (default: Kody's own job names).")
2853
2861
  },
2854
2862
  handler: async (args) => {
2855
- const ref = String(args.ref ?? "");
2863
+ const requestedRef = String(args.ref ?? "default");
2864
+ const ref = requestedRef === "default" ? opts.defaultBranch ?? "main" : requestedRef;
2856
2865
  const ignoreNames = Array.isArray(args.ignoreNames) ? args.ignoreNames : DEFAULT_IGNORE_CHECKS;
2857
2866
  const result = readCheckRuns(opts.repoSlug, ref, ignoreNames);
2858
2867
  return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
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.364",
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",