@kody-ade/kody-engine 0.4.476 → 0.4.477

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.476",
18
+ version: "0.4.477",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -457,6 +457,23 @@ function parseReleaseConfig(raw) {
457
457
  if (typeof r.allowAdminMerge === "boolean") out.allowAdminMerge = r.allowAdminMerge;
458
458
  if (typeof r.releaseBranch === "string") out.releaseBranch = r.releaseBranch;
459
459
  if (typeof r.timeoutMs === "number" && r.timeoutMs > 0) out.timeoutMs = Math.floor(r.timeoutMs);
460
+ if (r.validation && typeof r.validation === "object") {
461
+ const validation = r.validation;
462
+ const workflow = typeof validation.workflow === "string" ? validation.workflow.trim() : "";
463
+ if (workflow) {
464
+ const inputs = validation.inputs && typeof validation.inputs === "object" ? Object.fromEntries(
465
+ Object.entries(
466
+ validation.inputs
467
+ ).filter(
468
+ (entry) => /^[a-z][a-z0-9_]*$/.test(entry[0]) && (typeof entry[1] === "string" || typeof entry[1] === "number" || typeof entry[1] === "boolean")
469
+ )
470
+ ) : void 0;
471
+ out.validation = {
472
+ workflow,
473
+ ...inputs && Object.keys(inputs).length > 0 ? { inputs } : {}
474
+ };
475
+ }
476
+ }
460
477
  return Object.keys(out).length > 0 ? out : void 0;
461
478
  }
462
479
  function parseIssueContext(raw) {
@@ -150,6 +150,26 @@
150
150
  "draftRelease": { "type": "boolean" },
151
151
  "releaseBranch": { "type": "string" },
152
152
  "allowAdminMerge": { "type": "boolean" },
153
+ "validation": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "required": ["workflow"],
157
+ "properties": {
158
+ "workflow": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "inputs": {
163
+ "type": "object",
164
+ "propertyNames": {
165
+ "pattern": "^[a-z][a-z0-9_]*$"
166
+ },
167
+ "additionalProperties": {
168
+ "type": ["string", "number", "boolean"]
169
+ }
170
+ }
171
+ }
172
+ },
153
173
  "timeoutMs": {
154
174
  "type": "integer",
155
175
  "minimum": 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.476",
3
+ "version": "0.4.477",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",