@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.
Files changed (30) hide show
  1. package/README.md +24 -24
  2. package/dist/bin/{kody2.js → kody.js} +159 -159
  3. package/dist/executables/bug/profile.json +6 -6
  4. package/dist/executables/chore/profile.json +6 -6
  5. package/dist/executables/classify/profile.json +1 -1
  6. package/dist/executables/feature/profile.json +6 -6
  7. package/dist/executables/fix/profile.json +1 -1
  8. package/dist/executables/fix/prompt.md +1 -1
  9. package/dist/executables/fix-ci/profile.json +1 -1
  10. package/dist/executables/init/profile.json +1 -1
  11. package/dist/executables/plan/profile.json +1 -1
  12. package/dist/executables/plan-verify/profile.json +2 -2
  13. package/dist/executables/plan-verify/prompt.md +1 -1
  14. package/dist/executables/research/profile.json +1 -1
  15. package/dist/executables/resolve/profile.json +1 -1
  16. package/dist/executables/review/profile.json +1 -1
  17. package/dist/executables/run/profile.json +1 -1
  18. package/dist/executables/run/prompt.md +2 -2
  19. package/dist/executables/spec/profile.json +4 -4
  20. package/dist/executables/sync/profile.json +1 -1
  21. package/dist/executables/types.ts +3 -3
  22. package/dist/executables/ui-review/profile.json +3 -3
  23. package/dist/executables/ui-review/prompt.md +8 -8
  24. package/dist/plugins/commands/kody-live-probe.md +2 -2
  25. package/dist/plugins/skills/kody-live-marker/SKILL.md +3 -3
  26. package/dist/plugins/test-plugin/.claude-plugin/plugin.json +2 -2
  27. package/dist/plugins/test-plugin/skills/kody-plugin-marker/SKILL.md +2 -2
  28. package/kody.config.schema.json +3 -3
  29. package/package.json +4 -4
  30. 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
- `kody2` — autonomous development engine. A single-session Claude Code agent behind a generic executor and declarative JSON executable profiles.
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/kody2.yml) │ triggers on @kody2 comments
9
+ │ Consumer repo workflow (.github/kody.yml) │ triggers on @kody comments
10
10
  └─────────────────────────────────────────────┘
11
11
 
12
12
  ┌─────────────────────────────────────────────┐
13
- kody2 CLI (@kody-ade/kody-engine) │
14
- │ bin/kody2.ts — parses argv │
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 `kody2 <name>` starts working. The executor knows nothing about any specific command.
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/kody2.yml` to `.github/workflows/kody2.yml`.
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 kody2's pushes to trigger downstream CI
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
- kody2 run --issue <N> # implement an issue end-to-end (branch, code, PR)
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
- kody2 plan --issue <N> # produce a plan artifact for run
39
- kody2 research --issue <N> # map repo context, surface questions/gaps
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
- kody2 fix --pr <N> [--feedback ...] # apply PR review feedback
43
- kody2 fix-ci --pr <N> [--run-id <ID>] # fix failing CI
44
- kody2 resolve --pr <N> # merge default branch in, resolve conflicts
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
- kody2 review --pr <N> # structured diff review (fast, diff only)
48
- kody2 ui-review --pr <N> [--preview-url <URL>] # UI/UX review — browses preview via Playwright
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
- kody2 sync --pr <N> # merge default branch into PR branch
52
- kody2 release --mode prepare|finalize [--bump patch|minor|major] [--dry-run]
53
- kody2 init [--force] # scaffold consumer repo
54
- kody2 orchestrate --issue <N> [--flow plan-build-review] # chain plan → run → review → fix
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
- kody2 ci --issue <N> # CI preflight + auto-dispatch from GHA event
58
- kody2 chat [--session <id>] # dashboard-driven chat session
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 `.kody2/ui-review/`, running it, capturing screenshots, and folding the observed behavior into the review verdict.
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 `.kody2/qa-guide.md` (scaffolded by `kody2 init` when a UI is detected, with `CHANGE_ME` placeholders). The agent reads the guide and uses any credentials it finds.
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
- `kody2 chat` reads `.kody/sessions/<id>.jsonl`, runs one agent turn, appends
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`,