mcp-tailwindcss 1.0.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/README.md +419 -0
- package/dist/ast-parser.d.ts +106 -0
- package/dist/ast-parser.d.ts.map +1 -0
- package/dist/ast-parser.js +615 -0
- package/dist/ast-parser.js.map +1 -0
- package/dist/auto-updater.d.ts +48 -0
- package/dist/auto-updater.d.ts.map +1 -0
- package/dist/auto-updater.js +237 -0
- package/dist/auto-updater.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1357 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { Project, } from 'ts-morph';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
export class AstParser {
|
|
4
|
+
project;
|
|
5
|
+
tailwindSrcPath;
|
|
6
|
+
cachedTypes = null;
|
|
7
|
+
constructor(tailwindSrcPath) {
|
|
8
|
+
this.tailwindSrcPath = tailwindSrcPath;
|
|
9
|
+
this.project = new Project({
|
|
10
|
+
tsConfigFilePath: path.join(tailwindSrcPath, '..', 'tsconfig.json'),
|
|
11
|
+
skipAddingFilesFromTsConfig: true,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
getModuleName(filePath) {
|
|
15
|
+
const relativePath = path.relative(this.tailwindSrcPath, filePath);
|
|
16
|
+
const parts = relativePath.split(path.sep);
|
|
17
|
+
if (parts.length > 1) {
|
|
18
|
+
return parts[0];
|
|
19
|
+
}
|
|
20
|
+
return 'root';
|
|
21
|
+
}
|
|
22
|
+
getRelativePath(filePath) {
|
|
23
|
+
return path.relative(this.tailwindSrcPath, filePath).replace(/\\/g, '/');
|
|
24
|
+
}
|
|
25
|
+
addSourceFiles(patterns) {
|
|
26
|
+
for (const pattern of patterns) {
|
|
27
|
+
this.project.addSourceFilesAtPaths(path.join(this.tailwindSrcPath, pattern));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
extractFromFile(filePath) {
|
|
31
|
+
const fullPath = path.join(this.tailwindSrcPath, filePath);
|
|
32
|
+
const sourceFile = this.project.addSourceFileAtPath(fullPath);
|
|
33
|
+
return this.extractTypes(sourceFile);
|
|
34
|
+
}
|
|
35
|
+
extractAllTypes() {
|
|
36
|
+
if (this.cachedTypes)
|
|
37
|
+
return this.cachedTypes;
|
|
38
|
+
this.addSourceFiles(['**/*.ts', '**/*.d.ts']);
|
|
39
|
+
const types = [];
|
|
40
|
+
for (const sourceFile of this.project.getSourceFiles()) {
|
|
41
|
+
const filePath = sourceFile.getFilePath();
|
|
42
|
+
if (filePath.includes('Tests') ||
|
|
43
|
+
filePath.includes('.test.') ||
|
|
44
|
+
filePath.includes('.bench.') ||
|
|
45
|
+
filePath.includes('__snapshots__') ||
|
|
46
|
+
filePath.includes('test-utils') ||
|
|
47
|
+
filePath.includes('/tests/'))
|
|
48
|
+
continue;
|
|
49
|
+
types.push(...this.extractTypes(sourceFile));
|
|
50
|
+
}
|
|
51
|
+
this.cachedTypes = types;
|
|
52
|
+
return types;
|
|
53
|
+
}
|
|
54
|
+
extractTypes(sourceFile) {
|
|
55
|
+
const types = [];
|
|
56
|
+
const relativePath = this.getRelativePath(sourceFile.getFilePath());
|
|
57
|
+
const moduleName = this.getModuleName(sourceFile.getFilePath());
|
|
58
|
+
for (const iface of sourceFile.getInterfaces()) {
|
|
59
|
+
if (iface.isExported()) {
|
|
60
|
+
types.push(this.extractInterface(iface, relativePath, moduleName));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
for (const typeAlias of sourceFile.getTypeAliases()) {
|
|
64
|
+
if (typeAlias.isExported()) {
|
|
65
|
+
types.push(this.extractTypeAlias(typeAlias, relativePath, moduleName));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
for (const enumDecl of sourceFile.getEnums()) {
|
|
69
|
+
if (enumDecl.isExported()) {
|
|
70
|
+
types.push(this.extractEnum(enumDecl, relativePath, moduleName));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
for (const funcDecl of sourceFile.getFunctions()) {
|
|
74
|
+
if (funcDecl.isExported()) {
|
|
75
|
+
types.push(this.extractFunction(funcDecl, relativePath, moduleName));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
for (const classDecl of sourceFile.getClasses()) {
|
|
79
|
+
if (classDecl.isExported()) {
|
|
80
|
+
types.push(this.extractClass(classDecl, relativePath, moduleName));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
for (const varDecl of sourceFile.getVariableDeclarations()) {
|
|
84
|
+
const varStmt = varDecl.getVariableStatement();
|
|
85
|
+
if (varStmt?.isExported()) {
|
|
86
|
+
types.push(this.extractVariable(varDecl, relativePath, moduleName));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
for (const moduleDecl of sourceFile.getModules()) {
|
|
90
|
+
if (moduleDecl.isExported()) {
|
|
91
|
+
types.push(this.extractNamespace(moduleDecl, relativePath, moduleName));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
for (const exportDecl of sourceFile.getExportDeclarations()) {
|
|
95
|
+
const reExport = this.extractReExport(exportDecl, relativePath, moduleName);
|
|
96
|
+
if (reExport) {
|
|
97
|
+
types.push(reExport);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return types;
|
|
101
|
+
}
|
|
102
|
+
extractTypeParameters(node) {
|
|
103
|
+
return node.getTypeParameters().map((tp) => ({
|
|
104
|
+
name: tp.getName(),
|
|
105
|
+
constraint: tp.getConstraint()?.getText(),
|
|
106
|
+
default: tp.getDefault()?.getText(),
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
extractInterface(iface, file, module) {
|
|
110
|
+
const properties = [];
|
|
111
|
+
const methods = [];
|
|
112
|
+
for (const prop of iface.getProperties()) {
|
|
113
|
+
properties.push({
|
|
114
|
+
name: prop.getName(),
|
|
115
|
+
type: this.simplifyType(prop.getType().getText()),
|
|
116
|
+
optional: prop.hasQuestionToken(),
|
|
117
|
+
readonly: prop.isReadonly(),
|
|
118
|
+
docs: this.getJsDocs(prop),
|
|
119
|
+
isMethod: false,
|
|
120
|
+
isCallSignature: false,
|
|
121
|
+
isIndexSignature: false,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
for (const method of iface.getMethods()) {
|
|
125
|
+
const params = method
|
|
126
|
+
.getParameters()
|
|
127
|
+
.map((p) => `${p.getName()}: ${this.simplifyType(p.getType().getText())}`);
|
|
128
|
+
methods.push({
|
|
129
|
+
name: method.getName(),
|
|
130
|
+
type: this.simplifyType(method.getReturnType().getText()),
|
|
131
|
+
optional: method.hasQuestionToken(),
|
|
132
|
+
readonly: false,
|
|
133
|
+
docs: this.getJsDocs(method),
|
|
134
|
+
isMethod: true,
|
|
135
|
+
isCallSignature: false,
|
|
136
|
+
isIndexSignature: false,
|
|
137
|
+
parameters: params,
|
|
138
|
+
returnType: this.simplifyType(method.getReturnType().getText()),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
for (const callSig of iface.getCallSignatures()) {
|
|
142
|
+
const params = callSig
|
|
143
|
+
.getParameters()
|
|
144
|
+
.map((p) => `${p.getName()}: ${this.simplifyType(p.getType().getText())}`);
|
|
145
|
+
methods.push({
|
|
146
|
+
name: '(call)',
|
|
147
|
+
type: this.simplifyType(callSig.getReturnType().getText()),
|
|
148
|
+
optional: false,
|
|
149
|
+
readonly: false,
|
|
150
|
+
docs: this.getJsDocs(callSig),
|
|
151
|
+
isMethod: false,
|
|
152
|
+
isCallSignature: true,
|
|
153
|
+
isIndexSignature: false,
|
|
154
|
+
parameters: params,
|
|
155
|
+
returnType: this.simplifyType(callSig.getReturnType().getText()),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
for (const indexSig of iface.getIndexSignatures()) {
|
|
159
|
+
const keyType = indexSig.getKeyType().getText();
|
|
160
|
+
const keyName = indexSig.getKeyName();
|
|
161
|
+
methods.push({
|
|
162
|
+
name: `[${keyName}: ${keyType}]`,
|
|
163
|
+
type: this.simplifyType(indexSig.getReturnType().getText()),
|
|
164
|
+
optional: false,
|
|
165
|
+
readonly: indexSig.isReadonly(),
|
|
166
|
+
docs: this.getJsDocs(indexSig),
|
|
167
|
+
isMethod: false,
|
|
168
|
+
isCallSignature: false,
|
|
169
|
+
isIndexSignature: true,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const typeParams = this.extractTypeParameters(iface);
|
|
173
|
+
const typeParamsStr = typeParams.length > 0 ? `<${typeParams.map((tp) => tp.name).join(', ')}>` : '';
|
|
174
|
+
const extendsClause = iface.getExtends();
|
|
175
|
+
const extendsStr = extendsClause.length > 0
|
|
176
|
+
? ` extends ${extendsClause.map((e) => e.getText()).join(', ')}`
|
|
177
|
+
: '';
|
|
178
|
+
return {
|
|
179
|
+
name: iface.getName(),
|
|
180
|
+
kind: 'interface',
|
|
181
|
+
exported: true,
|
|
182
|
+
file,
|
|
183
|
+
module,
|
|
184
|
+
signature: `interface ${iface.getName()}${typeParamsStr}${extendsStr}`,
|
|
185
|
+
properties,
|
|
186
|
+
methods,
|
|
187
|
+
typeParameters: typeParams,
|
|
188
|
+
extends: extendsClause.map((e) => e.getText()),
|
|
189
|
+
docs: this.getJsDocs(iface),
|
|
190
|
+
lineNumber: iface.getStartLineNumber(),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
extractTypeAlias(typeAlias, file, module) {
|
|
194
|
+
const typeParams = this.extractTypeParameters(typeAlias);
|
|
195
|
+
const typeParamsStr = typeParams.length > 0 ? `<${typeParams.map((tp) => tp.name).join(', ')}>` : '';
|
|
196
|
+
const typeText = this.simplifyType(typeAlias.getType().getText());
|
|
197
|
+
return {
|
|
198
|
+
name: typeAlias.getName(),
|
|
199
|
+
kind: 'type',
|
|
200
|
+
exported: true,
|
|
201
|
+
file,
|
|
202
|
+
module,
|
|
203
|
+
signature: `type ${typeAlias.getName()}${typeParamsStr} = ${typeText}`,
|
|
204
|
+
fullSignature: `type ${typeAlias.getName()}${typeParamsStr} = ${typeAlias.getType().getText()}`,
|
|
205
|
+
typeParameters: typeParams,
|
|
206
|
+
docs: this.getJsDocs(typeAlias),
|
|
207
|
+
lineNumber: typeAlias.getStartLineNumber(),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
extractEnum(enumDecl, file, module) {
|
|
211
|
+
const members = enumDecl.getMembers().map((m) => {
|
|
212
|
+
const value = m.getValue();
|
|
213
|
+
const valueStr = typeof value === 'string' ? `"${value}"` : (value ?? m.getInitializer()?.getText() ?? 'auto');
|
|
214
|
+
return `${m.getName()} = ${valueStr}`;
|
|
215
|
+
});
|
|
216
|
+
return {
|
|
217
|
+
name: enumDecl.getName(),
|
|
218
|
+
kind: 'enum',
|
|
219
|
+
exported: true,
|
|
220
|
+
file,
|
|
221
|
+
module,
|
|
222
|
+
signature: `enum ${enumDecl.getName()} { ${members.slice(0, 5).join(', ')}${members.length > 5 ? `, ... (+${members.length - 5})` : ''} }`,
|
|
223
|
+
members,
|
|
224
|
+
docs: this.getJsDocs(enumDecl),
|
|
225
|
+
lineNumber: enumDecl.getStartLineNumber(),
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
extractFunction(funcDecl, file, module) {
|
|
229
|
+
const typeParams = this.extractTypeParameters(funcDecl);
|
|
230
|
+
const typeParamsStr = typeParams.length > 0 ? `<${typeParams.map((tp) => tp.name).join(', ')}>` : '';
|
|
231
|
+
const params = funcDecl.getParameters().map((p) => {
|
|
232
|
+
const optional = p.hasQuestionToken() ? '?' : '';
|
|
233
|
+
return `${p.getName()}${optional}: ${this.simplifyType(p.getType().getText())}`;
|
|
234
|
+
});
|
|
235
|
+
const returnType = this.simplifyType(funcDecl.getReturnType().getText());
|
|
236
|
+
return {
|
|
237
|
+
name: funcDecl.getName() || 'anonymous',
|
|
238
|
+
kind: 'function',
|
|
239
|
+
exported: true,
|
|
240
|
+
file,
|
|
241
|
+
module,
|
|
242
|
+
signature: `function ${funcDecl.getName()}${typeParamsStr}(${params.join(', ')}): ${returnType}`,
|
|
243
|
+
typeParameters: typeParams,
|
|
244
|
+
docs: this.getJsDocs(funcDecl),
|
|
245
|
+
lineNumber: funcDecl.getStartLineNumber(),
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
extractClass(classDecl, file, module) {
|
|
249
|
+
const methods = [];
|
|
250
|
+
const properties = [];
|
|
251
|
+
for (const method of classDecl.getMethods()) {
|
|
252
|
+
const isPublic = method.getScope() === 'public' || !method.getScope();
|
|
253
|
+
if (!isPublic)
|
|
254
|
+
continue;
|
|
255
|
+
const params = method
|
|
256
|
+
.getParameters()
|
|
257
|
+
.map((p) => `${p.getName()}: ${this.simplifyType(p.getType().getText())}`);
|
|
258
|
+
methods.push({
|
|
259
|
+
name: method.getName(),
|
|
260
|
+
type: this.simplifyType(method.getReturnType().getText()),
|
|
261
|
+
optional: false,
|
|
262
|
+
readonly: false,
|
|
263
|
+
docs: this.getJsDocs(method),
|
|
264
|
+
isMethod: true,
|
|
265
|
+
isCallSignature: false,
|
|
266
|
+
isIndexSignature: false,
|
|
267
|
+
parameters: params,
|
|
268
|
+
returnType: this.simplifyType(method.getReturnType().getText()),
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
for (const prop of classDecl.getProperties()) {
|
|
272
|
+
const isPublic = prop.getScope() === 'public' || !prop.getScope();
|
|
273
|
+
if (!isPublic)
|
|
274
|
+
continue;
|
|
275
|
+
properties.push({
|
|
276
|
+
name: prop.getName(),
|
|
277
|
+
type: this.simplifyType(prop.getType().getText()),
|
|
278
|
+
optional: prop.hasQuestionToken(),
|
|
279
|
+
readonly: prop.isReadonly(),
|
|
280
|
+
docs: this.getJsDocs(prop),
|
|
281
|
+
isMethod: false,
|
|
282
|
+
isCallSignature: false,
|
|
283
|
+
isIndexSignature: false,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const typeParams = this.extractTypeParameters(classDecl);
|
|
287
|
+
const typeParamsStr = typeParams.length > 0 ? `<${typeParams.map((tp) => tp.name).join(', ')}>` : '';
|
|
288
|
+
const extendsClause = classDecl.getExtends();
|
|
289
|
+
const implementsClause = classDecl.getImplements();
|
|
290
|
+
let signature = `class ${classDecl.getName()}${typeParamsStr}`;
|
|
291
|
+
if (extendsClause) {
|
|
292
|
+
signature += ` extends ${extendsClause.getText()}`;
|
|
293
|
+
}
|
|
294
|
+
if (implementsClause.length > 0) {
|
|
295
|
+
signature += ` implements ${implementsClause.map((i) => i.getText()).join(', ')}`;
|
|
296
|
+
}
|
|
297
|
+
return {
|
|
298
|
+
name: classDecl.getName() || 'AnonymousClass',
|
|
299
|
+
kind: 'class',
|
|
300
|
+
exported: true,
|
|
301
|
+
file,
|
|
302
|
+
module,
|
|
303
|
+
signature,
|
|
304
|
+
properties,
|
|
305
|
+
methods,
|
|
306
|
+
typeParameters: typeParams,
|
|
307
|
+
extends: extendsClause ? [extendsClause.getText()] : undefined,
|
|
308
|
+
implements: implementsClause.length > 0 ? implementsClause.map((i) => i.getText()) : undefined,
|
|
309
|
+
docs: this.getJsDocs(classDecl),
|
|
310
|
+
lineNumber: classDecl.getStartLineNumber(),
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
extractVariable(varDecl, file, module) {
|
|
314
|
+
const name = varDecl.getName();
|
|
315
|
+
const type = this.simplifyType(varDecl.getType().getText());
|
|
316
|
+
const initializer = varDecl.getInitializer();
|
|
317
|
+
let value;
|
|
318
|
+
if (initializer) {
|
|
319
|
+
const initText = initializer.getText();
|
|
320
|
+
value = initText.length > 100 ? initText.substring(0, 100) + '...' : initText;
|
|
321
|
+
}
|
|
322
|
+
const varStmt = varDecl.getVariableStatement();
|
|
323
|
+
const declarationKind = varStmt?.getDeclarationKind() || 'const';
|
|
324
|
+
return {
|
|
325
|
+
name,
|
|
326
|
+
kind: 'variable',
|
|
327
|
+
exported: true,
|
|
328
|
+
file,
|
|
329
|
+
module,
|
|
330
|
+
signature: `${declarationKind} ${name}: ${type}`,
|
|
331
|
+
value,
|
|
332
|
+
docs: varStmt ? this.getJsDocs(varStmt) : undefined,
|
|
333
|
+
lineNumber: varDecl.getStartLineNumber(),
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
extractNamespace(moduleDecl, file, module) {
|
|
337
|
+
const members = [];
|
|
338
|
+
for (const iface of moduleDecl.getInterfaces()) {
|
|
339
|
+
members.push(`interface ${iface.getName()}`);
|
|
340
|
+
}
|
|
341
|
+
for (const typeAlias of moduleDecl.getTypeAliases()) {
|
|
342
|
+
members.push(`type ${typeAlias.getName()}`);
|
|
343
|
+
}
|
|
344
|
+
for (const enumDecl of moduleDecl.getEnums()) {
|
|
345
|
+
members.push(`enum ${enumDecl.getName()}`);
|
|
346
|
+
}
|
|
347
|
+
for (const func of moduleDecl.getFunctions()) {
|
|
348
|
+
members.push(`function ${func.getName()}`);
|
|
349
|
+
}
|
|
350
|
+
for (const cls of moduleDecl.getClasses()) {
|
|
351
|
+
members.push(`class ${cls.getName()}`);
|
|
352
|
+
}
|
|
353
|
+
for (const nestedNs of moduleDecl.getModules()) {
|
|
354
|
+
members.push(`namespace ${nestedNs.getName()}`);
|
|
355
|
+
}
|
|
356
|
+
return {
|
|
357
|
+
name: moduleDecl.getName(),
|
|
358
|
+
kind: 'namespace',
|
|
359
|
+
exported: true,
|
|
360
|
+
file,
|
|
361
|
+
module,
|
|
362
|
+
signature: `namespace ${moduleDecl.getName()} { /* ${members.length} members */ }`,
|
|
363
|
+
members,
|
|
364
|
+
docs: this.getJsDocs(moduleDecl),
|
|
365
|
+
lineNumber: moduleDecl.getStartLineNumber(),
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
extractReExport(exportDecl, file, module) {
|
|
369
|
+
const moduleSpecifier = exportDecl.getModuleSpecifierValue();
|
|
370
|
+
if (!moduleSpecifier)
|
|
371
|
+
return null;
|
|
372
|
+
const namedExports = exportDecl.getNamedExports();
|
|
373
|
+
const isNamespaceExport = exportDecl.isNamespaceExport();
|
|
374
|
+
if (isNamespaceExport) {
|
|
375
|
+
return {
|
|
376
|
+
name: `* from "${moduleSpecifier}"`,
|
|
377
|
+
kind: 're-export',
|
|
378
|
+
exported: true,
|
|
379
|
+
file,
|
|
380
|
+
module,
|
|
381
|
+
signature: `export * from "${moduleSpecifier}"`,
|
|
382
|
+
reExportSource: moduleSpecifier,
|
|
383
|
+
lineNumber: exportDecl.getStartLineNumber(),
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
if (namedExports.length > 0) {
|
|
387
|
+
const names = namedExports.map((ne) => {
|
|
388
|
+
const alias = ne.getAliasNode();
|
|
389
|
+
return alias ? `${ne.getName()} as ${alias.getText()}` : ne.getName();
|
|
390
|
+
});
|
|
391
|
+
return {
|
|
392
|
+
name: `{ ${names.join(', ')} } from "${moduleSpecifier}"`,
|
|
393
|
+
kind: 're-export',
|
|
394
|
+
exported: true,
|
|
395
|
+
file,
|
|
396
|
+
module,
|
|
397
|
+
signature: `export { ${names.join(', ')} } from "${moduleSpecifier}"`,
|
|
398
|
+
reExportSource: moduleSpecifier,
|
|
399
|
+
members: names,
|
|
400
|
+
lineNumber: exportDecl.getStartLineNumber(),
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
405
|
+
simplifyType(type) {
|
|
406
|
+
return type
|
|
407
|
+
.replace(/import\([^)]+\)\./g, '')
|
|
408
|
+
.replace(/typeof import\([^)]+\)\./g, '')
|
|
409
|
+
.replace(/d:\/[^"]+\//g, '')
|
|
410
|
+
.replace(/\s+/g, ' ')
|
|
411
|
+
.trim();
|
|
412
|
+
}
|
|
413
|
+
getJsDocs(node) {
|
|
414
|
+
const nodeWithDocs = node;
|
|
415
|
+
if (typeof nodeWithDocs.getJsDocs === 'function') {
|
|
416
|
+
const jsDocs = nodeWithDocs.getJsDocs();
|
|
417
|
+
if (jsDocs && jsDocs.length > 0) {
|
|
418
|
+
return jsDocs
|
|
419
|
+
.map((d) => d.getDescription?.() || d.getText?.())
|
|
420
|
+
.filter(Boolean)
|
|
421
|
+
.join('\n')
|
|
422
|
+
.trim();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return undefined;
|
|
426
|
+
}
|
|
427
|
+
searchType(typeName) {
|
|
428
|
+
const allTypes = this.extractAllTypes();
|
|
429
|
+
const lowerName = typeName.toLowerCase();
|
|
430
|
+
return (allTypes.find((t) => t.name.toLowerCase() === lowerName) ||
|
|
431
|
+
allTypes.find((t) => t.name.toLowerCase().includes(lowerName)));
|
|
432
|
+
}
|
|
433
|
+
fuzzySearch(query, maxResults = 20) {
|
|
434
|
+
const allTypes = this.extractAllTypes();
|
|
435
|
+
const lowerQuery = query.toLowerCase();
|
|
436
|
+
const words = lowerQuery.split(/\s+/);
|
|
437
|
+
const scored = allTypes.map((type) => {
|
|
438
|
+
let score = 0;
|
|
439
|
+
const lowerName = type.name.toLowerCase();
|
|
440
|
+
const lowerDocs = (type.docs || '').toLowerCase();
|
|
441
|
+
if (lowerName === lowerQuery)
|
|
442
|
+
score += 100;
|
|
443
|
+
else if (lowerName.startsWith(lowerQuery))
|
|
444
|
+
score += 50;
|
|
445
|
+
else if (lowerName.includes(lowerQuery))
|
|
446
|
+
score += 25;
|
|
447
|
+
for (const word of words) {
|
|
448
|
+
if (lowerName.includes(word))
|
|
449
|
+
score += 10;
|
|
450
|
+
if (lowerDocs.includes(word))
|
|
451
|
+
score += 5;
|
|
452
|
+
}
|
|
453
|
+
return { type, score };
|
|
454
|
+
});
|
|
455
|
+
return scored
|
|
456
|
+
.filter((s) => s.score > 0)
|
|
457
|
+
.sort((a, b) => b.score - a.score)
|
|
458
|
+
.slice(0, maxResults)
|
|
459
|
+
.map((s) => s.type);
|
|
460
|
+
}
|
|
461
|
+
getTypesFromModule(moduleName) {
|
|
462
|
+
const allTypes = this.extractAllTypes();
|
|
463
|
+
const lowerModule = moduleName.toLowerCase();
|
|
464
|
+
return allTypes.filter((t) => t.module.toLowerCase() === lowerModule || t.file.toLowerCase().includes(lowerModule));
|
|
465
|
+
}
|
|
466
|
+
getTypesByKind(kind) {
|
|
467
|
+
const allTypes = this.extractAllTypes();
|
|
468
|
+
return allTypes.filter((t) => t.kind === kind);
|
|
469
|
+
}
|
|
470
|
+
getStatistics() {
|
|
471
|
+
const allTypes = this.extractAllTypes();
|
|
472
|
+
const byKind = {
|
|
473
|
+
interface: 0,
|
|
474
|
+
type: 0,
|
|
475
|
+
enum: 0,
|
|
476
|
+
function: 0,
|
|
477
|
+
class: 0,
|
|
478
|
+
variable: 0,
|
|
479
|
+
namespace: 0,
|
|
480
|
+
're-export': 0,
|
|
481
|
+
};
|
|
482
|
+
const moduleMap = new Map();
|
|
483
|
+
for (const type of allTypes) {
|
|
484
|
+
byKind[type.kind]++;
|
|
485
|
+
if (!moduleMap.has(type.module)) {
|
|
486
|
+
moduleMap.set(type.module, {
|
|
487
|
+
module: type.module,
|
|
488
|
+
interfaces: 0,
|
|
489
|
+
types: 0,
|
|
490
|
+
enums: 0,
|
|
491
|
+
functions: 0,
|
|
492
|
+
classes: 0,
|
|
493
|
+
variables: 0,
|
|
494
|
+
namespaces: 0,
|
|
495
|
+
reExports: 0,
|
|
496
|
+
total: 0,
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
const stats = moduleMap.get(type.module);
|
|
500
|
+
stats.total++;
|
|
501
|
+
switch (type.kind) {
|
|
502
|
+
case 'interface':
|
|
503
|
+
stats.interfaces++;
|
|
504
|
+
break;
|
|
505
|
+
case 'type':
|
|
506
|
+
stats.types++;
|
|
507
|
+
break;
|
|
508
|
+
case 'enum':
|
|
509
|
+
stats.enums++;
|
|
510
|
+
break;
|
|
511
|
+
case 'function':
|
|
512
|
+
stats.functions++;
|
|
513
|
+
break;
|
|
514
|
+
case 'class':
|
|
515
|
+
stats.classes++;
|
|
516
|
+
break;
|
|
517
|
+
case 'variable':
|
|
518
|
+
stats.variables++;
|
|
519
|
+
break;
|
|
520
|
+
case 'namespace':
|
|
521
|
+
stats.namespaces++;
|
|
522
|
+
break;
|
|
523
|
+
case 're-export':
|
|
524
|
+
stats.reExports++;
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
return {
|
|
529
|
+
totalDeclarations: allTypes.length,
|
|
530
|
+
byKind,
|
|
531
|
+
byModule: Array.from(moduleMap.values()).sort((a, b) => b.total - a.total),
|
|
532
|
+
topInterfaces: allTypes
|
|
533
|
+
.filter((t) => t.kind === 'interface')
|
|
534
|
+
.slice(0, 10)
|
|
535
|
+
.map((t) => t.name),
|
|
536
|
+
topTypes: allTypes
|
|
537
|
+
.filter((t) => t.kind === 'type')
|
|
538
|
+
.slice(0, 10)
|
|
539
|
+
.map((t) => t.name),
|
|
540
|
+
topFunctions: allTypes
|
|
541
|
+
.filter((t) => t.kind === 'function')
|
|
542
|
+
.slice(0, 10)
|
|
543
|
+
.map((t) => t.name),
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
getTypeHierarchy(typeName) {
|
|
547
|
+
const allTypes = this.extractAllTypes();
|
|
548
|
+
const type = allTypes.find((t) => t.name.toLowerCase() === typeName.toLowerCase());
|
|
549
|
+
if (!type)
|
|
550
|
+
return null;
|
|
551
|
+
const parents = [];
|
|
552
|
+
const children = [];
|
|
553
|
+
if (type.extends) {
|
|
554
|
+
parents.push(...type.extends);
|
|
555
|
+
}
|
|
556
|
+
if (type.implements) {
|
|
557
|
+
parents.push(...type.implements);
|
|
558
|
+
}
|
|
559
|
+
for (const t of allTypes) {
|
|
560
|
+
if (t.extends?.some((e) => e.includes(type.name))) {
|
|
561
|
+
children.push(t.name);
|
|
562
|
+
}
|
|
563
|
+
if (t.implements?.some((i) => i.includes(type.name))) {
|
|
564
|
+
children.push(t.name);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
return { type, parents, children };
|
|
568
|
+
}
|
|
569
|
+
analyzeDependencies() {
|
|
570
|
+
const dependencies = new Map();
|
|
571
|
+
const allTypes = this.extractAllTypes();
|
|
572
|
+
for (const type of allTypes) {
|
|
573
|
+
if (!dependencies.has(type.module)) {
|
|
574
|
+
dependencies.set(type.module, {
|
|
575
|
+
module: type.module,
|
|
576
|
+
imports: [],
|
|
577
|
+
exports: [type.name],
|
|
578
|
+
reExportsFrom: [],
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
dependencies.get(type.module).exports.push(type.name);
|
|
583
|
+
}
|
|
584
|
+
if (type.kind === 're-export' && type.reExportSource) {
|
|
585
|
+
dependencies.get(type.module).reExportsFrom.push(type.reExportSource);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
return Array.from(dependencies.values());
|
|
589
|
+
}
|
|
590
|
+
getVariables() {
|
|
591
|
+
return this.getTypesByKind('variable');
|
|
592
|
+
}
|
|
593
|
+
getConstants() {
|
|
594
|
+
return this.getVariables().filter((v) => v.signature.startsWith('const'));
|
|
595
|
+
}
|
|
596
|
+
getNamespaces() {
|
|
597
|
+
return this.getTypesByKind('namespace');
|
|
598
|
+
}
|
|
599
|
+
getInterfaces() {
|
|
600
|
+
return this.getTypesByKind('interface');
|
|
601
|
+
}
|
|
602
|
+
getEnums() {
|
|
603
|
+
return this.getTypesByKind('enum');
|
|
604
|
+
}
|
|
605
|
+
getFunctions() {
|
|
606
|
+
return this.getTypesByKind('function');
|
|
607
|
+
}
|
|
608
|
+
getClasses() {
|
|
609
|
+
return this.getTypesByKind('class');
|
|
610
|
+
}
|
|
611
|
+
getTypes() {
|
|
612
|
+
return this.getTypesByKind('type');
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
//# sourceMappingURL=ast-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-parser.js","sourceRoot":"","sources":["../src/ast-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,GAWR,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAgF5B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