@kody-ade/kody-engine 0.2.63 → 0.3.0
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 +24 -24
- package/dist/bin/{kody2.js → kody.js} +159 -159
- package/dist/executables/bug/profile.json +6 -6
- package/dist/executables/chore/profile.json +6 -6
- package/dist/executables/classify/profile.json +1 -1
- package/dist/executables/feature/profile.json +6 -6
- package/dist/executables/fix/profile.json +1 -1
- package/dist/executables/fix/prompt.md +1 -1
- package/dist/executables/fix-ci/profile.json +1 -1
- package/dist/executables/init/profile.json +1 -1
- package/dist/executables/plan/profile.json +1 -1
- package/dist/executables/plan-verify/profile.json +2 -2
- package/dist/executables/plan-verify/prompt.md +1 -1
- package/dist/executables/research/profile.json +1 -1
- package/dist/executables/resolve/profile.json +1 -1
- package/dist/executables/review/profile.json +1 -1
- package/dist/executables/run/profile.json +1 -1
- package/dist/executables/run/prompt.md +2 -2
- package/dist/executables/spec/profile.json +4 -4
- package/dist/executables/sync/profile.json +1 -1
- package/dist/executables/types.ts +3 -3
- package/dist/executables/ui-review/profile.json +3 -3
- package/dist/executables/ui-review/prompt.md +8 -8
- package/dist/plugins/commands/kody-live-probe.md +2 -2
- package/dist/plugins/skills/kody-live-marker/SKILL.md +3 -3
- package/dist/plugins/test-plugin/.claude-plugin/plugin.json +2 -2
- package/dist/plugins/test-plugin/skills/kody-plugin-marker/SKILL.md +2 -2
- package/kody.config.schema.json +3 -3
- package/package.json +4 -4
- package/templates/{kody2.yml → kody.yml} +16 -16
package/README.md
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
# @kody-ade/kody-engine
|
|
2
2
|
|
|
3
|
-
`
|
|
3
|
+
`kody` — autonomous development engine. A single-session Claude Code agent behind a generic executor and declarative JSON executable profiles.
|
|
4
4
|
|
|
5
5
|
## Architecture
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
┌─────────────────────────────────────────────┐
|
|
9
|
-
│ Consumer repo workflow (.github/
|
|
9
|
+
│ Consumer repo workflow (.github/kody.yml) │ triggers on @kody comments
|
|
10
10
|
└─────────────────────────────────────────────┘
|
|
11
11
|
↓
|
|
12
12
|
┌─────────────────────────────────────────────┐
|
|
13
|
-
│
|
|
14
|
-
│ bin/
|
|
13
|
+
│ kody CLI (@kody-ade/kody-engine) │
|
|
14
|
+
│ bin/kody.ts — parses argv │
|
|
15
15
|
│ src/executor.ts — runs one profile │
|
|
16
16
|
│ src/executables/<name>/profile.json │
|
|
17
17
|
│ src/scripts/*.ts — named hook catalog │
|
|
18
18
|
└─────────────────────────────────────────────┘
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Every top-level command is its own auto-discovered executable (`run`, `fix`, `fix-ci`, `resolve`, `review`, `sync`, `plan`, `plan-verify`, `orchestrator`, `release`, `watch-*`, `init`). The router has no hardcoded command switch beyond `ci`/`help`/`version` — drop a new `src/executables/<name>/` directory with a `profile.json` + `prompt.md` and `
|
|
21
|
+
Every top-level command is its own auto-discovered executable (`run`, `fix`, `fix-ci`, `resolve`, `review`, `sync`, `plan`, `plan-verify`, `orchestrator`, `release`, `watch-*`, `init`). The router has no hardcoded command switch beyond `ci`/`help`/`version` — drop a new `src/executables/<name>/` directory with a `profile.json` + `prompt.md` and `kody <name>` starts working. The executor knows nothing about any specific command.
|
|
22
22
|
|
|
23
23
|
## Install in a consumer repo
|
|
24
24
|
|
|
25
|
-
1. Copy `templates/
|
|
25
|
+
1. Copy `templates/kody.yml` to `.github/workflows/kody.yml`.
|
|
26
26
|
2. Add `agent.model` to `kody.config.json` (see `kody.config.schema.json`).
|
|
27
27
|
3. Secrets on the repo:
|
|
28
28
|
- At least one model key (e.g. `MINIMAX_API_KEY`, `ANTHROPIC_API_KEY`)
|
|
29
|
-
- Optional `KODY_TOKEN` PAT if you want
|
|
29
|
+
- Optional `KODY_TOKEN` PAT if you want kody's pushes to trigger downstream CI
|
|
30
30
|
|
|
31
31
|
## Commands
|
|
32
32
|
|
|
33
33
|
```
|
|
34
34
|
# issue-triggered, agent writes code
|
|
35
|
-
|
|
35
|
+
kody run --issue <N> # implement an issue end-to-end (branch, code, PR)
|
|
36
36
|
|
|
37
37
|
# issue-triggered, agent read-only (no commits)
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
kody plan --issue <N> # produce a plan artifact for run
|
|
39
|
+
kody research --issue <N> # map repo context, surface questions/gaps
|
|
40
40
|
|
|
41
41
|
# PR-triggered, agent writes code
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
kody fix --pr <N> [--feedback ...] # apply PR review feedback
|
|
43
|
+
kody fix-ci --pr <N> [--run-id <ID>] # fix failing CI
|
|
44
|
+
kody resolve --pr <N> # merge default branch in, resolve conflicts
|
|
45
45
|
|
|
46
46
|
# PR-triggered, agent read-only
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
kody review --pr <N> # structured diff review (fast, diff only)
|
|
48
|
+
kody ui-review --pr <N> [--preview-url <URL>] # UI/UX review — browses preview via Playwright
|
|
49
49
|
|
|
50
50
|
# no agent (deterministic)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
kody sync --pr <N> # merge default branch into PR branch
|
|
52
|
+
kody release --mode prepare|finalize [--bump patch|minor|major] [--dry-run]
|
|
53
|
+
kody init [--force] # scaffold consumer repo
|
|
54
|
+
kody orchestrate --issue <N> [--flow plan-build-review] # chain plan → run → review → fix
|
|
55
55
|
|
|
56
56
|
# engine entrypoints
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
kody ci --issue <N> # CI preflight + auto-dispatch from GHA event
|
|
58
|
+
kody chat [--session <id>] # dashboard-driven chat session
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### `ui-review`
|
|
62
62
|
|
|
63
|
-
`ui-review` adds UI/UX verification to the review surface. It runs the usual diff-based review AND drives the running preview deployment via the Playwright CLI — writing a throwaway spec under `.
|
|
63
|
+
`ui-review` adds UI/UX verification to the review surface. It runs the usual diff-based review AND drives the running preview deployment via the Playwright CLI — writing a throwaway spec under `.kody/ui-review/`, running it, capturing screenshots, and folding the observed behavior into the review verdict.
|
|
64
64
|
|
|
65
65
|
- Preview URL resolution: `--preview-url` flag → `$PREVIEW_URL` → `http://localhost:3000`.
|
|
66
|
-
- Credentials: committed in `.
|
|
66
|
+
- Credentials: committed in `.kody/qa-guide.md` (scaffolded by `kody init` when a UI is detected, with `CHANGE_ME` placeholders). The agent reads the guide and uses any credentials it finds.
|
|
67
67
|
- Auto-discovery: routes, roles, login page, admin path, Payload CMS collections, API routes, env vars — fed to the agent so it knows *what* to browse without you spelling it out.
|
|
68
68
|
- Falls back to a diff-only review when the preview URL is unreachable.
|
|
69
69
|
|
|
70
|
-
`
|
|
70
|
+
`kody chat` reads `.kody/sessions/<id>.jsonl`, runs one agent turn, appends
|
|
71
71
|
the reply, and writes `chat.message` + `chat.done` events to
|
|
72
72
|
`.kody/events/<id>.jsonl` (plus optional HTTP push to a dashboard ingest URL).
|
|
73
73
|
Inputs can come from flags or env (`SESSION_ID`, `INIT_MESSAGE`, `MODEL`,
|