@kody-ade/kody-engine 0.3.27 → 0.3.28

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 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.27",
6
+ version: "0.3.28",
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: {
@@ -5077,6 +5078,7 @@ async function verifyAll(config, cwd) {
5077
5078
  if (config.quality.typecheck) commands.push({ name: "typecheck", cmd: config.quality.typecheck });
5078
5079
  if (config.quality.testUnit) commands.push({ name: "test", cmd: config.quality.testUnit });
5079
5080
  if (config.quality.lint) commands.push({ name: "lint", cmd: config.quality.lint });
5081
+ if (config.quality.format) commands.push({ name: "format", cmd: config.quality.format });
5080
5082
  const failed = [];
5081
5083
  const details = {};
5082
5084
  for (const { name, cmd } of commands) {
@@ -5112,6 +5114,17 @@ var verify = async (ctx) => {
5112
5114
  ctx.data.verifyOk = false;
5113
5115
  ctx.data.verifyReason = `verify crashed: ${err instanceof Error ? err.message : String(err)}`;
5114
5116
  }
5117
+ if (ctx.data.verifyOk === false) {
5118
+ const action = ctx.data.action;
5119
+ if (action && action.type.endsWith("_COMPLETED")) {
5120
+ const reason = ctx.data.verifyReason || "verify failed";
5121
+ ctx.data.action = {
5122
+ type: action.type.replace(/_COMPLETED$/, "_FAILED"),
5123
+ payload: { reason, downgradedFrom: action.type },
5124
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
5125
+ };
5126
+ }
5127
+ }
5115
5128
  };
5116
5129
 
5117
5130
  // src/scripts/watchStalePrsFlow.ts
@@ -5377,7 +5390,7 @@ async function runExecutable(profileName, input) {
5377
5390
  config = input.config;
5378
5391
  } else if (input.skipConfig) {
5379
5392
  config = {
5380
- quality: { typecheck: "", lint: "", testUnit: "" },
5393
+ quality: { typecheck: "", lint: "", testUnit: "", format: "" },
5381
5394
  git: { defaultBranch: "main" },
5382
5395
  github: { owner: "", repo: "" },
5383
5396
  agent: { model: "claude/claude-haiku-4-5-20251001" }
@@ -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.27",
3
+ "version": "0.3.28",
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",