@kody-ade/kody-engine 0.4.261 → 0.4.263
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 +15 -15
- package/dist/bin/kody.js +807 -816
- package/dist/capabilities/agent-factory/capability.md +10 -0
- package/dist/{agent-responsibilities → capabilities}/agent-factory/profile.json +1 -1
- package/dist/capabilities/run/capability.md +10 -0
- package/dist/{agent-responsibilities → capabilities}/run/profile.json +1 -1
- package/dist/{agent-actions → executables}/agent-factory/prompt.md +6 -6
- package/dist/{agent-actions → executables}/run/prompt.md +1 -1
- package/dist/{agent-actions → executables}/types.ts +51 -52
- package/dist/plugins/hooks/block-write.json +1 -1
- package/kody.config.schema.json +8 -8
- package/package.json +2 -2
- package/dist/agent-responsibilities/agent-factory/agent-responsibility.md +0 -10
- package/dist/agent-responsibilities/run/agent-responsibility.md +0 -10
- /package/dist/{agent-actions → executables}/agent-factory/profile.json +0 -0
- /package/dist/{agent-actions → executables}/run/profile.json +0 -0
package/README.md
CHANGED
|
@@ -78,27 +78,27 @@ See [SECURITY.md](SECURITY.md) to report a vulnerability.
|
|
|
78
78
|
│ src/executor.ts — runs capability implementations │
|
|
79
79
|
│ .kody/capabilities/<slug>/ │
|
|
80
80
|
│ profile.json · capability.md · optional skills/scripts │
|
|
81
|
-
│ .kody/
|
|
82
|
-
│ legacy fallback: profile.json ·
|
|
83
|
-
│ .kody/
|
|
81
|
+
│ .kody/capabilities/<slug>/ │
|
|
82
|
+
│ legacy fallback: profile.json · capability.md │
|
|
83
|
+
│ .kody/executables/<name>/ │
|
|
84
84
|
│ legacy fallback: profile.json · prompt.md · *.sh │
|
|
85
85
|
│ src/scripts/*.ts — cross-cutting catalog │
|
|
86
86
|
└─────────────────────────────────────────────┘
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
Every top-level command is an auto-discovered capability action. The router has
|
|
90
|
-
**zero
|
|
90
|
+
**zero executable names hardcoded** - comment dispatch resolves the first token
|
|
91
91
|
after `@kody` through `config.aliases`, then falls back to the legacy-named
|
|
92
|
-
`config.
|
|
92
|
+
`config.defaultExecutable` / `config.defaultPrExecutable` fields as default
|
|
93
93
|
capability actions. Drop a new `.kody/capabilities/<slug>/` directory with
|
|
94
|
-
`profile.json` + `capability.md`; legacy `.kody/
|
|
95
|
-
`.kody/
|
|
94
|
+
`profile.json` + `capability.md`; legacy `.kody/capabilities/` and
|
|
95
|
+
`.kody/executables/` roots still load while repos migrate.
|
|
96
96
|
|
|
97
|
-
Legacy
|
|
97
|
+
Legacy Executable directories are private implementation units and contain
|
|
98
98
|
**only** three kinds of files: `profile.json` (declaration), `prompt.md` (agent
|
|
99
99
|
instructions), and `.sh` scripts (mechanical side-effect work). Cross-cutting
|
|
100
100
|
TypeScript lives in [src/scripts/](src/scripts/); it can't import from
|
|
101
|
-
`src/
|
|
101
|
+
`src/executables/` and can't branch on `profile.name`.
|
|
102
102
|
|
|
103
103
|
## Install in a consumer repo
|
|
104
104
|
|
|
@@ -139,9 +139,9 @@ kody-engine release-deploy --issue <N> [--dry-run]
|
|
|
139
139
|
kody-engine npm-publish [--tag latest] [--access public] [--dry-run]
|
|
140
140
|
|
|
141
141
|
# scheduled capabilities and goals
|
|
142
|
-
kody-engine
|
|
143
|
-
kody-engine
|
|
144
|
-
kody-engine
|
|
142
|
+
kody-engine capability-scheduler # fan out due .kody/capabilities/<slug>/ folders plus legacy fallbacks
|
|
143
|
+
kody-engine capability-tick --capability <slug> [--force] # one agent tick for one capability
|
|
144
|
+
kody-engine capability-tick-scripted --capability <slug> [--force] # one deterministic tickScript capability tick
|
|
145
145
|
kody-engine goal-scheduler # fan out active goal instances in configured state repo
|
|
146
146
|
kody-engine goal-manager --goal <id> # advance one managed goal instance
|
|
147
147
|
|
|
@@ -163,8 +163,8 @@ A **capability** is a folder at `.kody/capabilities/<slug>/` with
|
|
|
163
163
|
`profile.json` metadata (`action`, `capabilityKind`, `agent`, `every`, and
|
|
164
164
|
related fields) plus human-owned prose in `capability.md`. The scheduler wakes
|
|
165
165
|
on cron, finds due capabilities, and dispatches either
|
|
166
|
-
`
|
|
167
|
-
`
|
|
166
|
+
`capability-tick` for an agent tick or
|
|
167
|
+
`capability-tick-scripted` for a deterministic `tickScript`
|
|
168
168
|
capability. The CLI names are still legacy during migration.
|
|
169
169
|
|
|
170
170
|
Locked-toolbox capabilities can declare `"tools": [...]` in `profile.json` to
|
|
@@ -179,7 +179,7 @@ without `tools` keep the legacy Bash/gh toolbox.
|
|
|
179
179
|
|
|
180
180
|
A profile is declarative JSON plus an adjacent markdown body. New public work
|
|
181
181
|
should live under `.kody/capabilities/<slug>/` with `capability.md`; legacy
|
|
182
|
-
implementations under [src/
|
|
182
|
+
implementations under [src/executables/](src/executables/) still show the
|
|
183
183
|
older split profile + prompt shape. Adding a new capability should not require
|
|
184
184
|
executor, entry, or dispatch changes.
|
|
185
185
|
|