@colbymchenry/codegraph-win32-arm64 1.6.2 → 1.6.3

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 (1036) hide show
  1. package/bin/codegraph +1 -1
  2. package/bin/codegraph.cmd +1 -1
  3. package/lib/dist/.test-build-engine.json +1 -1
  4. package/lib/dist/.test-build-viewer.json +1 -1
  5. package/lib/dist/bin/codegraph.d.ts +3 -0
  6. package/lib/dist/bin/codegraph.d.ts.map +1 -1
  7. package/lib/dist/bin/codegraph.js +425 -688
  8. package/lib/dist/bin/codegraph.js.map +1 -1
  9. package/lib/dist/bin/command-supervision.js +1 -57
  10. package/lib/dist/bin/command-supervision.js.map +1 -1
  11. package/lib/dist/bin/fatal-handler.js +0 -46
  12. package/lib/dist/bin/fatal-handler.js.map +1 -1
  13. package/lib/dist/bin/node-version-check.js +0 -33
  14. package/lib/dist/bin/node-version-check.js.map +1 -1
  15. package/lib/dist/bin/uninstall.js +0 -19
  16. package/lib/dist/bin/uninstall.js.map +1 -1
  17. package/lib/dist/bin/viewer-gate.js +0 -14
  18. package/lib/dist/bin/viewer-gate.js.map +1 -1
  19. package/lib/dist/compile-cache.d.ts +2 -0
  20. package/lib/dist/compile-cache.d.ts.map +1 -0
  21. package/lib/dist/compile-cache.js +45 -0
  22. package/lib/dist/compile-cache.js.map +1 -0
  23. package/lib/dist/context/formatter.js +3 -66
  24. package/lib/dist/context/formatter.js.map +1 -1
  25. package/lib/dist/context/index.d.ts +44 -1
  26. package/lib/dist/context/index.d.ts.map +1 -1
  27. package/lib/dist/context/index.js +123 -430
  28. package/lib/dist/context/index.js.map +1 -1
  29. package/lib/dist/context/markers.js +0 -17
  30. package/lib/dist/context/markers.js.map +1 -1
  31. package/lib/dist/db/index.d.ts +44 -1
  32. package/lib/dist/db/index.d.ts.map +1 -1
  33. package/lib/dist/db/index.js +123 -395
  34. package/lib/dist/db/index.js.map +1 -1
  35. package/lib/dist/db/migrations.d.ts +11 -1
  36. package/lib/dist/db/migrations.d.ts.map +1 -1
  37. package/lib/dist/db/migrations.js +71 -79
  38. package/lib/dist/db/migrations.js.map +1 -1
  39. package/lib/dist/db/name-substring-index.d.ts +63 -0
  40. package/lib/dist/db/name-substring-index.d.ts.map +1 -0
  41. package/lib/dist/db/name-substring-index.js +151 -0
  42. package/lib/dist/db/name-substring-index.js.map +1 -0
  43. package/lib/dist/db/node-sqlite.d.ts +19 -0
  44. package/lib/dist/db/node-sqlite.d.ts.map +1 -0
  45. package/lib/dist/db/node-sqlite.js +23 -0
  46. package/lib/dist/db/node-sqlite.js.map +1 -0
  47. package/lib/dist/db/open-error.d.ts +36 -0
  48. package/lib/dist/db/open-error.d.ts.map +1 -0
  49. package/lib/dist/db/open-error.js +63 -0
  50. package/lib/dist/db/open-error.js.map +1 -0
  51. package/lib/dist/db/parameter-flow-queries.d.ts +120 -0
  52. package/lib/dist/db/parameter-flow-queries.d.ts.map +1 -0
  53. package/lib/dist/db/parameter-flow-queries.js +168 -0
  54. package/lib/dist/db/parameter-flow-queries.js.map +1 -0
  55. package/lib/dist/db/queries.d.ts +610 -33
  56. package/lib/dist/db/queries.d.ts.map +1 -1
  57. package/lib/dist/db/queries.js +1345 -1419
  58. package/lib/dist/db/queries.js.map +1 -1
  59. package/lib/dist/db/reference-tail.d.ts +83 -0
  60. package/lib/dist/db/reference-tail.d.ts.map +1 -0
  61. package/lib/dist/db/reference-tail.js +68 -0
  62. package/lib/dist/db/reference-tail.js.map +1 -0
  63. package/lib/dist/db/schema.sql +18 -2
  64. package/lib/dist/db/sqlite-adapter.d.ts +18 -1
  65. package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
  66. package/lib/dist/db/sqlite-adapter.js +12 -62
  67. package/lib/dist/db/sqlite-adapter.js.map +1 -1
  68. package/lib/dist/db/synthesis-stage.d.ts.map +1 -1
  69. package/lib/dist/db/synthesis-stage.js +2 -6
  70. package/lib/dist/db/synthesis-stage.js.map +1 -1
  71. package/lib/dist/db/wal-valve.js +1 -153
  72. package/lib/dist/db/wal-valve.js.map +1 -1
  73. package/lib/dist/db/wsl-shared-index.js +0 -37
  74. package/lib/dist/db/wsl-shared-index.js.map +1 -1
  75. package/lib/dist/directory.d.ts +51 -0
  76. package/lib/dist/directory.d.ts.map +1 -1
  77. package/lib/dist/directory.js +76 -530
  78. package/lib/dist/directory.js.map +1 -1
  79. package/lib/dist/engine.d.ts +15 -0
  80. package/lib/dist/engine.d.ts.map +1 -0
  81. package/lib/dist/engine.js +34 -0
  82. package/lib/dist/engine.js.map +1 -0
  83. package/lib/dist/errors.d.ts +10 -0
  84. package/lib/dist/errors.d.ts.map +1 -1
  85. package/lib/dist/errors.js +8 -101
  86. package/lib/dist/errors.js.map +1 -1
  87. package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
  88. package/lib/dist/extraction/astro-extractor.js +11 -101
  89. package/lib/dist/extraction/astro-extractor.js.map +1 -1
  90. package/lib/dist/extraction/cfml-extractor.d.ts +27 -1
  91. package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
  92. package/lib/dist/extraction/cfml-extractor.js +66 -204
  93. package/lib/dist/extraction/cfml-extractor.js.map +1 -1
  94. package/lib/dist/extraction/commonjs-requires.js +0 -31
  95. package/lib/dist/extraction/commonjs-requires.js.map +1 -1
  96. package/lib/dist/extraction/dfm-extractor.js +0 -21
  97. package/lib/dist/extraction/dfm-extractor.js.map +1 -1
  98. package/lib/dist/extraction/extraction-version.d.ts +1 -1
  99. package/lib/dist/extraction/extraction-version.js +1 -24
  100. package/lib/dist/extraction/extraction-version.js.map +1 -1
  101. package/lib/dist/extraction/function-ref.d.ts +40 -0
  102. package/lib/dist/extraction/function-ref.d.ts.map +1 -1
  103. package/lib/dist/extraction/function-ref.js +145 -206
  104. package/lib/dist/extraction/function-ref.js.map +1 -1
  105. package/lib/dist/extraction/generated-detection.js +0 -165
  106. package/lib/dist/extraction/generated-detection.js.map +1 -1
  107. package/lib/dist/extraction/grammars.d.ts +45 -4
  108. package/lib/dist/extraction/grammars.d.ts.map +1 -1
  109. package/lib/dist/extraction/grammars.js +53 -430
  110. package/lib/dist/extraction/grammars.js.map +1 -1
  111. package/lib/dist/extraction/index.d.ts +197 -7
  112. package/lib/dist/extraction/index.d.ts.map +1 -1
  113. package/lib/dist/extraction/index.js +554 -1382
  114. package/lib/dist/extraction/index.js.map +1 -1
  115. package/lib/dist/extraction/kernel/decode.js +0 -16
  116. package/lib/dist/extraction/kernel/decode.js.map +1 -1
  117. package/lib/dist/extraction/kernel/index.d.ts +3 -1
  118. package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
  119. package/lib/dist/extraction/kernel/index.js +25 -133
  120. package/lib/dist/extraction/kernel/index.js.map +1 -1
  121. package/lib/dist/extraction/kernel/layout.js +42 -76
  122. package/lib/dist/extraction/kernel/layout.js.map +1 -1
  123. package/lib/dist/extraction/kernel/loader.js +0 -37
  124. package/lib/dist/extraction/kernel/loader.js.map +1 -1
  125. package/lib/dist/extraction/languages/arkts.js +0 -59
  126. package/lib/dist/extraction/languages/arkts.js.map +1 -1
  127. package/lib/dist/extraction/languages/c-cpp.d.ts +125 -28
  128. package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
  129. package/lib/dist/extraction/languages/c-cpp.js +789 -856
  130. package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
  131. package/lib/dist/extraction/languages/cfquery.js +0 -9
  132. package/lib/dist/extraction/languages/cfquery.js.map +1 -1
  133. package/lib/dist/extraction/languages/cfscript.d.ts +20 -0
  134. package/lib/dist/extraction/languages/cfscript.d.ts.map +1 -1
  135. package/lib/dist/extraction/languages/cfscript.js +80 -9
  136. package/lib/dist/extraction/languages/cfscript.js.map +1 -1
  137. package/lib/dist/extraction/languages/cobol.js +0 -114
  138. package/lib/dist/extraction/languages/cobol.js.map +1 -1
  139. package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts +66 -0
  140. package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts.map +1 -0
  141. package/lib/dist/extraction/languages/cpp-brace-scopes.js +343 -0
  142. package/lib/dist/extraction/languages/cpp-brace-scopes.js.map +1 -0
  143. package/lib/dist/extraction/languages/cpp-macro-methods.d.ts +41 -0
  144. package/lib/dist/extraction/languages/cpp-macro-methods.d.ts.map +1 -0
  145. package/lib/dist/extraction/languages/cpp-macro-methods.js +487 -0
  146. package/lib/dist/extraction/languages/cpp-macro-methods.js.map +1 -0
  147. package/lib/dist/extraction/languages/csharp.js +3 -55
  148. package/lib/dist/extraction/languages/csharp.js.map +1 -1
  149. package/lib/dist/extraction/languages/dart.d.ts +84 -0
  150. package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
  151. package/lib/dist/extraction/languages/dart.js +329 -161
  152. package/lib/dist/extraction/languages/dart.js.map +1 -1
  153. package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
  154. package/lib/dist/extraction/languages/erlang.js +15 -102
  155. package/lib/dist/extraction/languages/erlang.js.map +1 -1
  156. package/lib/dist/extraction/languages/go.d.ts +48 -0
  157. package/lib/dist/extraction/languages/go.d.ts.map +1 -1
  158. package/lib/dist/extraction/languages/go.js +102 -31
  159. package/lib/dist/extraction/languages/go.js.map +1 -1
  160. package/lib/dist/extraction/languages/index.js +0 -6
  161. package/lib/dist/extraction/languages/index.js.map +1 -1
  162. package/lib/dist/extraction/languages/java.d.ts.map +1 -1
  163. package/lib/dist/extraction/languages/java.js +67 -78
  164. package/lib/dist/extraction/languages/java.js.map +1 -1
  165. package/lib/dist/extraction/languages/javascript.d.ts.map +1 -1
  166. package/lib/dist/extraction/languages/javascript.js +2 -12
  167. package/lib/dist/extraction/languages/javascript.js.map +1 -1
  168. package/lib/dist/extraction/languages/kotlin.d.ts +11 -0
  169. package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
  170. package/lib/dist/extraction/languages/kotlin.js +35 -184
  171. package/lib/dist/extraction/languages/kotlin.js.map +1 -1
  172. package/lib/dist/extraction/languages/lua.js +2 -39
  173. package/lib/dist/extraction/languages/lua.js.map +1 -1
  174. package/lib/dist/extraction/languages/luau.js +0 -14
  175. package/lib/dist/extraction/languages/luau.js.map +1 -1
  176. package/lib/dist/extraction/languages/nix.js +0 -16
  177. package/lib/dist/extraction/languages/nix.js.map +1 -1
  178. package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
  179. package/lib/dist/extraction/languages/objc.js +5 -16
  180. package/lib/dist/extraction/languages/objc.js.map +1 -1
  181. package/lib/dist/extraction/languages/pascal-preparse.d.ts +66 -0
  182. package/lib/dist/extraction/languages/pascal-preparse.d.ts.map +1 -0
  183. package/lib/dist/extraction/languages/pascal-preparse.js +958 -0
  184. package/lib/dist/extraction/languages/pascal-preparse.js.map +1 -0
  185. package/lib/dist/extraction/languages/pascal-system.d.ts +11 -0
  186. package/lib/dist/extraction/languages/pascal-system.d.ts.map +1 -0
  187. package/lib/dist/extraction/languages/pascal-system.js +23 -0
  188. package/lib/dist/extraction/languages/pascal-system.js.map +1 -0
  189. package/lib/dist/extraction/languages/pascal.d.ts.map +1 -1
  190. package/lib/dist/extraction/languages/pascal.js +3 -4
  191. package/lib/dist/extraction/languages/pascal.js.map +1 -1
  192. package/lib/dist/extraction/languages/php.js +5 -42
  193. package/lib/dist/extraction/languages/php.js.map +1 -1
  194. package/lib/dist/extraction/languages/python.js +2 -20
  195. package/lib/dist/extraction/languages/python.js.map +1 -1
  196. package/lib/dist/extraction/languages/r.js +8 -78
  197. package/lib/dist/extraction/languages/r.js.map +1 -1
  198. package/lib/dist/extraction/languages/ruby.d.ts.map +1 -1
  199. package/lib/dist/extraction/languages/ruby.js +17 -25
  200. package/lib/dist/extraction/languages/ruby.js.map +1 -1
  201. package/lib/dist/extraction/languages/rust.d.ts +10 -0
  202. package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
  203. package/lib/dist/extraction/languages/rust.js +15 -47
  204. package/lib/dist/extraction/languages/rust.js.map +1 -1
  205. package/lib/dist/extraction/languages/scala.js +5 -41
  206. package/lib/dist/extraction/languages/scala.js.map +1 -1
  207. package/lib/dist/extraction/languages/solidity.js +1 -82
  208. package/lib/dist/extraction/languages/solidity.js.map +1 -1
  209. package/lib/dist/extraction/languages/swift.js +3 -47
  210. package/lib/dist/extraction/languages/swift.js.map +1 -1
  211. package/lib/dist/extraction/languages/terraform.js +6 -152
  212. package/lib/dist/extraction/languages/terraform.js.map +1 -1
  213. package/lib/dist/extraction/languages/typescript.d.ts +64 -0
  214. package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
  215. package/lib/dist/extraction/languages/typescript.js +73 -49
  216. package/lib/dist/extraction/languages/typescript.js.map +1 -1
  217. package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -1
  218. package/lib/dist/extraction/languages/vbnet.js +9 -42
  219. package/lib/dist/extraction/languages/vbnet.js.map +1 -1
  220. package/lib/dist/extraction/lazy-frameworks.d.ts +15 -0
  221. package/lib/dist/extraction/lazy-frameworks.d.ts.map +1 -0
  222. package/lib/dist/extraction/lazy-frameworks.js +8 -0
  223. package/lib/dist/extraction/lazy-frameworks.js.map +1 -0
  224. package/lib/dist/extraction/liquid-extractor.d.ts +29 -3
  225. package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
  226. package/lib/dist/extraction/liquid-extractor.js +89 -148
  227. package/lib/dist/extraction/liquid-extractor.js.map +1 -1
  228. package/lib/dist/extraction/mybatis-extractor.js +0 -78
  229. package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
  230. package/lib/dist/extraction/parse-budget.js +0 -13
  231. package/lib/dist/extraction/parse-budget.js.map +1 -1
  232. package/lib/dist/extraction/parse-pool.d.ts +29 -5
  233. package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
  234. package/lib/dist/extraction/parse-pool.js +42 -174
  235. package/lib/dist/extraction/parse-pool.js.map +1 -1
  236. package/lib/dist/extraction/parse-worker.d.ts +1 -1
  237. package/lib/dist/extraction/parse-worker.d.ts.map +1 -1
  238. package/lib/dist/extraction/parse-worker.js +5 -58
  239. package/lib/dist/extraction/parse-worker.js.map +1 -1
  240. package/lib/dist/extraction/razor-extractor.d.ts +9 -0
  241. package/lib/dist/extraction/razor-extractor.d.ts.map +1 -1
  242. package/lib/dist/extraction/razor-extractor.js +45 -69
  243. package/lib/dist/extraction/razor-extractor.js.map +1 -1
  244. package/lib/dist/extraction/razor-script.d.ts +23 -0
  245. package/lib/dist/extraction/razor-script.d.ts.map +1 -0
  246. package/lib/dist/extraction/razor-script.js +244 -0
  247. package/lib/dist/extraction/razor-script.js.map +1 -0
  248. package/lib/dist/extraction/sfc-script.d.ts +42 -0
  249. package/lib/dist/extraction/sfc-script.d.ts.map +1 -1
  250. package/lib/dist/extraction/sfc-script.js +32 -31
  251. package/lib/dist/extraction/sfc-script.js.map +1 -1
  252. package/lib/dist/extraction/store-worker.d.ts +1 -1
  253. package/lib/dist/extraction/store-worker.d.ts.map +1 -1
  254. package/lib/dist/extraction/store-worker.js +1 -38
  255. package/lib/dist/extraction/store-worker.js.map +1 -1
  256. package/lib/dist/extraction/store-writer.js +2 -34
  257. package/lib/dist/extraction/store-writer.js.map +1 -1
  258. package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
  259. package/lib/dist/extraction/svelte-extractor.js +11 -87
  260. package/lib/dist/extraction/svelte-extractor.js.map +1 -1
  261. package/lib/dist/extraction/syntax-tokens.d.ts +6 -5
  262. package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -1
  263. package/lib/dist/extraction/syntax-tokens.js +4 -152
  264. package/lib/dist/extraction/syntax-tokens.js.map +1 -1
  265. package/lib/dist/extraction/tree-sitter-helpers.d.ts +37 -1
  266. package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
  267. package/lib/dist/extraction/tree-sitter-helpers.js +76 -68
  268. package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
  269. package/lib/dist/extraction/tree-sitter-types.d.ts +102 -22
  270. package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
  271. package/lib/dist/extraction/tree-sitter-types.js +0 -7
  272. package/lib/dist/extraction/tree-sitter-types.js.map +1 -1
  273. package/lib/dist/extraction/tree-sitter.d.ts +447 -9
  274. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  275. package/lib/dist/extraction/tree-sitter.js +1908 -2544
  276. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  277. package/lib/dist/extraction/vue-extractor.d.ts +13 -0
  278. package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
  279. package/lib/dist/extraction/vue-extractor.js +52 -92
  280. package/lib/dist/extraction/vue-extractor.js.map +1 -1
  281. package/lib/dist/extraction/vue-options-api.js +0 -32
  282. package/lib/dist/extraction/vue-options-api.js.map +1 -1
  283. package/lib/dist/extraction/vue-template-calls.d.ts +37 -0
  284. package/lib/dist/extraction/vue-template-calls.d.ts.map +1 -0
  285. package/lib/dist/extraction/vue-template-calls.js +497 -0
  286. package/lib/dist/extraction/vue-template-calls.js.map +1 -0
  287. package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
  288. package/lib/dist/extraction/wasm-runtime-flags.d.ts +6 -0
  289. package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
  290. package/lib/dist/extraction/wasm-runtime-flags.js +1 -88
  291. package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -1
  292. package/lib/dist/file-limits.d.ts +8 -0
  293. package/lib/dist/file-limits.d.ts.map +1 -1
  294. package/lib/dist/file-limits.js +13 -28
  295. package/lib/dist/file-limits.js.map +1 -1
  296. package/lib/dist/graph/branch-guards.d.ts.map +1 -1
  297. package/lib/dist/graph/branch-guards.js +4 -251
  298. package/lib/dist/graph/branch-guards.js.map +1 -1
  299. package/lib/dist/graph/call-sites.d.ts +12 -0
  300. package/lib/dist/graph/call-sites.d.ts.map +1 -0
  301. package/lib/dist/graph/call-sites.js +17 -0
  302. package/lib/dist/graph/call-sites.js.map +1 -0
  303. package/lib/dist/graph/cobol-copybooks.d.ts +75 -0
  304. package/lib/dist/graph/cobol-copybooks.d.ts.map +1 -0
  305. package/lib/dist/graph/cobol-copybooks.js +45 -0
  306. package/lib/dist/graph/cobol-copybooks.js.map +1 -0
  307. package/lib/dist/graph/dead-code.d.ts +26 -4
  308. package/lib/dist/graph/dead-code.d.ts.map +1 -1
  309. package/lib/dist/graph/dead-code.js +157 -311
  310. package/lib/dist/graph/dead-code.js.map +1 -1
  311. package/lib/dist/graph/dynamic-boundary-report.js +1 -88
  312. package/lib/dist/graph/dynamic-boundary-report.js.map +1 -1
  313. package/lib/dist/graph/file-cycles.d.ts +20 -0
  314. package/lib/dist/graph/file-cycles.d.ts.map +1 -0
  315. package/lib/dist/graph/file-cycles.js +79 -0
  316. package/lib/dist/graph/file-cycles.js.map +1 -0
  317. package/lib/dist/graph/go-package.d.ts +27 -0
  318. package/lib/dist/graph/go-package.d.ts.map +1 -0
  319. package/lib/dist/graph/go-package.js +49 -0
  320. package/lib/dist/graph/go-package.js.map +1 -0
  321. package/lib/dist/graph/index.d.ts +2 -0
  322. package/lib/dist/graph/index.d.ts.map +1 -1
  323. package/lib/dist/graph/index.js +4 -6
  324. package/lib/dist/graph/index.js.map +1 -1
  325. package/lib/dist/graph/named-symbol-flow.d.ts +5 -1
  326. package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -1
  327. package/lib/dist/graph/named-symbol-flow.js +82 -223
  328. package/lib/dist/graph/named-symbol-flow.js.map +1 -1
  329. package/lib/dist/graph/owning-package.d.ts +59 -0
  330. package/lib/dist/graph/owning-package.d.ts.map +1 -0
  331. package/lib/dist/graph/owning-package.js +120 -0
  332. package/lib/dist/graph/owning-package.js.map +1 -0
  333. package/lib/dist/graph/queries.d.ts +2 -2
  334. package/lib/dist/graph/queries.d.ts.map +1 -1
  335. package/lib/dist/graph/queries.js +2 -135
  336. package/lib/dist/graph/queries.js.map +1 -1
  337. package/lib/dist/graph/symbol-lookup.d.ts +15 -3
  338. package/lib/dist/graph/symbol-lookup.d.ts.map +1 -1
  339. package/lib/dist/graph/symbol-lookup.js +47 -89
  340. package/lib/dist/graph/symbol-lookup.js.map +1 -1
  341. package/lib/dist/graph/synthesized-hop.d.ts +37 -0
  342. package/lib/dist/graph/synthesized-hop.d.ts.map +1 -0
  343. package/lib/dist/graph/synthesized-hop.js +62 -0
  344. package/lib/dist/graph/synthesized-hop.js.map +1 -0
  345. package/lib/dist/graph/test-code.d.ts +21 -0
  346. package/lib/dist/graph/test-code.d.ts.map +1 -0
  347. package/lib/dist/graph/test-code.js +50 -0
  348. package/lib/dist/graph/test-code.js.map +1 -0
  349. package/lib/dist/graph/traversal.d.ts +31 -2
  350. package/lib/dist/graph/traversal.d.ts.map +1 -1
  351. package/lib/dist/graph/traversal.js +98 -226
  352. package/lib/dist/graph/traversal.js.map +1 -1
  353. package/lib/dist/graph/type-hierarchy.js +0 -138
  354. package/lib/dist/graph/type-hierarchy.js.map +1 -1
  355. package/lib/dist/index.d.ts +190 -25
  356. package/lib/dist/index.d.ts.map +1 -1
  357. package/lib/dist/index.js +694 -1109
  358. package/lib/dist/index.js.map +1 -1
  359. package/lib/dist/installer/beta-signup.js +0 -39
  360. package/lib/dist/installer/beta-signup.js.map +1 -1
  361. package/lib/dist/installer/config-writer.js +0 -24
  362. package/lib/dist/installer/config-writer.js.map +1 -1
  363. package/lib/dist/installer/index.d.ts +9 -5
  364. package/lib/dist/installer/index.d.ts.map +1 -1
  365. package/lib/dist/installer/index.js +25 -159
  366. package/lib/dist/installer/index.js.map +1 -1
  367. package/lib/dist/installer/instructions-template.d.ts +1 -1
  368. package/lib/dist/installer/instructions-template.js +0 -37
  369. package/lib/dist/installer/instructions-template.js.map +1 -1
  370. package/lib/dist/installer/targets/antigravity.js +0 -113
  371. package/lib/dist/installer/targets/antigravity.js.map +1 -1
  372. package/lib/dist/installer/targets/bob.d.ts +20 -0
  373. package/lib/dist/installer/targets/bob.d.ts.map +1 -0
  374. package/lib/dist/installer/targets/bob.js +83 -0
  375. package/lib/dist/installer/targets/bob.js.map +1 -0
  376. package/lib/dist/installer/targets/claude.d.ts.map +1 -1
  377. package/lib/dist/installer/targets/claude.js +1 -185
  378. package/lib/dist/installer/targets/claude.js.map +1 -1
  379. package/lib/dist/installer/targets/codex.d.ts.map +1 -1
  380. package/lib/dist/installer/targets/codex.js +17 -109
  381. package/lib/dist/installer/targets/codex.js.map +1 -1
  382. package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
  383. package/lib/dist/installer/targets/copilot-cli.js +2 -54
  384. package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
  385. package/lib/dist/installer/targets/copilot-jetbrains.js +0 -57
  386. package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -1
  387. package/lib/dist/installer/targets/copilot-vscode.js +0 -58
  388. package/lib/dist/installer/targets/copilot-vscode.js.map +1 -1
  389. package/lib/dist/installer/targets/cursor.js +7 -88
  390. package/lib/dist/installer/targets/cursor.js.map +1 -1
  391. package/lib/dist/installer/targets/droid.d.ts +18 -0
  392. package/lib/dist/installer/targets/droid.d.ts.map +1 -0
  393. package/lib/dist/installer/targets/droid.js +92 -0
  394. package/lib/dist/installer/targets/droid.js.map +1 -0
  395. package/lib/dist/installer/targets/dsh.d.ts +35 -0
  396. package/lib/dist/installer/targets/dsh.d.ts.map +1 -0
  397. package/lib/dist/installer/targets/dsh.js +267 -0
  398. package/lib/dist/installer/targets/dsh.js.map +1 -0
  399. package/lib/dist/installer/targets/gemini.js +0 -37
  400. package/lib/dist/installer/targets/gemini.js.map +1 -1
  401. package/lib/dist/installer/targets/grok.d.ts +25 -0
  402. package/lib/dist/installer/targets/grok.d.ts.map +1 -0
  403. package/lib/dist/installer/targets/grok.js +96 -0
  404. package/lib/dist/installer/targets/grok.js.map +1 -0
  405. package/lib/dist/installer/targets/hermes.d.ts +19 -7
  406. package/lib/dist/installer/targets/hermes.d.ts.map +1 -1
  407. package/lib/dist/installer/targets/hermes.js +218 -214
  408. package/lib/dist/installer/targets/hermes.js.map +1 -1
  409. package/lib/dist/installer/targets/json-config.d.ts +45 -0
  410. package/lib/dist/installer/targets/json-config.d.ts.map +1 -0
  411. package/lib/dist/installer/targets/json-config.js +128 -0
  412. package/lib/dist/installer/targets/json-config.js.map +1 -0
  413. package/lib/dist/installer/targets/kimi.d.ts +21 -0
  414. package/lib/dist/installer/targets/kimi.d.ts.map +1 -0
  415. package/lib/dist/installer/targets/kimi.js +97 -0
  416. package/lib/dist/installer/targets/kimi.js.map +1 -0
  417. package/lib/dist/installer/targets/kiro.js +1 -41
  418. package/lib/dist/installer/targets/kiro.js.map +1 -1
  419. package/lib/dist/installer/targets/opencode.js +0 -102
  420. package/lib/dist/installer/targets/opencode.js.map +1 -1
  421. package/lib/dist/installer/targets/pi.d.ts +24 -0
  422. package/lib/dist/installer/targets/pi.d.ts.map +1 -0
  423. package/lib/dist/installer/targets/pi.js +100 -0
  424. package/lib/dist/installer/targets/pi.js.map +1 -0
  425. package/lib/dist/installer/targets/qoder.d.ts +23 -0
  426. package/lib/dist/installer/targets/qoder.d.ts.map +1 -0
  427. package/lib/dist/installer/targets/qoder.js +83 -0
  428. package/lib/dist/installer/targets/qoder.js.map +1 -0
  429. package/lib/dist/installer/targets/qwen.d.ts +21 -0
  430. package/lib/dist/installer/targets/qwen.d.ts.map +1 -0
  431. package/lib/dist/installer/targets/qwen.js +115 -0
  432. package/lib/dist/installer/targets/qwen.js.map +1 -0
  433. package/lib/dist/installer/targets/registry.d.ts.map +1 -1
  434. package/lib/dist/installer/targets/registry.js +18 -25
  435. package/lib/dist/installer/targets/registry.js.map +1 -1
  436. package/lib/dist/installer/targets/shared.d.ts +81 -11
  437. package/lib/dist/installer/targets/shared.d.ts.map +1 -1
  438. package/lib/dist/installer/targets/shared.js +183 -129
  439. package/lib/dist/installer/targets/shared.js.map +1 -1
  440. package/lib/dist/installer/targets/toml.d.ts +82 -6
  441. package/lib/dist/installer/targets/toml.d.ts.map +1 -1
  442. package/lib/dist/installer/targets/toml.js +318 -112
  443. package/lib/dist/installer/targets/toml.js.map +1 -1
  444. package/lib/dist/installer/targets/types.d.ts +1 -1
  445. package/lib/dist/installer/targets/types.d.ts.map +1 -1
  446. package/lib/dist/installer/targets/types.js +0 -13
  447. package/lib/dist/installer/targets/types.js.map +1 -1
  448. package/lib/dist/installer/targets/windsurf.d.ts +22 -0
  449. package/lib/dist/installer/targets/windsurf.d.ts.map +1 -0
  450. package/lib/dist/installer/targets/windsurf.js +90 -0
  451. package/lib/dist/installer/targets/windsurf.js.map +1 -0
  452. package/lib/dist/lazy-engine.d.ts +22 -0
  453. package/lib/dist/lazy-engine.d.ts.map +1 -0
  454. package/lib/dist/lazy-engine.js +16 -0
  455. package/lib/dist/lazy-engine.js.map +1 -0
  456. package/lib/dist/mcp/answer-freshness.js +0 -6
  457. package/lib/dist/mcp/answer-freshness.js.map +1 -1
  458. package/lib/dist/mcp/daemon-manager.js +2 -23
  459. package/lib/dist/mcp/daemon-manager.js.map +1 -1
  460. package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
  461. package/lib/dist/mcp/daemon-paths.js +2 -85
  462. package/lib/dist/mcp/daemon-paths.js.map +1 -1
  463. package/lib/dist/mcp/daemon-registry.d.ts +40 -0
  464. package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
  465. package/lib/dist/mcp/daemon-registry.js +174 -137
  466. package/lib/dist/mcp/daemon-registry.js.map +1 -1
  467. package/lib/dist/mcp/daemon.d.ts +23 -0
  468. package/lib/dist/mcp/daemon.d.ts.map +1 -1
  469. package/lib/dist/mcp/daemon.js +89 -373
  470. package/lib/dist/mcp/daemon.js.map +1 -1
  471. package/lib/dist/mcp/dynamic-boundaries.js +4 -78
  472. package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
  473. package/lib/dist/mcp/early-ppid.js +0 -24
  474. package/lib/dist/mcp/early-ppid.js.map +1 -1
  475. package/lib/dist/mcp/engine.d.ts +8 -0
  476. package/lib/dist/mcp/engine.d.ts.map +1 -1
  477. package/lib/dist/mcp/engine.js +33 -152
  478. package/lib/dist/mcp/engine.js.map +1 -1
  479. package/lib/dist/mcp/explore-dedup.js +0 -108
  480. package/lib/dist/mcp/explore-dedup.js.map +1 -1
  481. package/lib/dist/mcp/explore-diagnostics.js +0 -116
  482. package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
  483. package/lib/dist/mcp/explore-session-state.js +0 -129
  484. package/lib/dist/mcp/explore-session-state.js.map +1 -1
  485. package/lib/dist/mcp/index-freshness-worker.js +1 -6
  486. package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
  487. package/lib/dist/mcp/index-freshness.js +0 -15
  488. package/lib/dist/mcp/index-freshness.js.map +1 -1
  489. package/lib/dist/mcp/index-version-warning.d.ts +21 -0
  490. package/lib/dist/mcp/index-version-warning.d.ts.map +1 -0
  491. package/lib/dist/mcp/index-version-warning.js +38 -0
  492. package/lib/dist/mcp/index-version-warning.js.map +1 -0
  493. package/lib/dist/mcp/index.d.ts +19 -1
  494. package/lib/dist/mcp/index.d.ts.map +1 -1
  495. package/lib/dist/mcp/index.js +118 -293
  496. package/lib/dist/mcp/index.js.map +1 -1
  497. package/lib/dist/mcp/liveness-watchdog.d.ts +13 -3
  498. package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
  499. package/lib/dist/mcp/liveness-watchdog.js +106 -121
  500. package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
  501. package/lib/dist/mcp/ppid-watchdog.js +0 -24
  502. package/lib/dist/mcp/ppid-watchdog.js.map +1 -1
  503. package/lib/dist/mcp/process-identity.d.ts +42 -0
  504. package/lib/dist/mcp/process-identity.d.ts.map +1 -0
  505. package/lib/dist/mcp/process-identity.js +130 -0
  506. package/lib/dist/mcp/process-identity.js.map +1 -0
  507. package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -1
  508. package/lib/dist/mcp/project-lifecycle.js +50 -17
  509. package/lib/dist/mcp/project-lifecycle.js.map +1 -1
  510. package/lib/dist/mcp/proxy.d.ts +17 -6
  511. package/lib/dist/mcp/proxy.d.ts.map +1 -1
  512. package/lib/dist/mcp/proxy.js +74 -248
  513. package/lib/dist/mcp/proxy.js.map +1 -1
  514. package/lib/dist/mcp/query-pool.d.ts +43 -3
  515. package/lib/dist/mcp/query-pool.d.ts.map +1 -1
  516. package/lib/dist/mcp/query-pool.js +109 -123
  517. package/lib/dist/mcp/query-pool.js.map +1 -1
  518. package/lib/dist/mcp/query-worker.js +24 -36
  519. package/lib/dist/mcp/query-worker.js.map +1 -1
  520. package/lib/dist/mcp/server-instructions.js +0 -31
  521. package/lib/dist/mcp/server-instructions.js.map +1 -1
  522. package/lib/dist/mcp/session.d.ts +27 -0
  523. package/lib/dist/mcp/session.d.ts.map +1 -1
  524. package/lib/dist/mcp/session.js +29 -130
  525. package/lib/dist/mcp/session.js.map +1 -1
  526. package/lib/dist/mcp/startup-handshake.js +1 -48
  527. package/lib/dist/mcp/startup-handshake.js.map +1 -1
  528. package/lib/dist/mcp/stdin-teardown.js +0 -28
  529. package/lib/dist/mcp/stdin-teardown.js.map +1 -1
  530. package/lib/dist/mcp/stdout-teardown.d.ts +26 -0
  531. package/lib/dist/mcp/stdout-teardown.d.ts.map +1 -0
  532. package/lib/dist/mcp/stdout-teardown.js +20 -0
  533. package/lib/dist/mcp/stdout-teardown.js.map +1 -0
  534. package/lib/dist/mcp/tools.d.ts +127 -18
  535. package/lib/dist/mcp/tools.d.ts.map +1 -1
  536. package/lib/dist/mcp/tools.js +661 -3590
  537. package/lib/dist/mcp/tools.js.map +1 -1
  538. package/lib/dist/mcp/transport.d.ts.map +1 -1
  539. package/lib/dist/mcp/transport.js +4 -96
  540. package/lib/dist/mcp/transport.js.map +1 -1
  541. package/lib/dist/mcp/version.d.ts +13 -1
  542. package/lib/dist/mcp/version.d.ts.map +1 -1
  543. package/lib/dist/mcp/version.js +19 -21
  544. package/lib/dist/mcp/version.js.map +1 -1
  545. package/lib/dist/mcp/writer-lock.d.ts +11 -0
  546. package/lib/dist/mcp/writer-lock.d.ts.map +1 -1
  547. package/lib/dist/mcp/writer-lock.js +49 -46
  548. package/lib/dist/mcp/writer-lock.js.map +1 -1
  549. package/lib/dist/project-config.js +1 -138
  550. package/lib/dist/project-config.js.map +1 -1
  551. package/lib/dist/resolution/alias-binding.d.ts +7 -0
  552. package/lib/dist/resolution/alias-binding.d.ts.map +1 -1
  553. package/lib/dist/resolution/alias-binding.js +7 -56
  554. package/lib/dist/resolution/alias-binding.js.map +1 -1
  555. package/lib/dist/resolution/ambient-modules.d.ts +185 -0
  556. package/lib/dist/resolution/ambient-modules.d.ts.map +1 -0
  557. package/lib/dist/resolution/ambient-modules.js +732 -0
  558. package/lib/dist/resolution/ambient-modules.js.map +1 -0
  559. package/lib/dist/resolution/angular-template-synthesizer.d.ts +48 -1
  560. package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -1
  561. package/lib/dist/resolution/angular-template-synthesizer.js +401 -65
  562. package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -1
  563. package/lib/dist/resolution/c-feature-variants.d.ts +40 -0
  564. package/lib/dist/resolution/c-feature-variants.d.ts.map +1 -0
  565. package/lib/dist/resolution/c-feature-variants.js +249 -0
  566. package/lib/dist/resolution/c-feature-variants.js.map +1 -0
  567. package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
  568. package/lib/dist/resolution/c-fnptr-synthesizer.js +23 -391
  569. package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
  570. package/lib/dist/resolution/c-macro-renames.d.ts +25 -0
  571. package/lib/dist/resolution/c-macro-renames.d.ts.map +1 -0
  572. package/lib/dist/resolution/c-macro-renames.js +95 -0
  573. package/lib/dist/resolution/c-macro-renames.js.map +1 -0
  574. package/lib/dist/resolution/callback-synthesizer.d.ts +15 -1
  575. package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
  576. package/lib/dist/resolution/callback-synthesizer.js +1355 -1270
  577. package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
  578. package/lib/dist/resolution/const-alias-synthesizer.d.ts +48 -0
  579. package/lib/dist/resolution/const-alias-synthesizer.d.ts.map +1 -0
  580. package/lib/dist/resolution/const-alias-synthesizer.js +234 -0
  581. package/lib/dist/resolution/const-alias-synthesizer.js.map +1 -0
  582. package/lib/dist/resolution/cooperative-yield.js +0 -27
  583. package/lib/dist/resolution/cooperative-yield.js.map +1 -1
  584. package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -1
  585. package/lib/dist/resolution/cpp-constructor.js +15 -17
  586. package/lib/dist/resolution/cpp-constructor.js.map +1 -1
  587. package/lib/dist/resolution/cpp-includers.d.ts +46 -0
  588. package/lib/dist/resolution/cpp-includers.d.ts.map +1 -0
  589. package/lib/dist/resolution/cpp-includers.js +153 -0
  590. package/lib/dist/resolution/cpp-includers.js.map +1 -0
  591. package/lib/dist/resolution/cpp-macro-visibility.d.ts +16 -0
  592. package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -1
  593. package/lib/dist/resolution/cpp-macro-visibility.js +17 -68
  594. package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -1
  595. package/lib/dist/resolution/cpp-namespaces.d.ts +54 -0
  596. package/lib/dist/resolution/cpp-namespaces.d.ts.map +1 -0
  597. package/lib/dist/resolution/cpp-namespaces.js +151 -0
  598. package/lib/dist/resolution/cpp-namespaces.js.map +1 -0
  599. package/lib/dist/resolution/cpp-raw-strings.d.ts +33 -0
  600. package/lib/dist/resolution/cpp-raw-strings.d.ts.map +1 -0
  601. package/lib/dist/resolution/cpp-raw-strings.js +167 -0
  602. package/lib/dist/resolution/cpp-raw-strings.js.map +1 -0
  603. package/lib/dist/resolution/cpp-supertypes.d.ts +118 -0
  604. package/lib/dist/resolution/cpp-supertypes.d.ts.map +1 -0
  605. package/lib/dist/resolution/cpp-supertypes.js +322 -0
  606. package/lib/dist/resolution/cpp-supertypes.js.map +1 -0
  607. package/lib/dist/resolution/cpp-template-instantiations.d.ts +83 -0
  608. package/lib/dist/resolution/cpp-template-instantiations.d.ts.map +1 -0
  609. package/lib/dist/resolution/cpp-template-instantiations.js +983 -0
  610. package/lib/dist/resolution/cpp-template-instantiations.js.map +1 -0
  611. package/lib/dist/resolution/cpp-type-aliases.d.ts +194 -0
  612. package/lib/dist/resolution/cpp-type-aliases.d.ts.map +1 -0
  613. package/lib/dist/resolution/cpp-type-aliases.js +648 -0
  614. package/lib/dist/resolution/cpp-type-aliases.js.map +1 -0
  615. package/lib/dist/resolution/dart-libraries.d.ts +75 -0
  616. package/lib/dist/resolution/dart-libraries.d.ts.map +1 -0
  617. package/lib/dist/resolution/dart-libraries.js +721 -0
  618. package/lib/dist/resolution/dart-libraries.js.map +1 -0
  619. package/lib/dist/resolution/dart-local-scope.d.ts +41 -0
  620. package/lib/dist/resolution/dart-local-scope.d.ts.map +1 -0
  621. package/lib/dist/resolution/dart-local-scope.js +565 -0
  622. package/lib/dist/resolution/dart-local-scope.js.map +1 -0
  623. package/lib/dist/resolution/expo-router-synthesizer.js +0 -52
  624. package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -1
  625. package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -1
  626. package/lib/dist/resolution/frameworks/angular-router.js +41 -208
  627. package/lib/dist/resolution/frameworks/angular-router.js.map +1 -1
  628. package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
  629. package/lib/dist/resolution/frameworks/astro.js +4 -60
  630. package/lib/dist/resolution/frameworks/astro.js.map +1 -1
  631. package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -1
  632. package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -1
  633. package/lib/dist/resolution/frameworks/cargo-workspace.js +65 -15
  634. package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -1
  635. package/lib/dist/resolution/frameworks/cics.d.ts.map +1 -1
  636. package/lib/dist/resolution/frameworks/cics.js +7 -33
  637. package/lib/dist/resolution/frameworks/cics.js.map +1 -1
  638. package/lib/dist/resolution/frameworks/codeigniter.d.ts +23 -0
  639. package/lib/dist/resolution/frameworks/codeigniter.d.ts.map +1 -0
  640. package/lib/dist/resolution/frameworks/codeigniter.js +271 -0
  641. package/lib/dist/resolution/frameworks/codeigniter.js.map +1 -0
  642. package/lib/dist/resolution/frameworks/component-folder.d.ts +17 -0
  643. package/lib/dist/resolution/frameworks/component-folder.d.ts.map +1 -0
  644. package/lib/dist/resolution/frameworks/component-folder.js +11 -0
  645. package/lib/dist/resolution/frameworks/component-folder.js.map +1 -0
  646. package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
  647. package/lib/dist/resolution/frameworks/csharp.js +5 -68
  648. package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
  649. package/lib/dist/resolution/frameworks/drupal.d.ts +17 -8
  650. package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -1
  651. package/lib/dist/resolution/frameworks/drupal.js +377 -142
  652. package/lib/dist/resolution/frameworks/drupal.js.map +1 -1
  653. package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
  654. package/lib/dist/resolution/frameworks/expo-modules.js +8 -88
  655. package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
  656. package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
  657. package/lib/dist/resolution/frameworks/expo-router.js +9 -190
  658. package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
  659. package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
  660. package/lib/dist/resolution/frameworks/express.js +182 -199
  661. package/lib/dist/resolution/frameworks/express.js.map +1 -1
  662. package/lib/dist/resolution/frameworks/fabric.js +1 -104
  663. package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
  664. package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
  665. package/lib/dist/resolution/frameworks/go.js +14 -43
  666. package/lib/dist/resolution/frameworks/go.js.map +1 -1
  667. package/lib/dist/resolution/frameworks/goframe.js +1 -55
  668. package/lib/dist/resolution/frameworks/goframe.js.map +1 -1
  669. package/lib/dist/resolution/frameworks/index.d.ts +13 -0
  670. package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
  671. package/lib/dist/resolution/frameworks/index.js +12 -50
  672. package/lib/dist/resolution/frameworks/index.js.map +1 -1
  673. package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
  674. package/lib/dist/resolution/frameworks/java.js +203 -129
  675. package/lib/dist/resolution/frameworks/java.js.map +1 -1
  676. package/lib/dist/resolution/frameworks/laravel.js +2 -125
  677. package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
  678. package/lib/dist/resolution/frameworks/name-heuristic.js +0 -12
  679. package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -1
  680. package/lib/dist/resolution/frameworks/nestjs.js +2 -199
  681. package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
  682. package/lib/dist/resolution/frameworks/next-proxy.d.ts +67 -0
  683. package/lib/dist/resolution/frameworks/next-proxy.d.ts.map +1 -0
  684. package/lib/dist/resolution/frameworks/next-proxy.js +239 -0
  685. package/lib/dist/resolution/frameworks/next-proxy.js.map +1 -0
  686. package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -1
  687. package/lib/dist/resolution/frameworks/nextjs.js +10 -66
  688. package/lib/dist/resolution/frameworks/nextjs.js.map +1 -1
  689. package/lib/dist/resolution/frameworks/object-literal.js +0 -21
  690. package/lib/dist/resolution/frameworks/object-literal.js.map +1 -1
  691. package/lib/dist/resolution/frameworks/package-deps.d.ts +11 -7
  692. package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -1
  693. package/lib/dist/resolution/frameworks/package-deps.js +35 -26
  694. package/lib/dist/resolution/frameworks/package-deps.js.map +1 -1
  695. package/lib/dist/resolution/frameworks/page-component.js +0 -14
  696. package/lib/dist/resolution/frameworks/page-component.js.map +1 -1
  697. package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
  698. package/lib/dist/resolution/frameworks/play.js +26 -34
  699. package/lib/dist/resolution/frameworks/play.js.map +1 -1
  700. package/lib/dist/resolution/frameworks/python.js +5 -102
  701. package/lib/dist/resolution/frameworks/python.js.map +1 -1
  702. package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
  703. package/lib/dist/resolution/frameworks/react-native.js +1 -166
  704. package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
  705. package/lib/dist/resolution/frameworks/react-router.d.ts +13 -4
  706. package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
  707. package/lib/dist/resolution/frameworks/react-router.js +10 -82
  708. package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
  709. package/lib/dist/resolution/frameworks/react.d.ts +57 -0
  710. package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
  711. package/lib/dist/resolution/frameworks/react.js +1449 -191
  712. package/lib/dist/resolution/frameworks/react.js.map +1 -1
  713. package/lib/dist/resolution/frameworks/ruby.js +1 -61
  714. package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
  715. package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
  716. package/lib/dist/resolution/frameworks/rust.js +35 -56
  717. package/lib/dist/resolution/frameworks/rust.js.map +1 -1
  718. package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
  719. package/lib/dist/resolution/frameworks/svelte.js +7 -75
  720. package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
  721. package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -1
  722. package/lib/dist/resolution/frameworks/sveltekit-router.js +8 -46
  723. package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -1
  724. package/lib/dist/resolution/frameworks/swift-objc.js +0 -97
  725. package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -1
  726. package/lib/dist/resolution/frameworks/swift.js +0 -97
  727. package/lib/dist/resolution/frameworks/swift.js.map +1 -1
  728. package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -1
  729. package/lib/dist/resolution/frameworks/tanstack-router.js +9 -130
  730. package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -1
  731. package/lib/dist/resolution/frameworks/terraform.js +1 -85
  732. package/lib/dist/resolution/frameworks/terraform.js.map +1 -1
  733. package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
  734. package/lib/dist/resolution/frameworks/vue-router.js +11 -134
  735. package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
  736. package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
  737. package/lib/dist/resolution/frameworks/vue.js +42 -114
  738. package/lib/dist/resolution/frameworks/vue.js.map +1 -1
  739. package/lib/dist/resolution/go-func-field-synthesizer.d.ts +58 -0
  740. package/lib/dist/resolution/go-func-field-synthesizer.d.ts.map +1 -0
  741. package/lib/dist/resolution/go-func-field-synthesizer.js +696 -0
  742. package/lib/dist/resolution/go-func-field-synthesizer.js.map +1 -0
  743. package/lib/dist/resolution/go-module.d.ts +23 -7
  744. package/lib/dist/resolution/go-module.d.ts.map +1 -1
  745. package/lib/dist/resolution/go-module.js +21 -24
  746. package/lib/dist/resolution/go-module.js.map +1 -1
  747. package/lib/dist/resolution/go-stdlib-methods.d.ts +9 -0
  748. package/lib/dist/resolution/go-stdlib-methods.d.ts.map +1 -0
  749. package/lib/dist/resolution/go-stdlib-methods.js +224 -0
  750. package/lib/dist/resolution/go-stdlib-methods.js.map +1 -0
  751. package/lib/dist/resolution/goframe-synthesizer.js +2 -53
  752. package/lib/dist/resolution/goframe-synthesizer.js.map +1 -1
  753. package/lib/dist/resolution/import-resolver.d.ts +276 -29
  754. package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
  755. package/lib/dist/resolution/import-resolver.js +1670 -1380
  756. package/lib/dist/resolution/import-resolver.js.map +1 -1
  757. package/lib/dist/resolution/index.d.ts +415 -6
  758. package/lib/dist/resolution/index.d.ts.map +1 -1
  759. package/lib/dist/resolution/index.js +1323 -1037
  760. package/lib/dist/resolution/index.js.map +1 -1
  761. package/lib/dist/resolution/js-builtins.d.ts +14 -0
  762. package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
  763. package/lib/dist/resolution/js-builtins.js +14 -14
  764. package/lib/dist/resolution/js-builtins.js.map +1 -1
  765. package/lib/dist/resolution/js-class-expressions.d.ts +48 -0
  766. package/lib/dist/resolution/js-class-expressions.d.ts.map +1 -0
  767. package/lib/dist/resolution/js-class-expressions.js +25 -0
  768. package/lib/dist/resolution/js-class-expressions.js.map +1 -0
  769. package/lib/dist/resolution/js-super-calls.d.ts +18 -0
  770. package/lib/dist/resolution/js-super-calls.d.ts.map +1 -0
  771. package/lib/dist/resolution/js-super-calls.js +94 -0
  772. package/lib/dist/resolution/js-super-calls.js.map +1 -0
  773. package/lib/dist/resolution/jsx-code.d.ts +28 -0
  774. package/lib/dist/resolution/jsx-code.d.ts.map +1 -0
  775. package/lib/dist/resolution/jsx-code.js +459 -0
  776. package/lib/dist/resolution/jsx-code.js.map +1 -0
  777. package/lib/dist/resolution/lru-cache.d.ts +5 -13
  778. package/lib/dist/resolution/lru-cache.d.ts.map +1 -1
  779. package/lib/dist/resolution/lru-cache.js +43 -32
  780. package/lib/dist/resolution/lru-cache.js.map +1 -1
  781. package/lib/dist/resolution/memory-budget.js +0 -52
  782. package/lib/dist/resolution/memory-budget.js.map +1 -1
  783. package/lib/dist/resolution/module-importers.d.ts +185 -0
  784. package/lib/dist/resolution/module-importers.d.ts.map +1 -0
  785. package/lib/dist/resolution/module-importers.js +588 -0
  786. package/lib/dist/resolution/module-importers.js.map +1 -0
  787. package/lib/dist/resolution/name-matcher.d.ts +858 -7
  788. package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
  789. package/lib/dist/resolution/name-matcher.js +21030 -5110
  790. package/lib/dist/resolution/name-matcher.js.map +1 -1
  791. package/lib/dist/resolution/next-router-synthesizer.d.ts +19 -0
  792. package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -1
  793. package/lib/dist/resolution/next-router-synthesizer.js +46 -28
  794. package/lib/dist/resolution/next-router-synthesizer.js.map +1 -1
  795. package/lib/dist/resolution/override-parameters.d.ts +40 -0
  796. package/lib/dist/resolution/override-parameters.d.ts.map +1 -0
  797. package/lib/dist/resolution/override-parameters.js +339 -0
  798. package/lib/dist/resolution/override-parameters.js.map +1 -0
  799. package/lib/dist/resolution/parameter-flow.d.ts +218 -0
  800. package/lib/dist/resolution/parameter-flow.d.ts.map +1 -0
  801. package/lib/dist/resolution/parameter-flow.js +474 -0
  802. package/lib/dist/resolution/parameter-flow.js.map +1 -0
  803. package/lib/dist/resolution/pascal-scope.d.ts +91 -0
  804. package/lib/dist/resolution/pascal-scope.d.ts.map +1 -0
  805. package/lib/dist/resolution/pascal-scope.js +961 -0
  806. package/lib/dist/resolution/pascal-scope.js.map +1 -0
  807. package/lib/dist/resolution/path-aliases.d.ts +32 -4
  808. package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
  809. package/lib/dist/resolution/path-aliases.js +43 -110
  810. package/lib/dist/resolution/path-aliases.js.map +1 -1
  811. package/lib/dist/resolution/project-scans.d.ts +38 -0
  812. package/lib/dist/resolution/project-scans.d.ts.map +1 -0
  813. package/lib/dist/resolution/project-scans.js +30 -0
  814. package/lib/dist/resolution/project-scans.js.map +1 -0
  815. package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
  816. package/lib/dist/resolution/react-router-synthesizer.js +3 -55
  817. package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
  818. package/lib/dist/resolution/resolver-pool.d.ts +23 -2
  819. package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
  820. package/lib/dist/resolution/resolver-pool.js +43 -111
  821. package/lib/dist/resolution/resolver-pool.js.map +1 -1
  822. package/lib/dist/resolution/resolver-worker.d.ts +1 -1
  823. package/lib/dist/resolution/resolver-worker.d.ts.map +1 -1
  824. package/lib/dist/resolution/resolver-worker.js +8 -37
  825. package/lib/dist/resolution/resolver-worker.js.map +1 -1
  826. package/lib/dist/resolution/resurrect-ref.d.ts +25 -0
  827. package/lib/dist/resolution/resurrect-ref.d.ts.map +1 -0
  828. package/lib/dist/resolution/resurrect-ref.js +19 -0
  829. package/lib/dist/resolution/resurrect-ref.js.map +1 -0
  830. package/lib/dist/resolution/ruby-constant-paths.d.ts +56 -0
  831. package/lib/dist/resolution/ruby-constant-paths.d.ts.map +1 -0
  832. package/lib/dist/resolution/ruby-constant-paths.js +255 -0
  833. package/lib/dist/resolution/ruby-constant-paths.js.map +1 -0
  834. package/lib/dist/resolution/ruby-parameter-flow.d.ts +10 -0
  835. package/lib/dist/resolution/ruby-parameter-flow.d.ts.map +1 -0
  836. package/lib/dist/resolution/ruby-parameter-flow.js +801 -0
  837. package/lib/dist/resolution/ruby-parameter-flow.js.map +1 -0
  838. package/lib/dist/resolution/rust-scopes.d.ts +120 -0
  839. package/lib/dist/resolution/rust-scopes.d.ts.map +1 -0
  840. package/lib/dist/resolution/rust-scopes.js +730 -0
  841. package/lib/dist/resolution/rust-scopes.js.map +1 -0
  842. package/lib/dist/resolution/shopify-themes.d.ts +10 -0
  843. package/lib/dist/resolution/shopify-themes.d.ts.map +1 -0
  844. package/lib/dist/resolution/shopify-themes.js +19 -0
  845. package/lib/dist/resolution/shopify-themes.js.map +1 -0
  846. package/lib/dist/resolution/strip-comments.d.ts +20 -1
  847. package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
  848. package/lib/dist/resolution/strip-comments.js +164 -119
  849. package/lib/dist/resolution/strip-comments.js.map +1 -1
  850. package/lib/dist/resolution/sveltekit-synthesizer.js +0 -64
  851. package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -1
  852. package/lib/dist/resolution/swift-objc-bridge.js +0 -160
  853. package/lib/dist/resolution/swift-objc-bridge.js.map +1 -1
  854. package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -1
  855. package/lib/dist/resolution/swift-type-visibility.js +2 -101
  856. package/lib/dist/resolution/swift-type-visibility.js.map +1 -1
  857. package/lib/dist/resolution/synth-utils.js +1 -22
  858. package/lib/dist/resolution/synth-utils.js.map +1 -1
  859. package/lib/dist/resolution/tanstack-router-synthesizer.js +0 -32
  860. package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -1
  861. package/lib/dist/resolution/tauri-synthesizer.d.ts +37 -0
  862. package/lib/dist/resolution/tauri-synthesizer.d.ts.map +1 -0
  863. package/lib/dist/resolution/tauri-synthesizer.js +1038 -0
  864. package/lib/dist/resolution/tauri-synthesizer.js.map +1 -0
  865. package/lib/dist/resolution/tier-synthesizer.js +4 -170
  866. package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
  867. package/lib/dist/resolution/type-parameters.d.ts +23 -0
  868. package/lib/dist/resolution/type-parameters.d.ts.map +1 -1
  869. package/lib/dist/resolution/type-parameters.js +52 -54
  870. package/lib/dist/resolution/type-parameters.js.map +1 -1
  871. package/lib/dist/resolution/types.d.ts +183 -11
  872. package/lib/dist/resolution/types.d.ts.map +1 -1
  873. package/lib/dist/resolution/types.js +0 -47
  874. package/lib/dist/resolution/types.js.map +1 -1
  875. package/lib/dist/resolution/vbnet-receivers.d.ts +92 -0
  876. package/lib/dist/resolution/vbnet-receivers.d.ts.map +1 -0
  877. package/lib/dist/resolution/vbnet-receivers.js +1482 -0
  878. package/lib/dist/resolution/vbnet-receivers.js.map +1 -0
  879. package/lib/dist/resolution/vue-router-synthesizer.js +0 -31
  880. package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -1
  881. package/lib/dist/resolution/workspace-packages.d.ts +206 -15
  882. package/lib/dist/resolution/workspace-packages.d.ts.map +1 -1
  883. package/lib/dist/resolution/workspace-packages.js +570 -152
  884. package/lib/dist/resolution/workspace-packages.js.map +1 -1
  885. package/lib/dist/search/identifier-segments.js +2 -93
  886. package/lib/dist/search/identifier-segments.js.map +1 -1
  887. package/lib/dist/search/query-parser.js +0 -54
  888. package/lib/dist/search/query-parser.js.map +1 -1
  889. package/lib/dist/search/query-paths.js +0 -167
  890. package/lib/dist/search/query-paths.js.map +1 -1
  891. package/lib/dist/search/query-utils.d.ts +44 -0
  892. package/lib/dist/search/query-utils.d.ts.map +1 -1
  893. package/lib/dist/search/query-utils.js +120 -198
  894. package/lib/dist/search/query-utils.js.map +1 -1
  895. package/lib/dist/sync/git-hooks.d.ts +14 -5
  896. package/lib/dist/sync/git-hooks.d.ts.map +1 -1
  897. package/lib/dist/sync/git-hooks.js +118 -65
  898. package/lib/dist/sync/git-hooks.js.map +1 -1
  899. package/lib/dist/sync/index.js +0 -14
  900. package/lib/dist/sync/index.js.map +1 -1
  901. package/lib/dist/sync/watch-policy.js +0 -45
  902. package/lib/dist/sync/watch-policy.js.map +1 -1
  903. package/lib/dist/sync/watcher.d.ts +29 -11
  904. package/lib/dist/sync/watcher.d.ts.map +1 -1
  905. package/lib/dist/sync/watcher.js +83 -487
  906. package/lib/dist/sync/watcher.js.map +1 -1
  907. package/lib/dist/sync/worktree.d.ts +7 -2
  908. package/lib/dist/sync/worktree.d.ts.map +1 -1
  909. package/lib/dist/sync/worktree.js +24 -97
  910. package/lib/dist/sync/worktree.js.map +1 -1
  911. package/lib/dist/telemetry/index.d.ts.map +1 -1
  912. package/lib/dist/telemetry/index.js +15 -135
  913. package/lib/dist/telemetry/index.js.map +1 -1
  914. package/lib/dist/types.d.ts +46 -0
  915. package/lib/dist/types.d.ts.map +1 -1
  916. package/lib/dist/types.js +15 -44
  917. package/lib/dist/types.js.map +1 -1
  918. package/lib/dist/ui/color.js +0 -19
  919. package/lib/dist/ui/color.js.map +1 -1
  920. package/lib/dist/ui/glyphs.js +2 -45
  921. package/lib/dist/ui/glyphs.js.map +1 -1
  922. package/lib/dist/ui/shimmer-progress.js +0 -21
  923. package/lib/dist/ui/shimmer-progress.js.map +1 -1
  924. package/lib/dist/ui/shimmer-worker.js +0 -22
  925. package/lib/dist/ui/shimmer-worker.js.map +1 -1
  926. package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -1
  927. package/lib/dist/ui-server/api/deadcode.js +2 -31
  928. package/lib/dist/ui-server/api/deadcode.js.map +1 -1
  929. package/lib/dist/ui-server/api/effects.js +0 -111
  930. package/lib/dist/ui-server/api/effects.js.map +1 -1
  931. package/lib/dist/ui-server/api/entrypoints.js +0 -142
  932. package/lib/dist/ui-server/api/entrypoints.js.map +1 -1
  933. package/lib/dist/ui-server/api/events.js +0 -145
  934. package/lib/dist/ui-server/api/events.js.map +1 -1
  935. package/lib/dist/ui-server/api/file.js +0 -80
  936. package/lib/dist/ui-server/api/file.js.map +1 -1
  937. package/lib/dist/ui-server/api/filecode.js +0 -95
  938. package/lib/dist/ui-server/api/filecode.js.map +1 -1
  939. package/lib/dist/ui-server/api/flow.js +0 -149
  940. package/lib/dist/ui-server/api/flow.js.map +1 -1
  941. package/lib/dist/ui-server/api/hierarchy.js +0 -28
  942. package/lib/dist/ui-server/api/hierarchy.js.map +1 -1
  943. package/lib/dist/ui-server/api/index.js +0 -88
  944. package/lib/dist/ui-server/api/index.js.map +1 -1
  945. package/lib/dist/ui-server/api/map.d.ts.map +1 -1
  946. package/lib/dist/ui-server/api/map.js +4 -317
  947. package/lib/dist/ui-server/api/map.js.map +1 -1
  948. package/lib/dist/ui-server/api/node.js +0 -111
  949. package/lib/dist/ui-server/api/node.js.map +1 -1
  950. package/lib/dist/ui-server/api/nodes.js +0 -16
  951. package/lib/dist/ui-server/api/nodes.js.map +1 -1
  952. package/lib/dist/ui-server/api/program.js +0 -90
  953. package/lib/dist/ui-server/api/program.js.map +1 -1
  954. package/lib/dist/ui-server/api/respond.js +0 -60
  955. package/lib/dist/ui-server/api/respond.js.map +1 -1
  956. package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
  957. package/lib/dist/ui-server/api/route-roots.js +2 -44
  958. package/lib/dist/ui-server/api/route-roots.js.map +1 -1
  959. package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
  960. package/lib/dist/ui-server/api/routes.js +4 -60
  961. package/lib/dist/ui-server/api/routes.js.map +1 -1
  962. package/lib/dist/ui-server/api/screens.d.ts.map +1 -1
  963. package/lib/dist/ui-server/api/screens.js +4 -174
  964. package/lib/dist/ui-server/api/screens.js.map +1 -1
  965. package/lib/dist/ui-server/api/search.js +0 -62
  966. package/lib/dist/ui-server/api/search.js.map +1 -1
  967. package/lib/dist/ui-server/api/session.js +0 -58
  968. package/lib/dist/ui-server/api/session.js.map +1 -1
  969. package/lib/dist/ui-server/api/source.d.ts.map +1 -1
  970. package/lib/dist/ui-server/api/source.js +0 -161
  971. package/lib/dist/ui-server/api/source.js.map +1 -1
  972. package/lib/dist/ui-server/api/stats.js +0 -58
  973. package/lib/dist/ui-server/api/stats.js.map +1 -1
  974. package/lib/dist/ui-server/api/steps.d.ts.map +1 -1
  975. package/lib/dist/ui-server/api/steps.js +5 -381
  976. package/lib/dist/ui-server/api/steps.js.map +1 -1
  977. package/lib/dist/ui-server/api/trail-store.d.ts +3 -3
  978. package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -1
  979. package/lib/dist/ui-server/api/trail-store.js +24 -106
  980. package/lib/dist/ui-server/api/trail-store.js.map +1 -1
  981. package/lib/dist/ui-server/api/trails.d.ts.map +1 -1
  982. package/lib/dist/ui-server/api/trails.js +19 -94
  983. package/lib/dist/ui-server/api/trails.js.map +1 -1
  984. package/lib/dist/ui-server/api/when.js +0 -36
  985. package/lib/dist/ui-server/api/when.js.map +1 -1
  986. package/lib/dist/ui-server/api/wire.js +0 -58
  987. package/lib/dist/ui-server/api/wire.js.map +1 -1
  988. package/lib/dist/ui-server/assets.js +0 -35
  989. package/lib/dist/ui-server/assets.js.map +1 -1
  990. package/lib/dist/ui-server/constants.js +0 -26
  991. package/lib/dist/ui-server/constants.js.map +1 -1
  992. package/lib/dist/ui-server/highlight/bounded-tokenize.js +0 -25
  993. package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -1
  994. package/lib/dist/ui-server/highlight/index.js +1 -132
  995. package/lib/dist/ui-server/highlight/index.js.map +1 -1
  996. package/lib/dist/ui-server/highlight/languages.d.ts +3 -3
  997. package/lib/dist/ui-server/highlight/languages.js +0 -31
  998. package/lib/dist/ui-server/highlight/languages.js.map +1 -1
  999. package/lib/dist/ui-server/highlight/tokenize-worker.js +0 -5
  1000. package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -1
  1001. package/lib/dist/ui-server/index.d.ts +25 -0
  1002. package/lib/dist/ui-server/index.d.ts.map +1 -1
  1003. package/lib/dist/ui-server/index.js +35 -103
  1004. package/lib/dist/ui-server/index.js.map +1 -1
  1005. package/lib/dist/ui-server/open-browser.js +0 -34
  1006. package/lib/dist/ui-server/open-browser.js.map +1 -1
  1007. package/lib/dist/ui-server/security.d.ts +5 -0
  1008. package/lib/dist/ui-server/security.d.ts.map +1 -1
  1009. package/lib/dist/ui-server/security.js +11 -147
  1010. package/lib/dist/ui-server/security.js.map +1 -1
  1011. package/lib/dist/ui-server/static.js +0 -41
  1012. package/lib/dist/ui-server/static.js.map +1 -1
  1013. package/lib/dist/upgrade/index.d.ts +18 -5
  1014. package/lib/dist/upgrade/index.d.ts.map +1 -1
  1015. package/lib/dist/upgrade/index.js +73 -229
  1016. package/lib/dist/upgrade/index.js.map +1 -1
  1017. package/lib/dist/upgrade/remove-binary.js +2 -67
  1018. package/lib/dist/upgrade/remove-binary.js.map +1 -1
  1019. package/lib/dist/upgrade/update-check.js +1 -81
  1020. package/lib/dist/upgrade/update-check.js.map +1 -1
  1021. package/lib/dist/utils.d.ts +69 -1
  1022. package/lib/dist/utils.d.ts.map +1 -1
  1023. package/lib/dist/utils.js +224 -266
  1024. package/lib/dist/utils.js.map +1 -1
  1025. package/lib/dist/worker-teardown.js +0 -47
  1026. package/lib/dist/worker-teardown.js.map +1 -1
  1027. package/lib/kernel/codegraph-kernel.node +2 -2
  1028. package/lib/node_modules/.package-lock.json +4 -4
  1029. package/lib/node_modules/ignore/README.md +138 -8
  1030. package/lib/node_modules/ignore/index.d.ts +56 -20
  1031. package/lib/node_modules/ignore/index.js +1033 -221
  1032. package/lib/node_modules/ignore/legacy.js +871 -178
  1033. package/lib/node_modules/ignore/package.json +10 -4
  1034. package/lib/package.json +14 -8
  1035. package/node.exe +2 -2
  1036. package/package.json +1 -1
@@ -1,92 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * Dead code and islands — one derivation of "nothing in this repository
4
- * reaches here".
5
- *
6
- * The graph can answer that question exactly, and that is the problem: the
7
- * exact answer is *no incoming edge*, and a symbol with no incoming edge is not
8
- * the same thing as a symbol nobody uses. Reflection calls it. A framework
9
- * registers it by name. A test file that was never indexed imports it. The
10
- * resolver saw the name and could not follow it. So the honest product of this
11
- * module is two things at once — a list, and everything the list could not see.
12
- *
13
- * ## The shape of the claim
14
- *
15
- * `unreferenced` is a fact: no edge in the index, other than the `contains`
16
- * edge from whatever holds it, points at this symbol. `dead` is an inference on
17
- * top of that fact, and every step of the inference is subtractive — a
18
- * candidate is dropped from the list the moment there is any reason to believe
19
- * something outside the graph reaches it:
20
- *
21
- * - it is **exported** (something outside this repository may import it);
22
- * - it lives in a **test** or a **generated** file (not code anyone deletes by
23
- * hand);
24
- * - it is **abstract** or declared on an interface (a declaration is dispatched
25
- * to, never called);
26
- * - it is **decorated** (`@app.route`, `@Component`, `@EventHandler`) — a
27
- * decorator is a registration, and the framework that reads it is not in the
28
- * graph. Seen as the symbol's own outgoing `decorates` edge, which is where
29
- * the engine records it; `node.decorators` is only populated by a couple of
30
- * languages and is checked as well rather than instead;
31
- * - it **overrides** a member an ancestor declares (calls land on the ancestor;
32
- * see {@link overrideCandidates} for why an ancestor we cannot read counts
33
- * the same way);
34
- * - it has a name the language calls by itself (`constructor`, `__enter__`,
35
- * `main`);
36
- * - it sits in a **vendored** directory (`vendor/`, `third_party/`,
37
- * `node_modules/` — code the repository carries but does not own);
38
- * - it is in a **test scope** the path does not reveal — a Rust
39
- * `#[cfg(test)] mod tests`, a nested `Tests` namespace;
40
- * - it is in a **component file** whose markup the index reads for calls but
41
- * not for references, so a handler passed as `{onkeydown}` is invisible;
42
- * - it is in a file **nothing in the index reaches**. Then "nothing references
43
- * this symbol" is a restatement of "we cannot see how this file is wired",
44
- * not a finding about the symbol — and it is the map, not this list, that
45
- * says so: a file no one reaches is an island, and islands are drawn there;
46
- * - the index holds an **unresolved reference** to its name. A `failed` row in
47
- * `unresolved_refs` is the resolver's own record of a reference it could not
48
- * follow, and a symbol whose name we failed to follow cannot be called
49
- * unreferenced.
50
- * - **another symbol of the same name IS referenced.** This is the one that
51
- * matters most and the one nothing else would catch. `CodeGraph.getTopRouteFile`
52
- * calls `this.queries.getTopRouteFile()`; the resolver prefers a same-name
53
- * definition in the call site's own file, so the edge lands on the caller
54
- * itself and the real target is left with nothing. From the edge table,
55
- * "nobody calls this" and "the resolver picked the twin" are the same
56
- * picture — so the claim is not made about either;
57
- * - it is declared in a **header** (`.h`, `.hpp`, `.d.ts`, `.pyi`): a header IS
58
- * the export surface, and the reference to it is an `#include` the resolver
59
- * does not follow to the declaration;
60
- * - it is in a language this index records **no export marker** for. The
61
- * exported filter is the strongest one here, and for Rust (`pub` is not
62
- * recorded) or Python and C (no such concept at all) it silently does
63
- * nothing — so the index is asked, per language, whether it ran;
64
- * - **its own file writes the name more than once.** The last rule, and the
65
- * only one that is not a graph query. Everything above assumes the edge
66
- * table is complete; it is not, and the gaps do not announce themselves —
67
- * `this.handleMessage.bind(this)` is a value reference the extractor does not
68
- * record, and a call inside an object-literal initialiser is another. Both
69
- * leave the name written twice in one file and no edge at all. So before the
70
- * claim is made, the identifier is counted in the file itself AND in every
71
- * file the index says depends on it — written once, in its own declaration,
72
- * nothing that can reach it writes it down; written twice, we simply did not
73
- * see the second one.
74
- *
75
- * Every subtraction is counted. {@link DeadCodeReport.excluded} is not
76
- * diagnostics — it is the sentence under the list ("47 exported, 12 overriding
77
- * an ancestor…"), because a list of eight rows drawn from four thousand
78
- * candidates means something different from a list of eight drawn from nine.
79
- *
80
- * ## Islands
81
- *
82
- * The other half of the task, a *module* nothing depends on, is not computed
83
- * here: it falls straight out of the map's own link set (a module with no
84
- * incoming link), and the map's layout is already a pure function in the
85
- * viewer. Computing it a second time on this side would be a second answer to
86
- * a question the map has already answered. See `ui/src/lib/map-model.ts`.
87
- *
88
- * Everything here is query-time and read-only.
89
- */
90
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
91
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
92
4
  };
@@ -99,20 +11,8 @@ exports.isTestScope = isTestScope;
99
11
  exports.isVendoredPath = isVendoredPath;
100
12
  exports.isImplicitEntryName = isImplicitEntryName;
101
13
  const fs_1 = __importDefault(require("fs"));
102
- const path_1 = __importDefault(require("path"));
103
14
  const query_utils_1 = require("../search/query-utils");
104
- // =============================================================================
105
- // Caps and defaults
106
- // =============================================================================
107
- /**
108
- * Kinds asked about by default.
109
- *
110
- * Callables and types, and nothing else. `variable`/`constant`/`field` are out
111
- * deliberately: a value's uses are recorded as `references` edges, and that
112
- * coverage is the most language-dependent thing in the resolver — a default
113
- * that included them would produce a list whose truthfulness varied by which
114
- * language the reader happened to be looking at.
115
- */
15
+ const utils_1 = require("../utils");
116
16
  exports.DEAD_CODE_KINDS = [
117
17
  'function',
118
18
  'method',
@@ -126,7 +26,6 @@ exports.DEAD_CODE_KINDS = [
126
26
  'union',
127
27
  'type_alias',
128
28
  ];
129
- /** Kinds a `kinds=` request may ask for. Anything else is a caller bug. */
130
29
  exports.DEAD_CODE_ALLOWED_KINDS = new Set([
131
30
  ...exports.DEAD_CODE_KINDS,
132
31
  'variable',
@@ -137,29 +36,10 @@ exports.DEAD_CODE_ALLOWED_KINDS = new Set([
137
36
  'namespace',
138
37
  'module',
139
38
  ]);
140
- /**
141
- * Candidates pulled out of SQL before any exclusion runs.
142
- *
143
- * High enough that no real repository reaches it with the default kinds (this
144
- * index produces ~1 400), and bounded so that a half-indexed monorepo cannot
145
- * turn one screen into a scan of a million rows. When it bites,
146
- * {@link DeadCodeReport.bounded} says so.
147
- */
148
39
  exports.MAX_DEAD_CODE_CANDIDATES = 20000;
149
- /** Levels walked up looking for an ancestor that declares the same member. */
150
40
  exports.MAX_OVERRIDE_ANCESTOR_DEPTH = 8;
151
- /**
152
- * Files read for the corroboration pass, and the biggest one read.
153
- *
154
- * The pass runs over the survivors only — everything cheap has already fired —
155
- * so on this index it reads a few dozen files. The caps are a backstop against
156
- * a repository whose survivors span a thousand files or include a generated
157
- * megabyte. A file skipped for either reason counts as NOT corroborated, which
158
- * drops the row: the safe direction is always the one that says less.
159
- */
160
41
  exports.MAX_CORROBORATION_FILES = 600;
161
42
  exports.MAX_CORROBORATION_BYTES = 2_000_000;
162
- /** Kinds that can carry members, i.e. whose ancestors are worth walking. */
163
43
  const CONTAINER_KINDS = new Set([
164
44
  'class',
165
45
  'interface',
@@ -170,30 +50,19 @@ const CONTAINER_KINDS = new Set([
170
50
  'union',
171
51
  'type_alias',
172
52
  ]);
173
- /** Container kinds whose members are declarations, never call targets. */
174
53
  const DECLARATION_CONTAINER_KINDS = new Set([
175
54
  'interface',
176
55
  'trait',
177
56
  'protocol',
178
57
  ]);
179
- /** Member kinds an override can be declared on. */
180
58
  const OVERRIDABLE_KINDS = new Set([
181
59
  'method',
182
60
  'function',
183
61
  'property',
184
62
  'field',
185
63
  ]);
186
- /**
187
- * Names a language or a runtime calls without anything in the source naming
188
- * them.
189
- *
190
- * Kept short on purpose. The temptation is a per-language table of every
191
- * lifecycle hook ever written, which would be wrong twice over — it would go
192
- * stale, and it would hide real dead code behind a name coincidence. The
193
- * entries below are the ones where the *language itself* does the calling, so
194
- * no source file could name them even in principle. Framework hooks are caught
195
- * by the decorator and override rules instead, which are structural.
196
- */
64
+ const BY_NAME_DISPATCH_LANGUAGES = new Set(['typescript', 'tsx']);
65
+ const HOOK_KINDS = ['method', 'function'];
197
66
  const IMPLICIT_ENTRY_NAMES = new Set([
198
67
  'constructor',
199
68
  'main',
@@ -209,12 +78,6 @@ const IMPLICIT_ENTRY_NAMES = new Set([
209
78
  'gethashcode',
210
79
  'hashcode',
211
80
  ]);
212
- /**
213
- * Qualified-name segments that mean "inside a test scope the file path does not
214
- * reveal" — a Rust `#[cfg(test)] mod tests`, a nested `Tests` class in C#, a
215
- * Go `TestMain` helper block. `isTestFile` only reads paths, and an in-file test
216
- * module is invisible to it.
217
- */
218
81
  const TEST_SCOPE_SEGMENTS = new Set([
219
82
  'test',
220
83
  'tests',
@@ -223,16 +86,6 @@ const TEST_SCOPE_SEGMENTS = new Set([
223
86
  'specs',
224
87
  'testing',
225
88
  ]);
226
- /**
227
- * Languages whose files are markup with a script block inside them.
228
- *
229
- * The extractors for these read the `<script>` region properly and scan the
230
- * template for CALLS — but a handler passed by reference (`{onkeydown}`,
231
- * `@click="submit"`) is a reference, not a call, and it is not extracted. Every
232
- * event handler in every component would therefore head this list. The index
233
- * cannot tell a handler wired in markup from one nobody uses, so it does not
234
- * guess.
235
- */
236
89
  const MARKUP_HOST_LANGUAGES = new Set([
237
90
  'svelte',
238
91
  'vue',
@@ -245,15 +98,6 @@ const MARKUP_HOST_LANGUAGES = new Set([
245
98
  'erb',
246
99
  'handlebars',
247
100
  ]);
248
- /**
249
- * Extensions whose contents are declarations for somebody else.
250
- *
251
- * A C header is the translation unit's export surface: everything in it exists
252
- * to be `#include`d, and the resolver does not follow an include to the
253
- * declaration it lands on. `.d.ts` and `.pyi` are the same idea in TypeScript
254
- * and Python. Treating these as exported is not a heuristic — it is what the
255
- * file is for.
256
- */
257
101
  const HEADER_EXTENSIONS = [
258
102
  '.h',
259
103
  '.hh',
@@ -267,18 +111,7 @@ const HEADER_EXTENSIONS = [
267
111
  '.pyi',
268
112
  '.pxd',
269
113
  ];
270
- /** Python and Ruby call these by protocol: `__enter__`, `__iter__`, `__init__`. */
271
114
  const DUNDER = /^__[a-z0-9_]+__$/i;
272
- /**
273
- * Directory names that mean "this code is carried, not written here".
274
- *
275
- * Vendored third-party source is the second-largest source of noise after name
276
- * ambiguity, and it is noise of a particular kind: the code IS reached, by a
277
- * build system or a runtime that is not in the index at all (a tree-sitter
278
- * scanner is called through a generated symbol table; a vendored library is
279
- * called by whatever links it). Matched as a whole path segment, so
280
- * `src/vendored-parser.ts` is not caught by `vendor`.
281
- */
282
115
  const VENDOR_SEGMENTS = new Set([
283
116
  'vendor',
284
117
  'vendored',
@@ -295,13 +128,6 @@ const VENDOR_SEGMENTS = new Set([
295
128
  '.venv',
296
129
  'venv',
297
130
  ]);
298
- // =============================================================================
299
- // The report
300
- // =============================================================================
301
- /**
302
- * The dead code report: unreferenced symbols, minus every reason to doubt it,
303
- * plus a count of every doubt.
304
- */
305
131
  function buildDeadCodeReport(cg, query = {}) {
306
132
  const kinds = normalizeKinds(query.kinds);
307
133
  const includeExported = query.includeExported === true;
@@ -317,6 +143,7 @@ function buildDeadCodeReport(cg, query = {}) {
317
143
  declarations: 0,
318
144
  decorated: 0,
319
145
  overriding: 0,
146
+ hooks: 0,
320
147
  implicit: 0,
321
148
  vendored: 0,
322
149
  testScope: 0,
@@ -331,14 +158,9 @@ function buildDeadCodeReport(cg, query = {}) {
331
158
  const raw = cg.getUnreferencedNodes(kinds, exports.MAX_DEAD_CODE_CANDIDATES + 1);
332
159
  const bounded = raw.length > exports.MAX_DEAD_CODE_CANDIDATES;
333
160
  const candidates = bounded ? raw.slice(0, exports.MAX_DEAD_CODE_CANDIDATES) : raw;
334
- // Asking the index whether the exported filter can run at all, per language,
335
- // over the handful of languages the candidates are actually in. Skipped when
336
- // the caller has already accepted outside-reachability by asking for exported
337
- // symbols.
338
161
  const languagesWithExports = includeExported
339
162
  ? new Set()
340
163
  : cg.getLanguagesWithExports(candidates.map((row) => row.node.language));
341
- // ---- the cheap, per-row rules -------------------------------------------
342
164
  const surviving = [];
343
165
  for (const row of candidates) {
344
166
  const { node } = row;
@@ -380,17 +202,9 @@ function buildDeadCodeReport(cg, query = {}) {
380
202
  }
381
203
  surviving.push(row);
382
204
  }
383
- // ---- the rules that need the graph --------------------------------------
384
- // A `decorates` edge runs FROM the decorated symbol to the decorator, so
385
- // this is an outgoing-edge question, not something the candidate query could
386
- // have answered.
387
- const decorated = new Set(cg
388
- .getOutgoingEdgesFrom(surviving.map((row) => row.node.id), ['decorates'])
389
- .map((edge) => edge.source));
205
+ const decorated = carriesDecorator(cg, surviving.map((row) => row.node));
390
206
  const containers = containersOf(cg, surviving.map((row) => row.node));
391
207
  const overriding = overrideCandidates(cg, surviving.map((row) => row.node), containers);
392
- // One batched count for every file still in play. A file nothing reaches is
393
- // an island: its symbols' zero fan-in describes the file, not the symbol.
394
208
  const unreachableFiles = filesNothingReaches(cg, surviving.map((row) => row.node.filePath));
395
209
  const reachable = surviving.filter((row) => {
396
210
  if (!unreachableFiles.has(row.node.filePath))
@@ -403,9 +217,12 @@ function buildDeadCodeReport(cg, query = {}) {
403
217
  const names = surviving.map((row) => row.node.name);
404
218
  const unresolved = cg.getUnresolvedNamesAmong(names);
405
219
  const ambiguousNames = cg.getAmbiguousReferencedNames(names);
220
+ const hooks = byNameHookCandidates(cg, surviving
221
+ .map((row) => row.node)
222
+ .filter((node) => !decorated.has(node.id) && !overriding.has(node.id)), containers, candidates.map((row) => row.node));
406
223
  const kept = [];
407
224
  for (const row of surviving) {
408
- if (decorated.has(row.node.id) || (row.node.decorators?.length ?? 0) > 0) {
225
+ if (decorated.has(row.node.id)) {
409
226
  excluded.decorated += 1;
410
227
  continue;
411
228
  }
@@ -418,6 +235,10 @@ function buildDeadCodeReport(cg, query = {}) {
418
235
  excluded.overriding += 1;
419
236
  continue;
420
237
  }
238
+ if (hooks.has(row.node.id)) {
239
+ excluded.hooks += 1;
240
+ continue;
241
+ }
421
242
  if (unresolved.has(row.node.name)) {
422
243
  excluded.unresolvedName += 1;
423
244
  continue;
@@ -428,9 +249,6 @@ function buildDeadCodeReport(cg, query = {}) {
428
249
  }
429
250
  kept.push(row);
430
251
  }
431
- // ---- the file's own text has the last word -------------------------------
432
- // Everything above is a graph query, and the graph is what has the gaps. This
433
- // is the only rule that can see a reference the extractor never recorded.
434
252
  const confirmed = [];
435
253
  if (readSource) {
436
254
  const sources = new Map();
@@ -440,9 +258,6 @@ function buildDeadCodeReport(cg, query = {}) {
440
258
  }
441
259
  return sources.get(file) ?? null;
442
260
  };
443
- // The set to search is the declaring file plus everything the index says
444
- // reaches into it — the same set a call could have come from. Computed once
445
- // per file, not once per candidate.
446
261
  const scopes = new Map();
447
262
  for (const row of kept) {
448
263
  const file = row.node.filePath;
@@ -463,8 +278,6 @@ function buildDeadCodeReport(cg, query = {}) {
463
278
  if (mentions >= 2)
464
279
  break;
465
280
  }
466
- // Its OWN file has to be readable: the declaration itself is one of the
467
- // two mentions, so an unreadable declaring file makes the count meaningless.
468
281
  if (own === null) {
469
282
  excluded.unreadable += 1;
470
283
  continue;
@@ -479,7 +292,6 @@ function buildDeadCodeReport(cg, query = {}) {
479
292
  else {
480
293
  confirmed.push(...kept);
481
294
  }
482
- // ---- fold members into a container that is itself dead -------------------
483
295
  const keptIds = new Set(confirmed.map((row) => row.node.id));
484
296
  const entries = new Map();
485
297
  const pending = [];
@@ -498,17 +310,11 @@ function buildDeadCodeReport(cg, query = {}) {
498
310
  });
499
311
  }
500
312
  for (const member of pending) {
501
- // A member whose container was itself folded away (a dead class inside a
502
- // dead class) has no entry to hang off; it was still counted as nested, so
503
- // it is not silently missing from the totals.
504
313
  entries.get(member.containerId)?.members.push(member.node);
505
314
  }
506
315
  for (const entry of entries.values()) {
507
316
  entry.members.sort((a, b) => a.startLine - b.startLine || a.name.localeCompare(b.name));
508
317
  }
509
- // Biggest first: the list is read to decide what to delete, and a 200-line
510
- // unreachable class is a different finding from a three-line helper. File and
511
- // line break the tie so the order is stable across runs.
512
318
  const ranked = [...entries.values()].sort((a, b) => b.lines - a.lines ||
513
319
  a.node.filePath.localeCompare(b.node.filePath) ||
514
320
  a.node.startLine - b.node.startLine);
@@ -523,18 +329,12 @@ function buildDeadCodeReport(cg, query = {}) {
523
329
  corroborated: readSource !== null,
524
330
  };
525
331
  }
526
- /**
527
- * Reads a project-relative file off disk, for callers with no chokepoint of
528
- * their own (the CLI, a library user). Refuses anything that escapes the
529
- * project root — a `filePath` comes out of the index, but the index is a file
530
- * on disk and this module should not be the thing that trusts it.
531
- */
532
332
  function defaultSourceReader(cg) {
533
- const root = path_1.default.resolve(cg.getProjectRoot());
333
+ const root = cg.getProjectRoot();
534
334
  return (filePath) => {
535
335
  try {
536
- const absolute = path_1.default.resolve(root, filePath);
537
- if (absolute !== root && !absolute.startsWith(root + path_1.default.sep))
336
+ const absolute = (0, utils_1.lexicalPathWithinRoot)(root, filePath);
337
+ if (absolute === null)
538
338
  return null;
539
339
  const stat = fs_1.default.statSync(absolute);
540
340
  if (!stat.isFile() || stat.size > exports.MAX_CORROBORATION_BYTES)
@@ -546,16 +346,6 @@ function defaultSourceReader(cg) {
546
346
  }
547
347
  };
548
348
  }
549
- /**
550
- * How many times `name` is written in `source` as a whole identifier, counting
551
- * no further than `stopAt`.
552
- *
553
- * Deliberately dumb: no parsing, no comment or string stripping. A mention in a
554
- * comment or in a string is exactly the kind of thing that turns out to be a
555
- * reflective call or a registration key, and the rule this serves only ever
556
- * uses the count to say LESS. `\b` is not used because it is ASCII-only in
557
- * JavaScript and an identifier may not be.
558
- */
559
349
  function mentionCount(source, name, stopAt = Number.MAX_SAFE_INTEGER) {
560
350
  if (name.length === 0)
561
351
  return 0;
@@ -578,14 +368,6 @@ function isIdentifierChar(char) {
578
368
  return false;
579
369
  return char === '_' || char === '$' || /[\p{L}\p{N}]/u.test(char);
580
370
  }
581
- /**
582
- * Files in the candidate set that nothing else in the index reaches.
583
- *
584
- * One batched query for the whole set (`getFileDependentCounts` counts through
585
- * the symbols, because an `imports` edge points at the imported symbol and a
586
- * file node almost never receives one). Zero means nothing else in the index
587
- * reaches into this file at all.
588
- */
589
371
  function filesNothingReaches(cg, filePaths) {
590
372
  const unique = [...new Set(filePaths)];
591
373
  if (unique.length === 0)
@@ -593,12 +375,10 @@ function filesNothingReaches(cg, filePaths) {
593
375
  const dependents = cg.getFileDependentCounts(unique);
594
376
  return new Set(unique.filter((path) => (dependents.get(path) ?? 0) === 0));
595
377
  }
596
- /** A file whose contents are declarations for somebody else — see {@link HEADER_EXTENSIONS}. */
597
378
  function isHeaderFile(filePath) {
598
379
  const lower = filePath.toLowerCase();
599
380
  return HEADER_EXTENSIONS.some((ext) => lower.endsWith(ext));
600
381
  }
601
- /** A qualified name that runs through a test scope — see {@link TEST_SCOPE_SEGMENTS}. */
602
382
  function isTestScope(qualifiedName) {
603
383
  for (const segment of qualifiedName.split(/[.:/\\#>]+/)) {
604
384
  if (TEST_SCOPE_SEGMENTS.has(segment.toLowerCase()))
@@ -606,7 +386,6 @@ function isTestScope(qualifiedName) {
606
386
  }
607
387
  return false;
608
388
  }
609
- /** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
610
389
  function isVendoredPath(filePath) {
611
390
  for (const segment of filePath.replace(/\\/g, '/').split('/')) {
612
391
  if (VENDOR_SEGMENTS.has(segment.toLowerCase()))
@@ -614,7 +393,6 @@ function isVendoredPath(filePath) {
614
393
  }
615
394
  return false;
616
395
  }
617
- /** A name the language calls by itself, so no source file could name it. */
618
396
  function isImplicitEntryName(name) {
619
397
  return DUNDER.test(name) || IMPLICIT_ENTRY_NAMES.has(name.toLowerCase());
620
398
  }
@@ -624,13 +402,6 @@ function normalizeKinds(requested) {
624
402
  const kinds = requested.filter((kind) => exports.DEAD_CODE_ALLOWED_KINDS.has(kind));
625
403
  return kinds.length > 0 ? [...new Set(kinds)] : [...exports.DEAD_CODE_KINDS];
626
404
  }
627
- /**
628
- * The type each candidate is declared in, for the candidates that are members.
629
- *
630
- * One batched query for the whole candidate set, then one for the containers
631
- * themselves — never a lookup per row. Only type-ish containers are returned: a
632
- * function's container is the file, which tells us nothing.
633
- */
634
405
  function containersOf(cg, nodes) {
635
406
  const memberIds = nodes.filter((node) => OVERRIDABLE_KINDS.has(node.kind)).map((n) => n.id);
636
407
  const out = new Map();
@@ -649,75 +420,12 @@ function containersOf(cg, nodes) {
649
420
  }
650
421
  return out;
651
422
  }
652
- /**
653
- * Which candidates override something — the ids to drop.
654
- *
655
- * A method that overrides `Base.run` is reached through `Base.run`; the call
656
- * site names the base, so the override carries no incoming edge of its own and
657
- * would otherwise head the list. It is matched by NAME within a chain the graph
658
- * already links (nothing in the engine emits an `overrides` edge), exactly as
659
- * the type-hierarchy block does.
660
- *
661
- * The second rule is the one that looks wrong and is not: **an ancestor with no
662
- * extracted members counts as a match.** A TypeScript interface of pure method
663
- * signatures produces no `contains` edges at all, so `class X implements Y`
664
- * with every member of `Y` implemented reads, structurally, as a class whose
665
- * members override nothing. Answering "cannot tell" with an exclusion is the
666
- * only choice that keeps the list's promise; the alternative puts every
667
- * implementation of every signature-only interface at the top of a screen that
668
- * says "nothing reaches this".
669
- *
670
- * An ancestor **outside the index** is opaque in the same way, and more so: a
671
- * class that extends `React.Component` or `stream.Transform`, or implements a
672
- * framework interface, has lifecycle methods the framework calls, and the
673
- * ancestor leaves no edge to walk at all — only the resolver's failed
674
- * `extends` / `implements` row. A container with such a row, or a project
675
- * ancestor of one that has it, counts as having an opaque ancestor (#1973).
676
- */
677
423
  function overrideCandidates(cg, nodes, containers) {
678
424
  const dropped = new Set();
679
425
  const containerIds = [...new Set([...containers.values()].map((node) => node.id))];
680
426
  if (containerIds.length === 0)
681
427
  return dropped;
682
- // Level-by-level upward walk over EVERY container at once: one query per
683
- // level rather than one per container. `reach` maps an ancestor back to the
684
- // containers it is an ancestor of.
685
- const reach = new Map();
686
- const seen = new Map(containerIds.map((id) => [id, new Set([id])]));
687
- let frontier = containerIds.map((id) => ({ id, roots: new Set([id]) }));
688
- for (let depth = 0; depth < exports.MAX_OVERRIDE_ANCESTOR_DEPTH && frontier.length > 0; depth++) {
689
- const rootsOf = new Map(frontier.map((item) => [item.id, item.roots]));
690
- const edges = cg.getOutgoingEdgesFrom(frontier.map((item) => item.id), ['extends', 'implements']);
691
- const next = new Map();
692
- for (const edge of edges) {
693
- if (edge.target === edge.source)
694
- continue;
695
- const roots = rootsOf.get(edge.source);
696
- if (!roots)
697
- continue;
698
- const merged = next.get(edge.target) ?? new Set();
699
- const visited = seen.get(edge.target) ?? new Set();
700
- const known = reach.get(edge.target) ?? new Set();
701
- // An ancestor may already be a candidate root. Only skip pairs we have
702
- // propagated, so later descendants still reach all of its ancestors.
703
- for (const root of roots) {
704
- if (visited.has(root))
705
- continue;
706
- visited.add(root);
707
- merged.add(root);
708
- known.add(root);
709
- }
710
- seen.set(edge.target, visited);
711
- if (merged.size > 0)
712
- next.set(edge.target, merged);
713
- if (known.size > 0)
714
- reach.set(edge.target, known);
715
- }
716
- frontier = [];
717
- for (const [id, roots] of next) {
718
- frontier.push({ id, roots });
719
- }
720
- }
428
+ const reach = ancestorsOf(cg, containerIds, ['extends', 'implements']);
721
429
  const opaqueContainers = new Set();
722
430
  const externalBased = cg.getUnresolvedSupertypeSourcesAmong([...containerIds, ...reach.keys()]);
723
431
  for (const id of containerIds)
@@ -728,7 +436,6 @@ function overrideCandidates(cg, nodes, containers) {
728
436
  for (const root of roots)
729
437
  opaqueContainers.add(root);
730
438
  }
731
- // What each ancestor declares, and whether it declares anything at all.
732
439
  const ancestorIds = [...reach.keys()];
733
440
  const memberEdges = cg.getOutgoingEdgesFrom(ancestorIds, ['contains']);
734
441
  const memberIdsByAncestor = new Map();
@@ -740,7 +447,6 @@ function overrideCandidates(cg, nodes, containers) {
740
447
  memberIdsByAncestor.set(edge.source, [edge.target]);
741
448
  }
742
449
  const memberNodes = cg.getNodesByIds(memberEdges.map((edge) => edge.target));
743
- /** Member names an ancestor declares, and whether it declares none we can read. */
744
450
  const namesByContainer = new Map();
745
451
  for (const [ancestorId, roots] of reach) {
746
452
  const names = [];
@@ -773,4 +479,144 @@ function overrideCandidates(cg, nodes, containers) {
773
479
  }
774
480
  return dropped;
775
481
  }
482
+ function ancestorsOf(cg, ids, kinds) {
483
+ const reach = new Map();
484
+ const seen = new Map(ids.map((id) => [id, new Set([id])]));
485
+ let frontier = ids.map((id) => ({ id, roots: new Set([id]) }));
486
+ for (let depth = 0; depth < exports.MAX_OVERRIDE_ANCESTOR_DEPTH && frontier.length > 0; depth++) {
487
+ const rootsOf = new Map(frontier.map((item) => [item.id, item.roots]));
488
+ const edges = cg.getOutgoingEdgesFrom(frontier.map((item) => item.id), kinds);
489
+ const next = new Map();
490
+ for (const edge of edges) {
491
+ if (edge.target === edge.source)
492
+ continue;
493
+ const roots = rootsOf.get(edge.source);
494
+ if (!roots)
495
+ continue;
496
+ const merged = next.get(edge.target) ?? new Set();
497
+ const visited = seen.get(edge.target) ?? new Set();
498
+ const known = reach.get(edge.target) ?? new Set();
499
+ for (const root of roots) {
500
+ if (visited.has(root))
501
+ continue;
502
+ visited.add(root);
503
+ merged.add(root);
504
+ known.add(root);
505
+ }
506
+ seen.set(edge.target, visited);
507
+ if (merged.size > 0)
508
+ next.set(edge.target, merged);
509
+ if (known.size > 0)
510
+ reach.set(edge.target, known);
511
+ }
512
+ frontier = [];
513
+ for (const [id, roots] of next) {
514
+ frontier.push({ id, roots });
515
+ }
516
+ }
517
+ return reach;
518
+ }
519
+ function carriesDecorator(cg, nodes) {
520
+ const ids = nodes.map((node) => node.id);
521
+ const found = new Set(cg.getOutgoingEdgesFrom(ids, ['decorates']).map((edge) => edge.source));
522
+ for (const id of cg.getUnresolvedReferenceNamesFrom(ids, ['decorates']).keys())
523
+ found.add(id);
524
+ for (const node of nodes)
525
+ if ((node.decorators?.length ?? 0) > 0)
526
+ found.add(node.id);
527
+ return found;
528
+ }
529
+ function byNameHookCandidates(cg, nodes, containers, unreferenced) {
530
+ const dropped = new Set();
531
+ const isHookShaped = (node) => HOOK_KINDS.includes(node.kind) && BY_NAME_DISPATCH_LANGUAGES.has(node.language);
532
+ const methods = nodes.filter((node) => isHookShaped(node) && containers.get(node.id)?.kind === 'class');
533
+ if (methods.length === 0)
534
+ return dropped;
535
+ const classes = new Map();
536
+ for (const node of methods) {
537
+ const container = containers.get(node.id);
538
+ if (container)
539
+ classes.set(container.id, container);
540
+ }
541
+ const registered = carriesDecorator(cg, [...classes.values()]);
542
+ const eligible = methods.filter((node) => registered.has(containers.get(node.id)?.id ?? ''));
543
+ if (eligible.length === 0)
544
+ return dropped;
545
+ const names = new Set(eligible.map((node) => node.name));
546
+ const declarations = unreferenced.filter((node) => names.has(node.name) && isHookShaped(node));
547
+ const declaredIn = containersOf(cg, declarations.filter((node) => !containers.has(node.id)));
548
+ const declaring = new Map();
549
+ for (const node of declarations) {
550
+ const container = containers.get(node.id) ?? declaredIn.get(node.id);
551
+ if (container?.kind !== 'class')
552
+ continue;
553
+ const ids = declaring.get(node.name);
554
+ if (ids)
555
+ ids.add(container.id);
556
+ else
557
+ declaring.set(node.name, new Set([container.id]));
558
+ }
559
+ const declarers = new Set([...declaring.values()].flatMap((ids) => [...ids]));
560
+ const interfacesOf = cg.getUnresolvedReferenceNamesFrom(declarers, ['implements']);
561
+ const interfaces = new Set([...interfacesOf.values()].flat());
562
+ if (interfaces.size === 0)
563
+ return dropped;
564
+ const writers = cg.getUnresolvedReferenceSourcesNamed(interfaces, ['implements']);
565
+ const writerIds = [...new Set([...writers.values()].flatMap((ids) => [...ids]))];
566
+ const typescript = [...cg.getNodesByIds(writerIds).values()].filter((node) => BY_NAME_DISPATCH_LANGUAGES.has(node.language));
567
+ const typescriptIds = new Set(typescript.map((node) => node.id));
568
+ const registeredWriters = carriesDecorator(cg, typescript);
569
+ const implementers = new Map();
570
+ for (const [name, ids] of writers) {
571
+ const own = [...ids].filter((id) => typescriptIds.has(id));
572
+ const registeredCount = own.filter((id) => registeredWriters.has(id)).length;
573
+ if (registeredCount > own.length / 2)
574
+ implementers.set(name, own);
575
+ }
576
+ if (implementers.size === 0)
577
+ return dropped;
578
+ const implementerIds = [...new Set([...implementers.values()].flat())];
579
+ const ancestors = ancestorsOf(cg, implementerIds, ['extends']);
580
+ const inherits = new Map();
581
+ for (const [ancestor, roots] of ancestors) {
582
+ for (const root of roots) {
583
+ const bucket = inherits.get(root);
584
+ if (bucket)
585
+ bucket.push(ancestor);
586
+ else
587
+ inherits.set(root, [ancestor]);
588
+ }
589
+ }
590
+ const outside = cg.getUnresolvedReferenceNamesFrom([...implementerIds, ...ancestors.keys()], ['extends']);
591
+ const opaque = new Set(implementerIds.filter((id) => outside.has(id)));
592
+ for (const [ancestor, roots] of ancestors) {
593
+ if (outside.has(ancestor))
594
+ for (const root of roots)
595
+ opaque.add(root);
596
+ }
597
+ const hookNames = new Set();
598
+ for (const name of names) {
599
+ const declared = declaring.get(name);
600
+ if (!declared)
601
+ continue;
602
+ const has = (id) => declared.has(id) ||
603
+ opaque.has(id) ||
604
+ (inherits.get(id) ?? []).some((ancestor) => declared.has(ancestor));
605
+ const contracts = new Set([...declared].flatMap((id) => interfacesOf.get(id) ?? []));
606
+ for (const contract of contracts) {
607
+ const own = implementers.get(contract);
608
+ if (!own)
609
+ continue;
610
+ const declaredCount = own.filter((id) => declared.has(id)).length;
611
+ if (declaredCount >= 2 && declaredCount > own.length / 2 && own.every(has)) {
612
+ hookNames.add(name);
613
+ break;
614
+ }
615
+ }
616
+ }
617
+ for (const node of eligible)
618
+ if (hookNames.has(node.name))
619
+ dropped.add(node.id);
620
+ return dropped;
621
+ }
776
622
  //# sourceMappingURL=dead-code.js.map