@ant-design/cli 6.3.5 → 6.3.6
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 +15 -0
- package/README.zh-CN.md +15 -0
- package/data/v3.26.20.json.gz +0 -0
- package/data/v3.json.gz +0 -0
- package/data/v6.3.6.json.gz +0 -0
- package/data/v6.json.gz +0 -0
- package/data/versions.json +4 -1
- package/dist/index.js +741 -208
- package/package.json +8 -8
- package/skills/antd/SKILL.md +8 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/cli",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.6",
|
|
4
4
|
"description": "CLI tool for querying antd knowledge and analyzing antd usage in projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postpack": "tsx scripts/compress-data.ts --undo"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=20.0.0"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"ant-design",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"oxc-parser": "^0.
|
|
46
|
+
"oxc-parser": "^0.123.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
49
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
50
50
|
"@types/node": "^25.5.0",
|
|
51
|
-
"@vitest/coverage-v8": "^
|
|
52
|
-
"commander": "
|
|
51
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
52
|
+
"commander": "^14.0.3",
|
|
53
53
|
"envinfo": "^7.21.0",
|
|
54
54
|
"gray-matter": "^4.0.3",
|
|
55
55
|
"tsup": "^8.4.0",
|
|
56
56
|
"tsx": "^4.19.0",
|
|
57
|
-
"typescript": "^5.
|
|
58
|
-
"vitest": "^
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vitest": "^4.1.2"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/skills/antd/SKILL.md
CHANGED
|
@@ -164,7 +164,7 @@ Collects: OS, Node, package managers (npm/pnpm/yarn/bun/utoo), npm registry, bro
|
|
|
164
164
|
|
|
165
165
|
### 9. Reporting antd bugs
|
|
166
166
|
|
|
167
|
-
When you
|
|
167
|
+
When the user asks you to report an antd bug:
|
|
168
168
|
|
|
169
169
|
```bash
|
|
170
170
|
# Step 0: Collect environment info for reference (optional — antd bug already embeds basic env)
|
|
@@ -190,23 +190,12 @@ antd bug --title "DatePicker crashes when selecting date" \
|
|
|
190
190
|
--submit
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
### 10.
|
|
193
|
+
### 10. Reporting CLI issues
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
Trigger conditions — report a CLI bug when you observe any of these:
|
|
198
|
-
- A command **crashes or exits with an unexpected error**
|
|
199
|
-
- A command **returns clearly incorrect data** (e.g. `antd info Button` shows wrong props, missing props, or props from the wrong version)
|
|
200
|
-
- A command's **output doesn't match its documented behavior** (e.g. `--format json` returns non-JSON, `--version X` is ignored)
|
|
201
|
-
- A command **returns empty or missing data** when it shouldn't (e.g. `antd demo Button` returns no demos, `antd token Button` returns no tokens for v5+)
|
|
202
|
-
- **Inconsistencies between commands** (e.g. `antd list` shows a component but `antd info` says it doesn't exist)
|
|
203
|
-
|
|
204
|
-
**Workflow:**
|
|
205
|
-
1. You notice something wrong while using the CLI
|
|
206
|
-
2. Gather evidence: the exact command you ran, what was returned, and what you expected
|
|
207
|
-
3. Preview the bug report for the user:
|
|
195
|
+
When the user asks you to report a CLI bug, or explicitly requests help filing one:
|
|
208
196
|
|
|
209
197
|
```bash
|
|
198
|
+
# Preview the bug report for the user
|
|
210
199
|
antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
|
|
211
200
|
--description "When querying Button props for version 5.12.0, the output includes props that don't exist in that version" \
|
|
212
201
|
--steps "1. Run: antd info Button --version 5.12.0 --format json" \
|
|
@@ -215,8 +204,7 @@ antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
|
|
|
215
204
|
--format json
|
|
216
205
|
```
|
|
217
206
|
|
|
218
|
-
|
|
219
|
-
5. Submit after user confirms:
|
|
207
|
+
Show the report to the user and confirm before submitting:
|
|
220
208
|
|
|
221
209
|
```bash
|
|
222
210
|
antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
|
|
@@ -227,7 +215,7 @@ antd bug-cli --title "antd info Button returns wrong props for v5.12.0" \
|
|
|
227
215
|
--submit
|
|
228
216
|
```
|
|
229
217
|
|
|
230
|
-
**
|
|
218
|
+
**Opt-out:** If the environment variable `ANTD_NO_AUTO_REPORT=1` is set, skip all bug-reporting suggestions entirely — do not suggest `antd bug` or `antd bug-cli` unless the user directly asks.
|
|
231
219
|
|
|
232
220
|
### 11. Using as MCP server
|
|
233
221
|
|
|
@@ -262,5 +250,5 @@ This provides 7 tools (`antd_list`, `antd_info`, `antd_doc`, `antd_demo`, `antd_
|
|
|
262
250
|
3. **Use `--format json`** — Every command supports it. Parse the JSON output rather than regex-matching text output.
|
|
263
251
|
4. **Check before suggesting migration** — Run `antd changelog <v1> <v2>` and `antd migrate` before advising on version upgrades.
|
|
264
252
|
5. **Lint after changes** — After writing or modifying antd code, run `antd lint` on the changed files to catch deprecated or problematic usage.
|
|
265
|
-
6. **Report antd bugs** —
|
|
266
|
-
7. **
|
|
253
|
+
6. **Report antd bugs** — When the user asks to report an antd bug, use `antd bug`. Always preview first, get user confirmation, then submit.
|
|
254
|
+
7. **Report CLI issues** — When the user asks about a CLI problem, use `antd bug-cli` to help them file a report. Always preview first, get user confirmation, then submit.
|