gitnexus 1.6.6-rc.113 → 1.6.6-rc.114

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.
@@ -11,11 +11,35 @@ const PYTHON_SCOPE_QUERY = `
11
11
  (module) @scope.module
12
12
  (class_definition) @scope.class
13
13
  (function_definition) @scope.function
14
+ (lambda) @scope.function
14
15
 
15
16
  ;; Declarations
16
17
  (class_definition
17
18
  name: (identifier) @declaration.name) @declaration.class
18
19
 
20
+ ;; Heritage — bare identifier
21
+ ;; NOTE: captures.ts on main already synthesizes @reference.inherits for
22
+ ;; qualified bases via #1951/#1956. These @heritage.* patterns are redundant
23
+ ;; with that synthesis but kept as documentation and a safety net for the
24
+ ;; generic heritage extractor path. They produce topicOf edges that the
25
+ ;; resolution pipeline ignores when the synthesis path wins.
26
+ (class_definition
27
+ name: (identifier) @heritage.class
28
+ superclasses: (argument_list
29
+ (identifier) @heritage.extends)) @heritage
30
+
31
+ ;; Heritage — qualified base (module.Class)
32
+ (class_definition
33
+ name: (identifier) @heritage.class
34
+ superclasses: (argument_list
35
+ (attribute) @heritage.extends)) @heritage
36
+
37
+ ;; Heritage — subscripted/generic base (Generic[T])
38
+ (class_definition
39
+ name: (identifier) @heritage.class
40
+ superclasses: (argument_list
41
+ (subscript) @heritage.extends)) @heritage
42
+
19
43
  (function_definition
20
44
  name: (identifier) @declaration.name) @declaration.function
21
45
 
@@ -232,6 +256,22 @@ const PYTHON_SCOPE_QUERY = `
232
256
  name: (identifier) @type-binding.name
233
257
  return_type: (type) @type-binding.type) @type-binding.return
234
258
 
259
+ ;; Decorators — simple @decorator
260
+ (decorator
261
+ (identifier) @reference.name) @reference.call.free
262
+
263
+ ;; Decorators — @obj.decorator (single attribute, identifier receiver)
264
+ (decorator
265
+ (attribute
266
+ object: (identifier) @reference.receiver
267
+ attribute: (identifier) @reference.name)) @reference.call.member
268
+
269
+ ;; Decorators — @a.b.decorator (nested attributes)
270
+ (decorator
271
+ (attribute
272
+ object: (attribute) @reference.receiver
273
+ attribute: (identifier) @reference.name)) @reference.call.member
274
+
235
275
  ;; References — calls
236
276
  (call
237
277
  function: (identifier) @reference.name) @reference.call.free
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.6-rc.113",
3
+ "version": "1.6.6-rc.114",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",