@kody-ade/kody-engine 0.4.537 → 0.4.539
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.539",
|
|
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",
|
|
@@ -2664,10 +2664,15 @@ function createKodyApiBackendClient(env = process.env) {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
async function notifyWorkflowCompleted(notification, env = process.env) {
|
|
2666
2666
|
const token = await githubOidcToken(env);
|
|
2667
|
+
const { summary: rawSummary, ...completion } = notification;
|
|
2668
|
+
const summary = rawSummary?.trim();
|
|
2667
2669
|
const response = await fetch(`${resolveKodyApiUrl(env)}/api/kody/engine/workflow-completed`, {
|
|
2668
2670
|
method: "POST",
|
|
2669
2671
|
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
2670
|
-
body: JSON.stringify(
|
|
2672
|
+
body: JSON.stringify({
|
|
2673
|
+
...completion,
|
|
2674
|
+
...summary ? { summary: summary.slice(0, WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH) } : {}
|
|
2675
|
+
}),
|
|
2671
2676
|
signal: AbortSignal.timeout(3e4)
|
|
2672
2677
|
});
|
|
2673
2678
|
if (!response.ok) throw new Error(`Kody workflow completion request failed (${response.status})`);
|
|
@@ -2705,12 +2710,13 @@ async function readPreviewContextFromKody(env = process.env) {
|
|
|
2705
2710
|
if (!response.ok) throw new Error(`Kody preview context request failed (${response.status})`);
|
|
2706
2711
|
return await response.json();
|
|
2707
2712
|
}
|
|
2708
|
-
var DEFAULT_KODY_API_URL, OIDC_AUDIENCE, cachedToken;
|
|
2713
|
+
var DEFAULT_KODY_API_URL, OIDC_AUDIENCE, WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH, cachedToken;
|
|
2709
2714
|
var init_kody_api_client = __esm({
|
|
2710
2715
|
"src/kody-api-client.ts"() {
|
|
2711
2716
|
"use strict";
|
|
2712
2717
|
DEFAULT_KODY_API_URL = "https://kody-dashboard-aguy.vercel.app";
|
|
2713
2718
|
OIDC_AUDIENCE = "kody-api";
|
|
2719
|
+
WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH = 1e3;
|
|
2714
2720
|
cachedToken = null;
|
|
2715
2721
|
}
|
|
2716
2722
|
});
|
|
@@ -23262,7 +23268,7 @@ function valueMatches(actual, expected) {
|
|
|
23262
23268
|
}
|
|
23263
23269
|
function workflowStepTargetNumber(step, parent, chainData) {
|
|
23264
23270
|
if (step.target === "pr") return workflowTargetFactNumber(step, chainData) ?? workflowPrNumber(chainData);
|
|
23265
|
-
if (step.target === "issue") return
|
|
23271
|
+
if (step.target === "issue") return workflowTargetFactNumber(step, chainData) ?? workflowIssueNumber(parent);
|
|
23266
23272
|
return typeof parent.target === "number" ? parent.target : targetFromCliArgs(parent.cliArgs);
|
|
23267
23273
|
}
|
|
23268
23274
|
function workflowResumeStartIndex(steps, evidence) {
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "kody
|
|
3
|
+
"version": "0.4.539",
|
|
4
|
+
"description": "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -12,6 +12,29 @@
|
|
|
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:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
|
|
29
|
+
"test:all": "vitest run tests --no-coverage",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"lint": "biome check",
|
|
32
|
+
"lint:fix": "biome check --write",
|
|
33
|
+
"format": "biome format --write",
|
|
34
|
+
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
35
|
+
"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",
|
|
36
|
+
"prepublishOnly": "pnpm typecheck && pnpm test:runtime-services && pnpm build && pnpm verify:package"
|
|
37
|
+
},
|
|
15
38
|
"dependencies": {
|
|
16
39
|
"@actions/cache": "^6.0.0",
|
|
17
40
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
@@ -38,27 +61,5 @@
|
|
|
38
61
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
39
62
|
},
|
|
40
63
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
41
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
42
|
-
|
|
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
|
-
"test:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
|
|
56
|
-
"test:all": "vitest run tests --no-coverage",
|
|
57
|
-
"typecheck": "tsc --noEmit",
|
|
58
|
-
"lint": "biome check",
|
|
59
|
-
"lint:fix": "biome check --write",
|
|
60
|
-
"format": "biome format --write",
|
|
61
|
-
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
62
|
-
"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"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
64
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
65
|
+
}
|
package/templates/kody.yml
CHANGED
|
@@ -87,3 +87,12 @@ jobs:
|
|
|
87
87
|
working-directory: ${{ github.workspace }}
|
|
88
88
|
run: |
|
|
89
89
|
npx -y -p @kody-ade/kody-engine@latest kody-engine
|
|
90
|
+
|
|
91
|
+
- name: Upload Quality Run evidence
|
|
92
|
+
if: ${{ always() }}
|
|
93
|
+
uses: actions/upload-artifact@v4
|
|
94
|
+
with:
|
|
95
|
+
name: kody-quality-${{ github.run_id }}
|
|
96
|
+
path: apps/dashboard/test-results/live-ui-gate/
|
|
97
|
+
if-no-files-found: ignore
|
|
98
|
+
retention-days: 30
|