@kody-ade/kody-engine 0.4.222 → 0.4.224
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 +6 -5
- package/dist/bin/kody.js +938 -656
- package/dist/duties/npm-publish/duty.md +17 -0
- package/dist/duties/npm-publish/profile.json +6 -0
- package/dist/executables/goal-scheduler/scheduler.sh +0 -0
- package/dist/executables/npm-publish/profile.json +73 -0
- package/dist/executables/npm-publish/publish.sh +93 -0
- package/dist/executables/preview-health/profile.json +48 -0
- package/dist/executables/preview-health/tick.sh +319 -0
- package/dist/executables/release/prepare.sh +4 -2
- package/dist/executables/release/release.sh +94 -47
- package/dist/executables/release-deploy/deploy.sh +0 -0
- package/dist/executables/release-prepare/prepare.sh +0 -0
- package/dist/executables/release-publish/publish.sh +0 -0
- package/dist/executables/resolve/apply-prefer.sh +0 -0
- package/dist/executables/revert/revert.sh +0 -0
- package/kody.config.schema.json +5 -0
- package/package.json +23 -22
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ kody: reads the issue → writes the code → runs your tests → opens a PR
|
|
|
38
38
|
In the repo you want kody to work on:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npx -y -p @kody-ade/kody-engine@latest kody init
|
|
41
|
+
npx -y -p @kody-ade/kody-engine@latest kody-engine init
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Then add **one** repo secret — a model provider key (e.g. `ANTHROPIC_API_KEY`) —
|
|
@@ -72,7 +72,7 @@ See [SECURITY.md](SECURITY.md) to report a vulnerability.
|
|
|
72
72
|
└─────────────────────────────────────────────┘
|
|
73
73
|
↓
|
|
74
74
|
┌─────────────────────────────────────────────┐
|
|
75
|
-
│ kody CLI (@kody-ade/kody-engine)
|
|
75
|
+
│ kody-engine CLI (@kody-ade/kody-engine) │
|
|
76
76
|
│ bin/kody.ts — entrypoint │
|
|
77
77
|
│ src/dispatch.ts — duty-driven routing │
|
|
78
78
|
│ src/executor.ts — runs duty implementations│
|
|
@@ -91,10 +91,10 @@ Executable directories are private implementation units and contain **only** thr
|
|
|
91
91
|
## Install in a consumer repo
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
|
-
npx -y -p @kody-ade/kody-engine@latest kody init
|
|
94
|
+
npx -y -p @kody-ade/kody-engine@latest kody-engine init
|
|
95
95
|
```
|
|
96
96
|
|
|
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.
|
|
97
|
+
`kody-engine 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.
|
|
98
98
|
|
|
99
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/*`.
|
|
100
100
|
|
|
@@ -121,6 +121,7 @@ kody-engine release --issue <N> [--bump patch|minor|major] [--dry-run]
|
|
|
121
121
|
kody-engine release-prepare --issue <N> [--bump patch|minor|major] [--dry-run]
|
|
122
122
|
kody-engine release-publish --issue <N> [--dry-run]
|
|
123
123
|
kody-engine release-deploy --issue <N> [--dry-run]
|
|
124
|
+
kody-engine npm-publish [--tag latest] [--access public] [--dry-run]
|
|
124
125
|
|
|
125
126
|
# scheduled duties and goals
|
|
126
127
|
kody-engine duty-scheduler # fan out due .kody/duties/<slug>/ folders
|
|
@@ -143,7 +144,7 @@ kody-engine stats # inspect run/even
|
|
|
143
144
|
|
|
144
145
|
### Duties
|
|
145
146
|
|
|
146
|
-
A **duty** is a folder at `.kody/duties/<slug>/` with `profile.json` metadata (`every`, `staff`, `action`, `executable`, `stage`, and related fields) plus human-owned prose in `duty.md`. `duty-scheduler` wakes on cron, finds due duties, and dispatches either `duty-tick` for an agent tick or `duty-tick-scripted` for a deterministic `tickScript` duty. `kody init` copies built-in starter duties and scaffolds `.kody/staff/kody.md`.
|
|
147
|
+
A **duty** is a folder at `.kody/duties/<slug>/` with `profile.json` metadata (`every`, `staff`, `action`, `executable`, `stage`, and related fields) plus human-owned prose in `duty.md`. `duty-scheduler` wakes on cron, finds due duties, and dispatches either `duty-tick` for an agent tick or `duty-tick-scripted` for a deterministic `tickScript` duty. `kody-engine init` copies built-in starter duties and scaffolds `.kody/staff/kody.md`.
|
|
147
148
|
|
|
148
149
|
Locked-toolbox duties can declare `"tools": [...]` in `profile.json` to run with only the named high-level MCP intents plus `submit_state`; duties without `tools` keep the legacy Bash/gh toolbox.
|
|
149
150
|
|