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

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
@@ -2193,13 +2193,13 @@ async function runPipelineInner(ctx) {
2193
2193
  outputFile: result.outputFile
2194
2194
  };
2195
2195
  logger.info(`[${def.name}] \u2713 completed`);
2196
- const paused = checkQuestionsAfterStage(ctx, def, state);
2197
- if (paused) return paused;
2198
2196
  const detected = autoDetectComplexity(ctx, def);
2199
2197
  if (detected) {
2200
2198
  complexity = detected.complexity;
2201
2199
  activeStages = detected.activeStages;
2202
2200
  }
2201
+ const paused = checkQuestionsAfterStage(ctx, def, state);
2202
+ if (paused) return paused;
2203
2203
  const gated = checkRiskGate(ctx, def, state, complexity);
2204
2204
  if (gated) return gated;
2205
2205
  commitAfterStage(ctx, def);
@@ -2573,6 +2573,9 @@ function resolveForIssue(issueNumber, projectDir) {
2573
2573
  if (labels.includes("kody:done")) {
2574
2574
  return { action: "already-completed", taskId: `${issueNumber}-unknown` };
2575
2575
  }
2576
+ if (labels.includes("kody:waiting")) {
2577
+ return { action: "resume", taskId: `${issueNumber}-${generateTaskId()}`, fromStage: "build" };
2578
+ }
2576
2579
  } catch {
2577
2580
  }
2578
2581
  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.38",
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