@devflow-tools/plugin-vue 0.11.0 → 0.12.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/package.json +2 -2
- package/dist/analyzers/debug-reactivity.d.ts +0 -3
- package/dist/analyzers/debug-reactivity.d.ts.map +0 -1
- package/dist/analyzers/debug-reactivity.js +0 -68
- package/dist/analyzers/debug-reactivity.js.map +0 -1
- package/dist/analyzers/diagnose-bug.d.ts +0 -9
- package/dist/analyzers/diagnose-bug.d.ts.map +0 -1
- package/dist/analyzers/diagnose-bug.js +0 -86
- package/dist/analyzers/diagnose-bug.js.map +0 -1
- package/dist/analyzers/types.d.ts +0 -19
- package/dist/analyzers/types.d.ts.map +0 -1
- package/dist/analyzers/types.js +0 -2
- package/dist/analyzers/types.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1281
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/plugin-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.6",
|
|
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": "d544427472016eb332c6c2107f0fc98d8ae59c14"
|
|
30
30
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-reactivity.d.ts","sourceRoot":"","sources":["../../src/analyzers/debug-reactivity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,cAAc,CAiDxF"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { readdirSync, statSync } from 'fs';
|
|
3
|
-
import { join, relative } from 'path';
|
|
4
|
-
export function debugReactivity(projectRoot, targetFile) {
|
|
5
|
-
const reactiveState = [];
|
|
6
|
-
const files = targetFile ? [targetFile] : scanProjectFiles(projectRoot);
|
|
7
|
-
for (const file of files) {
|
|
8
|
-
const content = readFileSync(file, 'utf-8');
|
|
9
|
-
const relPath = relative(projectRoot, file);
|
|
10
|
-
const lines = content.split('\n');
|
|
11
|
-
for (let i = 0; i < lines.length; i++) {
|
|
12
|
-
const line = lines[i];
|
|
13
|
-
const refMatch = line.match(/(?:const|let)\s+(\w+)\s*=\s*ref\(/);
|
|
14
|
-
if (refMatch) {
|
|
15
|
-
reactiveState.push({ name: refMatch[1], type: 'ref', file: relPath, line: i + 1, dependencies: [], watchers: [] });
|
|
16
|
-
}
|
|
17
|
-
const reactiveMatch = line.match(/(?:const|let)\s+(\w+)\s*=\s*reactive\(/);
|
|
18
|
-
if (reactiveMatch) {
|
|
19
|
-
reactiveState.push({ name: reactiveMatch[1], type: 'reactive', file: relPath, line: i + 1, dependencies: [], watchers: [] });
|
|
20
|
-
}
|
|
21
|
-
const computedMatch = line.match(/(?:const|let)\s+(\w+)\s*=\s*computed\(/);
|
|
22
|
-
if (computedMatch) {
|
|
23
|
-
reactiveState.push({ name: computedMatch[1], type: 'computed', file: relPath, line: i + 1, dependencies: [], watchers: [] });
|
|
24
|
-
}
|
|
25
|
-
const watchMatch = line.match(/watch\(\s*(\w+)/);
|
|
26
|
-
if (watchMatch) {
|
|
27
|
-
const target = reactiveState.find(s => s.name === watchMatch[1]);
|
|
28
|
-
if (target)
|
|
29
|
-
target.watchers.push(watchMatch[1]);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
success: true,
|
|
35
|
-
summary: `发现 ${reactiveState.length} 个响应式状态`,
|
|
36
|
-
data: { reactiveState },
|
|
37
|
-
metrics: {
|
|
38
|
-
totalReactive: reactiveState.length,
|
|
39
|
-
refs: reactiveState.filter(s => s.type === 'ref').length,
|
|
40
|
-
reactives: reactiveState.filter(s => s.type === 'reactive').length,
|
|
41
|
-
computeds: reactiveState.filter(s => s.type === 'computed').length,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function scanProjectFiles(root) {
|
|
46
|
-
const files = [];
|
|
47
|
-
function walk(dir) {
|
|
48
|
-
try {
|
|
49
|
-
for (const entry of readdirSync(dir)) {
|
|
50
|
-
if (['node_modules', 'dist', 'build', '.git'].includes(entry))
|
|
51
|
-
continue;
|
|
52
|
-
const fullPath = join(dir, entry);
|
|
53
|
-
try {
|
|
54
|
-
const stat = statSync(fullPath);
|
|
55
|
-
if (stat.isDirectory())
|
|
56
|
-
walk(fullPath);
|
|
57
|
-
else if (/\.(vue|tsx?|jsx?)$/.test(entry))
|
|
58
|
-
files.push(fullPath);
|
|
59
|
-
}
|
|
60
|
-
catch { }
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch { }
|
|
64
|
-
}
|
|
65
|
-
walk(root);
|
|
66
|
-
return files;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=debug-reactivity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-reactivity.js","sourceRoot":"","sources":["../../src/analyzers/debug-reactivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGtC,MAAM,UAAU,eAAe,CAAC,WAAmB,EAAE,UAAmB;IACtE,MAAM,aAAa,GAOd,EAAE,CAAC;IAER,MAAM,KAAK,GAAG,UAA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AAa,EAAE,CAAC;IAC3B,SAAS,IAAI,CAAC,GAAW;QACvB,IAAI,CAAC;YACH,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;gBACrC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;oBAAE,SAAS;gBACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAClC,IAAI,CAAC;oBACH,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;oBAChC,IAAI,IAAI,CAAC,WAAW,EAAE;wBAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;yBAClC,IAAI,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC;wBAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAClE,CAAC;gBAAC,MAAM,CAAC,CAAA,CAAC;YACZ,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AnalysisResult } from './types.js';
|
|
2
|
-
interface DiagnoseInput {
|
|
3
|
-
projectRoot: string;
|
|
4
|
-
errorMessage: string;
|
|
5
|
-
stackTrace?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function diagnoseBug(input: DiagnoseInput): AnalysisResult;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=diagnose-bug.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnose-bug.d.ts","sourceRoot":"","sources":["../../src/analyzers/diagnose-bug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,cAAc,CAoEhE"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { readdirSync, statSync } from 'fs';
|
|
3
|
-
import { join, relative } from 'path';
|
|
4
|
-
export function diagnoseBug(input) {
|
|
5
|
-
const { projectRoot, errorMessage, stackTrace } = input;
|
|
6
|
-
const rootCauses = [];
|
|
7
|
-
const files = scanProjectFiles(projectRoot, /\.(vue|tsx?|jsx?)$/);
|
|
8
|
-
for (const file of files) {
|
|
9
|
-
const content = readFileSync(file, 'utf-8');
|
|
10
|
-
const relPath = relative(projectRoot, file);
|
|
11
|
-
const lines = content.split('\n');
|
|
12
|
-
// Vue-specific: check for reactivity issues
|
|
13
|
-
const isReactivityError = /ref|reactive|computed|Cannot read propert/.test(errorMessage);
|
|
14
|
-
if (isReactivityError) {
|
|
15
|
-
for (let i = 0; i < lines.length; i++) {
|
|
16
|
-
const line = lines[i];
|
|
17
|
-
// Check for .value access issues in template (shouldn't need .value)
|
|
18
|
-
if (/<template>/.test(line))
|
|
19
|
-
continue;
|
|
20
|
-
if (/\w+\.\w+\.\w+/.test(line) && !/\?\.|&&|\|\|/.test(line)) {
|
|
21
|
-
if (!/import|from|type|interface/.test(line)) {
|
|
22
|
-
rootCauses.push({
|
|
23
|
-
probability: 'medium',
|
|
24
|
-
description: '链式属性访问缺少空值检查',
|
|
25
|
-
file: relPath,
|
|
26
|
-
line: i + 1,
|
|
27
|
-
evidence: line.trim(),
|
|
28
|
-
fix: '使用可选链操作符 ?. 或添加空值检查',
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
// Check for missing key in v-for
|
|
35
|
-
for (let i = 0; i < lines.length; i++) {
|
|
36
|
-
if (/v-for\s*=\s*["']/.test(lines[i]) && !/:key\s*=\s*["']/.test(lines[i])) {
|
|
37
|
-
rootCauses.push({
|
|
38
|
-
probability: 'high',
|
|
39
|
-
description: 'v-for 缺少 :key 属性',
|
|
40
|
-
file: relPath,
|
|
41
|
-
line: i + 1,
|
|
42
|
-
evidence: lines[i].trim(),
|
|
43
|
-
fix: '为 v-for 添加唯一的 :key 绑定',
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
success: true,
|
|
50
|
-
summary: `分析错误 "${errorMessage.substring(0, 50)}...",发现 ${rootCauses.length} 个可能原因`,
|
|
51
|
-
data: { rootCauses },
|
|
52
|
-
findings: rootCauses.map(rc => ({
|
|
53
|
-
severity: rc.probability === 'high' ? 'critical' : 'warning',
|
|
54
|
-
category: 'bug-root-cause',
|
|
55
|
-
title: rc.description,
|
|
56
|
-
description: rc.evidence ?? rc.description,
|
|
57
|
-
file: rc.file,
|
|
58
|
-
line: rc.line,
|
|
59
|
-
suggestion: rc.fix,
|
|
60
|
-
})),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function scanProjectFiles(root, pattern) {
|
|
64
|
-
const files = [];
|
|
65
|
-
function walk(dir) {
|
|
66
|
-
try {
|
|
67
|
-
for (const entry of readdirSync(dir)) {
|
|
68
|
-
if (['node_modules', 'dist', 'build', '.git'].includes(entry))
|
|
69
|
-
continue;
|
|
70
|
-
const fullPath = join(dir, entry);
|
|
71
|
-
try {
|
|
72
|
-
const stat = statSync(fullPath);
|
|
73
|
-
if (stat.isDirectory())
|
|
74
|
-
walk(fullPath);
|
|
75
|
-
else if (pattern.test(entry))
|
|
76
|
-
files.push(fullPath);
|
|
77
|
-
}
|
|
78
|
-
catch { }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch { }
|
|
82
|
-
}
|
|
83
|
-
walk(root);
|
|
84
|
-
return files;
|
|
85
|
-
}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
-
findings?: Finding[];
|
|
5
|
-
metrics?: Record<string, number | string>;
|
|
6
|
-
data?: unknown;
|
|
7
|
-
error?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Finding {
|
|
10
|
-
severity: 'critical' | 'warning' | 'info' | 'suggestion';
|
|
11
|
-
category: string;
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
file?: string;
|
|
15
|
-
line?: number;
|
|
16
|
-
suggestion?: string;
|
|
17
|
-
codeSnippet?: string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/analyzers/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/analyzers/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/analyzers/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,eAAO,MAAM,SAAS,EAAE,aAwwCvB,CAAC"}
|