@kody-ade/kody-engine 0.4.425 → 0.4.427

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +17 -5
  2. package/package.json +25 -24
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.425",
18
+ version: "0.4.427",
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",
@@ -9036,9 +9036,18 @@ function normalizeWorkflowDefinition(value) {
9036
9036
  };
9037
9037
  }
9038
9038
  function readWorkflowDefinition(_config, cwd, id) {
9039
- const filePath = path25.join(cwd ?? process.cwd(), ".kody-engine", "runtime", workflowDefinitionPath(id));
9040
- if (!fs28.existsSync(filePath)) return null;
9041
- return parseWorkflowDefinition(fs28.readFileSync(filePath, "utf8"));
9039
+ const root = cwd ?? process.cwd();
9040
+ const relativePath = workflowDefinitionPath(id);
9041
+ const candidates = [
9042
+ path25.join(root, ".kody-engine", "runtime", relativePath),
9043
+ path25.join(root, ".kody-engine", "definitions", relativePath)
9044
+ ];
9045
+ for (const filePath of candidates) {
9046
+ if (!fs28.existsSync(filePath)) continue;
9047
+ const workflow = parseWorkflowDefinition(fs28.readFileSync(filePath, "utf8"));
9048
+ if (workflow) return workflow;
9049
+ }
9050
+ return null;
9042
9051
  }
9043
9052
  function workflowDefinitionToCapabilityFolder(id, workflow, source = workflowDefinitionPath(id)) {
9044
9053
  return {
@@ -13557,7 +13566,10 @@ async function runAttempt(run, job, timeoutSeconds) {
13557
13566
  let timer;
13558
13567
  try {
13559
13568
  return await Promise.race([
13560
- run(job, abortController),
13569
+ run(job, abortController).catch((error) => ({
13570
+ exitCode: 99,
13571
+ reason: error instanceof Error ? error.message : String(error)
13572
+ })),
13561
13573
  new Promise((resolve17) => {
13562
13574
  timer = setTimeout(() => {
13563
13575
  abortController.abort();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.425",
3
+ "version": "0.4.427",
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",
@@ -12,6 +12,28 @@
12
12
  "templates",
13
13
  "kody.config.schema.json"
14
14
  ],
15
+ "scripts": {
16
+ "kody:run": "tsx bin/kody.ts",
17
+ "serve": "tsx bin/kody.ts serve",
18
+ "serve:vscode": "tsx bin/kody.ts serve vscode",
19
+ "serve:claude": "tsx bin/kody.ts serve claude",
20
+ "clean:dist": "node scripts/clean-dist.cjs",
21
+ "build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
22
+ "check:modularity": "tsx scripts/check-script-modularity.ts",
23
+ "pretest": "pnpm check:modularity",
24
+ "test": "vitest run tests/unit tests/int --coverage",
25
+ "posttest": "tsx scripts/check-coverage-floor.ts",
26
+ "test:smoke": "vitest run tests/smoke --no-coverage",
27
+ "test:e2e": "vitest run tests/e2e --no-coverage",
28
+ "test:all": "vitest run tests --no-coverage",
29
+ "typecheck": "tsc --noEmit",
30
+ "lint": "biome check",
31
+ "lint:fix": "biome check --write",
32
+ "format": "biome format --write",
33
+ "verify:package": "node scripts/verify-package-tarball.cjs",
34
+ "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
35
+ "prepublishOnly": "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build && pnpm verify:package"
36
+ },
15
37
  "dependencies": {
16
38
  "@actions/cache": "^6.0.0",
17
39
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
@@ -37,26 +59,5 @@
37
59
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
38
60
  },
39
61
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
40
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
41
- "scripts": {
42
- "kody:run": "tsx bin/kody.ts",
43
- "serve": "tsx bin/kody.ts serve",
44
- "serve:vscode": "tsx bin/kody.ts serve vscode",
45
- "serve:claude": "tsx bin/kody.ts serve claude",
46
- "clean:dist": "node scripts/clean-dist.cjs",
47
- "build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
48
- "check:modularity": "tsx scripts/check-script-modularity.ts",
49
- "pretest": "pnpm check:modularity",
50
- "test": "vitest run tests/unit tests/int --coverage",
51
- "posttest": "tsx scripts/check-coverage-floor.ts",
52
- "test:smoke": "vitest run tests/smoke --no-coverage",
53
- "test:e2e": "vitest run tests/e2e --no-coverage",
54
- "test:all": "vitest run tests --no-coverage",
55
- "typecheck": "tsc --noEmit",
56
- "lint": "biome check",
57
- "lint:fix": "biome check --write",
58
- "format": "biome format --write",
59
- "verify:package": "node scripts/verify-package-tarball.cjs",
60
- "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
61
- }
62
- }
62
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
63
+ }