@kody-ade/kody-engine 0.4.410 → 0.4.412
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 +322 -312
- package/package.json +26 -24
- package/templates/kody.yml +88 -0
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.412",
|
|
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,7 +12,30 @@
|
|
|
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": {
|
|
38
|
+
"@kody-ade/agency-domain": "0.1.1",
|
|
16
39
|
"@actions/cache": "^6.0.0",
|
|
17
40
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
18
41
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
@@ -36,26 +59,5 @@
|
|
|
36
59
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
37
60
|
},
|
|
38
61
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
39
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
40
|
-
|
|
41
|
-
"kody:run": "tsx bin/kody.ts",
|
|
42
|
-
"serve": "tsx bin/kody.ts serve",
|
|
43
|
-
"serve:vscode": "tsx bin/kody.ts serve vscode",
|
|
44
|
-
"serve:claude": "tsx bin/kody.ts serve claude",
|
|
45
|
-
"clean:dist": "node scripts/clean-dist.cjs",
|
|
46
|
-
"build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
|
|
47
|
-
"check:modularity": "tsx scripts/check-script-modularity.ts",
|
|
48
|
-
"pretest": "pnpm check:modularity",
|
|
49
|
-
"test": "vitest run tests/unit tests/int --coverage",
|
|
50
|
-
"posttest": "tsx scripts/check-coverage-floor.ts",
|
|
51
|
-
"test:smoke": "vitest run tests/smoke --no-coverage",
|
|
52
|
-
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
53
|
-
"test:all": "vitest run tests --no-coverage",
|
|
54
|
-
"typecheck": "tsc --noEmit",
|
|
55
|
-
"lint": "biome check",
|
|
56
|
-
"lint:fix": "biome check --write",
|
|
57
|
-
"format": "biome format --write",
|
|
58
|
-
"verify:package": "node scripts/verify-package-tarball.cjs",
|
|
59
|
-
"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"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
63
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Generated by @kody-ade/kody-engine. Do not hand-edit consumer copies.
|
|
2
|
+
#
|
|
3
|
+
# GitHub authentication fallback:
|
|
4
|
+
# 1. GH_PAT or legacy KODY_TOKEN, when configured.
|
|
5
|
+
# 2. KODY_APP_ID + KODY_APP_PRIVATE_KEY, minted by the engine.
|
|
6
|
+
# 3. GitHub's built-in token, requiring no repository secret.
|
|
7
|
+
|
|
8
|
+
name: kody
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
inputs:
|
|
13
|
+
issue_number:
|
|
14
|
+
description: "GitHub issue number (agent mode)"
|
|
15
|
+
type: string
|
|
16
|
+
default: ""
|
|
17
|
+
sessionId:
|
|
18
|
+
description: "Chat session ID (chat mode, from Kody Dashboard)"
|
|
19
|
+
type: string
|
|
20
|
+
default: ""
|
|
21
|
+
message:
|
|
22
|
+
description: "Initial chat message (optional)"
|
|
23
|
+
type: string
|
|
24
|
+
default: ""
|
|
25
|
+
model:
|
|
26
|
+
description: "Model override (optional)"
|
|
27
|
+
type: string
|
|
28
|
+
default: ""
|
|
29
|
+
dashboardUrl:
|
|
30
|
+
description: "Dashboard event ingest URL (chat mode)"
|
|
31
|
+
type: string
|
|
32
|
+
default: ""
|
|
33
|
+
capability:
|
|
34
|
+
description: "Capability action to run"
|
|
35
|
+
type: string
|
|
36
|
+
default: ""
|
|
37
|
+
base:
|
|
38
|
+
description: "Optional base branch"
|
|
39
|
+
type: string
|
|
40
|
+
default: ""
|
|
41
|
+
issue_comment:
|
|
42
|
+
types: [created]
|
|
43
|
+
pull_request:
|
|
44
|
+
types: [opened, synchronize, closed]
|
|
45
|
+
schedule:
|
|
46
|
+
- cron: "*/15 * * * *"
|
|
47
|
+
|
|
48
|
+
jobs:
|
|
49
|
+
run:
|
|
50
|
+
if: ${{ github.event_name != 'pull_request' || github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.pull_request.merged == true }}
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
timeout-minutes: 360
|
|
53
|
+
concurrency:
|
|
54
|
+
group: kody-${{ inputs.sessionId || inputs.issue_number || github.event.issue.number || github.sha }}
|
|
55
|
+
cancel-in-progress: false
|
|
56
|
+
permissions:
|
|
57
|
+
issues: write
|
|
58
|
+
pull-requests: write
|
|
59
|
+
contents: write
|
|
60
|
+
actions: read
|
|
61
|
+
id-token: write
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/checkout@v4
|
|
64
|
+
with:
|
|
65
|
+
fetch-depth: 0
|
|
66
|
+
ref: ${{ (github.event.action == 'opened' || github.event.action == 'synchronize') && github.event.pull_request.head.sha || github.event.pull_request.base.ref || github.ref }}
|
|
67
|
+
token: ${{ secrets.GH_PAT || secrets.KODY_TOKEN || github.token }}
|
|
68
|
+
|
|
69
|
+
- uses: actions/setup-node@v4
|
|
70
|
+
with:
|
|
71
|
+
node-version: 22
|
|
72
|
+
|
|
73
|
+
- name: Write pip cache key for LiteLLM
|
|
74
|
+
run: echo "litellm[proxy]" > .kody-pip-requirements.txt
|
|
75
|
+
|
|
76
|
+
- uses: actions/setup-python@v5
|
|
77
|
+
with:
|
|
78
|
+
python-version: "3.12"
|
|
79
|
+
cache: pip
|
|
80
|
+
cache-dependency-path: .kody-pip-requirements.txt
|
|
81
|
+
|
|
82
|
+
- env:
|
|
83
|
+
ALL_SECRETS: ${{ toJSON(secrets) }}
|
|
84
|
+
SESSION_ID: ${{ inputs.sessionId }}
|
|
85
|
+
INIT_MESSAGE: ${{ inputs.message }}
|
|
86
|
+
MODEL: ${{ inputs.model }}
|
|
87
|
+
DASHBOARD_URL: ${{ inputs.dashboardUrl }}
|
|
88
|
+
run: npx -y -p @kody-ade/kody-engine@latest kody-engine
|