@kody-ade/kody-engine 0.2.15 → 0.2.17

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.15",
6
+ version: "0.2.17",
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.
@@ -2310,6 +2311,7 @@ var postIssueComment2 = async (ctx) => {
2310
2311
  const commitResult = ctx.data.commitResult;
2311
2312
  const hasCommits = Boolean(ctx.data.hasCommitsAhead);
2312
2313
  const prUrl = ctx.output.prUrl;
2314
+ const prAction = ctx.data.prResult?.action;
2313
2315
  if (!commitResult?.committed && !hasCommits) {
2314
2316
  const reason = "no changes to commit";
2315
2317
  postWith(targetType, targetNumber, `\u26A0\uFE0F kody2 FAILED: ${reason}`, ctx.cwd);
@@ -2324,7 +2326,9 @@ var postIssueComment2 = async (ctx) => {
2324
2326
  }
2325
2327
  const failureReason = computeFailureReason2(ctx);
2326
2328
  const isFailure = failureReason.length > 0;
2327
- const msg = isFailure ? `\u26A0\uFE0F kody2 FAILED: ${truncate2(failureReason, 1500)}${prUrl ? ` \u2014 draft PR: ${prUrl}` : ""}` : `\u2705 kody2 PR opened: ${prUrl}`;
2329
+ const successMsg = prAction === "updated" ? `\u2705 kody2 pushed to ${prUrl}` : `\u2705 kody2 PR opened: ${prUrl}`;
2330
+ const failurePrSuffix = prUrl ? prAction === "updated" ? ` \u2014 PR: ${prUrl}` : ` \u2014 draft PR: ${prUrl}` : "";
2331
+ const msg = isFailure ? `\u26A0\uFE0F kody2 FAILED: ${truncate2(failureReason, 1500)}${failurePrSuffix}` : successMsg;
2328
2332
  postWith(targetType, targetNumber, msg, ctx.cwd);
2329
2333
  let exitCode = 0;
2330
2334
  const agentDone = Boolean(ctx.data.agentDone);
@@ -3226,7 +3230,8 @@ async function runExecutable(profileName, input) {
3226
3230
  mcpServers: profile.claudeCode.mcpServers,
3227
3231
  pluginPaths: pluginPaths.length > 0 ? pluginPaths : void 0,
3228
3232
  maxTurns: profile.claudeCode.maxTurns,
3229
- systemPromptAppend: profile.claudeCode.systemPromptAppend
3233
+ systemPromptAppend: profile.claudeCode.systemPromptAppend,
3234
+ settingSources: profile.claudeCode.settingSources
3230
3235
  });
3231
3236
  };
3232
3237
  ctx.data.__invokeAgent = invokeAgent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
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",