@devflow-tools/plugin-performance 0.1.0
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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,aAiJ/B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export const performancePlugin = {
|
|
2
|
+
meta: {
|
|
3
|
+
name: "performance",
|
|
4
|
+
version: "0.1.0",
|
|
5
|
+
description: "Web 性能专家 — Core Web Vitals、Bundle 优化、加载策略、渲染性能",
|
|
6
|
+
icon: "⚡",
|
|
7
|
+
tags: ["performance", "web-vitals", "optimization", "lighthouse", "bundle"],
|
|
8
|
+
},
|
|
9
|
+
knowledge: {
|
|
10
|
+
sources: [
|
|
11
|
+
{
|
|
12
|
+
name: "web-vitals-docs",
|
|
13
|
+
urls: [
|
|
14
|
+
"https://web.dev/vitals/",
|
|
15
|
+
"https://web.dev/learn-core-web-vitals/",
|
|
16
|
+
"https://developer.chrome.com/docs/lighthouse/overview/",
|
|
17
|
+
],
|
|
18
|
+
pluginName: "performance",
|
|
19
|
+
version: "2024",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
memory: {
|
|
24
|
+
project: {
|
|
25
|
+
stack: ["Lighthouse", "Webpack", "Vite", "Chrome DevTools"],
|
|
26
|
+
conventions: [
|
|
27
|
+
{ key: "vitals-target", value: "LCP < 2.5s, FID < 100ms, CLS < 0.1, INP < 200ms", source: "manual", confidence: 0.95 },
|
|
28
|
+
{ key: "bundle-budget", value: "首屏 JS < 200KB, CSS < 50KB, 图片 < 200KB", source: "manual", confidence: 0.85 },
|
|
29
|
+
{ key: "lazy-load", value: "图片/iframe/视频使用 loading=lazy,组件使用动态 import", source: "manual", confidence: 0.9 },
|
|
30
|
+
{ key: "font-strategy", value: "使用 font-display: swap + 子集化字体,避免 FOIT", source: "manual", confidence: 0.8 },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
global: [
|
|
34
|
+
{
|
|
35
|
+
id: "performance:core-web-vitals",
|
|
36
|
+
source: "performance",
|
|
37
|
+
title: "Core Web Vitals 指标",
|
|
38
|
+
content: "LCP(最大内容绘制)< 2.5s 衡量加载性能。FID(首次输入延迟)< 100ms 衡量交互性,即将被 INP 替代。CLS(累积布局偏移)< 0.1 衡量视觉稳定性。INP < 200ms 衡量整体响应。",
|
|
39
|
+
embedding: [],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "performance:bundle-optimization",
|
|
43
|
+
source: "performance",
|
|
44
|
+
title: "Bundle 优化策略",
|
|
45
|
+
content: "代码分割(React.lazy/dynamic import)。Tree shaking 移除未使用代码。Dead code elimination。依赖去重(webpack dedupe)。Module concatenation。使用 webpack-bundle-analyzer 可视化分析。",
|
|
46
|
+
embedding: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "performance:caching-strategies",
|
|
50
|
+
source: "performance",
|
|
51
|
+
title: "缓存策略",
|
|
52
|
+
content: "Cache-Control 设置强缓存(immutable + max-age)。CDN 边缘缓存。Service Worker 离线缓存。API 响应缓存(stale-while-revalidate)。资源使用内容哈希实现长期缓存。",
|
|
53
|
+
embedding: [],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "performance:rendering-performance",
|
|
57
|
+
source: "performance",
|
|
58
|
+
title: "渲染性能优化",
|
|
59
|
+
content: "避免 layout thrashing(批量读写 DOM)。使用 requestAnimationFrame 做动画。Web Worker 执行耗时计算。will-change 提示浏览器优化。CSS containment 隔离重排范围。避免强制同步布局。",
|
|
60
|
+
embedding: [],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
workflow: {
|
|
65
|
+
steps: [],
|
|
66
|
+
templates: [
|
|
67
|
+
{
|
|
68
|
+
name: "performance-audit",
|
|
69
|
+
description: "性能审计:Lighthouse → Web Vitals → Bundle → 优化方案",
|
|
70
|
+
version: "1.0.0",
|
|
71
|
+
steps: [
|
|
72
|
+
{ id: "run-lighthouse", description: "运行 Lighthouse 审计获取各项分数", type: "simple", timeout: 60000 },
|
|
73
|
+
{ id: "measure-vitals", description: "测量真实用户 Core Web Vitals(LCP/FID/CLS/INP)", type: "simple", depends: ["run-lighthouse"], timeout: 15000 },
|
|
74
|
+
{ id: "analyze-bundle", description: "分析打包产物(大小、重复模块、未使用代码)", type: "simple", timeout: 20000 },
|
|
75
|
+
{ id: "find-bottleneck", description: "定位性能瓶颈(最大资源、阻塞渲染、长任务)", type: "simple", depends: ["run-lighthouse", "analyze-bundle"], timeout: 10000 },
|
|
76
|
+
{ id: "generate-report", description: "生成性能报告(按优先级排序的优化项)", type: "llm", depends: ["measure-vitals", "find-bottleneck"], timeout: 15000 },
|
|
77
|
+
{ id: "generate-optimizations", description: "生成优化代码(代码分割/懒加载/缓存策略/图片优化)", type: "llm", depends: ["generate-report"], timeout: 30000 },
|
|
78
|
+
{ id: "re-measure", description: "重新测量确认优化效果", type: "simple", depends: ["generate-optimizations"], timeout: 60000 },
|
|
79
|
+
{ id: "compare-report", description: "生成优化前后对比报告", type: "simple", depends: ["re-measure"], timeout: 10000 },
|
|
80
|
+
],
|
|
81
|
+
triggers: [{ type: "cli", command: "audit:performance" }, { type: "mcp", tool: "audit_performance" }],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "bundle-optimize",
|
|
85
|
+
description: "Bundle 优化:分析 → 代码分割 → Tree Shaking → 验证",
|
|
86
|
+
version: "1.0.0",
|
|
87
|
+
steps: [
|
|
88
|
+
{ id: "analyze-chunks", description: "分析当前构建产物(chunk 划分、重复依赖)", type: "simple", timeout: 10000 },
|
|
89
|
+
{ id: "find-large-deps", description: "识别大体积依赖和重复引入的模块", type: "simple", depends: ["analyze-chunks"], timeout: 10000 },
|
|
90
|
+
{ id: "suggest-split", description: "建议代码分割方案(路由级/组件级/依赖级)", type: "llm", depends: ["analyze-chunks", "find-large-deps"], timeout: 15000 },
|
|
91
|
+
{ id: "apply-splitting", description: "应用代码分割和动态导入", type: "llm", depends: ["suggest-split"], timeout: 20000 },
|
|
92
|
+
{ id: "apply-tree-shaking", description: "配置 Tree Shaking 和副作用声明", type: "simple", depends: ["apply-splitting"], timeout: 10000 },
|
|
93
|
+
{ id: "rebuild-measure", description: "重新构建并对比包体积", type: "simple", depends: ["apply-tree-shaking"], timeout: 30000 },
|
|
94
|
+
],
|
|
95
|
+
triggers: [{ type: "cli", command: "optimize:bundle" }],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "load-speed-optimize",
|
|
99
|
+
description: "加载速度优化:资源加载策略 → 预加载 → 缓存",
|
|
100
|
+
version: "1.0.0",
|
|
101
|
+
steps: [
|
|
102
|
+
{ id: "audit-resources", description: "审计页面加载资源(大小、优先级、阻塞)", type: "simple", timeout: 10000 },
|
|
103
|
+
{ id: "check-priority", description: "检查关键资源是否优先加载(preload/preconnect)", type: "simple", depends: ["audit-resources"], timeout: 5000 },
|
|
104
|
+
{ id: "check-images", description: "检查图片格式(WebP/AVIF)、尺寸(srcset)、懒加载", type: "simple", depends: ["audit-resources"], timeout: 10000 },
|
|
105
|
+
{ id: "check-fonts", description: "检查字体加载策略(font-display/子集化)", type: "simple", depends: ["audit-resources"], timeout: 5000 },
|
|
106
|
+
{ id: "generate-fix", description: "生成加载优化修复", type: "llm", depends: ["check-priority", "check-images", "check-fonts"], timeout: 20000 },
|
|
107
|
+
{ id: "measure-improvement", description: "测量优化前后 LCP 和 Speed Index", type: "simple", depends: ["generate-fix"], timeout: 30000 },
|
|
108
|
+
],
|
|
109
|
+
triggers: [{ type: "cli", command: "optimize:load-speed" }],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "runtime-optimize",
|
|
113
|
+
description: "运行时性能优化:长任务 → 渲染卡顿 → 内存泄漏",
|
|
114
|
+
version: "1.0.0",
|
|
115
|
+
steps: [
|
|
116
|
+
{ id: "record-trace", description: "录制 Performance Trace 捕获运行时行为", type: "simple", timeout: 30000 },
|
|
117
|
+
{ id: "find-long-tasks", description: "识别长任务(> 50ms 阻塞主线程)", type: "simple", depends: ["record-trace"], timeout: 10000 },
|
|
118
|
+
{ id: "find-layout-thrash", description: "检测 layout thrashing(强制同步布局)", type: "simple", depends: ["record-trace"], timeout: 10000 },
|
|
119
|
+
{ id: "find-memory-leaks", description: "检测内存泄漏(heap snapshot 对比)", type: "simple", timeout: 20000 },
|
|
120
|
+
{ id: "generate-fix", description: "生成运行时优化修复(Web Worker/RAF/防抖节流)", type: "llm", depends: ["find-long-tasks", "find-layout-thrash", "find-memory-leaks"], timeout: 20000 },
|
|
121
|
+
{ id: "verify", description: "重新录制确认优化效果", type: "simple", depends: ["generate-fix"], timeout: 30000 },
|
|
122
|
+
],
|
|
123
|
+
triggers: [{ type: "cli", command: "optimize:runtime" }],
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
prompt: {
|
|
128
|
+
system: "你是一个 Web 性能专家。精通 Core Web Vitals、Bundle 优化和运行时性能。所有优化建议必须有数据依据。",
|
|
129
|
+
rules: [
|
|
130
|
+
"Core Web Vitals 目标:LCP < 2.5s, INP < 200ms, CLS < 0.1",
|
|
131
|
+
"首屏 JS < 200KB, CSS < 50KB",
|
|
132
|
+
"图片使用 WebP/AVIF 格式 + srcset + loading=lazy",
|
|
133
|
+
"字体使用 font-display: swap + 子集化",
|
|
134
|
+
"关键资源使用 preload/preconnect 优先加载",
|
|
135
|
+
"使用代码分割和动态导入按需加载",
|
|
136
|
+
"所有优化建议必须有 Lighthouse/Performance 数据支持",
|
|
137
|
+
"不使用 setTimeout 做动画,使用 requestAnimationFrame",
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
tools: [],
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,CAAC,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,CAAC;KAC5E;IAED,SAAS,EAAE;QACT,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE;oBACJ,yBAAyB;oBACzB,wCAAwC;oBACxC,wDAAwD;iBACzD;gBACD,UAAU,EAAE,aAAa;gBACzB,OAAO,EAAE,MAAM;aAChB;SACF;KACF;IAED,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC;YAC3D,WAAW,EAAE;gBACX,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,iDAAiD,EAAE,MAAM,EAAE,QAAiB,EAAE,UAAU,EAAE,IAAI,EAAE;gBAC/H,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,uCAAuC,EAAE,MAAM,EAAE,QAAiB,EAAE,UAAU,EAAE,IAAI,EAAE;gBACrH,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,2CAA2C,EAAE,MAAM,EAAE,QAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;gBACpH,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,uC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AAW,EAAE,0BAA0B,EAAE,IAAI,EAAE,QAAiB,EAAE,OAAO,EAAE,KAAK,EAAE;oBAC7G,EAAE,EAAE,EAAE,cAAc,EAAE,WAAW,EAAE,gCAAgC,EAAE,IAAI,EAAE,KAAc,EAAE,OAAO,EAAE,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE;oBACpL,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,QAAiB,EAAE,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE;iBAChH;gBACD,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,KAAc,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;aAClE;SACF;KACF;IAED,MAAM,EAAE;QACN,MAAM,EAAE,iEAAiE;QACzE,KAAK,EAAE;YACL,uDAAuD;YACvD,2BAA2B;YAC3B,2CAA2C;YAC3C,+BAA+B;YAC/B,gCAAgC;YAChC,iBAAiB;YACjB,uCAAuC;YACvC,6CAA6C;SAC9C;KACF;IAED,KAAK,EAAE,EAAE;CACV,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@devflow-tools/plugin-performance",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -b",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"typecheck": "tsc --noEmit",
|
|
17
|
+
"clean": "rm -rf dist"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@devflow-tools/sdk": "*"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"typescript": "^5.5.0",
|
|
24
|
+
"vitest": "^2.0.0"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"gitHead": "4cede97fc7fc673f929427fac169acab100ca8ed"
|
|
30
|
+
}
|