milens 0.4.0 → 0.4.2
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/LICENSE +75 -75
- package/README.md +479 -453
- package/dist/analyzer/config.d.ts +8 -0
- package/dist/analyzer/config.d.ts.map +1 -0
- package/dist/analyzer/config.js +132 -0
- package/dist/analyzer/config.js.map +1 -0
- package/dist/analyzer/engine.d.ts.map +1 -1
- package/dist/analyzer/engine.js +77 -4
- package/dist/analyzer/engine.js.map +1 -1
- package/dist/analyzer/enrich.d.ts +18 -0
- package/dist/analyzer/enrich.d.ts.map +1 -0
- package/dist/analyzer/enrich.js +139 -0
- package/dist/analyzer/enrich.js.map +1 -0
- package/dist/analyzer/resolver.d.ts +10 -1
- package/dist/analyzer/resolver.d.ts.map +1 -1
- package/dist/analyzer/resolver.js +309 -18
- package/dist/analyzer/resolver.js.map +1 -1
- package/dist/cli.js +478 -32
- package/dist/cli.js.map +1 -1
- package/dist/parser/extract.d.ts +2 -0
- package/dist/parser/extract.d.ts.map +1 -1
- package/dist/parser/extract.js +27 -3
- package/dist/parser/extract.js.map +1 -1
- package/dist/parser/lang-go.js +22 -22
- package/dist/parser/lang-go.js.map +1 -1
- package/dist/parser/lang-java.d.ts.map +1 -1
- package/dist/parser/lang-java.js +29 -25
- package/dist/parser/lang-java.js.map +1 -1
- package/dist/parser/lang-js.d.ts.map +1 -1
- package/dist/parser/lang-js.js +60 -43
- package/dist/parser/lang-js.js.map +1 -1
- package/dist/parser/lang-php.d.ts.map +1 -1
- package/dist/parser/lang-php.js +39 -33
- package/dist/parser/lang-php.js.map +1 -1
- package/dist/parser/lang-py.js +31 -31
- package/dist/parser/lang-ruby.d.ts +4 -0
- package/dist/parser/lang-ruby.d.ts.map +1 -0
- package/dist/parser/lang-ruby.js +50 -0
- package/dist/parser/lang-ruby.js.map +1 -0
- package/dist/parser/lang-rust.js +24 -24
- package/dist/parser/lang-ts.d.ts.map +1 -1
- package/dist/parser/lang-ts.js +73 -57
- package/dist/parser/lang-ts.js.map +1 -1
- package/dist/parser/languages.d.ts.map +1 -1
- package/dist/parser/languages.js +2 -1
- package/dist/parser/languages.js.map +1 -1
- package/dist/server/mcp.d.ts.map +1 -1
- package/dist/server/mcp.js +883 -95
- package/dist/server/mcp.js.map +1 -1
- package/dist/skills.js +100 -88
- package/dist/skills.js.map +1 -1
- package/dist/store/db.d.ts +62 -0
- package/dist/store/db.d.ts.map +1 -1
- package/dist/store/db.js +244 -59
- package/dist/store/db.js.map +1 -1
- package/dist/store/schema.sql +83 -60
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +60 -60
package/dist/parser/extract.js
CHANGED
|
@@ -119,15 +119,17 @@ const SYMBOL_QUERY_TYPES = [
|
|
|
119
119
|
{ key: 'enums', kind: 'enum' },
|
|
120
120
|
{ key: 'structs', kind: 'struct' },
|
|
121
121
|
{ key: 'traits', kind: 'trait' },
|
|
122
|
+
{ key: 'modules', kind: 'module' },
|
|
122
123
|
];
|
|
123
124
|
// Container kinds for method → parent resolution
|
|
124
|
-
const CONTAINER_KINDS = new Set(['class', 'struct', 'trait']);
|
|
125
|
+
const CONTAINER_KINDS = new Set(['class', 'struct', 'trait', 'module']);
|
|
125
126
|
// ── Universal symbol extractor ──
|
|
126
127
|
export function extractFromTree(tree, lang, spec, filePath) {
|
|
127
128
|
const symbols = [];
|
|
128
129
|
const imports = [];
|
|
129
130
|
const calls = [];
|
|
130
131
|
const heritage = [];
|
|
132
|
+
const reExports = [];
|
|
131
133
|
const exportedNames = new Set();
|
|
132
134
|
const root = tree.rootNode;
|
|
133
135
|
function runQuery(queryStr) {
|
|
@@ -192,7 +194,7 @@ export function extractFromTree(tree, lang, spec, filePath) {
|
|
|
192
194
|
continue;
|
|
193
195
|
// Filter: if query captures @_req (require() pattern), verify identifier text
|
|
194
196
|
const reqCapture = captureText(match, '_req');
|
|
195
|
-
if (reqCapture && reqCapture !== 'require')
|
|
197
|
+
if (reqCapture && reqCapture !== 'require' && reqCapture !== 'require_relative')
|
|
196
198
|
continue;
|
|
197
199
|
const cleanSource = source.replace(/^['"]|['"]$/g, '');
|
|
198
200
|
const names = collectImportNames(defNode);
|
|
@@ -242,6 +244,28 @@ export function extractFromTree(tree, lang, spec, filePath) {
|
|
|
242
244
|
});
|
|
243
245
|
}
|
|
244
246
|
}
|
|
245
|
-
|
|
247
|
+
// ── Extract re-exports (export { X } from './y', export * from './y') ──
|
|
248
|
+
if (spec.queries.reExports) {
|
|
249
|
+
for (const match of runQuery(spec.queries.reExports)) {
|
|
250
|
+
const source = captureText(match, 'source');
|
|
251
|
+
const defNode = captureNode(match, 'def');
|
|
252
|
+
if (!source || !defNode)
|
|
253
|
+
continue;
|
|
254
|
+
const cleanSource = source.replace(/^['"]|['"]$/g, '');
|
|
255
|
+
const names = [];
|
|
256
|
+
// Collect re-exported names from export_clause
|
|
257
|
+
for (const capture of match.captures) {
|
|
258
|
+
if (capture.name === 'name')
|
|
259
|
+
names.push(capture.node.text);
|
|
260
|
+
}
|
|
261
|
+
reExports.push({
|
|
262
|
+
filePath,
|
|
263
|
+
modulePath: cleanSource,
|
|
264
|
+
names,
|
|
265
|
+
line: defNode.startPosition.row + 1,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return { symbols, imports, calls, heritage, exportedNames, reExports };
|
|
246
270
|
}
|
|
247
271
|
//# sourceMappingURL=extract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../src/parser/extract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../src/parser/extract.ts"],"names":[],"mappings":"AA2BA,uEAAuE;AACvE,iFAAiF;AACjF,MAAM,UAAU,GAAG,IAAI,GAAG,EAA+B,CAAC;AAE1D,SAAS,iBAAiB,CAAC,IAAqB,EAAE,QAAgB;IAChE,oGAAoG;IACpG,MAAM,QAA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;YAED,SAAS,CAAC,IAAI,CAAC;gBACb,QAAQ;gBACR,UAAU,EAAE,WAAW;gBACvB,KAAK;gBACL,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,GAAG,CAAC;aACpC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AACzE,CAAC"}
|
package/dist/parser/lang-go.js
CHANGED
|
@@ -5,33 +5,33 @@ const spec = {
|
|
|
5
5
|
extensions: ['.go'],
|
|
6
6
|
wasmName: 'tree-sitter-go',
|
|
7
7
|
queries: {
|
|
8
|
-
functions: `[
|
|
9
|
-
(function_declaration name: (identifier) @name) @def
|
|
10
|
-
(const_declaration (const_spec name: (identifier) @name)) @def
|
|
11
|
-
(var_declaration (var_spec name: (identifier) @name)) @def
|
|
8
|
+
functions: `[
|
|
9
|
+
(function_declaration name: (identifier) @name) @def
|
|
10
|
+
(const_declaration (const_spec name: (identifier) @name)) @def
|
|
11
|
+
(var_declaration (var_spec name: (identifier) @name)) @def
|
|
12
12
|
]`,
|
|
13
|
-
methods: `(method_declaration
|
|
14
|
-
name: (field_identifier) @name
|
|
13
|
+
methods: `(method_declaration
|
|
14
|
+
name: (field_identifier) @name
|
|
15
15
|
) @def`,
|
|
16
|
-
structs: `(type_declaration
|
|
17
|
-
(type_spec
|
|
18
|
-
name: (type_identifier) @name
|
|
19
|
-
type: (struct_type)
|
|
20
|
-
)
|
|
16
|
+
structs: `(type_declaration
|
|
17
|
+
(type_spec
|
|
18
|
+
name: (type_identifier) @name
|
|
19
|
+
type: (struct_type)
|
|
20
|
+
)
|
|
21
21
|
) @def`,
|
|
22
|
-
interfaces: `(type_declaration
|
|
23
|
-
(type_spec
|
|
24
|
-
name: (type_identifier) @name
|
|
25
|
-
type: (interface_type)
|
|
26
|
-
)
|
|
22
|
+
interfaces: `(type_declaration
|
|
23
|
+
(type_spec
|
|
24
|
+
name: (type_identifier) @name
|
|
25
|
+
type: (interface_type)
|
|
26
|
+
)
|
|
27
27
|
) @def`,
|
|
28
|
-
imports: `(import_spec
|
|
29
|
-
path: (interpreted_string_literal) @source
|
|
28
|
+
imports: `(import_spec
|
|
29
|
+
path: (interpreted_string_literal) @source
|
|
30
30
|
) @def`,
|
|
31
|
-
calls: `
|
|
32
|
-
(call_expression function: (identifier) @callee) @def
|
|
33
|
-
(call_expression function: (selector_expression field: (field_identifier) @callee)) @def
|
|
34
|
-
`,
|
|
31
|
+
calls: `[
|
|
32
|
+
(call_expression function: (identifier) @callee) @def
|
|
33
|
+
(call_expression function: (selector_expression operand: (_) @receiver field: (field_identifier) @callee)) @def
|
|
34
|
+
]`,
|
|
35
35
|
},
|
|
36
36
|
resolveImport(raw, fromFile, root, _aliases) {
|
|
37
37
|
// Go imports are package paths — only resolve local packages
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-go.js","sourceRoot":"","sources":["../../src/parser/lang-go.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE;QACP,SAAS,EAAE;;;;MAIT;QACF,OAAO,EAAE;;WAEF;QACP,OAAO,EAAE;;;;;WAKF;QACP,UAAU,EAAE;;;;;WAKL;QACP,OAAO,EAAE;;WAEF;QACP,KAAK,EAAE;;;
|
|
1
|
+
{"version":3,"file":"lang-go.js","sourceRoot":"","sources":["../../src/parser/lang-go.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,IAAI;IACR,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE;QACP,SAAS,EAAE;;;;MAIT;QACF,OAAO,EAAE;;WAEF;QACP,OAAO,EAAE;;;;;WAKF;QACP,UAAU,EAAE;;;;;WAKL;QACP,OAAO,EAAE;;WAEF;QACP,KAAK,EAAE;;;MAGL;KACH;IACD,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ;QACzC,6DAA6D;QAC7D,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC5C,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC,CAAC,kBAAkB;QAC5D,+CAA+C;QAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACrC,IAAI,UAAU,CAAC,MAAM,CAAC;YAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-java.d.ts","sourceRoot":"","sources":["../../src/parser/lang-java.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lang-java.d.ts","sourceRoot":"","sources":["../../src/parser/lang-java.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,QAsDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/parser/lang-java.js
CHANGED
|
@@ -5,37 +5,41 @@ const spec = {
|
|
|
5
5
|
extensions: ['.java'],
|
|
6
6
|
wasmName: 'tree-sitter-java',
|
|
7
7
|
queries: {
|
|
8
|
-
classes: `[
|
|
9
|
-
(class_declaration name: (identifier) @name) @def
|
|
10
|
-
(record_declaration name: (identifier) @name) @def
|
|
8
|
+
classes: `[
|
|
9
|
+
(class_declaration name: (identifier) @name) @def
|
|
10
|
+
(record_declaration name: (identifier) @name) @def
|
|
11
11
|
]`,
|
|
12
12
|
interfaces: `(interface_declaration name: (identifier) @name) @def`,
|
|
13
|
-
methods: `[
|
|
14
|
-
(method_declaration name: (identifier) @name) @def
|
|
15
|
-
(constructor_declaration name: (identifier) @name) @def
|
|
13
|
+
methods: `[
|
|
14
|
+
(method_declaration name: (identifier) @name) @def
|
|
15
|
+
(constructor_declaration name: (identifier) @name) @def
|
|
16
16
|
]`,
|
|
17
17
|
enums: `(enum_declaration name: (identifier) @name) @def`,
|
|
18
|
-
imports: `[
|
|
19
|
-
(import_declaration (scoped_identifier) @source) @def
|
|
20
|
-
(import_declaration "static" (scoped_identifier) @source) @def
|
|
18
|
+
imports: `[
|
|
19
|
+
(import_declaration (scoped_identifier) @source) @def
|
|
20
|
+
(import_declaration "static" (scoped_identifier) @source) @def
|
|
21
21
|
]`,
|
|
22
|
-
calls: `[
|
|
23
|
-
(method_invocation
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(
|
|
28
|
-
|
|
22
|
+
calls: `[
|
|
23
|
+
(method_invocation
|
|
24
|
+
object: (_) @receiver
|
|
25
|
+
name: (identifier) @callee
|
|
26
|
+
) @def
|
|
27
|
+
(method_invocation
|
|
28
|
+
name: (identifier) @callee
|
|
29
|
+
) @def
|
|
30
|
+
(object_creation_expression type: (type_identifier) @callee) @def
|
|
31
|
+
(marker_annotation name: (identifier) @callee) @def
|
|
32
|
+
(annotation name: (identifier) @callee) @def
|
|
29
33
|
]`,
|
|
30
|
-
heritage: `[
|
|
31
|
-
(class_declaration
|
|
32
|
-
name: (identifier) @child
|
|
33
|
-
(superclass (type_identifier) @parent)
|
|
34
|
-
) @def
|
|
35
|
-
(class_declaration
|
|
36
|
-
name: (identifier) @child
|
|
37
|
-
(super_interfaces (type_list (type_identifier) @parent))
|
|
38
|
-
) @def
|
|
34
|
+
heritage: `[
|
|
35
|
+
(class_declaration
|
|
36
|
+
name: (identifier) @child
|
|
37
|
+
(superclass (type_identifier) @parent)
|
|
38
|
+
) @def
|
|
39
|
+
(class_declaration
|
|
40
|
+
name: (identifier) @child
|
|
41
|
+
(super_interfaces (type_list (type_identifier) @parent))
|
|
42
|
+
) @def
|
|
39
43
|
]`,
|
|
40
44
|
},
|
|
41
45
|
resolveImport(raw, _fromFile, root, _aliases) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-java.js","sourceRoot":"","sources":["../../src/parser/lang-java.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,MAAM;IACV,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE;QACP,OAAO,EAAE;;;MAGP;QACF,UAAU,EAAE,uDAAuD;QACnE,OAAO,EAAE;;;MAGP;QACF,KAAK,EAAE,kDAAkD;QACzD,OAAO,EAAE;;;MAGP;QACF,KAAK,EAAE
|
|
1
|
+
{"version":3,"file":"lang-java.js","sourceRoot":"","sources":["../../src/parser/lang-java.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,MAAM;I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,EAAE,
|
|
1
|
+
{"version":3,"file":"lang-js.d.ts","sourceRoot":"","sources":["../../src/parser/lang-js.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,QAqFX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/parser/lang-js.js
CHANGED
|
@@ -5,56 +5,73 @@ const spec = {
|
|
|
5
5
|
extensions: ['.js', '.jsx', '.mjs', '.cjs'],
|
|
6
6
|
wasmName: 'tree-sitter-javascript',
|
|
7
7
|
queries: {
|
|
8
|
-
functions: `[
|
|
9
|
-
(function_declaration name: (identifier) @name) @def
|
|
10
|
-
(lexical_declaration
|
|
11
|
-
(variable_declarator
|
|
12
|
-
name: (identifier) @name
|
|
13
|
-
value: (arrow_function)
|
|
14
|
-
)
|
|
15
|
-
) @def
|
|
8
|
+
functions: `[
|
|
9
|
+
(function_declaration name: (identifier) @name) @def
|
|
10
|
+
(lexical_declaration
|
|
11
|
+
(variable_declarator
|
|
12
|
+
name: (identifier) @name
|
|
13
|
+
value: (arrow_function)
|
|
14
|
+
)
|
|
15
|
+
) @def
|
|
16
16
|
]`,
|
|
17
17
|
classes: `(class_declaration name: (identifier) @name) @def`,
|
|
18
18
|
methods: `(method_definition name: (property_identifier) @name) @def`,
|
|
19
|
-
imports: `[
|
|
20
|
-
(import_statement
|
|
21
|
-
source: (string (string_fragment) @source)
|
|
22
|
-
) @def
|
|
23
|
-
(lexical_declaration
|
|
24
|
-
(variable_declarator
|
|
25
|
-
value: (call_expression
|
|
26
|
-
function: (identifier) @_req
|
|
27
|
-
arguments: (arguments (string (string_fragment) @source))
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
) @def
|
|
19
|
+
imports: `[
|
|
20
|
+
(import_statement
|
|
21
|
+
source: (string (string_fragment) @source)
|
|
22
|
+
) @def
|
|
23
|
+
(lexical_declaration
|
|
24
|
+
(variable_declarator
|
|
25
|
+
value: (call_expression
|
|
26
|
+
function: (identifier) @_req
|
|
27
|
+
arguments: (arguments (string (string_fragment) @source))
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
) @def
|
|
31
31
|
]`,
|
|
32
|
-
exports: `[
|
|
33
|
-
(export_statement
|
|
34
|
-
declaration: (function_declaration name: (identifier) @name)
|
|
35
|
-
)
|
|
36
|
-
(export_statement
|
|
37
|
-
declaration: (class_declaration name: (identifier) @name)
|
|
38
|
-
)
|
|
39
|
-
(export_statement
|
|
40
|
-
declaration: (lexical_declaration
|
|
41
|
-
(variable_declarator name: (identifier) @name)
|
|
42
|
-
)
|
|
43
|
-
)
|
|
44
|
-
(export_statement
|
|
45
|
-
(export_clause (export_specifier name: (identifier) @name))
|
|
46
|
-
)
|
|
32
|
+
exports: `[
|
|
33
|
+
(export_statement
|
|
34
|
+
declaration: (function_declaration name: (identifier) @name)
|
|
35
|
+
)
|
|
36
|
+
(export_statement
|
|
37
|
+
declaration: (class_declaration name: (identifier) @name)
|
|
38
|
+
)
|
|
39
|
+
(export_statement
|
|
40
|
+
declaration: (lexical_declaration
|
|
41
|
+
(variable_declarator name: (identifier) @name)
|
|
42
|
+
)
|
|
43
|
+
)
|
|
44
|
+
(export_statement
|
|
45
|
+
(export_clause (export_specifier name: (identifier) @name))
|
|
46
|
+
)
|
|
47
47
|
]`,
|
|
48
|
-
calls: `
|
|
49
|
-
(call_expression function: (identifier) @callee) @def
|
|
50
|
-
(call_expression function: (member_expression property: (property_identifier) @callee)) @def
|
|
51
|
-
`,
|
|
52
|
-
heritage: `(class_declaration
|
|
53
|
-
name: (identifier) @child
|
|
54
|
-
(class_heritage (identifier) @parent)
|
|
48
|
+
calls: `[
|
|
49
|
+
(call_expression function: (identifier) @callee) @def
|
|
50
|
+
(call_expression function: (member_expression object: (_) @receiver property: (property_identifier) @callee)) @def
|
|
51
|
+
]`,
|
|
52
|
+
heritage: `(class_declaration
|
|
53
|
+
name: (identifier) @child
|
|
54
|
+
(class_heritage (identifier) @parent)
|
|
55
55
|
) @def`,
|
|
56
|
+
reExports: `[
|
|
57
|
+
(export_statement
|
|
58
|
+
source: (string (string_fragment) @source)
|
|
59
|
+
(export_clause (export_specifier name: (identifier) @name))
|
|
60
|
+
) @def
|
|
61
|
+
(export_statement
|
|
62
|
+
source: (string (string_fragment) @source)
|
|
63
|
+
"*"
|
|
64
|
+
) @def
|
|
65
|
+
]`,
|
|
56
66
|
},
|
|
57
|
-
resolveImport(raw, fromFile, root,
|
|
67
|
+
resolveImport(raw, fromFile, root, aliases) {
|
|
68
|
+
// Check aliases first (e.g. @ → src)
|
|
69
|
+
for (const [alias, target] of Object.entries(aliases)) {
|
|
70
|
+
if (raw.startsWith(alias + '/') || raw === alias) {
|
|
71
|
+
raw = raw.replace(alias, target);
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
58
75
|
if (!raw.startsWith('.') && !raw.startsWith('/'))
|
|
59
76
|
return null;
|
|
60
77
|
const dir = dirname(join(root, fromFile));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-js.js","sourceRoot":"","sources":["../../src/parser/lang-js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,YAAY;IAChB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,QAAQ,EAAE,wBAAwB;IAClC,OAAO,EAAE;QACP,SAAS,EAAE;;;;;;;;MAQT;QACF,OAAO,EAAE,mDAAmD;QAC5D,OAAO,EAAE,4DAA4D;QACrE,OAAO,EAAE;;;;;;;;;;;;MAYP;QACF,OAAO,EAAE;;;;;;;;;;;;;;;MAeP;QACF,KAAK,EAAE;;;
|
|
1
|
+
{"version":3,"file":"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EAAE,GAAG,CAAC,CAAC;QAC5B,MAAM,UAAU,GAAG;YACjB,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM;YAC1C,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;SAChD,CAAC;QACF,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC;YAC3B,IAAI,UAAU,CAAC,CAAC,CAAC;gBAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAClE,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-php.d.ts","sourceRoot":"","sources":["../../src/parser/lang-php.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lang-php.d.ts","sourceRoot":"","sources":["../../src/parser/lang-php.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,QAoEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/parser/lang-php.js
CHANGED
|
@@ -5,45 +5,51 @@ const spec = {
|
|
|
5
5
|
extensions: ['.php'],
|
|
6
6
|
wasmName: 'tree-sitter-php',
|
|
7
7
|
queries: {
|
|
8
|
-
functions: `[
|
|
9
|
-
(function_definition name: (name) @name) @def
|
|
10
|
-
(const_declaration (const_element (name) @name)) @def
|
|
8
|
+
functions: `[
|
|
9
|
+
(function_definition name: (name) @name) @def
|
|
10
|
+
(const_declaration (const_element (name) @name)) @def
|
|
11
11
|
]`,
|
|
12
12
|
classes: `(class_declaration name: (name) @name) @def`,
|
|
13
13
|
interfaces: `(interface_declaration name: (name) @name) @def`,
|
|
14
14
|
traits: `(trait_declaration name: (name) @name) @def`,
|
|
15
15
|
methods: `(method_declaration name: (name) @name) @def`,
|
|
16
|
-
imports: `[
|
|
17
|
-
(namespace_use_declaration
|
|
18
|
-
(namespace_use_clause (qualified_name) @source)
|
|
19
|
-
) @def
|
|
20
|
-
(expression_statement
|
|
21
|
-
(include_expression (string (string_content) @source))
|
|
22
|
-
) @def
|
|
16
|
+
imports: `[
|
|
17
|
+
(namespace_use_declaration
|
|
18
|
+
(namespace_use_clause (qualified_name) @source)
|
|
19
|
+
) @def
|
|
20
|
+
(expression_statement
|
|
21
|
+
(include_expression (string (string_content) @source))
|
|
22
|
+
) @def
|
|
23
23
|
]`,
|
|
24
|
-
calls: `
|
|
25
|
-
(function_call_expression
|
|
26
|
-
function: (name) @callee
|
|
27
|
-
) @def
|
|
28
|
-
(member_call_expression
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
name: (name) @
|
|
35
|
-
|
|
36
|
-
) @def
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
) @def
|
|
24
|
+
calls: `[
|
|
25
|
+
(function_call_expression
|
|
26
|
+
function: (name) @callee
|
|
27
|
+
) @def
|
|
28
|
+
(member_call_expression
|
|
29
|
+
object: (_) @receiver
|
|
30
|
+
name: (name) @callee
|
|
31
|
+
) @def
|
|
32
|
+
(scoped_call_expression
|
|
33
|
+
scope: (name) @receiver
|
|
34
|
+
name: (name) @callee
|
|
35
|
+
) @def
|
|
36
|
+
(object_creation_expression (name) @callee) @def
|
|
37
|
+
]`,
|
|
38
|
+
heritage: `[
|
|
39
|
+
(class_declaration
|
|
40
|
+
name: (name) @child
|
|
41
|
+
(base_clause (name) @parent)
|
|
42
|
+
) @def
|
|
43
|
+
(class_declaration
|
|
44
|
+
name: (name) @child
|
|
45
|
+
(class_interface_clause (name) @parent)
|
|
46
|
+
) @def
|
|
47
|
+
(class_declaration
|
|
48
|
+
name: (name) @child
|
|
49
|
+
body: (declaration_list
|
|
50
|
+
(use_declaration (name) @parent)
|
|
51
|
+
)
|
|
52
|
+
) @def
|
|
47
53
|
]`,
|
|
48
54
|
},
|
|
49
55
|
resolveImport(raw, _fromFile, root, aliases) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang-php.js","sourceRoot":"","sources":["../../src/parser/lang-php.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,KAAK;IACT,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,QAAQ,EAAE,iBAAiB;IAC3B,OAAO,EAAE;QACP,SAAS,EAAE;;;MAGT;QACF,OAAO,EAAE,6CAA6C;QACtD,UAAU,EAAE,iDAAiD;QAC7D,MAAM,EAAE,6CAA6C;QACrD,OAAO,EAAE,8CAA8C;QACvD,OAAO,EAAE;;;;;;;MAOP;QACF,KAAK,EAAE
|
|
1
|
+
{"version":3,"file":"lang-php.js","sourceRoot":"","sources":["../../src/parser/lang-php.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,IAAI,GAAa;IACrB,EAAE,EAAE,KAAK;IACT,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,QAAQ,EAAE,iBAAiB;IAC3B,OAAO,EAAE;QACP,SAAS,EAAE;;;MAGT;QACF,OAAO,EAAE,6CAA6C;QACtD,UAAU,EAAE,iDAAiD;QAC7D,MA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package/dist/parser/lang-py.js
CHANGED
|
@@ -5,43 +5,43 @@ const spec = {
|
|
|
5
5
|
extensions: ['.py'],
|
|
6
6
|
wasmName: 'tree-sitter-python',
|
|
7
7
|
queries: {
|
|
8
|
-
functions: `[
|
|
9
|
-
(module (function_definition name: (identifier) @name) @def)
|
|
10
|
-
(module (decorated_definition definition: (function_definition name: (identifier) @name) @def))
|
|
8
|
+
functions: `[
|
|
9
|
+
(module (function_definition name: (identifier) @name) @def)
|
|
10
|
+
(module (decorated_definition definition: (function_definition name: (identifier) @name) @def))
|
|
11
11
|
]`,
|
|
12
|
-
classes: `[
|
|
13
|
-
(class_definition name: (identifier) @name) @def
|
|
14
|
-
(decorated_definition definition: (class_definition name: (identifier) @name) @def)
|
|
12
|
+
classes: `[
|
|
13
|
+
(class_definition name: (identifier) @name) @def
|
|
14
|
+
(decorated_definition definition: (class_definition name: (identifier) @name) @def)
|
|
15
15
|
]`,
|
|
16
|
-
methods: `[
|
|
17
|
-
(class_definition body: (block (function_definition name: (identifier) @name) @def))
|
|
18
|
-
(class_definition body: (block (decorated_definition definition: (function_definition name: (identifier) @name) @def)))
|
|
16
|
+
methods: `[
|
|
17
|
+
(class_definition body: (block (function_definition name: (identifier) @name) @def))
|
|
18
|
+
(class_definition body: (block (decorated_definition definition: (function_definition name: (identifier) @name) @def)))
|
|
19
19
|
]`,
|
|
20
|
-
imports: `[
|
|
21
|
-
(import_from_statement
|
|
22
|
-
module_name: (dotted_name) @source
|
|
23
|
-
) @def
|
|
24
|
-
(import_statement
|
|
25
|
-
name: (dotted_name) @source
|
|
26
|
-
) @def
|
|
20
|
+
imports: `[
|
|
21
|
+
(import_from_statement
|
|
22
|
+
module_name: (dotted_name) @source
|
|
23
|
+
) @def
|
|
24
|
+
(import_statement
|
|
25
|
+
name: (dotted_name) @source
|
|
26
|
+
) @def
|
|
27
27
|
]`,
|
|
28
|
-
exports: `(module
|
|
29
|
-
(expression_statement
|
|
30
|
-
(assignment
|
|
31
|
-
left: (identifier) @_all
|
|
32
|
-
right: (list (string (string_content) @name))
|
|
33
|
-
)
|
|
34
|
-
)
|
|
28
|
+
exports: `(module
|
|
29
|
+
(expression_statement
|
|
30
|
+
(assignment
|
|
31
|
+
left: (identifier) @_all
|
|
32
|
+
right: (list (string (string_content) @name))
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
35
|
)`,
|
|
36
|
-
calls: `[
|
|
37
|
-
(call function: (identifier) @callee) @def
|
|
38
|
-
(call function: (attribute attribute: (identifier) @callee)) @def
|
|
39
|
-
(decorator (identifier) @callee) @def
|
|
40
|
-
(decorator (call function: (identifier) @callee)) @def
|
|
36
|
+
calls: `[
|
|
37
|
+
(call function: (identifier) @callee) @def
|
|
38
|
+
(call function: (attribute object: (_) @receiver attribute: (identifier) @callee)) @def
|
|
39
|
+
(decorator (identifier) @callee) @def
|
|
40
|
+
(decorator (call function: (identifier) @callee)) @def
|
|
41
41
|
]`,
|
|
42
|
-
heritage: `(class_definition
|
|
43
|
-
name: (identifier) @child
|
|
44
|
-
superclasses: (argument_list (identifier) @parent)
|
|
42
|
+
heritage: `(class_definition
|
|
43
|
+
name: (identifier) @child
|
|
44
|
+
superclasses: (argument_list (identifier) @parent)
|
|
45
45
|
) @def`,
|
|
46
46
|
},
|
|
47
47
|
resolveImport(raw, fromFile, root, _aliases) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lang-ruby.d.ts","sourceRoot":"","sources":["../../src/parser/lang-ruby.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,QA2CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { join, dirname, relative } from 'node:path';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
const spec = {
|
|
4
|
+
id: 'ruby',
|
|
5
|
+
extensions: ['.rb', '.rake'],
|
|
6
|
+
wasmName: 'tree-sitter-ruby',
|
|
7
|
+
queries: {
|
|
8
|
+
classes: `(class name: (constant) @name) @def`,
|
|
9
|
+
modules: `(module name: (constant) @name) @def`,
|
|
10
|
+
methods: `[
|
|
11
|
+
(method name: (identifier) @name) @def
|
|
12
|
+
(singleton_method name: (identifier) @name) @def
|
|
13
|
+
]`,
|
|
14
|
+
imports: `(call
|
|
15
|
+
method: (identifier) @_req
|
|
16
|
+
arguments: (argument_list (string (string_content) @source))
|
|
17
|
+
) @def`,
|
|
18
|
+
calls: `[
|
|
19
|
+
(call method: (identifier) @callee) @def
|
|
20
|
+
(call receiver: (_) @receiver method: (identifier) @callee) @def
|
|
21
|
+
]`,
|
|
22
|
+
heritage: `[
|
|
23
|
+
(class name: (constant) @child superclass: (superclass (constant) @parent)) @def
|
|
24
|
+
(class name: (constant) @child superclass: (superclass (scope_resolution name: (constant) @parent))) @def
|
|
25
|
+
]`,
|
|
26
|
+
},
|
|
27
|
+
resolveImport(raw, fromFile, root, _aliases) {
|
|
28
|
+
// Relative paths (require_relative)
|
|
29
|
+
if (raw.startsWith('.')) {
|
|
30
|
+
const dir = dirname(join(root, fromFile));
|
|
31
|
+
const candidate = join(dir, raw) + '.rb';
|
|
32
|
+
if (existsSync(candidate))
|
|
33
|
+
return relative(root, candidate).replace(/\\/g, '/');
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
// Absolute paths from load path / Rails conventions
|
|
37
|
+
const candidates = [
|
|
38
|
+
join(root, raw) + '.rb',
|
|
39
|
+
join(root, 'lib', raw) + '.rb',
|
|
40
|
+
join(root, 'app', raw) + '.rb',
|
|
41
|
+
];
|
|
42
|
+
for (const p of candidates) {
|
|
43
|
+
if (existsSync(p))
|
|
44
|
+
return relative(root, p).replace(/\\/g, '/');
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export default spec;
|
|
50
|
+
//# sourceMappingURL=lang-ruby.js.map
|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