@kody-ade/kody-engine 0.4.373 → 0.4.375
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 +965 -284
- package/dist/implementations/types.ts +15 -0
- package/package.json +25 -24
|
@@ -538,6 +538,10 @@ export interface Job {
|
|
|
538
538
|
cliArgs: Record<string, unknown>
|
|
539
539
|
/** Internal workflow resume context. Not passed to capability CLI args. */
|
|
540
540
|
workflowFacts?: Record<string, unknown>
|
|
541
|
+
/** Durable execution cursor for a graph-shaped workflow. */
|
|
542
|
+
workflowState?: WorkflowRunState
|
|
543
|
+
/** Stable id used to load and persist one workflow execution. */
|
|
544
|
+
workflowRunId?: string
|
|
541
545
|
/** Evidence this capability run is expected to report, independent of who consumes it. */
|
|
542
546
|
evidence?: string
|
|
543
547
|
/** Run once now ("instant") or on the schedule ("scheduled"). */
|
|
@@ -551,3 +555,14 @@ export interface Job {
|
|
|
551
555
|
/** Internal parent context used by postflights to attach neutral capability output. */
|
|
552
556
|
resultTarget?: CapabilityResultTarget
|
|
553
557
|
}
|
|
558
|
+
|
|
559
|
+
export interface WorkflowRunState {
|
|
560
|
+
status: "running" | "blocked" | "failed" | "done"
|
|
561
|
+
currentStepId?: string
|
|
562
|
+
completedStepIds: string[]
|
|
563
|
+
transitionCounts: Record<string, number>
|
|
564
|
+
facts: Record<string, unknown>
|
|
565
|
+
evidence: Record<string, boolean>
|
|
566
|
+
artifacts: Array<{ label: string; url?: string; path?: string }>
|
|
567
|
+
blocker?: string
|
|
568
|
+
}
|
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.375",
|
|
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,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
|
+
}
|