@kody-ade/kody-engine 0.4.25 → 0.4.27

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.25",
6
+ version: "0.4.27",
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",
@@ -379,6 +379,12 @@ for pr in data:
379
379
  fi
380
380
  done
381
381
 
382
+ # Retry ensure_goal_pr after the merge step. The early call at line ~356
383
+ # fails when the goal branch has 0 commits ahead of default. If THIS tick
384
+ # just merged a task PR, the branch now has a delta and `gh pr create`
385
+ # will succeed. Idempotent — early-returns if the PR was already created.
386
+ ensure_goal_pr
387
+
382
388
  # Close dispatched task issues whose PR has merged into the goal branch.
383
389
  # `Closes #N` in the PR body only auto-closes the issue when the PR merges
384
390
  # into the default branch — goal-task PRs target the goal branch, so we must
@@ -88,12 +88,13 @@ For EACH file you will change or create, include:
88
88
  - Current state — what's there today (function/class/export names, relevant line ranges). Skip for new files.
89
89
  - Target state — what will be there after the change, at the same level of specificity.
90
90
  - Exact locations of edits (function name, line range if stable, or anchor like "after the `meta` group field, before the closing `fields: []`").
91
- - For new files: rough shape including exports, key functions with signatures, and top-level module comment.
91
+ - For new files: rough shape including exports, key functions with signatures, and top-level module comment. **Do not paste full function bodies** — signatures and 1–2 sentence intent per export are enough for an implementer to write the body. Single-line type/interface declarations and short config snippets are fine.
92
92
  - Dependencies touched (imports added/removed, new packages) — call out if anything needs installing.
93
93
 
94
94
  ## Algorithms & pseudocode
95
95
  REQUIRED for any non-trivial logic (sorting, diffing, state transitions, concurrency, batching, caching, conflict resolution).
96
96
  - Write pseudocode (not production code) showing the actual algorithm — inputs, steps, outputs.
97
+ - Pseudocode ≤ ~20 lines per algorithm. If it grows past that, the algorithm needs decomposing, not more lines.
97
98
  - Call out invariants the algorithm preserves.
98
99
  - Call out complexity (N swaps vs N-squared recalc vs single-batch write).
99
100
  - If there's a choice between two algorithms, explain why you picked this one.
@@ -150,5 +151,6 @@ No filler. No marketing language. Depth over brevity.>
150
151
  - Read-only. Do NOT modify any file.
151
152
  - Do NOT run git or gh commands.
152
153
  - No speculative scope — plan only what the issue asks for, but plan it THOROUGHLY.
154
+ - **Plan length ≤ ~1500 lines / ~15k tokens.** Larger plans get truncated by output token caps before the closing `DONE` marker — and a truncated plan is worse than a smaller one. If a feature legitimately needs more, output `FAILED: scope too large for single plan — split into <list of sub-issues>` instead of overrunning.
153
155
  - If the issue is ambiguous and you cannot make progress without input, output `FAILED: <what's unclear>` instead of a plan.
154
156
  - If the Research floor cannot be met because required files are missing or unreadable, output `FAILED: <what could not be read>` instead of a half-blind plan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.25",
3
+ "version": "0.4.27",
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",