@devflow-tools/devflow 0.16.5 → 0.16.6
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/dist/dashboard/404.html +1 -1
- package/dist/dashboard/accuracy.html +1 -1
- package/dist/dashboard/accuracy.txt +1 -1
- package/dist/dashboard/benchmark.html +1 -1
- package/dist/dashboard/benchmark.txt +1 -1
- package/dist/dashboard/context.html +1 -1
- package/dist/dashboard/context.txt +1 -1
- package/dist/dashboard/doctor.html +1 -1
- package/dist/dashboard/doctor.txt +1 -1
- package/dist/dashboard/executions.html +1 -1
- package/dist/dashboard/executions.txt +1 -1
- package/dist/dashboard/graph.html +1 -1
- package/dist/dashboard/graph.txt +1 -1
- package/dist/dashboard/index.html +1 -1
- package/dist/dashboard/index.txt +1 -1
- package/dist/dashboard/knowledge.html +1 -1
- package/dist/dashboard/knowledge.txt +1 -1
- package/dist/dashboard/memory.html +1 -1
- package/dist/dashboard/memory.txt +1 -1
- package/dist/dashboard/replay.html +1 -1
- package/dist/dashboard/replay.txt +1 -1
- package/dist/dashboard/runs/_.html +1 -1
- package/dist/dashboard/runs/_.txt +1 -1
- package/dist/dashboard/runs.html +1 -1
- package/dist/dashboard/runs.txt +1 -1
- package/dist/dashboard/settings.html +1 -1
- package/dist/dashboard/settings.txt +1 -1
- package/dist/dashboard/timeline.html +1 -1
- package/dist/dashboard/timeline.txt +1 -1
- package/dist/dashboard/tool-metrics.html +1 -1
- package/dist/dashboard/tool-metrics.txt +1 -1
- package/dist/dashboard/workflows.html +1 -1
- package/dist/dashboard/workflows.txt +1 -1
- package/dist/hooks/hook-daemon.js +11 -11
- package/dist/hooks/post-tool-use-failure.js +1 -1
- package/dist/hooks/post-tool-use.js +3 -3
- package/dist/hooks/pre-compact.js +2 -2
- package/dist/hooks/pre-tool-use.js +1 -1
- package/dist/hooks/session-end.js +2 -2
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/dist/hooks/hook-daemon.js +11 -11
- package/dist/plugin/dist/hooks/post-tool-use-failure.js +1 -1
- package/dist/plugin/dist/hooks/post-tool-use.js +3 -3
- package/dist/plugin/dist/hooks/pre-compact.js +2 -2
- package/dist/plugin/dist/hooks/pre-tool-use.js +1 -1
- package/dist/plugin/dist/hooks/session-end.js +2 -2
- package/dist/plugin/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/plugin/dist/skills/devflow:react/SKILL.md +6 -16
- package/dist/plugin/package.json +7 -7
- package/dist/plugin/skills/react/SKILL.md +6 -16
- package/package.json +13 -13
- package/plugin-registry.json +29 -29
- /package/dist/dashboard/_next/static/{GZG2xsR50-1j8vTi6g2g0 → xNSXWGxbQQNrvH84gKSP1}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{GZG2xsR50-1j8vTi6g2g0 → xNSXWGxbQQNrvH84gKSP1}/_ssgManifest.js +0 -0
|
@@ -13,7 +13,7 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
13
13
|
|
|
14
14
|
**新功能开发:** 需要加组件或页面 → 先确认现有实现模式,再做影响范围评估,然后生成符合项目约定的组件/Hook/类型代码,最后通过类型检查和测试。
|
|
15
15
|
|
|
16
|
-
**性能卡顿:** 列表页滚动掉帧、输入响应慢 →
|
|
16
|
+
**性能卡顿:** 列表页滚动掉帧、输入响应慢 → Profiler 分析渲染次数和耗时,检查 memo/useMemo/useCallback 使用情况,检测不必要重渲染,生成优化方案并对比前后基准。
|
|
17
17
|
|
|
18
18
|
**Hooks 审查:** lint 警告、useEffect 循环触发 → 全量扫描所有 Hooks 调用位置,检查顶层调用规则、依赖数组完整性、清理函数缺失、反模式(渲染中创建组件、过大 useEffect),自动修复安全项。
|
|
19
19
|
|
|
@@ -26,10 +26,12 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
26
26
|
- 使用函数组件 + Hooks,不使用 Class 组件
|
|
27
27
|
- 每个文件只导出一个组件
|
|
28
28
|
- Props 使用 TypeScript interface 定义
|
|
29
|
-
- 仅在父组件重复渲染、props
|
|
29
|
+
- 仅在父组件重复渲染、props 稳定且渲染成本可观时评估 React.memo;它不会阻止组件自身 state 或 Context 更新
|
|
30
30
|
- 自定义 Hooks 命名以 use 开头
|
|
31
|
-
-
|
|
32
|
-
-
|
|
31
|
+
- 用运行时测量决定性能优化;内联 DOM style 默认低影响,requestAnimationFrame 没有采样策略时不是通用节流
|
|
32
|
+
- runtimeProfilingOccurred=false 时所有性能发现只能称为静态候选,不得标记 P0、声称卡顿/掉帧/CPU 热点或给出具体收益比例
|
|
33
|
+
- 性能报告必须分为工具发现、模型假设、需要运行时验证;工具返回 0 条发现不得表述为静态分析通过
|
|
34
|
+
- scannedFiles=0 表示目标定位失败,必须修正 filePath/componentName 后重试,不能基于空结果继续推断
|
|
33
35
|
- 遇到不确定的 API 时先查 React 官方文档再回答
|
|
34
36
|
- 修复 Bug 前先查 git log 找最近变更
|
|
35
37
|
- 生成代码后必须通过 TypeScript 类型检查
|
|
@@ -49,15 +51,3 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
49
51
|
| Hooks 审查: | 调用 MCP 工具 `react_review_hooks` |
|
|
50
52
|
| 组件拆分: | 调用 MCP 工具 `react_refactor_component` |
|
|
51
53
|
| 新建组件: | 调用 MCP 工具 `react_new_component` |
|
|
52
|
-
|
|
53
|
-
## 性能证据契约
|
|
54
|
-
|
|
55
|
-
`react_audit_performance` 返回静态候选,并通过 `runtimeProfilingOccurred` 明确说明是否执行过运行时 profiling。每条发现必须保留 `evidenceMode`、`detectionMethod`、`confidence`、`impact` 和 `limitations`,不得省略限制条件。
|
|
56
|
-
|
|
57
|
-
最终答复必须按以下三个标题分开陈述:
|
|
58
|
-
|
|
59
|
-
1. **工具发现**:只复述工具实际返回的证据、位置和限制,不扩写为已测事实。
|
|
60
|
-
2. **模型假设**:明确标注基于代码上下文的推断,不与工具发现混写。
|
|
61
|
-
3. **需要运行时验证**:列出复现场景、Profiler/trace/benchmark 方法和待采集指标。
|
|
62
|
-
|
|
63
|
-
没有运行时测量时,不得把任何静态发现标为 P0,不得声称已观察到 jank/卡顿或 CPU 影响,也不得称其为性能瓶颈。只有包含场景、指标、数值和单位的 Profiler、Performance trace 或 benchmark 结果,才能支持这些结论。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/devflow",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DevFlow - Developer Intelligence Platform (Distribution Package)",
|
|
6
6
|
"bin": {
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@colbymchenry/codegraph": "^1.1.1",
|
|
19
|
-
"@devflow-tools/adapters": "0.16.
|
|
20
|
-
"@devflow-tools/benchmark": "0.16.
|
|
21
|
-
"@devflow-tools/context-engine": "0.16.
|
|
22
|
-
"@devflow-tools/database": "0.16.
|
|
23
|
-
"@devflow-tools/knowledge-engine": "0.16.
|
|
24
|
-
"@devflow-tools/mcp-server": "0.16.
|
|
25
|
-
"@devflow-tools/memory-engine": "0.16.
|
|
26
|
-
"@devflow-tools/sdk": "0.16.
|
|
27
|
-
"@devflow-tools/server": "0.16.
|
|
28
|
-
"@devflow-tools/telemetry": "0.16.
|
|
29
|
-
"@devflow-tools/workflow-engine": "0.16.
|
|
19
|
+
"@devflow-tools/adapters": "0.16.6",
|
|
20
|
+
"@devflow-tools/benchmark": "0.16.6",
|
|
21
|
+
"@devflow-tools/context-engine": "0.16.6",
|
|
22
|
+
"@devflow-tools/database": "0.16.6",
|
|
23
|
+
"@devflow-tools/knowledge-engine": "0.16.6",
|
|
24
|
+
"@devflow-tools/mcp-server": "0.16.6",
|
|
25
|
+
"@devflow-tools/memory-engine": "0.16.6",
|
|
26
|
+
"@devflow-tools/sdk": "0.16.6",
|
|
27
|
+
"@devflow-tools/server": "0.16.6",
|
|
28
|
+
"@devflow-tools/telemetry": "0.16.6",
|
|
29
|
+
"@devflow-tools/workflow-engine": "0.16.6",
|
|
30
30
|
"@inquirer/prompts": "^7.10.1",
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
32
32
|
"@nestjs/common": "^10.4.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"plugin-registry.json",
|
|
55
55
|
"scripts/postinstall.js"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b5628c42b4f6795103838c11e65601f6a59cb559"
|
|
58
58
|
}
|
package/plugin-registry.json
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"lastUpdated": "2026-07-
|
|
3
|
+
"lastUpdated": "2026-07-23T03:27:11.960Z",
|
|
4
4
|
"plugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@devflow-tools/plugin-animation",
|
|
7
|
-
"version": "0.16.
|
|
7
|
+
"version": "0.16.6",
|
|
8
8
|
"description": "",
|
|
9
9
|
"tags": [],
|
|
10
10
|
"compatibleStacks": [
|
|
11
11
|
"animation"
|
|
12
12
|
],
|
|
13
|
-
"size": "
|
|
13
|
+
"size": "121269 B",
|
|
14
14
|
"author": "DevFlow Team",
|
|
15
15
|
"homepage": ""
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "@devflow-tools/plugin-css",
|
|
19
|
-
"version": "0.16.
|
|
19
|
+
"version": "0.16.6",
|
|
20
20
|
"description": "",
|
|
21
21
|
"tags": [],
|
|
22
22
|
"compatibleStacks": [
|
|
23
23
|
"css"
|
|
24
24
|
],
|
|
25
|
-
"size": "
|
|
25
|
+
"size": "108760 B",
|
|
26
26
|
"author": "DevFlow Team",
|
|
27
27
|
"homepage": ""
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "@devflow-tools/plugin-docker",
|
|
31
|
-
"version": "0.16.
|
|
31
|
+
"version": "0.16.6",
|
|
32
32
|
"description": "",
|
|
33
33
|
"tags": [],
|
|
34
34
|
"compatibleStacks": [
|
|
35
35
|
"docker"
|
|
36
36
|
],
|
|
37
|
-
"size": "
|
|
37
|
+
"size": "137572 B",
|
|
38
38
|
"author": "DevFlow Team",
|
|
39
39
|
"homepage": ""
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "@devflow-tools/plugin-electron",
|
|
43
|
-
"version": "0.16.
|
|
43
|
+
"version": "0.16.6",
|
|
44
44
|
"description": "",
|
|
45
45
|
"tags": [],
|
|
46
46
|
"compatibleStacks": [
|
|
47
47
|
"electron"
|
|
48
48
|
],
|
|
49
|
-
"size": "
|
|
49
|
+
"size": "153251 B",
|
|
50
50
|
"author": "DevFlow Team",
|
|
51
51
|
"homepage": ""
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "@devflow-tools/plugin-git",
|
|
55
|
-
"version": "0.16.
|
|
55
|
+
"version": "0.16.6",
|
|
56
56
|
"description": "",
|
|
57
57
|
"tags": [],
|
|
58
58
|
"compatibleStacks": [
|
|
59
59
|
"git"
|
|
60
60
|
],
|
|
61
|
-
"size": "
|
|
61
|
+
"size": "119108 B",
|
|
62
62
|
"author": "DevFlow Team",
|
|
63
63
|
"homepage": ""
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "@devflow-tools/plugin-graphql",
|
|
67
|
-
"version": "0.16.
|
|
67
|
+
"version": "0.16.6",
|
|
68
68
|
"description": "",
|
|
69
69
|
"tags": [],
|
|
70
70
|
"compatibleStacks": [
|
|
71
71
|
"graphql"
|
|
72
72
|
],
|
|
73
|
-
"size": "
|
|
73
|
+
"size": "121257 B",
|
|
74
74
|
"author": "DevFlow Team",
|
|
75
75
|
"homepage": ""
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "@devflow-tools/plugin-nest",
|
|
79
|
-
"version": "0.16.
|
|
79
|
+
"version": "0.16.6",
|
|
80
80
|
"description": "",
|
|
81
81
|
"tags": [],
|
|
82
82
|
"compatibleStacks": [
|
|
83
83
|
"nest"
|
|
84
84
|
],
|
|
85
|
-
"size": "
|
|
85
|
+
"size": "158350 B",
|
|
86
86
|
"author": "DevFlow Team",
|
|
87
87
|
"homepage": ""
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "@devflow-tools/plugin-nextjs",
|
|
91
|
-
"version": "0.16.
|
|
91
|
+
"version": "0.16.6",
|
|
92
92
|
"description": "",
|
|
93
93
|
"tags": [],
|
|
94
94
|
"compatibleStacks": [
|
|
95
95
|
"nextjs"
|
|
96
96
|
],
|
|
97
|
-
"size": "
|
|
97
|
+
"size": "119905 B",
|
|
98
98
|
"author": "DevFlow Team",
|
|
99
99
|
"homepage": ""
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "@devflow-tools/plugin-performance",
|
|
103
|
-
"version": "0.16.
|
|
103
|
+
"version": "0.16.6",
|
|
104
104
|
"description": "",
|
|
105
105
|
"tags": [],
|
|
106
106
|
"compatibleStacks": [
|
|
107
107
|
"performance"
|
|
108
108
|
],
|
|
109
|
-
"size": "
|
|
109
|
+
"size": "169751 B",
|
|
110
110
|
"author": "DevFlow Team",
|
|
111
111
|
"homepage": ""
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "@devflow-tools/plugin-react",
|
|
115
|
-
"version": "0.16.
|
|
115
|
+
"version": "0.16.6",
|
|
116
116
|
"description": "",
|
|
117
117
|
"tags": [],
|
|
118
118
|
"compatibleStacks": [
|
|
119
119
|
"react"
|
|
120
120
|
],
|
|
121
|
-
"size": "
|
|
121
|
+
"size": "281286 B",
|
|
122
122
|
"author": "DevFlow Team",
|
|
123
123
|
"homepage": ""
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"name": "@devflow-tools/plugin-tailwind",
|
|
127
|
-
"version": "0.16.
|
|
127
|
+
"version": "0.16.6",
|
|
128
128
|
"description": "",
|
|
129
129
|
"tags": [],
|
|
130
130
|
"compatibleStacks": [
|
|
131
131
|
"tailwind"
|
|
132
132
|
],
|
|
133
|
-
"size": "
|
|
133
|
+
"size": "125918 B",
|
|
134
134
|
"author": "DevFlow Team",
|
|
135
135
|
"homepage": ""
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"name": "@devflow-tools/plugin-taro",
|
|
139
|
-
"version": "0.16.
|
|
139
|
+
"version": "0.16.6",
|
|
140
140
|
"description": "",
|
|
141
141
|
"tags": [],
|
|
142
142
|
"compatibleStacks": [
|
|
143
143
|
"taro"
|
|
144
144
|
],
|
|
145
|
-
"size": "
|
|
145
|
+
"size": "129537 B",
|
|
146
146
|
"author": "DevFlow Team",
|
|
147
147
|
"homepage": ""
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "@devflow-tools/plugin-ui-layout",
|
|
151
|
-
"version": "0.16.
|
|
151
|
+
"version": "0.16.6",
|
|
152
152
|
"description": "",
|
|
153
153
|
"tags": [],
|
|
154
154
|
"compatibleStacks": [
|
|
155
155
|
"ui-layout"
|
|
156
156
|
],
|
|
157
|
-
"size": "
|
|
157
|
+
"size": "106638 B",
|
|
158
158
|
"author": "DevFlow Team",
|
|
159
159
|
"homepage": ""
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "@devflow-tools/plugin-vue",
|
|
163
|
-
"version": "0.16.
|
|
163
|
+
"version": "0.16.6",
|
|
164
164
|
"description": "",
|
|
165
165
|
"tags": [],
|
|
166
166
|
"compatibleStacks": [
|
|
167
167
|
"vue"
|
|
168
168
|
],
|
|
169
|
-
"size": "
|
|
169
|
+
"size": "138184 B",
|
|
170
170
|
"author": "DevFlow Team",
|
|
171
171
|
"homepage": ""
|
|
172
172
|
}
|
|
File without changes
|
/package/dist/dashboard/_next/static/{GZG2xsR50-1j8vTi6g2g0 → xNSXWGxbQQNrvH84gKSP1}/_ssgManifest.js
RENAMED
|
File without changes
|