@kody-ade/kody-engine 0.4.347 → 0.4.349
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/README.md +2 -2
- package/dist/bin/kody.js +218 -241
- package/dist/{executables → implementations}/types.ts +6 -8
- package/dist/plugins/hooks/block-write.json +1 -1
- package/package.json +25 -26
- /package/dist/{executables → implementations}/agent-creator/profile.json +0 -0
- /package/dist/{executables → implementations}/agent-creator/prompt.md +0 -0
- /package/dist/{executables → implementations}/agent-factory/profile.json +0 -0
- /package/dist/{executables → implementations}/agent-factory/prompt.md +0 -0
- /package/dist/{executables → implementations}/capability-creator/profile.json +0 -0
- /package/dist/{executables → implementations}/capability-creator/prompt.md +0 -0
- /package/dist/{executables → implementations}/goal-creator/profile.json +0 -0
- /package/dist/{executables → implementations}/goal-creator/prompt.md +0 -0
- /package/dist/{executables → implementations}/loop-creator/profile.json +0 -0
- /package/dist/{executables → implementations}/loop-creator/prompt.md +0 -0
- /package/dist/{executables → implementations}/run/profile.json +0 -0
- /package/dist/{executables → implementations}/run/prompt.md +0 -0
- /package/dist/{executables → implementations}/workflow-creator/profile.json +0 -0
- /package/dist/{executables → implementations}/workflow-creator/prompt.md +0 -0
|
@@ -201,8 +201,8 @@ export interface Profile {
|
|
|
201
201
|
* - no match → container aborts
|
|
202
202
|
*/
|
|
203
203
|
export interface ContainerChild {
|
|
204
|
-
/** Name of the
|
|
205
|
-
|
|
204
|
+
/** Name of the implementation to invoke (must resolve via the registry). */
|
|
205
|
+
implementation: string
|
|
206
206
|
/**
|
|
207
207
|
* Where to source the target identifier from when invoking this child.
|
|
208
208
|
* - "issue": pass --issue <ctx.args.issue>
|
|
@@ -222,7 +222,7 @@ export interface ContainerChild {
|
|
|
222
222
|
export interface InputArtifactSpec {
|
|
223
223
|
/** Artifact name (the key in state.artifacts). */
|
|
224
224
|
name: string
|
|
225
|
-
/** If true, the
|
|
225
|
+
/** If true, the implementation fails when this artifact is missing from state. */
|
|
226
226
|
required?: boolean
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -313,7 +313,7 @@ export interface ClaudeCodeSpec {
|
|
|
313
313
|
* first attempt). Set to 0 or omit to use the default.
|
|
314
314
|
*/
|
|
315
315
|
verifyAttempts?: number | null
|
|
316
|
-
/** SDK built-in tools this
|
|
316
|
+
/** SDK built-in tools this implementation is allowed to use (capability pack). */
|
|
317
317
|
tools: string[]
|
|
318
318
|
/**
|
|
319
319
|
* Names of bundled hook configs to load (from src/plugins/hooks/<name>.json).
|
|
@@ -361,7 +361,7 @@ export interface ScriptEntry {
|
|
|
361
361
|
*/
|
|
362
362
|
script?: string
|
|
363
363
|
/**
|
|
364
|
-
* Filename of a shell script colocated with the
|
|
364
|
+
* Filename of a shell script colocated with the implementation
|
|
365
365
|
* (e.g. "apply-prefer.sh"). Resolved relative to the profile's
|
|
366
366
|
* directory. Invoked via `bash <path> <with-args>` with ctx.args
|
|
367
367
|
* exposed as env vars (KODY_ARG_<UPPER_NAME>=<value>). A stdout
|
|
@@ -437,7 +437,6 @@ export interface Context {
|
|
|
437
437
|
capability?: string
|
|
438
438
|
workflow?: string
|
|
439
439
|
implementation?: string
|
|
440
|
-
executable?: string
|
|
441
440
|
cliArgs: Record<string, unknown>
|
|
442
441
|
saveReport?: boolean
|
|
443
442
|
resultTarget?: CapabilityResultTarget
|
|
@@ -450,7 +449,6 @@ export interface Context {
|
|
|
450
449
|
capability?: string
|
|
451
450
|
workflow?: string
|
|
452
451
|
implementation?: string
|
|
453
|
-
executable?: string
|
|
454
452
|
cliArgs: Record<string, unknown>
|
|
455
453
|
saveReport?: boolean
|
|
456
454
|
resultTarget?: CapabilityResultTarget
|
|
@@ -517,7 +515,7 @@ export interface Job {
|
|
|
517
515
|
schedule?: string
|
|
518
516
|
/** The issue/PR number this job acts on, when applicable. */
|
|
519
517
|
target?: number
|
|
520
|
-
/** Args passed through to the
|
|
518
|
+
/** Args passed through to the implementation (mirrors DispatchResult.cliArgs). */
|
|
521
519
|
cliArgs: Record<string, unknown>
|
|
522
520
|
/** Run once now ("instant") or on the schedule ("scheduled"). */
|
|
523
521
|
flavor: JobFlavor
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "node -e 'process.stderr.write(\"kody read-only mode: this
|
|
10
|
+
"command": "node -e 'process.stderr.write(\"kody read-only mode: this implementation does not modify files; do not call Write/Edit/NotebookEdit\\n\");process.exit(2)'"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative
|
|
3
|
+
"version": "0.4.349",
|
|
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",
|
|
7
7
|
"bin": {
|
|
@@ -12,28 +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
|
-
"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
|
-
},
|
|
37
15
|
"dependencies": {
|
|
38
16
|
"@actions/cache": "^6.0.0",
|
|
39
17
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
@@ -57,5 +35,26 @@
|
|
|
57
35
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
58
36
|
},
|
|
59
37
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
60
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
61
|
-
|
|
38
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
|
|
39
|
+
"scripts": {
|
|
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
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|