@kody-ade/kody-engine 0.4.195-dev.0 → 0.4.196
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 +19 -6
- package/dist/executables/goal-scheduler/scheduler.sh +0 -0
- package/dist/executables/release-deploy/deploy.sh +0 -0
- package/dist/executables/release-prepare/prepare.sh +0 -0
- package/dist/executables/release-publish/publish.sh +0 -0
- package/dist/executables/resolve/apply-prefer.sh +0 -0
- package/dist/executables/revert/revert.sh +0 -0
- package/package.json +20 -21
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.
|
|
1431
|
+
version: "0.4.196",
|
|
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
|
-
|
|
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
|
-
|
|
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, ""),
|
|
@@ -8669,7 +8682,7 @@ function resetWorkingTree(cwd) {
|
|
|
8669
8682
|
} catch {
|
|
8670
8683
|
}
|
|
8671
8684
|
try {
|
|
8672
|
-
execFileSync14("git", ["clean", "-fd"], { cwd, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8685
|
+
execFileSync14("git", ["clean", "-fd", "-e", ".kody"], { cwd, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8673
8686
|
} catch {
|
|
8674
8687
|
}
|
|
8675
8688
|
}
|
|
@@ -8685,7 +8698,7 @@ function checkoutPrBranch(prNumber, cwd) {
|
|
|
8685
8698
|
} catch {
|
|
8686
8699
|
}
|
|
8687
8700
|
try {
|
|
8688
|
-
execFileSync14("git", ["clean", "-fd"], { cwd, env, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8701
|
+
execFileSync14("git", ["clean", "-fd", "-e", ".kody"], { cwd, env, stdio: ["ignore", "pipe", "pipe"], timeout: 3e4 });
|
|
8689
8702
|
} catch {
|
|
8690
8703
|
}
|
|
8691
8704
|
execFileSync14("gh", ["pr", "checkout", String(prNumber)], {
|
|
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.
|
|
3
|
+
"version": "0.4.196",
|
|
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
|
+
}
|