Commit Graph

49 Commits

Author SHA1 Message Date
github-actions[bot] 6925989ad7 data: sync antd metadata (v6@6.5.0) 2026-06-27 15:57:49 +00:00
github-actions[bot] acd7275a99 data: sync antd metadata (v6@6.4.5) 2026-06-22 06:26:36 +00:00
dependabot[bot] 7e21b92b6f build(deps): bump the dependencies group with 5 updates (#175)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-22 10:03:35 +08:00
afc163 e6e07f47e1 fix(deps): resolve dependabot security alerts (#167) 2026-06-20 23:11:07 +08:00
dependabot[bot] f3955fea12 build(deps-dev): bump hono from 4.12.23 to 4.12.26 (#160)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-20 21:05:10 +08:00
dependabot[bot] ede23a8dc4 build(deps): bump the dependencies group with 3 updates (#157)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-15 13:22:37 +08:00
github-actions[bot] 7ced20461f data: sync antd metadata (v6@6.4.4) 2026-06-12 11:26:30 +00:00
dependabot[bot] c7d6b9b064 build(deps): bump the dependencies group with 5 updates (#149)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 12:01:50 +08:00
dependabot[bot] 56240080f9 build(deps-dev): bump hono from 4.12.18 to 4.12.23 (#148)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-05 09:49:13 +08:00
dependabot[bot] 0fb8448c43 build(deps): bump the dependencies group with 3 updates (#130)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 14:28:38 +08:00
dependabot[bot] 93e0390b2a build(deps): bump the dependencies group with 6 updates (#119)
Signed-off-by: dependabot[bot] <support@github.com>
2026-05-25 11:06:38 +08:00
dependabot[bot] 64beb0ab4c build(deps): bump the dependencies group with 3 updates (#117)
Signed-off-by: dependabot[bot] <support@github.com>
2026-05-19 11:12:56 +08:00
github-actions[bot] 6cbe2a927c data: sync antd metadata (v6@6.4.3) 2026-05-18 09:56:01 +00:00
afc163 dd800d4dc5 fix: replace hand-rolled utilities with npm packages and extract shared helpers (#109)
* fix: replace hand-rolled utilities with npm packages and extract shared helpers

- Replace custom semver parser (satisfies/compare/valid) with the `semver`
  package, fixing OR-range (||) peerDep false positives (e.g. react-slick)
  and incorrect ^0.x minor-locking behavior
- Replace custom Levenshtein distance with `fast-levenshtein`
- Replace hand-rolled recursive directory walker with `fast-glob` for
  better symlink, ignore, and permission handling
- Fix CJK character width in table formatting using `string-width`
  (e.g. `antd list --lang zh` now aligns columns correctly)
- Extract shared `fetchWithTimeout` and `fetchFirstJson` helpers from
  bug-versions.ts and update-check.ts to eliminate duplicated
  AbortController+setTimeout+Promise.any patterns
- Consolidate `readJson` usage: version.ts and loader.ts now use the
  existing `readJson` helper from scan.ts instead of inlining
  readFileSync+JSON.parse

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

* fix: address PR review feedback

- Move fast-glob and fast-levenshtein from devDependencies to dependencies
  (they are runtime imports, not build-time)
- Restore Promise.any parallel racing in update-check.ts (was regressed
  to sequential fallback)
- Change satisfies() null coalescing from ?? true to ?? false; add
  includePrerelease flag for correctness
- Derive glob ignore patterns from SKIP_DIRS to avoid duplication

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

* fix: address code review feedback

- Fix ESM import of fast-glob (use default import `fg` instead of named
  `globSync` — CJS interop in ESM bundle)
- Add try/catch around globSync in collectFiles for permission errors
- Add trailing newlines to fetch.ts, bug-versions.ts, update-check.ts
- Move fast-glob and fast-levenshtein to dependencies (runtime imports)
- Restore Promise.any parallel racing in update-check.ts
- Add test for malformed range behavior with semver
- Re-add permission error test for collectFiles

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

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 10:01:48 +08:00
github-actions[bot] 3255e46714 data: sync antd metadata (v6@6.4.2) 2026-05-14 15:43:49 +00:00
github-actions[bot] ea470f7ac8 data: sync antd metadata (v6@6.4.1) 2026-05-14 11:20:42 +00:00
github-actions[bot] 5dfbf911a6 data: sync antd metadata (v4@4.24.16, v5@5.29.3, v6@6.4.0) 2026-05-14 07:34:04 +00:00
Alex Zhu 8325c448d6 fix(deps): resolve 7 Dependabot security alerts (#105)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 14:20:38 +08:00
dependabot[bot] 98a505260c build(deps): bump the dependencies group with 5 updates (#103)
* build(deps): bump the dependencies group with 5 updates

Bumps the dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [oxc-parser](https://github.com/oxc-project/oxc/tree/HEAD/napi/parser) | `0.123.0` | `0.130.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.5.0` | `25.7.0` |
| [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) | `4.1.2` | `4.1.6` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.9.3` | `6.0.3` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `4.1.2` | `4.1.6` |


Updates `oxc-parser` from 0.123.0 to 0.130.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/napi/parser/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/crates_v0.130.0/napi/parser)

Updates `@types/node` from 25.5.0 to 25.7.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@vitest/coverage-v8` from 4.1.2 to 4.1.6
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.6/packages/coverage-v8)

Updates `typescript` from 5.9.3 to 6.0.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.3)

Updates `vitest` from 4.1.2 to 4.1.6
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.6/packages/vitest)

---
updated-dependencies:
- dependency-name: oxc-parser
  dependency-version: 0.130.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@types/node"
  dependency-version: 25.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 4.1.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: vitest
  dependency-version: 4.1.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: add ignoreDeprecations for TypeScript 6.0 compatibility

TypeScript 6.0 deprecated the `baseUrl` option. Since tsup's DTS build
internally sets `baseUrl: compilerOptions.baseUrl || "."`, the build
fails with TS5101 when using TS 6.0+. Add `"ignoreDeprecations": "6.0"`
to suppress this deprecation error.

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 16:14:43 +08:00
𝑾𝒖𝒙𝒉 daa762f9e6 Refactor configuration and caching with bug version checks (#89) 2026-04-28 11:51:06 +08:00
github-actions[bot] 0e59e57b08 data: sync antd metadata (v4@4.24.16, v5@5.29.3, v6@6.3.7) 2026-04-27 07:28:10 +00:00
github-actions[bot] 52e2cb79af data: sync antd metadata (v4@4.24.16, v5@5.29.3, v6@6.3.6) 2026-04-17 10:55:29 +00: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
github-actions[bot] 6021d19668 data: sync antd metadata (v6@6.3.5) 2026-03-30 09:01:16 +00:00
afc163 9db8c61955 build: bundle envinfo into dist and move to devDependencies
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 14:07:22 +08:00
afc163 81b6b50ea5 chore: add envinfo dependency for browser detection 2026-03-27 14:07:22 +08:00
afc163 bcc6305232 build: bundle dependencies to eliminate 180+ transitive deps (#64)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 16:58:38 +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 9154fc8aa6 chore: bump version to 6.3.5-beta.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 18:41:53 +08:00
afc163 6fdfae6fe8 refactor(lint): rewrite all rules with oxc-parser AST analysis (#40) 2026-03-25 17:36:21 +08:00
afc163 850da8b6b5 feat: add @modelcontextprotocol/sdk dependency 2026-03-25 10:42:23 +08:00
github-actions[bot] eb68a54bff data: sync antd metadata (v4@4.24.16, v5@5.29.3, v6@6.3.4) 2026-03-24 12:57:00 +00:00
afc163 617d0a2e1a perf: gzip data files at pack time to reduce npm package size by 81% (#28)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:36:35 +08: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
github-actions[bot] 124847fa1b data: sync antd metadata (v4@4.24.16, v5@5.29.3, v6@6.3.3) 2026-03-20 08:56:43 +00:00
afc163 00324c695a chore: bump version to 0.3.0 2026-03-19 18:36:57 +08:00
afc163 322cc5dabb chore: remove semantic-release, publish only on antd data sync (#17)
* release: v0.2.0

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

* docs: add Multi-Format Output as a feature in README

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

* docs: remove redundant Multi-Format Output feature entry

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

* chore: remove semantic-release, publish only on antd data sync

- Delete release.yml and .releaserc.json
- Uninstall semantic-release and all related plugins
- Update sync.yml to build, test, and publish when antd data changes
- CLI version now tracks antd v6 version directly

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 18:35:51 +08:00
semantic-release-bot cd8cf5d329 chore(release): 6.4.1 [skip ci] 2026-03-19 10:23:45 +00:00
semantic-release-bot 66e1b1d44b chore(release): 6.4.0 [skip ci] 2026-03-19 02:07:47 +00:00
semantic-release-bot 84f668d0b5 chore(release): 6.3.4 [skip ci] 2026-03-17 12:11:55 +00:00
afc163 4498168d0a ci: migrate to semantic-release for automated versioning and publishing (#14) 2026-03-17 20:11:22 +08:00
afc163 17b9e0a6f2 fix: show nameZh and since in info command output (#5)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 19:14:26 +08:00
github-actions[bot] 02314753e3 release: v6.3.3 2026-03-17 09:00:41 +00:00
afc163 0065e1eef3 chore: fix package.json metadata (npm pkg fix)
- bin path: ./dist/index.js → dist/index.js
- repository.url: add git+ prefix and .git suffix
- version bump to 0.1.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 11:03:40 +08:00
afc163 a6da9bf8df chore: pre-publish fixes
- Add prepublishOnly script to always build before publish
- Add publishConfig.access=public and homepage field
- Inject CLI_VERSION at build time via tsup define (no longer hardcoded)
- sync.yml: max-parallel=1 to avoid concurrent push conflicts
- sync.yml: expand publish detection window from 10min to 24h
- README: document -V / --cli-version flag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 21:00:51 +08:00
afc163 8547d793f3 docs: improve CLAUDE.md with architecture, data flow, and key module details
Also fix printError to send JSON errors to stderr, add version-order
validation in changelog diff mode, harden fuzzyMatch with empty-candidates
guard, and expand test coverage for these cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 17:14:02 +08:00
afc163 21d75b49e4 feat: add auto-extraction scripts and GitHub Actions sync workflow
Add scripts/extract.ts pipeline that extracts antd metadata (components,
props, demos, tokens, semantic, changelog, FAQ) from source. Add daily
GitHub Actions workflow to detect new antd releases and auto-publish.
CLI version now aligns with antd version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 16:24:03 +08:00
afc163 fa6166a755 Simplify data strategy: bundle metadata in CLI, remove --no-cache
- Remove @ant-design/metadata dependency; all data is bundled in data/
- Rename sample-data/ to data/ and update package.json files field
- Remove --no-cache flag from CLI and all command implementations
- Simplify loadMetadata() to read directly from bundled JSON files
- Update spec.md to reflect bundled data strategy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 00:09:33 +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