@colbymchenry/codegraph-win32-arm64 1.6.0 → 1.6.1

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 (622) hide show
  1. package/bin/codegraph +5 -0
  2. package/lib/dist/.test-build-engine.json +1 -0
  3. package/lib/dist/.test-build-viewer.json +1 -0
  4. package/lib/dist/bin/codegraph.d.ts +1 -0
  5. package/lib/dist/bin/codegraph.d.ts.map +1 -1
  6. package/lib/dist/bin/codegraph.js +599 -291
  7. package/lib/dist/bin/codegraph.js.map +1 -1
  8. package/lib/dist/bin/viewer-gate.d.ts +17 -0
  9. package/lib/dist/bin/viewer-gate.d.ts.map +1 -0
  10. package/lib/dist/bin/viewer-gate.js +31 -0
  11. package/lib/dist/bin/viewer-gate.js.map +1 -0
  12. package/lib/dist/context/index.d.ts.map +1 -1
  13. package/lib/dist/context/index.js +43 -2
  14. package/lib/dist/context/index.js.map +1 -1
  15. package/lib/dist/db/index.d.ts +21 -2
  16. package/lib/dist/db/index.d.ts.map +1 -1
  17. package/lib/dist/db/index.js +86 -31
  18. package/lib/dist/db/index.js.map +1 -1
  19. package/lib/dist/db/migrations.d.ts +1 -1
  20. package/lib/dist/db/migrations.d.ts.map +1 -1
  21. package/lib/dist/db/migrations.js +40 -1
  22. package/lib/dist/db/migrations.js.map +1 -1
  23. package/lib/dist/db/queries.d.ts +423 -3
  24. package/lib/dist/db/queries.d.ts.map +1 -1
  25. package/lib/dist/db/queries.js +1026 -33
  26. package/lib/dist/db/queries.js.map +1 -1
  27. package/lib/dist/db/schema.sql +11 -1
  28. package/lib/dist/db/sqlite-adapter.d.ts +2 -0
  29. package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
  30. package/lib/dist/db/sqlite-adapter.js +56 -7
  31. package/lib/dist/db/sqlite-adapter.js.map +1 -1
  32. package/lib/dist/db/synthesis-stage.d.ts +12 -0
  33. package/lib/dist/db/synthesis-stage.d.ts.map +1 -0
  34. package/lib/dist/db/synthesis-stage.js +89 -0
  35. package/lib/dist/db/synthesis-stage.js.map +1 -0
  36. package/lib/dist/db/wal-valve.d.ts +32 -12
  37. package/lib/dist/db/wal-valve.d.ts.map +1 -1
  38. package/lib/dist/db/wal-valve.js +65 -22
  39. package/lib/dist/db/wal-valve.js.map +1 -1
  40. package/lib/dist/db/wsl-shared-index.d.ts +53 -0
  41. package/lib/dist/db/wsl-shared-index.d.ts.map +1 -0
  42. package/lib/dist/db/wsl-shared-index.js +121 -0
  43. package/lib/dist/db/wsl-shared-index.js.map +1 -0
  44. package/lib/dist/directory.d.ts +101 -2
  45. package/lib/dist/directory.d.ts.map +1 -1
  46. package/lib/dist/directory.js +254 -23
  47. package/lib/dist/directory.js.map +1 -1
  48. package/lib/dist/errors.d.ts +14 -0
  49. package/lib/dist/errors.d.ts.map +1 -1
  50. package/lib/dist/errors.js +16 -1
  51. package/lib/dist/errors.js.map +1 -1
  52. package/lib/dist/extraction/cfml-extractor.d.ts +1 -0
  53. package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
  54. package/lib/dist/extraction/cfml-extractor.js +15 -3
  55. package/lib/dist/extraction/cfml-extractor.js.map +1 -1
  56. package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -1
  57. package/lib/dist/extraction/dfm-extractor.js +14 -10
  58. package/lib/dist/extraction/dfm-extractor.js.map +1 -1
  59. package/lib/dist/extraction/extraction-version.d.ts +1 -1
  60. package/lib/dist/extraction/extraction-version.js +1 -1
  61. package/lib/dist/extraction/function-ref.d.ts +6 -4
  62. package/lib/dist/extraction/function-ref.d.ts.map +1 -1
  63. package/lib/dist/extraction/function-ref.js +35 -14
  64. package/lib/dist/extraction/function-ref.js.map +1 -1
  65. package/lib/dist/extraction/grammars.d.ts +38 -0
  66. package/lib/dist/extraction/grammars.d.ts.map +1 -1
  67. package/lib/dist/extraction/grammars.js +77 -1
  68. package/lib/dist/extraction/grammars.js.map +1 -1
  69. package/lib/dist/extraction/index.d.ts +113 -15
  70. package/lib/dist/extraction/index.d.ts.map +1 -1
  71. package/lib/dist/extraction/index.js +599 -132
  72. package/lib/dist/extraction/index.js.map +1 -1
  73. package/lib/dist/extraction/languages/c-cpp.d.ts +58 -0
  74. package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
  75. package/lib/dist/extraction/languages/c-cpp.js +291 -15
  76. package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
  77. package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
  78. package/lib/dist/extraction/languages/dart.js +8 -3
  79. package/lib/dist/extraction/languages/dart.js.map +1 -1
  80. package/lib/dist/extraction/languages/javascript.js +1 -1
  81. package/lib/dist/extraction/languages/javascript.js.map +1 -1
  82. package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
  83. package/lib/dist/extraction/languages/kotlin.js +169 -36
  84. package/lib/dist/extraction/languages/kotlin.js.map +1 -1
  85. package/lib/dist/extraction/languages/lua.d.ts.map +1 -1
  86. package/lib/dist/extraction/languages/lua.js +4 -1
  87. package/lib/dist/extraction/languages/lua.js.map +1 -1
  88. package/lib/dist/extraction/languages/python.d.ts.map +1 -1
  89. package/lib/dist/extraction/languages/python.js +71 -0
  90. package/lib/dist/extraction/languages/python.js.map +1 -1
  91. package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
  92. package/lib/dist/extraction/languages/rust.js +3 -0
  93. package/lib/dist/extraction/languages/rust.js.map +1 -1
  94. package/lib/dist/extraction/languages/scala.d.ts.map +1 -1
  95. package/lib/dist/extraction/languages/scala.js +18 -3
  96. package/lib/dist/extraction/languages/scala.js.map +1 -1
  97. package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
  98. package/lib/dist/extraction/languages/typescript.js +9 -2
  99. package/lib/dist/extraction/languages/typescript.js.map +1 -1
  100. package/lib/dist/extraction/liquid-extractor.d.ts +18 -0
  101. package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
  102. package/lib/dist/extraction/liquid-extractor.js +98 -22
  103. package/lib/dist/extraction/liquid-extractor.js.map +1 -1
  104. package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -1
  105. package/lib/dist/extraction/mybatis-extractor.js +6 -4
  106. package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
  107. package/lib/dist/extraction/syntax-tokens.d.ts +103 -0
  108. package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -0
  109. package/lib/dist/extraction/syntax-tokens.js +381 -0
  110. package/lib/dist/extraction/syntax-tokens.js.map +1 -0
  111. package/lib/dist/extraction/tree-sitter-helpers.d.ts +5 -0
  112. package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
  113. package/lib/dist/extraction/tree-sitter-helpers.js +17 -0
  114. package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
  115. package/lib/dist/extraction/tree-sitter-types.d.ts +29 -3
  116. package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
  117. package/lib/dist/extraction/tree-sitter.d.ts +96 -17
  118. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  119. package/lib/dist/extraction/tree-sitter.js +820 -82
  120. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  121. package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
  122. package/lib/dist/file-limits.d.ts +40 -0
  123. package/lib/dist/file-limits.d.ts.map +1 -0
  124. package/lib/dist/file-limits.js +147 -0
  125. package/lib/dist/file-limits.js.map +1 -0
  126. package/lib/dist/graph/branch-guards.d.ts +248 -0
  127. package/lib/dist/graph/branch-guards.d.ts.map +1 -0
  128. package/lib/dist/graph/branch-guards.js +2231 -0
  129. package/lib/dist/graph/branch-guards.js.map +1 -0
  130. package/lib/dist/graph/dead-code.d.ts +251 -0
  131. package/lib/dist/graph/dead-code.d.ts.map +1 -0
  132. package/lib/dist/graph/dead-code.js +776 -0
  133. package/lib/dist/graph/dead-code.js.map +1 -0
  134. package/lib/dist/graph/dynamic-boundary-report.d.ts +121 -0
  135. package/lib/dist/graph/dynamic-boundary-report.d.ts.map +1 -0
  136. package/lib/dist/graph/dynamic-boundary-report.js +283 -0
  137. package/lib/dist/graph/dynamic-boundary-report.js.map +1 -0
  138. package/lib/dist/graph/index.d.ts +4 -0
  139. package/lib/dist/graph/index.d.ts.map +1 -1
  140. package/lib/dist/graph/index.js +16 -1
  141. package/lib/dist/graph/index.js.map +1 -1
  142. package/lib/dist/graph/named-symbol-flow.d.ts +125 -0
  143. package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -0
  144. package/lib/dist/graph/named-symbol-flow.js +552 -0
  145. package/lib/dist/graph/named-symbol-flow.js.map +1 -0
  146. package/lib/dist/graph/symbol-lookup.d.ts +83 -0
  147. package/lib/dist/graph/symbol-lookup.d.ts.map +1 -0
  148. package/lib/dist/graph/symbol-lookup.js +181 -0
  149. package/lib/dist/graph/symbol-lookup.js.map +1 -0
  150. package/lib/dist/graph/traversal.d.ts +9 -0
  151. package/lib/dist/graph/traversal.d.ts.map +1 -1
  152. package/lib/dist/graph/traversal.js +61 -35
  153. package/lib/dist/graph/traversal.js.map +1 -1
  154. package/lib/dist/graph/type-hierarchy.d.ts +155 -0
  155. package/lib/dist/graph/type-hierarchy.d.ts.map +1 -0
  156. package/lib/dist/graph/type-hierarchy.js +382 -0
  157. package/lib/dist/graph/type-hierarchy.js.map +1 -0
  158. package/lib/dist/index.d.ts +251 -11
  159. package/lib/dist/index.d.ts.map +1 -1
  160. package/lib/dist/index.js +395 -34
  161. package/lib/dist/index.js.map +1 -1
  162. package/lib/dist/installer/index.d.ts.map +1 -1
  163. package/lib/dist/installer/index.js +3 -2
  164. package/lib/dist/installer/index.js.map +1 -1
  165. package/lib/dist/installer/targets/antigravity.d.ts.map +1 -1
  166. package/lib/dist/installer/targets/antigravity.js +14 -2
  167. package/lib/dist/installer/targets/antigravity.js.map +1 -1
  168. package/lib/dist/installer/targets/claude.d.ts +3 -0
  169. package/lib/dist/installer/targets/claude.d.ts.map +1 -1
  170. package/lib/dist/installer/targets/claude.js +35 -7
  171. package/lib/dist/installer/targets/claude.js.map +1 -1
  172. package/lib/dist/installer/targets/codex.d.ts +2 -1
  173. package/lib/dist/installer/targets/codex.d.ts.map +1 -1
  174. package/lib/dist/installer/targets/codex.js +14 -4
  175. package/lib/dist/installer/targets/codex.js.map +1 -1
  176. package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
  177. package/lib/dist/installer/targets/copilot-cli.js +7 -1
  178. package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
  179. package/lib/dist/installer/targets/opencode.d.ts +16 -5
  180. package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
  181. package/lib/dist/installer/targets/opencode.js +73 -22
  182. package/lib/dist/installer/targets/opencode.js.map +1 -1
  183. package/lib/dist/installer/targets/shared.d.ts +14 -3
  184. package/lib/dist/installer/targets/shared.d.ts.map +1 -1
  185. package/lib/dist/installer/targets/shared.js +39 -11
  186. package/lib/dist/installer/targets/shared.js.map +1 -1
  187. package/lib/dist/installer/targets/types.d.ts +7 -0
  188. package/lib/dist/installer/targets/types.d.ts.map +1 -1
  189. package/lib/dist/mcp/answer-freshness.d.ts +10 -0
  190. package/lib/dist/mcp/answer-freshness.d.ts.map +1 -0
  191. package/lib/dist/mcp/answer-freshness.js +68 -0
  192. package/lib/dist/mcp/answer-freshness.js.map +1 -0
  193. package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
  194. package/lib/dist/mcp/daemon-manager.js +16 -0
  195. package/lib/dist/mcp/daemon-manager.js.map +1 -1
  196. package/lib/dist/mcp/daemon-paths.d.ts +2 -0
  197. package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
  198. package/lib/dist/mcp/daemon-paths.js +12 -3
  199. package/lib/dist/mcp/daemon-paths.js.map +1 -1
  200. package/lib/dist/mcp/daemon-registry.d.ts +7 -4
  201. package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
  202. package/lib/dist/mcp/daemon-registry.js +91 -29
  203. package/lib/dist/mcp/daemon-registry.js.map +1 -1
  204. package/lib/dist/mcp/daemon.d.ts +17 -7
  205. package/lib/dist/mcp/daemon.d.ts.map +1 -1
  206. package/lib/dist/mcp/daemon.js +116 -24
  207. package/lib/dist/mcp/daemon.js.map +1 -1
  208. package/lib/dist/mcp/dynamic-boundaries.d.ts +1 -10
  209. package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -1
  210. package/lib/dist/mcp/dynamic-boundaries.js +46 -42
  211. package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
  212. package/lib/dist/mcp/engine.d.ts +28 -9
  213. package/lib/dist/mcp/engine.d.ts.map +1 -1
  214. package/lib/dist/mcp/engine.js +146 -62
  215. package/lib/dist/mcp/engine.js.map +1 -1
  216. package/lib/dist/mcp/explore-dedup.d.ts +5 -2
  217. package/lib/dist/mcp/explore-dedup.d.ts.map +1 -1
  218. package/lib/dist/mcp/explore-dedup.js +8 -5
  219. package/lib/dist/mcp/explore-dedup.js.map +1 -1
  220. package/lib/dist/mcp/index-freshness-worker.d.ts +2 -0
  221. package/lib/dist/mcp/index-freshness-worker.d.ts.map +1 -0
  222. package/lib/dist/mcp/index-freshness-worker.js +30 -0
  223. package/lib/dist/mcp/index-freshness-worker.js.map +1 -0
  224. package/lib/dist/mcp/index-freshness.d.ts +7 -0
  225. package/lib/dist/mcp/index-freshness.d.ts.map +1 -0
  226. package/lib/dist/mcp/index-freshness.js +94 -0
  227. package/lib/dist/mcp/index-freshness.js.map +1 -0
  228. package/lib/dist/mcp/index.d.ts +3 -1
  229. package/lib/dist/mcp/index.d.ts.map +1 -1
  230. package/lib/dist/mcp/index.js +95 -11
  231. package/lib/dist/mcp/index.js.map +1 -1
  232. package/lib/dist/mcp/liveness-watchdog.d.ts +4 -1
  233. package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
  234. package/lib/dist/mcp/liveness-watchdog.js +11 -2
  235. package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
  236. package/lib/dist/mcp/project-lifecycle.d.ts +9 -0
  237. package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -0
  238. package/lib/dist/mcp/project-lifecycle.js +181 -0
  239. package/lib/dist/mcp/project-lifecycle.js.map +1 -0
  240. package/lib/dist/mcp/proxy.d.ts.map +1 -1
  241. package/lib/dist/mcp/proxy.js +9 -0
  242. package/lib/dist/mcp/proxy.js.map +1 -1
  243. package/lib/dist/mcp/query-pool.d.ts +2 -2
  244. package/lib/dist/mcp/query-pool.d.ts.map +1 -1
  245. package/lib/dist/mcp/query-pool.js +9 -7
  246. package/lib/dist/mcp/query-pool.js.map +1 -1
  247. package/lib/dist/mcp/query-worker.js +2 -2
  248. package/lib/dist/mcp/query-worker.js.map +1 -1
  249. package/lib/dist/mcp/server-instructions.d.ts +1 -1
  250. package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
  251. package/lib/dist/mcp/server-instructions.js +6 -3
  252. package/lib/dist/mcp/server-instructions.js.map +1 -1
  253. package/lib/dist/mcp/startup-handshake.d.ts +3 -1
  254. package/lib/dist/mcp/startup-handshake.d.ts.map +1 -1
  255. package/lib/dist/mcp/startup-handshake.js +10 -2
  256. package/lib/dist/mcp/startup-handshake.js.map +1 -1
  257. package/lib/dist/mcp/tools.d.ts +276 -36
  258. package/lib/dist/mcp/tools.d.ts.map +1 -1
  259. package/lib/dist/mcp/tools.js +2295 -980
  260. package/lib/dist/mcp/tools.js.map +1 -1
  261. package/lib/dist/mcp/writer-lock.d.ts +61 -0
  262. package/lib/dist/mcp/writer-lock.d.ts.map +1 -0
  263. package/lib/dist/mcp/writer-lock.js +260 -0
  264. package/lib/dist/mcp/writer-lock.js.map +1 -0
  265. package/lib/dist/resolution/alias-binding.d.ts +56 -0
  266. package/lib/dist/resolution/alias-binding.d.ts.map +1 -0
  267. package/lib/dist/resolution/alias-binding.js +127 -0
  268. package/lib/dist/resolution/alias-binding.js.map +1 -0
  269. package/lib/dist/resolution/callback-synthesizer.d.ts +23 -1
  270. package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
  271. package/lib/dist/resolution/callback-synthesizer.js +291 -143
  272. package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
  273. package/lib/dist/resolution/cpp-constructor.d.ts +4 -0
  274. package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -0
  275. package/lib/dist/resolution/cpp-constructor.js +123 -0
  276. package/lib/dist/resolution/cpp-constructor.js.map +1 -0
  277. package/lib/dist/resolution/cpp-macro-visibility.d.ts +12 -0
  278. package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -0
  279. package/lib/dist/resolution/cpp-macro-visibility.js +342 -0
  280. package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -0
  281. package/lib/dist/resolution/expo-router-synthesizer.d.ts +32 -0
  282. package/lib/dist/resolution/expo-router-synthesizer.d.ts.map +1 -0
  283. package/lib/dist/resolution/expo-router-synthesizer.js +189 -0
  284. package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -0
  285. package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
  286. package/lib/dist/resolution/frameworks/csharp.js +96 -2
  287. package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
  288. package/lib/dist/resolution/frameworks/expo-router.d.ts +189 -0
  289. package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
  290. package/lib/dist/resolution/frameworks/expo-router.js +785 -0
  291. package/lib/dist/resolution/frameworks/expo-router.js.map +1 -0
  292. package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
  293. package/lib/dist/resolution/frameworks/express.js +251 -16
  294. package/lib/dist/resolution/frameworks/express.js.map +1 -1
  295. package/lib/dist/resolution/frameworks/index.d.ts +5 -0
  296. package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
  297. package/lib/dist/resolution/frameworks/index.js +29 -1
  298. package/lib/dist/resolution/frameworks/index.js.map +1 -1
  299. package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
  300. package/lib/dist/resolution/frameworks/java.js +79 -47
  301. package/lib/dist/resolution/frameworks/java.js.map +1 -1
  302. package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
  303. package/lib/dist/resolution/frameworks/nestjs.js +6 -14
  304. package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
  305. package/lib/dist/resolution/frameworks/nextjs.d.ts +76 -0
  306. package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -0
  307. package/lib/dist/resolution/frameworks/nextjs.js +328 -0
  308. package/lib/dist/resolution/frameworks/nextjs.js.map +1 -0
  309. package/lib/dist/resolution/frameworks/object-literal.d.ts +32 -0
  310. package/lib/dist/resolution/frameworks/object-literal.d.ts.map +1 -0
  311. package/lib/dist/resolution/frameworks/object-literal.js +139 -0
  312. package/lib/dist/resolution/frameworks/object-literal.js.map +1 -0
  313. package/lib/dist/resolution/frameworks/package-deps.d.ts +14 -0
  314. package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -0
  315. package/lib/dist/resolution/frameworks/package-deps.js +78 -0
  316. package/lib/dist/resolution/frameworks/package-deps.js.map +1 -0
  317. package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
  318. package/lib/dist/resolution/frameworks/python.js +166 -0
  319. package/lib/dist/resolution/frameworks/python.js.map +1 -1
  320. package/lib/dist/resolution/frameworks/react-native.d.ts +26 -0
  321. package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
  322. package/lib/dist/resolution/frameworks/react-native.js +153 -14
  323. package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
  324. package/lib/dist/resolution/frameworks/react-router.d.ts +46 -0
  325. package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -0
  326. package/lib/dist/resolution/frameworks/react-router.js +187 -0
  327. package/lib/dist/resolution/frameworks/react-router.js.map +1 -0
  328. package/lib/dist/resolution/frameworks/react.d.ts +2 -1
  329. package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
  330. package/lib/dist/resolution/frameworks/react.js +188 -139
  331. package/lib/dist/resolution/frameworks/react.js.map +1 -1
  332. package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
  333. package/lib/dist/resolution/frameworks/svelte.js +6 -1
  334. package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
  335. package/lib/dist/resolution/frameworks/sveltekit-router.d.ts +36 -0
  336. package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -0
  337. package/lib/dist/resolution/frameworks/sveltekit-router.js +156 -0
  338. package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -0
  339. package/lib/dist/resolution/frameworks/tanstack-router.d.ts +84 -0
  340. package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -0
  341. package/lib/dist/resolution/frameworks/tanstack-router.js +437 -0
  342. package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -0
  343. package/lib/dist/resolution/frameworks/vue-router.d.ts +82 -0
  344. package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
  345. package/lib/dist/resolution/frameworks/vue-router.js +377 -0
  346. package/lib/dist/resolution/frameworks/vue-router.js.map +1 -0
  347. package/lib/dist/resolution/import-resolver.d.ts +38 -0
  348. package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
  349. package/lib/dist/resolution/import-resolver.js +376 -26
  350. package/lib/dist/resolution/import-resolver.js.map +1 -1
  351. package/lib/dist/resolution/index.d.ts +89 -25
  352. package/lib/dist/resolution/index.d.ts.map +1 -1
  353. package/lib/dist/resolution/index.js +552 -145
  354. package/lib/dist/resolution/index.js.map +1 -1
  355. package/lib/dist/resolution/js-builtins.d.ts +13 -0
  356. package/lib/dist/resolution/js-builtins.d.ts.map +1 -0
  357. package/lib/dist/resolution/js-builtins.js +46 -0
  358. package/lib/dist/resolution/js-builtins.js.map +1 -0
  359. package/lib/dist/resolution/name-matcher.d.ts +69 -22
  360. package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
  361. package/lib/dist/resolution/name-matcher.js +1902 -87
  362. package/lib/dist/resolution/name-matcher.js.map +1 -1
  363. package/lib/dist/resolution/next-router-synthesizer.d.ts +27 -0
  364. package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -0
  365. package/lib/dist/resolution/next-router-synthesizer.js +113 -0
  366. package/lib/dist/resolution/next-router-synthesizer.js.map +1 -0
  367. package/lib/dist/resolution/react-router-synthesizer.d.ts +33 -0
  368. package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
  369. package/lib/dist/resolution/react-router-synthesizer.js +126 -0
  370. package/lib/dist/resolution/react-router-synthesizer.js.map +1 -0
  371. package/lib/dist/resolution/resolver-pool.d.ts +2 -0
  372. package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
  373. package/lib/dist/resolution/resolver-pool.js +4 -0
  374. package/lib/dist/resolution/resolver-pool.js.map +1 -1
  375. package/lib/dist/resolution/strip-comments.d.ts +6 -0
  376. package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
  377. package/lib/dist/resolution/strip-comments.js +58 -0
  378. package/lib/dist/resolution/strip-comments.js.map +1 -1
  379. package/lib/dist/resolution/sveltekit-synthesizer.d.ts +58 -0
  380. package/lib/dist/resolution/sveltekit-synthesizer.d.ts.map +1 -0
  381. package/lib/dist/resolution/sveltekit-synthesizer.js +173 -0
  382. package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -0
  383. package/lib/dist/resolution/synth-utils.d.ts +26 -0
  384. package/lib/dist/resolution/synth-utils.d.ts.map +1 -0
  385. package/lib/dist/resolution/synth-utils.js +75 -0
  386. package/lib/dist/resolution/synth-utils.js.map +1 -0
  387. package/lib/dist/resolution/tanstack-router-synthesizer.d.ts +31 -0
  388. package/lib/dist/resolution/tanstack-router-synthesizer.d.ts.map +1 -0
  389. package/lib/dist/resolution/tanstack-router-synthesizer.js +114 -0
  390. package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -0
  391. package/lib/dist/resolution/tier-synthesizer.d.ts +49 -0
  392. package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -0
  393. package/lib/dist/resolution/tier-synthesizer.js +931 -0
  394. package/lib/dist/resolution/tier-synthesizer.js.map +1 -0
  395. package/lib/dist/resolution/types.d.ts +78 -2
  396. package/lib/dist/resolution/types.d.ts.map +1 -1
  397. package/lib/dist/resolution/types.js +64 -0
  398. package/lib/dist/resolution/types.js.map +1 -1
  399. package/lib/dist/resolution/vue-router-synthesizer.d.ts +30 -0
  400. package/lib/dist/resolution/vue-router-synthesizer.d.ts.map +1 -0
  401. package/lib/dist/resolution/vue-router-synthesizer.js +115 -0
  402. package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -0
  403. package/lib/dist/search/query-paths.d.ts +50 -1
  404. package/lib/dist/search/query-paths.d.ts.map +1 -1
  405. package/lib/dist/search/query-paths.js +227 -12
  406. package/lib/dist/search/query-paths.js.map +1 -1
  407. package/lib/dist/search/query-utils.d.ts +15 -0
  408. package/lib/dist/search/query-utils.d.ts.map +1 -1
  409. package/lib/dist/search/query-utils.js +35 -7
  410. package/lib/dist/search/query-utils.js.map +1 -1
  411. package/lib/dist/sync/watch-policy.d.ts +14 -0
  412. package/lib/dist/sync/watch-policy.d.ts.map +1 -1
  413. package/lib/dist/sync/watch-policy.js +19 -0
  414. package/lib/dist/sync/watch-policy.js.map +1 -1
  415. package/lib/dist/sync/watcher.d.ts +52 -35
  416. package/lib/dist/sync/watcher.d.ts.map +1 -1
  417. package/lib/dist/sync/watcher.js +236 -100
  418. package/lib/dist/sync/watcher.js.map +1 -1
  419. package/lib/dist/telemetry/index.d.ts +4 -2
  420. package/lib/dist/telemetry/index.d.ts.map +1 -1
  421. package/lib/dist/telemetry/index.js +92 -41
  422. package/lib/dist/telemetry/index.js.map +1 -1
  423. package/lib/dist/types.d.ts +1 -1
  424. package/lib/dist/types.d.ts.map +1 -1
  425. package/lib/dist/types.js +1 -0
  426. package/lib/dist/types.js.map +1 -1
  427. package/lib/dist/ui-server/api/deadcode.d.ts +84 -0
  428. package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -0
  429. package/lib/dist/ui-server/api/deadcode.js +136 -0
  430. package/lib/dist/ui-server/api/deadcode.js.map +1 -0
  431. package/lib/dist/ui-server/api/effects.d.ts +87 -0
  432. package/lib/dist/ui-server/api/effects.d.ts.map +1 -0
  433. package/lib/dist/ui-server/api/effects.js +499 -0
  434. package/lib/dist/ui-server/api/effects.js.map +1 -0
  435. package/lib/dist/ui-server/api/entrypoints.d.ts +86 -0
  436. package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -0
  437. package/lib/dist/ui-server/api/entrypoints.js +279 -0
  438. package/lib/dist/ui-server/api/entrypoints.js.map +1 -0
  439. package/lib/dist/ui-server/api/events.d.ts +183 -0
  440. package/lib/dist/ui-server/api/events.d.ts.map +1 -0
  441. package/lib/dist/ui-server/api/events.js +430 -0
  442. package/lib/dist/ui-server/api/events.js.map +1 -0
  443. package/lib/dist/ui-server/api/file.d.ts +66 -0
  444. package/lib/dist/ui-server/api/file.d.ts.map +1 -0
  445. package/lib/dist/ui-server/api/file.js +235 -0
  446. package/lib/dist/ui-server/api/file.js.map +1 -0
  447. package/lib/dist/ui-server/api/filecode.d.ts +126 -0
  448. package/lib/dist/ui-server/api/filecode.d.ts.map +1 -0
  449. package/lib/dist/ui-server/api/filecode.js +205 -0
  450. package/lib/dist/ui-server/api/filecode.js.map +1 -0
  451. package/lib/dist/ui-server/api/flow.d.ts +226 -0
  452. package/lib/dist/ui-server/api/flow.d.ts.map +1 -0
  453. package/lib/dist/ui-server/api/flow.js +612 -0
  454. package/lib/dist/ui-server/api/flow.js.map +1 -0
  455. package/lib/dist/ui-server/api/hierarchy.d.ts +81 -0
  456. package/lib/dist/ui-server/api/hierarchy.d.ts.map +1 -0
  457. package/lib/dist/ui-server/api/hierarchy.js +92 -0
  458. package/lib/dist/ui-server/api/hierarchy.js.map +1 -0
  459. package/lib/dist/ui-server/api/index.d.ts +90 -0
  460. package/lib/dist/ui-server/api/index.d.ts.map +1 -0
  461. package/lib/dist/ui-server/api/index.js +332 -0
  462. package/lib/dist/ui-server/api/index.js.map +1 -0
  463. package/lib/dist/ui-server/api/map.d.ts +238 -0
  464. package/lib/dist/ui-server/api/map.d.ts.map +1 -0
  465. package/lib/dist/ui-server/api/map.js +681 -0
  466. package/lib/dist/ui-server/api/map.js.map +1 -0
  467. package/lib/dist/ui-server/api/node.d.ts +81 -0
  468. package/lib/dist/ui-server/api/node.d.ts.map +1 -0
  469. package/lib/dist/ui-server/api/node.js +388 -0
  470. package/lib/dist/ui-server/api/node.js.map +1 -0
  471. package/lib/dist/ui-server/api/nodes.d.ts +25 -0
  472. package/lib/dist/ui-server/api/nodes.d.ts.map +1 -0
  473. package/lib/dist/ui-server/api/nodes.js +45 -0
  474. package/lib/dist/ui-server/api/nodes.js.map +1 -0
  475. package/lib/dist/ui-server/api/program.d.ts +139 -0
  476. package/lib/dist/ui-server/api/program.d.ts.map +1 -0
  477. package/lib/dist/ui-server/api/program.js +315 -0
  478. package/lib/dist/ui-server/api/program.js.map +1 -0
  479. package/lib/dist/ui-server/api/respond.d.ts +76 -0
  480. package/lib/dist/ui-server/api/respond.d.ts.map +1 -0
  481. package/lib/dist/ui-server/api/respond.js +186 -0
  482. package/lib/dist/ui-server/api/respond.js.map +1 -0
  483. package/lib/dist/ui-server/api/route-roots.d.ts +39 -0
  484. package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -0
  485. package/lib/dist/ui-server/api/route-roots.js +96 -0
  486. package/lib/dist/ui-server/api/route-roots.js.map +1 -0
  487. package/lib/dist/ui-server/api/routes.d.ts +59 -0
  488. package/lib/dist/ui-server/api/routes.d.ts.map +1 -0
  489. package/lib/dist/ui-server/api/routes.js +108 -0
  490. package/lib/dist/ui-server/api/routes.js.map +1 -0
  491. package/lib/dist/ui-server/api/screens.d.ts +117 -0
  492. package/lib/dist/ui-server/api/screens.d.ts.map +1 -0
  493. package/lib/dist/ui-server/api/screens.js +611 -0
  494. package/lib/dist/ui-server/api/screens.js.map +1 -0
  495. package/lib/dist/ui-server/api/search.d.ts +29 -0
  496. package/lib/dist/ui-server/api/search.d.ts.map +1 -0
  497. package/lib/dist/ui-server/api/search.js +232 -0
  498. package/lib/dist/ui-server/api/search.js.map +1 -0
  499. package/lib/dist/ui-server/api/session.d.ts +52 -0
  500. package/lib/dist/ui-server/api/session.d.ts.map +1 -0
  501. package/lib/dist/ui-server/api/session.js +196 -0
  502. package/lib/dist/ui-server/api/session.js.map +1 -0
  503. package/lib/dist/ui-server/api/source.d.ts +200 -0
  504. package/lib/dist/ui-server/api/source.d.ts.map +1 -0
  505. package/lib/dist/ui-server/api/source.js +422 -0
  506. package/lib/dist/ui-server/api/source.js.map +1 -0
  507. package/lib/dist/ui-server/api/stats.d.ts +27 -0
  508. package/lib/dist/ui-server/api/stats.d.ts.map +1 -0
  509. package/lib/dist/ui-server/api/stats.js +164 -0
  510. package/lib/dist/ui-server/api/stats.js.map +1 -0
  511. package/lib/dist/ui-server/api/steps.d.ts +274 -0
  512. package/lib/dist/ui-server/api/steps.d.ts.map +1 -0
  513. package/lib/dist/ui-server/api/steps.js +1446 -0
  514. package/lib/dist/ui-server/api/steps.js.map +1 -0
  515. package/lib/dist/ui-server/api/trail-store.d.ts +142 -0
  516. package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -0
  517. package/lib/dist/ui-server/api/trail-store.js +323 -0
  518. package/lib/dist/ui-server/api/trail-store.js.map +1 -0
  519. package/lib/dist/ui-server/api/trails.d.ts +163 -0
  520. package/lib/dist/ui-server/api/trails.d.ts.map +1 -0
  521. package/lib/dist/ui-server/api/trails.js +369 -0
  522. package/lib/dist/ui-server/api/trails.js.map +1 -0
  523. package/lib/dist/ui-server/api/when.d.ts +125 -0
  524. package/lib/dist/ui-server/api/when.d.ts.map +1 -0
  525. package/lib/dist/ui-server/api/when.js +251 -0
  526. package/lib/dist/ui-server/api/when.js.map +1 -0
  527. package/lib/dist/ui-server/api/wire.d.ts +179 -0
  528. package/lib/dist/ui-server/api/wire.d.ts.map +1 -0
  529. package/lib/dist/ui-server/api/wire.js +231 -0
  530. package/lib/dist/ui-server/api/wire.js.map +1 -0
  531. package/lib/dist/ui-server/assets.d.ts +40 -0
  532. package/lib/dist/ui-server/assets.d.ts.map +1 -0
  533. package/lib/dist/ui-server/assets.js +110 -0
  534. package/lib/dist/ui-server/assets.js.map +1 -0
  535. package/lib/dist/ui-server/constants.d.ts +32 -0
  536. package/lib/dist/ui-server/constants.d.ts.map +1 -0
  537. package/lib/dist/ui-server/constants.js +35 -0
  538. package/lib/dist/ui-server/constants.js.map +1 -0
  539. package/lib/dist/ui-server/highlight/index.d.ts +113 -0
  540. package/lib/dist/ui-server/highlight/index.d.ts.map +1 -0
  541. package/lib/dist/ui-server/highlight/index.js +307 -0
  542. package/lib/dist/ui-server/highlight/index.js.map +1 -0
  543. package/lib/dist/ui-server/highlight/languages.d.ts +36 -0
  544. package/lib/dist/ui-server/highlight/languages.d.ts.map +1 -0
  545. package/lib/dist/ui-server/highlight/languages.js +50 -0
  546. package/lib/dist/ui-server/highlight/languages.js.map +1 -0
  547. package/lib/dist/ui-server/index.d.ts +92 -0
  548. package/lib/dist/ui-server/index.d.ts.map +1 -0
  549. package/lib/dist/ui-server/index.js +399 -0
  550. package/lib/dist/ui-server/index.js.map +1 -0
  551. package/lib/dist/ui-server/open-browser.d.ts +31 -0
  552. package/lib/dist/ui-server/open-browser.d.ts.map +1 -0
  553. package/lib/dist/ui-server/open-browser.js +79 -0
  554. package/lib/dist/ui-server/open-browser.js.map +1 -0
  555. package/lib/dist/ui-server/security.d.ts +127 -0
  556. package/lib/dist/ui-server/security.d.ts.map +1 -0
  557. package/lib/dist/ui-server/security.js +332 -0
  558. package/lib/dist/ui-server/security.js.map +1 -0
  559. package/lib/dist/ui-server/static.d.ts +45 -0
  560. package/lib/dist/ui-server/static.d.ts.map +1 -0
  561. package/lib/dist/ui-server/static.js +165 -0
  562. package/lib/dist/ui-server/static.js.map +1 -0
  563. package/lib/dist/utils.d.ts +14 -2
  564. package/lib/dist/utils.d.ts.map +1 -1
  565. package/lib/dist/utils.js +25 -10
  566. package/lib/dist/utils.js.map +1 -1
  567. package/lib/dist/viewer/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
  568. package/lib/dist/viewer/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
  569. package/lib/dist/viewer/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
  570. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
  571. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
  572. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  573. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  574. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  575. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  576. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  577. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  578. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
  579. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
  580. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  581. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  582. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  583. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  584. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  585. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  586. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
  587. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
  588. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  589. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  590. package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  591. package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  592. package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  593. package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  594. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
  595. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
  596. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  597. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  598. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  599. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  600. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  601. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  602. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
  603. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
  604. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  605. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  606. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  607. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  608. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  609. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  610. package/lib/dist/viewer/assets/index-CF9yvio6.css +1 -0
  611. package/lib/dist/viewer/assets/index-D4S7YUPf.js +97 -0
  612. package/lib/dist/viewer/index.html +16 -0
  613. package/lib/kernel/codegraph-kernel.node +2 -2
  614. package/lib/node_modules/.package-lock.json +4 -4
  615. package/lib/node_modules/picomatch/README.md +56 -51
  616. package/lib/node_modules/picomatch/lib/constants.js +4 -0
  617. package/lib/node_modules/picomatch/lib/parse.js +341 -1
  618. package/lib/node_modules/picomatch/lib/picomatch.js +25 -5
  619. package/lib/node_modules/picomatch/lib/scan.js +30 -18
  620. package/lib/node_modules/picomatch/package.json +4 -4
  621. package/lib/package.json +9 -2
  622. package/package.json +1 -1
@@ -14,7 +14,7 @@ exports.getMigrationHistory = getMigrationHistory;
14
14
  /**
15
15
  * Current schema version
16
16
  */
17
- exports.CURRENT_SCHEMA_VERSION = 9;
17
+ exports.CURRENT_SCHEMA_VERSION = 11;
18
18
  /**
19
19
  * All migrations in order
20
20
  *
@@ -164,6 +164,45 @@ const migrations = [
164
164
  db.exec('CREATE INDEX IF NOT EXISTS idx_files_generated ON files(path) WHERE generated = 1');
165
165
  },
166
166
  },
167
+ {
168
+ version: 10,
169
+ description: 'Track synthesis inputs and stabilize synthesis traversal for incremental refresh (#1988)',
170
+ up: (db) => {
171
+ db.exec(`
172
+ DROP INDEX IF EXISTS idx_nodes_kind;
173
+ CREATE INDEX idx_nodes_kind ON nodes(kind, file_path, start_line, id);
174
+ CREATE TABLE IF NOT EXISTS synthesis_inputs (
175
+ file_path TEXT PRIMARY KEY REFERENCES files(path) ON DELETE CASCADE
176
+ );
177
+ CREATE INDEX IF NOT EXISTS idx_edges_synthesis_site ON edges(CASE WHEN json_valid(metadata) THEN json_extract(metadata, '$.registeredAt') END)
178
+ WHERE CASE WHEN json_valid(metadata) THEN json_extract(metadata, '$.synthesizedBy') END IS NOT NULL;
179
+ UPDATE edges SET metadata = json_set(CASE WHEN json_valid(metadata) THEN metadata ELSE '{}' END, '$.synthesizedBy', 'go-method-contains')
180
+ WHERE kind = 'contains' AND provenance IS NULL AND EXISTS (
181
+ SELECT 1 FROM nodes s JOIN nodes t ON t.id = edges.target
182
+ WHERE s.id = edges.source AND s.language = 'go' AND t.language = 'go'
183
+ AND s.kind IN ('struct', 'class', 'interface', 'enum', 'type_alias') AND t.kind = 'method'
184
+ AND s.file_path != t.file_path
185
+ );
186
+ INSERT OR REPLACE INTO project_metadata(key, value, updated_at)
187
+ VALUES ('synthesis_pending', '1', 0);
188
+ `);
189
+ },
190
+ },
191
+ {
192
+ version: 11,
193
+ description: 'Guard synthesis metadata lookups against malformed JSON',
194
+ up: (db) => {
195
+ // Existing v10 indexes keep their old expression under IF NOT EXISTS.
196
+ // Rebuild transactionally; the guarded v10 definition also lets older
197
+ // databases containing malformed metadata reach this migration safely.
198
+ db.exec(`
199
+ DROP INDEX IF EXISTS idx_edges_synthesis_site;
200
+ CREATE INDEX idx_edges_synthesis_site
201
+ ON edges(CASE WHEN json_valid(metadata) THEN json_extract(metadata, '$.registeredAt') END)
202
+ WHERE CASE WHEN json_valid(metadata) THEN json_extract(metadata, '$.synthesizedBy') END IS NOT NULL;
203
+ `);
204
+ },
205
+ },
167
206
  ];
168
207
  /**
169
208
  * Get the current schema version from the database
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/db/migrations.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAoLH,8CAUC;AAcD,sCAiBC;AAKD,wCAGC;AAKD,oDAKC;AAKD,kDAYC;AA5PD;;GAEG;AACU,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAWxC;;;;;GAKG;AACH,MAAM,UAAU,GAAgB;IAC9B;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,uEAAuE;QACpF,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;;;;;;;;;;OAWP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,gFAAgF;QAC7F,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;OAEP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,sGAAsG;QACxG,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;;OAGP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,oHAAoH;QACtH,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;OAEP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,uGAAuG;QACzG,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,2EAA2E;YAC3E,sEAAsE;YACtE,uEAAuE;YACvE,sEAAsE;YACtE,kEAAkE;YAClE,0EAA0E;YAC1E,sEAAsE;YACtE,kEAAkE;YAClE,sEAAsE;YACtE,EAAE,CAAC,IAAI,CAAC;;;;;;;;OAQP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE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file":"migrations.js","sourceRoot":"","sources":["../../src/db/migrations.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA2NH,8CAUC;AAcD,sCAiBC;AAKD,wCAGC;AAKD,oDAKC;AAKD,kDAYC;AAnSD;;GAEG;AACU,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAWzC;;;;;GAKG;AACH,MAAM,UAAU,GAAgB;IAC9B;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,uEAAuE;QACpF,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;;;;;;;;;;OAWP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,gFAAgF;QAC7F,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;OAEP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,sGAAsG;QACxG,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;;OAGP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,oHAAoH;QACtH,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,EAAE,CAAC,IAAI,CAAC;;OAEP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,uGAAuG;QACzG,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;YACT,2EAA2E;YAC3E,sEAAsE;YACtE,uEAAuE;YACvE,sEAAsE;YACtE,kEAAkE;YAClE,0EAA0E;YAC1E,sEAAsE;YACtE,kEAAkE;YAClE,sEAAsE;YACtE,EAAE,CAAC,IAAI,CAAC;;;;;;;;OAQP,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,OAAO,EAAE,CAAC;QACV,WAAW,EACT,mGAAm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mBAAmB,CACjC,EAAkB;IAElB,MAAM,IAAI,GAAG,EAAE;SACZ,OAAO,CAAC,+EAA+E,CAAC;SACxF,GAAG,EAAgF,CAAC;IAEvF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACxB,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,SAAS,EAAE,GAAG,CAAC,UAAU;QACzB,WAAW,EAAE,GAAG,CAAC,WAAW;KAC7B,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -28,12 +28,15 @@ export declare class QueryBuilder {
28
28
  private db;
29
29
  private projectNameTokens;
30
30
  private isDeprioritizedPath;
31
+ private _fts5Available;
31
32
  private nodeCache;
32
33
  private readonly maxCacheSize;
34
+ private dominantFileMemo;
33
35
  private stmts;
34
36
  private segmentedNames;
35
37
  private static readonly MAX_SEGMENTED_NAMES;
36
38
  private batchStmts;
39
+ private edgeKindStmts;
37
40
  private static readonly BATCH_SIZES;
38
41
  /**
39
42
  * Run `rows` through a multi-row `INSERT` built as `head + (tuple,)*n`,
@@ -54,6 +57,7 @@ export declare class QueryBuilder {
54
57
  * lazily on next use.
55
58
  */
56
59
  rebind(db: SqliteDatabase): void;
60
+ private edgeKindStmt;
57
61
  /** Set the normalized project-name tokens used to down-weight non-discriminative
58
62
  * query words in path scoring (#720). Called once when the project opens. */
59
63
  setProjectNameTokens(tokens: Set<string>): void;
@@ -183,10 +187,24 @@ export declare class QueryBuilder {
183
187
  * Clear the node cache
184
188
  */
185
189
  clearCache(): void;
190
+ /**
191
+ * Whether any node in `filePath` is exported — `getNodesByFile(f).some((n) =>
192
+ * n.isExported)` as one indexed probe, without decoding the file's nodes.
193
+ */
194
+ fileHasExportedNode(filePath: string): boolean;
195
+ /** The exported nodes of a file, in {@link getNodesByFile} order, decoding only those rows. */
196
+ getExportedNodesByFile(filePath: string): Node[];
197
+ /** The nodes of a file with one name, in {@link getNodesByFile} order, decoding only those rows. */
198
+ getNodesByFileAndName(filePath: string, name: string): Node[];
186
199
  /**
187
200
  * Get all nodes in a file
188
201
  */
189
202
  getNodesByFile(filePath: string): Node[];
203
+ /**
204
+ * Get all nodes in several files at once — one chunked `IN` query rather than
205
+ * one {@link getNodesByFile} per file (#1975).
206
+ */
207
+ getNodesByFiles(filePaths: readonly string[]): Node[];
190
208
  /**
191
209
  * Find the file that holds the densest concentration of the project's
192
210
  * internal call graph — the "core" file. Used by context-builder to
@@ -204,12 +222,29 @@ export declare class QueryBuilder {
204
222
  * Excludes test/spec files from candidacy via path-pattern. The agent's
205
223
  * typical question is "how does X work", not "how is X tested", so
206
224
  * boosting a test file's directory would be a misfire.
225
+ *
226
+ * The answer depends only on the graph, never on the query, and the
227
+ * aggregation behind it scans every edge — seconds on a large index, paid
228
+ * by every generic explore (#1864). So it is memoized per database change
229
+ * stamp: recomputed only after something wrote to the database.
207
230
  */
208
231
  getDominantFile(): {
209
232
  filePath: string;
210
233
  edgeCount: number;
211
234
  nextEdgeCount: number;
212
235
  } | null;
236
+ /**
237
+ * A value that differs whenever the database content may have changed
238
+ * since the last call, whoever changed it: `total_changes()` counts the
239
+ * rows this connection inserted, updated or deleted, and
240
+ * `PRAGMA data_version` moves when any OTHER connection — another process's
241
+ * sync, a CLI `codegraph index` beside a running MCP server — commits. Both
242
+ * are O(1), so no write path has to remember to invalidate anything.
243
+ * Coarse on purpose: any write, not just one to nodes/edges, forces a
244
+ * recompute, which only costs time, never a stale answer.
245
+ */
246
+ private getChangeStamp;
247
+ private computeDominantFile;
213
248
  /**
214
249
  * Find the file that holds the densest concentration of the project's
215
250
  * `route` nodes (framework-emitted: Express/Gin/Flask/Rails/Drupal/etc.).
@@ -245,6 +280,10 @@ export declare class QueryBuilder {
245
280
  handlerFile: string;
246
281
  handlerLine: number;
247
282
  handlerKind: string;
283
+ /** The route node itself: where the URL is REGISTERED, not where it is served. */
284
+ routeId: string;
285
+ routeFile: string;
286
+ routeLine: number;
248
287
  }>;
249
288
  topHandlerFile: string | null;
250
289
  topHandlerFileCount: number;
@@ -262,6 +301,14 @@ export declare class QueryBuilder {
262
301
  * memory O(1) in the node count rather than O(nodes) (#610).
263
302
  */
264
303
  iterateNodesByKind(kind: NodeKind): IterableIterator<Node>;
304
+ /**
305
+ * iterateNodesByKind narrowed to some languages, in the same canonical
306
+ * order — the ORDER BY is total (`id` is unique), so this yields exactly the
307
+ * nodes a caller filtering iterateNodesByKind by language would keep, in the
308
+ * same sequence. A Go pass on a TypeScript monorepo otherwise materialized
309
+ * every method in the project to find a couple of Go ones.
310
+ */
311
+ iterateNodesByKindIn(kind: NodeKind, languages: readonly string[]): IterableIterator<Node>;
265
312
  /**
266
313
  * Get all nodes in the database
267
314
  */
@@ -307,6 +354,8 @@ export declare class QueryBuilder {
307
354
  * skip idx_nodes_name under SQLite's default case-insensitive LIKE).
308
355
  */
309
356
  getNodesByNamePrefix(prefix: string, limit?: number): Node[];
357
+ /** File nodes whose basename starts with `prefix`, without a result cap. */
358
+ getFileNodesByNamePrefix(prefix: string): Node[];
310
359
  /**
311
360
  * Get nodes by exact qualified name match (uses idx_nodes_qualified_name index)
312
361
  */
@@ -351,6 +400,13 @@ export declare class QueryBuilder {
351
400
  * node count on any real codebase.
352
401
  */
353
402
  private searchNodesFuzzy;
403
+ /** Bounded miss diagnostics, independent of relevance filters and ranking. */
404
+ getExploreMissDiagnostics(query: string): {
405
+ matched: string[];
406
+ unmatched: string[];
407
+ candidates: string[];
408
+ limited: boolean;
409
+ };
354
410
  /**
355
411
  * FTS5 search with prefix matching
356
412
  */
@@ -381,6 +437,10 @@ export declare class QueryBuilder {
381
437
  findNodesByNameSubstring(substring: string, options?: SearchOptions & {
382
438
  excludePrefix?: boolean;
383
439
  }): SearchResult[];
440
+ /** Must run before file replacement/deletion cascades the endpoint edges. */
441
+ hasSynthesizedEdgesTouchingFile(filePath: string): boolean;
442
+ wasSynthesisInput(filePath: string): boolean;
443
+ replaceSynthesisInputs(files: string[]): void;
384
444
  /**
385
445
  * Insert a new edge
386
446
  */
@@ -394,13 +454,318 @@ export declare class QueryBuilder {
394
454
  */
395
455
  deleteEdgesBySource(sourceId: string): void;
396
456
  /**
397
- * Get outgoing edges from a node
457
+ * Get outgoing edges from a node. Preserve the source/kind index order
458
+ * (calls before imports/references), then break ties deterministically.
398
459
  */
399
460
  getOutgoingEdges(sourceId: string, kinds?: EdgeKind[], provenance?: string): Edge[];
400
461
  /**
401
- * Get incoming edges to a node
462
+ * Get incoming edges to a node. Kind must precede opaque source IDs:
463
+ * file IDs sort before function IDs, so source-first ordering lets imports
464
+ * displace actual calls in capped caller lists. Keep deterministic ties
465
+ * without changing the target/kind index's established kind precedence.
402
466
  */
403
467
  getIncomingEdges(targetId: string, kinds?: EdgeKind[]): Edge[];
468
+ /**
469
+ * Outgoing edges for MANY source nodes in one query.
470
+ *
471
+ * The batch form of {@link getOutgoingEdges}. Building a nested outline needs
472
+ * the `contains` edges of every container in a file at once; doing that one
473
+ * source at a time is a query per symbol on files that have hundreds.
474
+ */
475
+ getOutgoingEdgesFrom(sourceIds: readonly string[], kinds?: EdgeKind[]): Edge[];
476
+ /**
477
+ * Fan-in (total incoming edge count) for MANY nodes in one query.
478
+ *
479
+ * The per-node alternative — `getIncomingEdges(id).length` — is an indexed
480
+ * lookup each, but a symbol screen rendering a couple of hundred callees
481
+ * would issue a couple of hundred of them. Ids with no incoming edges are
482
+ * absent from the map rather than present as 0, so callers can tell "no
483
+ * edges" from "not asked about".
484
+ */
485
+ countIncomingEdges(ids: readonly string[]): Map<string, number>;
486
+ /**
487
+ * Incoming edges for MANY target nodes in one query — the mirror of
488
+ * {@link getOutgoingEdgesFrom}. Needed wherever a whole file's inbound edges
489
+ * are wanted at once ("which files import anything in this one?").
490
+ */
491
+ getIncomingEdgesTo(targetIds: readonly string[], kinds?: EdgeKind[]): Edge[];
492
+ /**
493
+ * Fan-out (total outgoing edge count) for MANY nodes in one query — the
494
+ * mirror of {@link countIncomingEdges}. Ids with no outgoing edges are absent
495
+ * from the map rather than present as 0.
496
+ */
497
+ countOutgoingEdges(ids: readonly string[]): Map<string, number>;
498
+ /**
499
+ * Symbols nothing in the index points at — the candidate set behind the dead
500
+ * code list (`src/graph/dead-code.ts`).
501
+ *
502
+ * "Points at" is every edge kind EXCEPT `contains`: a class containing a
503
+ * method is structure, not use, and counting it would make every member look
504
+ * reached by its own container. A self-edge is excluded for the same reason
505
+ * a recursive function is not its own caller.
506
+ *
507
+ * One scan, one index probe per candidate. `NOT EXISTS` over
508
+ * `idx_edges_target_kind` is what keeps it that way — the alternative
509
+ * (`LEFT JOIN edges … GROUP BY`) builds a row per edge for the whole table
510
+ * before discarding all but the empty groups. Ordered by position so the
511
+ * answer is stable across runs and groups by file without a second sort.
512
+ *
513
+ * The result is deliberately NOT called dead code: an unreferenced symbol is
514
+ * a symbol with no STATIC reference, and the caller applies the exclusions
515
+ * (tests, generated files, overrides, unresolved names) that turn the
516
+ * candidate set into a claim worth making.
517
+ */
518
+ getUnreferencedNodes(kinds: readonly string[], limit: number): Array<{
519
+ node: Node;
520
+ generated: boolean;
521
+ }>;
522
+ /**
523
+ * Which of `names` the index holds an UNRESOLVED reference to.
524
+ *
525
+ * The point is honesty about our own blind spots. A `failed` row in
526
+ * `unresolved_refs` records that some file referenced a name and the resolver
527
+ * could not decide what it meant — so a symbol with that name cannot be
528
+ * called unreferenced, whatever the edge table says. It is deliberately
529
+ * matched loosely, on the reference name AND on its tail (`util.greet` →
530
+ * `greet`), because the question being asked is "could this name be the one
531
+ * we failed to follow", and a maybe has to count as a yes.
532
+ *
533
+ * Bounded-lookup like {@link getGeneratedPathsAmong}: the caller holds a
534
+ * candidate list, so this is a chunked probe over `idx_unresolved_name`, not
535
+ * a scan of the table.
536
+ */
537
+ getUnresolvedNamesAmong(names: Iterable<string>): Set<string>;
538
+ /**
539
+ * Which of `nodeIds` extend or implement a type the resolver could not follow.
540
+ * An ancestor outside the index (`React.Component`, `stream.Transform`, a
541
+ * framework interface) leaves no edge, only this `extends` / `implements`
542
+ * row, so it is the one record that such an ancestor exists (#1973).
543
+ * Chunked probe over `idx_unresolved_from_node`.
544
+ */
545
+ getUnresolvedSupertypeSourcesAmong(nodeIds: Iterable<string>): Set<string>;
546
+ /**
547
+ * Which of `names` are carried by MORE THAN ONE symbol, at least one of which
548
+ * something points at.
549
+ *
550
+ * The false positive this exists to kill: `CodeGraph.getTopRouteFile` calls
551
+ * `this.queries.getTopRouteFile()`, and the resolver — which prefers a
552
+ * same-name definition in the call site's own file — attaches that edge to
553
+ * the *calling* method. One of the two ends up with a self-edge and the other
554
+ * with nothing at all, and neither is unreferenced. From the edge table the
555
+ * mis-resolution and a genuinely unused twin are the same picture, so the
556
+ * claim is not made about either.
557
+ *
558
+ * Both halves of the condition are load-bearing. **More than one symbol**:
559
+ * a uniquely-named function that only calls itself is genuinely dead, and
560
+ * excluding every recursive function would gut the list. **Self-edges
561
+ * counted**: the self-edge IS the fingerprint of the mis-resolution above, so
562
+ * it has to count as evidence that this name resolves somewhere.
563
+ *
564
+ * Chunked probe over `idx_nodes_name`, bounded by the caller's candidate list.
565
+ */
566
+ getAmbiguousReferencedNames(names: Iterable<string>): Set<string>;
567
+ /**
568
+ * Which of the given languages the index records an EXPORT marker for.
569
+ *
570
+ * A self-measurement, and the honest basis for a whole class of exclusion.
571
+ * The dead code report's strongest filter is "exported symbols may be reached
572
+ * from outside this repository" — and that filter silently does nothing for a
573
+ * language whose exports are not recorded, either because the extractor does
574
+ * not record them (Rust `pub`) or because the language has no such concept at
575
+ * all (Python, C, Ruby: the header or the module IS the surface). Rather than
576
+ * carry a table of which is which, ask the index: if nothing in this language
577
+ * is marked exported, the filter did not run, and no claim about outside
578
+ * reachability can be made for it.
579
+ *
580
+ * `idx_nodes_language` covers the grouping; the caller passes the handful of
581
+ * languages its candidates are actually in.
582
+ */
583
+ getLanguagesWithExports(languages: Iterable<string>): Set<string>;
584
+ /**
585
+ * The nodes with the most DISTINCT dependents, most first.
586
+ *
587
+ * "Distinct" is the difference that matters: a helper called forty times from
588
+ * one function has a fan-in of 40 but exactly one dependent. This counts the
589
+ * second thing — the number a reader means by "N callers" — so the top of
590
+ * this list is the set of symbols a change actually radiates furthest from.
591
+ *
592
+ * `contains` is excluded because it is structure, not dependency: counting it
593
+ * would rank every file and class above the code they hold.
594
+ */
595
+ getTopDependedOn(limit: number): Array<{
596
+ nodeId: string;
597
+ dependents: number;
598
+ }>;
599
+ /**
600
+ * The graph's executable roots — files that RUN something at module level,
601
+ * ranked by how much of the project they set in motion.
602
+ *
603
+ * The engine records a statement at the top level of a file as an edge from
604
+ * the *file* node, so `src/bin/codegraph.ts` calling `program.parse()` at
605
+ * module scope is a `calls` edge out of a `file`. That set is what makes the
606
+ * roots of a dependency graph visible: a library module holds definitions and
607
+ * runs nothing until someone imports it, while a CLI, a worker entry or a
608
+ * build script does its work on the way down the file. `instantiates` counts
609
+ * the same way — `new Server(...)` at module scope is the same act.
610
+ *
611
+ * A call made while initializing a module-level `variable` / `constant` —
612
+ * `const service = new Service()`, `app = FastAPI()` — is attributed to the
613
+ * declared name (#693), not to the file, so the file's own edges alone would
614
+ * miss most of what a real entry point runs. Those names are the file's
615
+ * top-level code too, so `tops` counts them alongside the file node.
616
+ *
617
+ * Ranking multiplies the two things an entry point does: it runs (calls), and
618
+ * it wires the project together (distinct other files its symbols reach). One
619
+ * alone is misleading — a registration table makes hundreds of module-level
620
+ * calls into itself, and a barrel file imports everything and runs nothing.
621
+ * The product puts the file that does both at the top.
622
+ */
623
+ getTopCallingFiles(limit: number): Array<{
624
+ nodeId: string;
625
+ filePath: string;
626
+ calls: number;
627
+ reaches: number;
628
+ score: number;
629
+ }>;
630
+ /**
631
+ * How many OTHER files depend on each of the given files.
632
+ *
633
+ * Counted through the symbols, not the file nodes: an `imports` edge points
634
+ * at the imported symbol, so a file node almost never receives one and
635
+ * counting edges into it would report every file as depended on by nobody.
636
+ * Same-file edges are excluded, which is what makes zero mean "nothing else
637
+ * in the index reaches into this file" — the honest reading of a root.
638
+ */
639
+ getFileDependentCounts(filePaths: string[]): Array<{
640
+ filePath: string;
641
+ dependents: number;
642
+ }>;
643
+ /**
644
+ * How far each of the given files reaches OUT: distinct other files its
645
+ * symbols touch, and how many references that is.
646
+ *
647
+ * The mirror of {@link getFileDependentCounts}, and the same reasoning about
648
+ * `contains` and same-file edges applies. It is driven from `nodes` rather
649
+ * than from `edges` so the work is proportional to the files asked about —
650
+ * the entry-points endpoint asks it about every test file in the index, and
651
+ * an edge-first plan would scan the whole table to answer a question about a
652
+ * tenth of it.
653
+ */
654
+ getFileReachCounts(filePaths: string[]): Array<{
655
+ filePath: string;
656
+ reaches: number;
657
+ refs: number;
658
+ }>;
659
+ /**
660
+ * The `file` nodes for the given paths, in one query.
661
+ *
662
+ * A file's own node is what makes a file row navigable, and looking it up
663
+ * with {@link getNodesInFile} means materialising every symbol in the file to
664
+ * throw all but one away.
665
+ */
666
+ getFileNodes(filePaths: string[]): Node[];
667
+ /**
668
+ * Roll the whole edge table up to module granularity in one pass.
669
+ *
670
+ * The caller decides what a module IS — it hands in a file → module
671
+ * assignment and gets back the cross-module traffic. That split is
672
+ * deliberate: naming modules is a *policy* (top-level directories, a façade
673
+ * file kept separate, a monorepo root) that belongs where the reader lives,
674
+ * while grouping a million edges by it is *mechanics* that must happen in
675
+ * SQLite. Doing the fold in JavaScript instead means materialising every
676
+ * cross-file edge in memory; doing the naming in SQL means a tower of
677
+ * `instr`/`substr` no one can read.
678
+ *
679
+ * The assignment lands in a TEMP table with a primary key, so the join is
680
+ * indexed and the result set is bounded by modules², not by edges. Temp
681
+ * tables live in SQLite's own temp database, so this stays valid against a
682
+ * read-only main.
683
+ *
684
+ * Two result sets, because they need two different groupings over the same
685
+ * join: `links` counts edges per (module, module, kind), and `pairs` names
686
+ * the busiest symbol pairs behind each link (the map's tooltip). `pairs` is
687
+ * ranked and cut inside SQLite — the un-cut grouping is the one thing here
688
+ * that scales with distinct symbol names rather than with modules. Pairs are
689
+ * ranked by `declared` before raw count, so a link's tooltip names the
690
+ * symbols the source actually points at rather than whichever `has`/`get`
691
+ * happened to name-match most often.
692
+ *
693
+ * `declared` is the subset of a link's edges that came from something the
694
+ * source *writes down*: an import, a qualified name, an inheritance clause,
695
+ * or a call through a typed receiver. It exists because bare name matching
696
+ * (`resolvedBy: 'exact-match'`) is what invents cross-module links out of
697
+ * common method names — `run`, `push`, `finish` — and a map that lets those
698
+ * decide the layering puts the storage layer above the CLI.
699
+ */
700
+ aggregateModuleGraph(assignments: ReadonlyArray<{
701
+ filePath: string;
702
+ module: string;
703
+ }>, options: {
704
+ kinds: readonly EdgeKind[];
705
+ minConfidence: number;
706
+ topPairsPerLink: number;
707
+ pairKinds: readonly EdgeKind[];
708
+ }): {
709
+ links: Array<{
710
+ source: string;
711
+ target: string;
712
+ kind: EdgeKind;
713
+ count: number;
714
+ declared: number;
715
+ uncertain: number;
716
+ }>;
717
+ pairs: Array<{
718
+ source: string;
719
+ target: string;
720
+ from: string;
721
+ to: string;
722
+ count: number;
723
+ declared: number;
724
+ }>;
725
+ };
726
+ /**
727
+ * Every ordered pair of files where one reaches into the other, once each.
728
+ *
729
+ * The input a cycle finder wants: file-level circular dependencies are the
730
+ * strongly connected components of this graph. One query instead of the
731
+ * dependency lookup per file that {@link GraphQueryManager.findCircularDependencies}
732
+ * does — which matters because a cycle report is only interesting on a large
733
+ * repo, and that is exactly where a query per file stops being affordable.
734
+ *
735
+ * `contains` is excluded (a file "contains" its own symbols, which is not a
736
+ * dependency), and so are same-file edges and low-confidence name matches:
737
+ * a cycle conjured by a common method name is a false alarm a reader cannot
738
+ * check.
739
+ */
740
+ getCrossFileDependencyPairs(minConfidence: number): Array<{
741
+ source: string;
742
+ target: string;
743
+ }>;
744
+ /**
745
+ * Every unresolved reference recorded in one FILE, ordered by line.
746
+ *
747
+ * The per-symbol form above answers "what does this body reach that the
748
+ * index does not hold". A whole-file reader asks the same question of every
749
+ * line at once, and asking it one symbol at a time is a query per symbol —
750
+ * 153 of them on this repo's largest file. `unresolved_refs.file_path` is
751
+ * indexed, so this is one lookup whatever the file holds.
752
+ *
753
+ * `limit` bounds the answer rather than the work: the caller draws a marker
754
+ * per row, and a generated file with fifty thousand of them would ship
755
+ * megabytes to say something a count already says. Rows come back in line
756
+ * order, so a cap trims the END of the file, which is at least legible.
757
+ */
758
+ getUnresolvedReferencesInFile(filePath: string, limit?: number): UnresolvedReference[];
759
+ /**
760
+ * References recorded against a symbol that never resolved to a node — the
761
+ * calls and type mentions that leave the index (a third-party package, a
762
+ * runtime builtin, a language construct extraction doesn't model).
763
+ *
764
+ * Read-only. It exists so a reader can say "N calls into symbols outside the
765
+ * index" instead of silently showing a callee list shorter than the body's
766
+ * call sites, which reads as "nothing else happens here".
767
+ */
768
+ getUnresolvedReferencesFrom(fromNodeId: string): UnresolvedReference[];
404
769
  /**
405
770
  * Find all edges where both source and target are in the given node set.
406
771
  * Useful for recovering inter-node connectivity after BFS.
@@ -499,6 +864,29 @@ export declare class QueryBuilder {
499
864
  * restricted to the candidate list: the file that imports it is usually
500
865
  * not itself a candidate.
501
866
  *
867
+ * ### Interface MEMBERS are transparent to all four conditions
868
+ *
869
+ * A `method_signature` / `property_signature` inside an interface enters the
870
+ * graph as a `method` / `property` node (#1638). Read literally that would
871
+ * break every condition here at once: condition 2 sees non-type kinds and
872
+ * stops flagging, and — worse, because it is silent — condition 4 starts
873
+ * seeing inbound `calls` edges the moment a call site through the shim's API
874
+ * finally has a signature to land on. An ambient `.d.ts` would quietly lose
875
+ * its damping precisely BECAUSE the platform API it declares is widely used.
876
+ *
877
+ * So an interface-owned member is treated the way `parameter` already is: it
878
+ * neither qualifies, disqualifies, nor counts as inbound dependency. That is
879
+ * not a new judgement call, it is what keeps the rule measuring what it was
880
+ * measured on — before #1638 these nodes did not exist, so excluding them
881
+ * reproduces the 0–4% flag rate the thresholds above were tuned against. It
882
+ * is also the semantically right answer: a signature with no body is on the
883
+ * same side of the line as the interface that owns it, and a call edge
884
+ * landing on one is still not a file that can answer a flow question.
885
+ *
886
+ * The interface ITSELF is untouched: the `references` edges an importing
887
+ * module aims at `UploadStorage` still disqualify the file under (4), which
888
+ * is what keeps a depended-on `types.ts` out of the flag.
889
+ *
502
890
  * Bounded-lookup like {@link getGeneratedPathsAmong}: callers hold a ranked
503
891
  * candidate list, so this is a partial-index probe over a handful of paths.
504
892
  */
@@ -528,6 +916,33 @@ export declare class QueryBuilder {
528
916
  * null when nothing is indexed yet. One indexed aggregate, no per-row scan. (#329)
529
917
  */
530
918
  getLastIndexedAt(): number | null;
919
+ /**
920
+ * The index's revision marker: how far the last sync got, and how many files
921
+ * it left behind — one query, both numbers.
922
+ *
923
+ * This is the cheapest honest answer to "has the index moved since I last
924
+ * looked". `MAX(indexed_at)` alone is not enough: a sync that only DELETES
925
+ * files (a branch checkout that removed a directory) advances nothing, and
926
+ * the graph the viewer is showing has still changed underneath it. The row
927
+ * count catches exactly that case.
928
+ */
929
+ getIndexRevision(): {
930
+ lastIndexedAt: number | null;
931
+ fileCount: number;
932
+ };
933
+ /**
934
+ * Files re-indexed strictly after `since` (ms since epoch), newest first.
935
+ *
936
+ * `total` is the real count; `paths` is capped at `limit`. Used by the
937
+ * viewer's live channel to name what a sync just picked up. A file the same
938
+ * sync DELETED cannot appear here — it has no row left — which is why the
939
+ * caller compares {@link getIndexRevision} as well rather than treating an
940
+ * empty list as "nothing happened".
941
+ */
942
+ getFilesIndexedSince(since: number, limit: number): {
943
+ paths: string[];
944
+ total: number;
945
+ };
531
946
  /**
532
947
  * Get files that need re-indexing (hash changed)
533
948
  */
@@ -575,7 +990,7 @@ export declare class QueryBuilder {
575
990
  * (§7a.2) — while the seek is O(batch) forever. `id` is the rowid alias, so
576
991
  * the enumeration order is identical to the OFFSET reader's.
577
992
  */
578
- getUnresolvedReferencesBatchAfter(afterRowId: number, limit: number): UnresolvedReference[];
993
+ getUnresolvedReferencesBatchAfter(afterRowId: number, limit: number, prerequisites?: boolean): UnresolvedReference[];
579
994
  /**
580
995
  * Get all tracked file paths (lightweight — no full FileRecord objects)
581
996
  */
@@ -689,6 +1104,11 @@ export declare class QueryBuilder {
689
1104
  }>;
690
1105
  /** Delete edges by primary key — the rebind pass's half of a re-resolution. */
691
1106
  deleteEdgesByIds(edgeIds: number[]): number;
1107
+ /**
1108
+ * Replace resolution edges with their original unresolved references as one
1109
+ * transaction. If ref insertion fails, the edge deletion is rolled back.
1110
+ */
1111
+ replaceResolutionEdgesWithUnresolvedRefs(edgeIds: number[], refs: UnresolvedReference[]): number;
692
1112
  /**
693
1113
  * Distinct node names present in the given files — the symbol names a sync
694
1114
  * pass uses to look up retryable failed refs after those files changed.
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/db/queries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAmB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,aAAa,EACb,YAAY,EACb,MAAM,UAAU,CAAC;AAuClB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B,OAAO,CAAC;AA+InD;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,EAAE,CAAiB;IAM3B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,mBAAmB,CAA8C;IAGzE,OAAO,CAAC,SAAS,CAAgC;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IAGrC,OAAO,CAAC,KAAK,CAoCN;IAMP,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAS;IASpD,OAAO,CAAC,UAAU,CAA2C;IAC7D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAsC;IAEzE;;;OAGG;IACH,OAAO,CAAC,UAAU;gBA0BN,EAAE,EAAE,c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