@kody-ade/kody-engine 0.2.48 → 0.2.49

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/kody2.js +14 -6
  2. package/package.json +1 -1
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.48",
6
+ version: "0.2.49",
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",
@@ -3556,19 +3556,27 @@ var postPlanComment = async (ctx) => {
3556
3556
  const targetNumber = Number(ctx.data.commentTargetNumber ?? 0);
3557
3557
  const plan = ctx.data.prSummary?.trim();
3558
3558
  if (targetType !== "issue" || !targetNumber || !plan) return;
3559
- const body = renderPlanComment(targetNumber, plan);
3559
+ const flowActive = Boolean(ctx.data.taskState?.flow);
3560
+ const body = renderPlanComment(targetNumber, plan, { flowActive });
3560
3561
  try {
3561
3562
  postIssueComment(targetNumber, body, ctx.cwd);
3562
3563
  } catch {
3563
3564
  }
3564
3565
  };
3565
- function renderPlanComment(issueNumber, plan) {
3566
- return `## Plan for issue #${issueNumber}
3566
+ function renderPlanComment(issueNumber, plan, opts) {
3567
+ const head = `## Plan for issue #${issueNumber}
3567
3568
 
3568
- ${plan}
3569
+ ${plan}`;
3570
+ if (opts?.flowActive) {
3571
+ return `${head}
3569
3572
 
3570
3573
  ---
3571
- Comment \`@kody2 run\` to execute this plan.`;
3574
+ _Orchestrator will advance to the next step automatically._`;
3575
+ }
3576
+ return `${head}
3577
+
3578
+ ---
3579
+ Comment \`kody2 run\` (prefixed with \`@\`) to execute this plan.`;
3572
3580
  }
3573
3581
 
3574
3582
  // src/scripts/postResearchComment.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
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",