@devflow-tools/plugin-vue 0.8.10 → 0.8.11

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.
Files changed (2) hide show
  1. package/README.md +30 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @devflow-tools/plugin-vue
2
2
 
3
- Vue 3 expert plugin for DevFlow bug diagnosis, Composition API, reactive debugging, and component refactoring.
3
+ Vue 3 专家插件Bug 诊断、Composition API、响应式调试、组件重构。
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,13 +8,36 @@ Vue 3 expert plugin for DevFlow — bug diagnosis, Composition API, reactive deb
8
8
  npm install @devflow-tools/plugin-vue
9
9
  ```
10
10
 
11
- ## Workflows
11
+ ## MCP Tools
12
12
 
13
- | Workflow | Description |
14
- |----------|-------------|
15
- | `vue:debug-reactivity` | Trace reactive data flow to find issues |
16
- | `vue:diagnose-bug` | Diagnose Vue bugs from error to fix |
17
- | `vue:new-component` | Create Vue 3 components (setup + types + tests) |
13
+ | Tool | 说明 | 关键参数 |
14
+ |------|------|---------|
15
+ | `vue_diagnose_bug` | Bug 诊断:报错定位 响应式排查 修复验证 | `projectRoot`, `errorMessage`, `stackTrace` |
16
+ | `vue_new_component` | 新建 Vue 3 组件(`<script setup>` + TypeScript + 测试) | `projectRoot`, `componentName` |
17
+ | `vue_debug_reactivity` | 响应式调试:追踪数据流 定位问题 修复 | `projectRoot`, `targetFile` |
18
+
19
+ ## Knowledge Sources
20
+
21
+ | 来源 | URL | SPA |
22
+ |------|-----|-----|
23
+ | Vue 3 官方文档 | https://vuejs.org/guide/introduction | No |
24
+ | Pinia 状态管理 | https://pinia.vuejs.org | No |
25
+
26
+ ## Memory
27
+
28
+ 插件自动注入以下最佳实践:
29
+ - `<script setup>` 优先于 Options API
30
+ - `ref` vs `reactive` 选择指南(基本类型用 ref,对象用 reactive)
31
+ - `defineProps`/`defineEmits` 类型安全模式
32
+ - 组合函数(composables)以 `use` 开头,返回 ref/reactive
33
+ - `watch`/`watchEffect` 自动清理避免内存泄漏
34
+
35
+ ## Usage
36
+
37
+ ```bash
38
+ # 在 Claude Code 中使用
39
+ /devflow:vue 检查组件响应式问题
40
+ ```
18
41
 
19
42
  ## License
20
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/plugin-vue",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "ac4f93d6a52fa40b4126b514e899eee581f8f46e"
29
+ "gitHead": "a0a0b61377aa88ebbd380f50a5d532f63175ef45"
30
30
  }