@ant-design/cli 6.3.3 → 6.3.5-beta.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 +22 -1
- package/README.zh-CN.md +22 -1
- package/data/v4.json.gz +0 -0
- package/data/v5.json.gz +0 -0
- package/data/v6.3.4.json.gz +0 -0
- package/data/v6.json.gz +0 -0
- package/data/versions.json +1 -1
- package/dist/index.js +887 -612
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/skills/antd/SKILL.md +19 -0
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ Query component knowledge, analyze project usage, and guide migrations — fully
|
|
|
14
14
|
[](https://www.npmjs.com/package/@ant-design/cli)
|
|
15
15
|
[](https://www.npmjs.com/package/@ant-design/cli)
|
|
16
16
|
[](https://github.com/ant-design/ant-design-cli/actions/workflows/ci.yml)
|
|
17
|
+
[](https://packagephobia.com/result?p=@ant-design/cli)
|
|
17
18
|
[](./LICENSE)
|
|
18
19
|
|
|
19
20
|
[English](./README.md) · [中文](./README.zh-CN.md) · [Changelog](./CHANGELOG.md)
|
|
@@ -24,7 +25,7 @@ Query component knowledge, analyze project usage, and guide migrations — fully
|
|
|
24
25
|
|
|
25
26
|
## 🤔 Why
|
|
26
27
|
|
|
27
|
-
Code agents (Claude Code,
|
|
28
|
+
Code agents (Claude Code, Codex, Gemini CLI) write better antd code when they have instant access to the right API data. This CLI gives them exactly that — **every prop, token, demo, and changelog entry for antd v4 / v5 / v6**, bundled locally, queryable in milliseconds.
|
|
28
29
|
|
|
29
30
|
```bash
|
|
30
31
|
npx skills add ant-design/ant-design-cli # install as an agent skill
|
|
@@ -40,6 +41,7 @@ npx skills add ant-design/ant-design-cli # install as an agent skill
|
|
|
40
41
|
- 🌍 **Bilingual** — Every component name, description, and doc has both English and Chinese. Switch with `--lang zh`.
|
|
41
42
|
- 🔮 **Smart matching** — Typo `Buttn`? The CLI suggests `Button` using Levenshtein distance, with first-letter preference.
|
|
42
43
|
- 🧩 **14 commands** — From prop lookup to project-wide lint, from design token queries to cross-version API diffing.
|
|
44
|
+
- 🔌 **MCP server** — `antd mcp` starts a stdio server for native IDE integration (Claude Desktop, Cursor).
|
|
43
45
|
|
|
44
46
|
<br>
|
|
45
47
|
|
|
@@ -77,6 +79,25 @@ The agent will handle `npm install`, `npx skills add`, and start using the CLI a
|
|
|
77
79
|
|
|
78
80
|
Works with [Claude Code](https://claude.ai/code), [Cursor](https://cursor.sh), [Codex](https://openai.com/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli), and any agent supporting the [skills](https://github.com/nicepkg/agent-skills) protocol.
|
|
79
81
|
|
|
82
|
+
### MCP Server
|
|
83
|
+
|
|
84
|
+
For IDEs that support [Model Context Protocol](https://modelcontextprotocol.io), the CLI can run as an MCP server:
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"mcpServers": {
|
|
89
|
+
"antd": {
|
|
90
|
+
"command": "antd",
|
|
91
|
+
"args": ["mcp"]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
To pin a specific antd version, add `"--version", "5.20.0"` to the `args` array.
|
|
98
|
+
|
|
99
|
+
This exposes 7 tools (`antd_list`, `antd_info`, `antd_doc`, `antd_demo`, `antd_token`, `antd_semantic`, `antd_changelog`) and 2 prompts (`antd-expert`, `antd-page-generator`) for native IDE integration.
|
|
100
|
+
|
|
80
101
|
<br>
|
|
81
102
|
|
|
82
103
|
## 🚀 Quick Start
|
package/README.zh-CN.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
[](https://www.npmjs.com/package/@ant-design/cli)
|
|
15
15
|
[](https://www.npmjs.com/package/@ant-design/cli)
|
|
16
16
|
[](https://github.com/ant-design/ant-design-cli/actions/workflows/ci.yml)
|
|
17
|
+
[](https://packagephobia.com/result?p=@ant-design/cli)
|
|
17
18
|
[](./LICENSE)
|
|
18
19
|
|
|
19
20
|
[English](./README.md) · [中文](./README.zh-CN.md) · [更新日志](./CHANGELOG.zh-CN.md)
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
|
|
25
26
|
## 🤔 为什么
|
|
26
27
|
|
|
27
|
-
Code Agent(Claude Code、
|
|
28
|
+
Code Agent(Claude Code、Codex、Gemini CLI)在拥有即时 API 数据访问能力时,能写出更好的 antd 代码。这个 CLI 正是为此而生 — **antd v4 / v5 / v6 的每个 Prop、Token、Demo 和 Changelog 条目**,本地打包,毫秒级查询。
|
|
28
29
|
|
|
29
30
|
```bash
|
|
30
31
|
npx skills add ant-design/ant-design-cli # 安装为 Agent Skill
|
|
@@ -40,6 +41,7 @@ npx skills add ant-design/ant-design-cli # 安装为 Agent Skill
|
|
|
40
41
|
- 🌍 **双语输出** — 每个组件名、描述和文档均有中英文。通过 `--lang zh` 切换。
|
|
41
42
|
- 🔮 **智能纠错** — 输入 `Buttn`?CLI 基于 Levenshtein 距离建议 `Button`,优先匹配首字母相同的候选。
|
|
42
43
|
- 🧩 **14 条命令** — 从 Prop 查询到项目级 Lint,从 Design Token 到跨版本 API 对比。
|
|
44
|
+
- 🔌 **MCP 服务** — `antd mcp` 启动 stdio 服务,原生集成 Claude Desktop、Cursor 等 IDE。
|
|
43
45
|
|
|
44
46
|
<br>
|
|
45
47
|
|
|
@@ -75,6 +77,25 @@ npx skills add ant-design/ant-design-cli
|
|
|
75
77
|
|
|
76
78
|
Agent 会自动完成 `npm install`、`npx skills add`,并开始使用 CLI。
|
|
77
79
|
|
|
80
|
+
### MCP 服务
|
|
81
|
+
|
|
82
|
+
支持 [Model Context Protocol](https://modelcontextprotocol.io) 的 IDE 可直接将 CLI 作为 MCP 服务使用:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"mcpServers": {
|
|
87
|
+
"antd": {
|
|
88
|
+
"command": "antd",
|
|
89
|
+
"args": ["mcp"]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
如需固定 antd 版本,在 `args` 数组中添加 `"--version", "5.20.0"`。
|
|
96
|
+
|
|
97
|
+
提供 7 个工具(`antd_list`、`antd_info`、`antd_doc`、`antd_demo`、`antd_token`、`antd_semantic`、`antd_changelog`)和 2 个提示词(`antd-expert`、`antd-page-generator`)。
|
|
98
|
+
|
|
78
99
|
支持 [Claude Code](https://claude.ai/code)、[Cursor](https://cursor.sh)、[Codex](https://openai.com/codex)、[Gemini CLI](https://github.com/google-gemini/gemini-cli) 等所有兼容 [skills](https://github.com/nicepkg/agent-skills) 协议的 Agent。
|
|
79
100
|
|
|
80
101
|
<br>
|
package/data/v4.json.gz
CHANGED
|
Binary file
|
package/data/v5.json.gz
CHANGED
|
Binary file
|
|
Binary file
|
package/data/v6.json.gz
CHANGED
|
Binary file
|