@kody-ade/kody-engine 0.4.339 → 0.4.340

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/dist/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.339",
18
+ version: "0.4.340",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -18371,6 +18371,9 @@ function validateFilesForKind(kind, slug2, files, strictSingleModel, failures) {
18371
18371
  requirePath(paths, `capabilities/${slug2}/profile.json`, "workflow capability profile", failures);
18372
18372
  const profile = parseJsonFile(files, `capabilities/${slug2}/profile.json`, failures);
18373
18373
  if (profile) {
18374
+ if (profile.capabilityKind !== void 0) {
18375
+ failures.push("workflow profile must not declare capabilityKind");
18376
+ }
18374
18377
  const hasWorkflowObject = Boolean(profile.workflow && typeof profile.workflow === "object");
18375
18378
  const hasTopLevelSteps = Array.isArray(profile.steps) && profile.steps.length > 0;
18376
18379
  if (!hasWorkflowObject && !hasTopLevelSteps) {
@@ -18469,6 +18472,9 @@ function validateModelShape(kind, model, files, slug2, failures) {
18469
18472
  }
18470
18473
  }
18471
18474
  if (kind === "workflow") {
18475
+ if (model.capabilityKind !== void 0) {
18476
+ failures.push("workflow model must not declare capabilityKind");
18477
+ }
18472
18478
  if (!Array.isArray(model.steps) || model.steps.length === 0) failures.push("workflow model steps must be non-empty");
18473
18479
  }
18474
18480
  }
@@ -58,6 +58,7 @@ Each `models[]` entry must also carry the creator's canonical model metadata:
58
58
  - Goal model `"capabilities"` entries must be slugs of generated `kind: "capability"` models only. Do not put a workflow slug in a goal's `"capabilities"` or `"allowedCapabilities"` list.
59
59
  - Loop models use `"kind": "agentLoop"` and include `"wakeTarget": {"type": "goal|workflow|capability", "slug": "target-slug"}`. Use `"wakeTarget"`, not only `"target"`, in `models[]`.
60
60
  - Workflow models include non-empty `"steps"` as objects with a `"capability"` slug.
61
+ - Workflow models and workflow profiles must not use `"capabilityKind": "workflow"`. `capabilityKind` only belongs to Capability models and its only valid values are `"observe"`, `"act"`, and `"verify"`.
61
62
  - Capability models include `"capabilityKind"`, `"ability"`, `"inputs"`, `"outputs"`, `"allowedActions"`, `"forbiddenActions"`, and `doesNotOwn` includes `"agent identity"` and `"goal progress"`.
62
63
 
63
64
  When a request asks for both a goal and a workflow, keep them separate:
@@ -92,6 +93,7 @@ Use current storage names when producing files:
92
93
  - Put generated file paths relative to the configured state path, for example `capabilities/...`, `agents/...`, `goals/...`, or `memory/...`.
93
94
  - Do not create old implementation-root paths. Implementation profiles live in capability folders.
94
95
  - Produce complete file contents. Do not describe patches.
96
+ - The `PR_SUMMARY` must be valid JSON. Every `files[].content` value must be one JSON string with newlines escaped as `\n`; never put literal unescaped line breaks inside a JSON string.
95
97
  - Prefer a small bundle over a broad framework. Include assumptions in the summary.
96
98
 
97
99
  # Final Output Contract
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.339",
3
+ "version": "0.4.340",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",