Skip to content

feat: 新增多版本知识查询与 v3→v4 迁移能力 - #2

Closed
alvinhui wants to merge 25 commits into
feat_v4.xfrom
feat/upgrade-skill
Closed

feat: 新增多版本知识查询与 v3→v4 迁移能力#2
alvinhui wants to merge 25 commits into
feat_v4.xfrom
feat/upgrade-skill

Conversation

@alvinhui

@alvinhui alvinhui commented Sep 7, 2026

Copy link
Copy Markdown
Owner

概述

为 NutUI React / Taro CLI 与配套 Skill 新增「多版本知识查询」与「v3 → v4 迁移」两项核心能力,并升级 CLI 版本至 v4.1.0。

主要变更

CLI 核心(nutui-react-cli-core)

  • 新增多版本知识查询:版本路由(version.ts)、版本配置(versions.config.mjs)、数据同步(sync.mjs)、元数据构建(build-meta.mjs)。
  • 新增 v3 → v4 迁移命令:migratemigrate-parsediffdiff-compute 及源码扫描工具(utils/scan.ts)。
  • MCP tools、data、format、types 等相应扩展。
  • 补充单元测试:diff-computemigrate-parsescanversion-routing(vitest)。

CLI 包(nutui-react-cli / nutui-react-taro-cli)

  • 版本对齐升级至 v4.1.0
  • 新增迁移 Skill:nutui-react-v3-to-v4nutui-react-taro-v3-to-v4(含中英 SKILL 文档与 README)。
  • 更新 prepare-data.mjscli.tstsup.config.ts 以支持新能力。

文档站点

  • 更新 ai-react / ai-taro 下的 CLI 与 MCP 文档(中英双语),补充多版本查询说明。

测试计划

  • pnpm --filter @nutui/nutui-react-cli-core test 全部通过
  • nutui-react-cli migrate / diff 在 v3 项目上能正确产出迁移建议
  • 多版本知识查询在指定不同版本时返回对应结果
  • nutui-react-v3-to-v4 / nutui-react-taro-v3-to-v4 Skill 在 IDE 中可正常触发
  • 文档站点 CLI / MCP 页面渲染正常,中英文一致

…th @nutui/nutui-react, introducing offline knowledge query capabilities and integrated MCP server for enhanced IDE support
…ncing CLI capabilities for component queries and IDE integration
…tUI React Taro, outlining phases and best practices for a successful transition
…nd NutUI React Taro, ensuring clarity on invoking commands with npx
…ying the handling of web-only APIs and their Taro equivalents
…ng clarity on component handling and props comparison
…umentation for improved readability and consistency
…ved clarity and completeness, including new command for local MCP server and refined usage instructions
…t Taro, enhancing knowledge query capabilities and installation instructions
…ntation to use GitHub repository for skills, enhancing clarity and accessibility
…n for multi-version support

- Updated package versions in pnpm-lock.yaml for '@types/react', '@types/react-dom', 'sass', and others.
- Enhanced README.md to include new global options for specifying NutUI version and improved usage examples.
- Updated CLI configuration to support multi-version snapshots and added relevant scripts for data preparation.
- Improved documentation clarity regarding version detection and usage instructions for the CLI.
@alvinhui

alvinhui commented Sep 7, 2026

Copy link
Copy Markdown
Owner Author

误创建,应向上游 jdf2e/nutui-react 提交,已改提至 jdf2e#3524

@alvinhui alvinhui closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant