@kody-ade/kody-engine 0.2.14 → 0.2.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/kody2.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.2.14",
6
+ version: "0.2.16",
7
7
  description: "kody2 \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -298,6 +298,7 @@ async function runAgent(opts) {
298
298
  if (typeof opts.systemPromptAppend === "string" && opts.systemPromptAppend.length > 0) {
299
299
  queryOptions.systemPrompt = { type: "preset", preset: "claude_code", append: opts.systemPromptAppend };
300
300
  }
301
+ queryOptions.settingSources = opts.settingSources ?? ["project", "local"];
301
302
  const result = query({
302
303
  prompt: opts.prompt,
303
304
  // biome-ignore lint/suspicious/noExplicitAny: SDK options type is narrow; mcpServers is runtime-passthrough.
@@ -3226,7 +3227,8 @@ async function runExecutable(profileName, input) {
3226
3227
  mcpServers: profile.claudeCode.mcpServers,
3227
3228
  pluginPaths: pluginPaths.length > 0 ? pluginPaths : void 0,
3228
3229
  maxTurns: profile.claudeCode.maxTurns,
3229
- systemPromptAppend: profile.claudeCode.systemPromptAppend
3230
+ systemPromptAppend: profile.claudeCode.systemPromptAppend,
3231
+ settingSources: profile.claudeCode.settingSources
3230
3232
  });
3231
3233
  };
3232
3234
  ctx.data.__invokeAgent = invokeAgent;
@@ -1,17 +1,40 @@
1
- You are Kody2's plugin-wiring live verification agent. Your ONLY job is to prove that each of the four extension mechanisms (plugins, skills, commands, hooks) is successfully loaded into your session.
1
+ You are Kody2's plugin-wiring live verification agent. Your ONLY job is to prove that each of the four extension mechanisms (plugins, skills, commands, hooks) is successfully loaded into your session. Do NOT address the issue's actual work.
2
+
3
+ Issue #{{issue.number}}: {{issue.title}}
2
4
 
3
5
  ---
4
6
 
5
- # Task
6
- Issue #{{issue.number}}: {{issue.title}}
7
+ # What to do, in order
8
+
9
+ Perform these four checks, then emit the final report.
10
+
11
+ ## Check 1 — Plugin
12
+
13
+ Look at your available skills. If a skill named `kody-plugin-marker` is loaded, record the literal string `PLUGIN_LOADED_OK`. Otherwise record `MISSING`.
14
+
15
+ ## Check 2 — Skill
16
+
17
+ Look at your available skills. If a skill named `kody-live-marker` is loaded, record the literal string `SKILL_LOADED_OK`. Otherwise record `MISSING`.
18
+
19
+ ## Check 3 — Command
20
+
21
+ Look at your available slash commands. If `/kody-live-probe` is listed, record the literal string `COMMAND_LOADED_OK`. Otherwise record `MISSING`.
22
+
23
+ ## Check 4 — Hook
24
+
25
+ Run these Bash steps, in order:
7
26
 
8
- Do not perform the issue's actual work. Instead, emit the confirmation tokens below.
27
+ 1. `rm -f /tmp/kody-hook-signal.txt`
28
+ 2. Use the Read tool to read `README.md` (or any file). This should trigger a PreToolUse hook that appends `HOOK_FIRED_OK` to `/tmp/kody-hook-signal.txt`.
29
+ 3. `cat /tmp/kody-hook-signal.txt`
30
+
31
+ If step 3 prints a line containing `HOOK_FIRED_OK`, record `HOOK_FIRED_OK`. Otherwise record `MISSING`.
9
32
 
10
33
  ---
11
34
 
12
- # Required tokens
35
+ # Output
13
36
 
14
- Your final message MUST use this exact shape:
37
+ Your FINAL message must use this exact structure. Replace each `<...>` placeholder with your recorded value from the check above (either the `_OK` token or `MISSING`) — do NOT include the "<" or ">" characters, and do NOT include the "if-else" explanation text.
15
38
 
16
39
  ```
17
40
  DONE
@@ -19,35 +42,31 @@ COMMIT_MSG: verify: plugin-wiring live check for #{{issue.number}}
19
42
  PR_SUMMARY:
20
43
  # Plugin-Wiring Verification Report
21
44
 
22
- - **Plugin**: PLUGIN_LOADED_OK if the kody-plugin-marker skill is loaded, else MISSING
23
- - **Skill**: SKILL_LOADED_OK if the kody-live-marker skill is loaded, else MISSING
24
- - **Command**: COMMAND_LOADED_OK if the /kody-live-probe command is listed, else MISSING
25
- - **Hook**: HOOK_FIRED_OK if reading /tmp/kody-hook-signal.txt returns the line HOOK_FIRED_OK, else MISSING
45
+ - Plugin: <check-1-value>
46
+ - Skill: <check-2-value>
47
+ - Command: <check-3-value>
48
+ - Hook: <check-4-value>
26
49
  ```
27
50
 
28
- Fill in each line with the **actual** token (PLUGIN_LOADED_OK / SKILL_LOADED_OK / COMMAND_LOADED_OK / HOOK_FIRED_OK) if that feature is working, or the literal word `MISSING` if it isn't.
29
-
30
- ---
31
-
32
- # How to check each feature
33
-
34
- **Plugin** — A plugin named `kody2-test-plugin` should be loaded. It ships a skill called `kody-plugin-marker`. If the skill is available, consult it (its SKILL.md instructs you to emit `PLUGIN_LOADED_OK`).
35
-
36
- **Skill** — A skill called `kody-live-marker` should be available. Its SKILL.md instructs you to emit `SKILL_LOADED_OK`. If you can see that skill in your available skills, emit the token.
51
+ Example of a valid filled-in output (if all four worked):
37
52
 
38
- **Command** — A slash command `/kody-live-probe` should be available. Verify by listing available slash commands (if you cannot see them, say MISSING). If available, emit `COMMAND_LOADED_OK`.
53
+ ```
54
+ DONE
55
+ COMMIT_MSG: verify: plugin-wiring live check for #{{issue.number}}
56
+ PR_SUMMARY:
57
+ # Plugin-Wiring Verification Report
39
58
 
40
- **Hook** — There is a `PreToolUse` hook configured for the Read tool. Its side effect: every time you invoke Read, the hook runs a shell command that writes `HOOK_FIRED_OK` to `/tmp/kody-hook-signal.txt`. Steps:
41
- 1. Use `Bash` to run `rm -f /tmp/kody-hook-signal.txt` to clear prior runs.
42
- 2. Use `Read` to read any file in the repository (e.g. `README.md`). This SHOULD trigger the hook.
43
- 3. Use `Bash` to `cat /tmp/kody-hook-signal.txt`. If it prints `HOOK_FIRED_OK`, emit that token. Otherwise emit MISSING.
59
+ - Plugin: PLUGIN_LOADED_OK
60
+ - Skill: SKILL_LOADED_OK
61
+ - Command: COMMAND_LOADED_OK
62
+ - Hook: HOOK_FIRED_OK
63
+ ```
44
64
 
45
65
  ---
46
66
 
47
67
  # Rules
48
68
 
49
69
  - Read-only. Do NOT modify any file.
50
- - Do NOT run git or gh commands.
51
- - Do NOT perform the issue's actual requested work.
52
- - If any feature reports MISSING, continue with the others — the whole point is to learn which mechanisms work.
53
- - Output must match the DONE/COMMIT_MSG/PR_SUMMARY shape exactly so Kody2's state-reducer can parse it.
70
+ - Do NOT run git or gh.
71
+ - Do NOT perform the issue's actual work.
72
+ - Emit the final report even if some checks report `MISSING` — the whole point is to learn which mechanisms work.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "kody2 — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",