@kody-ade/kody-engine 0.4.4 → 0.4.6

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.4",
6
+ version: "0.4.6",
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",
@@ -5583,9 +5583,9 @@ var parseAgentResult2 = async (ctx, profile, agentResult) => {
5583
5583
  commitMessage: parsed.commitMessage
5584
5584
  });
5585
5585
  } else {
5586
- ctx.data.action = makeAction2(`${modeSeg}_FAILED`, {
5587
- reason: parsed.failureReason || agentResult.error || "unknown failure"
5588
- });
5586
+ const isGenericNoOutput = parsed.failureReason === "agent produced no final message";
5587
+ const reason = isGenericNoOutput && agentResult.error ? `agent SDK error: ${agentResult.error}` : parsed.failureReason || agentResult.error || "unknown failure";
5588
+ ctx.data.action = makeAction2(`${modeSeg}_FAILED`, { reason });
5589
5589
  }
5590
5590
  };
5591
5591
  function makeAction2(type, payload) {
@@ -143,7 +143,11 @@ fi
143
143
 
144
144
  echo "[goal-tick] dispatching @kody on task #$next_issue"
145
145
  gh issue comment "$next_issue" --body "@kody"
146
- gh issue edit "$next_issue" --add-label "$dispatched_label" || true
146
+ # Ensure the dedup label exists in the repo. It lives outside the `kody:`
147
+ # namespace so `ensureLabels` doesn't create it at init time, and a missing
148
+ # label silently swallowed here would re-dispatch the same issue every tick.
149
+ gh label create "$dispatched_label" --color ededed --description "kody goal-runner: already dispatched this tick" --force >/dev/null 2>&1 || true
150
+ gh issue edit "$next_issue" --add-label "$dispatched_label"
147
151
 
148
152
  # Bump updatedAt so the file changes (cheap audit trail in git log).
149
153
  python3 - "$state_file" "$next_issue" <<'PY'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
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",