@devflow-tools/cli 0.16.1 → 0.16.3
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/commands/doctor.d.ts +4 -19
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +352 -6
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory-maintain.d.ts +9 -0
- package/dist/commands/memory-maintain.d.ts.map +1 -0
- package/dist/commands/memory-maintain.js +32 -0
- package/dist/commands/memory-maintain.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +14 -0
- package/dist/commands/status.js.map +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/plugin-setup.d.ts +36 -2
- package/dist/lib/plugin-setup.d.ts.map +1 -1
- package/dist/lib/plugin-setup.js +183 -11
- package/dist/lib/plugin-setup.js.map +1 -1
- package/dist/plugin-files/.claude-plugin/plugin.json +2 -2
- package/dist/plugin-files/dist/hooks/hook-client.js +6 -6
- package/dist/plugin-files/dist/hooks/hook-daemon.js +11 -11
- package/dist/plugin-files/dist/hooks/post-tool-use-failure.js +2 -2
- package/dist/plugin-files/dist/hooks/post-tool-use.js +3 -3
- package/dist/plugin-files/dist/hooks/pre-compact.js +2 -2
- package/dist/plugin-files/dist/hooks/pre-tool-use.js +2 -2
- package/dist/plugin-files/dist/hooks/session-end.js +2 -2
- package/dist/plugin-files/dist/hooks/stop.js +2 -2
- package/dist/plugin-files/dist/hooks/user-prompt-submit.js +3 -2
- package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +16 -3
- package/dist/plugin-files/hooks/session-start +37 -17
- package/dist/plugin-files/hooks/stop +3 -2
- package/dist/plugin-files/package.json +7 -8
- package/dist/plugin-files/skills/{devflow:react → react}/SKILL.md +16 -3
- package/package.json +27 -27
- /package/dist/plugin-files/{hooks.json → hooks/hooks.json} +0 -0
- /package/dist/plugin-files/skills/{devflow:animation → animation}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:context → context}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:css → css}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:docker → docker}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:doctor → doctor}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:electron → electron}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:git → git}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:graph → graph}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:graphql → graphql}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:knowledge → knowledge}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:memory → memory}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:nest → nest}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:nextjs → nextjs}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:performance → performance}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:start → start}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:tailwind → tailwind}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:taro → taro}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:ui-layout → ui-layout}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:vue → vue}/SKILL.md +0 -0
- /package/dist/plugin-files/skills/{devflow:workflow → workflow}/SKILL.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/claude-code-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "DevFlow — Developer Intelligence Platform for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"deploy": "npx tsx scripts/inject-gates.ts --deploy"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@devflow-tools/database": "0.16.
|
|
12
|
-
"@devflow-tools/memory-engine": "0.16.
|
|
13
|
-
"@devflow-tools/sdk": "0.16.
|
|
14
|
-
"@devflow-tools/telemetry": "0.16.
|
|
15
|
-
"@devflow-tools/workflow-engine": "0.16.
|
|
11
|
+
"@devflow-tools/database": "0.16.3",
|
|
12
|
+
"@devflow-tools/memory-engine": "0.16.3",
|
|
13
|
+
"@devflow-tools/sdk": "0.16.3",
|
|
14
|
+
"@devflow-tools/telemetry": "0.16.3",
|
|
15
|
+
"@devflow-tools/workflow-engine": "0.16.3"
|
|
16
16
|
},
|
|
17
17
|
"allowScripts": {
|
|
18
18
|
"better-sqlite3@12.11.1": true,
|
|
19
19
|
"sharp@0.32.6": true
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@devflow-tools/mcp-server": "0.16.
|
|
22
|
+
"@devflow-tools/mcp-server": "0.16.3"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"pi-package",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"CLAUDE.md",
|
|
39
39
|
"dist",
|
|
40
40
|
"hooks",
|
|
41
|
-
"hooks.json",
|
|
42
41
|
"skills"
|
|
43
42
|
]
|
|
44
43
|
}
|
|
@@ -13,7 +13,7 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
13
13
|
|
|
14
14
|
**新功能开发:** 需要加组件或页面 → 先确认现有实现模式,再做影响范围评估,然后生成符合项目约定的组件/Hook/类型代码,最后通过类型检查和测试。
|
|
15
15
|
|
|
16
|
-
**性能卡顿:** 列表页滚动掉帧、输入响应慢 → Profiler
|
|
16
|
+
**性能卡顿:** 列表页滚动掉帧、输入响应慢 → 先用静态工具生成候选,再用 Profiler、浏览器 Performance trace 或可复现 benchmark 测量渲染次数、耗时和 CPU;只有测量后才能确认影响和排序优化。
|
|
17
17
|
|
|
18
18
|
**Hooks 审查:** lint 警告、useEffect 循环触发 → 全量扫描所有 Hooks 调用位置,检查顶层调用规则、依赖数组完整性、清理函数缺失、反模式(渲染中创建组件、过大 useEffect),自动修复安全项。
|
|
19
19
|
|
|
@@ -26,9 +26,10 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
26
26
|
- 使用函数组件 + Hooks,不使用 Class 组件
|
|
27
27
|
- 每个文件只导出一个组件
|
|
28
28
|
- Props 使用 TypeScript interface 定义
|
|
29
|
-
-
|
|
29
|
+
- 仅在父组件重复渲染、props 稳定且组件渲染成本可观时评估 React.memo;React.memo 不会阻止组件自身 state 或所消费 Context 变化引发的更新
|
|
30
30
|
- 自定义 Hooks 命名以 use 开头
|
|
31
|
-
-
|
|
31
|
+
- 内联 DOM style 默认是低影响静态发现;只有测量证明位于热点路径时才升级影响等级
|
|
32
|
+
- requestAnimationFrame 只对齐浏览器绘制时机;没有明确采样频率、合并和丢弃策略时,不得把它描述为通用节流
|
|
32
33
|
- 遇到不确定的 API 时先查 React 官方文档再回答
|
|
33
34
|
- 修复 Bug 前先查 git log 找最近变更
|
|
34
35
|
- 生成代码后必须通过 TypeScript 类型检查
|
|
@@ -48,3 +49,15 @@ description: React 18 专家能力 — Bug 诊断、组件重构、性能优化
|
|
|
48
49
|
| Hooks 审查: | 调用 MCP 工具 `react_review_hooks` |
|
|
49
50
|
| 组件拆分: | 调用 MCP 工具 `react_refactor_component` |
|
|
50
51
|
| 新建组件: | 调用 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/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@colbymchenry/codegraph": "^1.1.1",
|
|
15
|
-
"@devflow-tools/adapters": "0.16.
|
|
16
|
-
"@devflow-tools/benchmark": "0.16.
|
|
17
|
-
"@devflow-tools/context-engine": "0.16.
|
|
18
|
-
"@devflow-tools/database": "0.16.
|
|
19
|
-
"@devflow-tools/knowledge-engine": "0.16.
|
|
20
|
-
"@devflow-tools/mcp-server": "0.16.
|
|
21
|
-
"@devflow-tools/memory-engine": "0.16.
|
|
22
|
-
"@devflow-tools/plugin-animation": "0.16.
|
|
23
|
-
"@devflow-tools/plugin-css": "0.16.
|
|
24
|
-
"@devflow-tools/plugin-docker": "0.16.
|
|
25
|
-
"@devflow-tools/plugin-electron": "0.16.
|
|
26
|
-
"@devflow-tools/plugin-git": "0.16.
|
|
27
|
-
"@devflow-tools/plugin-graphql": "0.16.
|
|
28
|
-
"@devflow-tools/plugin-nest": "0.16.
|
|
29
|
-
"@devflow-tools/plugin-nextjs": "0.16.
|
|
30
|
-
"@devflow-tools/plugin-performance": "0.16.
|
|
31
|
-
"@devflow-tools/plugin-react": "0.16.
|
|
32
|
-
"@devflow-tools/plugin-tailwind": "0.16.
|
|
33
|
-
"@devflow-tools/plugin-taro": "0.16.
|
|
34
|
-
"@devflow-tools/plugin-ui-layout": "0.16.
|
|
35
|
-
"@devflow-tools/plugin-vue": "0.16.
|
|
36
|
-
"@devflow-tools/sdk": "0.16.
|
|
37
|
-
"@devflow-tools/server": "0.16.
|
|
38
|
-
"@devflow-tools/telemetry": "0.16.
|
|
39
|
-
"@devflow-tools/workflow-engine": "0.16.
|
|
15
|
+
"@devflow-tools/adapters": "0.16.3",
|
|
16
|
+
"@devflow-tools/benchmark": "0.16.3",
|
|
17
|
+
"@devflow-tools/context-engine": "0.16.3",
|
|
18
|
+
"@devflow-tools/database": "0.16.3",
|
|
19
|
+
"@devflow-tools/knowledge-engine": "0.16.3",
|
|
20
|
+
"@devflow-tools/mcp-server": "0.16.3",
|
|
21
|
+
"@devflow-tools/memory-engine": "0.16.3",
|
|
22
|
+
"@devflow-tools/plugin-animation": "0.16.3",
|
|
23
|
+
"@devflow-tools/plugin-css": "0.16.3",
|
|
24
|
+
"@devflow-tools/plugin-docker": "0.16.3",
|
|
25
|
+
"@devflow-tools/plugin-electron": "0.16.3",
|
|
26
|
+
"@devflow-tools/plugin-git": "0.16.3",
|
|
27
|
+
"@devflow-tools/plugin-graphql": "0.16.3",
|
|
28
|
+
"@devflow-tools/plugin-nest": "0.16.3",
|
|
29
|
+
"@devflow-tools/plugin-nextjs": "0.16.3",
|
|
30
|
+
"@devflow-tools/plugin-performance": "0.16.3",
|
|
31
|
+
"@devflow-tools/plugin-react": "0.16.3",
|
|
32
|
+
"@devflow-tools/plugin-tailwind": "0.16.3",
|
|
33
|
+
"@devflow-tools/plugin-taro": "0.16.3",
|
|
34
|
+
"@devflow-tools/plugin-ui-layout": "0.16.3",
|
|
35
|
+
"@devflow-tools/plugin-vue": "0.16.3",
|
|
36
|
+
"@devflow-tools/sdk": "0.16.3",
|
|
37
|
+
"@devflow-tools/server": "0.16.3",
|
|
38
|
+
"@devflow-tools/telemetry": "0.16.3",
|
|
39
|
+
"@devflow-tools/workflow-engine": "0.16.3",
|
|
40
40
|
"@inquirer/prompts": "^7.10.1",
|
|
41
41
|
"chalk": "^5.3.0",
|
|
42
42
|
"commander": "^12.0.0"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dist",
|
|
50
50
|
"bin"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "5f49cf58702ee94ad9e4ab585e58f824e8633721"
|
|
53
53
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|