lee-spec-kit 0.6.11 → 0.6.12

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/index.js +9 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2772,19 +2772,21 @@ function checkTaskCommitGate(feature) {
2772
2772
  newDoneCount += currentCount - previousCount;
2773
2773
  }
2774
2774
  }
2775
- if (newDoneCount !== 1) {
2775
+ if (newDoneCount > 1) {
2776
2776
  return {
2777
2777
  pass: false,
2778
2778
  reason: "MULTIPLE_DONE_TRANSITIONS",
2779
2779
  newDoneCount
2780
2780
  };
2781
2781
  }
2782
- const lastDoneTopic = normalizeTaskTopic(feature.lastDoneTask?.title || "");
2783
- if (lastDoneTopic) {
2784
- const previousCount = previousDone.get(lastDoneTopic) || 0;
2785
- const currentCount = currentDone.get(lastDoneTopic) || 0;
2786
- if (currentCount <= previousCount) {
2787
- return { pass: false, reason: "MISMATCH_LAST_DONE", newDoneCount };
2782
+ if (newDoneCount === 1) {
2783
+ const lastDoneTopic = normalizeTaskTopic(feature.lastDoneTask?.title || "");
2784
+ if (lastDoneTopic) {
2785
+ const previousCount = previousDone.get(lastDoneTopic) || 0;
2786
+ const currentCount = currentDone.get(lastDoneTopic) || 0;
2787
+ if (currentCount <= previousCount) {
2788
+ return { pass: false, reason: "MISMATCH_LAST_DONE", newDoneCount };
2789
+ }
2788
2790
  }
2789
2791
  }
2790
2792
  return { pass: true, reason: "MULTIPLE_DONE_TRANSITIONS", newDoneCount };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lee-spec-kit",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "Project documentation structure generator for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {