@kody-ade/kody-engine 0.1.7 → 0.2.1

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 (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -61
  3. package/dist/bin/kody2.js +2579 -0
  4. package/dist/executables/build/profile.json +83 -0
  5. package/dist/executables/build/prompts/fix-ci.md +42 -0
  6. package/dist/executables/build/prompts/fix.md +40 -0
  7. package/dist/executables/build/prompts/resolve.md +34 -0
  8. package/dist/executables/build/prompts/run.md +31 -0
  9. package/dist/executables/types.ts +154 -0
  10. package/kody.config.schema.json +406 -0
  11. package/package.json +23 -28
  12. package/templates/kody2.yml +56 -0
  13. package/dist/bin/cli.mjs +0 -10781
  14. package/dist/bin/cli.mjs.map +0 -1
  15. package/opencode/agents/admin-expert.md +0 -73
  16. package/opencode/agents/advisor.md +0 -128
  17. package/opencode/agents/architect.md +0 -193
  18. package/opencode/agents/autofix.md +0 -103
  19. package/opencode/agents/build-delegation-test.md +0 -93
  20. package/opencode/agents/build-delegation.md +0 -98
  21. package/opencode/agents/build-manager.md +0 -212
  22. package/opencode/agents/build.md +0 -266
  23. package/opencode/agents/clarify.md +0 -84
  24. package/opencode/agents/code-reviewer.md +0 -42
  25. package/opencode/agents/commit.md +0 -27
  26. package/opencode/agents/docs.md +0 -123
  27. package/opencode/agents/domain/admin-expert.md +0 -43
  28. package/opencode/agents/domain/llm-expert.md +0 -55
  29. package/opencode/agents/domain/payload-expert.md +0 -67
  30. package/opencode/agents/domain/security-auditor.md +0 -62
  31. package/opencode/agents/domain/ui-expert.md +0 -43
  32. package/opencode/agents/domain/web-expert.md +0 -45
  33. package/opencode/agents/e2e-test-writer.md +0 -156
  34. package/opencode/agents/fix.md +0 -158
  35. package/opencode/agents/gap.md +0 -206
  36. package/opencode/agents/kody-expert.md +0 -173
  37. package/opencode/agents/llm-expert.md +0 -90
  38. package/opencode/agents/neuron.md +0 -12
  39. package/opencode/agents/payload-expert.md +0 -32
  40. package/opencode/agents/plan-gap.md +0 -132
  41. package/opencode/agents/pr.md +0 -25
  42. package/opencode/agents/review.md +0 -163
  43. package/opencode/agents/security-auditor.md +0 -33
  44. package/opencode/agents/taskify.md +0 -344
  45. package/opencode/agents/test-writer.md +0 -261
  46. package/opencode/agents/test.md +0 -142
  47. package/opencode/agents/verify.md +0 -30
  48. package/opencode/agents/web-expert.md +0 -63
  49. package/opencode/docs/BROWSER_AUTOMATION.md +0 -64
  50. package/opencode/docs/PIPELINE.md +0 -210
  51. package/opencode/opencode.json +0 -98
  52. package/templates/kody.yml +0 -312
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aharon Yair Cohen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,76 +1,43 @@
1
1
  # @kody-ade/kody-engine
2
2
 
3
- Multi-agent CI/CD pipeline engine that converts GitHub issues into pull requests.
3
+ `kody2` — autonomous development engine. A single-session Claude Code agent behind a generic executor and declarative JSON executable profiles.
4
4
 
5
- ## Quick Start
5
+ ## Architecture
6
6
 
7
- ```bash
8
- # Initialize Kody in your repo
9
- npx @kody-ade/kody-engine init
7
+ ```
8
+ ┌─────────────────────────────────────────────┐
9
+ Consumer repo workflow (.github/kody2.yml) │ triggers on @kody2 comments
10
+ └─────────────────────────────────────────────┘
11
+
12
+ ┌─────────────────────────────────────────────┐
13
+ │ kody2 CLI (@kody-ade/kody-engine) │
14
+ │ bin/kody2.ts — parses argv │
15
+ │ src/executor.ts — runs one profile │
16
+ │ src/executables/build/profile.json │
17
+ │ src/scripts/*.ts — named hook catalog │
18
+ └─────────────────────────────────────────────┘
10
19
  ```
11
20
 
12
- This sets up:
13
-
14
- - `.github/workflows/kody.yml` — GitHub Actions workflow
15
- - `.opencode/` — Agent prompt definitions
16
- - `kody.config.json` — Pipeline configuration
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.
17
22
 
18
- ## Setup
23
+ ## Install in a consumer repo
19
24
 
20
- 1. Run `npx @kody-ade/kody-engine init` in your repo
21
- 2. Edit `kody.config.json` with your repo details
22
- 3. Add LLM API keys as GitHub repo secrets (e.g., `MINIMAX_API_KEY`)
23
- 4. Commit and push the workflow file
24
- 5. Comment `@kody` on any issue to run the pipeline
25
+ 1. Copy `templates/kody2.yml` to `.github/workflows/kody2.yml`.
26
+ 2. Add `agent.model` to `kody.config.json` (see `kody.config.schema.json`).
27
+ 3. Secrets on the repo:
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
25
30
 
26
31
  ## Commands
27
32
 
28
- ```bash
29
- # Initialize in target repo
30
- kody-engine init [--force] [--workflow-only]
31
-
32
- # Run pipeline (used by CI workflow)
33
- kody-engine run
34
-
35
- # CI helper commands
36
- kody-engine parse-safety
37
- kody-engine parse-inputs
38
- kody-engine checkout-branch
39
- ```
40
-
41
- ## Usage on GitHub Issues
42
-
43
33
  ```
44
- @kody # Full pipeline (spec + implementation)
45
- @kody spec # Analyze and spec only
46
- @kody impl # Implementation only
47
- @kody rerun --from build # Resume from stage
48
- @kody approve # Approve paused gate
34
+ kody2 run --issue <N> # implement an issue
35
+ kody2 fix --pr <N> [--feedback ...] # apply PR review feedback
36
+ kody2 fix-ci --pr <N> [--run-id <ID>] # fix failing CI
37
+ kody2 resolve --pr <N> # merge default branch in, resolve conflicts
38
+ kody2 ci --issue <N> # CI preflight + run
49
39
  ```
50
40
 
51
- ## Configuration
52
-
53
- `kody.config.json`:
54
-
55
- ```json
56
- {
57
- "quality": {
58
- "typecheck": "pnpm tsc --noEmit",
59
- "lint": "pnpm lint",
60
- "testUnit": "pnpm test:unit"
61
- },
62
- "git": { "defaultBranch": "dev" },
63
- "github": { "owner": "your-org", "repo": "your-repo" }
64
- }
65
- ```
66
-
67
- ## Required Secrets
68
-
69
- | Secret | Purpose |
70
- | ----------------- | ------------------------------------------------------------------------- |
71
- | `MINIMAX_API_KEY` | LLM provider (or `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`) |
72
- | `GH_PAT` | Optional: cross-repo operations |
73
-
74
- ## License
41
+ ## Profiles
75
42
 
76
- MIT
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.