@kody-ade/kody-engine 0.4.577 → 0.4.579
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
|
@@ -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.
|
|
18
|
+
version: "0.4.579",
|
|
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",
|
|
@@ -2269,7 +2269,8 @@ function parseDeliveryPathAllowlist(raw) {
|
|
|
2269
2269
|
const subtree = value.endsWith("/**");
|
|
2270
2270
|
const base = subtree ? value.slice(0, -3) : value;
|
|
2271
2271
|
const segments = base.split("/");
|
|
2272
|
-
|
|
2272
|
+
const trustedRepositoryDefinitions = base === ".kody-engine/definitions/loops";
|
|
2273
|
+
if (!base || base.startsWith("/") || base.startsWith(".") && !base.startsWith(".github/") && !trustedRepositoryDefinitions || base.includes("\\") || base.includes("..") || base.includes("*") || segments.some((segment) => !segment) || subtree && segments.length < 2 || value === ".github/**") {
|
|
2273
2274
|
throw new Error(`contract.json deliveryPathAllowlist contains an unsafe path: ${value}`);
|
|
2274
2275
|
}
|
|
2275
2276
|
}
|
|
@@ -17409,6 +17410,18 @@ var init_parseReproOutput = __esm({
|
|
|
17409
17410
|
|
|
17410
17411
|
// src/scripts/parseSimpleCapabilityOutput.ts
|
|
17411
17412
|
import * as fs47 from "fs";
|
|
17413
|
+
function acceptAuthoritativeFileOutput(ctx, profile, output) {
|
|
17414
|
+
ctx.data.agentDone = true;
|
|
17415
|
+
delete ctx.data.agentFailureReason;
|
|
17416
|
+
const summary = isObject2(output) && typeof output.summary === "string" ? output.summary.trim() : "";
|
|
17417
|
+
if (summary && !ctx.data.prSummary) ctx.data.prSummary = summary;
|
|
17418
|
+
const mode = typeof ctx.args?.mode === "string" ? ctx.args.mode : profile.name || "capability";
|
|
17419
|
+
ctx.data.action = {
|
|
17420
|
+
type: `${mode.replace(/-/g, "_").toUpperCase()}_COMPLETED`,
|
|
17421
|
+
payload: {},
|
|
17422
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17423
|
+
};
|
|
17424
|
+
}
|
|
17412
17425
|
function stringList2(value) {
|
|
17413
17426
|
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
17414
17427
|
}
|
|
@@ -17462,7 +17475,7 @@ var init_parseSimpleCapabilityOutput = __esm({
|
|
|
17462
17475
|
"use strict";
|
|
17463
17476
|
init_capability_contract_validation();
|
|
17464
17477
|
init_capabilityResult();
|
|
17465
|
-
parseSimpleCapabilityOutput = async (ctx,
|
|
17478
|
+
parseSimpleCapabilityOutput = async (ctx, profile, agentResult) => {
|
|
17466
17479
|
const requiredSubagents = stringList2(ctx.data.requiredSubagents);
|
|
17467
17480
|
const invokedSubagents = new Set(agentResult?.invokedSubagents ?? []);
|
|
17468
17481
|
const missingSubagents = requiredSubagents.filter((name) => !invokedSubagents.has(name));
|
|
@@ -17534,6 +17547,7 @@ var init_parseSimpleCapabilityOutput = __esm({
|
|
|
17534
17547
|
return;
|
|
17535
17548
|
}
|
|
17536
17549
|
}
|
|
17550
|
+
if (fileOutput.found) acceptAuthoritativeFileOutput(ctx, profile, output);
|
|
17537
17551
|
ctx.data.capabilityOutput = output;
|
|
17538
17552
|
const structuredResult = parseCapabilityResult(output);
|
|
17539
17553
|
if (structuredResult) {
|
|
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.579",
|
|
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,30 +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
|
-
"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
|
-
"verify:live-release": "tsx scripts/live-release-gate.ts",
|
|
29
|
-
"test:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
|
|
30
|
-
"test:all": "vitest run tests --no-coverage",
|
|
31
|
-
"typecheck": "tsc --noEmit",
|
|
32
|
-
"lint": "biome check",
|
|
33
|
-
"lint:fix": "biome check --write",
|
|
34
|
-
"format": "biome format --write",
|
|
35
|
-
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
36
|
-
"brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain --build-arg KODY_ENGINE_REF=$(git rev-parse HEAD) -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
|
|
37
|
-
"prepublishOnly": "pnpm typecheck && pnpm test:runtime-services && pnpm build && pnpm verify:package"
|
|
38
|
-
},
|
|
39
15
|
"dependencies": {
|
|
40
16
|
"@actions/cache": "^6.0.0",
|
|
41
17
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
@@ -62,5 +38,28 @@
|
|
|
62
38
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
63
39
|
},
|
|
64
40
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
65
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
66
|
-
|
|
41
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"kody:run": "tsx bin/kody.ts",
|
|
44
|
+
"serve": "tsx bin/kody.ts serve",
|
|
45
|
+
"serve:vscode": "tsx bin/kody.ts serve vscode",
|
|
46
|
+
"serve:claude": "tsx bin/kody.ts serve claude",
|
|
47
|
+
"clean:dist": "node scripts/clean-dist.cjs",
|
|
48
|
+
"build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
|
|
49
|
+
"check:modularity": "tsx scripts/check-script-modularity.ts",
|
|
50
|
+
"pretest": "pnpm check:modularity",
|
|
51
|
+
"test": "vitest run tests/unit tests/int --coverage",
|
|
52
|
+
"posttest": "tsx scripts/check-coverage-floor.ts",
|
|
53
|
+
"test:smoke": "vitest run tests/smoke --no-coverage",
|
|
54
|
+
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
55
|
+
"verify:live-release": "tsx scripts/live-release-gate.ts",
|
|
56
|
+
"test:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
|
|
57
|
+
"test:all": "vitest run tests --no-coverage",
|
|
58
|
+
"typecheck": "tsc --noEmit",
|
|
59
|
+
"lint": "biome check",
|
|
60
|
+
"lint:fix": "biome check --write",
|
|
61
|
+
"format": "biome format --write",
|
|
62
|
+
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
63
|
+
"brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain --build-arg KODY_ENGINE_REF=$(git rev-parse HEAD) -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
|
|
64
|
+
}
|
|
65
|
+
}
|