contract-driven-delivery 1.0.0 → 1.0.1
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/README.md +18 -18
- package/dist/cli/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,48 +14,48 @@ Requires Node.js 18+ and Python 3.8+.
|
|
|
14
14
|
|
|
15
15
|
## CLI Usage
|
|
16
16
|
|
|
17
|
-
### `cdd init`
|
|
17
|
+
### `cdd-kit init`
|
|
18
18
|
|
|
19
19
|
Installs Claude Code agents and the `contract-driven-delivery` skill into `~/.claude`, and scaffolds project files (`contracts/`, `specs/templates/`, `tests/templates/`, `ci/`, `CLAUDE.md`, `AGENTS.md`) into the current repository.
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
cdd init # global + local (recommended for first-time setup)
|
|
23
|
-
cdd init --global-only # only install agents/skill into ~/.claude
|
|
24
|
-
cdd init --local-only # only scaffold project files in current repo
|
|
25
|
-
cdd init --force # overwrite existing project files (CLAUDE.md is never overwritten)
|
|
22
|
+
cdd-kit init # global + local (recommended for first-time setup)
|
|
23
|
+
cdd-kit init --global-only # only install agents/skill into ~/.claude
|
|
24
|
+
cdd-kit init --local-only # only scaffold project files in current repo
|
|
25
|
+
cdd-kit init --force # overwrite existing project files (CLAUDE.md is never overwritten)
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
### `cdd update`
|
|
28
|
+
### `cdd-kit update`
|
|
29
29
|
|
|
30
30
|
Updates the agents and skill in `~/.claude` to the latest installed version. Does not touch project-level files like `contracts/` or `CLAUDE.md`.
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
cdd update
|
|
33
|
+
cdd-kit update
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### `cdd new <name>`
|
|
36
|
+
### `cdd-kit new <name>`
|
|
37
37
|
|
|
38
38
|
Creates a new change scaffold under `specs/changes/<name>/` with the required template files.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
cdd new add-user-auth # required templates only
|
|
42
|
-
cdd new add-user-auth --all # include all optional templates
|
|
41
|
+
cdd-kit new add-user-auth # required templates only
|
|
42
|
+
cdd-kit new add-user-auth --all # include all optional templates
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Required templates: `change-request.md`, `change-classification.md`, `test-plan.md`, `ci-gates.md`, `tasks.md`
|
|
46
46
|
|
|
47
47
|
Optional templates (with `--all`): `current-behavior.md`, `proposal.md`, `spec.md`, `design.md`, `contracts.md`, `qa-report.md`, `regression-report.md`, `archive.md`
|
|
48
48
|
|
|
49
|
-
### `cdd validate`
|
|
49
|
+
### `cdd-kit validate`
|
|
50
50
|
|
|
51
51
|
Runs contract validation scripts against the current repository.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
cdd validate # run all validators
|
|
55
|
-
cdd validate --contracts # validate API/data/CSS contracts
|
|
56
|
-
cdd validate --env # validate env contract
|
|
57
|
-
cdd validate --ci # validate CI gate policy
|
|
58
|
-
cdd validate --spec # validate spec traceability
|
|
54
|
+
cdd-kit validate # run all validators
|
|
55
|
+
cdd-kit validate --contracts # validate API/data/CSS contracts
|
|
56
|
+
cdd-kit validate --env # validate env contract
|
|
57
|
+
cdd-kit validate --ci # validate CI gate policy
|
|
58
|
+
cdd-kit validate --spec # validate spec traceability
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
## First-time setup in a repository
|
|
@@ -68,7 +68,7 @@ npm install -g contract-driven-delivery
|
|
|
68
68
|
cd your-repo
|
|
69
69
|
|
|
70
70
|
# 3. Deploy the kit
|
|
71
|
-
cdd init
|
|
71
|
+
cdd-kit init
|
|
72
72
|
|
|
73
73
|
# 4. Open Claude Code and run the workflow
|
|
74
74
|
# Ask Claude Code: "Use the contract-driven-delivery workflow.
|
|
@@ -134,7 +134,7 @@ A change is not done until:
|
|
|
134
134
|
|
|
135
135
|
```bash
|
|
136
136
|
npm update -g contract-driven-delivery
|
|
137
|
-
cdd update
|
|
137
|
+
cdd-kit update
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
## License
|
package/dist/cli/index.js
CHANGED
|
@@ -311,7 +311,7 @@ async function validate(opts) {
|
|
|
311
311
|
|
|
312
312
|
// src/cli/index.ts
|
|
313
313
|
var program = new Command();
|
|
314
|
-
program.name("cdd").description("Contract-Driven Delivery Kit CLI").version("1.0.0");
|
|
314
|
+
program.name("cdd-kit").description("Contract-Driven Delivery Kit CLI").version("1.0.0");
|
|
315
315
|
program.command("init").description(
|
|
316
316
|
"Install agents/skill into ~/.claude and scaffold project files in cwd"
|
|
317
317
|
).option("--global-only", "Only install into ~/.claude, skip project files", false).option("--local-only", "Only scaffold project files, skip ~/.claude", false).option("--force", "Overwrite existing project files", false).action(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contract-driven-delivery",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Contract-driven delivery kit CLI — spec-first, test-first AI-assisted delivery for brownfield systems",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contract-driven",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
|
-
"cdd": "bin/cdd.js"
|
|
21
|
+
"cdd-kit": "bin/cdd.js"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|