@kody-ade/kody-engine-lite 0.1.36 → 0.1.37

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/cli.js +30 -27
  2. package/package.json +1 -1
package/dist/bin/cli.js CHANGED
@@ -2603,37 +2603,40 @@ async function main() {
2603
2603
  setGhCwd(projectDir);
2604
2604
  logger.info(`Working directory: ${projectDir}`);
2605
2605
  }
2606
- let taskId = input.taskId;
2607
- if (!taskId) {
2608
- if (input.issueNumber) {
2609
- const taskAction = resolveForIssue(input.issueNumber, projectDir);
2610
- logger.info(`Task action: ${taskAction.action}`);
2611
- if (taskAction.action === "already-completed") {
2612
- logger.info(`Issue #${input.issueNumber} already completed (task ${taskAction.taskId})`);
2613
- if (!input.local) {
2614
- try {
2615
- postComment(input.issueNumber, `\u2705 Issue #${input.issueNumber} already completed (task \`${taskAction.taskId}\`)`);
2616
- } catch {
2617
- }
2606
+ if (input.issueNumber) {
2607
+ const taskAction = resolveForIssue(input.issueNumber, projectDir);
2608
+ logger.info(`Task action: ${taskAction.action}`);
2609
+ if (taskAction.action === "already-completed") {
2610
+ logger.info(`Issue #${input.issueNumber} already completed (task ${taskAction.taskId})`);
2611
+ if (!input.local) {
2612
+ try {
2613
+ postComment(input.issueNumber, `\u2705 Issue #${input.issueNumber} already completed (task \`${taskAction.taskId}\`)`);
2614
+ } catch {
2618
2615
  }
2619
- process.exit(0);
2620
2616
  }
2621
- if (taskAction.action === "already-running") {
2622
- logger.info(`Issue #${input.issueNumber} already running (task ${taskAction.taskId})`);
2623
- if (!input.local) {
2624
- try {
2625
- postComment(input.issueNumber, `\u23F3 Pipeline already running for issue #${input.issueNumber} (task \`${taskAction.taskId}\`)`);
2626
- } catch {
2627
- }
2617
+ process.exit(0);
2618
+ }
2619
+ if (taskAction.action === "already-running") {
2620
+ logger.info(`Issue #${input.issueNumber} already running (task ${taskAction.taskId})`);
2621
+ if (!input.local) {
2622
+ try {
2623
+ postComment(input.issueNumber, `\u23F3 Pipeline already running for issue #${input.issueNumber} (task \`${taskAction.taskId}\`)`);
2624
+ } catch {
2628
2625
  }
2629
- process.exit(0);
2630
- }
2631
- taskId = taskAction.taskId;
2632
- if (taskAction.action === "resume") {
2633
- input.fromStage = taskAction.fromStage;
2634
- input.command = "rerun";
2635
- logger.info(`Resuming task ${taskId} from ${taskAction.fromStage}`);
2636
2626
  }
2627
+ process.exit(0);
2628
+ }
2629
+ if (taskAction.action === "resume") {
2630
+ input.taskId = taskAction.taskId;
2631
+ input.fromStage = taskAction.fromStage;
2632
+ input.command = "rerun";
2633
+ logger.info(`Resuming task ${taskAction.taskId} from ${taskAction.fromStage}`);
2634
+ }
2635
+ }
2636
+ let taskId = input.taskId;
2637
+ if (!taskId) {
2638
+ if (input.issueNumber) {
2639
+ taskId = `${input.issueNumber}-${generateTaskId()}`;
2637
2640
  } else if (input.command === "run" && input.task) {
2638
2641
  taskId = generateTaskId();
2639
2642
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",