@ant-design/cli 6.3.6 → 6.4.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 CHANGED
@@ -26,7 +26,7 @@ Query component knowledge, analyze project usage, and guide migrations — fully
26
26
 
27
27
  ## 🤔 Why
28
28
 
29
- 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.
29
+ 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 v3 / v4 / v5 / v6**, bundled locally, queryable in milliseconds.
30
30
 
31
31
  ```bash
32
32
  npx skills add ant-design/ant-design-cli # install as an agent skill
@@ -37,7 +37,7 @@ npx skills add ant-design/ant-design-cli # install as an agent skill
37
37
  ## ✨ Highlights
38
38
 
39
39
  - 📦 **Fully offline** — All metadata ships with the package. No network calls, no latency, no API keys.
40
- - 🎯 **Version-accurate** — 55+ per-minor snapshots across v4/v5/v6. Query the exact API surface of `antd@5.3.0`, not just "latest v5".
40
+ - 🎯 **Version-accurate** — 55+ per-minor snapshots across v3/v4/v5/v6. Query the exact API surface of `antd@5.3.0`, not just "latest v5".
41
41
  - 🤖 **Agent-optimized** — `--format json` on every command. Structured errors with codes and suggestions. Clean stdout/stderr separation.
42
42
  - 🌍 **Bilingual** — Every component name, description, and doc has both English and Chinese. Switch with `--lang zh`.
43
43
  - 🔮 **Smart matching** — Typo `Buttn`? The CLI suggests `Button` using Levenshtein distance, with first-letter preference.
@@ -115,6 +115,7 @@ antd doctor # Diagnose project issues
115
115
  antd env # Collect env info for bug reports
116
116
  antd usage ./src # Analyze antd imports in project
117
117
  antd lint ./src # Check deprecated APIs & best practices
118
+ antd migrate 3 4 # v3 → v4 migration guide
118
119
  antd migrate 4 5 --apply ./src # Agent-ready migration prompt
119
120
  ```
120
121
 
@@ -349,9 +350,10 @@ Use `--antd-alias <source>` to treat additional package names as aliases of `ant
349
350
 
350
351
  ### `antd migrate <from> <to>`
351
352
 
352
- v4→v5 covers 25+ migration steps; v5→v6 covers 30+. Each step includes component name, breaking flag, search pattern, and before/after code.
353
+ v3→v4 covers 15+ migration steps; v4→v5 covers 25+ migration steps; v5→v6 covers 30+. Each step includes component name, breaking flag, search pattern, and before/after code.
353
354
 
354
355
  ```bash
356
+ antd migrate 3 4 # v3 → v4 migration
355
357
  antd migrate 4 5 # full checklist
356
358
  antd migrate 4 5 --component Select # component-specific
357
359
  antd migrate 4 5 --apply ./src # generate agent migration prompt
package/README.zh-CN.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  ## 🤔 为什么
28
28
 
29
- Code Agent(Claude Code、Codex、Gemini CLI)在拥有即时 API 数据访问能力时,能写出更好的 antd 代码。这个 CLI 正是为此而生 — **antd v4 / v5 / v6 的每个 Prop、Token、Demo 和 Changelog 条目**,本地打包,毫秒级查询。
29
+ Code Agent(Claude Code、Codex、Gemini CLI)在拥有即时 API 数据访问能力时,能写出更好的 antd 代码。这个 CLI 正是为此而生 — **antd v3 / v4 / v5 / v6 的每个 Prop、Token、Demo 和 Changelog 条目**,本地打包,毫秒级查询。
30
30
 
31
31
  ```bash
32
32
  npx skills add ant-design/ant-design-cli # 安装为 Agent Skill
@@ -37,7 +37,7 @@ npx skills add ant-design/ant-design-cli # 安装为 Agent Skill
37
37
  ## ✨ 亮点
38
38
 
39
39
  - 📦 **完全离线** — 所有元数据随包安装,无需网络请求,无延迟,无 API Key。
40
- - 🎯 **版本精确** — 跨 v4/v5/v6 的 55+ 小版本快照。查询 `antd@5.3.0` 的精确 API,而非仅 "最新 v5"。
40
+ - 🎯 **版本精确** — 跨 v3/v4/v5/v6 的 55+ 小版本快照。查询 `antd@5.3.0` 的精确 API,而非仅 "最新 v5"。
41
41
  - 🤖 **Agent 优化** — 所有命令支持 `--format json`。结构化错误码与修复建议。stdout/stderr 严格分离。
42
42
  - 🌍 **双语输出** — 每个组件名、描述和文档均有中英文。通过 `--lang zh` 切换。
43
43
  - 🔮 **智能纠错** — 输入 `Buttn`?CLI 基于 Levenshtein 距离建议 `Button`,优先匹配首字母相同的候选。
@@ -115,6 +115,7 @@ antd doctor # 诊断项目配置问题
115
115
  antd env # 收集环境信息用于 Bug 报告
116
116
  antd usage ./src # 分析项目中的 antd 导入
117
117
  antd lint ./src # 检查废弃 API 和最佳实践
118
+ antd migrate 3 4 # v3 → v4 迁移指南
118
119
  antd migrate 4 5 --apply ./src # 生成 Agent 迁移提示
119
120
  ```
120
121
 
@@ -349,9 +350,10 @@ antd lint ./src --only deprecated --format json --antd-alias @shared-components
349
350
 
350
351
  ### `antd migrate <from> <to>`
351
352
 
352
- v4→v5 包含 25+ 迁移步骤,v5→v6 包含 30+。每个步骤包含组件名、破坏性标记、搜索正则和前后代码对比。
353
+ v3→v4 包含 15+ 迁移步骤,v4→v5 包含 25+ 迁移步骤,v5→v6 包含 30+。每个步骤包含组件名、破坏性标记、搜索正则和前后代码对比。
353
354
 
354
355
  ```bash
356
+ antd migrate 3 4 # v3 → v4 迁移
355
357
  antd migrate 4 5 # 完整迁移清单
356
358
  antd migrate 4 5 --component Select # 指定组件
357
359
  antd migrate 4 5 --apply ./src # 生成 Agent 迁移提示
Binary file
Binary file
package/data/v6.json.gz CHANGED
Binary file
@@ -62,9 +62,10 @@
62
62
  "5.9": "5.9.4"
63
63
  },
64
64
  "v6": {
65
- "6.3": "6.3.6",
65
+ "6.3": "6.3.7",
66
66
  "6.0": "6.0.1",
67
67
  "6.1": "6.1.4",
68
- "6.2": "6.2.3"
68
+ "6.2": "6.2.3",
69
+ "6.4": "6.4.0"
69
70
  }
70
71
  }