@kody-ade/kody-engine 0.4.139 → 0.4.141

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.
@@ -11,6 +11,13 @@ set -euo pipefail
11
11
 
12
12
  goals_dir=".kody/goals"
13
13
 
14
+ # Goal state lives on the dedicated `kody-state` branch, not the default branch
15
+ # (keeps `chore(goals): …` churn out of code history). Materialize it into the
16
+ # working tree so the glob below sees current state. Best-effort: `kody-state`
17
+ # may not exist yet, or carry no goals — both fall through to the checks below.
18
+ git fetch origin kody-state --quiet 2>/dev/null || true
19
+ git checkout origin/kody-state -- "$goals_dir" 2>/dev/null || true
20
+
14
21
  if [ ! -d "$goals_dir" ]; then
15
22
  echo "[goal-scheduler] no $goals_dir — nothing to schedule"
16
23
  echo "KODY_SKIP_AGENT=true"
@@ -21,7 +21,7 @@
21
21
  "claudeCode": {
22
22
  "model": "inherit",
23
23
  "permissionMode": "default",
24
- "maxTurns": 20,
24
+ "maxTurns": 100,
25
25
  "maxThinkingTokens": null,
26
26
  "systemPromptAppend": null,
27
27
  "enableSubmitTool": true,
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "qa-goal",
3
+ "role": "primitive",
4
+ "kind": "oneshot",
5
+ "describe": "Operator-gated half of QA: promotes a QA report (already posted on an issue by qa-engineer) into a goal — manifest entry + one fix-ticket per finding + a committed .kody/goals/<id>/state.json. Deterministic, no agent. The qa / qa-sweep duties surface a `@kody qa-goal --issue <n>` inbox rec; this runs when the operator approves it, so QA never auto-creates goals on its own.",
6
+ "inputs": [
7
+ {
8
+ "name": "issue",
9
+ "flag": "--issue",
10
+ "type": "int",
11
+ "required": true,
12
+ "describe": "Issue number carrying qa-engineer's QA report (the comment with the <!-- KODY_QA_REPORT_JSON --> block)."
13
+ },
14
+ {
15
+ "name": "scope",
16
+ "flag": "--scope",
17
+ "type": "string",
18
+ "required": false,
19
+ "describe": "Optional scope label for the goal name (e.g. the changelog entry title). Defaults to 'smoke'."
20
+ },
21
+ {
22
+ "name": "goal",
23
+ "flag": "--goal",
24
+ "type": "string",
25
+ "required": false,
26
+ "describe": "Optional existing goal id to attach findings to instead of creating a new one."
27
+ }
28
+ ],
29
+ "claudeCode": {
30
+ "model": "inherit",
31
+ "permissionMode": "default",
32
+ "maxTurns": null,
33
+ "maxThinkingTokens": null,
34
+ "systemPromptAppend": null,
35
+ "tools": [],
36
+ "hooks": [],
37
+ "skills": [],
38
+ "commands": [],
39
+ "subagents": [],
40
+ "plugins": [],
41
+ "mcpServers": []
42
+ },
43
+ "cliTools": [
44
+ {
45
+ "name": "gh",
46
+ "install": {
47
+ "required": true,
48
+ "checkCommand": "command -v gh"
49
+ },
50
+ "verify": "gh auth status",
51
+ "usage": "Reads the QA report (`gh issue view --json comments`), appends to the goals manifest, and opens fix-ticket issues.",
52
+ "allowedUses": ["issue", "api"]
53
+ }
54
+ ],
55
+ "inputArtifacts": [],
56
+ "outputArtifacts": [],
57
+ "scripts": {
58
+ "preflight": [
59
+ {
60
+ "script": "promoteQaGoal"
61
+ }
62
+ ],
63
+ "postflight": []
64
+ }
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.139",
3
+ "version": "0.4.141",
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",