@colbymchenry/codegraph-win32-arm64 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/lib/dist/.test-build-engine.json +1 -1
  2. package/lib/dist/.test-build-viewer.json +1 -1
  3. package/lib/dist/bin/codegraph.js +9 -3
  4. package/lib/dist/bin/codegraph.js.map +1 -1
  5. package/lib/dist/bin/command-supervision.d.ts +7 -0
  6. package/lib/dist/bin/command-supervision.d.ts.map +1 -1
  7. package/lib/dist/bin/command-supervision.js +39 -27
  8. package/lib/dist/bin/command-supervision.js.map +1 -1
  9. package/lib/dist/db/queries.d.ts +31 -7
  10. package/lib/dist/db/queries.d.ts.map +1 -1
  11. package/lib/dist/db/queries.js +56 -10
  12. package/lib/dist/db/queries.js.map +1 -1
  13. package/lib/dist/directory.d.ts +30 -0
  14. package/lib/dist/directory.d.ts.map +1 -1
  15. package/lib/dist/directory.js +45 -0
  16. package/lib/dist/directory.js.map +1 -1
  17. package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
  18. package/lib/dist/extraction/astro-extractor.js +7 -35
  19. package/lib/dist/extraction/astro-extractor.js.map +1 -1
  20. package/lib/dist/extraction/cfml-extractor.d.ts +76 -10
  21. package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
  22. package/lib/dist/extraction/cfml-extractor.js +287 -68
  23. package/lib/dist/extraction/cfml-extractor.js.map +1 -1
  24. package/lib/dist/extraction/commonjs-requires.d.ts +23 -0
  25. package/lib/dist/extraction/commonjs-requires.d.ts.map +1 -0
  26. package/lib/dist/extraction/commonjs-requires.js +68 -0
  27. package/lib/dist/extraction/commonjs-requires.js.map +1 -0
  28. package/lib/dist/extraction/generated-detection.d.ts +9 -0
  29. package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
  30. package/lib/dist/extraction/generated-detection.js +42 -2
  31. package/lib/dist/extraction/generated-detection.js.map +1 -1
  32. package/lib/dist/extraction/grammars.d.ts +2 -0
  33. package/lib/dist/extraction/grammars.d.ts.map +1 -1
  34. package/lib/dist/extraction/grammars.js +94 -0
  35. package/lib/dist/extraction/grammars.js.map +1 -1
  36. package/lib/dist/extraction/index.d.ts +19 -4
  37. package/lib/dist/extraction/index.d.ts.map +1 -1
  38. package/lib/dist/extraction/index.js +227 -64
  39. package/lib/dist/extraction/index.js.map +1 -1
  40. package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
  41. package/lib/dist/extraction/kernel/index.js +6 -0
  42. package/lib/dist/extraction/kernel/index.js.map +1 -1
  43. package/lib/dist/extraction/languages/c-cpp.d.ts +15 -0
  44. package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
  45. package/lib/dist/extraction/languages/c-cpp.js +122 -2
  46. package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
  47. package/lib/dist/extraction/languages/csharp.d.ts.map +1 -1
  48. package/lib/dist/extraction/languages/csharp.js +14 -5
  49. package/lib/dist/extraction/languages/csharp.js.map +1 -1
  50. package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
  51. package/lib/dist/extraction/languages/dart.js +8 -0
  52. package/lib/dist/extraction/languages/dart.js.map +1 -1
  53. package/lib/dist/extraction/languages/kotlin.d.ts +4 -0
  54. package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
  55. package/lib/dist/extraction/languages/kotlin.js +68 -0
  56. package/lib/dist/extraction/languages/kotlin.js.map +1 -1
  57. package/lib/dist/extraction/languages/swift.d.ts +15 -0
  58. package/lib/dist/extraction/languages/swift.d.ts.map +1 -1
  59. package/lib/dist/extraction/languages/swift.js +50 -0
  60. package/lib/dist/extraction/languages/swift.js.map +1 -1
  61. package/lib/dist/extraction/languages/typescript.d.ts +7 -0
  62. package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
  63. package/lib/dist/extraction/languages/typescript.js +21 -0
  64. package/lib/dist/extraction/languages/typescript.js.map +1 -1
  65. package/lib/dist/extraction/parse-budget.d.ts +16 -0
  66. package/lib/dist/extraction/parse-budget.d.ts.map +1 -0
  67. package/lib/dist/extraction/parse-budget.js +24 -0
  68. package/lib/dist/extraction/parse-budget.js.map +1 -0
  69. package/lib/dist/extraction/parse-pool.d.ts +12 -0
  70. package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
  71. package/lib/dist/extraction/parse-pool.js +51 -3
  72. package/lib/dist/extraction/parse-pool.js.map +1 -1
  73. package/lib/dist/extraction/parse-worker.js +3 -1
  74. package/lib/dist/extraction/parse-worker.js.map +1 -1
  75. package/lib/dist/extraction/sfc-script.d.ts +43 -0
  76. package/lib/dist/extraction/sfc-script.d.ts.map +1 -0
  77. package/lib/dist/extraction/sfc-script.js +135 -0
  78. package/lib/dist/extraction/sfc-script.js.map +1 -0
  79. package/lib/dist/extraction/store-worker.js +5 -0
  80. package/lib/dist/extraction/store-worker.js.map +1 -1
  81. package/lib/dist/extraction/store-writer.d.ts +10 -2
  82. package/lib/dist/extraction/store-writer.d.ts.map +1 -1
  83. package/lib/dist/extraction/store-writer.js +12 -4
  84. package/lib/dist/extraction/store-writer.js.map +1 -1
  85. package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
  86. package/lib/dist/extraction/svelte-extractor.js +7 -37
  87. package/lib/dist/extraction/svelte-extractor.js.map +1 -1
  88. package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -1
  89. package/lib/dist/extraction/syntax-tokens.js +2 -1
  90. package/lib/dist/extraction/syntax-tokens.js.map +1 -1
  91. package/lib/dist/extraction/tree-sitter.d.ts +8 -0
  92. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  93. package/lib/dist/extraction/tree-sitter.js +123 -6
  94. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  95. package/lib/dist/extraction/vue-extractor.d.ts +7 -0
  96. package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
  97. package/lib/dist/extraction/vue-extractor.js +73 -35
  98. package/lib/dist/extraction/vue-extractor.js.map +1 -1
  99. package/lib/dist/extraction/vue-options-api.d.ts +28 -0
  100. package/lib/dist/extraction/vue-options-api.d.ts.map +1 -0
  101. package/lib/dist/extraction/vue-options-api.js +196 -0
  102. package/lib/dist/extraction/vue-options-api.js.map +1 -0
  103. package/lib/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
  104. package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
  105. package/lib/dist/graph/branch-guards.d.ts +17 -0
  106. package/lib/dist/graph/branch-guards.d.ts.map +1 -1
  107. package/lib/dist/graph/branch-guards.js +97 -2
  108. package/lib/dist/graph/branch-guards.js.map +1 -1
  109. package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -1
  110. package/lib/dist/graph/named-symbol-flow.js +8 -1
  111. package/lib/dist/graph/named-symbol-flow.js.map +1 -1
  112. package/lib/dist/index.d.ts +5 -0
  113. package/lib/dist/index.d.ts.map +1 -1
  114. package/lib/dist/index.js +7 -0
  115. package/lib/dist/index.js.map +1 -1
  116. package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
  117. package/lib/dist/mcp/daemon-paths.js +8 -2
  118. package/lib/dist/mcp/daemon-paths.js.map +1 -1
  119. package/lib/dist/mcp/daemon-registry.d.ts +4 -0
  120. package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
  121. package/lib/dist/mcp/daemon-registry.js +46 -12
  122. package/lib/dist/mcp/daemon-registry.js.map +1 -1
  123. package/lib/dist/mcp/engine.d.ts +2 -0
  124. package/lib/dist/mcp/engine.d.ts.map +1 -1
  125. package/lib/dist/mcp/engine.js +13 -5
  126. package/lib/dist/mcp/engine.js.map +1 -1
  127. package/lib/dist/mcp/index-freshness-worker.js +7 -1
  128. package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
  129. package/lib/dist/mcp/index-freshness.d.ts +7 -1
  130. package/lib/dist/mcp/index-freshness.d.ts.map +1 -1
  131. package/lib/dist/mcp/index-freshness.js +31 -8
  132. package/lib/dist/mcp/index-freshness.js.map +1 -1
  133. package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -1
  134. package/lib/dist/mcp/project-lifecycle.js +5 -4
  135. package/lib/dist/mcp/project-lifecycle.js.map +1 -1
  136. package/lib/dist/mcp/proxy.d.ts +9 -2
  137. package/lib/dist/mcp/proxy.d.ts.map +1 -1
  138. package/lib/dist/mcp/proxy.js +194 -34
  139. package/lib/dist/mcp/proxy.js.map +1 -1
  140. package/lib/dist/mcp/query-pool.d.ts +16 -1
  141. package/lib/dist/mcp/query-pool.d.ts.map +1 -1
  142. package/lib/dist/mcp/query-pool.js +58 -4
  143. package/lib/dist/mcp/query-pool.js.map +1 -1
  144. package/lib/dist/mcp/tools.d.ts +32 -2
  145. package/lib/dist/mcp/tools.d.ts.map +1 -1
  146. package/lib/dist/mcp/tools.js +120 -6
  147. package/lib/dist/mcp/tools.js.map +1 -1
  148. package/lib/dist/resolution/alias-binding.d.ts.map +1 -1
  149. package/lib/dist/resolution/alias-binding.js +16 -0
  150. package/lib/dist/resolution/alias-binding.js.map +1 -1
  151. package/lib/dist/resolution/angular-template-synthesizer.d.ts +49 -0
  152. package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -0
  153. package/lib/dist/resolution/angular-template-synthesizer.js +359 -0
  154. package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -0
  155. package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
  156. package/lib/dist/resolution/callback-synthesizer.js +171 -3
  157. package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
  158. package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -1
  159. package/lib/dist/resolution/cpp-macro-visibility.js +57 -7
  160. package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -1
  161. package/lib/dist/resolution/frameworks/angular-router.d.ts +142 -0
  162. package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -0
  163. package/lib/dist/resolution/frameworks/angular-router.js +1126 -0
  164. package/lib/dist/resolution/frameworks/angular-router.js.map +1 -0
  165. package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
  166. package/lib/dist/resolution/frameworks/astro.js +32 -6
  167. package/lib/dist/resolution/frameworks/astro.js.map +1 -1
  168. package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
  169. package/lib/dist/resolution/frameworks/csharp.js +127 -59
  170. package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
  171. package/lib/dist/resolution/frameworks/expo-modules.d.ts +10 -0
  172. package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
  173. package/lib/dist/resolution/frameworks/expo-modules.js +95 -1
  174. package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
  175. package/lib/dist/resolution/frameworks/expo-router.d.ts +6 -0
  176. package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
  177. package/lib/dist/resolution/frameworks/expo-router.js +62 -0
  178. package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
  179. package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
  180. package/lib/dist/resolution/frameworks/express.js +103 -44
  181. package/lib/dist/resolution/frameworks/express.js.map +1 -1
  182. package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -1
  183. package/lib/dist/resolution/frameworks/fabric.js +13 -11
  184. package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
  185. package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
  186. package/lib/dist/resolution/frameworks/go.js +11 -28
  187. package/lib/dist/resolution/frameworks/go.js.map +1 -1
  188. package/lib/dist/resolution/frameworks/index.d.ts +3 -2
  189. package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
  190. package/lib/dist/resolution/frameworks/index.js +11 -1
  191. package/lib/dist/resolution/frameworks/index.js.map +1 -1
  192. package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
  193. package/lib/dist/resolution/frameworks/java.js +9 -21
  194. package/lib/dist/resolution/frameworks/java.js.map +1 -1
  195. package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
  196. package/lib/dist/resolution/frameworks/laravel.js +369 -26
  197. package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
  198. package/lib/dist/resolution/frameworks/name-heuristic.d.ts +35 -0
  199. package/lib/dist/resolution/frameworks/name-heuristic.d.ts.map +1 -0
  200. package/lib/dist/resolution/frameworks/name-heuristic.js +45 -0
  201. package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -0
  202. package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
  203. package/lib/dist/resolution/frameworks/nestjs.js +282 -41
  204. package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
  205. package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -1
  206. package/lib/dist/resolution/frameworks/nextjs.js +1 -0
  207. package/lib/dist/resolution/frameworks/nextjs.js.map +1 -1
  208. package/lib/dist/resolution/frameworks/page-component.d.ts +20 -0
  209. package/lib/dist/resolution/frameworks/page-component.d.ts.map +1 -0
  210. package/lib/dist/resolution/frameworks/page-component.js +45 -0
  211. package/lib/dist/resolution/frameworks/page-component.js.map +1 -0
  212. package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
  213. package/lib/dist/resolution/frameworks/play.js +3 -1
  214. package/lib/dist/resolution/frameworks/play.js.map +1 -1
  215. package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
  216. package/lib/dist/resolution/frameworks/python.js +113 -26
  217. package/lib/dist/resolution/frameworks/python.js.map +1 -1
  218. package/lib/dist/resolution/frameworks/react-router.d.ts +6 -5
  219. package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
  220. package/lib/dist/resolution/frameworks/react-router.js +22 -8
  221. package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
  222. package/lib/dist/resolution/frameworks/react.d.ts +11 -1
  223. package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
  224. package/lib/dist/resolution/frameworks/react.js +367 -18
  225. package/lib/dist/resolution/frameworks/react.js.map +1 -1
  226. package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -1
  227. package/lib/dist/resolution/frameworks/ruby.js +177 -17
  228. package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
  229. package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
  230. package/lib/dist/resolution/frameworks/rust.js +24 -22
  231. package/lib/dist/resolution/frameworks/rust.js.map +1 -1
  232. package/lib/dist/resolution/frameworks/svelte.js +8 -5
  233. package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
  234. package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -1
  235. package/lib/dist/resolution/frameworks/swift.js +253 -124
  236. package/lib/dist/resolution/frameworks/swift.js.map +1 -1
  237. package/lib/dist/resolution/frameworks/vue-router.d.ts +26 -10
  238. package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
  239. package/lib/dist/resolution/frameworks/vue-router.js +176 -53
  240. package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
  241. package/lib/dist/resolution/frameworks/vue.d.ts +9 -2
  242. package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
  243. package/lib/dist/resolution/frameworks/vue.js +45 -11
  244. package/lib/dist/resolution/frameworks/vue.js.map +1 -1
  245. package/lib/dist/resolution/import-resolver.d.ts +28 -0
  246. package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
  247. package/lib/dist/resolution/import-resolver.js +269 -37
  248. package/lib/dist/resolution/import-resolver.js.map +1 -1
  249. package/lib/dist/resolution/index.d.ts +35 -0
  250. package/lib/dist/resolution/index.d.ts.map +1 -1
  251. package/lib/dist/resolution/index.js +224 -14
  252. package/lib/dist/resolution/index.js.map +1 -1
  253. package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
  254. package/lib/dist/resolution/js-builtins.js +2 -0
  255. package/lib/dist/resolution/js-builtins.js.map +1 -1
  256. package/lib/dist/resolution/name-matcher.d.ts +33 -1
  257. package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
  258. package/lib/dist/resolution/name-matcher.js +6392 -227
  259. package/lib/dist/resolution/name-matcher.js.map +1 -1
  260. package/lib/dist/resolution/react-router-synthesizer.d.ts +2 -0
  261. package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
  262. package/lib/dist/resolution/react-router-synthesizer.js +80 -9
  263. package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
  264. package/lib/dist/resolution/resolver-pool.d.ts +20 -1
  265. package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
  266. package/lib/dist/resolution/resolver-pool.js +31 -5
  267. package/lib/dist/resolution/resolver-pool.js.map +1 -1
  268. package/lib/dist/resolution/resolver-worker.js +3 -0
  269. package/lib/dist/resolution/resolver-worker.js.map +1 -1
  270. package/lib/dist/resolution/swift-type-visibility.d.ts +68 -0
  271. package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -0
  272. package/lib/dist/resolution/swift-type-visibility.js +454 -0
  273. package/lib/dist/resolution/swift-type-visibility.js.map +1 -0
  274. package/lib/dist/resolution/tier-synthesizer.d.ts +7 -2
  275. package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
  276. package/lib/dist/resolution/tier-synthesizer.js +365 -2
  277. package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
  278. package/lib/dist/resolution/type-parameters.d.ts +11 -0
  279. package/lib/dist/resolution/type-parameters.d.ts.map +1 -0
  280. package/lib/dist/resolution/type-parameters.js +287 -0
  281. package/lib/dist/resolution/type-parameters.js.map +1 -0
  282. package/lib/dist/resolution/types.d.ts +27 -0
  283. package/lib/dist/resolution/types.d.ts.map +1 -1
  284. package/lib/dist/resolution/types.js.map +1 -1
  285. package/lib/dist/sync/worktree.d.ts +22 -0
  286. package/lib/dist/sync/worktree.d.ts.map +1 -1
  287. package/lib/dist/sync/worktree.js +54 -0
  288. package/lib/dist/sync/worktree.js.map +1 -1
  289. package/lib/dist/telemetry/index.d.ts.map +1 -1
  290. package/lib/dist/telemetry/index.js +69 -27
  291. package/lib/dist/telemetry/index.js.map +1 -1
  292. package/lib/dist/ui-server/api/effects.d.ts +7 -0
  293. package/lib/dist/ui-server/api/effects.d.ts.map +1 -1
  294. package/lib/dist/ui-server/api/effects.js +35 -7
  295. package/lib/dist/ui-server/api/effects.js.map +1 -1
  296. package/lib/dist/ui-server/api/entrypoints.d.ts +6 -0
  297. package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -1
  298. package/lib/dist/ui-server/api/entrypoints.js +91 -6
  299. package/lib/dist/ui-server/api/entrypoints.js.map +1 -1
  300. package/lib/dist/ui-server/api/map.d.ts +41 -6
  301. package/lib/dist/ui-server/api/map.d.ts.map +1 -1
  302. package/lib/dist/ui-server/api/map.js +122 -22
  303. package/lib/dist/ui-server/api/map.js.map +1 -1
  304. package/lib/dist/ui-server/api/node.d.ts.map +1 -1
  305. package/lib/dist/ui-server/api/node.js +8 -2
  306. package/lib/dist/ui-server/api/node.js.map +1 -1
  307. package/lib/dist/ui-server/api/route-roots.d.ts +6 -0
  308. package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
  309. package/lib/dist/ui-server/api/route-roots.js +23 -2
  310. package/lib/dist/ui-server/api/route-roots.js.map +1 -1
  311. package/lib/dist/ui-server/api/routes.d.ts +2 -0
  312. package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
  313. package/lib/dist/ui-server/api/routes.js +61 -5
  314. package/lib/dist/ui-server/api/routes.js.map +1 -1
  315. package/lib/dist/ui-server/api/screens.d.ts.map +1 -1
  316. package/lib/dist/ui-server/api/screens.js +16 -1
  317. package/lib/dist/ui-server/api/screens.js.map +1 -1
  318. package/lib/dist/ui-server/api/steps.d.ts.map +1 -1
  319. package/lib/dist/ui-server/api/steps.js +124 -16
  320. package/lib/dist/ui-server/api/steps.js.map +1 -1
  321. package/lib/dist/ui-server/api/trails.js +1 -0
  322. package/lib/dist/ui-server/api/trails.js.map +1 -1
  323. package/lib/dist/ui-server/api/when.d.ts +10 -2
  324. package/lib/dist/ui-server/api/when.d.ts.map +1 -1
  325. package/lib/dist/ui-server/api/when.js +34 -10
  326. package/lib/dist/ui-server/api/when.js.map +1 -1
  327. package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts +28 -0
  328. package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts.map +1 -0
  329. package/lib/dist/ui-server/highlight/bounded-tokenize.js +139 -0
  330. package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -0
  331. package/lib/dist/ui-server/highlight/index.d.ts.map +1 -1
  332. package/lib/dist/ui-server/highlight/index.js +6 -1
  333. package/lib/dist/ui-server/highlight/index.js.map +1 -1
  334. package/lib/dist/ui-server/highlight/tokenize-worker.d.ts +7 -0
  335. package/lib/dist/ui-server/highlight/tokenize-worker.d.ts.map +1 -0
  336. package/lib/dist/ui-server/highlight/tokenize-worker.js +20 -0
  337. package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -0
  338. package/lib/dist/upgrade/index.d.ts +43 -5
  339. package/lib/dist/upgrade/index.d.ts.map +1 -1
  340. package/lib/dist/upgrade/index.js +157 -35
  341. package/lib/dist/upgrade/index.js.map +1 -1
  342. package/lib/dist/viewer/assets/{index-D4S7YUPf.js → index-BSGpxBr9.js} +60 -58
  343. package/lib/dist/viewer/index.html +1 -1
  344. package/lib/dist/worker-teardown.d.ts +48 -0
  345. package/lib/dist/worker-teardown.d.ts.map +1 -0
  346. package/lib/dist/worker-teardown.js +100 -0
  347. package/lib/dist/worker-teardown.js.map +1 -0
  348. package/lib/kernel/codegraph-kernel.node +2 -2
  349. package/lib/node_modules/.package-lock.json +1 -1
  350. package/lib/package.json +1 -1
  351. package/package.json +1 -1
@@ -12,6 +12,7 @@ const next_router_synthesizer_1 = require("./next-router-synthesizer");
12
12
  const react_router_synthesizer_1 = require("./react-router-synthesizer");
13
13
  const tanstack_router_synthesizer_1 = require("./tanstack-router-synthesizer");
14
14
  const vue_router_synthesizer_1 = require("./vue-router-synthesizer");
15
+ const angular_template_synthesizer_1 = require("./angular-template-synthesizer");
15
16
  const sveltekit_synthesizer_1 = require("./sveltekit-synthesizer");
16
17
  const cooperative_yield_1 = require("./cooperative-yield");
17
18
  const tier_synthesizer_1 = require("./tier-synthesizer");
@@ -1072,6 +1073,27 @@ async function interfaceOverrideEdges(queries, onYield) {
1072
1073
  methodsMemo.set(classId, methods);
1073
1074
  return methods;
1074
1075
  };
1076
+ // A Swift protocol's methods live in its extensions: requirements are not
1077
+ // extracted as methods, and `extension EventMonitor { func request(…) }` is
1078
+ // where the default implementations a conformer overrides are. A class-kind
1079
+ // node sharing a protocol's name is one of its extensions.
1080
+ const protocolMemo = new Map();
1081
+ const baseMethodsOf = (base) => {
1082
+ if (base.language !== 'swift' || base.kind !== 'interface')
1083
+ return methodsOf(base.id);
1084
+ const hit = protocolMemo.get(base.id);
1085
+ if (hit)
1086
+ return hit;
1087
+ const methods = [
1088
+ ...methodsOf(base.id),
1089
+ ...queries
1090
+ .getNodesByName(base.name)
1091
+ .filter((n) => n.language === 'swift' && n.kind === 'class')
1092
+ .flatMap((n) => methodsOf(n.id)),
1093
+ ];
1094
+ protocolMemo.set(base.id, methods);
1095
+ return methods;
1096
+ };
1075
1097
  // Concrete-side kinds vary by language: `class` covers Java / Kotlin /
1076
1098
  // C# / TS / Swift-classes / Scala-classes; `struct` covers Swift value
1077
1099
  // types that conform to protocols. Iterate both.
@@ -1106,7 +1128,7 @@ async function interfaceOverrideEdges(queries, onYield) {
1106
1128
  implByName.set(m.name, [m]);
1107
1129
  }
1108
1130
  let added = 0;
1109
- for (const bm of methodsOf(base.id)) {
1131
+ for (const bm of baseMethodsOf(base)) {
1110
1132
  if (added >= MAX_CALLBACKS_PER_CHANNEL)
1111
1133
  break;
1112
1134
  for (const m of implByName.get(bm.name) ?? []) {
@@ -1255,6 +1277,19 @@ const JSX_CHILD_KINDS = new Set(['component', 'function', 'class']);
1255
1277
  * still links there.
1256
1278
  */
1257
1279
  const JSX_CHILD_LANGUAGES = [...JS_FAMILY, 'vue', 'svelte'];
1280
+ function languageForJsxFile(file) {
1281
+ if (file.endsWith('.tsx'))
1282
+ return 'tsx';
1283
+ if (/\.[cm]?ts$/.test(file))
1284
+ return 'typescript';
1285
+ if (file.endsWith('.jsx'))
1286
+ return 'jsx';
1287
+ if (file.endsWith('.vue'))
1288
+ return 'vue';
1289
+ if (file.endsWith('.svelte'))
1290
+ return 'svelte';
1291
+ return 'javascript';
1292
+ }
1258
1293
  /** `localName` → the project file it is imported from, for one file's imports. */
1259
1294
  function importedFrom(ctx, file, language) {
1260
1295
  const out = new Map();
@@ -1287,7 +1322,21 @@ function importedFrom(ctx, file, language) {
1287
1322
  */
1288
1323
  function jsxChild(ctx, name, file, importsOf) {
1289
1324
  const candidates = ctx.getNodesByName(name).filter((n) => JSX_CHILD_KINDS.has(n.kind));
1290
- if (candidates.length <= 1)
1325
+ if (candidates.length === 0) {
1326
+ // A name nothing declares is the file's DEFAULT import of a module's one
1327
+ // component under another name: segmented-control renders
1328
+ // `<RNCSegmentedControlNativeComponent>`, the default export of a module
1329
+ // that is `requireNativeComponent('RNCSegmentedControl')`; element-plus's
1330
+ // tests render `<Autocomplete>` from `autocomplete.vue`. A named import
1331
+ // names an export of its own, which a barrel's one component is not.
1332
+ const isDefault = ctx
1333
+ .getImportMappings(file, languageForJsxFile(file))
1334
+ .some((m) => m.localName === name && m.isDefault);
1335
+ const from = isDefault ? importsOf().get(name) : undefined;
1336
+ const components = from ? ctx.getNodesInFile(from).filter((n) => n.kind === 'component') : [];
1337
+ return components.length === 1 ? components[0] : undefined;
1338
+ }
1339
+ if (candidates.length === 1)
1291
1340
  return candidates[0];
1292
1341
  const local = candidates.find((n) => n.filePath === file);
1293
1342
  if (local)
@@ -1537,8 +1586,81 @@ const RN_JVM_EMIT_RE = /\.emit\s*\(\s*"([^"]+)"\s*,/g;
1537
1586
  // statement and stops at a block boundary, so the wrapper DEFINITION (whose `(`
1538
1587
  // is followed by `… ) {`) never matches. Multi-line tolerant. (java/kotlin/swift)
1539
1588
  const RN_NATIVE_SENDEVENT_RE = /\bsendEvent\s*\([^;{}]*?"([^"]+)"/g;
1589
+ // The same calls with the event named by a CONSTANT — NetInfo listens with
1590
+ // `addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, …)`, many libraries emit
1591
+ // with `.emit(EVENT_NAME, …)` or `sendEventWithName:kLocationEvent`.
1592
+ const RN_OBJC_SEND_CONST_RE = /\bsendEventWithName\s*:\s*([A-Za-z_]\w*)\b/g;
1593
+ const RN_SWIFT_SEND_CONST_RE = /\bsendEvent\s*\(\s*withName\s*:\s*([A-Za-z_][\w.]*)/g;
1594
+ const RN_JVM_EMIT_CONST_RE = /\.emit\s*\(\s*([A-Za-z_][\w.]*)\s*,/g;
1595
+ const RN_NATIVE_SENDEVENT_CONST_RE = /\bsendEvent\s*\(\s*[A-Za-z_][\w.]*\s*,\s*([A-Za-z_][\w.]*)\s*,/g;
1596
+ const RN_JS_LISTEN_CONST_RE = /\.(?:on|once|addListener)\(\s*((?:[A-Za-z_$][\w$]*\.)*[A-Za-z_$][\w$]*)\s*,\s*([A-Za-z_$][\w$.]*|(?:async\s*)?(?:\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>|function\s*\())/g;
1597
+ const CONSTANT_KINDS = new Set(['constant', 'variable', 'field', 'property', 'enum_member']);
1598
+ /**
1599
+ * The string an event-name constant holds, read off its declaration line:
1600
+ * `export const DEVICE_CONNECTIVITY_EVENT = 'netInfo.networkStatusDidChange'`,
1601
+ * `static final String EVENT = "x"`, `const val EVENT = "x"`,
1602
+ * `NSString *const kEvent = @"x"`, `#define kEvent @"x"`, `static let event = "x"`,
1603
+ * an enum case `Changed = 'changed'`.
1604
+ *
1605
+ * Scoped as the language scopes the name, never by the name alone — a
1606
+ * parameter `eventName` is not some test's `eventName = "pong"`:
1607
+ * - a bare `NAME` is a declaration in the same file, or (JS) the one an
1608
+ * import of that name points at;
1609
+ * - `Owner.NAME` is a declaration inside `Owner`, or (JS) `NAME` in the file
1610
+ * a namespace import `Owner` points at.
1611
+ * Null unless those declarations agree on one literal.
1612
+ */
1613
+ function constantEventName(expr, file, ctx, memo) {
1614
+ const key = `${file}\0${expr}`;
1615
+ if (memo.has(key))
1616
+ return memo.get(key);
1617
+ const parts = expr.replace(/\.rawValue$/, '').split('.');
1618
+ const name = parts[parts.length - 1];
1619
+ const owner = parts.length > 1 ? parts[parts.length - 2] : null;
1620
+ let value = null;
1621
+ if (/^[A-Za-z_$][\w$]*$/.test(name) && name !== 'this' && (parts.length <= 2 || parts[0] !== 'this')) {
1622
+ const read = (n) => {
1623
+ const line = (ctx.getFileLines?.(n.filePath) ?? ctx.readFile(n.filePath)?.split(/\r?\n/))?.[n.startLine - 1] ?? '';
1624
+ const at = line.indexOf(name);
1625
+ if (at < 0)
1626
+ return null;
1627
+ const rest = line.slice(at + name.length);
1628
+ const m = /^\s*(?::[^=;]*)?[=:]\s*@?(["'`])([^"'`]+)\1/.exec(rest) ?? /^\s+@?(")([^"]+)"/.exec(rest);
1629
+ return m ? m[2] : null;
1630
+ };
1631
+ const declaredIn = (f) => ctx.getNodesInFile(f).filter((n) => n.name === name && CONSTANT_KINDS.has(n.kind));
1632
+ const js = /\.(?:[cm]?[jt]sx?)$/.test(file);
1633
+ const language = /\.tsx$/.test(file) ? 'tsx' : /\.[cm]?ts$/.test(file) ? 'typescript' : file.endsWith('.jsx') ? 'jsx' : 'javascript';
1634
+ const importedFile = (local) => {
1635
+ if (!js)
1636
+ return null;
1637
+ const binding = ctx.getImportMappings(file, language).find((m) => m.localName === local);
1638
+ return binding ? (0, import_resolver_1.resolveImportPath)(binding.source, file, language, ctx) : null;
1639
+ };
1640
+ let decls = [];
1641
+ if (owner === null) {
1642
+ decls = declaredIn(file);
1643
+ if (decls.length === 0) {
1644
+ const from = importedFile(name);
1645
+ if (from)
1646
+ decls = declaredIn(from);
1647
+ }
1648
+ }
1649
+ else {
1650
+ const from = importedFile(owner);
1651
+ decls = from
1652
+ ? declaredIn(from)
1653
+ : ctx.getNodesByName(name).filter((n) => CONSTANT_KINDS.has(n.kind) && new RegExp(`(?:^|[.:])${owner}(?:[.:]|$)`).test(n.qualifiedName.slice(0, n.qualifiedName.lastIndexOf(name))));
1654
+ }
1655
+ const values = new Set(decls.map(read).filter((v) => v !== null));
1656
+ value = values.size === 1 ? [...values][0] : null;
1657
+ }
1658
+ memo.set(key, value);
1659
+ return value;
1660
+ }
1540
1661
  async function rnEventEdges(ctx, onYield) {
1541
1662
  let scannedFiles = 0;
1663
+ const constants = new Map();
1542
1664
  // Native dispatchers (source = the native method whose body sends the
1543
1665
  // event) and JS handlers (target = the function/method registered as
1544
1666
  // the listener) keyed by event name.
@@ -1569,6 +1691,12 @@ async function rnEventEdges(ctx, onYield) {
1569
1691
  if (m[1])
1570
1692
  addDispatcher(m[1], lineOf(m.index));
1571
1693
  }
1694
+ RN_OBJC_SEND_CONST_RE.lastIndex = 0;
1695
+ while ((m = RN_OBJC_SEND_CONST_RE.exec(content))) {
1696
+ const event = constantEventName(m[1], file, ctx, constants);
1697
+ if (event)
1698
+ addDispatcher(event, lineOf(m.index));
1699
+ }
1572
1700
  }
1573
1701
  // Swift side: same RCTEventEmitter method, parens/named-args syntax.
1574
1702
  if (file.endsWith('.swift')) {
@@ -1583,6 +1711,12 @@ async function rnEventEdges(ctx, onYield) {
1583
1711
  if (m[1])
1584
1712
  addDispatcher(m[1], lineOf(m.index));
1585
1713
  }
1714
+ RN_SWIFT_SEND_CONST_RE.lastIndex = 0;
1715
+ while ((m = RN_SWIFT_SEND_CONST_RE.exec(content))) {
1716
+ const event = constantEventName(m[1], file, ctx, constants);
1717
+ if (event)
1718
+ addDispatcher(event, lineOf(m.index));
1719
+ }
1586
1720
  }
1587
1721
  // JVM side: `.emit("X", …)` in Java/Kotlin, plus the common
1588
1722
  // `sendEvent(ctx, "X", body)` wrapper. (We pattern-match anywhere in the
@@ -1600,6 +1734,14 @@ async function rnEventEdges(ctx, onYield) {
1600
1734
  if (m[1])
1601
1735
  addDispatcher(m[1], lineOf(m.index));
1602
1736
  }
1737
+ for (const re of [RN_JVM_EMIT_CONST_RE, RN_NATIVE_SENDEVENT_CONST_RE]) {
1738
+ re.lastIndex = 0;
1739
+ while ((m = re.exec(content))) {
1740
+ const event = constantEventName(m[1], file, ctx, constants);
1741
+ if (event)
1742
+ addDispatcher(event, lineOf(m.index));
1743
+ }
1744
+ }
1603
1745
  }
1604
1746
  // JS subscribers (.addListener("X", handler)). Restrict to JS-family
1605
1747
  // files so a native file's `addListener:` (the ObjC method) doesn't
@@ -1688,6 +1830,26 @@ async function rnEventEdges(ctx, onYield) {
1688
1830
  map.set(enclosing.id, `${file}:${lineOf(m.index)}`);
1689
1831
  jsHandlersByEvent.set(event, map);
1690
1832
  }
1833
+ // A constant event name: the listener lands where a literal one would —
1834
+ // the named handler when it is a node, else the enclosing function.
1835
+ RN_JS_LISTEN_CONST_RE.lastIndex = 0;
1836
+ while ((m = RN_JS_LISTEN_CONST_RE.exec(content))) {
1837
+ const event = constantEventName(m[1], file, ctx, constants);
1838
+ if (!event)
1839
+ continue;
1840
+ const arg = m[2];
1841
+ const bare = /^[A-Za-z_$][\w$.]*$/.test(arg) ? arg.slice(arg.lastIndexOf('.') + 1) : null;
1842
+ const line = lineOf(m.index);
1843
+ // The handler this file names — never a same-named function elsewhere.
1844
+ const named = bare ? nodesInFile.find((n) => (n.kind === 'function' || n.kind === 'method') && n.name === bare) : undefined;
1845
+ const target = named ?? (0, synth_utils_1.enclosingFn)(nodesInFile, line);
1846
+ if (!target)
1847
+ continue;
1848
+ const map = jsHandlersByEvent.get(event) ?? new Map();
1849
+ if (!map.has(target.id))
1850
+ map.set(target.id, `${file}:${line}`);
1851
+ jsHandlersByEvent.set(event, map);
1852
+ }
1691
1853
  }
1692
1854
  }
1693
1855
  const edges = [];
@@ -3862,7 +4024,7 @@ function hasSynthesisPattern(filePath, content) {
3862
4024
  return true;
3863
4025
  if (/\.go$/.test(filePath) && /\b(?:struct|interface)\b|\bfunc\s*\(/.test(content))
3864
4026
  return true;
3865
- if ((0, tier_synthesizer_1.hasCrossTierPattern)(content))
4027
+ if ((0, tier_synthesizer_1.hasCrossTierPattern)(content) || (0, tier_synthesizer_1.hasTestRequestPattern)(filePath, content))
3866
4028
  return true;
3867
4029
  if (/\b(?:render|build|setState|defineStore|createStore|createApi|Store|href|sendEvent|sendEventWithName)\b|<\/|\/>/.test(content))
3868
4030
  return true;
@@ -3900,6 +4062,10 @@ exports.SYNTH_PASSES = [
3900
4062
  // Before the in-process emitter pass: the same (source, target) pair
3901
4063
  // keeps the more specific edge — the one that says which tier it crosses.
3902
4064
  { name: 'tierEdges', gate: (has) => has(...JS_FAMILY), run: (_q, c, y) => (0, tier_synthesizer_1.crossTierEdges)(c, y) },
4065
+ // A Spring / Laravel test's request (`mockMvc.perform(post("/x"))`,
4066
+ // `$this->postJson('api/x')`) onto the route it reaches, so the handler
4067
+ // counts as tested.
4068
+ { name: 'testRequestEdges', gate: (has) => has('java', 'kotlin', 'php'), run: (_q, c, y) => (0, tier_synthesizer_1.testRequestEdges)(c, y) },
3903
4069
  { name: 'emitterEdges', gate: ALWAYS, run: (_q, c, y) => eventEmitterEdges(c, y) },
3904
4070
  { name: 'renderEdges', gate: ALWAYS, run: (q, c, y) => reactRenderEdges(q, c, y) },
3905
4071
  { name: 'jsxEdges', gate: (has) => has(...JS_FAMILY), run: (_q, c, y) => reactJsxChildEdges(c, y) },
@@ -3963,6 +4129,8 @@ exports.SYNTH_PASSES = [
3963
4129
  { name: 'reactRouterLinkEdges', gate: (has) => has(...JS_FAMILY), run: (_q, c, y) => (0, react_router_synthesizer_1.reactRouterLinkEdges)(c, y) },
3964
4130
  { name: 'tanstackLinkEdges', gate: (has) => has(...JS_FAMILY), run: (_q, c, y) => (0, tanstack_router_synthesizer_1.tanstackLinkEdges)(c, y) },
3965
4131
  { name: 'vueRouterLinkEdges', gate: (has) => has('vue', ...JS_FAMILY), run: (_q, c, y) => (0, vue_router_synthesizer_1.vueRouterLinkEdges)(c, y) },
4132
+ // An Angular template: the child components it renders and its `routerLink`s.
4133
+ { name: 'angularTemplateEdges', gate: (has) => has('typescript'), run: (_q, c, y) => (0, angular_template_synthesizer_1.angularTemplateEdges)(c, y) },
3966
4134
  { name: 'svelteKitPageEdges', gate: (has) => has('svelte'), run: (_q, c, y) => (0, sveltekit_synthesizer_1.svelteKitPageComponentEdges)(c, y) },
3967
4135
  { name: 'svelteKitLinkEdges', gate: (has) => has('svelte'), run: (_q, c, y) => (0, sveltekit_synthesizer_1.svelteKitLinkEdges)(c, y) },
3968
4136
  { name: 'nixOptionEdges', gate: (has) => has('nix'), run: (q, _c, y) => nixOptionPathEdges(q, y) },