@kody-ade/kody-engine 0.4.220 → 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 +7 -5
- package/dist/bin/kody.js +486 -517
- package/dist/duties/duty-scheduler/duty.md +3 -0
- package/dist/duties/duty-scheduler/profile.json +6 -0
- package/dist/duties/duty-tick/duty.md +3 -0
- package/dist/duties/duty-tick/profile.json +6 -0
- package/dist/duties/duty-tick-scripted/duty.md +3 -0
- package/dist/duties/duty-tick-scripted/profile.json +6 -0
- package/dist/duties/goal-scheduler/duty.md +3 -0
- package/dist/duties/goal-scheduler/profile.json +6 -0
- package/dist/duties/goal-tick/duty.md +3 -0
- package/dist/duties/goal-tick/profile.json +6 -0
- package/dist/duties/job-live-verify/duty.md +3 -0
- package/dist/duties/job-live-verify/profile.json +6 -0
- package/dist/duties/plan-verify/duty.md +3 -0
- package/dist/duties/plan-verify/profile.json +6 -0
- package/dist/duties/probe-skill/duty.md +3 -0
- package/dist/duties/probe-skill/profile.json +6 -0
- package/dist/duties/qa-goal/duty.md +3 -0
- package/dist/duties/qa-goal/profile.json +6 -0
- package/dist/duties/task-job-fail-once/duty.md +3 -0
- package/dist/duties/task-job-fail-once/profile.json +6 -0
- package/dist/duties/task-job-pass-a/duty.md +3 -0
- package/dist/duties/task-job-pass-a/profile.json +6 -0
- package/dist/duties/task-job-pass-b/duty.md +3 -0
- package/dist/duties/task-job-pass-b/profile.json +6 -0
- package/dist/duties/task-jobs/duty.md +3 -0
- package/dist/duties/task-jobs/profile.json +6 -0
- package/dist/executables/types.ts +7 -10
- package/package.json +1 -1
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 —
|
|
78
|
-
│ src/executor.ts — runs
|
|
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
|
|
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-
|
|
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
|
|