cclaw-cli 0.48.0 → 0.48.2

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/tdd-cycle.js CHANGED
@@ -1,6 +1,10 @@
1
1
  export function parseTddCycleLog(text) {
2
2
  const out = [];
3
- for (const raw of text.split(/\r?\n/)) {
3
+ // Strip a leading UTF-8 BOM on the whole blob so the first line parses
4
+ // cleanly; `trim()` handles BOM on subsequent lines through the same
5
+ // codepath (empty/whitespace-only lines are skipped).
6
+ const normalized = text.charCodeAt(0) === 0xfeff ? text.slice(1) : text;
7
+ for (const raw of normalized.split(/\r?\n/)) {
4
8
  const line = raw.trim();
5
9
  if (!line)
6
10
  continue;
@@ -100,6 +104,7 @@ export function validateTddCycleOrder(entries, options = {}) {
100
104
  }
101
105
  if (state !== "green_done") {
102
106
  issues.push(`slice ${slice}: refactor logged before green`);
107
+ continue;
103
108
  }
104
109
  state = "need_red";
105
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclaw-cli",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "Installer-first flow toolkit for coding agents",
5
5
  "type": "module",
6
6
  "bin": {