contract-driven-delivery 2.0.7 → 2.0.8
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 +61 -0
- package/dist/cli/index.js +2255 -1920
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.8] - 2026-05-04
|
|
4
|
+
|
|
5
|
+
Adds `cdd-kit refresh` — a one-shot complete upgrade command. The previous
|
|
6
|
+
upgrade flow (`update --yes` + `upgrade --yes`) only touched `~/.claude/`
|
|
7
|
+
and added missing project files; kit-shipped templates that the user already
|
|
8
|
+
had on disk were never refreshed, leaving them stale across releases.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`cdd-kit refresh [--yes]`**: composes `update` + `upgrade` and adds
|
|
13
|
+
force-refresh for kit-owned templates with automatic timestamped backup.
|
|
14
|
+
Six steps, each independently skippable:
|
|
15
|
+
1. `~/.claude/agents` and `~/.claude/skills/contract-driven-delivery`
|
|
16
|
+
(delegates to `cdd-kit update`)
|
|
17
|
+
2. Add missing project files (delegates to `cdd-kit upgrade`)
|
|
18
|
+
3. **Force-refresh kit templates** with backup to
|
|
19
|
+
`.cdd/.refresh-backup/<timestamp>/`. Targets:
|
|
20
|
+
`specs/templates/`, `tests/templates/`, `ci-templates/`,
|
|
21
|
+
`.github/workflows/contract-driven-gates.yml`.
|
|
22
|
+
4. Re-install pre-commit hook if `.cdd/.hooks-installed` marker exists.
|
|
23
|
+
5. Resync `.cdd/model-policy.json` roles map from
|
|
24
|
+
`~/.claude/agents/<name>.md` `model:` frontmatter (drift detector).
|
|
25
|
+
6. Regenerate `.cdd/code-map.yml`.
|
|
26
|
+
|
|
27
|
+
Flags to skip individual steps: `--no-templates`, `--no-hooks`,
|
|
28
|
+
`--no-code-map`, `--no-update`, `--no-upgrade`. Default is dry-run; pass
|
|
29
|
+
`--yes` to apply.
|
|
30
|
+
|
|
31
|
+
- **`.cdd/.hooks-installed` marker**: written by `cdd-kit init --hooks`.
|
|
32
|
+
Travels in the repo. Lets `cdd-kit refresh` know whether to re-install
|
|
33
|
+
the pre-commit hook on every refresh — so the hook stays in sync with
|
|
34
|
+
the latest kit version automatically.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **Pre-commit hook extension list**: `installCodeMapHook` now triggers
|
|
39
|
+
on `.py / .js / .jsx / .mjs / .cjs / .ts / .tsx / .vue` (was: `.py / .js / .vue`).
|
|
40
|
+
Mirrors `BUILTIN_INCLUDE` and the 2.0.7 qa-reviewer fix.
|
|
41
|
+
|
|
42
|
+
### Boundaries (locked)
|
|
43
|
+
|
|
44
|
+
`cdd-kit refresh` will **never** touch:
|
|
45
|
+
- `contracts/`, `specs/changes/`, `specs/archive/`
|
|
46
|
+
- `src/`, `tests/*` (except `tests/templates/`)
|
|
47
|
+
- `.cdd/code-map-config.yml`, `.cdd/context-policy.json`
|
|
48
|
+
- `CLAUDE.md`, `AGENTS.md`, `CODEX.md`
|
|
49
|
+
- `package.json`, `.git/` (except `.git/hooks/pre-commit` when marker exists),
|
|
50
|
+
`node_modules/`, `dist/`, `build/`
|
|
51
|
+
|
|
52
|
+
### Migration
|
|
53
|
+
|
|
54
|
+
Existing 2.0.x projects: `npm install -g contract-driven-delivery@latest`
|
|
55
|
+
then `cdd-kit refresh --yes`. The first refresh will surface any drift
|
|
56
|
+
that accumulated across 2.0.3 → 2.0.7 — backups land in
|
|
57
|
+
`.cdd/.refresh-backup/<timestamp>/` so rolling back any specific change
|
|
58
|
+
is a single `cp` away.
|
|
59
|
+
|
|
60
|
+
To use the auto-refreshing pre-commit hook on every push:
|
|
61
|
+
1. `cdd-kit init --hooks` (writes the marker)
|
|
62
|
+
2. From now on, `cdd-kit refresh --yes` will re-install the hook every time.
|
|
63
|
+
|
|
3
64
|
## [2.0.7] - 2026-05-04
|
|
4
65
|
|
|
5
66
|
Comprehensive cross-consistency audit fixes. Targets the #1 root cause of
|