@kody-ade/kody-engine 0.4.363 → 0.4.365
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 +5 -3
- 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.
|
|
18
|
+
version: "0.4.365",
|
|
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",
|
|
@@ -2856,11 +2856,13 @@ function capabilityToolDefinitions(opts) {
|
|
|
2856
2856
|
name: "read_check_runs",
|
|
2857
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.",
|
|
2858
2858
|
inputSchema: {
|
|
2859
|
-
ref: z3.string().min(1).describe("Branch name
|
|
2859
|
+
ref: z3.string().min(1).optional().describe("Branch name, commit SHA, or 'default' for the configured agency branch."),
|
|
2860
2860
|
ignoreNames: z3.array(z3.string()).optional().describe("Check names to exclude (default: Kody's own job names).")
|
|
2861
2861
|
},
|
|
2862
2862
|
handler: async (args) => {
|
|
2863
|
-
const
|
|
2863
|
+
const requestedRef = String(args.ref ?? "default");
|
|
2864
|
+
const workflowRef = process.env.GITHUB_REF_NAME?.trim();
|
|
2865
|
+
const ref = requestedRef === "default" ? workflowRef || opts.defaultBranch || "main" : requestedRef;
|
|
2864
2866
|
const ignoreNames = Array.isArray(args.ignoreNames) ? args.ignoreNames : DEFAULT_IGNORE_CHECKS;
|
|
2865
2867
|
const result = readCheckRuns(opts.repoSlug, ref, ignoreNames);
|
|
2866
2868
|
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.
|
|
3
|
+
"version": "0.4.365",
|
|
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",
|