@kody-ade/kody-engine 0.4.195-dev.0 → 0.4.195

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
@@ -1428,7 +1428,7 @@ var init_loadPriorArt = __esm({
1428
1428
  // package.json
1429
1429
  var package_default = {
1430
1430
  name: "@kody-ade/kody-engine",
1431
- version: "0.4.195-dev.0",
1431
+ version: "0.4.195",
1432
1432
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1433
1433
  license: "MIT",
1434
1434
  type: "module",
@@ -6035,16 +6035,29 @@ var composePrompt = async (ctx, profile) => {
6035
6035
  path23.join(profile.dir, "prompt.md")
6036
6036
  ].filter(Boolean);
6037
6037
  let templatePath = "";
6038
+ let template = "";
6039
+ const attempts = [];
6038
6040
  for (const c of candidates) {
6039
- if (fs24.existsSync(c)) {
6041
+ try {
6042
+ template = fs24.readFileSync(c, "utf-8");
6040
6043
  templatePath = c;
6041
6044
  break;
6045
+ } catch (err) {
6046
+ const code = err?.code ?? (err instanceof Error ? err.message : String(err));
6047
+ attempts.push(`${c} \u2192 ${code}`);
6042
6048
  }
6043
6049
  }
6044
6050
  if (!templatePath) {
6045
- throw new Error(`profile at ${profile.dir}: no prompt template found (tried ${candidates.join(", ")})`);
6051
+ let dirState;
6052
+ try {
6053
+ dirState = `dir contents: [${fs24.readdirSync(profile.dir).join(", ")}]`;
6054
+ } catch (err) {
6055
+ dirState = `readdir(${profile.dir}) failed: ${err?.code ?? String(err)}`;
6056
+ }
6057
+ throw new Error(
6058
+ `profile at ${profile.dir}: no prompt template found (cwd=${process.cwd()}; tried \u2014 ${attempts.join("; ")}; ${dirState})`
6059
+ );
6046
6060
  }
6047
- const template = fs24.readFileSync(templatePath, "utf-8");
6048
6061
  const tokens = {
6049
6062
  ...stringifyAll(ctx.args, "args."),
6050
6063
  ...stringifyAll(ctx.data, ""),
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.195-dev.0",
3
+ "version": "0.4.195",
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,24 +12,6 @@
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
- "build": "tsup && node scripts/copy-assets.cjs",
21
- "check:modularity": "tsx scripts/check-script-modularity.ts",
22
- "pretest": "pnpm check:modularity",
23
- "test": "vitest run tests/unit tests/int --coverage",
24
- "test:smoke": "vitest run tests/smoke --no-coverage",
25
- "test:e2e": "vitest run tests/e2e --no-coverage",
26
- "test:all": "vitest run tests --no-coverage",
27
- "typecheck": "tsc --noEmit",
28
- "lint": "biome check",
29
- "lint:fix": "biome check --write",
30
- "format": "biome format --write",
31
- "prepublishOnly": "pnpm build"
32
- },
33
15
  "dependencies": {
34
16
  "@actions/cache": "^6.0.0",
35
17
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
@@ -52,5 +34,22 @@
52
34
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
53
35
  },
54
36
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
55
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
56
- }
37
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
38
+ "scripts": {
39
+ "kody:run": "tsx bin/kody.ts",
40
+ "serve": "tsx bin/kody.ts serve",
41
+ "serve:vscode": "tsx bin/kody.ts serve vscode",
42
+ "serve:claude": "tsx bin/kody.ts serve claude",
43
+ "build": "tsup && node scripts/copy-assets.cjs",
44
+ "check:modularity": "tsx scripts/check-script-modularity.ts",
45
+ "pretest": "pnpm check:modularity",
46
+ "test": "vitest run tests/unit tests/int --coverage",
47
+ "test:smoke": "vitest run tests/smoke --no-coverage",
48
+ "test:e2e": "vitest run tests/e2e --no-coverage",
49
+ "test:all": "vitest run tests --no-coverage",
50
+ "typecheck": "tsc --noEmit",
51
+ "lint": "biome check",
52
+ "lint:fix": "biome check --write",
53
+ "format": "biome format --write"
54
+ }
55
+ }