@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.
- package/README.md +30 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @devflow-tools/plugin-vue
|
|
2
2
|
|
|
3
|
-
Vue 3
|
|
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
|
-
##
|
|
11
|
+
## MCP Tools
|
|
12
12
|
|
|
13
|
-
|
|
|
14
|
-
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
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.
|
|
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": "
|
|
29
|
+
"gitHead": "a0a0b61377aa88ebbd380f50a5d532f63175ef45"
|
|
30
30
|
}
|