@kody-ade/kody-engine 0.4.15 → 0.4.16

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
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.4.15",
6
+ version: "0.4.16",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -142,15 +142,19 @@ ensure_goal_issue() {
142
142
  body=$(printf "Umbrella issue for goal **%s**.\n\nClosed automatically when the goal PR (\`%s\` → \`%s\`) merges.\n" \
143
143
  "$goal_id" "$goal_branch" "$default_branch")
144
144
 
145
- num=$(gh issue create \
145
+ # `gh issue create` prints the new issue's URL on stdout
146
+ # (https://github.com/<owner>/<repo>/issues/<n>). It does NOT support
147
+ # --json/--jq, so parse the trailing number off the URL.
148
+ local url
149
+ url=$(gh issue create \
146
150
  --title "$title" \
147
151
  --body "$body" \
148
152
  --label "$label" \
149
- --label "kody:building" \
150
- --json number --jq '.number' 2>/dev/null || echo "")
153
+ --label "kody:building" 2>/dev/null || echo "")
151
154
 
152
- if [ -z "$num" ]; then
153
- echo "[goal-tick] ensure_goal_issue: gh issue create failed continuing without umbrella issue"
155
+ num="${url##*/}"
156
+ if [ -z "$num" ] || ! [[ "$num" =~ ^[0-9]+$ ]]; then
157
+ echo "[goal-tick] ensure_goal_issue: gh issue create failed (got '${url}') — continuing without umbrella issue"
154
158
  return 0
155
159
  fi
156
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
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",