@kody-ade/kody-engine 0.2.35 → 0.2.37
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/kody2.js +17 -3
- package/package.json +14 -15
package/dist/bin/kody2.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.2.
|
|
6
|
+
version: "0.2.37",
|
|
7
7
|
description: "kody2 \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
type: "module",
|
|
@@ -1252,7 +1252,7 @@ var FORBIDDEN_PATH_PREFIXES = [
|
|
|
1252
1252
|
"dist/",
|
|
1253
1253
|
"build/"
|
|
1254
1254
|
];
|
|
1255
|
-
var FORBIDDEN_PATH_EXACT = /* @__PURE__ */ new Set([".env"]);
|
|
1255
|
+
var FORBIDDEN_PATH_EXACT = /* @__PURE__ */ new Set([".env", ".kody2-pip-requirements.txt"]);
|
|
1256
1256
|
var FORBIDDEN_PATH_SUFFIXES = [".log"];
|
|
1257
1257
|
var CONVENTIONAL_PREFIXES = [
|
|
1258
1258
|
"feat:",
|
|
@@ -1337,6 +1337,19 @@ function listChangedFiles(cwd) {
|
|
|
1337
1337
|
const entries = raw.split("\0").filter((e) => e.length > 0);
|
|
1338
1338
|
return entries.map((e) => e.slice(3)).filter(Boolean);
|
|
1339
1339
|
}
|
|
1340
|
+
function listFilesInCommit(ref = "HEAD", cwd) {
|
|
1341
|
+
try {
|
|
1342
|
+
const raw = execFileSync3("git", ["show", "--name-only", "--pretty=format:", "-z", ref], {
|
|
1343
|
+
encoding: "utf-8",
|
|
1344
|
+
cwd,
|
|
1345
|
+
env: { ...process.env, HUSKY: "0", SKIP_HOOKS: "1" },
|
|
1346
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
1347
|
+
});
|
|
1348
|
+
return raw.split("\0").map((s) => s.trim()).filter(Boolean);
|
|
1349
|
+
} catch {
|
|
1350
|
+
return [];
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1340
1353
|
function normalizeCommitMessage(raw) {
|
|
1341
1354
|
const trimmed = raw.trim().replace(/^['"]|['"]$/g, "").trim();
|
|
1342
1355
|
if (!trimmed) return "chore: kody2 update";
|
|
@@ -1421,7 +1434,8 @@ var commitAndPush2 = async (ctx, profile) => {
|
|
|
1421
1434
|
try {
|
|
1422
1435
|
const result = commitAndPush(branch, message, ctx.cwd);
|
|
1423
1436
|
ctx.data.commitResult = result;
|
|
1424
|
-
|
|
1437
|
+
const postCommitFiles = result.committed ? listFilesInCommit("HEAD", ctx.cwd) : listChangedFiles(ctx.cwd);
|
|
1438
|
+
ctx.data.changedFiles = postCommitFiles.filter((f) => !isForbiddenPath(f));
|
|
1425
1439
|
} catch (err) {
|
|
1426
1440
|
ctx.data.commitCrash = err instanceof Error ? err.message : String(err);
|
|
1427
1441
|
ctx.data.commitResult = { committed: false, pushed: false };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"description": "kody2 — 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
|
-
"kody2": "tsx bin/kody2.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
|
"@anthropic-ai/claude-agent-sdk": "0.2.92"
|
|
29
17
|
},
|
|
@@ -43,5 +31,16 @@
|
|
|
43
31
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
44
32
|
},
|
|
45
33
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
46
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
47
|
-
|
|
34
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"kody2": "tsx bin/kody2.ts",
|
|
37
|
+
"build": "tsup && node scripts/copy-assets.cjs",
|
|
38
|
+
"test": "vitest run tests/unit tests/int --no-coverage",
|
|
39
|
+
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
40
|
+
"test:all": "vitest run tests --no-coverage",
|
|
41
|
+
"typecheck": "tsc --noEmit",
|
|
42
|
+
"lint": "biome check",
|
|
43
|
+
"lint:fix": "biome check --write",
|
|
44
|
+
"format": "biome format --write"
|
|
45
|
+
}
|
|
46
|
+
}
|