@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
@@ -50,6 +50,8 @@ const types_1 = require("./types");
50
50
  const name_matcher_1 = require("./name-matcher");
51
51
  const cpp_macro_visibility_1 = require("./cpp-macro-visibility");
52
52
  const cpp_constructor_1 = require("./cpp-constructor");
53
+ const swift_type_visibility_1 = require("./swift-type-visibility");
54
+ const type_parameters_1 = require("./type-parameters");
53
55
  const import_resolver_1 = require("./import-resolver");
54
56
  const resolver_pool_1 = require("./resolver-pool");
55
57
  const alias_binding_1 = require("./alias-binding");
@@ -64,6 +66,9 @@ const errors_1 = require("../errors");
64
66
  const utils_1 = require("../utils");
65
67
  const lru_cache_1 = require("./lru-cache");
66
68
  const js_builtins_1 = require("./js-builtins");
69
+ const module_1 = require("module");
70
+ const jsonc_parser_1 = require("jsonc-parser");
71
+ const NODE_BUILTINS = new Set(module_1.builtinModules);
67
72
  /** Node kinds that can declare supertypes (extends/implements). */
68
73
  const SUPERTYPE_BEARING_KINDS = new Set([
69
74
  'class', 'struct', 'interface', 'trait', 'protocol', 'enum',
@@ -309,6 +314,8 @@ class ReferenceResolver {
309
314
  // `null` = computed and absent. Treated as immutable for the
310
315
  // resolver's lifetime; callers re-create the resolver if config changes.
311
316
  projectAliases = undefined;
317
+ // Per directory: the aliases of the nearest non-root tsconfig declaring `paths`.
318
+ dirAliases = new Map();
312
319
  // go.mod module path. Same lazy/immutable convention as projectAliases.
313
320
  goModule = undefined;
314
321
  // Monorepo workspace member packages. Same lazy/immutable convention.
@@ -438,7 +445,9 @@ class ReferenceResolver {
438
445
  this.supertypeGen++;
439
446
  this.nodesByKindCache.clear();
440
447
  this.fileExistsMemo.clear();
448
+ this.manifestScopes.clear();
441
449
  this.knownNames = null;
450
+ this.knownLowerNames = null;
442
451
  this.knownFiles = null;
443
452
  this.cachesWarmed = false;
444
453
  // The import-resolver's and name-matcher's per-context memos assume the
@@ -447,6 +456,8 @@ class ReferenceResolver {
447
456
  (0, import_resolver_1.clearImportResolverMemos)(this.context);
448
457
  (0, name_matcher_1.clearNameMatcherMemos)(this.context);
449
458
  (0, cpp_macro_visibility_1.clearCppMacroVisibility)(this.context);
459
+ (0, swift_type_visibility_1.clearSwiftTypeVisibility)(this.context);
460
+ (0, type_parameters_1.clearTypeParameterMemos)(this.context);
450
461
  }
451
462
  }
452
463
  /** `readFile` through the LRU content cache (null = read failed, also cached). */
@@ -499,6 +510,9 @@ class ReferenceResolver {
499
510
  createContext() {
500
511
  return {
501
512
  resolveImport: (ref) => (0, import_resolver_1.resolveViaImport)(ref, this.context),
513
+ isOutOfRepoImport: (source, fromFile, language) => (0, import_resolver_1.isExternalImport)(source, language, this.context) &&
514
+ (0, import_resolver_1.resolveImportPath)(source, fromFile, language, this.context) === null &&
515
+ this.isDeclaredOutsidePackage(source, fromFile),
502
516
  getNodesInFile: (filePath) => {
503
517
  if (!this.nodeCache.has(filePath)) {
504
518
  this.nodeCache.set(filePath, this.queries.getNodesByFile(filePath));
@@ -730,6 +744,15 @@ class ReferenceResolver {
730
744
  if (target?.name && target.name !== typeName)
731
745
  supertypes.add(target.name);
732
746
  }
747
+ // A Swift conformance to a type the project only extends (SwiftUI's
748
+ // `View`) resolves to nothing — the extension is not the type — yet
749
+ // the members its extensions add are still the conformer's.
750
+ if (language === 'swift') {
751
+ for (const name of (0, swift_type_visibility_1.swiftExtendedConformances)(tn, this.context)) {
752
+ if (name !== typeName)
753
+ supertypes.add(name);
754
+ }
755
+ }
733
756
  }
734
757
  supers = [...supertypes];
735
758
  }
@@ -756,6 +779,31 @@ class ReferenceResolver {
756
779
  }
757
780
  return this.projectAliases;
758
781
  },
782
+ getNearestAliases: (fromFile) => {
783
+ let dir = path.posix.dirname(fromFile.replace(/\\/g, '/'));
784
+ const walked = [];
785
+ let found = null;
786
+ while (dir && dir !== '.' && dir !== '/') {
787
+ const hit = this.dirAliases.get(dir);
788
+ if (hit !== undefined) {
789
+ found = hit;
790
+ break;
791
+ }
792
+ walked.push(dir);
793
+ const abs = path.join(this.projectRoot, dir);
794
+ if (['tsconfig.json', 'jsconfig.json'].some((name) => fs.existsSync(path.join(abs, name)))) {
795
+ const aliases = (0, path_aliases_1.loadProjectAliases)(abs);
796
+ if (aliases) {
797
+ found = aliases;
798
+ break;
799
+ }
800
+ }
801
+ dir = path.posix.dirname(dir);
802
+ }
803
+ for (const d of walked)
804
+ this.dirAliases.set(d, found);
805
+ return found;
806
+ },
759
807
  getGoModule: () => {
760
808
  if (this.goModule === undefined) {
761
809
  this.goModule = (0, go_module_1.loadGoModule)(this.projectRoot);
@@ -851,6 +899,22 @@ class ReferenceResolver {
851
899
  },
852
900
  };
853
901
  }
902
+ /** Lowercased `knownNames`, built the first time a case-insensitive language asks. */
903
+ knownLowerNames = null;
904
+ /** `hasAnyPossibleMatch` for a language whose names ignore case: the name, or any `.`/`::`/`->` part of it. */
905
+ hasAnyPossibleMatchIgnoringCase(name) {
906
+ if (!this.knownNames)
907
+ return true;
908
+ if (!this.knownLowerNames || this.knownLowerNames.size === 0) {
909
+ this.knownLowerNames = new Set();
910
+ for (const known of this.knownNames)
911
+ this.knownLowerNames.add(known.toLowerCase());
912
+ }
913
+ const lower = name.toLowerCase();
914
+ if (this.knownLowerNames.has(lower))
915
+ return true;
916
+ return lower.split(/::|->|\./).some((part) => part.length > 0 && this.knownLowerNames.has(part));
917
+ }
854
918
  /**
855
919
  * Check if a reference name has any possible match in the codebase.
856
920
  * Uses the pre-built knownNames set to skip expensive resolution
@@ -961,10 +1025,13 @@ class ReferenceResolver {
961
1025
  // to a same-named function in another file (#1838).
962
1026
  if ((0, cpp_macro_visibility_1.isVisibleCppMacro)(ref, this.context))
963
1027
  return null;
964
- const candidate = this.gateTargetKind(this.resolveOneInner(ref), ref);
965
- const resolved = candidate?.resolvedBy === 'framework'
966
- ? this.gateFrameworkLanguage(candidate, ref)
967
- : this.gateLanguage(candidate, ref);
1028
+ // A Swift type reference never lands on an `extension X {}` node, nor on a
1029
+ // nested type it cannot name bare (see ./swift-type-visibility).
1030
+ // A name a declaration around the reference declares as a type parameter
1031
+ // (`def f[A]`, `class Foo<T>`) is that parameter (see ./type-parameters).
1032
+ const candidate = (0, type_parameters_1.gateTypeParameter)((0, swift_type_visibility_1.gateSwiftTypeTarget)(this.gateTargetKind(this.resolveOneInner(ref), ref), ref, this.context), ref, this.context);
1033
+ const scoped = this.gateRustScope(candidate, ref);
1034
+ const resolved = this.gateSuperSelfCall(scoped?.resolvedBy === 'framework' ? this.gateFrameworkLanguage(scoped, ref) : this.gateLanguage(scoped, ref), ref);
968
1035
  if (!resolved || ref.referenceKind !== 'calls')
969
1036
  return resolved;
970
1037
  const target = this.nodeById(resolved.targetNodeId);
@@ -1004,6 +1071,13 @@ class ReferenceResolver {
1004
1071
  (ref.referenceName.includes('.') || ref.referenceName.includes('/'))) {
1005
1072
  return this.resolveCfmlComponentPath(ref);
1006
1073
  }
1074
+ // A PHP class written with a namespace in it — `new Alias\X()` through a
1075
+ // `use Ns as Alias;` namespace alias, `extends Sub\Base`, `\Ns\X::make()`
1076
+ // (#2256). The pre-filter below would drop most of these before any import
1077
+ // strategy ran, and PHP gives each one exactly one meaning; resolve it first.
1078
+ const phpQualified = (0, import_resolver_1.resolvePhpQualifiedClassRef)(ref, this.context);
1079
+ if (phpQualified !== undefined)
1080
+ return this.gateLanguage(phpQualified, ref);
1007
1081
  // Fast pre-filter: skip if no symbol with this name exists anywhere
1008
1082
  // AND the name doesn't match a local import. The import escape is
1009
1083
  // necessary because re-export rename chains (`import { login }
@@ -1013,8 +1087,9 @@ class ReferenceResolver {
1013
1087
  // ArkTS chained-attribute refs carry a leading dot (`.titleStyle`) that
1014
1088
  // routes them to the decorator-gated matcher; the symbol itself is
1015
1089
  // indexed under the bare name, so the existence check strips the dot.
1016
- // Nix static path imports (`import ./x.nix`) name a FILE, not a symbol —
1017
- // they bypass the symbol-existence check and resolve via resolveViaImport.
1090
+ // Nix static path imports (`import ./x.nix`) and JS/TS module paths
1091
+ // (`require('./x')`) name a FILE, not a symbol — they bypass the
1092
+ // symbol-existence check and resolve via resolveViaImport.
1018
1093
  let existenceName = ref.language === 'arkts' && ref.referenceName.startsWith('.')
1019
1094
  ? ref.referenceName.slice(1)
1020
1095
  : ref.referenceName;
@@ -1024,7 +1099,11 @@ class ReferenceResolver {
1024
1099
  existenceName = existenceName.replace(/\/\d{1,3}$/, '');
1025
1100
  const tPre = this.profileStages ? process.hrtime.bigint() : 0n;
1026
1101
  const preFilterPass = (0, import_resolver_1.isNixPathImportRef)(ref) ||
1102
+ (0, import_resolver_1.isJsPathImportRef)(ref) ||
1027
1103
  this.hasAnyPossibleMatch(existenceName) ||
1104
+ // PHP, Pascal, CFML, COBOL and VB.NET names ignore case: `formatprice()`
1105
+ // calls `FormatPrice`, which the exact-name set never lists.
1106
+ (name_matcher_1.CASE_INSENSITIVE_LANGUAGES.has(ref.language) && this.hasAnyPossibleMatchIgnoringCase(existenceName)) ||
1028
1107
  this.matchesAnyImport(ref) ||
1029
1108
  this.frameworks.some((f) => f.claimsReference?.(ref.referenceName));
1030
1109
  if (this.profileStages)
@@ -1093,7 +1172,11 @@ class ReferenceResolver {
1093
1172
  const tFw = this.profileStages ? process.hrtime.bigint() : 0n;
1094
1173
  let fwEarly = null;
1095
1174
  for (const framework of this.frameworks) {
1096
- const result = this.gateFrameworkLanguage(framework.resolve(ref, this.context), ref);
1175
+ const resolved = this.gateFrameworkLanguage(framework.resolve(ref, this.context), ref);
1176
+ // Name the resolver on the edge (`metadata.framework`): a Swift→ObjC or
1177
+ // React Native bridge hop says how it got into the graph, as a
1178
+ // synthesized edge's `synthesizedBy` does.
1179
+ const result = resolved ? { ...resolved, metadata: { ...resolved.metadata, framework: framework.name } } : null;
1097
1180
  if (result) {
1098
1181
  if (result.confidence >= 0.9) {
1099
1182
  fwEarly = result; // High confidence, return immediately (below)
@@ -1108,8 +1191,18 @@ class ReferenceResolver {
1108
1191
  return fwEarly;
1109
1192
  // A retained untyped chain supplies effect/call-site evidence only. In
1110
1193
  // particular, importing its root does not make the root its call target.
1111
- if ((0, name_matcher_1.isUnresolvedJsMemberCall)(ref))
1112
- return null;
1194
+ // A path through module namespaces is not untyped: `z.coerce.number()`
1195
+ // after `import * as z`, where the barrel has `export * as coerce`.
1196
+ if ((0, name_matcher_1.isUnresolvedJsMemberCall)(ref)) {
1197
+ const root = ref.referenceName.slice(0, ref.referenceName.indexOf('.'));
1198
+ const namespace = this.context.getImportMappings(ref.filePath, ref.language).some((m) => m.isNamespace && m.localName === root);
1199
+ if (!namespace)
1200
+ return null;
1201
+ const viaNamespace = this.gateLanguage((0, import_resolver_1.resolveViaImport)(ref, this.context), ref);
1202
+ const target = viaNamespace ? this.nodeById(viaNamespace.targetNodeId) : null;
1203
+ return target && (target.kind === 'function' || target.kind === 'method' || target.kind === 'class' || target.kind === 'constant' || target.kind === 'variable')
1204
+ ? viaNamespace : null;
1205
+ }
1113
1206
  // Strategy 2: Try import-based resolution
1114
1207
  // A TS/JS/Python call-receiver chain (`useStore.getState().reset`, #1683)
1115
1208
  // names the ROOT's import, not the method's: letting resolveViaImport see
@@ -1122,7 +1215,12 @@ class ReferenceResolver {
1122
1215
  return this.gateLanguage((0, name_matcher_1.matchReference)(ref, this.context), ref);
1123
1216
  }
1124
1217
  const tImp = this.profileStages ? process.hrtime.bigint() : 0n;
1125
- const importResult = this.gateLanguage((0, import_resolver_1.resolveViaImport)(ref, this.context), ref);
1218
+ // `self.get_ip()` is a method call on the instance even when the file
1219
+ // also imports a function named `get_ip`: the import never names it.
1220
+ const selfCall = ref.language === 'python' && ref.referenceKind === 'calls' &&
1221
+ this.context.getImportMappings(ref.filePath, ref.language).some((m) => m.localName === ref.referenceName) &&
1222
+ (0, name_matcher_1.isPythonSelfCall)(ref, this.context);
1223
+ const importResult = selfCall ? null : this.gateLanguage((0, import_resolver_1.resolveViaImport)(ref, this.context), ref);
1126
1224
  if (this.profileStages)
1127
1225
  this.stageAdd('viaImport', ref, !!importResult, tImp);
1128
1226
  if (importResult) {
@@ -1898,7 +1996,7 @@ class ReferenceResolver {
1898
1996
  adaptiveSeqRefs += batch.length;
1899
1997
  const remaining = total - processed - batch.length;
1900
1998
  const projectedMs = (adaptiveSeqMs / Math.max(1, adaptiveSeqRefs)) * Math.max(0, remaining);
1901
- if (projectedMs >= ADAPTIVE_ENGAGE_SETTLE_MS) {
1999
+ if ((0, resolver_pool_1.shouldEngageAdaptively)(projectedMs, remaining, ADAPTIVE_ENGAGE_SETTLE_MS)) {
1902
2000
  if (process.env.CODEGRAPH_SYNTH_TIMINGS) {
1903
2001
  console.error(`[pool-timing] adaptive engage: projected ${Math.round(projectedMs)}ms sequential settle over ${remaining} remaining refs`);
1904
2002
  }
@@ -2198,9 +2296,12 @@ class ReferenceResolver {
2198
2296
  isBuiltInOrExternal(ref) {
2199
2297
  const name = ref.referenceName;
2200
2298
  const isJsTs = ref.language === 'typescript' || ref.language === 'javascript'
2201
- || ref.language === 'tsx' || ref.language === 'jsx' || ref.language === 'arkts';
2202
- // JavaScript/TypeScript built-ins
2203
- if (isJsTs && js_builtins_1.JS_BUILT_INS.has(name)) {
2299
+ || ref.language === 'tsx' || ref.language === 'jsx' || ref.language === 'arkts'
2300
+ || ref.language === 'vue' || ref.language === 'svelte' || ref.language === 'astro';
2301
+ // JavaScript/TypeScript built-ins — unless the file imports its own
2302
+ // binding of that name (`import Map from './Map.svelte'`).
2303
+ if (isJsTs && js_builtins_1.JS_BUILT_INS.has(name) &&
2304
+ !this.context.getImportMappings(ref.filePath, ref.language).some((m) => m.localName === name)) {
2204
2305
  return true;
2205
2306
  }
2206
2307
  // ArkTS resource-reference intrinsics — `$r('app.string.x')` /
@@ -2703,6 +2804,115 @@ class ReferenceResolver {
2703
2804
  return null;
2704
2805
  return result;
2705
2806
  }
2807
+ /**
2808
+ * `super.didMoveToWindow()` inside an override of `didMoveToWindow` calls
2809
+ * the PARENT's implementation, never the method making the call. Extraction
2810
+ * keeps a `super` call under the bare method name, so every strategy found
2811
+ * the enclosing method itself: one expo-camera view had eleven of its
2812
+ * overrides "calling" themselves. The parent's method is usually a
2813
+ * framework's (UIKit, Android, React); a self-edge is never it. Real
2814
+ * recursion keeps its edge — only a call written through `super` / `base`
2815
+ * (C#) / `[super …]` (Objective-C) / `parent::` (PHP) / `super().` (Python)
2816
+ * is declined.
2817
+ */
2818
+ gateSuperSelfCall(result, ref) {
2819
+ if (!result || ref.referenceKind !== 'calls' || result.targetNodeId !== ref.fromNodeId)
2820
+ return result;
2821
+ const name = ref.referenceName.slice(Math.max(ref.referenceName.lastIndexOf('.'), ref.referenceName.lastIndexOf(':')) + 1);
2822
+ if (!/^[A-Za-z_$][\w$]*$/.test(name))
2823
+ return result;
2824
+ const line = (this.context.getFileLines?.(ref.filePath) ?? this.context.readFile(ref.filePath)?.split(/\r?\n/))?.[ref.line - 1];
2825
+ if (!line)
2826
+ return result;
2827
+ const escaped = name.replace(/\$/g, '\\$');
2828
+ const viaSuper = new RegExp(String.raw `(?:\b(?:super|base)\s*(?:\(\s*(?:[\w.]+\s*,\s*\w+)?\s*\))?\s*\??\.\s*|\[\s*super\s+|\bparent\s*::\s*)` + escaped + String.raw `\b`);
2829
+ return viaSuper.test(line) ? null : result;
2830
+ }
2831
+ /**
2832
+ * A bare Rust name reaches only what is in scope — every strategy's result,
2833
+ * a framework resolver's `Ok(x)` → `struct Ok` construction included (see
2834
+ * isRustNameInScope).
2835
+ */
2836
+ gateRustScope(result, ref) {
2837
+ if (!result || ref.language !== 'rust' || !/^[A-Za-z_]\w*$/.test(ref.referenceName))
2838
+ return result;
2839
+ const target = this.nodeById(result.targetNodeId);
2840
+ return target && !(0, name_matcher_1.isRustNameInScope)(target, ref, this.context) ? null : result;
2841
+ }
2842
+ /** The repository's own package name, from its root package.json; null without one. */
2843
+ /** Per directory: the package names its package.json and every enclosing one own and depend on. */
2844
+ manifestScopes = new Map();
2845
+ /**
2846
+ * Is `source` a package from outside the repository? Only when the importing
2847
+ * file's package.json (or an enclosing one) declares it, or it is a Node
2848
+ * built-in or a runtime's virtual module. A specifier nothing declares is
2849
+ * an alias this resolver does not know — SvelteKit's `$lib/…`, Nuxt's
2850
+ * `~/…`, a nested app's own `@/…` — and stays the project's.
2851
+ */
2852
+ isDeclaredOutsidePackage(source, fromFile) {
2853
+ // Deno's standard library is `@std/…` from JSR.
2854
+ if (/^(?:node|bun|jsr|npm|https?):/.test(source) || source.startsWith('@std/') || NODE_BUILTINS.has(source))
2855
+ return true;
2856
+ const name = source.startsWith('@') ? source.split('/').slice(0, 2).join('/') : source.split('/')[0];
2857
+ const normalized = fromFile.replace(/\\/g, '/');
2858
+ const scope = this.manifestScope(normalized.includes('/') ? normalized.slice(0, normalized.lastIndexOf('/')) : '');
2859
+ if (scope.own.has(name))
2860
+ return false;
2861
+ if (scope.deps.has(name))
2862
+ return true;
2863
+ // SvelteKit's `$app/…` and Astro's `astro:…` belong to the framework —
2864
+ // unless this repository is that framework.
2865
+ const provider = source.startsWith('astro:') ? 'astro' : /^\$(?:app|env|service-worker)(?:\/|$)/.test(source) ? '@sveltejs/kit' : null;
2866
+ return provider !== null && !scope.own.has(provider) && !this.context.getWorkspacePackages?.()?.byName.has(provider);
2867
+ }
2868
+ manifestScope(dir) {
2869
+ const memo = this.manifestScopes.get(dir);
2870
+ if (memo)
2871
+ return memo;
2872
+ const parent = dir === '' ? null : this.manifestScope(dir.includes('/') ? dir.slice(0, dir.lastIndexOf('/')) : '');
2873
+ let scope = parent ?? { own: new Set(), deps: new Set() };
2874
+ try {
2875
+ const json = JSON.parse(this.context.readFile(dir ? `${dir}/package.json` : 'package.json') ?? 'null');
2876
+ if (json && typeof json === 'object') {
2877
+ scope = { own: new Set(scope.own), deps: new Set(scope.deps) };
2878
+ if (typeof json.name === 'string' && json.name.length > 0)
2879
+ scope.own.add(json.name);
2880
+ for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {
2881
+ const deps = json[field];
2882
+ if (!deps || typeof deps !== 'object')
2883
+ continue;
2884
+ for (const [dep, version] of Object.entries(deps)) {
2885
+ // `workspace:*`, `file:../shared`, `link:…`: a package in this repository.
2886
+ if (typeof version === 'string' && /^(?:workspace|file|link|portal):/.test(version))
2887
+ scope.own.add(dep);
2888
+ else
2889
+ scope.deps.add(dep);
2890
+ }
2891
+ }
2892
+ }
2893
+ }
2894
+ catch { /* no or unreadable package.json */ }
2895
+ // A Deno import map names packages the same way — an entry that maps to a
2896
+ // registry or a URL, not one that maps to a path in the repository.
2897
+ for (const file of ['deno.json', 'deno.jsonc']) {
2898
+ const raw = this.context.readFile(dir ? `${dir}/${file}` : file);
2899
+ if (!raw)
2900
+ continue;
2901
+ const json = (0, jsonc_parser_1.parse)(raw);
2902
+ const imports = json && typeof json === 'object' ? json.imports : undefined;
2903
+ if (!imports || typeof imports !== 'object')
2904
+ continue;
2905
+ for (const [key, target] of Object.entries(imports)) {
2906
+ if (typeof target !== 'string' || !/^(?:jsr|npm|https?):/.test(target))
2907
+ continue;
2908
+ if (scope === parent)
2909
+ scope = { own: new Set(scope.own), deps: new Set(scope.deps) };
2910
+ scope.deps.add(key.replace(/\/$/, ''));
2911
+ }
2912
+ }
2913
+ this.manifestScopes.set(dir, scope);
2914
+ return scope;
2915
+ }
2706
2916
  /** The one supertype-kind node a TypeScript value shares its name and file with. */
2707
2917
  sameNamedTypeOfValue(value) {
2708
2918
  if (value.kind !== 'constant' && value.kind !== 'variable')