contract-driven-delivery 2.0.11 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.12] - 2026-05-04
4
+
5
+ Tiny patch — closes the last line-ending hole.
6
+
7
+ ### Fixed
8
+
9
+ - **`cdd-kit code-map --check` is now line-ending agnostic**: 2.0.11 fixed
10
+ the digest paths (`# sources-digest:`) to be portable, but `--check`'s
11
+ string-comparison fallback still saw CRLF (committed via
12
+ `core.autocrlf=true`) vs LF (always emitted) as different and reported
13
+ "would change". The pre-commit hook then regenerated the map on every
14
+ commit on Windows even when content was bit-identical. Fixed by
15
+ normalizing CRLF/CR → LF on both sides before comparison, matching the
16
+ digest functions' approach.
17
+
18
+ After upgrading, the hook stops triggering noisy regenerations on
19
+ Windows. No re-scan needed; this is purely a comparison fix.
20
+
3
21
  ## [2.0.11] - 2026-05-04
4
22
 
5
23
  Final portability fix in the digest series. After 2.0.10 made digests
package/dist/cli/index.js CHANGED
@@ -8566,7 +8566,7 @@ async function codeMap(opts) {
8566
8566
  }
8567
8567
  if (opts.check) {
8568
8568
  const existing = existsSync11(opts.out) ? readFileSync14(opts.out, "utf8") : "";
8569
- const normalize = (s) => s.replace(/^# generated: [^\n]+\n/m, "# generated: <normalized>\n");
8569
+ const normalize = (s) => s.replace(/\r\n/g, "\n").replace(/\r/g, "\n").replace(/^# generated: [^\n]+\n/m, "# generated: <normalized>\n");
8570
8570
  if (normalize(existing) !== normalize(yamlBody)) {
8571
8571
  log.error(`code-map out of date: ${opts.out} would change. Run \`cdd-kit code-map\` to regenerate.`);
8572
8572
  return 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contract-driven-delivery",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Contract-driven delivery kit for AI coding agents with deterministic context indexes, manifest-backed read-scope governance, and orchestrated contracts-first delivery.",
5
5
  "keywords": [
6
6
  "contract-driven",