@kody-ade/kody-engine 0.4.364 → 0.4.366
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 +9 -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.366",
|
|
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",
|
|
@@ -2861,7 +2861,8 @@ function capabilityToolDefinitions(opts) {
|
|
|
2861
2861
|
},
|
|
2862
2862
|
handler: async (args) => {
|
|
2863
2863
|
const requestedRef = String(args.ref ?? "default");
|
|
2864
|
-
const
|
|
2864
|
+
const workflowRef = process.env.GITHUB_REF_NAME?.trim();
|
|
2865
|
+
const ref = requestedRef === "default" ? workflowRef || opts.defaultBranch || "main" : requestedRef;
|
|
2865
2866
|
const ignoreNames = Array.isArray(args.ignoreNames) ? args.ignoreNames : DEFAULT_IGNORE_CHECKS;
|
|
2866
2867
|
const result = readCheckRuns(opts.repoSlug, ref, ignoreNames);
|
|
2867
2868
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
@@ -6859,6 +6860,10 @@ var init_pushWithRetry = __esm({
|
|
|
6859
6860
|
import { execFileSync as execFileSync7 } from "child_process";
|
|
6860
6861
|
import * as fs24 from "fs";
|
|
6861
6862
|
import * as path23 from "path";
|
|
6863
|
+
function isGitHubYamlPath(filePath) {
|
|
6864
|
+
const normalized = filePath.replace(/^\.\/+/, "");
|
|
6865
|
+
return normalized.startsWith(".github/") && /\.ya?ml$/i.test(normalized);
|
|
6866
|
+
}
|
|
6862
6867
|
function git(args, cwd) {
|
|
6863
6868
|
try {
|
|
6864
6869
|
return execFileSync7("git", args, {
|
|
@@ -6922,13 +6927,14 @@ function abortUnfinishedGitOps(cwd) {
|
|
|
6922
6927
|
}
|
|
6923
6928
|
function isForbiddenPath(p) {
|
|
6924
6929
|
if (FORBIDDEN_PATH_EXACT.has(p)) return true;
|
|
6930
|
+
if (isGitHubYamlPath(p)) return true;
|
|
6925
6931
|
for (const pre of ALLOWED_PATH_PREFIXES) if (p.startsWith(pre)) return false;
|
|
6926
6932
|
for (const pre of FORBIDDEN_PATH_PREFIXES) if (p.startsWith(pre)) return true;
|
|
6927
6933
|
for (const suf of FORBIDDEN_PATH_SUFFIXES) if (p.endsWith(suf)) return true;
|
|
6928
6934
|
return false;
|
|
6929
6935
|
}
|
|
6930
6936
|
function listChangedFiles(cwd) {
|
|
6931
|
-
const raw = execFileSync7("git", ["status", "--porcelain=v1", "-z"], {
|
|
6937
|
+
const raw = execFileSync7("git", ["status", "--porcelain=v1", "-z", "--untracked-files=all"], {
|
|
6932
6938
|
encoding: "utf-8",
|
|
6933
6939
|
cwd,
|
|
6934
6940
|
env: { ...process.env, HUSKY: "0", SKIP_HOOKS: "1" },
|
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.366",
|
|
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",
|