@kody-ade/kody-engine 0.3.71 → 0.3.74

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.
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "bug-container",
3
+ "role": "container",
4
+ "describe": "Container variant of `bug` — same plan → run → review (→ fix) flow, but children run sequentially in one process instead of as N comment-dispatched GHA runs. Strictly additive; the comment-driven `bug` orchestrator remains the default until classify is flipped.",
5
+ "inputs": [
6
+ {
7
+ "name": "issue",
8
+ "flag": "--issue",
9
+ "type": "int",
10
+ "required": true,
11
+ "describe": "GitHub issue number to drive the flow on."
12
+ }
13
+ ],
14
+ "claudeCode": {
15
+ "model": "inherit",
16
+ "permissionMode": "default",
17
+ "maxTurns": 0,
18
+ "maxThinkingTokens": null,
19
+ "systemPromptAppend": null,
20
+ "tools": [],
21
+ "hooks": [],
22
+ "skills": [],
23
+ "commands": [],
24
+ "subagents": [],
25
+ "plugins": [],
26
+ "mcpServers": []
27
+ },
28
+ "cliTools": [],
29
+ "scripts": {
30
+ "preflight": [
31
+ {
32
+ "script": "setLifecycleLabel",
33
+ "with": {
34
+ "label": "kody-flow:bug",
35
+ "color": "d73a4a",
36
+ "description": "kody flow: bug / enhancement"
37
+ }
38
+ },
39
+ {
40
+ "script": "setLifecycleLabel",
41
+ "with": {
42
+ "label": "kody:orchestrating",
43
+ "color": "1d76db",
44
+ "description": "kody: orchestrating a multi-stage flow"
45
+ }
46
+ },
47
+ { "script": "loadIssueContext" },
48
+ { "script": "loadTaskState" }
49
+ ],
50
+ "postflight": [
51
+ { "script": "finishFlow",
52
+ "with": { "reason": "review-passed", "label": "kody:done", "color": "0e8a16", "description": "kody: PR ready for human review/merge" },
53
+ "runWhen": { "data.taskState.core.lastOutcome.type": "REVIEW_PASS" } },
54
+
55
+ { "script": "finishFlow",
56
+ "with": { "reason": "fix-applied", "label": "kody:done", "color": "0e8a16", "description": "kody: PR ready for human review/merge" },
57
+ "runWhen": { "data.taskState.core.lastOutcome.type": "FIX_COMPLETED" } },
58
+
59
+ { "script": "finishFlow",
60
+ "with": { "reason": "review-failed", "label": "kody:failed", "color": "e11d21", "description": "kody: flow failed" },
61
+ "runWhen": { "data.taskState.core.lastOutcome.type": "REVIEW_FAILED" } },
62
+
63
+ { "script": "finishFlow",
64
+ "with": { "reason": "aborted", "label": "kody:failed", "color": "e11d21", "description": "kody: flow failed" },
65
+ "runWhen": { "data.taskState.core.lastOutcome.type": ["PLAN_FAILED", "RUN_FAILED", "FIX_FAILED", "AGENT_NOT_RUN"] } },
66
+
67
+ { "script": "persistFlowState" }
68
+ ]
69
+ },
70
+ "children": [
71
+ {
72
+ "exec": "plan",
73
+ "target": "issue",
74
+ "next": {
75
+ "PLAN_COMPLETED": "run",
76
+ "*": "abort"
77
+ }
78
+ },
79
+ {
80
+ "exec": "run",
81
+ "target": "issue",
82
+ "next": {
83
+ "RUN_COMPLETED": "review",
84
+ "*": "abort"
85
+ }
86
+ },
87
+ {
88
+ "exec": "review",
89
+ "target": "pr",
90
+ "next": {
91
+ "REVIEW_PASS": "done",
92
+ "REVIEW_CONCERNS": "fix",
93
+ "REVIEW_FAIL": "fix",
94
+ "*": "abort"
95
+ }
96
+ },
97
+ {
98
+ "exec": "fix",
99
+ "target": "pr",
100
+ "next": {
101
+ "FIX_COMPLETED": "done",
102
+ "*": "abort"
103
+ }
104
+ }
105
+ ],
106
+ "output": {
107
+ "actionTypes": [
108
+ "FLOW_COMPLETED",
109
+ "FLOW_ABORTED"
110
+ ]
111
+ }
112
+ }
@@ -0,0 +1,6 @@
1
+ <!--
2
+ Container role: no agent runs. The transition logic lives entirely in
3
+ profile.json's `children[].next` map (driven by the container loop in
4
+ src/executor.ts:runContainerLoop). This file exists only because the
5
+ profile loader expects a prompt.md sibling.
6
+ -->
@@ -104,10 +104,13 @@ open_deploy_pr() {
104
104
  repo=$(echo "$stripped" | cut -d/ -f2)
105
105
  fi
106
106
  local edit_err
107
- if ! edit_err=$(gh api --method PATCH "repos/${owner}/${repo}/pulls/${pr_num}" -f body="$body" 2>&1 >/dev/null); then
108
- echo "[deploy] WARN: failed to refresh deploy PR body for ${pr_url}: ${edit_err}" >&2
107
+ local refreshed_title="deploy: ${default_branch} ${release_branch} (v${new_version})"
108
+ if ! edit_err=$(gh api --method PATCH "repos/${owner}/${repo}/pulls/${pr_num}" \
109
+ -f title="$refreshed_title" \
110
+ -f body="$body" 2>&1 >/dev/null); then
111
+ echo "[deploy] WARN: failed to refresh deploy PR title+body for ${pr_url}: ${edit_err}" >&2
109
112
  else
110
- echo " refreshed deploy PR body via REST" >&2
113
+ echo " refreshed deploy PR title + body via REST" >&2
111
114
  fi
112
115
  else
113
116
  if ! pr_url=$(printf '%s' "$body" | gh pr create --head "$default_branch" --base "$release_branch" --title "deploy: ${default_branch} → ${release_branch} (v${new_version})" --body-file -); then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.3.71",
3
+ "version": "0.3.74",
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",