@kody-ade/kody-engine 0.4.483 → 0.4.485

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.483",
18
+ version: "0.4.485",
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",
@@ -4315,6 +4315,17 @@ function validateCapabilityContractValue(boundary, schema, value) {
4315
4315
  throw new CapabilityContractValidationError(boundary, validate.errors ?? []);
4316
4316
  }
4317
4317
  }
4318
+ function capabilityContractInput(inputs, args) {
4319
+ const isGenericRunnerInput = inputs.some((input) => input.name === "capability") && inputs.some((input) => input.name === "input");
4320
+ if (!isGenericRunnerInput) return args;
4321
+ const value = args.input;
4322
+ if (typeof value !== "string") return value;
4323
+ try {
4324
+ return JSON.parse(value);
4325
+ } catch {
4326
+ return value;
4327
+ }
4328
+ }
4318
4329
  var validator, CapabilityContractValidationError;
4319
4330
  var init_capability_contract_validation = __esm({
4320
4331
  "src/agency/capability-contract-validation.ts"() {
@@ -20943,7 +20954,11 @@ async function runImplementation(profileName, input) {
20943
20954
  try {
20944
20955
  args = validateInputs(profile.inputs, input.cliArgs);
20945
20956
  if (profile.canonicalContract) {
20946
- validateCapabilityContractValue("input", profile.canonicalContract.inputSchema, args);
20957
+ validateCapabilityContractValue(
20958
+ "input",
20959
+ profile.canonicalContract.inputSchema,
20960
+ capabilityContractInput(profile.inputs, args)
20961
+ );
20947
20962
  }
20948
20963
  } catch (err) {
20949
20964
  return finishAndEnd({ exitCode: 64, reason: err instanceof Error ? err.message : String(err) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.483",
3
+ "version": "0.4.485",
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",
@@ -11,43 +11,43 @@ on:
11
11
  workflow_dispatch:
12
12
  inputs:
13
13
  issue_number:
14
- description: "GitHub issue number (agent mode)"
14
+ description: 'GitHub issue number (agent mode)'
15
15
  type: string
16
- default: ""
16
+ default: ''
17
17
  sessionId:
18
- description: "Chat session ID (chat mode, from Kody Dashboard)"
18
+ description: 'Chat session ID (chat mode, from Kody Dashboard)'
19
19
  type: string
20
- default: ""
20
+ default: ''
21
21
  message:
22
- description: "Initial chat message (optional)"
22
+ description: 'Initial chat message (optional)'
23
23
  type: string
24
- default: ""
24
+ default: ''
25
25
  model:
26
- description: "Model override (optional)"
26
+ description: 'Model override (optional)'
27
27
  type: string
28
- default: ""
28
+ default: ''
29
29
  dashboardUrl:
30
- description: "Dashboard event ingest URL (chat mode)"
30
+ description: 'Dashboard event ingest URL (chat mode)'
31
31
  type: string
32
- default: ""
32
+ default: ''
33
33
  capability:
34
- description: "Capability action to run"
34
+ description: 'Capability action to run'
35
35
  type: string
36
- default: ""
36
+ default: ''
37
37
  base:
38
- description: "Optional base branch"
38
+ description: 'Optional base branch'
39
39
  type: string
40
- default: ""
40
+ default: ''
41
41
  runRequest:
42
- description: "Canonical Kody execution request JSON"
42
+ description: 'Canonical Kody execution request JSON'
43
43
  type: string
44
- default: ""
44
+ default: ''
45
45
  issue_comment:
46
46
  types: [created]
47
47
  pull_request:
48
48
  types: [opened, synchronize, closed]
49
49
  schedule:
50
- - cron: "7/15 * * * *"
50
+ - cron: '7/15 * * * *'
51
51
 
52
52
  jobs:
53
53
  run: