gitnexus 1.6.2-rc.8 → 1.6.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.
Files changed (222) hide show
  1. package/dist/_shared/lbug/schema-constants.d.ts +1 -1
  2. package/dist/_shared/lbug/schema-constants.d.ts.map +1 -1
  3. package/dist/_shared/lbug/schema-constants.js +1 -0
  4. package/dist/_shared/lbug/schema-constants.js.map +1 -1
  5. package/dist/_shared/mro-strategy.d.ts +38 -16
  6. package/dist/_shared/mro-strategy.d.ts.map +1 -1
  7. package/dist/cli/ai-context.js +0 -58
  8. package/dist/cli/analyze.js +3 -0
  9. package/dist/core/embeddings/ast-utils.d.ts +22 -0
  10. package/dist/core/embeddings/ast-utils.js +105 -0
  11. package/dist/core/embeddings/character-chunk.d.ts +12 -0
  12. package/dist/core/embeddings/character-chunk.js +43 -0
  13. package/dist/core/embeddings/chunker.d.ts +14 -0
  14. package/dist/core/embeddings/chunker.js +234 -0
  15. package/dist/core/embeddings/embedder.js +5 -0
  16. package/dist/core/embeddings/embedding-pipeline.d.ts +20 -24
  17. package/dist/core/embeddings/embedding-pipeline.js +176 -107
  18. package/dist/core/embeddings/line-index.d.ts +7 -0
  19. package/dist/core/embeddings/line-index.js +42 -0
  20. package/dist/core/embeddings/server-mapping.d.ts +15 -0
  21. package/dist/core/embeddings/server-mapping.js +33 -0
  22. package/dist/core/embeddings/structural-extractor.d.ts +15 -0
  23. package/dist/core/embeddings/structural-extractor.js +58 -0
  24. package/dist/core/embeddings/text-generator.d.ts +20 -13
  25. package/dist/core/embeddings/text-generator.js +151 -119
  26. package/dist/core/embeddings/types.d.ts +81 -3
  27. package/dist/core/embeddings/types.js +105 -3
  28. package/dist/core/group/extractors/http-patterns/node.js +130 -0
  29. package/dist/core/ingestion/call-extractors/configs/c-cpp.d.ts +3 -0
  30. package/dist/core/ingestion/call-extractors/configs/c-cpp.js +8 -0
  31. package/dist/core/ingestion/call-extractors/configs/csharp.d.ts +2 -0
  32. package/dist/core/ingestion/call-extractors/configs/csharp.js +6 -0
  33. package/dist/core/ingestion/call-extractors/configs/dart.d.ts +2 -0
  34. package/dist/core/ingestion/call-extractors/configs/dart.js +5 -0
  35. package/dist/core/ingestion/call-extractors/configs/go.d.ts +2 -0
  36. package/dist/core/ingestion/call-extractors/configs/go.js +5 -0
  37. package/dist/core/ingestion/call-extractors/configs/jvm.d.ts +3 -0
  38. package/dist/core/ingestion/call-extractors/configs/jvm.js +51 -0
  39. package/dist/core/ingestion/call-extractors/configs/php.d.ts +2 -0
  40. package/dist/core/ingestion/call-extractors/configs/php.js +5 -0
  41. package/dist/core/ingestion/call-extractors/configs/python.d.ts +2 -0
  42. package/dist/core/ingestion/call-extractors/configs/python.js +5 -0
  43. package/dist/core/ingestion/call-extractors/configs/ruby.d.ts +2 -0
  44. package/dist/core/ingestion/call-extractors/configs/ruby.js +5 -0
  45. package/dist/core/ingestion/call-extractors/configs/rust.d.ts +2 -0
  46. package/dist/core/ingestion/call-extractors/configs/rust.js +5 -0
  47. package/dist/core/ingestion/call-extractors/configs/swift.d.ts +2 -0
  48. package/dist/core/ingestion/call-extractors/configs/swift.js +5 -0
  49. package/dist/core/ingestion/call-extractors/configs/typescript-javascript.d.ts +3 -0
  50. package/dist/core/ingestion/call-extractors/configs/typescript-javascript.js +8 -0
  51. package/dist/core/ingestion/call-extractors/generic.d.ts +5 -0
  52. package/dist/core/ingestion/call-extractors/generic.js +59 -0
  53. package/dist/core/ingestion/call-processor.d.ts +2 -4
  54. package/dist/core/ingestion/call-processor.js +221 -89
  55. package/dist/core/ingestion/call-routing.d.ts +8 -12
  56. package/dist/core/ingestion/call-routing.js +13 -34
  57. package/dist/core/ingestion/call-types.d.ts +135 -0
  58. package/dist/core/ingestion/call-types.js +2 -0
  59. package/dist/core/ingestion/class-extractors/configs/c-cpp.d.ts +3 -0
  60. package/dist/core/ingestion/class-extractors/configs/c-cpp.js +11 -0
  61. package/dist/core/ingestion/class-extractors/configs/csharp.d.ts +2 -0
  62. package/dist/core/ingestion/class-extractors/configs/csharp.js +21 -0
  63. package/dist/core/ingestion/class-extractors/configs/dart.d.ts +2 -0
  64. package/dist/core/ingestion/class-extractors/configs/dart.js +7 -0
  65. package/dist/core/ingestion/class-extractors/configs/go.d.ts +2 -0
  66. package/dist/core/ingestion/class-extractors/configs/go.js +20 -0
  67. package/dist/core/ingestion/class-extractors/configs/jvm.d.ts +3 -0
  68. package/dist/core/ingestion/class-extractors/configs/jvm.js +35 -0
  69. package/dist/core/ingestion/class-extractors/configs/php.d.ts +2 -0
  70. package/dist/core/ingestion/class-extractors/configs/php.js +7 -0
  71. package/dist/core/ingestion/class-extractors/configs/python.d.ts +2 -0
  72. package/dist/core/ingestion/class-extractors/configs/python.js +7 -0
  73. package/dist/core/ingestion/class-extractors/configs/ruby.d.ts +2 -0
  74. package/dist/core/ingestion/class-extractors/configs/ruby.js +7 -0
  75. package/dist/core/ingestion/class-extractors/configs/rust.d.ts +2 -0
  76. package/dist/core/ingestion/class-extractors/configs/rust.js +7 -0
  77. package/dist/core/ingestion/class-extractors/configs/swift.d.ts +2 -0
  78. package/dist/core/ingestion/class-extractors/configs/swift.js +18 -0
  79. package/dist/core/ingestion/class-extractors/configs/typescript-javascript.d.ts +4 -0
  80. package/dist/core/ingestion/class-extractors/configs/typescript-javascript.js +28 -0
  81. package/dist/core/ingestion/field-types.d.ts +1 -1
  82. package/dist/core/ingestion/heritage-extractors/configs/go.d.ts +13 -0
  83. package/dist/core/ingestion/heritage-extractors/configs/go.js +20 -0
  84. package/dist/core/ingestion/heritage-extractors/configs/ruby.d.ts +18 -0
  85. package/dist/core/ingestion/heritage-extractors/configs/ruby.js +65 -0
  86. package/dist/core/ingestion/heritage-extractors/generic.d.ts +23 -0
  87. package/dist/core/ingestion/heritage-extractors/generic.js +47 -0
  88. package/dist/core/ingestion/heritage-processor.d.ts +9 -0
  89. package/dist/core/ingestion/heritage-processor.js +120 -85
  90. package/dist/core/ingestion/heritage-types.d.ts +73 -0
  91. package/dist/core/ingestion/heritage-types.js +2 -0
  92. package/dist/core/ingestion/import-resolvers/configs/c-cpp.d.ts +7 -0
  93. package/dist/core/ingestion/import-resolvers/configs/c-cpp.js +14 -0
  94. package/dist/core/ingestion/import-resolvers/configs/csharp.d.ts +8 -0
  95. package/dist/core/ingestion/import-resolvers/configs/csharp.js +27 -0
  96. package/dist/core/ingestion/import-resolvers/configs/dart.d.ts +17 -0
  97. package/dist/core/ingestion/import-resolvers/{dart.js → configs/dart.js} +26 -16
  98. package/dist/core/ingestion/import-resolvers/configs/go.d.ts +8 -0
  99. package/dist/core/ingestion/import-resolvers/configs/go.js +26 -0
  100. package/dist/core/ingestion/import-resolvers/configs/jvm.d.ts +13 -0
  101. package/dist/core/ingestion/import-resolvers/configs/jvm.js +68 -0
  102. package/dist/core/ingestion/import-resolvers/configs/php.d.ts +8 -0
  103. package/dist/core/ingestion/import-resolvers/configs/php.js +15 -0
  104. package/dist/core/ingestion/import-resolvers/configs/python.d.ts +12 -0
  105. package/dist/core/ingestion/import-resolvers/configs/python.js +41 -0
  106. package/dist/core/ingestion/import-resolvers/configs/ruby.d.ts +8 -0
  107. package/dist/core/ingestion/import-resolvers/configs/ruby.js +16 -0
  108. package/dist/core/ingestion/import-resolvers/configs/rust.d.ts +8 -0
  109. package/dist/core/ingestion/import-resolvers/configs/rust.js +54 -0
  110. package/dist/core/ingestion/import-resolvers/configs/swift.d.ts +8 -0
  111. package/dist/core/ingestion/import-resolvers/{swift.js → configs/swift.js} +10 -5
  112. package/dist/core/ingestion/import-resolvers/configs/typescript-javascript.d.ts +9 -0
  113. package/dist/core/ingestion/import-resolvers/configs/typescript-javascript.js +23 -0
  114. package/dist/core/ingestion/import-resolvers/csharp.d.ts +4 -5
  115. package/dist/core/ingestion/import-resolvers/csharp.js +4 -20
  116. package/dist/core/ingestion/import-resolvers/go.d.ts +4 -5
  117. package/dist/core/ingestion/import-resolvers/go.js +4 -19
  118. package/dist/core/ingestion/import-resolvers/jvm.d.ts +5 -10
  119. package/dist/core/ingestion/import-resolvers/jvm.js +5 -58
  120. package/dist/core/ingestion/import-resolvers/php.d.ts +4 -5
  121. package/dist/core/ingestion/import-resolvers/php.js +4 -7
  122. package/dist/core/ingestion/import-resolvers/python.d.ts +3 -6
  123. package/dist/core/ingestion/import-resolvers/python.js +3 -18
  124. package/dist/core/ingestion/import-resolvers/resolver-factory.d.ts +24 -0
  125. package/dist/core/ingestion/import-resolvers/resolver-factory.js +33 -0
  126. package/dist/core/ingestion/import-resolvers/ruby.d.ts +4 -5
  127. package/dist/core/ingestion/import-resolvers/ruby.js +4 -7
  128. package/dist/core/ingestion/import-resolvers/rust.d.ts +4 -5
  129. package/dist/core/ingestion/import-resolvers/rust.js +4 -47
  130. package/dist/core/ingestion/import-resolvers/standard.d.ts +3 -9
  131. package/dist/core/ingestion/import-resolvers/standard.js +7 -8
  132. package/dist/core/ingestion/import-resolvers/types.d.ts +24 -0
  133. package/dist/core/ingestion/language-provider.d.ts +80 -0
  134. package/dist/core/ingestion/languages/c-cpp.js +18 -12
  135. package/dist/core/ingestion/languages/csharp.js +13 -21
  136. package/dist/core/ingestion/languages/dart.js +13 -7
  137. package/dist/core/ingestion/languages/go.js +14 -20
  138. package/dist/core/ingestion/languages/java.js +13 -18
  139. package/dist/core/ingestion/languages/kotlin.js +13 -13
  140. package/dist/core/ingestion/languages/php.js +13 -7
  141. package/dist/core/ingestion/languages/python.js +13 -7
  142. package/dist/core/ingestion/languages/ruby.js +103 -22
  143. package/dist/core/ingestion/languages/rust.js +13 -7
  144. package/dist/core/ingestion/languages/swift.js +13 -18
  145. package/dist/core/ingestion/languages/typescript.js +18 -23
  146. package/dist/core/ingestion/languages/vue.js +13 -17
  147. package/dist/core/ingestion/model/heritage-map.d.ts +35 -0
  148. package/dist/core/ingestion/model/heritage-map.js +110 -9
  149. package/dist/core/ingestion/model/index.d.ts +2 -2
  150. package/dist/core/ingestion/model/index.js +1 -1
  151. package/dist/core/ingestion/model/resolve.d.ts +33 -28
  152. package/dist/core/ingestion/model/resolve.js +111 -27
  153. package/dist/core/ingestion/parsing-processor.d.ts +1 -2
  154. package/dist/core/ingestion/pipeline-phases/parse-impl.d.ts +1 -0
  155. package/dist/core/ingestion/pipeline-phases/parse-impl.js +9 -3
  156. package/dist/core/ingestion/pipeline-phases/parse.d.ts +7 -0
  157. package/dist/core/ingestion/pipeline.d.ts +11 -0
  158. package/dist/core/ingestion/pipeline.js +9 -2
  159. package/dist/core/ingestion/tree-sitter-queries.d.ts +11 -11
  160. package/dist/core/ingestion/tree-sitter-queries.js +81 -0
  161. package/dist/core/ingestion/type-env.d.ts +1 -1
  162. package/dist/core/ingestion/utils/ast-helpers.d.ts +1 -1
  163. package/dist/core/ingestion/utils/ast-helpers.js +22 -2
  164. package/dist/core/ingestion/utils/ruby-self-call.d.ts +52 -0
  165. package/dist/core/ingestion/utils/ruby-self-call.js +59 -0
  166. package/dist/core/ingestion/variable-extractors/configs/c-cpp.d.ts +3 -0
  167. package/dist/core/ingestion/variable-extractors/configs/c-cpp.js +81 -0
  168. package/dist/core/ingestion/variable-extractors/configs/csharp.d.ts +9 -0
  169. package/dist/core/ingestion/variable-extractors/configs/csharp.js +63 -0
  170. package/dist/core/ingestion/variable-extractors/configs/dart.d.ts +2 -0
  171. package/dist/core/ingestion/variable-extractors/configs/dart.js +94 -0
  172. package/dist/core/ingestion/variable-extractors/configs/go.d.ts +2 -0
  173. package/dist/core/ingestion/variable-extractors/configs/go.js +83 -0
  174. package/dist/core/ingestion/variable-extractors/configs/jvm.d.ts +18 -0
  175. package/dist/core/ingestion/variable-extractors/configs/jvm.js +115 -0
  176. package/dist/core/ingestion/variable-extractors/configs/php.d.ts +14 -0
  177. package/dist/core/ingestion/variable-extractors/configs/php.js +58 -0
  178. package/dist/core/ingestion/variable-extractors/configs/python.d.ts +2 -0
  179. package/dist/core/ingestion/variable-extractors/configs/python.js +101 -0
  180. package/dist/core/ingestion/variable-extractors/configs/ruby.d.ts +11 -0
  181. package/dist/core/ingestion/variable-extractors/configs/ruby.js +52 -0
  182. package/dist/core/ingestion/variable-extractors/configs/rust.d.ts +2 -0
  183. package/dist/core/ingestion/variable-extractors/configs/rust.js +76 -0
  184. package/dist/core/ingestion/variable-extractors/configs/swift.d.ts +2 -0
  185. package/dist/core/ingestion/variable-extractors/configs/swift.js +88 -0
  186. package/dist/core/ingestion/variable-extractors/configs/typescript-javascript.d.ts +3 -0
  187. package/dist/core/ingestion/variable-extractors/configs/typescript-javascript.js +83 -0
  188. package/dist/core/ingestion/variable-extractors/generic.d.ts +5 -0
  189. package/dist/core/ingestion/variable-extractors/generic.js +80 -0
  190. package/dist/core/ingestion/variable-types.d.ts +82 -0
  191. package/dist/core/ingestion/variable-types.js +2 -0
  192. package/dist/core/ingestion/workers/parse-worker.js +244 -217
  193. package/dist/core/ingestion/workers/worker-pool.js +3 -0
  194. package/dist/core/lbug/csv-generator.js +1 -0
  195. package/dist/core/lbug/lbug-adapter.d.ts +4 -5
  196. package/dist/core/lbug/lbug-adapter.js +38 -14
  197. package/dist/core/lbug/schema.d.ts +2 -1
  198. package/dist/core/lbug/schema.js +10 -1
  199. package/dist/core/run-analyze.js +6 -7
  200. package/dist/core/tree-sitter/parser-loader.d.ts +3 -0
  201. package/dist/core/tree-sitter/parser-loader.js +17 -8
  202. package/dist/mcp/core/embedder.js +5 -0
  203. package/dist/mcp/local/local-backend.js +29 -19
  204. package/dist/server/api.js +2 -0
  205. package/dist/types/pipeline.d.ts +6 -0
  206. package/package.json +8 -7
  207. package/scripts/build-tree-sitter-proto.cjs +82 -0
  208. package/vendor/node_modules/node-addon-api/node_addon_api.Makefile +6 -0
  209. package/vendor/node_modules/node-addon-api/node_addon_api.target.mk +104 -0
  210. package/vendor/node_modules/node-addon-api/node_addon_api_except.target.mk +108 -0
  211. package/vendor/node_modules/node-addon-api/node_addon_api_except_all.target.mk +104 -0
  212. package/vendor/node_modules/node-addon-api/node_addon_api_maybe.target.mk +104 -0
  213. package/vendor/tree-sitter-proto/package.json +1 -7
  214. package/dist/core/ingestion/call-sites/extract-language-call-site.d.ts +0 -10
  215. package/dist/core/ingestion/call-sites/extract-language-call-site.js +0 -22
  216. package/dist/core/ingestion/call-sites/java.d.ts +0 -9
  217. package/dist/core/ingestion/call-sites/java.js +0 -30
  218. package/dist/core/ingestion/import-resolvers/dart.d.ts +0 -7
  219. package/dist/core/ingestion/import-resolvers/swift.d.ts +0 -7
  220. package/dist/core/ingestion/import-resolvers/vue.d.ts +0 -8
  221. package/dist/core/ingestion/import-resolvers/vue.js +0 -9
  222. package/scripts/preinstall-cleanup.cjs +0 -34
@@ -0,0 +1,104 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := node_addon_api
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=node_addon_api' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
11
+ '-D_FILE_OFFSET_BITS=64' \
12
+ '-D_LARGEFILE_SOURCE' \
13
+ '-D__STDC_FORMAT_MACROS' \
14
+ '-DOPENSSL_NO_PINSHARED' \
15
+ '-DOPENSSL_THREADS' \
16
+ '-DDEBUG' \
17
+ '-D_DEBUG'
18
+
19
+ # Flags passed to all source files.
20
+ CFLAGS_Debug := \
21
+ -fPIC \
22
+ -pthread \
23
+ -Wall \
24
+ -Wextra \
25
+ -Wno-unused-parameter \
26
+ -m64 \
27
+ -g \
28
+ -O0
29
+
30
+ # Flags passed to only C files.
31
+ CFLAGS_C_Debug :=
32
+
33
+ # Flags passed to only C++ files.
34
+ CFLAGS_CC_Debug := \
35
+ -fno-rtti \
36
+ -fno-exceptions \
37
+ -std=gnu++17
38
+
39
+ INCS_Debug := \
40
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
41
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
42
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
43
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
44
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
45
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
46
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
47
+
48
+ DEFS_Release := \
49
+ '-DNODE_GYP_MODULE_NAME=node_addon_api' \
50
+ '-DUSING_UV_SHARED=1' \
51
+ '-DUSING_V8_SHARED=1' \
52
+ '-DV8_DEPRECATION_WARNINGS=1' \
53
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
54
+ '-D_FILE_OFFSET_BITS=64' \
55
+ '-D_LARGEFILE_SOURCE' \
56
+ '-D__STDC_FORMAT_MACROS' \
57
+ '-DOPENSSL_NO_PINSHARED' \
58
+ '-DOPENSSL_THREADS'
59
+
60
+ # Flags passed to all source files.
61
+ CFLAGS_Release := \
62
+ -fPIC \
63
+ -pthread \
64
+ -Wall \
65
+ -Wextra \
66
+ -Wno-unused-parameter \
67
+ -m64 \
68
+ -O3 \
69
+ -fno-omit-frame-pointer
70
+
71
+ # Flags passed to only C files.
72
+ CFLAGS_C_Release :=
73
+
74
+ # Flags passed to only C++ files.
75
+ CFLAGS_CC_Release := \
76
+ -fno-rtti \
77
+ -fno-exceptions \
78
+ -std=gnu++17
79
+
80
+ INCS_Release := \
81
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
82
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
83
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
84
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
85
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
86
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
87
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
88
+
89
+ OBJS :=
90
+
91
+ # Add to the list of files we specially track dependencies for.
92
+ all_deps += $(OBJS)
93
+
94
+
95
+ ### Rules for final target.
96
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api.stamp: TOOLSET := $(TOOLSET)
97
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api.stamp: FORCE_DO_CMD
98
+ $(call do_cmd,touch)
99
+
100
+ all_deps += $(obj).target/../../node_modules/node-addon-api/node_addon_api.stamp
101
+ # Add target alias
102
+ .PHONY: node_addon_api
103
+ node_addon_api: $(obj).target/../../node_modules/node-addon-api/node_addon_api.stamp
104
+
@@ -0,0 +1,108 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := node_addon_api_except
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_except' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
11
+ '-D_FILE_OFFSET_BITS=64' \
12
+ '-D_LARGEFILE_SOURCE' \
13
+ '-D__STDC_FORMAT_MACROS' \
14
+ '-DOPENSSL_NO_PINSHARED' \
15
+ '-DOPENSSL_THREADS' \
16
+ '-DDEBUG' \
17
+ '-D_DEBUG'
18
+
19
+ # Flags passed to all source files.
20
+ CFLAGS_Debug := \
21
+ -fPIC \
22
+ -pthread \
23
+ -Wall \
24
+ -Wextra \
25
+ -Wno-unused-parameter \
26
+ -m64 \
27
+ -g \
28
+ -O0
29
+
30
+ # Flags passed to only C files.
31
+ CFLAGS_C_Debug :=
32
+
33
+ # Flags passed to only C++ files.
34
+ CFLAGS_CC_Debug := \
35
+ -fno-rtti \
36
+ -fno-exceptions \
37
+ -std=gnu++17
38
+
39
+ INCS_Debug := \
40
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
41
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
42
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
43
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
44
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
45
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
46
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
47
+
48
+ DEFS_Release := \
49
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_except' \
50
+ '-DUSING_UV_SHARED=1' \
51
+ '-DUSING_V8_SHARED=1' \
52
+ '-DV8_DEPRECATION_WARNINGS=1' \
53
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
54
+ '-D_FILE_OFFSET_BITS=64' \
55
+ '-D_LARGEFILE_SOURCE' \
56
+ '-D__STDC_FORMAT_MACROS' \
57
+ '-DOPENSSL_NO_PINSHARED' \
58
+ '-DOPENSSL_THREADS'
59
+
60
+ # Flags passed to all source files.
61
+ CFLAGS_Release := \
62
+ -fPIC \
63
+ -pthread \
64
+ -Wall \
65
+ -Wextra \
66
+ -Wno-unused-parameter \
67
+ -m64 \
68
+ -O3 \
69
+ -fno-omit-frame-pointer
70
+
71
+ # Flags passed to only C files.
72
+ CFLAGS_C_Release :=
73
+
74
+ # Flags passed to only C++ files.
75
+ CFLAGS_CC_Release := \
76
+ -fno-rtti \
77
+ -fno-exceptions \
78
+ -std=gnu++17
79
+
80
+ INCS_Release := \
81
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
82
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
83
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
84
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
85
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
86
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
87
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
88
+
89
+ OBJS :=
90
+
91
+ # Add to the list of files we specially track dependencies for.
92
+ all_deps += $(OBJS)
93
+
94
+
95
+ ### Rules for final target.
96
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_except.stamp: TOOLSET := $(TOOLSET)
97
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_except.stamp: FORCE_DO_CMD
98
+ $(call do_cmd,touch)
99
+
100
+ all_deps += $(obj).target/../../node_modules/node-addon-api/node_addon_api_except.stamp
101
+ # Add target alias
102
+ .PHONY: node_addon_api_except
103
+ node_addon_api_except: $(obj).target/../../node_modules/node-addon-api/node_addon_api_except.stamp
104
+
105
+ # Add target alias to "all" target.
106
+ .PHONY: all
107
+ all: node_addon_api_except
108
+
@@ -0,0 +1,104 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := node_addon_api_except_all
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_except_all' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
11
+ '-D_FILE_OFFSET_BITS=64' \
12
+ '-D_LARGEFILE_SOURCE' \
13
+ '-D__STDC_FORMAT_MACROS' \
14
+ '-DOPENSSL_NO_PINSHARED' \
15
+ '-DOPENSSL_THREADS' \
16
+ '-DDEBUG' \
17
+ '-D_DEBUG'
18
+
19
+ # Flags passed to all source files.
20
+ CFLAGS_Debug := \
21
+ -fPIC \
22
+ -pthread \
23
+ -Wall \
24
+ -Wextra \
25
+ -Wno-unused-parameter \
26
+ -m64 \
27
+ -g \
28
+ -O0
29
+
30
+ # Flags passed to only C files.
31
+ CFLAGS_C_Debug :=
32
+
33
+ # Flags passed to only C++ files.
34
+ CFLAGS_CC_Debug := \
35
+ -fno-rtti \
36
+ -fno-exceptions \
37
+ -std=gnu++17
38
+
39
+ INCS_Debug := \
40
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
41
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
42
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
43
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
44
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
45
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
46
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
47
+
48
+ DEFS_Release := \
49
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_except_all' \
50
+ '-DUSING_UV_SHARED=1' \
51
+ '-DUSING_V8_SHARED=1' \
52
+ '-DV8_DEPRECATION_WARNINGS=1' \
53
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
54
+ '-D_FILE_OFFSET_BITS=64' \
55
+ '-D_LARGEFILE_SOURCE' \
56
+ '-D__STDC_FORMAT_MACROS' \
57
+ '-DOPENSSL_NO_PINSHARED' \
58
+ '-DOPENSSL_THREADS'
59
+
60
+ # Flags passed to all source files.
61
+ CFLAGS_Release := \
62
+ -fPIC \
63
+ -pthread \
64
+ -Wall \
65
+ -Wextra \
66
+ -Wno-unused-parameter \
67
+ -m64 \
68
+ -O3 \
69
+ -fno-omit-frame-pointer
70
+
71
+ # Flags passed to only C files.
72
+ CFLAGS_C_Release :=
73
+
74
+ # Flags passed to only C++ files.
75
+ CFLAGS_CC_Release := \
76
+ -fno-rtti \
77
+ -fno-exceptions \
78
+ -std=gnu++17
79
+
80
+ INCS_Release := \
81
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
82
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
83
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
84
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
85
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
86
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
87
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
88
+
89
+ OBJS :=
90
+
91
+ # Add to the list of files we specially track dependencies for.
92
+ all_deps += $(OBJS)
93
+
94
+
95
+ ### Rules for final target.
96
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_except_all.stamp: TOOLSET := $(TOOLSET)
97
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_except_all.stamp: FORCE_DO_CMD
98
+ $(call do_cmd,touch)
99
+
100
+ all_deps += $(obj).target/../../node_modules/node-addon-api/node_addon_api_except_all.stamp
101
+ # Add target alias
102
+ .PHONY: node_addon_api_except_all
103
+ node_addon_api_except_all: $(obj).target/../../node_modules/node-addon-api/node_addon_api_except_all.stamp
104
+
@@ -0,0 +1,104 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := node_addon_api_maybe
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_maybe' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
11
+ '-D_FILE_OFFSET_BITS=64' \
12
+ '-D_LARGEFILE_SOURCE' \
13
+ '-D__STDC_FORMAT_MACROS' \
14
+ '-DOPENSSL_NO_PINSHARED' \
15
+ '-DOPENSSL_THREADS' \
16
+ '-DDEBUG' \
17
+ '-D_DEBUG'
18
+
19
+ # Flags passed to all source files.
20
+ CFLAGS_Debug := \
21
+ -fPIC \
22
+ -pthread \
23
+ -Wall \
24
+ -Wextra \
25
+ -Wno-unused-parameter \
26
+ -m64 \
27
+ -g \
28
+ -O0
29
+
30
+ # Flags passed to only C files.
31
+ CFLAGS_C_Debug :=
32
+
33
+ # Flags passed to only C++ files.
34
+ CFLAGS_CC_Debug := \
35
+ -fno-rtti \
36
+ -fno-exceptions \
37
+ -std=gnu++17
38
+
39
+ INCS_Debug := \
40
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
41
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
42
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
43
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
44
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
45
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
46
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
47
+
48
+ DEFS_Release := \
49
+ '-DNODE_GYP_MODULE_NAME=node_addon_api_maybe' \
50
+ '-DUSING_UV_SHARED=1' \
51
+ '-DUSING_V8_SHARED=1' \
52
+ '-DV8_DEPRECATION_WARNINGS=1' \
53
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
54
+ '-D_FILE_OFFSET_BITS=64' \
55
+ '-D_LARGEFILE_SOURCE' \
56
+ '-D__STDC_FORMAT_MACROS' \
57
+ '-DOPENSSL_NO_PINSHARED' \
58
+ '-DOPENSSL_THREADS'
59
+
60
+ # Flags passed to all source files.
61
+ CFLAGS_Release := \
62
+ -fPIC \
63
+ -pthread \
64
+ -Wall \
65
+ -Wextra \
66
+ -Wno-unused-parameter \
67
+ -m64 \
68
+ -O3 \
69
+ -fno-omit-frame-pointer
70
+
71
+ # Flags passed to only C files.
72
+ CFLAGS_C_Release :=
73
+
74
+ # Flags passed to only C++ files.
75
+ CFLAGS_CC_Release := \
76
+ -fno-rtti \
77
+ -fno-exceptions \
78
+ -std=gnu++17
79
+
80
+ INCS_Release := \
81
+ -I/home/runner/.cache/node-gyp/20.20.2/include/node \
82
+ -I/home/runner/.cache/node-gyp/20.20.2/src \
83
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/config \
84
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/openssl/openssl/include \
85
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/uv/include \
86
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/zlib \
87
+ -I/home/runner/.cache/node-gyp/20.20.2/deps/v8/include
88
+
89
+ OBJS :=
90
+
91
+ # Add to the list of files we specially track dependencies for.
92
+ all_deps += $(OBJS)
93
+
94
+
95
+ ### Rules for final target.
96
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_maybe.stamp: TOOLSET := $(TOOLSET)
97
+ $(obj).target/../../node_modules/node-addon-api/node_addon_api_maybe.stamp: FORCE_DO_CMD
98
+ $(call do_cmd,touch)
99
+
100
+ all_deps += $(obj).target/../../node_modules/node-addon-api/node_addon_api_maybe.stamp
101
+ # Add target alias
102
+ .PHONY: node_addon_api_maybe
103
+ node_addon_api_maybe: $(obj).target/../../node_modules/node-addon-api/node_addon_api_maybe.stamp
104
+
@@ -5,14 +5,8 @@
5
5
  "repository": "https://github.com/coder3101/tree-sitter-proto",
6
6
  "license": "MIT",
7
7
  "main": "bindings/node",
8
- "scripts": {
9
- "install": "node-gyp-build"
10
- },
8
+ "_vendoredBy": "gitnexus — build deps (node-addon-api, node-gyp-build) are hoisted into gitnexus/package.json optionalDependencies, and native compilation is performed by gitnexus/scripts/build-tree-sitter-proto.cjs at gitnexus postinstall. Do NOT re-add a dependencies block or an install script here — doing so reintroduces https://github.com/abhigyanpatwari/GitNexus/issues/836 (ENOTEMPTY on global upgrade).",
11
9
  "peerDependencies": {
12
10
  "tree-sitter": ">=0.21.0"
13
- },
14
- "dependencies": {
15
- "node-addon-api": "^8.0.0",
16
- "node-gyp-build": "^4.8.0"
17
11
  }
18
12
  }
@@ -1,10 +0,0 @@
1
- /** Non-generic @call shapes → { calledName, callForm, receiverName? } (used from call-processor / parse-worker). */
2
- import { SupportedLanguages } from '../../../config/supported-languages.js';
3
- import type { SyntaxNode } from '../utils/ast-helpers.js';
4
- export type ParsedCallSite = {
5
- calledName: string;
6
- callForm: 'free' | 'member' | 'constructor';
7
- receiverName?: string;
8
- };
9
- /** Non-null → seed replaces @call.name; null → use @call.name + inferCallForm / extractReceiverName. */
10
- export declare function extractParsedCallSite(language: SupportedLanguages, callNode: SyntaxNode): ParsedCallSite | null;
@@ -1,22 +0,0 @@
1
- /** Non-generic @call shapes → { calledName, callForm, receiverName? } (used from call-processor / parse-worker). */
2
- import { SupportedLanguages } from '../../../config/supported-languages.js';
3
- import { parseJavaMethodReference } from './java.js';
4
- /** Non-null → seed replaces @call.name; null → use @call.name + inferCallForm / extractReceiverName. */
5
- export function extractParsedCallSite(language, callNode) {
6
- switch (language) {
7
- case SupportedLanguages.Java:
8
- if (callNode.type === 'method_reference') {
9
- const parsed = parseJavaMethodReference(callNode);
10
- if (!parsed)
11
- return null;
12
- return {
13
- calledName: parsed.calledName,
14
- callForm: parsed.callForm,
15
- ...(parsed.receiverName !== undefined ? { receiverName: parsed.receiverName } : {}),
16
- };
17
- }
18
- return null;
19
- default:
20
- return null;
21
- }
22
- }
@@ -1,9 +0,0 @@
1
- /** Java `method_reference` (`::`) nodes (tree-sitter-java). `super::` still lacks TypeEnv receiver typing. */
2
- import type { SyntaxNode } from '../utils/ast-helpers.js';
3
- export type ParsedJavaMethodReference = {
4
- calledName: string;
5
- callForm: 'member' | 'constructor';
6
- receiverName?: string;
7
- };
8
- /** Parse `expr::method`, `Type::new`, `this::m`, `super::m`. */
9
- export declare const parseJavaMethodReference: (callNode: SyntaxNode) => ParsedJavaMethodReference | null;
@@ -1,30 +0,0 @@
1
- /** Java `method_reference` (`::`) nodes (tree-sitter-java). `super::` still lacks TypeEnv receiver typing. */
2
- /** Parse `expr::method`, `Type::new`, `this::m`, `super::m`. */
3
- export const parseJavaMethodReference = (callNode) => {
4
- if (callNode.type !== 'method_reference')
5
- return null;
6
- const recv = callNode.namedChild(0);
7
- if (!recv)
8
- return null;
9
- for (const c of callNode.children) {
10
- if (c.type === 'new') {
11
- if (recv.type !== 'identifier')
12
- return null;
13
- return { calledName: recv.text, callForm: 'constructor' };
14
- }
15
- }
16
- const rhs = callNode.child(callNode.childCount - 1);
17
- if (!rhs || rhs.type !== 'identifier')
18
- return null;
19
- const methodName = rhs.text;
20
- if (recv.type === 'identifier') {
21
- return { calledName: methodName, callForm: 'member', receiverName: recv.text };
22
- }
23
- if (recv.type === 'this') {
24
- return { calledName: methodName, callForm: 'member', receiverName: 'this' };
25
- }
26
- if (recv.type === 'super') {
27
- return { calledName: methodName, callForm: 'member', receiverName: 'super' };
28
- }
29
- return null;
30
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * Dart import resolution.
3
- * Handles package: imports (local packages) and relative imports.
4
- * SDK imports (dart:*) and external packages are skipped.
5
- */
6
- import type { ImportResult, ResolveCtx } from './types.js';
7
- export declare function resolveDartImport(rawImportPath: string, filePath: string, ctx: ResolveCtx): ImportResult;
@@ -1,7 +0,0 @@
1
- /**
2
- * Swift module import resolution.
3
- * Handles module imports via Package.swift target map.
4
- */
5
- import type { ImportResult, ResolveCtx } from './types.js';
6
- /** Swift: module imports via Package.swift target map. */
7
- export declare function resolveSwiftImport(rawImportPath: string, _filePath: string, ctx: ResolveCtx): ImportResult;
@@ -1,8 +0,0 @@
1
- /**
2
- * Vue import resolver — delegates to TypeScript's standard resolver.
3
- *
4
- * Vue <script> blocks use the same import syntax as TypeScript (including
5
- * tsconfig path aliases like `@/`), so no custom resolution logic is needed.
6
- */
7
- import type { ImportResolverFn } from './types.js';
8
- export declare const resolveVueImport: ImportResolverFn;
@@ -1,9 +0,0 @@
1
- /**
2
- * Vue import resolver — delegates to TypeScript's standard resolver.
3
- *
4
- * Vue <script> blocks use the same import syntax as TypeScript (including
5
- * tsconfig path aliases like `@/`), so no custom resolution logic is needed.
6
- */
7
- import { SupportedLanguages } from '../../../_shared/index.js';
8
- import { resolveStandard } from './standard.js';
9
- export const resolveVueImport = (raw, fp, ctx) => resolveStandard(raw, fp, ctx, SupportedLanguages.TypeScript);
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Preinstall cleanup script.
4
- *
5
- * When upgrading gitnexus globally (`npm install -g gitnexus@<new>`),
6
- * npm may fail with ENOTEMPTY because it cannot cleanly remove the
7
- * `node_modules/` and `build/` directories that a *previous*
8
- * installation's `file:` dependency resolution created inside
9
- * `vendor/tree-sitter-proto/`.
10
- *
11
- * This script runs as a `preinstall` hook — before npm resolves
12
- * dependencies — and removes those leftover directories so npm can
13
- * proceed without errors.
14
- *
15
- * See: https://github.com/abhigyanpatwari/GitNexus/issues/836
16
- */
17
- const fs = require('fs');
18
- const path = require('path');
19
-
20
- const vendorDirs = [
21
- path.join(__dirname, '..', 'vendor', 'tree-sitter-proto', 'node_modules'),
22
- path.join(__dirname, '..', 'vendor', 'tree-sitter-proto', 'build'),
23
- ];
24
-
25
- for (const dir of vendorDirs) {
26
- try {
27
- if (fs.existsSync(dir)) {
28
- fs.rmSync(dir, { recursive: true, force: true });
29
- }
30
- } catch (err) {
31
- // Best-effort cleanup — warn but don't fail the install.
32
- console.warn(`[preinstall] Could not remove ${dir}:`, err.message);
33
- }
34
- }