@driftdev/cli 1.14.0 → 1.15.0
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 +5 -218
- package/dist/drift.js +1559 -4502
- package/package.json +5 -4
- package/schemas/drift.config.schema.json +0 -48
- package/schemas/{drift.docs-map.schema.json → drift.docs.schema.json} +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driftdev/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Drift CLI - detect when your docs drift from your code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@driftdev/clarity-adapter": "^1.0.1",
|
|
49
49
|
"@driftdev/openapi-adapter": "^1.0.1",
|
|
50
|
-
"@driftdev/sdk": "^1.
|
|
50
|
+
"@driftdev/sdk": "^1.15.0",
|
|
51
51
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
52
|
-
"@openpkg-ts/sdk": "^0.
|
|
53
|
-
"@openpkg-ts/spec": "^0.
|
|
52
|
+
"@openpkg-ts/sdk": "^0.52.2",
|
|
53
|
+
"@openpkg-ts/spec": "^0.52.0",
|
|
54
|
+
"@typesafe-ai/sdk": "^0.6.0",
|
|
54
55
|
"chalk": "^5.4.1",
|
|
55
56
|
"commander": "^14.0.0",
|
|
56
57
|
"zod": "^4.2.1"
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
"type": "string",
|
|
14
14
|
"description": "Entry point override (otherwise auto-detected)"
|
|
15
15
|
},
|
|
16
|
-
"include": {
|
|
17
|
-
"description": "Export include patterns",
|
|
18
|
-
"oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }]
|
|
19
|
-
},
|
|
20
|
-
"exclude": {
|
|
21
|
-
"description": "Export exclude patterns",
|
|
22
|
-
"oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }]
|
|
23
|
-
},
|
|
24
16
|
"coverage": {
|
|
25
17
|
"type": "object",
|
|
26
18
|
"description": "Coverage thresholds",
|
|
@@ -30,19 +22,10 @@
|
|
|
30
22
|
"minimum": 0,
|
|
31
23
|
"maximum": 100,
|
|
32
24
|
"description": "Minimum coverage % (exit 1 if below)"
|
|
33
|
-
},
|
|
34
|
-
"ratchet": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"description": "Ratchet: effective min = max(min, highest coverage ever recorded)"
|
|
37
25
|
}
|
|
38
26
|
},
|
|
39
27
|
"additionalProperties": false
|
|
40
28
|
},
|
|
41
|
-
"lint": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"default": true,
|
|
44
|
-
"description": "Enable lint checks"
|
|
45
|
-
},
|
|
46
29
|
"docs": {
|
|
47
30
|
"type": "object",
|
|
48
31
|
"description": "Markdown docs discovery",
|
|
@@ -56,37 +39,6 @@
|
|
|
56
39
|
"type": "array",
|
|
57
40
|
"items": { "type": "string" },
|
|
58
41
|
"description": "Glob patterns for markdown docs to exclude"
|
|
59
|
-
},
|
|
60
|
-
"remote": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"description": "Remote repos to sync docs on breaking changes",
|
|
63
|
-
"items": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"properties": {
|
|
66
|
-
"repo": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"pattern": "^[^/]+/[^/]+$",
|
|
69
|
-
"description": "Target repo in \"owner/repo\" format"
|
|
70
|
-
},
|
|
71
|
-
"branch": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "Target branch (defaults to repo's default branch)"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"required": ["repo"],
|
|
77
|
-
"additionalProperties": false
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"additionalProperties": false
|
|
82
|
-
},
|
|
83
|
-
"examples": {
|
|
84
|
-
"type": "object",
|
|
85
|
-
"description": "Example execution policy",
|
|
86
|
-
"properties": {
|
|
87
|
-
"run": {
|
|
88
|
-
"type": "boolean",
|
|
89
|
-
"description": "Allow --run in non-TTY (CI) without --yes"
|
|
90
42
|
}
|
|
91
43
|
},
|
|
92
44
|
"additionalProperties": false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://unpkg.com/@driftdev/cli/schemas/drift.docs
|
|
4
|
-
"title": "Drift docs
|
|
5
|
-
"description": "Page→type mapping for
|
|
3
|
+
"$id": "https://unpkg.com/@driftdev/cli/schemas/drift.docs.schema.json",
|
|
4
|
+
"title": "Drift docs file",
|
|
5
|
+
"description": "Page→type mapping for key coverage. Committed artifact: an agent may propose it, a human commits it, CI runs it deterministically.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["version", "pages"],
|
|
8
8
|
"properties": {
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"additionalProperties": {
|
|
60
60
|
"enum": ["prose-documented", "internal-by-convention", "ignore"]
|
|
61
61
|
},
|
|
62
|
-
"description": "
|
|
62
|
+
"description": "Human-committed key classifications."
|
|
63
63
|
},
|
|
64
64
|
"baselineGaps": {
|
|
65
65
|
"type": "integer",
|
|
66
66
|
"minimum": 0,
|
|
67
|
-
"description": "Gap ratchet: CI fails when user-facing gaps exceed this committed count.
|
|
67
|
+
"description": "Gap ratchet: CI fails when user-facing gaps exceed this committed count. Use `drift docs baseline` to tighten."
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"additionalProperties": true
|