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

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/cli.js CHANGED
@@ -1633,6 +1633,7 @@ function applyPreStageLabel(ctx, def) {
1633
1633
  function checkQuestionsAfterStage(ctx, def, state) {
1634
1634
  if (def.name !== "taskify" && def.name !== "plan") return null;
1635
1635
  if (ctx.input.dryRun) return null;
1636
+ if (ctx.input.mode === "rerun") return null;
1636
1637
  const paused = checkForQuestions(ctx, def.name);
1637
1638
  if (!paused) return null;
1638
1639
  state.state = "failed";
@@ -2193,13 +2194,13 @@ async function runPipelineInner(ctx) {
2193
2194
  outputFile: result.outputFile
2194
2195
  };
2195
2196
  logger.info(`[${def.name}] \u2713 completed`);
2196
- const paused = checkQuestionsAfterStage(ctx, def, state);
2197
- if (paused) return paused;
2198
2197
  const detected = autoDetectComplexity(ctx, def);
2199
2198
  if (detected) {
2200
2199
  complexity = detected.complexity;
2201
2200
  activeStages = detected.activeStages;
2202
2201
  }
2202
+ const paused = checkQuestionsAfterStage(ctx, def, state);
2203
+ if (paused) return paused;
2203
2204
  const gated = checkRiskGate(ctx, def, state, complexity);
2204
2205
  if (gated) return gated;
2205
2206
  commitAfterStage(ctx, def);
@@ -2573,6 +2574,9 @@ function resolveForIssue(issueNumber, projectDir) {
2573
2574
  if (labels.includes("kody:done")) {
2574
2575
  return { action: "already-completed", taskId: `${issueNumber}-unknown` };
2575
2576
  }
2577
+ if (labels.includes("kody:waiting")) {
2578
+ return { action: "resume", taskId: `${issueNumber}-${generateTaskId()}`, fromStage: "taskify" };
2579
+ }
2576
2580
  } catch {
2577
2581
  }
2578
2582
  return resolveTaskAction(issueNumber, null, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -97,7 +97,12 @@ jobs:
97
97
  # Extract: @kody [mode] [task-id] [--from stage]
98
98
  KODY_ARGS=$(echo "$BODY" | grep -oP '(?:@kody|/kody)\s+\K.*' || echo "")
99
99
  MODE=$(echo "$KODY_ARGS" | awk '{print $1}')
100
- TASK_ID=$(echo "$KODY_ARGS" | awk '{print $2}')
100
+ RAW_TASK_ID=$(echo "$KODY_ARGS" | awk '{print $2}')
101
+ # Don't treat flags (--from, --feedback) as task IDs
102
+ case "$RAW_TASK_ID" in
103
+ --*) TASK_ID="" ;;
104
+ *) TASK_ID="$RAW_TASK_ID" ;;
105
+ esac
101
106
  FROM_STAGE=$(echo "$KODY_ARGS" | grep -oP '(?<=--from )\S+' || echo "")
102
107
  FEEDBACK=$(echo "$KODY_ARGS" | grep -oP '(?<=--feedback ")[^"]*' || echo "")
103
108