@kody-ade/kody-engine 0.4.221 → 0.4.222

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 CHANGED
@@ -74,17 +74,19 @@ See [SECURITY.md](SECURITY.md) to report a vulnerability.
74
74
  ┌─────────────────────────────────────────────┐
75
75
  │ kody CLI (@kody-ade/kody-engine) │
76
76
  │ bin/kody.ts — entrypoint │
77
- │ src/dispatch.ts — profile-driven routing
78
- │ src/executor.ts — runs one profile
77
+ │ src/dispatch.ts — duty-driven routing
78
+ │ src/executor.ts — runs duty implementations
79
+ │ .kody/duties/<slug>/ │
80
+ │ profile.json · duty.md │
79
81
  │ src/executables/<name>/ │
80
82
  │ profile.json · prompt.md · *.sh │
81
83
  │ src/scripts/*.ts — cross-cutting catalog │
82
84
  └─────────────────────────────────────────────┘
83
85
  ```
84
86
 
85
- Every top-level command is its own auto-discovered executable. The router has **zero executable names hardcoded** — comment dispatch resolves the first token after `@kody` through `config.aliases`, then falls back to `config.defaultExecutable` / `config.defaultPrExecutable`. Drop a new `src/executables/<name>/` directory with a `profile.json` + `prompt.md` (+ any colocated `.sh`) and `kody <name>` starts working.
87
+ Every top-level command is an auto-discovered duty action. The router has **zero executable names hardcoded** — comment dispatch resolves the first token after `@kody` through `config.aliases`, then falls back to the legacy-named `config.defaultExecutable` / `config.defaultPrExecutable` fields as default duty actions. Drop a new `.kody/duties/<slug>/` directory with `profile.json` + `duty.md`; that duty chooses its implementation executable.
86
88
 
87
- Executable directories contain **only** three kinds of files: `profile.json` (declaration), `prompt.md` (agent instructions), and `.sh` scripts (mechanical side-effect work). Cross-cutting TypeScript lives in [src/scripts/](src/scripts/); it can't import from `src/executables/` and can't branch on `profile.name`.
89
+ Executable directories are private implementation units and contain **only** three kinds of files: `profile.json` (declaration), `prompt.md` (agent instructions), and `.sh` scripts (mechanical side-effect work). Cross-cutting TypeScript lives in [src/scripts/](src/scripts/); it can't import from `src/executables/` and can't branch on `profile.name`.
88
90
 
89
91
  ## Install in a consumer repo
90
92
 
@@ -92,7 +94,7 @@ Executable directories contain **only** three kinds of files: `profile.json` (de
92
94
  npx -y -p @kody-ade/kody-engine@latest kody init
93
95
  ```
94
96
 
95
- `kody init` scaffolds [kody.config.json](kody.config.schema.json), `.github/workflows/kody.yml` (generated from `WORKFLOW_TEMPLATE` in [src/scripts/initFlow.ts](src/scripts/initFlow.ts)), and per-scheduled-executable workflow files. Idempotent — pass `--force` to overwrite.
97
+ `kody init` scaffolds [kody.config.json](kody.config.schema.json), `.github/workflows/kody.yml` (generated from `WORKFLOW_TEMPLATE` in [src/scripts/initFlow.ts](src/scripts/initFlow.ts)), and per-scheduled-duty workflow files. Idempotent — pass `--force` to overwrite.
96
98
 
97
99
  Required repo secrets: at least one model provider key (e.g. `MINIMAX_API_KEY`, `ANTHROPIC_API_KEY`). Recommended: `KODY_TOKEN` PAT so kody's commits trigger downstream CI and can modify `.github/workflows/*`.
98
100