@kody-ade/kody-engine 0.4.311 → 0.4.312
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 +21 -12
- package/package.json +25 -24
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.312",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -6564,11 +6564,13 @@ function jobMetaFromData(data) {
|
|
|
6564
6564
|
why: typeof data.jobWhy === "string" ? data.jobWhy : void 0
|
|
6565
6565
|
};
|
|
6566
6566
|
}
|
|
6567
|
-
function
|
|
6567
|
+
function applyStandaloneFinalState(state, ctx, profile) {
|
|
6568
6568
|
if (profile.lifecycleConfig?.finalize !== true || state.flow?.issueNumber) return;
|
|
6569
|
-
const
|
|
6570
|
-
|
|
6571
|
-
|
|
6569
|
+
const hasPr = !!state.core.prUrl;
|
|
6570
|
+
const noDeliveryNeeded = isDeliveryNotRequired(ctx.data);
|
|
6571
|
+
const succeeded = ctx.output.exitCode === 0 && (hasPr || noDeliveryNeeded);
|
|
6572
|
+
state.core.phase = succeeded ? hasPr ? "reviewing" : "shipped" : "failed";
|
|
6573
|
+
state.core.status = succeeded ? "succeeded" : "failed";
|
|
6572
6574
|
state.core.currentExecutable = null;
|
|
6573
6575
|
}
|
|
6574
6576
|
function synthesizeAction(ctx) {
|
|
@@ -6602,7 +6604,7 @@ var init_saveTaskState = __esm({
|
|
|
6602
6604
|
});
|
|
6603
6605
|
if (ctx.output.prUrl) next.core.prUrl = ctx.output.prUrl;
|
|
6604
6606
|
if (typeof ctx.data.runUrl === "string") next.core.runUrl = ctx.data.runUrl;
|
|
6605
|
-
|
|
6607
|
+
applyStandaloneFinalState(next, ctx, profile);
|
|
6606
6608
|
writeTaskState(target, number, next, ctx.cwd, ctx.config);
|
|
6607
6609
|
ctx.data.taskState = next;
|
|
6608
6610
|
ctx.data.taskStateRendered = renderStateComment(next);
|
|
@@ -12433,7 +12435,7 @@ var init_failOnceTaskJob = __esm({
|
|
|
12433
12435
|
});
|
|
12434
12436
|
|
|
12435
12437
|
// src/scripts/finalizeTerminal.ts
|
|
12436
|
-
var DONE, FAILED, finalizeTerminal;
|
|
12438
|
+
var DONE, REVIEWING, FAILED, finalizeTerminal;
|
|
12437
12439
|
var init_finalizeTerminal = __esm({
|
|
12438
12440
|
"src/scripts/finalizeTerminal.ts"() {
|
|
12439
12441
|
"use strict";
|
|
@@ -12444,7 +12446,12 @@ var init_finalizeTerminal = __esm({
|
|
|
12444
12446
|
DONE = {
|
|
12445
12447
|
label: "kody:done",
|
|
12446
12448
|
color: "0e8a16",
|
|
12447
|
-
description: "kody:
|
|
12449
|
+
description: "kody: work complete"
|
|
12450
|
+
};
|
|
12451
|
+
REVIEWING = {
|
|
12452
|
+
label: "kody:reviewing",
|
|
12453
|
+
color: "d93f0b",
|
|
12454
|
+
description: "kody: PR ready for human review"
|
|
12448
12455
|
};
|
|
12449
12456
|
FAILED = {
|
|
12450
12457
|
label: "kody:failed",
|
|
@@ -12461,10 +12468,12 @@ var init_finalizeTerminal = __esm({
|
|
|
12461
12468
|
const cachedState = ctx.data.taskState;
|
|
12462
12469
|
let state = cachedState;
|
|
12463
12470
|
const prUrl = cachedState?.core.prUrl ?? ctx.output.prUrl ?? ctx.data.prResult?.url;
|
|
12464
|
-
const
|
|
12465
|
-
const
|
|
12466
|
-
const
|
|
12467
|
-
const
|
|
12471
|
+
const hasPr = !!prUrl;
|
|
12472
|
+
const noDeliveryNeeded = isDeliveryNotRequired(ctx.data);
|
|
12473
|
+
const succeeded = ctx.output.exitCode === 0 && (hasPr || noDeliveryNeeded);
|
|
12474
|
+
const spec = succeeded ? hasPr ? REVIEWING : DONE : FAILED;
|
|
12475
|
+
const phase = succeeded ? hasPr ? "reviewing" : "shipped" : "failed";
|
|
12476
|
+
const status = succeeded ? "succeeded" : "failed";
|
|
12468
12477
|
if (issueNumber) setKodyLabel(issueNumber, spec, ctx.cwd);
|
|
12469
12478
|
const prNumber = prUrl ? parsePrNumber(prUrl) : null;
|
|
12470
12479
|
if (prNumber && prNumber !== issueNumber) setKodyLabel(prNumber, spec, ctx.cwd);
|
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.312",
|
|
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,6 +12,28 @@
|
|
|
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:all": "vitest run tests --no-coverage",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"lint": "biome check",
|
|
31
|
+
"lint:fix": "biome check --write",
|
|
32
|
+
"format": "biome format --write",
|
|
33
|
+
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
34
|
+
"brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
|
|
35
|
+
"prepublishOnly": "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build && pnpm verify:package"
|
|
36
|
+
},
|
|
15
37
|
"dependencies": {
|
|
16
38
|
"@actions/cache": "^6.0.0",
|
|
17
39
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
@@ -35,26 +57,5 @@
|
|
|
35
57
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
36
58
|
},
|
|
37
59
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
38
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
39
|
-
|
|
40
|
-
"kody:run": "tsx bin/kody.ts",
|
|
41
|
-
"serve": "tsx bin/kody.ts serve",
|
|
42
|
-
"serve:vscode": "tsx bin/kody.ts serve vscode",
|
|
43
|
-
"serve:claude": "tsx bin/kody.ts serve claude",
|
|
44
|
-
"clean:dist": "node scripts/clean-dist.cjs",
|
|
45
|
-
"build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
|
|
46
|
-
"check:modularity": "tsx scripts/check-script-modularity.ts",
|
|
47
|
-
"pretest": "pnpm check:modularity",
|
|
48
|
-
"test": "vitest run tests/unit tests/int --coverage",
|
|
49
|
-
"posttest": "tsx scripts/check-coverage-floor.ts",
|
|
50
|
-
"test:smoke": "vitest run tests/smoke --no-coverage",
|
|
51
|
-
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
52
|
-
"test:all": "vitest run tests --no-coverage",
|
|
53
|
-
"typecheck": "tsc --noEmit",
|
|
54
|
-
"lint": "biome check",
|
|
55
|
-
"lint:fix": "biome check --write",
|
|
56
|
-
"format": "biome format --write",
|
|
57
|
-
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
58
|
-
"brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
60
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
61
|
+
}
|