Commit Graph

38 Commits

Author SHA1 Message Date
afc163 e64eb8e11a feat: 新增 antd setup 初始化命令 (#165) 2026-06-21 22:58:16 +08:00
afc163 b28de139b8 fix: keep doctor bug checks offline (#164) 2026-06-20 21:42:50 +08:00
afc163 bbab02a688 fix: show helpful message when antd mcp is run in a terminal (#154)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 19:08:22 +08:00
二货爱吃白萝卜 9e4e358e0f feat: add design.md command and antd_design_md MCP tool (#147)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 17:45:43 +08:00
afc163 bd87409de1 Update README.md 2026-06-03 23:50:15 +08:00
afc163 ccd4016c7b docs: add antd mcp and antd upgrade commands to README and SKILL docs (#124)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 10:52:45 +08:00
afc163 9ed398e047 docs: update README and SKILL for antd v3 support (#86)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 19:33:32 +08:00
afc163 eca9f6165e fix: opt-out auto bug reporting in SKILL.md and MCP prompt (#85)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 19:19:29 +08:00
高艳兵 13e6448541 feat: support configurable lint import sources (#81)
* feat: support configurable lint import sources

Allow `antd lint` to recognize additional wrapper import roots via `--import-source` while keeping the default antd-only behavior unchanged.

* fix: preserve lint wildcard import checks for import-source subpaths

* fix: align lint import-source wildcard checks

* refactor: rename lint import-source option to antd-alias

* docs: document antd-alias in README files
2026-04-13 16:36:53 +08:00
afc163 0a3b0e3b5f chore: upgrade dependencies (#76)
* chore: upgrade dependencies

- @modelcontextprotocol/sdk: 1.27.1 → 1.29.0
- @vitest/coverage-v8: 3.2.4 → 4.1.2
- commander: 13.1.0 → 14.0.3
- oxc-parser: 0.121.0 → 0.123.0
- typescript: 5.7.0 → 5.9.3 (keep v5 for stability)
- vitest: 3.0.0 → 4.1.2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: update Quick Start with more commands

Add list, doc, env, usage commands to Quick Start examples.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: require Node >= 20 for Commander v14 compatibility

- Update engines.node from >=18.0.0 to >=20.0.0
- Update tsup build target from node18 to node20
- Update documentation (spec.md, CLAUDE.md)

Commander v14 requires Node >= 20.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 17:53:59 +08:00
afc163 65896953c6 docs: fix markdown lint issues and add missing format examples 2026-03-27 14:07:22 +08:00
afc163 ec6fab9e51 docs: add env command to README and README.zh-CN 2026-03-27 14:07:22 +08:00
Copilot 4a3a4c7785 ci: add Codecov coverage check and badge (#44)
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-03-26 13:36:00 +08:00
afc163 55966e3f3e Merge pull request #38 from ant-design/worktree-antd-mcp-server 2026-03-25 16:43:48 +08:00
afc163 a5014a6085 ci: add npm pack size detection workflow and badge (#39)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:28:40 +08:00
afc163 700b1846ad fix: address CI failure and PR review feedback
CI fix:
- Fix TS error: avoid passing interface type to Record<string, unknown> param

Review feedback addressed:
- toMcpResult: check error === true instead of just 'error' in data
- antd_changelog: reject partial v1/v2 with INVALID_ARGUMENT error
- list.ts: output [] for JSON when no components; keep category in JSON output
- prompts: add missing antd_changelog to tool workflow section
- semantic test: use Affix instead of duplicate Button test
- Add cross-version diff test and version-order validation test
- Add antd_semantic success test and partial v1/v2 test for MCP
- spec.md: "dedup" → "avoid duplicate calls"
- README: add note about --version flag for MCP server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:23:43 +08:00
afc163 f4b5798a5b docs: update skill, README, and CLAUDE.md for antd mcp command
- Add MCP server scenario to SKILL.md
- Update command count 13→14 in both READMEs
- Add MCP Server section to Agent Integration in both READMEs
- Add src/mcp/ to project structure in CLAUDE.md
- Fix TypeScript error: remove explicit McpResult type annotation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 11:59:34 +08:00
afc163 d8d582b052 docs: fix command count and update agent list in README and spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 19:40:24 +08:00
afc163 b660a1d750 docs: add agentic installation method to Agent Integration section
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:13:17 +08:00
afc163 c40732932d docs: move Agent Integration section after Install in READMEs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 12:23:17 +08:00
afc163 c488b9a653 docs: rewrite README and CHANGELOG for initial release (#24)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-03-24 11:34:37 +08:00
afc163 99e186ef76 docs: rewrite README and CHANGELOG for 6.3.3 (#23)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 11:22:19 +08:00
afc163 205324ac81 docs: update skill with auto-reporting, add bug commands to READMEs
- Skill: split into scenario 8 (antd bugs) and 9 (auto-report CLI issues)
- Agents now proactively report CLI issues when they notice wrong data
- README/README.zh-CN: add Issue Reporting section with bug/bug-cli docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 19:15:53 -07:00
afc163 e2f81c0624 docs: add agent skill file and installation guides (#19)
* docs: add bug fixes round 2 plan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: add agent skill file and update README with installation guides

Add docs/skill.md — a scenario-driven skill file that teaches code agents
when and how to use each @ant-design/cli command. Update both READMEs with
installation instructions for Claude Code, Cursor, Codex, and Gemini CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add Claude Code skill frontmatter and improve agent install guides

- Add YAML frontmatter to docs/skill.md (name, description, allowed-tools)
  so it works as a proper Claude Code skill when copied to .claude/skills/
- Update README install instructions: Claude Code uses skill directory,
  Cursor uses .mdc rule, Codex/Gemini append to their config files
- Remove redundant "When to Use" section (covered by frontmatter description)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: restructure skill to skills/ directory and simplify install guide

- Move docs/skill.md to skills/antd/SKILL.md (follows skills standard)
- Rename src/commands/diff.ts to changelog.ts (matches actual command name)
- Replace per-agent install guides with `npx skills add`
- Fix incorrect `antd changelog diff` and `antd diff` references
- Update package.json files field to include skills/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: restore CLI install instructions in README

Keep npm/pnpm/bun global install as the primary installation method,
with skill-based install as a supplementary option.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:59:39 +08:00
afc163 2743ff0401 docs: add doc command to spec/README and add missing tests (#16)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 18:23:04 +08:00
afc163 d1e27f5ec8 docs: remove redundant Multi-Format Output feature entry (#9)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 19:31:51 +08:00
afc163 4dfd125a0f docs: add Multi-Format Output as a feature (#6)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 19:24:22 +08:00
afc163 06ae3ca4ed docs: center title in README by moving h1 inside div align center
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 00:04:24 -07:00
afc163 4be396cbc5 docs: rewrite features table with accurate, specific descriptions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 11:07:50 +08:00
afc163 3d81d3dc53 docs: add emoji to features table in README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 11:05:02 +08:00
afc163 8b5cafce16 docs: beautify README and add Chinese README.zh-CN.md
- Add hero section with centered badges and language switcher
- Convert features list to table format
- Add Quick Start section
- Wrap example outputs in <details> collapsible blocks
- Add separators between commands for better readability
- Add "Use with AI Agents" section with CLAUDE.md snippet
- Add MIT license footer
- Add full Chinese translation (README.zh-CN.md)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 20:56:01 +08:00
afc163 dfe71c426e docs: move examples inline under each command in README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:40:56 +08:00
afc163 899d395bfa docs: add pnpm, bun, utoo install instructions to README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:40:07 +08:00
afc163 4066569ff4 Remove search command, rewrite CHANGELOG for 0.1.0
- Remove `antd search` command (low utility with simple string matching)
- Delete src/commands/search.ts and related tests
- Clean up references in spec.md, README.md, CLAUDE.md
- Rewrite CHANGELOG.md from user perspective with EN/ZH versions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:32:19 +08:00
afc163 0acab2adc5 data: populate real changelog from antd GitHub, fix accuracy issues
- Replace fabricated changelog entries with real data parsed from
  CHANGELOG.zh-CN.md (v4/v5/v6 branches)
  - v4: 158 versions (4.0.0–4.24.16), 1226 changes
  - v5: 170 versions (5.0.0–5.29.3), 1362 changes
  - v6: 14 versions (6.0.0–6.3.2), 188 changes

- Fix data inaccuracies in v5.json:
  - Add missing `ghost` prop to Button (deprecated since 5.22.0)
  - Remove duplicate/wrong changelog entries claiming Table `virtual`
    was added in 5.20.0 and 5.22.0 (it was added in 5.9.0)
  - Fix Input `count` changelog entry (was since 5.10.0, not 5.20.0)

- Fix changelog version routing bug in `diff.ts`: querying
  `antd changelog 6.3.2` now auto-detects major version from the
  version argument itself instead of always defaulting to v5

- Fix README: remove non-existent --no-cache flag, fix feature
  descriptions, add real CLI output examples, update version examples
  to use versions that actually exist in the bundled data

- Update tests to match real data (5.21.0 has Segmented not Button;
  use 5.99.99 for version-not-found test to ensure v5 routing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 01:38:52 +08:00
afc163 af4cb586d5 Add GitHub Actions CI workflow and README badges
- Add CI workflow (.github/workflows/ci.yml) with matrix for Node 18/20/22
- Add CI, npm version, and npm downloads badges to README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 23:56:00 +08:00
afc163 c5bf0ef7e6 Align implementation with spec and fill feature gaps
- Update spec.md to match implementation: rename structure→semantic,
  merge diff into changelog, remove bundle-impact, update command count
- Add doctor checks: theme config validity, babel-plugin-import detection
- Add lint rules: a11y (Image alt, Icon aria-label, Form.Item label),
  performance (Table rowKey, Select virtual, wildcard import)
- Remove bundle-impact command (incomplete, hardcoded data)
- Add v4 and v6 sample data for cross-version support
- Update README.md to reflect all changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:04:10 +08:00
afc163 4533158e74 Initial commit: @ant-design/cli project setup
CLI tool for Code Agents to query antd knowledge and analyze antd usage.
Includes design spec, README with all 13 commands, and project scaffolding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 22:19:44 +08:00