@kody-ade/kody-engine 0.3.27 → 0.3.29
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 +16 -2
- package/kody.config.schema.json +5 -0
- package/package.json +1 -1
- package/templates/kody.yml +1 -0
package/dist/bin/kody.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@kody-ade/kody-engine",
|
|
6
|
-
version: "0.3.
|
|
6
|
+
version: "0.3.29",
|
|
7
7
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
type: "module",
|
|
@@ -167,6 +167,7 @@ function loadConfig(projectDir = process.cwd()) {
|
|
|
167
167
|
quality: {
|
|
168
168
|
typecheck: typeof quality.typecheck === "string" ? quality.typecheck : "",
|
|
169
169
|
lint: typeof quality.lint === "string" ? quality.lint : "",
|
|
170
|
+
format: typeof quality.format === "string" ? quality.format : "",
|
|
170
171
|
testUnit: typeof quality.testUnit === "string" ? quality.testUnit : ""
|
|
171
172
|
},
|
|
172
173
|
git: {
|
|
@@ -3624,6 +3625,7 @@ jobs:
|
|
|
3624
3625
|
issues: write
|
|
3625
3626
|
pull-requests: write
|
|
3626
3627
|
contents: write
|
|
3628
|
+
actions: read
|
|
3627
3629
|
steps:
|
|
3628
3630
|
- uses: actions/checkout@v4
|
|
3629
3631
|
with:
|
|
@@ -5077,6 +5079,7 @@ async function verifyAll(config, cwd) {
|
|
|
5077
5079
|
if (config.quality.typecheck) commands.push({ name: "typecheck", cmd: config.quality.typecheck });
|
|
5078
5080
|
if (config.quality.testUnit) commands.push({ name: "test", cmd: config.quality.testUnit });
|
|
5079
5081
|
if (config.quality.lint) commands.push({ name: "lint", cmd: config.quality.lint });
|
|
5082
|
+
if (config.quality.format) commands.push({ name: "format", cmd: config.quality.format });
|
|
5080
5083
|
const failed = [];
|
|
5081
5084
|
const details = {};
|
|
5082
5085
|
for (const { name, cmd } of commands) {
|
|
@@ -5112,6 +5115,17 @@ var verify = async (ctx) => {
|
|
|
5112
5115
|
ctx.data.verifyOk = false;
|
|
5113
5116
|
ctx.data.verifyReason = `verify crashed: ${err instanceof Error ? err.message : String(err)}`;
|
|
5114
5117
|
}
|
|
5118
|
+
if (ctx.data.verifyOk === false) {
|
|
5119
|
+
const action = ctx.data.action;
|
|
5120
|
+
if (action && action.type.endsWith("_COMPLETED")) {
|
|
5121
|
+
const reason = ctx.data.verifyReason || "verify failed";
|
|
5122
|
+
ctx.data.action = {
|
|
5123
|
+
type: action.type.replace(/_COMPLETED$/, "_FAILED"),
|
|
5124
|
+
payload: { reason, downgradedFrom: action.type },
|
|
5125
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
5126
|
+
};
|
|
5127
|
+
}
|
|
5128
|
+
}
|
|
5115
5129
|
};
|
|
5116
5130
|
|
|
5117
5131
|
// src/scripts/watchStalePrsFlow.ts
|
|
@@ -5377,7 +5391,7 @@ async function runExecutable(profileName, input) {
|
|
|
5377
5391
|
config = input.config;
|
|
5378
5392
|
} else if (input.skipConfig) {
|
|
5379
5393
|
config = {
|
|
5380
|
-
quality: { typecheck: "", lint: "", testUnit: "" },
|
|
5394
|
+
quality: { typecheck: "", lint: "", testUnit: "", format: "" },
|
|
5381
5395
|
git: { defaultBranch: "main" },
|
|
5382
5396
|
github: { owner: "", repo: "" },
|
|
5383
5397
|
agent: { model: "claude/claude-haiku-4-5-20251001" }
|
package/kody.config.schema.json
CHANGED
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"description": "Auto-fix lint command, run when verify fails (e.g., 'pnpm lint:fix')",
|
|
24
24
|
"default": ""
|
|
25
25
|
},
|
|
26
|
+
"format": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Format check command (e.g., 'pnpm format:check', 'prettier --check .'). Empty to skip.",
|
|
29
|
+
"default": ""
|
|
30
|
+
},
|
|
26
31
|
"formatFix": {
|
|
27
32
|
"type": "string",
|
|
28
33
|
"description": "Auto-fix format command, run when verify fails (e.g., 'pnpm format')",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|