{"_id":"@cosco-team/ai-kit-vue","_rev":"3-6040a99c6269d976203a2acdc7653f57","name":"@cosco-team/ai-kit-vue","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@cosco-team/ai-kit-vue","version":"1.0.0","keywords":["ai","cursor","vue","element-plus","ai-kit"],"author":{"name":"zhanglichen"},"license":"MIT","_id":"@cosco-team/ai-kit-vue@1.0.0","maintainers":[{"name":"zhanglichen","email":"namelichen@126.com"}],"homepage":"https://github.com/zhanglichen/ai-kit#readme","bugs":{"url":"https://github.com/zhanglichen/ai-kit/issues"},"bin":{"ai-kit-vue":"bin/ai-kit-vue.js"},"dist":{"shasum":"14bd8bf569e06f9edafdcf5af2da5a887f28bb13","tarball":"https://registry.npmjs.org/@cosco-team/ai-kit-vue/-/ai-kit-vue-1.0.0.tgz","fileCount":10,"integrity":"sha512-KCv8YkZVC9YUK8rQ6wAiE0nJFbFTztLpF6o+wYLrf+fqPuNg08Rft/ctrGU94gYdhpSke18zSQT6/7qthGBs8g==","signatures":[{"sig":"MEUCIBlqTFe0biKa41d5fV4lZSEnMaw3cIjHmfJghwVQW3oXAiEA4Wm/SHOh2eNMxBOR7uHPLkz4sdC9hn1QnhgNoDLupSE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12579},"type":"commonjs","engines":{"node":">=18"},"scripts":{"test:local":"node bin/ai-kit-vue.js init --yes --dry-run"},"_npmUser":{"name":"zhanglichen","email":"namelichen@126.com"},"repository":{"url":"git+https://github.com/zhanglichen/ai-kit.git","type":"git","directory":"packages/ai-kit-vue"},"_npmVersion":"10.9.3","description":"Vue 3 + Element Plus extension for @cosco-team/ai-kit — Cursor rules and component governance.","directories":{},"_nodeVersion":"22.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"@cosco-team/ai-kit":">=1.0.0"},"peerDependenciesMeta":{"@cosco-team/ai-kit":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-kit-vue_1.0.0_1779418632637_0.4536042493063468","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@cosco-team/ai-kit-vue","version":"2.0.0","keywords":["ai","cursor","vue","vue2","vue3","element-plus","element-ui","ai-kit"],"author":{"name":"zhanglichen"},"license":"MIT","_id":"@cosco-team/ai-kit-vue@2.0.0","maintainers":[{"name":"zhanglichen","email":"namelichen@126.com"}],"homepage":"https://github.com/zhanglichen/ai-kit#readme","bugs":{"url":"https://github.com/zhanglichen/ai-kit/issues"},"bin":{"ai-kit-vue":"bin/ai-kit-vue.js"},"dist":{"shasum":"3f5f615b478cdb84075257edce216a415f0f131d","tarball":"https://registry.npmjs.org/@cosco-team/ai-kit-vue/-/ai-kit-vue-2.0.0.tgz","fileCount":16,"integrity":"sha512-vFCcd2OVTiO7XLj6fHcj5YUikLwP3UTo8DESDjshgBSwuDYaq368Cx87Xco/chwRCUQRoYEFuoAnjdpxBcIcQA==","signatures":[{"sig":"MEYCIQDi/ruC81PQvYezREXD8+kX1rfQWzW3ItkKW3dUlnEtKAIhALoB9AdQMsyH2QP/2Xg7kw3it0loDD3RvCNZiqhFJV+9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29054},"type":"commonjs","engines":{"node":">=18"},"scripts":{"test:local":"node bin/ai-kit-vue.js init --yes --dry-run"},"_npmUser":{"name":"zhanglichen","email":"namelichen@126.com"},"repository":{"url":"git+https://github.com/zhanglichen/ai-kit.git","type":"git","directory":"packages/ai-kit-vue"},"_npmVersion":"10.9.3","description":"Vue 2 & Vue 3 extension for @cosco-team/ai-kit — Auto-detect Vue version, deploy Cursor rules and component governance.","directories":{},"_nodeVersion":"22.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"@cosco-team/ai-kit":">=1.0.0"},"peerDependenciesMeta":{"@cosco-team/ai-kit":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-kit-vue_2.0.0_1779430893151_0.5363423960023899","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@cosco-team/ai-kit-vue","version":"3.0.0","description":"Vue 2 & Vue 3 extension for @cosco-team/ai-kit — Auto-detect Vue version & UI libraries & project architecture, deploy Cursor rules with interactive wizard.","license":"MIT","author":{"name":"zhanglichen"},"type":"commonjs","bin":{"ai-kit-vue":"bin/ai-kit-vue.js"},"keywords":["ai","cursor","vue","vue2","vue3","element-plus","element-ui","ant-design-vue","naive-ui","vuetify","echarts","pinia","vuex","monorepo","micro-frontend","ai-kit"],"engines":{"node":">=18"},"peerDependencies":{"@cosco-team/ai-kit":">=1.0.0"},"peerDependenciesMeta":{"@cosco-team/ai-kit":{"optional":true}},"scripts":{"test:local":"node bin/ai-kit-vue.js init --yes --dry-run"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/zhanglichen/ai-kit.git","directory":"packages/ai-kit-vue"},"_id":"@cosco-team/ai-kit-vue@3.0.0","bugs":{"url":"https://github.com/zhanglichen/ai-kit/issues"},"homepage":"https://github.com/zhanglichen/ai-kit#readme","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-dOGkkIXqB44U+vISBPeJCtYtlMVnDHq57gZIKQEjMA842/Jb/9ijQncDzR/wrz9RSh5OmRsvJXGjIfE8MhEslQ==","shasum":"45da00f54ab460f626c9d4dc8a8cbbad48b0dd0f","tarball":"https://registry.npmjs.org/@cosco-team/ai-kit-vue/-/ai-kit-vue-3.0.0.tgz","fileCount":28,"unpackedSize":72644,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCqzvePp5TNP0P7PL5qqWV4pWM6a18dhJpL4bgyypVQbQIgNvrHo8i8eHWW9Mn48a8dUjGxDx3xTctsE1jlBIdjxck="}]},"_npmUser":{"name":"zhanglichen","email":"namelichen@126.com"},"directories":{},"maintainers":[{"name":"zhanglichen","email":"namelichen@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-kit-vue_3.0.0_1779431809209_0.7061805118340678"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-22T02:57:12.153Z","modified":"2026-05-22T06:36:49.550Z","1.0.0":"2026-05-22T02:57:12.788Z","2.0.0":"2026-05-22T06:21:33.279Z","3.0.0":"2026-05-22T06:36:49.383Z"},"bugs":{"url":"https://github.com/zhanglichen/ai-kit/issues"},"author":{"name":"zhanglichen"},"license":"MIT","homepage":"https://github.com/zhanglichen/ai-kit#readme","keywords":["ai","cursor","vue","vue2","vue3","element-plus","element-ui","ant-design-vue","naive-ui","vuetify","echarts","pinia","vuex","monorepo","micro-frontend","ai-kit"],"repository":{"type":"git","url":"git+https://github.com/zhanglichen/ai-kit.git","directory":"packages/ai-kit-vue"},"description":"Vue 2 & Vue 3 extension for @cosco-team/ai-kit — Auto-detect Vue version & UI libraries & project architecture, deploy Cursor rules with interactive wizard.","maintainers":[{"name":"zhanglichen","email":"namelichen@126.com"}],"readme":"# @team/ai-kit-vue\r\n\r\nVue 规则扩展包 — **自动识别 Vue 版本 / UI 组件库 / 项目架构**，配合 `@team/ai-kit` 使用。\r\n\r\n**npm 地址**：https://www.npmjs.com/package/@team/ai-kit-vue\r\n\r\n## v3.0 新特性\r\n\r\n- ✅ **Vue 2 / Vue 3 自动检测** — 读取 `package.json` 中 `vue` 依赖的主版本号\r\n- ✅ **UI 组件库自动检测** — Element Plus / Element UI / Ant Design Vue / Naive UI / Vuetify 等\r\n- ✅ **图表库检测** — ECharts / vue-echarts\r\n- ✅ **工具库检测** — Pinia / Vuex / Vue Router / Axios / Vue I18n\r\n- ✅ **项目架构识别** — Single / Monorepo / 微前端 / 多模块\r\n- ✅ **交互式向导** — 展示检测结果 → 手动添加/删除库 → 确认部署\r\n- ✅ **支持并存** — Vue + Element Plus + Naive UI + ECharts 可共存\r\n- ✅ **`--profile` 参数** — 强制指定 `vue2` 或 `vue3`\r\n- ✅ **`--yes` 参数** — 非交互模式，自动使用检测结果\r\n\r\n## 安装使用\r\n\r\n```bash\r\n# 先安装核心套件\r\nnpx @team/ai-kit init --yes\r\n\r\n# 追加 Vue 规则（交互式向导，自动检测并建议）\r\nnpx @team/ai-kit-vue init\r\n\r\n# 非交互模式（自动检测并部署）\r\nnpx @team/ai-kit-vue init --yes\r\n\r\n# 强制指定 Vue 版本\r\nnpx @team/ai-kit-vue init --yes --profile vue2\r\nnpx @team/ai-kit-vue init --yes --profile vue3\r\n```\r\n\r\n## 自动检测\r\n\r\n执行 `ai-kit-vue init` 时会自动扫描 `package.json`\r\n\r\n### Vue 版本检测\r\n\r\n| 检测 | 匹配 Profile |\r\n|------|-------------|\r\n| `\"vue\": \"^3.x\"` | `vue3` |\r\n| `\"vue\": \"^2.x\"` | `vue2` |\r\n| `\"nuxt\": \"^3.x\"` | `vue3` (通过 Nuxt 推断) |\r\n| 无 `vue` 依赖 | 报错退出，可用 `--profile` 强制指定 |\r\n\r\n### 组件库检测（自动识别 10+ 种）\r\n\r\n| 库 | npm 包名 | 兼容版本 |\r\n|----|---------|---------|\r\n| **Element Plus** | `element-plus` | Vue 3 |\r\n| **Element UI** | `element-ui` | Vue 2 |\r\n| **Ant Design Vue** | `ant-design-vue` | Vue 2 / Vue 3 (自动匹配) |\r\n| **Naive UI** | `naive-ui` | Vue 3 |\r\n| **Vuetify** | `vuetify` | Vue 2 / Vue 3 (自动匹配) |\r\n| **View Design** | `view-design` | Vue 2 |\r\n| **TDesign** | `tdesign-vue` / `tdesign-vue-next` | Vue 2 / Vue 3 |\r\n| **PrimeVue** | `primevue` | Vue 2 / Vue 3 |\r\n| **ECharts** | `echarts` / `vue-echarts` | Vue 2 / Vue 3 |\r\n| **Pinia** | `pinia` | Vue 3 |\r\n| **Vuex** | `vuex` | Vue 2 / Vue 3 |\r\n| **Vue Router** | `vue-router` | Vue 2 / Vue 3 (自动匹配) |\r\n\r\n### 项目架构识别\r\n\r\n| 条件 | 检测为 |\r\n|------|-------|\r\n| 有 `pnpm-workspace.yaml` / `lerna.json` / `workspaces` 字段 | Monorepo |\r\n| 有 `qiankun` / `single-spa` / `wujie` / `micro-app` | 微前端 |\r\n| 有 `modules/` / `packages/` / `apps/` 目录含多个子目录 | 多模块 |\r\n| 其他 | 单项目 |\r\n\r\n## 交互式向导\r\n\r\n```\r\n╔═══════════════════════════════════════════════╗\r\n║       @team/ai-kit-vue v3.0.0              ║\r\n║       Vue 版本自动检测 + 组件库向导部署      ║\r\n╚═══════════════════════════════════════════════╝\r\n\r\n📋 检测报告\r\n──────────────────────────────────────────────────\r\n  ✓ Vue 版本:    vue3 (^3.4.0)\r\n  ✓ 项目架构:    单项目 (Single Package)\r\n\r\n  ✓ 已检测到组件库:\r\n    ● Element Plus (^1.3.0)\r\n    ● ECharts (^5.4.0)\r\n\r\n? 是否要添加其他组件库/工具库? (y/N):\r\n```\r\n\r\n## 部署内容\r\n\r\n按检测结果动态组合，例如 Vue 3 + Element Plus + ECharts + Monorepo：\r\n\r\n```\r\n.cursor/rules/\r\n├── vue-development.mdc           # Vue 3 Composition API\r\n├── vue-component-governance.mdc  # 组件治理\r\n├── element-plus.mdc              # Element Plus 规范\r\n├── echarts.mdc                   # ECharts 图表规范\r\n└── monorepo.mdc                  # Monorepo 规范\r\n\r\ndocs/spec/05-vue-conventions.md\r\nprompts/vue-component.md\r\n```\r\n\r\n## 从 v2.x 迁移\r\n\r\n```bash\r\nnpx @team/ai-kit-vue@latest init --yes\r\n```\r\n\r\n旧的模板文件会自动备份到 `.ai-kit-backups/`。\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}