@kody-ade/kody-engine 0.4.49 → 0.4.50

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.4.49",
6
+ version: "0.4.50",
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",
@@ -7184,7 +7184,7 @@ var FAILED_LABEL_SPEC = {
7184
7184
  color: "e11d21",
7185
7185
  description: "kody: flow failed"
7186
7186
  };
7187
- var postIssueComment2 = async (ctx) => {
7187
+ var postIssueComment2 = async (ctx, profile) => {
7188
7188
  if (ctx.skipAgent && ctx.output.exitCode !== void 0) return;
7189
7189
  const targetType = ctx.data.commentTargetType;
7190
7190
  const targetNumber = Number(ctx.data.commentTargetNumber ?? 0);
@@ -7195,6 +7195,18 @@ var postIssueComment2 = async (ctx) => {
7195
7195
  if (!commitResult?.committed && !hasCommits) {
7196
7196
  const specific = computeFailureReason2(ctx);
7197
7197
  const reason = specific.length > 0 ? specific : "no changes to commit";
7198
+ const containerParent = process.env.KODY_CONTAINER_PARENT;
7199
+ if (containerParent) {
7200
+ postWith(
7201
+ targetType,
7202
+ targetNumber,
7203
+ `\u2139\uFE0F kody ${profile.name}: ${truncate2(reason, 1200)} \u2014 ${containerParent} container will route to the next stage`,
7204
+ ctx.cwd
7205
+ );
7206
+ ctx.output.exitCode = 3;
7207
+ ctx.output.reason = reason;
7208
+ return;
7209
+ }
7198
7210
  postWith(targetType, targetNumber, `\u26A0\uFE0F kody FAILED: ${truncate2(reason, 1500)}`, ctx.cwd);
7199
7211
  markRunFailed(ctx);
7200
7212
  ctx.output.exitCode = 3;
@@ -9657,6 +9669,8 @@ async function runContainerLoop(profile, ctx, input) {
9657
9669
  }
9658
9670
  let childOut;
9659
9671
  const childStartedAt = Date.now();
9672
+ const priorParent = process.env.KODY_CONTAINER_PARENT;
9673
+ process.env.KODY_CONTAINER_PARENT = profile.name;
9660
9674
  try {
9661
9675
  childOut = await runChild(child.exec, {
9662
9676
  cliArgs,
@@ -9689,6 +9703,9 @@ async function runContainerLoop(profile, ctx, input) {
9689
9703
  ctx.output.exitCode = 1;
9690
9704
  ctx.output.reason = `child "${child.exec}" crashed: ${msg}`;
9691
9705
  return;
9706
+ } finally {
9707
+ if (priorParent === void 0) delete process.env.KODY_CONTAINER_PARENT;
9708
+ else process.env.KODY_CONTAINER_PARENT = priorParent;
9692
9709
  }
9693
9710
  const priorAttempts = priorState.core?.attempts?.[child.exec] ?? 0;
9694
9711
  const next = readContainerState(ctx, child, reader);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.49",
3
+ "version": "0.4.50",
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",
@@ -12,18 +12,6 @@
12
12
  "templates",
13
13
  "kody.config.schema.json"
14
14
  ],
15
- "scripts": {
16
- "kody": "tsx bin/kody.ts",
17
- "build": "tsup && node scripts/copy-assets.cjs",
18
- "test": "vitest run tests/unit tests/int --no-coverage",
19
- "test:e2e": "vitest run tests/e2e --no-coverage",
20
- "test:all": "vitest run tests --no-coverage",
21
- "typecheck": "tsc --noEmit",
22
- "lint": "biome check",
23
- "lint:fix": "biome check --write",
24
- "format": "biome format --write",
25
- "prepublishOnly": "pnpm build"
26
- },
27
15
  "dependencies": {
28
16
  "@actions/cache": "^6.0.0",
29
17
  "@anthropic-ai/claude-agent-sdk": "0.2.119"
@@ -44,5 +32,16 @@
44
32
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
45
33
  },
46
34
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
47
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
48
- }
35
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
36
+ "scripts": {
37
+ "kody": "tsx bin/kody.ts",
38
+ "build": "tsup && node scripts/copy-assets.cjs",
39
+ "test": "vitest run tests/unit tests/int --no-coverage",
40
+ "test:e2e": "vitest run tests/e2e --no-coverage",
41
+ "test:all": "vitest run tests --no-coverage",
42
+ "typecheck": "tsc --noEmit",
43
+ "lint": "biome check",
44
+ "lint:fix": "biome check --write",
45
+ "format": "biome format --write"
46
+ }
47
+ }