@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,42 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * `GET /api/steps` — what happens from here: a screen, a handler or any
4
- * symbol as the ANCHOR, and everything it sets in motion drawn as typed steps.
5
- *
6
- * The Screens view (`screens.ts`) is already a picture of steps with one step
7
- * type: it folds `HomeScreen → ItemsGrid → ItemCard → openObjectDetail` into
8
- * one arrow labelled with its condition, because the reader wants the
9
- * transition, not the plumbing. This endpoint keeps that fold and widens the
10
- * set of things worth a box. Walking FORWARD from the anchor over calls,
11
- * renders, handler bindings and navigations, a node is a step when it is:
12
- *
13
- * - a **screen** (a route reached over a `navigates` edge),
14
- * - a **trigger** — a function wired as a value (`onPress={handleX}`,
15
- * `addListener('x', handleX)`), the user's or the platform's way in,
16
- * - a **bridge** call — the language changes under the call, JS → native
17
- * (the React Native bridge resolver's edges, or any family crossing),
18
- * - a native **event** landing back in JS (`sendEvent(withName:)` → the
19
- * listener, via the RN event channel),
20
- * - a **store** action — a function in a store file, the state it writes,
21
- * - an **effect** — a call that leaves the index into the network, storage,
22
- * the device or telemetry, drawn as its own box beside the function that
23
- * makes it.
24
- *
25
- * Everything else — hooks, helpers, services, the components between a
26
- * screen and its handlers — is `via`: listed on the link, never a box. The
27
- * branch conditions along the folded chain join into the link's `when`, read
28
- * from the source at request time exactly as the Screens view reads them.
29
- *
30
- * The picture is finite because it is ANCHORED and CAPPED, not because the
31
- * graph is small: a bounded depth in steps, a bounded fan-out per node, a
32
- * bounded number of nodes folded per step, and hubs and shared chrome (a top
33
- * bar rendered on ten screens) are dead ends rather than paths. Every cap
34
- * that fired is reported on the step it fired at, so a short picture never
35
- * reads as "nothing else happens here".
36
- *
37
- * Read from the graph at request time, never cached: the `when` labels and
38
- * the effect sites are read from the source as it stands.
39
- */
40
2
  Object.defineProperty(exports, "__esModule", { value: true });
41
3
  exports.STORE_FILE = exports.MAX_LIMIT = exports.DEFAULT_LIMIT = exports.MAX_DEPTH = exports.DEFAULT_DEPTH = void 0;
42
4
  exports.crossing = crossing;
@@ -54,51 +16,22 @@ const nextjs_1 = require("../../resolution/frameworks/nextjs");
54
16
  const routes_1 = require("./routes");
55
17
  const wire_1 = require("./wire");
56
18
  const query_utils_1 = require("../../search/query-utils");
57
- // =============================================================================
58
- // Caps
59
- // =============================================================================
19
+ const utils_1 = require("../../utils");
60
20
  exports.DEFAULT_DEPTH = 8;
61
21
  exports.MAX_DEPTH = 14;
62
22
  exports.DEFAULT_LIMIT = 120;
63
23
  exports.MAX_LIMIT = 400;
64
- /** Nodes folded while exploring from ONE step before the walk stops. */
65
24
  const MAX_FOLDED_PER_STEP = 300;
66
- /** Hops of folded plumbing between two steps. */
67
25
  const MAX_FOLD_DEPTH = 7;
68
- /** Outgoing edges followed from one node; past this the node is a god function and the rest is announced. */
69
26
  const MAX_FANOUT = 80;
70
- /** Unresolved-reference scans (for effects) per request. */
71
27
  const MAX_EFFECT_SCANS = 800;
72
- /** Call sites read for conditions and arguments per request. */
73
28
  const MAX_WHEN_SITES = 1600;
74
- /** Call sites read for the callee as written (effect classification) per request — lookups on trees the guards parsed anyway. */
75
29
  const MAX_CALL_SITES = 4000;
76
- /** Longest effect-box label before its argument list is cut. */
77
30
  const MAX_EFFECT_LABEL = 56;
78
- /**
79
- * A component rendered by this many distinct parents is chrome (a top bar, a
80
- * button), not a screen's own behaviour. Higher than the Screens view's 3: that
81
- * one attributes navigations, where three screens sharing a link is already
82
- * chrome; this one decides what to WALK INTO, and a capture component shared
83
- * by three capture flows is the screen's whole body.
84
- */
85
31
  const SHARED_CHROME_MIN = 5;
86
- /** Edges walked forward. `contains` only function → function (a hook's handlers); `references` only function-as-value. */
87
32
  const WALK_KINDS = ['calls', 'instantiates', 'navigates', 'references', 'contains'];
88
- // =============================================================================
89
- // Classification
90
- // =============================================================================
91
33
  const JS_FAMILY = new Set(['javascript', 'typescript', 'tsx', 'jsx']);
92
34
  const NATIVE_FAMILY = new Set(['swift', 'objc', 'java', 'kotlin']);
93
- /**
94
- * JS → native is a bridge call; native → JS is an event. Anything else is one
95
- * family — unless the edge itself says which way it crosses: a synthesized
96
- * channel (`resolution/tier-synthesizer.ts`) marks a client's request onto its
97
- * own route `client→server`, a socket message back `server→client`, and a
98
- * queue job or a bus event as a `channel` whose landing is an arrival; a
99
- * server action called from a client file is marked `client→server` at
100
- * request time, by its directive.
101
- */
102
35
  function crossing(from, to, meta = {}) {
103
36
  if (meta.tier === 'client→server')
104
37
  return 'bridge';
@@ -112,37 +45,20 @@ function crossing(from, to, meta = {}) {
112
45
  return 'event';
113
46
  return null;
114
47
  }
115
- /**
116
- * A file that holds state: a store, a slice, a reducer. The graph has no
117
- * "store" kind — a Zustand action is an ordinary function node — so the file
118
- * is the evidence, and the legend says so.
119
- */
120
48
  exports.STORE_FILE = /(?:^|\/)(?:stores?|storage|state|slices?|reducers?)\/|\.(?:store|storage|slice|reducer)\.[cm]?[jt]sx?$/i;
121
49
  function isStoreFile(file) {
122
50
  return exports.STORE_FILE.test(file.replace(/\\/g, '/'));
123
51
  }
124
- /**
125
- * What a call is when it leaves the index, by the reference text alone — the
126
- * mobile app's table, kept for callers that have no language in hand. The
127
- * Steps walk itself classifies on the call AS WRITTEN with the language and
128
- * the project kind (`effects.ts`).
129
- */
130
52
  function effectCategory(referenceName) {
131
53
  return (0, effects_1.classifyEffect)({ text: referenceName, kind: 'calls' })?.category ?? null;
132
54
  }
133
- /** A method of a repository / DAO / mapper, by the container's name — the ORM boundary in a project that types it. */
134
55
  const REPOSITORY_CONTAINER = /(?:Repository|Repositories|Repo|Dao|DAO|Mapper|Store|Datastore)$/;
135
- /** Decorators that gate a handler: guards, interceptors, pipes, roles, auth, validation, transactions, throttles. */
136
56
  const GUARD_DECORATOR = /^(?:UseGuards|UseInterceptors|UsePipes|UseFilters|Roles|Auth|Public|Permissions|Throttle|SkipThrottle|Authorize|AllowAnonymous|PreAuthorize|PostAuthorize|Secured|RolesAllowed|PermitAll|DenyAll|Transactional|Validated|login_required|permission_required|user_passes_test|staff_member_required|require_http_methods|require_POST|require_GET|csrf_exempt|csrf_protect|ratelimit|throttle_classes|permission_classes|authentication_classes|cache_page|ValidateAntiForgeryToken|RequireAuthorization|RequireRole|RequireHttps|EnableCors|CrossOrigin|Cacheable|CacheEvict|CachePut|RateLimiter|CircuitBreaker|Retry|Timeout|Bulkhead|jwt_required|Security|ApiBearerAuth|ApiKeyAuth|BearerAuth|OAuth|Scopes|Roles|HasRole|HasPermission|Idempotent|Lock|Locked|Retryable|Recover)$|Guard|Interceptor|Pipe$|Filter$|Auth|Role|Permission|Throttle|Valid|Transaction|Csrf|Limit/i;
137
- /** Decorators that ARE the route, the DI wiring, or documentation — never a guard. */
138
57
  const NOT_A_GUARD = /^(?:Get|Post|Put|Patch|Delete|Head|Options|All|Controller|RestController|Resolver|Query|Mutation|Subscription|Injectable|Module|Api\w*|Http(?:Get|Post|Put|Patch|Delete|Head|Options)|Route|RequestMapping|\w+Mapping|Component|Service|Repository|Bean|Autowired|Override|Inject|Param|Body|Res|Req|Headers|Ip|HostParam|Session|UploadedFiles?|HttpCode|Header|Redirect|Render|Version|SerializeOptions|ResponseBody|ResponseStatus|Produces|Consumes|FromBody|FromRoute|FromQuery|FromForm|FromHeader|FromServices|Path|PathVariable|RequestParam|RequestBody|RequestHeader|ModelAttribute|Valid|Args|Context|Parent|Info|Field|ObjectType|InputType|ArgsType|Entity|Column|PrimaryGeneratedColumn|OneToMany|ManyToOne|Prop|Schema|Type|Expose|Exclude|Transform|IsString|IsNumber|IsOptional|Length|Min|Max|Deprecated|SuppressWarnings|FunctionalInterface|Slf4j|Data|Builder|Getter|Setter|NoArgsConstructor|AllArgsConstructor|RequiredArgsConstructor|Value|ConfigurationProperties|Configuration|EnableScheduling|SpringBootApplication|Profile|Order|Primary|Qualifier|Lazy|Scope|JsonProperty|JsonIgnore|Nullable|NonNull|NotNull|Size|Pattern|Email|Positive|router\.\w+|app\.\w+|api\.\w+|bp\.\w+|blueprint\.\w+|\w+\.(?:route|get|post|put|patch|delete))$/;
139
- /** Decorators that fire a function from outside a request: a job, an event, a message, a schedule. */
140
58
  const CONSUMER_DECORATOR = /^(?:Process|Processor|OnEvent|OnQueueEvent|OnWorkerEvent|OnGlobalQueueEvent|Cron|Interval|Timeout|MessagePattern|EventPattern|SubscribeMessage|Scheduled|Schedules?|KafkaListener|RabbitListener|RabbitSubscribe|RabbitRPC|JmsListener|SqsListener|SqsMessageHandler|EventListener|TransactionalEventListener|StreamListener|ServiceActivator|receiver|shared_task|task|periodic_task|app\.task|celery\.task|on|hears|command|event|listen|listener|Consume|Consumer|Subscribe|Subscriber|CapSubscribe|Function|FunctionName|TimerTrigger|QueueTrigger|ServiceBusTrigger|EventGridTrigger|BlobTrigger|CosmosDBTrigger|Job|job|Worker|worker|EventHandler|CommandHandler|QueryHandler|OnMessage|MessageHandler|GrpcMethod|GrpcStreamMethod|WebSocketGateway|dramatiq\.actor|actor|huey\.task|db_task|Signal|signal|hook|Hook|OnModuleInit|OnApplicationBootstrap|PostConstruct|PreDestroy|Bean|Startup|Shutdown)$/;
141
- /** The name of a decorator, before its arguments. */
142
59
  function decoratorName(text) {
143
60
  return text.replace(/\(.*$/s, '').trim();
144
61
  }
145
- /** The first string literal in a decorator's arguments — `'email'` of `@Process('email')`. */
146
62
  function decoratorLiteral(text) {
147
63
  const m = /\(\s*(['"`])((?:(?!\1).)*)\1/.exec(text);
148
64
  return m ? `'${m[2]}'` : null;
@@ -153,25 +69,18 @@ function isGuardDecorator(text) {
153
69
  return false;
154
70
  return GUARD_DECORATOR.test(name);
155
71
  }
156
- /** FastAPI: `dependencies=[Depends(auth), Depends(rate_limit)]` inside the route decorator. */
157
72
  function dependenciesIn(text) {
158
73
  const m = /dependencies\s*=\s*\[([^\]]*)\]/.exec(text);
159
74
  if (!m)
160
75
  return [];
161
76
  return m[1].split(/,(?![^()]*\))/).map((x) => x.trim()).filter(Boolean);
162
77
  }
163
- /** A trigger an edge carries in its metadata (a template binding), when it has one. */
164
78
  function siteTriggerOf(meta) {
165
79
  const t = meta.trigger;
166
80
  if (!t || typeof t !== 'object' || t.kind !== 'prop' || typeof t.name !== 'string')
167
81
  return null;
168
82
  return { kind: 'prop', name: t.name, of: typeof t.of === 'string' ? t.of : null };
169
83
  }
170
- /**
171
- * The string a Java / Kotlin return expression builds, when it starts with a
172
- * literal: `"owners/ownerDetails"`, `"redirect:/owners/" + owner.getId()` →
173
- * `redirect:/owners/${…}`. Null for anything else — a variable, a call.
174
- */
175
84
  function springViewString(expression) {
176
85
  let out = '';
177
86
  let rest = expression.trim();
@@ -205,36 +114,23 @@ async function buildSteps(cg, projectRoot, query) {
205
114
  const stats = cg.getStats();
206
115
  const index = { lastIndexedAt: cg.getLastIndexedAt() ?? null, edges: stats.edgeCount, files: stats.fileCount };
207
116
  const { anchor, ambiguous } = resolveAnchor(cg, query);
208
- // Route → where its code starts: the handler a resolver named, the page a
209
- // screen file exports, or the route itself standing in for an inline
210
- // handler (`route-roots.ts`) — and what kind of project this is, for the
211
- // words the viewer uses.
212
117
  const routes = cg.getNodesByKind('route');
213
118
  const roots = (0, route_roots_1.routeRoots)(cg, routes);
214
119
  const project = projectKind(routes, stats.edgesByKind?.navigates ?? 0);
215
120
  const reader = (0, when_1.createSiteReader)(cg, projectRoot, MAX_WHEN_SITES);
216
121
  const calls = (0, when_1.createSiteReader)(cg, projectRoot, MAX_CALL_SITES);
217
- /** The conditions a site runs under, structured — one read, joined where a string is wanted. */
218
122
  const guardsAt = (caller, site) => reader.guards(caller, site);
219
- /** The loops a site is written inside — a run of calls that happens once per item. */
220
123
  const loopsAt = (caller, site) => reader.loops(caller, site);
221
124
  const argsAt = (caller, site) => reader.args(caller, site);
222
125
  const withArgs = async (site, caller, at) => {
223
126
  const args = await argsAt(caller, at);
224
127
  return args === null ? site : { ...site, args };
225
128
  };
226
- /** The call as written at a site, and what it passes — one read for both. */
227
129
  const callAt = (caller, site) => calls.callSite(caller, site);
228
- /** A hop's position with its call's span and enclosing call, read from the tree; the bare position when unreadable. */
229
130
  const hopAt = async (caller, at, callee) => {
230
131
  const line = at.line ?? caller.startLine;
231
132
  const column = at.column ?? 0;
232
133
  const read = at.line ? await callAt(caller, { ...at, ...(callee ? { callee } : {}) }) : null;
233
- // The read must be THIS call. An inline handler's edges carry the ROUTE's
234
- // line (`router.post('/users/login', async (req, res) => {`), where the
235
- // only call is the registration itself — and taking its span would make
236
- // every call in the handler read as written inside it, and so as running
237
- // first. A miss is a bare position: no span to nest by, no `within`.
238
134
  const last = (n) => n.replace(/\([^()]*\)/g, '').split(/[.:]/).pop() ?? n;
239
135
  const usable = read !== null && (!callee || last(read.callee) === last(callee));
240
136
  if (!usable)
@@ -252,12 +148,6 @@ async function buildSteps(cg, projectRoot, query) {
252
148
  const column = at.column ?? 0;
253
149
  return { file: caller.filePath, line, column, end: { line, column }, within: null };
254
150
  };
255
- // The declared type of a receiver: `OwnerRepository owners` in a Spring
256
- // controller makes `owners.save` the database; `private readonly
257
- // usersService: UsersService` in a Nest controller says where
258
- // `this.usersService.findByEmail` goes. The index keeps the first in a
259
- // field's signature and nothing of the second, so the class body is read
260
- // from the tree at request time, once per class.
261
151
  const fileTypes = new Map();
262
152
  const classTypes = new Map();
263
153
  const receiverTypeFor = async (caller, callee) => {
@@ -275,8 +165,7 @@ async function buildSteps(cg, projectRoot, query) {
275
165
  if ((n.kind !== 'field' && n.kind !== 'property' && n.kind !== 'variable' && n.kind !== 'parameter') || !n.signature)
276
166
  continue;
277
167
  const sig = n.signature.replace(/\s+/g, ' ').trim();
278
- // `OwnerRepository owners`, `private final OwnerRepository owners`, `owners: OwnerRepository`, `val owners: OwnerRepository`.
279
- const typed = new RegExp(`(?:^|\\s)([A-Z][\\w<>,?. ]*?)\\s+${n.name}\\b`).exec(sig) ?? new RegExp(`\\b${n.name}\\s*:\\s*([A-Z][\\w<>,?. ]*)`).exec(sig);
168
+ const typed = new RegExp(`(?:^|\\s)([A-Z][\\w<>,?. ]*?)\\s+${(0, utils_1.escapeRegExp)(n.name)}\\b`).exec(sig) ?? new RegExp(`\\b${(0, utils_1.escapeRegExp)(n.name)}\\s*:\\s*([A-Z][\\w<>,?. ]*)`).exec(sig);
280
169
  if (typed && !types.has(n.name))
281
170
  types.set(n.name, typed[1].trim());
282
171
  }
@@ -293,12 +182,7 @@ async function buildSteps(cg, projectRoot, query) {
293
182
  }
294
183
  return types;
295
184
  };
296
- // Where a member call really goes, by the receiver's declared type: the
297
- // class named by the type, and its method of the call's name. Null when the
298
- // type names nothing in the index (an ORM's `Repository<Cat>`) — then the
299
- // call leaves the index, and the effect table says as what.
300
185
  const classByName = new Map();
301
- /** The class / interface / struct a declared type names in the index, or null for a library's. */
302
186
  const classOfType = async (type) => {
303
187
  const typeName = type.replace(/<.*$/, '').replace(/^[*&]+/, '').replace(/[?!]$/, '').split(/[.:]/).pop()?.trim() ?? '';
304
188
  if (!typeName || /^(?:string|number|boolean|any|unknown|object|void|String|Integer|Long|Boolean|int|long|bool|var|dynamic|Object|List|Map|Set|Array|Promise|Optional|Task|IEnumerable|Iterable)$/.test(typeName))
@@ -311,10 +195,6 @@ async function buildSteps(cg, projectRoot, query) {
311
195
  }
312
196
  return cls;
313
197
  };
314
- // Swift has no per-symbol imports: a type the project declares shadows the
315
- // SDK name the effect table keys on — IceCubesApp's `Notifications`
316
- // endpoint enum is not expo-notifications. An `extension Timer {}` declares
317
- // nothing, so it does not count.
318
198
  const projectTypes = new Map();
319
199
  const declaresSwiftType = async (callee) => {
320
200
  const root = callee.replace(/^(?:self|Self)\./, '').split(/[.(:<]/)[0] ?? '';
@@ -349,12 +229,6 @@ async function buildSteps(cg, projectRoot, query) {
349
229
  const members = cg.getNodesInFile(cls.filePath).filter((n) => (n.kind === 'method' || n.kind === 'function') && n.name === method && n.startLine >= cls.startLine && n.endLine <= cls.endLine);
350
230
  return members[0] ?? null;
351
231
  };
352
- /**
353
- * A name-match that the call as written disproves: the target is a method of
354
- * the CALLER's own class, but the call names a receiver that is not `this` —
355
- * and in the JS family a method of your own class cannot be called any other
356
- * way. Only there: `self.` is a convention elsewhere, not a rule.
357
- */
358
232
  const ownMethodWithoutReceiver = (caller, target, written) => {
359
233
  if (!JS_FAMILY.has(caller.language) || target.kind !== 'method')
360
234
  return false;
@@ -363,7 +237,6 @@ async function buildSteps(cg, projectRoot, query) {
363
237
  const container = (q) => q.replace(/[.:]+[^.:]*$/, '');
364
238
  return caller.filePath === target.filePath && container(caller.qualifiedName) === container(target.qualifiedName);
365
239
  };
366
- /** A method the walk cannot enter (an interface's, an ORM's) on a repository-shaped container. */
367
240
  const repositoryMethod = (target) => {
368
241
  if (target.kind !== 'method' && target.kind !== 'function')
369
242
  return false;
@@ -374,7 +247,6 @@ async function buildSteps(cg, projectRoot, query) {
374
247
  return false;
375
248
  return cg.getOutgoingEdgesFrom([target.id], WALK_KINDS).length === 0;
376
249
  };
377
- /** What runs before a route's handler: the middleware arguments at the registration, or the guard decorators on it. */
378
250
  const chainFor = async (route, root) => {
379
251
  const after = [];
380
252
  if (JS_FAMILY.has(route.language)) {
@@ -406,7 +278,6 @@ async function buildSteps(cg, projectRoot, query) {
406
278
  }
407
279
  return [...new Set(after)];
408
280
  };
409
- /** The request a route's handler serves, as its trigger; a Next page's own work fires from its load. */
410
281
  const requestTrigger = async (route, root) => {
411
282
  const { method, path } = (0, routes_1.splitRouteName)(route.name);
412
283
  if (method === null) {
@@ -417,7 +288,6 @@ async function buildSteps(cg, projectRoot, query) {
417
288
  const after = await chainFor(route, root);
418
289
  return { kind: 'request', name: method, of: path, in: basename(route.filePath), ...(after.length > 0 ? { after } : {}) };
419
290
  };
420
- /** A job, an event, a message or a schedule that fires a function, from its decorators. */
421
291
  const consumerTrigger = async (node) => {
422
292
  if (node.kind !== 'function' && node.kind !== 'method')
423
293
  return null;
@@ -434,18 +304,10 @@ async function buildSteps(cg, projectRoot, query) {
434
304
  }
435
305
  return null;
436
306
  };
437
- /**
438
- * The decision a site's innermost condition belongs to. The innermost guard
439
- * is the one decided AT the call — the ternary whose two arms return two
440
- * different routes — while the ones outside it are the context both arms
441
- * share, so it is the innermost that says which way this site went.
442
- */
443
307
  const decisionOf = (guards) => {
444
308
  const g = guards[guards.length - 1];
445
309
  if (!g || !g.branch)
446
310
  return null;
447
- // A one-sided guard (`if (!product) throw`) is a guard clause, not a
448
- // choice with two drawn ways; it keeps its condition on the line.
449
311
  if (g.form === 'guard')
450
312
  return null;
451
313
  return {
@@ -458,13 +320,6 @@ async function buildSteps(cg, projectRoot, query) {
458
320
  };
459
321
  const steps = new Map();
460
322
  const links = new Map();
461
- /**
462
- * What happens in each function, in the code's own order — the rail's
463
- * material, recorded by the SAME pass that makes the links so the two
464
- * readings can never hold different steps. Keyed by the function's node id,
465
- * then by the site's position and what it reaches: a helper folded from two
466
- * different steps is walked twice and must not be written twice.
467
- */
468
323
  const programs = new Map();
469
324
  const record = (fn, hop, guards, what, trigger = null, loops = []) => {
470
325
  let sites = programs.get(fn.id);
@@ -490,18 +345,6 @@ async function buildSteps(cg, projectRoot, query) {
490
345
  const chromeParents = new Map();
491
346
  const fileScopeRefs = new Map();
492
347
  const fileScopeUnresolved = new Map();
493
- /**
494
- * The spans of the calls that became effect steps, per function — and the
495
- * step a binding written inside one arrives from. `Alert.prompt('Add
496
- * Folder', …, [{ onPress: (name) => createBackgroundFolder(name) }])` is
497
- * two facts: the prompt is a device box, and the prompt's button FIRES the
498
- * handler — so the handler's line belongs to the prompt, not to the screen
499
- * the prompt is written on, which fires everything and says nothing. A site
500
- * is rewired only when its own trigger names the call (`onPress ·
501
- * Alert.prompt(…)`) and its position falls inside that call's span in the
502
- * same function; the innermost such span wins. An `onSubmit · useFormik(…)`
503
- * names no effect and stays where it was.
504
- */
505
348
  const firedSpans = new Map();
506
349
  const firedByEffect = (fnId, at, of) => {
507
350
  if (at.line === undefined)
@@ -532,9 +375,6 @@ async function buildSteps(cg, projectRoot, query) {
532
375
  const stepFor = (node, kind, depth, extra = {}) => {
533
376
  const existing = steps.get(node.id);
534
377
  if (existing) {
535
- // A listener the screen registers is a handler when first met, and the
536
- // native event's landing when the walk arrives from the other side —
537
- // the second is the fuller fact, and it names the event.
538
378
  if (existing.kind === 'trigger' && kind === 'event') {
539
379
  existing.kind = 'event';
540
380
  if (extra.event)
@@ -555,14 +395,10 @@ async function buildSteps(cg, projectRoot, query) {
555
395
  const routeRoot = isRoute ? (roots.get(node.id) ?? null) : null;
556
396
  const record = {
557
397
  id: node.id,
558
- // A route is a screen or an endpoint — except one reached across a
559
- // tier (`fetch('/api/users')` onto its own route), which is the crossing.
560
398
  kind: isRoute && kind !== 'bridge' ? 'screen' : kind,
561
399
  anchor: false,
562
400
  node: (0, wire_1.toNodeRef)(node),
563
401
  label: node.name,
564
- // A screen says its component, an endpoint its handler; a route the
565
- // graph bound to nothing says only where it is registered.
566
402
  sub: isRoute
567
403
  ? routeRoot === null
568
404
  ? basename(node.filePath)
@@ -588,13 +424,6 @@ async function buildSteps(cg, projectRoot, query) {
588
424
  steps.set(node.id, record);
589
425
  return record;
590
426
  };
591
- // One box per (function, category): `uploadARCapture` makes one network
592
- // call, three storage calls and three telemetry calls — three boxes, each
593
- // listing its calls, not seven. A reply is the exception: its identity is
594
- // the outcome, so `authUser` answering 200 or 401 is two boxes — each
595
- // line into them then carries its own condition on the picture, the
596
- // Screens view's idiom — and the sites whose status cannot be read share
597
- // one `response` box labelled by the call.
598
427
  const effectSub = (e, by) => [e.category, e.model, e.access, by.name].filter((x) => !!x).join(' · ');
599
428
  const effectStep = (by, ref, effect, depth, status = null) => {
600
429
  const category = effect.category;
@@ -606,7 +435,6 @@ async function buildSteps(cg, projectRoot, query) {
606
435
  e.apis.push(ref.referenceName);
607
436
  existing.label = `${e.apis[0]} +${e.apis.length - 1}`;
608
437
  }
609
- // Several models behind one box: list them; several accesses: say both.
610
438
  if (effect.model && e.model !== effect.model) {
611
439
  const models = new Set((e.model ?? '').split(', ').filter(Boolean));
612
440
  models.add(effect.model);
@@ -645,14 +473,6 @@ async function buildSteps(cg, projectRoot, query) {
645
473
  steps.set(id, record);
646
474
  return record;
647
475
  };
648
- /**
649
- * How a Spring MVC handler answers: each `return` of a view name — a string,
650
- * or a same-class constant holding one (`VIEWS_OWNER_CREATE_OR_UPDATE_FORM`)
651
- * — renders that view (200); `"redirect:/owners/" + id` sends a 302 and
652
- * `"forward:/x"` hands the request on. Only for a mapped method of a class
653
- * that renders views: a `@RestController` or `@ResponseBody` method returns
654
- * its body, and a returned value that is not a literal is not guessed at.
655
- */
656
476
  const springMvcReplies = async (node) => {
657
477
  if ((node.language !== 'java' && node.language !== 'kotlin') || node.kind !== 'method')
658
478
  return [];
@@ -677,23 +497,15 @@ async function buildSteps(cg, projectRoot, query) {
677
497
  }
678
498
  return out;
679
499
  };
680
- /** One effect site: the call as written, what it passes, when, what fires it, and — for a response — the status. */
681
- const effectLink = async (step, fold, ref, trigger, fallbackArgs = null, requireReceiver = false,
682
- /** A site that is no call — a handler's `return "redirect:/x"` — arrives already classified. */
683
- preset = null) => {
500
+ const effectLink = async (step, fold, ref, trigger, fallbackArgs = null, requireReceiver = false, preset = null) => {
684
501
  const at = { line: ref.line, column: ref.column };
685
502
  const site = preset ? null : await callAt(fold.node, { ...at, callee: ref.referenceName });
686
- // The site read must be THIS call: its last segment is the reference's.
687
503
  const last = (n) => n.replace(/\([^()]*\)/g, '').split(/[.:]/).pop() ?? n;
688
504
  const usable = !!site && site.callee !== '' && last(site.callee) === last(ref.referenceName);
689
505
  const text = usable ? site.callee : ref.referenceName;
690
506
  if (requireReceiver && !/[.:>]/.test(text))
691
507
  return false;
692
508
  const args = usable ? site.args : fallbackArgs;
693
- // The receiver's declared type counts only when the call leaves the
694
- // index through it: a library's `Repository<Cat>`, or the project's own
695
- // `OwnerRepository` interface whose `save` comes from Spring Data — never
696
- // a project class that declares the method, which is a place to walk into.
697
509
  let effect = preset?.effect ?? null;
698
510
  if (!preset) {
699
511
  const declared = await receiverTypeFor(fold.node, text);
@@ -710,19 +522,11 @@ async function buildSteps(cg, projectRoot, query) {
710
522
  }
711
523
  if (effect === null)
712
524
  return false;
713
- // A reply's status, read before its box exists — the box is per outcome.
714
- // `NextResponse.json(user, { status: 201 })`: the code sits in an object
715
- // the abbreviation reduced to its keys; the site reader kept it. And a
716
- // body-sending reply that sets none is a 200, so a success has a box of
717
- // its own beside the 401's.
718
525
  const status = preset
719
526
  ? preset.status
720
527
  : effect.category === 'response'
721
528
  ? ((0, effects_1.responseStatus)(text, args, ref.referenceKind) ?? (usable && typeof site.status === 'number' ? site.status : null) ?? (0, effects_1.implicitResponseStatus)(text))
722
529
  : null;
723
- // What fires this call, read before its box is made: a call bound inside
724
- // ANOTHER effect's arguments — the axios.delete in a confirm dialog's
725
- // button — hangs off that box, one step deeper, not off the screen.
726
530
  const fired = trigger ?? (await triggerAt(fold.node, at));
727
531
  const from = fired?.of ? (firedByEffect(fold.node.id, at, fired.of) ?? step) : step;
728
532
  const target = effectStep(fold.node, { referenceName: text, line: ref.line }, effect, from.depth + 1, status);
@@ -738,9 +542,6 @@ async function buildSteps(cg, projectRoot, query) {
738
542
  const effectDecision = decisionOf(guards);
739
543
  if (effectDecision)
740
544
  wireSite.decision = effectDecision;
741
- // Where the call is written HERE — in this function, at this line. The
742
- // rail places the step by it; the tree's row order uses the hop out of the
743
- // step's root, which is the same position when nothing was folded.
744
545
  const local = {
745
546
  file: fold.node.filePath,
746
547
  line: site?.span?.start.line ?? ref.line,
@@ -748,7 +549,6 @@ async function buildSteps(cg, projectRoot, query) {
748
549
  end: site?.span?.end ?? { line: ref.line, column: ref.column ?? 0 },
749
550
  within: site?.within ?? null,
750
551
  };
751
- // This call's own span, for the bindings written inside its arguments.
752
552
  if (usable && site?.span) {
753
553
  const list = firedSpans.get(fold.node.id) ?? [];
754
554
  list.push({ start: { line: local.line, column: local.column }, end: local.end, step: target });
@@ -772,8 +572,6 @@ async function buildSteps(cg, projectRoot, query) {
772
572
  const id = `${from.id} ${to.id} ${viaKey}`;
773
573
  const when = whens.filter((w, i) => w && whens.indexOf(w) === i).join(' && ');
774
574
  const stamped = { ...site, when, ...(trigger ? { trigger } : {}) };
775
- // A `contains` edge is how a nested handler is FOUND, not a place it is
776
- // called from: its row stays only while no call site has been seen.
777
575
  const structural = (s) => s.text.startsWith('defines ');
778
576
  const existing = links.get(id);
779
577
  if (existing) {
@@ -781,8 +579,6 @@ async function buildSteps(cg, projectRoot, query) {
781
579
  return id;
782
580
  if (!structural(stamped) && existing.sites.every(structural))
783
581
  existing.sites.length = 0;
784
- // One statement, two references (`res.status(201)` and its `.json(…)`):
785
- // the outer call is the site, the inner one folds into it.
786
582
  const sameLine = existing.sites.findIndex((s) => s.file === site.file && s.line === site.line);
787
583
  if (sameLine < 0)
788
584
  existing.sites.push(stamped);
@@ -819,14 +615,10 @@ async function buildSteps(cg, projectRoot, query) {
819
615
  to.trigger = trigger;
820
616
  return id;
821
617
  };
822
- /** What fires a site, with the function it is written in. */
823
618
  const triggerAt = async (caller, at) => {
824
619
  const t = await reader.trigger(caller, at);
825
620
  return t ? { ...t, in: caller.name } : null;
826
621
  };
827
- // The anchor: a screen keeps its kind and explores from its component; an
828
- // endpoint says the request that fires it and what runs before its handler;
829
- // a function says the job, event or schedule written on it.
830
622
  const first = stepFor(anchor, 'anchor', 0);
831
623
  first.anchor = true;
832
624
  if (anchor.kind === 'route') {
@@ -839,15 +631,6 @@ async function buildSteps(cg, projectRoot, query) {
839
631
  if (t)
840
632
  first.trigger = t;
841
633
  }
842
- // A screen's picture is laid out by REGION — the part of the screen each
843
- // step belongs to. The evidence is the walk's own: a step reached out of the
844
- // anchor descends through the fold's chain, whose FIRST node is the
845
- // top-level component (or hook) of the screen's tree; a chain of nothing is
846
- // a call written in the screen body itself; and a step reached from any
847
- // other step belongs where its first-reaching parent does. First reach wins,
848
- // as `first` does — a shared store is one box, in the region that got there
849
- // first, and every other region's way in is a link. An endpoint or a
850
- // function reads in the code's order and carries none of this.
851
634
  const regions = first.kind === 'screen' && !first.screen?.endpoint;
852
635
  const regionOf = (from, chain) => {
853
636
  if (!regions)
@@ -860,35 +643,24 @@ async function buildSteps(cg, projectRoot, query) {
860
643
  return { id: from.root?.id ?? from.id, label: from.root?.name ?? from.label };
861
644
  };
862
645
  const queue = [first];
863
- /** Steps whose exploration has been queued — each is explored once, from the first row it appears on. */
864
646
  const explored = new Set([first.id]);
865
647
  while (queue.length > 0) {
866
648
  const step = queue.shift();
867
649
  if (step.root === null)
868
650
  continue;
869
- // Another screen is a chapter of its own: the Screens view draws the way
870
- // between screens, and a picture that walked on through Home would be the
871
- // whole app. Drawn as a boundary, entered on request.
872
- // An endpoint reached across a tier is the same kind of boundary: the
873
- // request's own picture starts at its handler, entered on request.
874
651
  if ((step.kind === 'screen' || (step.kind === 'bridge' && step.node?.kind === 'route')) && !step.anchor && !through) {
875
652
  step.cut = 'screen';
876
653
  continue;
877
654
  }
878
- // A native event that lands in a COMPONENT — the capture overlay taking
879
- // `onCaptureProgress` — lands on another screen's body: its picture is
880
- // that screen's, not this one's. A boundary too, entered on request.
881
655
  if (step.kind === 'event' && !step.anchor && !through && (0, route_roots_1.looksLikeComponent)(step.root)) {
882
656
  step.cut = 'component';
883
657
  continue;
884
658
  }
885
659
  if (step.depth >= depthCap) {
886
- // Something to explore, and no room in the picture for it.
887
660
  if (cg.getOutgoingEdgesFrom([step.root.id], WALK_KINDS).length > 0)
888
661
  step.cut = 'depth';
889
662
  continue;
890
663
  }
891
- // Breadth-first through the plumbing until the next steps.
892
664
  const visited = new Set([step.root.id]);
893
665
  let frontier = [{ node: step.root, chain: [], whens: [], first: null }];
894
666
  for (let hop = 0; hop <= MAX_FOLD_DEPTH && frontier.length > 0; hop++) {
@@ -901,22 +673,8 @@ async function buildSteps(cg, projectRoot, query) {
901
673
  list.push(e);
902
674
  bySource.set(e.source, list);
903
675
  }
904
- // `const Memoized = memo(CaptureComponent)`: the wrapper is a component
905
- // node with no edges of its own — the inner component is referenced
906
- // from the FILE scope, at the wrapper's line. Lend the wrapper those
907
- // references, so the screen that renders `<Memoized/>` walks on into
908
- // what the component does.
909
- // The same for a value a registration is written inside — `const
910
- // worker = new Worker('q', async (job) => { … })`: the arrow's calls
911
- // belong to the file scope and the constant spans them; a queue job
912
- // lands on the constant, and the walk goes on into what the handler does.
913
676
  for (const fold of frontier) {
914
677
  const value = fold.node.kind === 'constant' || fold.node.kind === 'variable';
915
- // Edges the walk would follow as BEHAVIOUR. `const signIn =
916
- // validatedAction(schema, async (data) => { … })` holds a plain
917
- // `references` edge to its schema and nothing else: counting that as
918
- // "it has edges of its own" left the whole handler body unlent, and the
919
- // picture showed one call out of nine.
920
678
  const behaviour = (bySource.get(fold.node.id) ?? []).filter((e) => e.kind !== 'references' || e.metadata?.fnRef === true).length;
921
679
  if ((fold.node.kind !== 'component' && !value) || behaviour > 0)
922
680
  continue;
@@ -931,17 +689,12 @@ async function buildSteps(cg, projectRoot, query) {
931
689
  for (const e of list)
932
690
  targetIds.add(e.target);
933
691
  const targets = targetIds.size === 0 ? new Map() : cg.getNodesByIds([...targetIds]);
934
- // Hubs and chrome are judged on the nodes about to be entered.
935
692
  const unknownFanIn = [...targetIds].filter((id) => !fanIn.has(id));
936
693
  if (unknownFanIn.length > 0)
937
694
  for (const [id, n] of cg.getFanIn(unknownFanIn))
938
695
  fanIn.set(id, n);
939
696
  for (const fold of frontier) {
940
- // A call a synthesized channel already follows — the `fetch` that
941
- // reaches its own route, the `queue.add` its consumer picks up — is
942
- // the crossing, not also a call outside the index.
943
697
  const channelLines = new Set();
944
- /** Per line, the last segment of each call a channel follows there (`add` of `emailQueue.add`). */
945
698
  const channelCalls = new Map();
946
699
  for (const e of bySource.get(fold.node.id) ?? []) {
947
700
  const m = e.metadata;
@@ -954,10 +707,6 @@ async function buildSteps(cg, projectRoot, query) {
954
707
  channelCalls.set(e.line, set);
955
708
  }
956
709
  }
957
- // Effects made by this node, folded or not. A value a handler is
958
- // written inside (`const authUser = asyncHandler(async (req, res) =>
959
- // …)`) made none itself — the arrow's calls belong to the file scope —
960
- // so it is lent the file's, within its lines, as its call edges are.
961
710
  if (effectScans < MAX_EFFECT_SCANS) {
962
711
  effectScans++;
963
712
  let refs = [];
@@ -976,7 +725,6 @@ async function buildSteps(cg, projectRoot, query) {
976
725
  continue;
977
726
  await effectLink(step, fold, { referenceName: ref.referenceName, referenceKind: ref.referenceKind, line: ref.line, column: ref.column }, null);
978
727
  }
979
- // A Spring MVC handler answers by what it returns, which is no call.
980
728
  for (const reply of await springMvcReplies(fold.node)) {
981
729
  await effectLink(step, fold, { referenceName: reply.text, referenceKind: 'calls', line: reply.line, column: reply.column }, null, null, false, { effect: { category: 'response' }, status: reply.status });
982
730
  }
@@ -987,10 +735,6 @@ async function buildSteps(cg, projectRoot, query) {
987
735
  if (e.kind === 'references')
988
736
  return meta.fnRef === true;
989
737
  if (e.kind === 'contains') {
990
- // A function's nested handlers; and, when the walk STARTS at a
991
- // class (a ViewSet, a class-based view bound to a route), its
992
- // methods — never a class met on the way, whose methods are not
993
- // what the caller reached.
994
738
  const t = targets.get(e.target);
995
739
  const fromFunction = fold.node.kind === 'function' || fold.node.kind === 'method';
996
740
  const fromRootClass = fold.node.kind === 'class' && fold.chain.length === 0 && fold.node.id === step.root?.id;
@@ -1010,17 +754,8 @@ async function buildSteps(cg, projectRoot, query) {
1010
754
  if (!found || found.kind === 'file')
1011
755
  continue;
1012
756
  const meta = (e.metadata ?? {});
1013
- // A member call the index kept only the last segment of (`create`
1014
- // for `prisma.user.create`) resolves by name alone — a guess, and
1015
- // often the wrong one. The call AS WRITTEN decides first: an effect
1016
- // is drawn as one and the guessed edge is not walked. A call through
1017
- // a project-made value (`client.post` on the axios instance) is the
1018
- // same case with the constant as the target.
1019
757
  let target = targets.get(e.target);
1020
758
  let retargeted = false;
1021
- // `api.get('/users')` resolves to the `api` constant — and
1022
- // `this.audioQueue.add('transcode')` to some `add` by name — AND,
1023
- // on the same line, a channel follows the call: the channel is the story.
1024
759
  if (typeof meta.channel !== 'string' && e.kind === 'calls' && channelLines.has(e.line ?? -1)) {
1025
760
  const written = typeof meta.refName === 'string' ? meta.refName : target.name;
1026
761
  const last = written.split(/[.:]/).pop() ?? written;
@@ -1030,10 +765,6 @@ async function buildSteps(cg, projectRoot, query) {
1030
765
  if (e.kind === 'calls' && typeof meta.synthesizedBy !== 'string' && e.provenance !== 'heuristic') {
1031
766
  const refName = typeof meta.refName === 'string' ? meta.refName : target.name;
1032
767
  const bare = !refName.includes('.');
1033
- // A member call whose receiver is declared as a type the index
1034
- // holds no class for (`DataStore<UserPreferences>`) leaves the
1035
- // index too, whatever name-matched — an `updateData` on a test
1036
- // double, say.
1037
768
  let external = false;
1038
769
  if (!bare && target.kind !== 'constant' && target.kind !== 'variable') {
1039
770
  const declared = await receiverTypeFor(fold.node, refName);
@@ -1043,8 +774,6 @@ async function buildSteps(cg, projectRoot, query) {
1043
774
  const drawn = await effectLink(step, fold, { referenceName: refName, referenceKind: 'calls', line: e.line ?? fold.node.startLine, column: e.column }, null, null, true);
1044
775
  if (drawn)
1045
776
  continue;
1046
- // Not an effect: does the receiver's declared type say where the
1047
- // call goes? A class in the index wins over the name-only guess.
1048
777
  if (bare) {
1049
778
  const written = await callAt(fold.node, { line: e.line, column: e.column, callee: refName });
1050
779
  if (written && /[.:]/.test(written.callee) && (written.callee.split(/[.:]/).pop() ?? '') === refName) {
@@ -1054,12 +783,6 @@ async function buildSteps(cg, projectRoot, query) {
1054
783
  retargeted = true;
1055
784
  }
1056
785
  else if (real === null && ownMethodWithoutReceiver(fold.node, target, written.callee)) {
1057
- // `crypto.createHash('sha256').update(…)` in a method of a
1058
- // class that happens to have an `update`: the index kept
1059
- // only `update` and matched it by name. In this family a
1060
- // method of your own class is written `this.update(…)`, so
1061
- // a receiver that is not `this` proves the guess wrong. The
1062
- // call leaves the index — say nothing rather than the wrong thing.
1063
786
  continue;
1064
787
  }
1065
788
  }
@@ -1068,10 +791,6 @@ async function buildSteps(cg, projectRoot, query) {
1068
791
  }
1069
792
  if (target.id === fold.node.id)
1070
793
  continue;
1071
- // A production walk never enters a test double: an interface's
1072
- // dispatch into `TestUserDataRepository`, or a `DataStore` name-matched
1073
- // to the in-memory one, is the test suite's story. Judged after the
1074
- // call as written had its chance to be an effect.
1075
794
  if (!fromTest && (0, query_utils_1.isTestPath)(target.filePath))
1076
795
  continue;
1077
796
  const site = {
@@ -1080,18 +799,9 @@ async function buildSteps(cg, projectRoot, query) {
1080
799
  text: siteText(e, meta, target),
1081
800
  when: '',
1082
801
  };
1083
- // What fires this hop, when the site is written under an event:
1084
- // the JSX prop, the `on*` option, the runs-later call. Read for
1085
- // every call-shaped hop, so a store action or an effect fired by
1086
- // a tap says so on its link too.
1087
802
  const isCall = e.kind === 'calls' || e.kind === 'instantiates' || (e.kind === 'references' && meta.fnRef === true);
1088
- // An Angular template's `(click)` binding rides on its edge: the
1089
- // template is a file of its own, not the source at `e.line`.
1090
803
  const carried = siteTriggerOf(meta);
1091
804
  const trigger = carried ? { ...carried, in: fold.node.name } : isCall ? await triggerAt(fold.node, { line: e.line, column: e.column }) : null;
1092
- // A server action, by its directive: a function in a `'use server'`
1093
- // file (or opening with the directive) called from a file that is
1094
- // not — the call crosses to the server, whatever the import says.
1095
805
  if (e.provenance !== 'heuristic' &&
1096
806
  (e.kind === 'calls' || (e.kind === 'references' && meta.fnRef === true)) &&
1097
807
  (target.kind === 'function' || target.kind === 'method') &&
@@ -1103,7 +813,6 @@ async function buildSteps(cg, projectRoot, query) {
1103
813
  meta.channel = 'server-action';
1104
814
  }
1105
815
  }
1106
- // What kind of step, if any, this edge arrives at.
1107
816
  let kind = null;
1108
817
  let linkKind = 'calls';
1109
818
  const extra = {};
@@ -1112,11 +821,6 @@ async function buildSteps(cg, projectRoot, query) {
1112
821
  linkKind = 'navigates';
1113
822
  }
1114
823
  else {
1115
- // A language change under the code is a step only on evidence: a
1116
- // bridge resolver's edge (`bridge`, or a framework resolution), or
1117
- // a synthesized channel's. A plain name-matched call across the
1118
- // families (`arr.flat()` landing on a Swift `flat`) is noise, and
1119
- // is neither drawn nor walked.
1120
824
  const cross = crossing(fold.node.language, target.language, meta);
1121
825
  const evidenced = e.provenance === 'heuristic' || meta.bridge === 'react-native' || meta.resolvedBy === 'framework' || meta.channel === 'server-action';
1122
826
  if (cross !== null && !evidenced)
@@ -1134,20 +838,12 @@ async function buildSteps(cg, projectRoot, query) {
1134
838
  else if ((target.kind === 'function' || target.kind === 'method') &&
1135
839
  isStoreFile(target.filePath) &&
1136
840
  !isStoreFile(fold.node.filePath)) {
1137
- // A store action fired straight from a tap stays a store
1138
- // action; the tap is on its link.
1139
841
  kind = 'store';
1140
842
  linkKind = 'store';
1141
843
  }
1142
844
  else if ((target.kind === 'function' || target.kind === 'method') &&
1143
845
  !(0, route_roots_1.looksLikeComponent)(target) &&
1144
846
  ((e.kind === 'references' && meta.fnRef === true) || trigger !== null)) {
1145
- // A handler: a function passed as a value (`onPress={handleX}`,
1146
- // `addListener('x', handleX)`), or one called from under an
1147
- // event binding (`onPress={() => handleLogin(values)}`,
1148
- // `useFormik({ onSubmit: (v) => handleLogin(v) })`). A
1149
- // component passed as a value (`memo(CaptureComponent)`) is a
1150
- // render hop and folds like one.
1151
847
  kind = 'trigger';
1152
848
  linkKind = 'handler';
1153
849
  if (trigger)
@@ -1162,9 +858,6 @@ async function buildSteps(cg, projectRoot, query) {
1162
858
  if (a.kind === null)
1163
859
  continue;
1164
860
  const at = { line: a.e.line, column: a.e.column };
1165
- // A binding written inside an effect call's arguments — the dialog's
1166
- // `onPress` — arrives from that box, not from the step that owns
1167
- // the fold: the prompt fires it.
1168
861
  const firedBy = a.trigger?.of ? firedByEffect(fold.node.id, at, a.trigger.of) : null;
1169
862
  const from = firedBy ?? step;
1170
863
  const fresh = !steps.has(a.target.id);
@@ -1178,11 +871,6 @@ async function buildSteps(cg, projectRoot, query) {
1178
871
  }
1179
872
  const guards = await guardsAt(fold.node, at);
1180
873
  const when = (0, branch_guards_1.guardLabel)(guards);
1181
- // A call-shaped hop says what it passes; a navigation already says
1182
- // its href, a handler binding and a native event channel pass
1183
- // nothing. A hop over a synthesized channel is a call in the source
1184
- // — `fetch('/api/users', {…})`, `emailQueue.add('welcome', {…})` —
1185
- // and its site reads as written.
1186
874
  let site = a.site;
1187
875
  if (typeof a.meta.channel === 'string' && a.meta.channel !== 'server-action') {
1188
876
  const written = await callAt(fold.node, at);
@@ -1191,15 +879,9 @@ async function buildSteps(cg, projectRoot, query) {
1191
879
  else if (a.linkKind === 'bridge' ||
1192
880
  a.linkKind === 'store' ||
1193
881
  a.linkKind === 'calls' ||
1194
- // A handler BOUND passes nothing (`onPress={handleX}`), but a
1195
- // handler CALLED from under a binding is a call like any other —
1196
- // and `tryCatchSync(onClosePress)`'s argument is the whole answer
1197
- // to what a wrapper wraps.
1198
882
  (a.linkKind === 'handler' && (a.e.kind === 'calls' || a.e.kind === 'instantiates'))) {
1199
883
  site = await withArgs(a.site, fold.node, at);
1200
884
  }
1201
- // Where this step is first reached from: the hop out of the root
1202
- // this fold descends from, else this site — its position orders the row.
1203
885
  const isCallHop = a.e.kind === 'calls' || a.e.kind === 'instantiates' || a.e.kind === 'navigates';
1204
886
  const local = isCallHop ? await hopAt(fold.node, at, a.target.name) : pointHop(fold.node, at);
1205
887
  const hop = fold.first ?? local;
@@ -1221,15 +903,6 @@ async function buildSteps(cg, projectRoot, query) {
1221
903
  if (a.kind !== null)
1222
904
  continue;
1223
905
  const { e, target, meta } = a;
1224
- // A call through a VALUE the effect table knows — `client.post` on
1225
- // the axios instance the project made itself resolves to the
1226
- // `client` constant, not to anything outside the index. The call
1227
- // text is the evidence: the call is the effect, the constant is not
1228
- // a place to walk into.
1229
- // A thrown exception the framework answers with (`throw new
1230
- // NotFoundException(…)` on a class the project defines) is a
1231
- // response, not a place to walk into; a repository's method the
1232
- // walk cannot enter (an interface's, the ORM's) is the database.
1233
906
  if (e.kind === 'instantiates' && target.kind === 'class') {
1234
907
  if (await effectLink(step, fold, { referenceName: target.name, referenceKind: 'instantiates', line: e.line ?? fold.node.startLine, column: e.column }, a.trigger))
1235
908
  continue;
@@ -1240,7 +913,6 @@ async function buildSteps(cg, projectRoot, query) {
1240
913
  if (await effectLink(step, fold, { referenceName: api, referenceKind: 'calls', line: e.line ?? fold.node.startLine, column: e.column }, a.trigger))
1241
914
  continue;
1242
915
  }
1243
- // Already a step, reached here by a plain call: a link, not a fold.
1244
916
  const known = steps.get(target.id);
1245
917
  if (known) {
1246
918
  if (known.id !== step.id) {
@@ -1256,7 +928,6 @@ async function buildSteps(cg, projectRoot, query) {
1256
928
  }
1257
929
  continue;
1258
930
  }
1259
- // Plumbing: fold it and keep walking, unless it is a dead end.
1260
931
  if (visited.has(target.id))
1261
932
  continue;
1262
933
  if ((fanIn.get(target.id) ?? 0) >= wire_1.HUB_THRESHOLD) {
@@ -1276,8 +947,6 @@ async function buildSteps(cg, projectRoot, query) {
1276
947
  const guards = await guardsAt(fold.node, at);
1277
948
  const local = e.kind === 'calls' || e.kind === 'instantiates' ? await hopAt(fold.node, at, target.name) : pointHop(fold.node, at);
1278
949
  const first = fold.first ?? local;
1279
- // The helper is drawn where it is CALLED: its own records are its
1280
- // body, and this is the site the rail nests them under.
1281
950
  record(fold.node, local, guards, { into: target.id }, a.trigger, await loopsAt(fold.node, at));
1282
951
  next.push({ node: target, chain: [...fold.chain, target], whens: [...fold.whens, (0, branch_guards_1.guardLabel)(guards)], first });
1283
952
  }
@@ -1285,9 +954,6 @@ async function buildSteps(cg, projectRoot, query) {
1285
954
  frontier = next;
1286
955
  }
1287
956
  }
1288
- // An effect box with ONE call behind it says what that call passes —
1289
- // `axios.post('/auth/login', { email, password })` is the fact a reader
1290
- // scans for; several calls list themselves in the panel instead.
1291
957
  const sitesByStep = new Map();
1292
958
  for (const l of links.values()) {
1293
959
  const list = sitesByStep.get(l.to) ?? [];
@@ -1298,10 +964,6 @@ async function buildSteps(cg, projectRoot, query) {
1298
964
  if (step.kind !== 'effect' || !step.effect)
1299
965
  continue;
1300
966
  const sites = sitesByStep.get(step.id) ?? [];
1301
- // A response box is one outcome of the endpoint's contract: its status,
1302
- // when literal, is its label (one per box by construction); the rows say
1303
- // when. The box of unreadable statuses holds none and is labelled by its
1304
- // call below.
1305
967
  if (step.effect.category === 'response') {
1306
968
  const statuses = [...new Set(sites.map((s) => s.status).filter((x) => typeof x === 'number'))].sort((a, b) => a - b);
1307
969
  if (statuses.length > 0) {
@@ -1317,10 +979,6 @@ async function buildSteps(cg, projectRoot, query) {
1317
979
  const label = `${step.effect.api}(${sites[0].args})`;
1318
980
  step.label = label.length > MAX_EFFECT_LABEL ? `${label.slice(0, MAX_EFFECT_LABEL - 2)}…)` : label;
1319
981
  }
1320
- // A row reads in the code's order: by the position of the hop that first
1321
- // reached each step, a hop written inside another site's arguments before
1322
- // that site — `generateToken(…)` in `res.json({ token: generateToken(…) })`
1323
- // signs the token before the 200 is sent, so it comes first.
1324
982
  const byDepth = new Map();
1325
983
  for (const s of steps.values())
1326
984
  byDepth.set(s.depth, [...(byDepth.get(s.depth) ?? []), s]);
@@ -1331,10 +989,6 @@ async function buildSteps(cg, projectRoot, query) {
1331
989
  });
1332
990
  }
1333
991
  const ordered = [...steps.values()].sort((a, b) => a.depth - b.depth || (a.order ?? 0) - (b.order ?? 0) || a.id.localeCompare(b.id));
1334
- // The second reading: the same steps in the code's order. A step the walk
1335
- // ENTERED reads on into its own body; a boundary (another screen, an
1336
- // endpoint across a tier) does not — it is a chapter of its own, exactly as
1337
- // on the picture.
1338
992
  const nodesById = new Map();
1339
993
  for (const s of steps.values())
1340
994
  if (s.root)
@@ -1360,8 +1014,6 @@ async function buildSteps(cg, projectRoot, query) {
1360
1014
  steps: ordered.map(({ root: _root, first: _first, ...step }) => step),
1361
1015
  links: [...links.values()].sort((a, b) => a.id.localeCompare(b.id)),
1362
1016
  program,
1363
- // A screen is a set of handlers with no order between them; anything with a
1364
- // body — a handler, an endpoint, any function — reads in the code's order.
1365
1017
  defaultView: program !== null && !(first.kind === 'screen' && !first.screen?.endpoint) ? 'order' : 'tree',
1366
1018
  depth: depthCap,
1367
1019
  limit,
@@ -1371,14 +1023,6 @@ async function buildSteps(cg, projectRoot, query) {
1371
1023
  timing: { elapsedMs: Date.now() - started },
1372
1024
  };
1373
1025
  }
1374
- // =============================================================================
1375
- // Helpers
1376
- // =============================================================================
1377
- /**
1378
- * The anchor: `anchor=<id>`, or `symbol=<name>` resolved to the most
1379
- * screen-like symbol of that name — a route first, then a component or
1380
- * function, then a method — with the rest reported as `ambiguous`.
1381
- */
1382
1026
  function resolveAnchor(cg, query) {
1383
1027
  const id = query.get('anchor');
1384
1028
  if (id !== null && id.trim() !== '') {
@@ -1400,14 +1044,14 @@ function resolveAnchor(cg, query) {
1400
1044
  throw (0, respond_1.notFound)(`Nothing in this index is named "${name}".`, 'Try the search box; names are matched exactly.');
1401
1045
  return { anchor, ambiguous: matches.slice(1, 9).map(wire_1.toNodeRef) };
1402
1046
  }
1403
- /** How many distinct parents render this node as a JSX child. Memoised per request. */
1404
1047
  function renderParents(cg, node, memo) {
1405
1048
  let parents = memo.get(node.id);
1406
1049
  if (parents === undefined) {
1407
1050
  const incoming = cg.getIncomingEdgesTo([node.id], ['calls']);
1408
1051
  const sources = new Set();
1409
1052
  for (const e of incoming) {
1410
- if (e.metadata?.synthesizedBy === 'jsx-render')
1053
+ if (e.metadata?.synthesizedBy === 'jsx-render' &&
1054
+ cg.getNode(e.source)?.kind !== 'file')
1411
1055
  sources.add(e.source);
1412
1056
  }
1413
1057
  parents = sources.size;
@@ -1415,15 +1059,9 @@ function renderParents(cg, node, memo) {
1415
1059
  }
1416
1060
  return parents;
1417
1061
  }
1418
- /** A component rendered by several distinct parents is chrome. */
1419
1062
  function isSharedChrome(cg, component, memo) {
1420
1063
  return renderParents(cg, component, memo) >= SHARED_CHROME_MIN;
1421
1064
  }
1422
- /**
1423
- * What kind of project the picture is of, by what its routes are: endpoints
1424
- * (`POST /users`) make an API; screens with navigation between them make an
1425
- * app; both — pages and the endpoints behind them — make a web app.
1426
- */
1427
1065
  function projectKind(routes, navigates) {
1428
1066
  let endpoints = 0;
1429
1067
  let pages = 0;
@@ -1432,7 +1070,6 @@ function projectKind(routes, navigates) {
1432
1070
  endpoints++;
1433
1071
  else if (r.name.startsWith('/')) {
1434
1072
  pages++;
1435
- // A Next page is a web page whatever else the index holds.
1436
1073
  if ((0, nextjs_1.nextRouteForFile)(r.filePath)?.kind === 'page')
1437
1074
  return 'web';
1438
1075
  }
@@ -1445,14 +1082,6 @@ function basename(p) {
1445
1082
  const s = posix(p);
1446
1083
  return s.slice(s.lastIndexOf('/') + 1);
1447
1084
  }
1448
- /**
1449
- * Function-as-value references — and, for a value, calls — made at a file's
1450
- * top level within a node's lines: what `const Memoized = memo(CaptureComponent)`
1451
- * leaves behind (the reference belongs to the file scope, the wrapper node
1452
- * spans the line), and what `const worker = new Worker('q', async (job) =>
1453
- * { … })` leaves behind (the handler's calls belong to the file scope, the
1454
- * constant spans them).
1455
- */
1456
1085
  function fileScopeEdgesWithin(cg, node, memo, calls) {
1457
1086
  let refs = memo.get(node.filePath);
1458
1087
  if (refs === undefined) {
@@ -1466,7 +1095,6 @@ function fileScopeEdgesWithin(cg, node, memo, calls) {
1466
1095
  }
1467
1096
  return refs.filter((e) => (calls || e.kind === 'references') && typeof e.line === 'number' && e.line >= node.startLine && e.line <= node.endLine);
1468
1097
  }
1469
- /** The file scope's unresolved calls within a value's lines — what a wrapped handler's arrow body leaves on the file node. */
1470
1098
  function fileScopeRefsWithin(cg, node, memo) {
1471
1099
  let refs = memo.get(node.filePath);
1472
1100
  if (refs === undefined) {
@@ -1481,7 +1109,6 @@ function fileScopeRefsWithin(cg, node, memo) {
1481
1109
  }
1482
1110
  return refs.filter((r) => r.line >= node.startLine && r.line <= node.endLine);
1483
1111
  }
1484
- /** `push /capture`, `renders <Button>`, `via rn-event-channel`, `calls`. */
1485
1112
  function siteText(edge, meta, target) {
1486
1113
  if (edge.kind === 'navigates') {
1487
1114
  const method = edge.provenance === 'heuristic' ? 'returns' : typeof meta.navMethod === 'string' ? meta.navMethod : 'push';
@@ -1503,7 +1130,6 @@ function siteText(edge, meta, target) {
1503
1130
  return `via ${meta.synthesizedBy}`;
1504
1131
  return `calls ${target.name}`;
1505
1132
  }
1506
- /** The words on a hop that was not a plain call — the Flow strip's connector label, in short. */
1507
1133
  function hopLabel(meta, synthesized) {
1508
1134
  const parts = [];
1509
1135
  if (typeof meta.synthesizedBy === 'string')
@@ -1530,7 +1156,6 @@ function hopLabel(meta, synthesized) {
1530
1156
  parts.push(`registered at ${meta.registeredAt}`);
1531
1157
  return parts.join(' · ');
1532
1158
  }
1533
- /** Source order of two hops: a hop written inside the other's call runs first; else by position; another file sorts after. */
1534
1159
  function hopCompare(a, b) {
1535
1160
  if (!a || !b)
1536
1161
  return a ? -1 : b ? 1 : 0;
@@ -1542,7 +1167,6 @@ function hopCompare(a, b) {
1542
1167
  return 1;
1543
1168
  return a.line - b.line || a.column - b.column;
1544
1169
  }
1545
- /** `x` starts strictly after `y` starts and before `y` ends. */
1546
1170
  function hopInside(x, y) {
1547
1171
  const afterStart = x.line > y.line || (x.line === y.line && x.column > y.column);
1548
1172
  const beforeEnd = x.line < y.end.line || (x.line === y.end.line && x.column < y.end.column);