@kody-ade/kody-engine 0.2.11 → 0.2.13

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 (28) hide show
  1. package/README.md +5 -4
  2. package/dist/bin/kody2.js +309 -243
  3. package/dist/executables/fix/profile.json +93 -0
  4. package/dist/executables/fix-ci/profile.json +93 -0
  5. package/dist/executables/init/profile.json +4 -6
  6. package/dist/executables/orchestrator/profile.json +28 -15
  7. package/dist/executables/plan/profile.json +33 -16
  8. package/dist/executables/plan-verify/profile.json +37 -0
  9. package/dist/executables/plan-verify/prompt.md +53 -0
  10. package/dist/executables/release/profile.json +13 -8
  11. package/dist/executables/resolve/profile.json +80 -0
  12. package/dist/executables/review/profile.json +19 -10
  13. package/dist/executables/run/profile.json +86 -0
  14. package/dist/executables/types.ts +13 -11
  15. package/dist/executables/watch-stale-prs/profile.json +4 -7
  16. package/dist/plugins/commands/kody-live-probe.md +9 -0
  17. package/dist/plugins/hooks/kody-live-trace.json +17 -0
  18. package/dist/plugins/skills/kody-live-marker/SKILL.md +18 -0
  19. package/dist/plugins/test-plugin/.claude-plugin/plugin.json +6 -0
  20. package/dist/plugins/test-plugin/skills/kody-plugin-marker/SKILL.md +16 -0
  21. package/package.json +2 -2
  22. package/dist/executables/build/profile.json +0 -99
  23. package/dist/executables/orchestrator/prompts/orchestrator.md +0 -56
  24. package/dist/executables/plan/prompts/plan.md +0 -42
  25. /package/dist/executables/{build/prompts/fix.md → fix/prompt.md} +0 -0
  26. /package/dist/executables/{build/prompts/fix-ci.md → fix-ci/prompt.md} +0 -0
  27. /package/dist/executables/{build/prompts/resolve.md → resolve/prompt.md} +0 -0
  28. /package/dist/executables/{build/prompts/run.md → run/prompt.md} +0 -0
package/README.md CHANGED
@@ -13,12 +13,12 @@
13
13
  │ kody2 CLI (@kody-ade/kody-engine) │
14
14
  │ bin/kody2.ts — parses argv │
15
15
  │ src/executor.ts — runs one profile │
16
- │ src/executables/build/profile.json
16
+ │ src/executables/<name>/profile.json
17
17
  │ src/scripts/*.ts — named hook catalog │
18
18
  └─────────────────────────────────────────────┘
19
19
  ```
20
20
 
21
- `run`/`fix`/`fix-ci`/`resolve` are four modes of the same `build` executable, selected by `args.mode` via `runWhen` on preflight script entries. Executor knows nothing about any specific mode.
21
+ Every top-level command is its own auto-discovered executable (`run`, `fix`, `fix-ci`, `resolve`, `review`, `plan`, `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.
22
22
 
23
23
  ## Install in a consumer repo
24
24
 
@@ -31,13 +31,14 @@
31
31
  ## Commands
32
32
 
33
33
  ```
34
- kody2 run --issue <N> # implement an issue
34
+ kody2 run --issue <N> # implement an issue
35
35
  kody2 fix --pr <N> [--feedback ...] # apply PR review feedback
36
36
  kody2 fix-ci --pr <N> [--run-id <ID>] # fix failing CI
37
37
  kody2 resolve --pr <N> # merge default branch in, resolve conflicts
38
+ kody2 review --pr <N> # read-only structured PR review
38
39
  kody2 ci --issue <N> # CI preflight + run
39
40
  ```
40
41
 
41
42
  ## Profiles
42
43
 
43
- A profile is declarative JSON + an adjacent prompt. See `src/executables/build/profile.json`. Adding a new role = new profile + new prompt + registering any new scripts under `src/scripts/`. No executor changes.
44
+ A profile is declarative JSON + an adjacent `prompt.md`. See any directory under `src/executables/` for examples. Adding a new command = new directory + profile + prompt + registering any new scripts under `src/scripts/`. No executor, entry, or dispatch changes.