kantban-cli 0.1.13 → 0.1.14

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.
@@ -113,6 +113,9 @@ function classifyTrajectory(snapshots) {
113
113
  if (meaningful.length === 0) {
114
114
  return { status: "progressing", evidence: "only initial checks", confidence: 0.5 };
115
115
  }
116
+ if (meaningful.length < 2) {
117
+ return { status: "progressing", evidence: "insufficient data for trajectory", confidence: 0.3 };
118
+ }
116
119
  if (meaningful.every((d) => d === "same")) {
117
120
  return { status: "spinning", evidence: "identical gate results", confidence: 1 };
118
121
  }
@@ -3807,6 +3810,7 @@ var RalphLoop = class {
3807
3810
  log(`Ticket moved to column ${afterFp.column_id ?? "null"}`);
3808
3811
  return withCosts({ reason: "moved", iterations: i, gutterCount, model: resolvedModel, output: lastOutput });
3809
3812
  }
3813
+ const gutterBeforeGates = gutterCount;
3810
3814
  if (this.config.onPostIterationGates) {
3811
3815
  try {
3812
3816
  const snapshot = await this.config.onPostIterationGates(this.ticketId, i);
@@ -3894,8 +3898,8 @@ var RalphLoop = class {
3894
3898
  }
3895
3899
  break;
3896
3900
  case "spinning":
3897
- gutterCount += 2;
3898
- log(`Stuck detection: spinning \u2014 gutter accelerated to ${String(gutterCount)}/${String(this.config.gutterThreshold)}`);
3901
+ gutterCount = gutterBeforeGates + 2;
3902
+ log(`Stuck detection: spinning \u2014 gutter set to ${String(gutterCount)}/${String(this.config.gutterThreshold)}`);
3899
3903
  break;
3900
3904
  case "blocked":
3901
3905
  log(`Stuck detection: blocked \u2014 exiting immediately`);
@@ -4060,4 +4064,4 @@ export {
4060
4064
  generateGateProxyMcpConfig,
4061
4065
  cleanupGateProxyConfigs
4062
4066
  };
4063
- //# sourceMappingURL=chunk-FKIFDPKK.js.map
4067
+ //# sourceMappingURL=chunk-KGS3M2MY.js.map