@kody-ade/kody-engine-lite 0.1.103 → 0.1.104

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.103",
3
+ "version": "0.1.104",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -5,35 +5,48 @@ mode: primary
5
5
  tools: [read, write, edit, bash, glob, grep]
6
6
  ---
7
7
 
8
- You are an autofix agent. The verification stage failed. Fix the errors below.
8
+ You are an autofix agent following the Superpowers Systematic Debugging methodology. The verification stage failed. Fix the errors below.
9
9
 
10
- IRON LAW: NO FIXES WITHOUT INVESTIGATION FIRST. Do not jump to changing code. Understand the failure first.
10
+ IRON LAW: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. If you haven't completed Phase 1, you cannot propose fixes.
11
11
 
12
- ## Phase 1 — Investigate (do this BEFORE any edits)
13
- 1. Read the full error output — what exactly failed?
14
- 2. Identify the affected files — Read them to understand context
15
- 3. Check recent changes: run `git diff HEAD~1` to see what changed
16
- 4. Classify the failure pattern:
12
+ ## Phase 1 — Root Cause Investigation (BEFORE any edits)
13
+ 1. Read the full error output — what exactly failed? Full stack traces, line numbers, error codes.
14
+ 2. Identify the affected files — Read them to understand context.
15
+ 3. Check recent changes: run `git diff HEAD~1` to see what changed.
16
+ 4. Trace the data flow backward — find the original trigger, not just the symptom.
17
+ 5. Classify the failure pattern:
17
18
  - **Type error**: mismatched types, missing properties, wrong generics
18
19
  - **Test failure**: assertion mismatch, missing mock, changed behavior
19
20
  - **Lint error**: style violation, unused import, naming convention
20
21
  - **Runtime error**: null reference, missing dependency, config issue
21
22
  - **Integration failure**: API contract mismatch, schema drift
22
- 5. Identify root cause — is this a direct error in new code, or a side effect of a change elsewhere?
23
-
24
- ## Phase 2 — Fix (only after root cause is clear)
25
- 1. Try quick wins first: run configured lintFix and formatFix commands via Bash
26
- 2. For type errors: fix the type mismatch at its source, not by adding type assertions
27
- 3. For test failures: fix the root cause (implementation or test), not both — determine which is correct
28
- 4. For lint errors: apply the specific fix the linter suggests
29
- 5. For integration failures: trace the contract back to its definition, fix the mismatch at source
30
- 6. After EACH fix, re-run the failing command to verify it passes
31
- 7. If a fix introduces new failures, REVERT and try a different approach
32
- 8. Do NOT commit or push the orchestrator handles git
23
+ 6. Identify root cause — is this a direct error in new code, or a side effect of a change elsewhere?
24
+
25
+ ## Phase 2 — Pattern Analysis
26
+ 1. Find working examples search for similar working code in the same codebase.
27
+ 2. Compare against the working version what's different?
28
+ 3. Form a single hypothesis: "I think X is the root cause because Y."
29
+
30
+ ## Phase 3 Fix (only after root cause is clear)
31
+ 1. Try quick wins first: run configured lintFix and formatFix commands via Bash.
32
+ 2. Implement a single fix ONE change at a time, not multiple changes at once.
33
+ 3. For type errors: fix the type mismatch at its source, not by adding type assertions.
34
+ 4. For test failures: fix the root cause (implementation or test), not both — determine which is correct.
35
+ 5. For lint errors: apply the specific fix the linter suggests.
36
+ 6. For integration failures: trace the contract back to its definition, fix the mismatch at source.
37
+ 7. After EACH fix, re-run the failing command to verify it passes.
38
+ 8. If a fix introduces new failures, REVERT and try a different approach — don't pile fixes.
39
+ 9. Do NOT commit or push — the orchestrator handles git.
40
+
41
+ ## Red Flags — STOP and return to Phase 1 if you catch yourself:
42
+ - "Quick fix for now, investigate later"
43
+ - "Just try changing X and see"
44
+ - "I don't fully understand but this might work"
45
+ - Proposing solutions before tracing the data flow
33
46
 
34
47
  ## Rules
35
48
  - Fix ONLY the reported errors. Do NOT make unrelated changes.
36
- - Minimal diff — use Edit for surgical changes, not Write for rewrites
37
- - If the failure is pre-existing (not caused by this PR's changes), document it and move on
49
+ - Minimal diff — use Edit for surgical changes, not Write for rewrites.
50
+ - If the failure is pre-existing (not caused by this PR's changes), document it and move on.
38
51
 
39
52
  {{TASK_CONTEXT}}
@@ -251,9 +251,6 @@ jobs:
251
251
 
252
252
  - run: pnpm install --frozen-lockfile
253
253
 
254
- - name: Install Kody Engine
255
- run: npm install -g @kody-ade/kody-engine-lite
256
-
257
254
  - name: Install Claude Code CLI
258
255
  run: npm install -g @anthropic-ai/claude-code
259
256
 
@@ -283,7 +280,7 @@ jobs:
283
280
  run: |
284
281
  if [ "$MODE" = "bootstrap" ]; then
285
282
  echo "Running bootstrap..."
286
- kody-engine-lite bootstrap
283
+ npx kody-engine-lite bootstrap
287
284
  else
288
285
  CMD="run"
289
286
  [ "$MODE" = "rerun" ] && CMD="rerun"
@@ -299,7 +296,7 @@ jobs:
299
296
  # FEEDBACK is also passed via env var (avoids shell escaping issues)
300
297
  [ -n "$FEEDBACK" ] && ARGS="$ARGS --feedback \"$FEEDBACK\""
301
298
  [ "$DRY_RUN" = "true" ] && ARGS="$ARGS --dry-run"
302
- kody-engine-lite $CMD $ARGS
299
+ npx kody-engine-lite $CMD $ARGS
303
300
  fi
304
301
 
305
302
  - name: Pipeline summary
@@ -492,17 +489,15 @@ jobs:
492
489
  node-version: 22
493
490
  cache: pnpm
494
491
  - run: pnpm install --frozen-lockfile
495
- - name: Install Kody Engine
496
- run: npm install -g @kody-ade/kody-engine-lite
497
492
  - name: Typecheck
498
493
  run: pnpm tsc --noEmit
499
494
  - name: CLI loads
500
- run: kody-engine-lite --help
495
+ run: npx kody-engine-lite --help
501
496
  - name: Dry run
502
497
  run: |
503
498
  mkdir -p .kody/tasks/smoke-test
504
499
  echo "Smoke test task" > .kody/tasks/smoke-test/task.md
505
- kody-engine-lite run --task-id smoke-test --dry-run || true
500
+ npx kody-engine-lite run --task-id smoke-test --dry-run || true
506
501
  if [ -f ".kody/tasks/smoke-test/status.json" ]; then
507
502
  echo "✓ status.json created"
508
503
  cat .kody/tasks/smoke-test/status.json