@kody-ade/kody-engine 0.3.61 → 0.3.62

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +7 -8
  2. package/package.json +1 -1
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.3.61",
6
+ version: "0.3.62",
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",
@@ -586,14 +586,16 @@ async function runChatTurn(opts) {
586
586
  await emit(opts.sink, "chat.error", opts.sessionId, "error", { error });
587
587
  return { exitCode: 64, error };
588
588
  }
589
- const prompt = buildPrompt(turns, opts.systemPrompt ?? CHAT_SYSTEM_PROMPT);
589
+ const systemPrompt = opts.systemPrompt ?? CHAT_SYSTEM_PROMPT;
590
+ const prompt = buildPrompt(turns);
590
591
  const invoke = opts.invokeAgent ?? ((p) => runAgent({
591
592
  prompt: p,
592
593
  model: opts.model,
593
594
  cwd: opts.cwd,
594
595
  litellmUrl: opts.litellmUrl,
595
596
  verbose: opts.verbose,
596
- quiet: opts.quiet
597
+ quiet: opts.quiet,
598
+ systemPromptAppend: systemPrompt
597
599
  }));
598
600
  let result;
599
601
  try {
@@ -624,12 +626,9 @@ async function runChatTurn(opts) {
624
626
  await emit(opts.sink, "chat.done", opts.sessionId, "done", { sessionId: opts.sessionId });
625
627
  return { exitCode: 0, reply };
626
628
  }
627
- function buildPrompt(turns, systemPrompt) {
628
- const header = `System: ${systemPrompt}`;
629
+ function buildPrompt(turns) {
629
630
  const body = turns.map((t) => `${t.role === "user" ? "User" : "Assistant"}: ${t.content}`).join("\n\n");
630
- return `${header}
631
-
632
- ${body}
631
+ return `${body}
633
632
 
634
633
  Assistant:`;
635
634
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.3.61",
3
+ "version": "0.3.62",
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",