@colbymchenry/codegraph-win32-arm64 1.5.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 (693) 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 +744 -320
  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/formatter.d.ts +7 -1
  13. package/lib/dist/context/formatter.d.ts.map +1 -1
  14. package/lib/dist/context/formatter.js +12 -6
  15. package/lib/dist/context/formatter.js.map +1 -1
  16. package/lib/dist/context/index.d.ts +12 -0
  17. package/lib/dist/context/index.d.ts.map +1 -1
  18. package/lib/dist/context/index.js +103 -16
  19. package/lib/dist/context/index.js.map +1 -1
  20. package/lib/dist/db/index.d.ts +58 -2
  21. package/lib/dist/db/index.d.ts.map +1 -1
  22. package/lib/dist/db/index.js +187 -32
  23. package/lib/dist/db/index.js.map +1 -1
  24. package/lib/dist/db/migrations.d.ts +1 -1
  25. package/lib/dist/db/migrations.d.ts.map +1 -1
  26. package/lib/dist/db/migrations.js +64 -1
  27. package/lib/dist/db/migrations.js.map +1 -1
  28. package/lib/dist/db/queries.d.ts +583 -6
  29. package/lib/dist/db/queries.d.ts.map +1 -1
  30. package/lib/dist/db/queries.js +1417 -57
  31. package/lib/dist/db/queries.js.map +1 -1
  32. package/lib/dist/db/schema.sql +27 -4
  33. package/lib/dist/db/sqlite-adapter.d.ts +2 -0
  34. package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
  35. package/lib/dist/db/sqlite-adapter.js +56 -7
  36. package/lib/dist/db/sqlite-adapter.js.map +1 -1
  37. package/lib/dist/db/synthesis-stage.d.ts +12 -0
  38. package/lib/dist/db/synthesis-stage.d.ts.map +1 -0
  39. package/lib/dist/db/synthesis-stage.js +89 -0
  40. package/lib/dist/db/synthesis-stage.js.map +1 -0
  41. package/lib/dist/db/wal-valve.d.ts +32 -12
  42. package/lib/dist/db/wal-valve.d.ts.map +1 -1
  43. package/lib/dist/db/wal-valve.js +65 -22
  44. package/lib/dist/db/wal-valve.js.map +1 -1
  45. package/lib/dist/db/wsl-shared-index.d.ts +53 -0
  46. package/lib/dist/db/wsl-shared-index.d.ts.map +1 -0
  47. package/lib/dist/db/wsl-shared-index.js +121 -0
  48. package/lib/dist/db/wsl-shared-index.js.map +1 -0
  49. package/lib/dist/directory.d.ts +130 -2
  50. package/lib/dist/directory.d.ts.map +1 -1
  51. package/lib/dist/directory.js +306 -23
  52. package/lib/dist/directory.js.map +1 -1
  53. package/lib/dist/errors.d.ts +14 -0
  54. package/lib/dist/errors.d.ts.map +1 -1
  55. package/lib/dist/errors.js +16 -1
  56. package/lib/dist/errors.js.map +1 -1
  57. package/lib/dist/extraction/cfml-extractor.d.ts +1 -0
  58. package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
  59. package/lib/dist/extraction/cfml-extractor.js +15 -3
  60. package/lib/dist/extraction/cfml-extractor.js.map +1 -1
  61. package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -1
  62. package/lib/dist/extraction/dfm-extractor.js +14 -10
  63. package/lib/dist/extraction/dfm-extractor.js.map +1 -1
  64. package/lib/dist/extraction/extraction-version.d.ts +1 -1
  65. package/lib/dist/extraction/extraction-version.js +1 -1
  66. package/lib/dist/extraction/function-ref.d.ts +6 -4
  67. package/lib/dist/extraction/function-ref.d.ts.map +1 -1
  68. package/lib/dist/extraction/function-ref.js +41 -14
  69. package/lib/dist/extraction/function-ref.js.map +1 -1
  70. package/lib/dist/extraction/generated-detection.d.ts +48 -12
  71. package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
  72. package/lib/dist/extraction/generated-detection.js +176 -11
  73. package/lib/dist/extraction/generated-detection.js.map +1 -1
  74. package/lib/dist/extraction/grammars.d.ts +38 -0
  75. package/lib/dist/extraction/grammars.d.ts.map +1 -1
  76. package/lib/dist/extraction/grammars.js +115 -3
  77. package/lib/dist/extraction/grammars.js.map +1 -1
  78. package/lib/dist/extraction/index.d.ts +218 -14
  79. package/lib/dist/extraction/index.d.ts.map +1 -1
  80. package/lib/dist/extraction/index.js +874 -176
  81. package/lib/dist/extraction/index.js.map +1 -1
  82. package/lib/dist/extraction/languages/c-cpp.d.ts +58 -0
  83. package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
  84. package/lib/dist/extraction/languages/c-cpp.js +310 -19
  85. package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
  86. package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
  87. package/lib/dist/extraction/languages/dart.js +8 -3
  88. package/lib/dist/extraction/languages/dart.js.map +1 -1
  89. package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
  90. package/lib/dist/extraction/languages/erlang.js +58 -22
  91. package/lib/dist/extraction/languages/erlang.js.map +1 -1
  92. package/lib/dist/extraction/languages/javascript.js +1 -1
  93. package/lib/dist/extraction/languages/javascript.js.map +1 -1
  94. package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
  95. package/lib/dist/extraction/languages/kotlin.js +169 -36
  96. package/lib/dist/extraction/languages/kotlin.js.map +1 -1
  97. package/lib/dist/extraction/languages/lua.d.ts.map +1 -1
  98. package/lib/dist/extraction/languages/lua.js +4 -1
  99. package/lib/dist/extraction/languages/lua.js.map +1 -1
  100. package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
  101. package/lib/dist/extraction/languages/objc.js +4 -0
  102. package/lib/dist/extraction/languages/objc.js.map +1 -1
  103. package/lib/dist/extraction/languages/python.d.ts.map +1 -1
  104. package/lib/dist/extraction/languages/python.js +71 -0
  105. package/lib/dist/extraction/languages/python.js.map +1 -1
  106. package/lib/dist/extraction/languages/rust.d.ts +20 -0
  107. package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
  108. package/lib/dist/extraction/languages/rust.js +50 -20
  109. package/lib/dist/extraction/languages/rust.js.map +1 -1
  110. package/lib/dist/extraction/languages/scala.d.ts.map +1 -1
  111. package/lib/dist/extraction/languages/scala.js +18 -3
  112. package/lib/dist/extraction/languages/scala.js.map +1 -1
  113. package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
  114. package/lib/dist/extraction/languages/typescript.js +9 -2
  115. package/lib/dist/extraction/languages/typescript.js.map +1 -1
  116. package/lib/dist/extraction/liquid-extractor.d.ts +18 -0
  117. package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
  118. package/lib/dist/extraction/liquid-extractor.js +98 -22
  119. package/lib/dist/extraction/liquid-extractor.js.map +1 -1
  120. package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -1
  121. package/lib/dist/extraction/mybatis-extractor.js +6 -4
  122. package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
  123. package/lib/dist/extraction/parse-pool.d.ts +7 -0
  124. package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
  125. package/lib/dist/extraction/parse-pool.js +20 -1
  126. package/lib/dist/extraction/parse-pool.js.map +1 -1
  127. package/lib/dist/extraction/syntax-tokens.d.ts +103 -0
  128. package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -0
  129. package/lib/dist/extraction/syntax-tokens.js +381 -0
  130. package/lib/dist/extraction/syntax-tokens.js.map +1 -0
  131. package/lib/dist/extraction/tree-sitter-helpers.d.ts +5 -0
  132. package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
  133. package/lib/dist/extraction/tree-sitter-helpers.js +17 -0
  134. package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
  135. package/lib/dist/extraction/tree-sitter-types.d.ts +31 -3
  136. package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
  137. package/lib/dist/extraction/tree-sitter.d.ts +101 -18
  138. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  139. package/lib/dist/extraction/tree-sitter.js +926 -132
  140. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  141. package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
  142. package/lib/dist/file-limits.d.ts +40 -0
  143. package/lib/dist/file-limits.d.ts.map +1 -0
  144. package/lib/dist/file-limits.js +147 -0
  145. package/lib/dist/file-limits.js.map +1 -0
  146. package/lib/dist/graph/branch-guards.d.ts +248 -0
  147. package/lib/dist/graph/branch-guards.d.ts.map +1 -0
  148. package/lib/dist/graph/branch-guards.js +2231 -0
  149. package/lib/dist/graph/branch-guards.js.map +1 -0
  150. package/lib/dist/graph/dead-code.d.ts +251 -0
  151. package/lib/dist/graph/dead-code.d.ts.map +1 -0
  152. package/lib/dist/graph/dead-code.js +776 -0
  153. package/lib/dist/graph/dead-code.js.map +1 -0
  154. package/lib/dist/graph/dynamic-boundary-report.d.ts +121 -0
  155. package/lib/dist/graph/dynamic-boundary-report.d.ts.map +1 -0
  156. package/lib/dist/graph/dynamic-boundary-report.js +283 -0
  157. package/lib/dist/graph/dynamic-boundary-report.js.map +1 -0
  158. package/lib/dist/graph/index.d.ts +4 -0
  159. package/lib/dist/graph/index.d.ts.map +1 -1
  160. package/lib/dist/graph/index.js +16 -1
  161. package/lib/dist/graph/index.js.map +1 -1
  162. package/lib/dist/graph/named-symbol-flow.d.ts +125 -0
  163. package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -0
  164. package/lib/dist/graph/named-symbol-flow.js +552 -0
  165. package/lib/dist/graph/named-symbol-flow.js.map +1 -0
  166. package/lib/dist/graph/queries.d.ts.map +1 -1
  167. package/lib/dist/graph/queries.js +2 -0
  168. package/lib/dist/graph/queries.js.map +1 -1
  169. package/lib/dist/graph/symbol-lookup.d.ts +83 -0
  170. package/lib/dist/graph/symbol-lookup.d.ts.map +1 -0
  171. package/lib/dist/graph/symbol-lookup.js +181 -0
  172. package/lib/dist/graph/symbol-lookup.js.map +1 -0
  173. package/lib/dist/graph/traversal.d.ts +9 -0
  174. package/lib/dist/graph/traversal.d.ts.map +1 -1
  175. package/lib/dist/graph/traversal.js +62 -36
  176. package/lib/dist/graph/traversal.js.map +1 -1
  177. package/lib/dist/graph/type-hierarchy.d.ts +155 -0
  178. package/lib/dist/graph/type-hierarchy.d.ts.map +1 -0
  179. package/lib/dist/graph/type-hierarchy.js +382 -0
  180. package/lib/dist/graph/type-hierarchy.js.map +1 -0
  181. package/lib/dist/index.d.ts +273 -11
  182. package/lib/dist/index.d.ts.map +1 -1
  183. package/lib/dist/index.js +511 -34
  184. package/lib/dist/index.js.map +1 -1
  185. package/lib/dist/installer/index.d.ts +4 -3
  186. package/lib/dist/installer/index.d.ts.map +1 -1
  187. package/lib/dist/installer/index.js +11 -8
  188. package/lib/dist/installer/index.js.map +1 -1
  189. package/lib/dist/installer/targets/antigravity.d.ts.map +1 -1
  190. package/lib/dist/installer/targets/antigravity.js +14 -2
  191. package/lib/dist/installer/targets/antigravity.js.map +1 -1
  192. package/lib/dist/installer/targets/claude.d.ts +3 -0
  193. package/lib/dist/installer/targets/claude.d.ts.map +1 -1
  194. package/lib/dist/installer/targets/claude.js +72 -12
  195. package/lib/dist/installer/targets/claude.js.map +1 -1
  196. package/lib/dist/installer/targets/codex.d.ts +23 -8
  197. package/lib/dist/installer/targets/codex.d.ts.map +1 -1
  198. package/lib/dist/installer/targets/codex.js +74 -47
  199. package/lib/dist/installer/targets/codex.js.map +1 -1
  200. package/lib/dist/installer/targets/copilot-cli.d.ts +32 -0
  201. package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -0
  202. package/lib/dist/installer/targets/copilot-cli.js +215 -0
  203. package/lib/dist/installer/targets/copilot-cli.js.map +1 -0
  204. package/lib/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
  205. package/lib/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
  206. package/lib/dist/installer/targets/copilot-jetbrains.js +238 -0
  207. package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -0
  208. package/lib/dist/installer/targets/copilot-vscode.d.ts +47 -0
  209. package/lib/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
  210. package/lib/dist/installer/targets/copilot-vscode.js +219 -0
  211. package/lib/dist/installer/targets/copilot-vscode.js.map +1 -0
  212. package/lib/dist/installer/targets/opencode.d.ts +16 -5
  213. package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
  214. package/lib/dist/installer/targets/opencode.js +73 -22
  215. package/lib/dist/installer/targets/opencode.js.map +1 -1
  216. package/lib/dist/installer/targets/registry.d.ts.map +1 -1
  217. package/lib/dist/installer/targets/registry.js +6 -0
  218. package/lib/dist/installer/targets/registry.js.map +1 -1
  219. package/lib/dist/installer/targets/shared.d.ts +14 -3
  220. package/lib/dist/installer/targets/shared.d.ts.map +1 -1
  221. package/lib/dist/installer/targets/shared.js +39 -11
  222. package/lib/dist/installer/targets/shared.js.map +1 -1
  223. package/lib/dist/installer/targets/toml.d.ts +6 -5
  224. package/lib/dist/installer/targets/toml.d.ts.map +1 -1
  225. package/lib/dist/installer/targets/toml.js +99 -20
  226. package/lib/dist/installer/targets/toml.js.map +1 -1
  227. package/lib/dist/installer/targets/types.d.ts +12 -5
  228. package/lib/dist/installer/targets/types.d.ts.map +1 -1
  229. package/lib/dist/mcp/answer-freshness.d.ts +10 -0
  230. package/lib/dist/mcp/answer-freshness.d.ts.map +1 -0
  231. package/lib/dist/mcp/answer-freshness.js +68 -0
  232. package/lib/dist/mcp/answer-freshness.js.map +1 -0
  233. package/lib/dist/mcp/daemon-manager.d.ts +1 -1
  234. package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
  235. package/lib/dist/mcp/daemon-manager.js +17 -1
  236. package/lib/dist/mcp/daemon-manager.js.map +1 -1
  237. package/lib/dist/mcp/daemon-paths.d.ts +8 -0
  238. package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
  239. package/lib/dist/mcp/daemon-paths.js +65 -2
  240. package/lib/dist/mcp/daemon-paths.js.map +1 -1
  241. package/lib/dist/mcp/daemon-registry.d.ts +17 -4
  242. package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
  243. package/lib/dist/mcp/daemon-registry.js +133 -23
  244. package/lib/dist/mcp/daemon-registry.js.map +1 -1
  245. package/lib/dist/mcp/daemon.d.ts +26 -13
  246. package/lib/dist/mcp/daemon.d.ts.map +1 -1
  247. package/lib/dist/mcp/daemon.js +126 -32
  248. package/lib/dist/mcp/daemon.js.map +1 -1
  249. package/lib/dist/mcp/dynamic-boundaries.d.ts +1 -10
  250. package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -1
  251. package/lib/dist/mcp/dynamic-boundaries.js +46 -42
  252. package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
  253. package/lib/dist/mcp/engine.d.ts +31 -9
  254. package/lib/dist/mcp/engine.d.ts.map +1 -1
  255. package/lib/dist/mcp/engine.js +190 -64
  256. package/lib/dist/mcp/engine.js.map +1 -1
  257. package/lib/dist/mcp/explore-dedup.d.ts +140 -0
  258. package/lib/dist/mcp/explore-dedup.d.ts.map +1 -0
  259. package/lib/dist/mcp/explore-dedup.js +239 -0
  260. package/lib/dist/mcp/explore-dedup.js.map +1 -0
  261. package/lib/dist/mcp/explore-diagnostics.d.ts +289 -0
  262. package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -0
  263. package/lib/dist/mcp/explore-diagnostics.js +558 -0
  264. package/lib/dist/mcp/explore-diagnostics.js.map +1 -0
  265. package/lib/dist/mcp/explore-session-state.d.ts +217 -0
  266. package/lib/dist/mcp/explore-session-state.d.ts.map +1 -0
  267. package/lib/dist/mcp/explore-session-state.js +322 -0
  268. package/lib/dist/mcp/explore-session-state.js.map +1 -0
  269. package/lib/dist/mcp/index-freshness-worker.d.ts +2 -0
  270. package/lib/dist/mcp/index-freshness-worker.d.ts.map +1 -0
  271. package/lib/dist/mcp/index-freshness-worker.js +30 -0
  272. package/lib/dist/mcp/index-freshness-worker.js.map +1 -0
  273. package/lib/dist/mcp/index-freshness.d.ts +7 -0
  274. package/lib/dist/mcp/index-freshness.d.ts.map +1 -0
  275. package/lib/dist/mcp/index-freshness.js +94 -0
  276. package/lib/dist/mcp/index-freshness.js.map +1 -0
  277. package/lib/dist/mcp/index.d.ts +27 -1
  278. package/lib/dist/mcp/index.d.ts.map +1 -1
  279. package/lib/dist/mcp/index.js +159 -14
  280. package/lib/dist/mcp/index.js.map +1 -1
  281. package/lib/dist/mcp/liveness-watchdog.d.ts +4 -1
  282. package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
  283. package/lib/dist/mcp/liveness-watchdog.js +14 -3
  284. package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
  285. package/lib/dist/mcp/project-lifecycle.d.ts +9 -0
  286. package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -0
  287. package/lib/dist/mcp/project-lifecycle.js +181 -0
  288. package/lib/dist/mcp/project-lifecycle.js.map +1 -0
  289. package/lib/dist/mcp/proxy.d.ts.map +1 -1
  290. package/lib/dist/mcp/proxy.js +15 -1
  291. package/lib/dist/mcp/proxy.js.map +1 -1
  292. package/lib/dist/mcp/query-pool.d.ts +2 -2
  293. package/lib/dist/mcp/query-pool.d.ts.map +1 -1
  294. package/lib/dist/mcp/query-pool.js +9 -7
  295. package/lib/dist/mcp/query-pool.js.map +1 -1
  296. package/lib/dist/mcp/query-worker.js +2 -2
  297. package/lib/dist/mcp/query-worker.js.map +1 -1
  298. package/lib/dist/mcp/server-instructions.d.ts +2 -2
  299. package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
  300. package/lib/dist/mcp/server-instructions.js +13 -5
  301. package/lib/dist/mcp/server-instructions.js.map +1 -1
  302. package/lib/dist/mcp/session.d.ts +16 -0
  303. package/lib/dist/mcp/session.d.ts.map +1 -1
  304. package/lib/dist/mcp/session.js +36 -13
  305. package/lib/dist/mcp/session.js.map +1 -1
  306. package/lib/dist/mcp/startup-handshake.d.ts +3 -1
  307. package/lib/dist/mcp/startup-handshake.d.ts.map +1 -1
  308. package/lib/dist/mcp/startup-handshake.js +10 -2
  309. package/lib/dist/mcp/startup-handshake.js.map +1 -1
  310. package/lib/dist/mcp/tools.d.ts +544 -38
  311. package/lib/dist/mcp/tools.d.ts.map +1 -1
  312. package/lib/dist/mcp/tools.js +4246 -770
  313. package/lib/dist/mcp/tools.js.map +1 -1
  314. package/lib/dist/mcp/writer-lock.d.ts +61 -0
  315. package/lib/dist/mcp/writer-lock.d.ts.map +1 -0
  316. package/lib/dist/mcp/writer-lock.js +260 -0
  317. package/lib/dist/mcp/writer-lock.js.map +1 -0
  318. package/lib/dist/project-config.d.ts +23 -0
  319. package/lib/dist/project-config.d.ts.map +1 -1
  320. package/lib/dist/project-config.js +39 -2
  321. package/lib/dist/project-config.js.map +1 -1
  322. package/lib/dist/resolution/alias-binding.d.ts +56 -0
  323. package/lib/dist/resolution/alias-binding.d.ts.map +1 -0
  324. package/lib/dist/resolution/alias-binding.js +127 -0
  325. package/lib/dist/resolution/alias-binding.js.map +1 -0
  326. package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
  327. package/lib/dist/resolution/c-fnptr-synthesizer.js +21 -19
  328. package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
  329. package/lib/dist/resolution/callback-synthesizer.d.ts +23 -1
  330. package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
  331. package/lib/dist/resolution/callback-synthesizer.js +330 -154
  332. package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
  333. package/lib/dist/resolution/cpp-constructor.d.ts +4 -0
  334. package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -0
  335. package/lib/dist/resolution/cpp-constructor.js +123 -0
  336. package/lib/dist/resolution/cpp-constructor.js.map +1 -0
  337. package/lib/dist/resolution/cpp-macro-visibility.d.ts +12 -0
  338. package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -0
  339. package/lib/dist/resolution/cpp-macro-visibility.js +342 -0
  340. package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -0
  341. package/lib/dist/resolution/expo-router-synthesizer.d.ts +32 -0
  342. package/lib/dist/resolution/expo-router-synthesizer.d.ts.map +1 -0
  343. package/lib/dist/resolution/expo-router-synthesizer.js +189 -0
  344. package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -0
  345. package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
  346. package/lib/dist/resolution/frameworks/csharp.js +96 -2
  347. package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
  348. package/lib/dist/resolution/frameworks/expo-router.d.ts +189 -0
  349. package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
  350. package/lib/dist/resolution/frameworks/expo-router.js +785 -0
  351. package/lib/dist/resolution/frameworks/expo-router.js.map +1 -0
  352. package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
  353. package/lib/dist/resolution/frameworks/express.js +251 -16
  354. package/lib/dist/resolution/frameworks/express.js.map +1 -1
  355. package/lib/dist/resolution/frameworks/index.d.ts +5 -0
  356. package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
  357. package/lib/dist/resolution/frameworks/index.js +29 -1
  358. package/lib/dist/resolution/frameworks/index.js.map +1 -1
  359. package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
  360. package/lib/dist/resolution/frameworks/java.js +79 -47
  361. package/lib/dist/resolution/frameworks/java.js.map +1 -1
  362. package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
  363. package/lib/dist/resolution/frameworks/nestjs.js +6 -14
  364. package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
  365. package/lib/dist/resolution/frameworks/nextjs.d.ts +76 -0
  366. package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -0
  367. package/lib/dist/resolution/frameworks/nextjs.js +328 -0
  368. package/lib/dist/resolution/frameworks/nextjs.js.map +1 -0
  369. package/lib/dist/resolution/frameworks/object-literal.d.ts +32 -0
  370. package/lib/dist/resolution/frameworks/object-literal.d.ts.map +1 -0
  371. package/lib/dist/resolution/frameworks/object-literal.js +139 -0
  372. package/lib/dist/resolution/frameworks/object-literal.js.map +1 -0
  373. package/lib/dist/resolution/frameworks/package-deps.d.ts +14 -0
  374. package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -0
  375. package/lib/dist/resolution/frameworks/package-deps.js +78 -0
  376. package/lib/dist/resolution/frameworks/package-deps.js.map +1 -0
  377. package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
  378. package/lib/dist/resolution/frameworks/python.js +166 -0
  379. package/lib/dist/resolution/frameworks/python.js.map +1 -1
  380. package/lib/dist/resolution/frameworks/react-native.d.ts +26 -0
  381. package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
  382. package/lib/dist/resolution/frameworks/react-native.js +153 -14
  383. package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
  384. package/lib/dist/resolution/frameworks/react-router.d.ts +46 -0
  385. package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -0
  386. package/lib/dist/resolution/frameworks/react-router.js +187 -0
  387. package/lib/dist/resolution/frameworks/react-router.js.map +1 -0
  388. package/lib/dist/resolution/frameworks/react.d.ts +2 -1
  389. package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
  390. package/lib/dist/resolution/frameworks/react.js +188 -139
  391. package/lib/dist/resolution/frameworks/react.js.map +1 -1
  392. package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
  393. package/lib/dist/resolution/frameworks/svelte.js +6 -1
  394. package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
  395. package/lib/dist/resolution/frameworks/sveltekit-router.d.ts +36 -0
  396. package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -0
  397. package/lib/dist/resolution/frameworks/sveltekit-router.js +156 -0
  398. package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -0
  399. package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -1
  400. package/lib/dist/resolution/frameworks/swift.js +11 -1
  401. package/lib/dist/resolution/frameworks/swift.js.map +1 -1
  402. package/lib/dist/resolution/frameworks/tanstack-router.d.ts +84 -0
  403. package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -0
  404. package/lib/dist/resolution/frameworks/tanstack-router.js +437 -0
  405. package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -0
  406. package/lib/dist/resolution/frameworks/vue-router.d.ts +82 -0
  407. package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
  408. package/lib/dist/resolution/frameworks/vue-router.js +377 -0
  409. package/lib/dist/resolution/frameworks/vue-router.js.map +1 -0
  410. package/lib/dist/resolution/import-resolver.d.ts +38 -0
  411. package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
  412. package/lib/dist/resolution/import-resolver.js +394 -28
  413. package/lib/dist/resolution/import-resolver.js.map +1 -1
  414. package/lib/dist/resolution/index.d.ts +89 -25
  415. package/lib/dist/resolution/index.d.ts.map +1 -1
  416. package/lib/dist/resolution/index.js +567 -149
  417. package/lib/dist/resolution/index.js.map +1 -1
  418. package/lib/dist/resolution/js-builtins.d.ts +13 -0
  419. package/lib/dist/resolution/js-builtins.d.ts.map +1 -0
  420. package/lib/dist/resolution/js-builtins.js +46 -0
  421. package/lib/dist/resolution/js-builtins.js.map +1 -0
  422. package/lib/dist/resolution/name-matcher.d.ts +99 -22
  423. package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
  424. package/lib/dist/resolution/name-matcher.js +2192 -87
  425. package/lib/dist/resolution/name-matcher.js.map +1 -1
  426. package/lib/dist/resolution/next-router-synthesizer.d.ts +27 -0
  427. package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -0
  428. package/lib/dist/resolution/next-router-synthesizer.js +113 -0
  429. package/lib/dist/resolution/next-router-synthesizer.js.map +1 -0
  430. package/lib/dist/resolution/path-aliases.d.ts +6 -4
  431. package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
  432. package/lib/dist/resolution/path-aliases.js +125 -17
  433. package/lib/dist/resolution/path-aliases.js.map +1 -1
  434. package/lib/dist/resolution/react-router-synthesizer.d.ts +33 -0
  435. package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
  436. package/lib/dist/resolution/react-router-synthesizer.js +126 -0
  437. package/lib/dist/resolution/react-router-synthesizer.js.map +1 -0
  438. package/lib/dist/resolution/resolver-pool.d.ts +2 -0
  439. package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
  440. package/lib/dist/resolution/resolver-pool.js +4 -0
  441. package/lib/dist/resolution/resolver-pool.js.map +1 -1
  442. package/lib/dist/resolution/strip-comments.d.ts +6 -0
  443. package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
  444. package/lib/dist/resolution/strip-comments.js +58 -0
  445. package/lib/dist/resolution/strip-comments.js.map +1 -1
  446. package/lib/dist/resolution/sveltekit-synthesizer.d.ts +58 -0
  447. package/lib/dist/resolution/sveltekit-synthesizer.d.ts.map +1 -0
  448. package/lib/dist/resolution/sveltekit-synthesizer.js +173 -0
  449. package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -0
  450. package/lib/dist/resolution/synth-utils.d.ts +26 -0
  451. package/lib/dist/resolution/synth-utils.d.ts.map +1 -0
  452. package/lib/dist/resolution/synth-utils.js +75 -0
  453. package/lib/dist/resolution/synth-utils.js.map +1 -0
  454. package/lib/dist/resolution/tanstack-router-synthesizer.d.ts +31 -0
  455. package/lib/dist/resolution/tanstack-router-synthesizer.d.ts.map +1 -0
  456. package/lib/dist/resolution/tanstack-router-synthesizer.js +114 -0
  457. package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -0
  458. package/lib/dist/resolution/tier-synthesizer.d.ts +49 -0
  459. package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -0
  460. package/lib/dist/resolution/tier-synthesizer.js +931 -0
  461. package/lib/dist/resolution/tier-synthesizer.js.map +1 -0
  462. package/lib/dist/resolution/types.d.ts +78 -2
  463. package/lib/dist/resolution/types.d.ts.map +1 -1
  464. package/lib/dist/resolution/types.js +64 -0
  465. package/lib/dist/resolution/types.js.map +1 -1
  466. package/lib/dist/resolution/vue-router-synthesizer.d.ts +30 -0
  467. package/lib/dist/resolution/vue-router-synthesizer.d.ts.map +1 -0
  468. package/lib/dist/resolution/vue-router-synthesizer.js +115 -0
  469. package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -0
  470. package/lib/dist/search/identifier-segments.d.ts +10 -0
  471. package/lib/dist/search/identifier-segments.d.ts.map +1 -1
  472. package/lib/dist/search/identifier-segments.js +29 -0
  473. package/lib/dist/search/identifier-segments.js.map +1 -1
  474. package/lib/dist/search/query-paths.d.ts +106 -0
  475. package/lib/dist/search/query-paths.d.ts.map +1 -0
  476. package/lib/dist/search/query-paths.js +513 -0
  477. package/lib/dist/search/query-paths.js.map +1 -0
  478. package/lib/dist/search/query-utils.d.ts +16 -1
  479. package/lib/dist/search/query-utils.d.ts.map +1 -1
  480. package/lib/dist/search/query-utils.js +48 -10
  481. package/lib/dist/search/query-utils.js.map +1 -1
  482. package/lib/dist/sync/watch-policy.d.ts +14 -0
  483. package/lib/dist/sync/watch-policy.d.ts.map +1 -1
  484. package/lib/dist/sync/watch-policy.js +19 -0
  485. package/lib/dist/sync/watch-policy.js.map +1 -1
  486. package/lib/dist/sync/watcher.d.ts +74 -35
  487. package/lib/dist/sync/watcher.d.ts.map +1 -1
  488. package/lib/dist/sync/watcher.js +281 -99
  489. package/lib/dist/sync/watcher.js.map +1 -1
  490. package/lib/dist/telemetry/index.d.ts +4 -2
  491. package/lib/dist/telemetry/index.d.ts.map +1 -1
  492. package/lib/dist/telemetry/index.js +92 -41
  493. package/lib/dist/telemetry/index.js.map +1 -1
  494. package/lib/dist/types.d.ts +21 -2
  495. package/lib/dist/types.d.ts.map +1 -1
  496. package/lib/dist/types.js +2 -0
  497. package/lib/dist/types.js.map +1 -1
  498. package/lib/dist/ui-server/api/deadcode.d.ts +84 -0
  499. package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -0
  500. package/lib/dist/ui-server/api/deadcode.js +136 -0
  501. package/lib/dist/ui-server/api/deadcode.js.map +1 -0
  502. package/lib/dist/ui-server/api/effects.d.ts +87 -0
  503. package/lib/dist/ui-server/api/effects.d.ts.map +1 -0
  504. package/lib/dist/ui-server/api/effects.js +499 -0
  505. package/lib/dist/ui-server/api/effects.js.map +1 -0
  506. package/lib/dist/ui-server/api/entrypoints.d.ts +86 -0
  507. package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -0
  508. package/lib/dist/ui-server/api/entrypoints.js +279 -0
  509. package/lib/dist/ui-server/api/entrypoints.js.map +1 -0
  510. package/lib/dist/ui-server/api/events.d.ts +183 -0
  511. package/lib/dist/ui-server/api/events.d.ts.map +1 -0
  512. package/lib/dist/ui-server/api/events.js +430 -0
  513. package/lib/dist/ui-server/api/events.js.map +1 -0
  514. package/lib/dist/ui-server/api/file.d.ts +66 -0
  515. package/lib/dist/ui-server/api/file.d.ts.map +1 -0
  516. package/lib/dist/ui-server/api/file.js +235 -0
  517. package/lib/dist/ui-server/api/file.js.map +1 -0
  518. package/lib/dist/ui-server/api/filecode.d.ts +126 -0
  519. package/lib/dist/ui-server/api/filecode.d.ts.map +1 -0
  520. package/lib/dist/ui-server/api/filecode.js +205 -0
  521. package/lib/dist/ui-server/api/filecode.js.map +1 -0
  522. package/lib/dist/ui-server/api/flow.d.ts +226 -0
  523. package/lib/dist/ui-server/api/flow.d.ts.map +1 -0
  524. package/lib/dist/ui-server/api/flow.js +612 -0
  525. package/lib/dist/ui-server/api/flow.js.map +1 -0
  526. package/lib/dist/ui-server/api/hierarchy.d.ts +81 -0
  527. package/lib/dist/ui-server/api/hierarchy.d.ts.map +1 -0
  528. package/lib/dist/ui-server/api/hierarchy.js +92 -0
  529. package/lib/dist/ui-server/api/hierarchy.js.map +1 -0
  530. package/lib/dist/ui-server/api/index.d.ts +90 -0
  531. package/lib/dist/ui-server/api/index.d.ts.map +1 -0
  532. package/lib/dist/ui-server/api/index.js +332 -0
  533. package/lib/dist/ui-server/api/index.js.map +1 -0
  534. package/lib/dist/ui-server/api/map.d.ts +238 -0
  535. package/lib/dist/ui-server/api/map.d.ts.map +1 -0
  536. package/lib/dist/ui-server/api/map.js +681 -0
  537. package/lib/dist/ui-server/api/map.js.map +1 -0
  538. package/lib/dist/ui-server/api/node.d.ts +81 -0
  539. package/lib/dist/ui-server/api/node.d.ts.map +1 -0
  540. package/lib/dist/ui-server/api/node.js +388 -0
  541. package/lib/dist/ui-server/api/node.js.map +1 -0
  542. package/lib/dist/ui-server/api/nodes.d.ts +25 -0
  543. package/lib/dist/ui-server/api/nodes.d.ts.map +1 -0
  544. package/lib/dist/ui-server/api/nodes.js +45 -0
  545. package/lib/dist/ui-server/api/nodes.js.map +1 -0
  546. package/lib/dist/ui-server/api/program.d.ts +139 -0
  547. package/lib/dist/ui-server/api/program.d.ts.map +1 -0
  548. package/lib/dist/ui-server/api/program.js +315 -0
  549. package/lib/dist/ui-server/api/program.js.map +1 -0
  550. package/lib/dist/ui-server/api/respond.d.ts +76 -0
  551. package/lib/dist/ui-server/api/respond.d.ts.map +1 -0
  552. package/lib/dist/ui-server/api/respond.js +186 -0
  553. package/lib/dist/ui-server/api/respond.js.map +1 -0
  554. package/lib/dist/ui-server/api/route-roots.d.ts +39 -0
  555. package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -0
  556. package/lib/dist/ui-server/api/route-roots.js +96 -0
  557. package/lib/dist/ui-server/api/route-roots.js.map +1 -0
  558. package/lib/dist/ui-server/api/routes.d.ts +59 -0
  559. package/lib/dist/ui-server/api/routes.d.ts.map +1 -0
  560. package/lib/dist/ui-server/api/routes.js +108 -0
  561. package/lib/dist/ui-server/api/routes.js.map +1 -0
  562. package/lib/dist/ui-server/api/screens.d.ts +117 -0
  563. package/lib/dist/ui-server/api/screens.d.ts.map +1 -0
  564. package/lib/dist/ui-server/api/screens.js +611 -0
  565. package/lib/dist/ui-server/api/screens.js.map +1 -0
  566. package/lib/dist/ui-server/api/search.d.ts +29 -0
  567. package/lib/dist/ui-server/api/search.d.ts.map +1 -0
  568. package/lib/dist/ui-server/api/search.js +232 -0
  569. package/lib/dist/ui-server/api/search.js.map +1 -0
  570. package/lib/dist/ui-server/api/session.d.ts +52 -0
  571. package/lib/dist/ui-server/api/session.d.ts.map +1 -0
  572. package/lib/dist/ui-server/api/session.js +196 -0
  573. package/lib/dist/ui-server/api/session.js.map +1 -0
  574. package/lib/dist/ui-server/api/source.d.ts +200 -0
  575. package/lib/dist/ui-server/api/source.d.ts.map +1 -0
  576. package/lib/dist/ui-server/api/source.js +422 -0
  577. package/lib/dist/ui-server/api/source.js.map +1 -0
  578. package/lib/dist/ui-server/api/stats.d.ts +27 -0
  579. package/lib/dist/ui-server/api/stats.d.ts.map +1 -0
  580. package/lib/dist/ui-server/api/stats.js +164 -0
  581. package/lib/dist/ui-server/api/stats.js.map +1 -0
  582. package/lib/dist/ui-server/api/steps.d.ts +274 -0
  583. package/lib/dist/ui-server/api/steps.d.ts.map +1 -0
  584. package/lib/dist/ui-server/api/steps.js +1446 -0
  585. package/lib/dist/ui-server/api/steps.js.map +1 -0
  586. package/lib/dist/ui-server/api/trail-store.d.ts +142 -0
  587. package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -0
  588. package/lib/dist/ui-server/api/trail-store.js +323 -0
  589. package/lib/dist/ui-server/api/trail-store.js.map +1 -0
  590. package/lib/dist/ui-server/api/trails.d.ts +163 -0
  591. package/lib/dist/ui-server/api/trails.d.ts.map +1 -0
  592. package/lib/dist/ui-server/api/trails.js +369 -0
  593. package/lib/dist/ui-server/api/trails.js.map +1 -0
  594. package/lib/dist/ui-server/api/when.d.ts +125 -0
  595. package/lib/dist/ui-server/api/when.d.ts.map +1 -0
  596. package/lib/dist/ui-server/api/when.js +251 -0
  597. package/lib/dist/ui-server/api/when.js.map +1 -0
  598. package/lib/dist/ui-server/api/wire.d.ts +179 -0
  599. package/lib/dist/ui-server/api/wire.d.ts.map +1 -0
  600. package/lib/dist/ui-server/api/wire.js +231 -0
  601. package/lib/dist/ui-server/api/wire.js.map +1 -0
  602. package/lib/dist/ui-server/assets.d.ts +40 -0
  603. package/lib/dist/ui-server/assets.d.ts.map +1 -0
  604. package/lib/dist/ui-server/assets.js +110 -0
  605. package/lib/dist/ui-server/assets.js.map +1 -0
  606. package/lib/dist/ui-server/constants.d.ts +32 -0
  607. package/lib/dist/ui-server/constants.d.ts.map +1 -0
  608. package/lib/dist/ui-server/constants.js +35 -0
  609. package/lib/dist/ui-server/constants.js.map +1 -0
  610. package/lib/dist/ui-server/highlight/index.d.ts +113 -0
  611. package/lib/dist/ui-server/highlight/index.d.ts.map +1 -0
  612. package/lib/dist/ui-server/highlight/index.js +307 -0
  613. package/lib/dist/ui-server/highlight/index.js.map +1 -0
  614. package/lib/dist/ui-server/highlight/languages.d.ts +36 -0
  615. package/lib/dist/ui-server/highlight/languages.d.ts.map +1 -0
  616. package/lib/dist/ui-server/highlight/languages.js +50 -0
  617. package/lib/dist/ui-server/highlight/languages.js.map +1 -0
  618. package/lib/dist/ui-server/index.d.ts +92 -0
  619. package/lib/dist/ui-server/index.d.ts.map +1 -0
  620. package/lib/dist/ui-server/index.js +399 -0
  621. package/lib/dist/ui-server/index.js.map +1 -0
  622. package/lib/dist/ui-server/open-browser.d.ts +31 -0
  623. package/lib/dist/ui-server/open-browser.d.ts.map +1 -0
  624. package/lib/dist/ui-server/open-browser.js +79 -0
  625. package/lib/dist/ui-server/open-browser.js.map +1 -0
  626. package/lib/dist/ui-server/security.d.ts +127 -0
  627. package/lib/dist/ui-server/security.d.ts.map +1 -0
  628. package/lib/dist/ui-server/security.js +332 -0
  629. package/lib/dist/ui-server/security.js.map +1 -0
  630. package/lib/dist/ui-server/static.d.ts +45 -0
  631. package/lib/dist/ui-server/static.d.ts.map +1 -0
  632. package/lib/dist/ui-server/static.js +165 -0
  633. package/lib/dist/ui-server/static.js.map +1 -0
  634. package/lib/dist/utils.d.ts +14 -2
  635. package/lib/dist/utils.d.ts.map +1 -1
  636. package/lib/dist/utils.js +25 -10
  637. package/lib/dist/utils.js.map +1 -1
  638. package/lib/dist/viewer/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
  639. package/lib/dist/viewer/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
  640. package/lib/dist/viewer/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
  641. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
  642. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
  643. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  644. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  645. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  646. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  647. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  648. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  649. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
  650. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
  651. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  652. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  653. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  654. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  655. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  656. package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  657. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
  658. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
  659. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  660. package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  661. package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  662. package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  663. package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  664. package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  665. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
  666. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
  667. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  668. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  669. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  670. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  671. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  672. package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  673. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
  674. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
  675. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  676. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  677. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  678. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  679. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  680. package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  681. package/lib/dist/viewer/assets/index-CF9yvio6.css +1 -0
  682. package/lib/dist/viewer/assets/index-D4S7YUPf.js +97 -0
  683. package/lib/dist/viewer/index.html +16 -0
  684. package/lib/kernel/codegraph-kernel.node +2 -2
  685. package/lib/node_modules/.package-lock.json +4 -4
  686. package/lib/node_modules/picomatch/README.md +56 -51
  687. package/lib/node_modules/picomatch/lib/constants.js +4 -0
  688. package/lib/node_modules/picomatch/lib/parse.js +341 -1
  689. package/lib/node_modules/picomatch/lib/picomatch.js +25 -5
  690. package/lib/node_modules/picomatch/lib/scan.js +30 -18
  691. package/lib/node_modules/picomatch/package.json +4 -4
  692. package/lib/package.json +9 -2
  693. package/package.json +1 -1
@@ -5,7 +5,11 @@
5
5
  */
6
6
  import type CodeGraph from '../index';
7
7
  import type { QueryPool } from './query-pool';
8
+ import { WslSharedIndexError } from '../db/wsl-shared-index';
9
+ export declare function __setLoadCodeGraphForTests(cls: typeof import('../index').default | null): void;
8
10
  import type { PendingFile } from '../sync';
11
+ import { type AnswerFile } from './answer-freshness';
12
+ import { ExploreSessionState, type ExploreEmission, type ExploreLineRange } from './explore-session-state';
9
13
  /**
10
14
  * An expected, recoverable "codegraph can't serve this" condition — most
11
15
  * importantly a project with no index. The dispatch catch converts these to
@@ -22,9 +26,12 @@ export declare class NotIndexedError extends Error {
22
26
  /**
23
27
  * A security refusal (sensitive system path). Stays `isError: true` WITHOUT
24
28
  * retry guidance — abandoning this path is the desired agent reaction.
29
+ *
30
+ * Defined in `../errors` so non-MCP read sinks (the `codegraph ui` server) can
31
+ * enforce the same refusal without importing this module; re-exported here
32
+ * because this is where every existing caller imports it from.
25
33
  */
26
- export declare class PathRefusalError extends Error {
27
- }
34
+ export { PathRefusalError } from '../errors';
28
35
  /**
29
36
  * Normalize Erlang-native symbol spellings in an explore query into the shapes
30
37
  * the rest of the pipeline already understands. Agents working Erlang code
@@ -90,19 +97,368 @@ export interface ExploreOutputBudget {
90
97
  includeAdditionalFiles: boolean;
91
98
  /** Include the "Complete source code is included above…" reminder. */
92
99
  includeCompletenessSignal: boolean;
93
- /** Include the explore-budget reminder at the end. */
94
- includeBudgetNote: boolean;
95
100
  /**
96
- * Hard-drop test/spec/icon/i18n files from the relevant-file set unless
97
- * the query itself mentions tests. Today they're only deprioritized in
98
- * the sort, which on tiny repos still lets one slip into the top N (e.g.
99
- * cobra's `command_test.go` displaced `args.go` and contributed ~10KB of
100
- * pure noise to "How does cobra parse commands?"). Off by default; on
101
- * for the very-tiny tier where one slip dominates the budget.
101
+ * Include the advisory exploration-guidance note at the end. Purely
102
+ * advisory — the server NEVER rejects or rate-limits extra explore calls.
102
103
  */
103
- excludeLowValueFiles: boolean;
104
+ includeBudgetNote: boolean;
104
105
  }
105
106
  export declare function getExploreOutputBudget(fileCount: number): ExploreOutputBudget;
107
+ /**
108
+ * How strongly a match on a symbol of this kind corroborates that its FILE is
109
+ * what the query is about.
110
+ *
111
+ * 1.0 a callable or a type — the unit an architecture question is about
112
+ * ~0.5 a member of a type, or the file node itself (a path match, not a
113
+ * symbol match)
114
+ * ~0.3 a variable / constant — as often a name collision as a definition
115
+ * 0.15 a parameter — essentially never the subject of a question
116
+ *
117
+ * Unlisted kinds fall back to `DEFAULT_RELEVANCE_KIND_WEIGHT`, so a NodeKind
118
+ * added later is neither free nor fatal.
119
+ */
120
+ export declare const RELEVANCE_KIND_WEIGHT: Readonly<Record<string, number>>;
121
+ export declare const EXPLORE_ALLOCATION: {
122
+ /**
123
+ * A file whose weight is under this fraction of the top file's gets no source.
124
+ *
125
+ * Calibrated between the two shapes the fixtures pin: the #1500 generated CRUD
126
+ * lands at 10–11% of the top weight (penalised twice — once into the score by
127
+ * `rankPenalty`, once again here) and must cliff; a genuinely peripheral but
128
+ * hand-written flow file — `payslip_builder.go`, the direct callee of the
129
+ * workflow entry — lands at 25% and must NOT. Everything in between is a
130
+ * judgement call the agent can undo for ~0 cost, because a cliffed file is
131
+ * still NAMED in the response and one follow-up explore fetches it.
132
+ */
133
+ readonly CLIFF_FRACTION: 0.15;
134
+ /**
135
+ * Ceiling on the cliff, in the same units as `SCORE_FLOOR_MAX` — and for the
136
+ * same reason. A file whose weight clears a full-strength direct match is never
137
+ * incidental, so no amount of concentration elsewhere may zero it: one
138
+ * overwhelming top file (a 99-scoring god-file among score-10 peers) otherwise
139
+ * puts the cliff at 14.9 and silences every peer the score floor had just
140
+ * deliberately admitted. The cliff is a RELATIVE prune of weak evidence, not a
141
+ * second admission gate — the score floor already owns admission.
142
+ */
143
+ readonly CLIFF_MAX: 10;
144
+ /**
145
+ * Floor on a useful reservation — every admitted file gets this much before
146
+ * the proportional split divides the rest. Under it a slice can't hold one
147
+ * complete method, and a fragment is strictly worse than a pointer: it forces
148
+ * the Read this tool exists to prevent.
149
+ *
150
+ * It is a FLOOR, not a second cliff. Cliffing the starved file instead
151
+ * cascades: removing the smallest raises everyone else's share by so little
152
+ * that the next-smallest starves too, and a query with two dominant files ate
153
+ * six legitimately-ranked peers one at a time. Concentration is the relative
154
+ * cliff's job; this only keeps a served file's slice usable.
155
+ */
156
+ readonly MIN_CHARS: 700;
157
+ /**
158
+ * Safety valve, as a fraction of the envelope. Not the primary guard any more —
159
+ * the proportional split is — so this only has to stop a pathological
160
+ * single-file response.
161
+ *
162
+ * It does not apply to a file the query NAMED — one that defines a symbol the
163
+ * query spelled, or that the query named by path. The valve hedges against a
164
+ * mis-ranked dominant file, and a file the agent asked for by name is not
165
+ * one. It also never redistributed: a clamped file's excess was simply left
166
+ * unreserved, and the carry-forward only moves reservations, so nobody could
167
+ * spend it. On express, "response.js res.send res.json res.render …" admits
168
+ * one file, clamps it at 9,100 with 3,700 of the pool unreserved, and cuts
169
+ * the named `send` body at 55 of 97 lines in a 10.9K response to a 13K budget.
170
+ */
171
+ readonly MAX_SHARE: 0.7;
172
+ /**
173
+ * Markdown overhead charged per rendered file (header + fences + blank lines),
174
+ * matching the render loop's own `+ 200` accounting. Held out of the pool
175
+ * before the split so the reservations plus their overhead fit the envelope —
176
+ * without this the last file's reservation is always the one that doesn't fit.
177
+ */
178
+ readonly FILE_OVERHEAD: 200;
179
+ /**
180
+ * Flow-spine files are weighted up and are exempt from the cliff. Clipping the
181
+ * spine causes the Read fallback (it IS the answer to a flow question);
182
+ * clipping a peripheral file does not. This makes the existing advisory spine
183
+ * handling — `hasSpine`, `SPINE_CEILING` — strict at the allocation layer.
184
+ */
185
+ readonly SPINE_WEIGHT_BOOST: 2;
186
+ /**
187
+ * Slack allowed on the whole-file rule: a file a little over its reservation
188
+ * still ships WHOLE rather than as clusters, because slicing off that last
189
+ * sliver saves ~1% of the envelope and costs a Read — the trade the whole-file
190
+ * rule exists to refuse. Proportional (with an absolute ceiling) because a
191
+ * "sliver" is relative: a flat 800 is 15% of a 5K reservation but 31% of a 2.5K
192
+ * one, and at the small end that overshoot is exactly what the file below then
193
+ * loses.
194
+ */
195
+ readonly WHOLE_FILE_GRACE_FRACTION: 0.15;
196
+ readonly WHOLE_FILE_GRACE_MAX: 800;
197
+ /**
198
+ * A reservation that already covers this fraction of a file BUYS THE WHOLE
199
+ * FILE (CG-21), even though the file is bigger than the reservation.
200
+ *
201
+ * The grace above is calibrated as a *sliver* — it only rescues a file that
202
+ * essentially fits. Below it there is a hole the render loop cannot fill:
203
+ * express's `lib/utils.js` (5,293 B) was the TOP-ranked file, reserved 3,870,
204
+ * declined the whole-file render at a 4,450 grace bound, and then spent 583 on
205
+ * a three-symbol cluster render. The other 3,287 chars of its reservation were
206
+ * neither redistributed nor delivered — the envelope shrank by a third against
207
+ * an unchanged budget and the agent Read the file back four times.
208
+ *
209
+ * So the rule is not "does the file fit the reservation" but "has the
210
+ * reservation already bought most of the file": at 0.6 the loop pays at most
211
+ * two-thirds of a reservation extra to avoid losing the whole thing, and it
212
+ * spends bytes it was going to spend anyway on a file that already earned
213
+ * them. Below the fraction the shortfall is real — the file is several times
214
+ * its reservation, clustering is the right answer, and the carry-forward
215
+ * (`reservedSoFar`/`sourceSpent` in the render loop) hands whatever it cannot
216
+ * spend to the next file down.
217
+ */
218
+ readonly WHOLE_FILE_BUY_FRACTION: 0.6;
219
+ /**
220
+ * The buy rule's overshoot is funded from ONE pool for the whole response,
221
+ * sized as this fraction of the envelope — deliberately the same 15% as
222
+ * `WHOLE_FILE_GRACE_FRACTION`, one level up: the grace is a sliver of a
223
+ * FILE's reservation, this is a sliver of the RESPONSE's envelope.
224
+ *
225
+ * Per-file funding is the version that fails, and it fails the same way the
226
+ * bug being fixed does. The merit test is a RATIO, so wherever several files
227
+ * sit near it they all qualify, and N independent overshoots inflate the
228
+ * response until the render ceiling drops whatever is last. Measured on the
229
+ * #1500 payroll fixture: three files bought whole and `payslip_builder.go` —
230
+ * the file that computes the payslip the question asks about, rank #6 — was
231
+ * dropped entirely so three higher-ranked files could each ship their final
232
+ * sliver. A dropped section is strictly worse than a clustered one, so one
233
+ * shared pool, spent in rank order, is the bound that matters.
234
+ */
235
+ readonly WHOLE_FILE_BUY_OVERSHOOT_FRACTION: 0.15;
236
+ };
237
+ /** One candidate file's allocation inputs, in final rank order. */
238
+ export interface ExploreAllocationCandidate {
239
+ path: string;
240
+ /** Post-`rankPenalty` relevance score from the ranking pass. */
241
+ score: number;
242
+ /**
243
+ * How much this file's BYTES are worth, independent of how well it matched.
244
+ * Ranking answers "is this file about the query"; allocation answers "will
245
+ * these bytes teach the agent anything". Generated CRUD can legitimately rank
246
+ * (it name-collides on every domain word) while its bytes stay mechanical
247
+ * boilerplate the agent gains nothing from reading — so `rankPenalty` is
248
+ * applied a SECOND time here. That is what finally sinks the #1500 generated
249
+ * layer below the cliff: it survived CG-10's single penalty because the sort's
250
+ * leading keys (entry-point, graph mass) are structural, and a big densely
251
+ * self-referential generated file scores well on both.
252
+ */
253
+ worth: number;
254
+ /**
255
+ * Carries a symbol on the rendered flow spine — or an exact target (a
256
+ * qualified name, a line anchor), which is the answer by the same argument.
257
+ */
258
+ spine: boolean;
259
+ /**
260
+ * The query named this file by PATH (see query-paths.ts). Pinned files are
261
+ * never cliffed or trimmed, and weigh at least as much as the strongest
262
+ * candidate — the agent asked for the file itself, so starving it on text/
263
+ * graph scores (which a pure-path query doesn't produce) defeats the ask.
264
+ */
265
+ pinned?: boolean;
266
+ /**
267
+ * The query named a symbol this file defines (the named-first sort tier). Like
268
+ * a pinned file, it is exempt from the `MAX_SHARE` valve: its proportional
269
+ * share stands, bounded only by the pool.
270
+ */
271
+ named?: boolean;
272
+ }
273
+ export interface ExploreAllocation {
274
+ /** path → chars of source it may render. Only holds admitted files. */
275
+ allowances: Map<string, number>;
276
+ /** Files the cliff zeroed, in rank order — pointers, not bytes. */
277
+ cliffed: string[];
278
+ /** The weight threshold the cliff fired at (0 when nothing was cliffed). */
279
+ cliffAt: number;
280
+ /** Chars actually split among the admitted files. */
281
+ pool: number;
282
+ }
283
+ /**
284
+ * Split `budget.maxOutputChars` across ranked candidates in proportion to
285
+ * relevance, with a hard relative cliff.
286
+ *
287
+ * `candidates` must arrive in FINAL RANK ORDER — `maxFiles` is applied to the
288
+ * survivors of the cliff, in that order, so cliffing genuinely hands a slot to
289
+ * the next file down rather than leaving it unused.
290
+ *
291
+ * Tier invariant (`getExploreOutputBudget`): a larger tier must never allow less
292
+ * per file than a smaller one. It holds here by construction — every bound is a
293
+ * fraction of `maxOutputChars` or of `maxCharsPerFile`, both monotonic across
294
+ * tiers — except `MIN_CHARS`, which is an absolute floor and so identical at
295
+ * every tier.
296
+ */
297
+ export declare function allocateExploreBudget(candidates: readonly ExploreAllocationCandidate[], budget: ExploreOutputBudget, maxFiles: number): ExploreAllocation;
298
+ type ElidedSymbolRef = {
299
+ name: string;
300
+ kind: string;
301
+ startLine: number;
302
+ };
303
+ /**
304
+ * Indexed symbols whose definition starts strictly between two rendered
305
+ * spans. The hole is what a trim dropped; naming them is what lets the agent
306
+ * follow up by name instead of guessing (#1711).
307
+ */
308
+ export declare function symbolsBetweenRanges(nodes: ReadonlyArray<{
309
+ name: string;
310
+ kind: string;
311
+ startLine: number;
312
+ endLine: number;
313
+ }>, fromEnd: number, toStart: number): ElidedSymbolRef[];
314
+ /**
315
+ * Symbols in `candidates` whose start line is not covered by any emitted range.
316
+ * Used to bias the per-file header toward what the trim dropped (#1711).
317
+ */
318
+ export declare function symbolsNotInRanges(candidates: ReadonlyArray<ElidedSymbolRef>, ranges: ReadonlyArray<ExploreLineRange>): ElidedSymbolRef[];
319
+ /**
320
+ * Gap marker between two non-contiguous slices of one file.
321
+ *
322
+ * Bare `... (gap) ...` told the agent something was missing but not WHAT —
323
+ * and the footer then asked it to re-explore "with its exact name", which is
324
+ * circular when the missing names *are* the question (#1711). When the hole
325
+ * holds indexed symbols, list them as `name (file:line)` (same shape the
326
+ * flow / blast-radius lines already use).
327
+ */
328
+ export declare function formatGapMarker(filePath: string, elided: ReadonlyArray<ElidedSymbolRef>): string;
329
+ /**
330
+ * Join rendered parts with gap markers that name whatever the trim skipped.
331
+ *
332
+ * `spareChars` is what naming may cost beyond bare markers. Cluster selection
333
+ * prices every join between clusters as a bare marker, and on a long path each
334
+ * named gap runs to several hundred chars, so unbounded naming overran the
335
+ * file's reservation and the ceiling trim then dropped SOURCE to pay for the
336
+ * names: vscode's `rpcProtocol.ts` went from ~5,200 chars of the RPCProtocol
337
+ * body to a 222-char stub. A gap the spare can't cover stays bare; the file
338
+ * header still lists the symbols the trim dropped.
339
+ */
340
+ export declare function joinPartsWithNamedGaps(filePath: string, parts: ReadonlyArray<{
341
+ range: ExploreLineRange;
342
+ text: string;
343
+ }>, nodes: ReadonlyArray<{
344
+ name: string;
345
+ kind: string;
346
+ startLine: number;
347
+ endLine: number;
348
+ }>, spareChars?: number): string;
349
+ /**
350
+ * Prefer symbols the trim dropped when filling the per-file header's named
351
+ * slots, so `+N more` is less likely to hide the answer (#1711). Frequency
352
+ * still breaks ties among the preferred / remaining groups.
353
+ */
354
+ export declare function biasHeaderSymbols(symbols: readonly string[], elided: ReadonlyArray<ElidedSymbolRef>, cap: number): {
355
+ shown: string[];
356
+ omitted: number;
357
+ };
358
+ /**
359
+ * The notes that stand in for the epilogue, or close a truncated response, in
360
+ * two wordings each. `complete` says the source above is complete; `trimmed` is
361
+ * used when a section it vouches for was trimmed (see `elidedWantedSpans`) and
362
+ * drops that claim, keeping the guarantee that is still true. Each trimmed
363
+ * wording is no longer than its complete one: the epilogue floor (`lost`) and
364
+ * the cut note's fit test (`cut`) are sized before the render knows which of the
365
+ * two it will need.
366
+ */
367
+ export declare const EXPLORE_FALLBACK_NOTES: {
368
+ readonly lost: {
369
+ readonly complete: "> (Trailing pointer list omitted for size. The source above is complete and verbatim — treat it as already Read. For anything this call did not cover, run another codegraph_explore with the specific names rather than reading those files.)";
370
+ readonly trimmed: "> (Trailing pointer list omitted for size. The source above is verbatim — treat it as already Read. For symbols its gap markers name, and anything else not covered, run another codegraph_explore with those names rather than reading.)";
371
+ };
372
+ readonly cut: {
373
+ readonly complete: "\n\n> (Trailing notes omitted for size. The source above is complete and verbatim — treat it as already Read. For anything this call did not cover, run another codegraph_explore with the specific names rather than reading those files.)";
374
+ readonly trimmed: "\n\n> (Trailing notes omitted for size. The source above is verbatim — treat it as already Read. For symbols its gap markers name, and anything else not covered, run another codegraph_explore with those names rather than reading.)";
375
+ };
376
+ readonly truncated: {
377
+ readonly complete: "\n\n... (output truncated to budget; the source above is complete and verbatim — treat it as already Read. For any area not covered, run another codegraph_explore with the specific names — do NOT Read these files.)";
378
+ readonly trimmed: "\n\n... (output truncated to budget; the source above is verbatim — treat it as already Read. For names its gap markers list, or any area not covered, run another codegraph_explore — do NOT Read these files.)";
379
+ };
380
+ };
381
+ /**
382
+ * One symbol a file section set out to deliver: a cluster member, or a symbol
383
+ * of the per-symbol (focused/skeleton) view. Completeness is judged against
384
+ * these, not against the file — explore never promises whole files, only the
385
+ * symbols it selected for each one.
386
+ */
387
+ export type ExploreWantedSpan = {
388
+ name: string;
389
+ kind: string;
390
+ start: number;
391
+ end: number;
392
+ importance: number;
393
+ spine: boolean;
394
+ /** The indexed qualified name (`SQLCompiler::as_sql`), when the span is a node. */
395
+ qualifiedName?: string;
396
+ };
397
+ /**
398
+ * The wanted spans a section did NOT deliver in full: some line of the span is
399
+ * in neither what this call sent nor what an earlier call already sent (a
400
+ * back-referenced span counts — the agent holds that copy).
401
+ *
402
+ * Derived from the emitted ranges rather than from a flag each trim site has to
403
+ * remember to set. The oversize-spine window set none until #2068, which is how
404
+ * a 62-line slice of vscode's 968-line `rpcProtocol.ts` went out under "Complete
405
+ * source … do NOT re-read them". Whatever elides source — a member shrink, a
406
+ * ceiling window, a dropped cluster, the per-symbol view, a path added later —
407
+ * shows up here.
408
+ *
409
+ * Most relevant first (spine, then importance), then source order.
410
+ */
411
+ export declare function elidedWantedSpans(wanted: ReadonlyArray<ExploreWantedSpan>, delivered: ReadonlyArray<ExploreLineRange>): ExploreWantedSpan[];
412
+ /** A rendered file whose section is missing some of what it set out to deliver. */
413
+ export type ExplorePartialFile = {
414
+ filePath: string;
415
+ elided: ReadonlyArray<ExploreWantedSpan>;
416
+ };
417
+ /**
418
+ * The shortest trailing slice of each path that no other path in `paths`
419
+ * ends with: `extHostExtensionService.ts` alone when it is the only one,
420
+ * `node/extHostExtensionService.ts` beside `common/extHostExtensionService.ts`.
421
+ */
422
+ export declare function shortestUniqueSuffixes(paths: ReadonlyArray<string>): Map<string, string>;
423
+ /**
424
+ * The large tiers' completeness note (`includeCompletenessSignal`), as
425
+ * candidates from most to least specific. The epilogue fit keeps the first
426
+ * one that fits the room left (CG-26).
427
+ *
428
+ * "Complete" is claimed only when no section elided anything it set out to
429
+ * deliver. Otherwise the note keeps the guarantee that is still true (every
430
+ * block shown is verbatim; treat it as already Read), names the trimmed files
431
+ * and the most relevant elided symbols as room allows, and sends the agent to
432
+ * another codegraph_explore for them. It never offers Read: explore output must
433
+ * not tell the agent to Read (AGENTS.md).
434
+ */
435
+ export declare function exploreCompletenessNotes(filesIncluded: number, trimmed: ReadonlyArray<ExplorePartialFile>,
436
+ /** Every path the response can name (sections and pointer list); labels are unique among them. */
437
+ knownPaths: ReadonlyArray<string>): string[];
438
+ /**
439
+ * Fit the completeness note and the pointer list into the room the response has
440
+ * left (CG-26). Returns the note (a candidate block, or none), the pointer
441
+ * block, and the room that remains.
442
+ *
443
+ * The note is one of `noteCandidates`, most specific first. A complete-source
444
+ * note keeps the precedence it always had and goes first. A note that YIELDS (a
445
+ * trimmed one) gives way to the pointer list, which names files the response
446
+ * does not show at all, while what a trimmed section elided is already named in
447
+ * its own gap markers and header. It leaves the list's header and first entry
448
+ * when that much could fit, and its optional detail never costs an entry the
449
+ * least specific candidate would have left.
450
+ */
451
+ export declare function fitExploreEpilogue(opts: {
452
+ room: number;
453
+ noteCandidates: ReadonlyArray<readonly string[]>;
454
+ noteYields: boolean;
455
+ pointerEntries: readonly string[];
456
+ pointerOmitted: number;
457
+ }): {
458
+ note: string[];
459
+ pointers: string[];
460
+ room: number;
461
+ };
106
462
  /**
107
463
  * Per-file staleness banner emitted at the top of a tool response when the
108
464
  * file watcher has pending events for files referenced by the response.
@@ -125,6 +481,8 @@ export declare function formatStaleFooter(stale: PendingFile[]): string;
125
481
  * already names the operator remedy (`codegraph sync` / git hooks).
126
482
  */
127
483
  export declare function formatDegradedBanner(reason: string | null): string;
484
+ /** Re-armed watches are not proof of freshness until their full scan commits. */
485
+ export declare function formatRecoveringBanner(): string;
128
486
  /**
129
487
  * MCP Tool definition
130
488
  */
@@ -138,6 +496,12 @@ export interface ToolDefinition {
138
496
  };
139
497
  /** Behavioral hints for clients (see {@link ToolAnnotations}). */
140
498
  annotations?: ToolAnnotations;
499
+ /**
500
+ * MCP `_meta` on the tool definition. `anthropic/alwaysLoad: true` makes
501
+ * Claude Code load the tool at session start instead of deferring it behind
502
+ * its tool search (https://code.claude.com/docs/en/mcp#exempt-a-server-from-deferral).
503
+ */
504
+ _meta?: Record<string, unknown>;
141
505
  }
142
506
  /**
143
507
  * MCP ToolAnnotations — behavioral hints a client MAY use to decide how, or
@@ -179,6 +543,18 @@ export interface ToolResult {
179
543
  text: string;
180
544
  }>;
181
545
  isError?: boolean;
546
+ /**
547
+ * INTERNAL side-channel (CG-17): what a `codegraph_explore` call actually put
548
+ * on the wire — files, line ranges, bytes. It rides the result because the
549
+ * call may have run on a query-pool worker, while the session state it feeds
550
+ * lives on the main thread. {@link ToolHandler.execute} records it and DELETES
551
+ * it, so nothing here ever reaches the client. Keyed by
552
+ * {@link EXPLORE_EMISSION_KEY}; the two must stay in sync.
553
+ */
554
+ _cgExploreEmission?: ExploreEmission;
555
+ /** Internal structured provenance, preserved by query workers and stripped by execute. */
556
+ _cgAnswerFiles?: AnswerFile[];
557
+ structuredContent?: Record<string, unknown>;
182
558
  }
183
559
  /**
184
560
  * All CodeGraph MCP tools
@@ -197,6 +573,27 @@ export declare const tools: ToolDefinition[];
197
573
  * note in a description only adds once `cg` is loaded; the schemas are static).
198
574
  */
199
575
  export declare function getStaticTools(): ToolDefinition[];
576
+ /**
577
+ * How many explicit-`projectPath` projects a handler keeps open at once
578
+ * (#1835). Each cached project may hold a file watcher, a writer lock and a
579
+ * SQLite connection, so the cache is bounded LRU: opening one more than this
580
+ * closes the least recently used. Small on purpose — a session that queries
581
+ * many repositories still leaks nothing; it only pays a reopen + catch-up.
582
+ */
583
+ export declare const MAX_CACHED_PROJECTS = 8;
584
+ /**
585
+ * Engine-side lifecycle for a project the ToolHandler opened for an explicit
586
+ * `projectPath` (#1835). `activate` gives it the same treatment the default
587
+ * project gets — a file watcher while it stays open and a catch-up sync — and
588
+ * returns the catch-up promise, which the handler awaits (time-boxed) before
589
+ * calls against that project. `release` runs after active calls drain, so the
590
+ * engine can release shared ownership safely on LRU eviction or shutdown.
591
+ */
592
+ export interface ProjectLifecycle {
593
+ open(root: string, open: () => CodeGraph): CodeGraph;
594
+ activate(cg: CodeGraph): Promise<void>;
595
+ release(cg: CodeGraph): void | Promise<void>;
596
+ }
200
597
  /**
201
598
  * Tool handler that executes tools against a CodeGraph instance
202
599
  *
@@ -206,22 +603,43 @@ export declare function getStaticTools(): ToolDefinition[];
206
603
  export declare class ToolHandler {
207
604
  private cg;
208
605
  private projectCache;
606
+ private projectLifecycle;
607
+ private projectGates;
608
+ private activeCalls;
609
+ private closing;
610
+ private pendingCloses;
611
+ private closeWaiters;
209
612
  private defaultProjectHint;
613
+ private knownSubprojects;
614
+ private knownSubprojectsBase;
615
+ private defaultOpenFailure;
210
616
  private worktreeMismatchCache;
211
617
  private catchUpGate;
618
+ private onDatabaseReopened;
212
619
  private queryPool;
213
620
  constructor(cg: CodeGraph | null);
214
621
  /**
215
622
  * Engine-only: attach (or detach with null) the worker-thread query pool. The
216
- * shared daemon sets this once its default project is open; the workers each
623
+ * engine sets this after resolving its default project; the workers each
217
624
  * hold their own WAL read connection and run {@link executeReadTool}. A
218
625
  * worker's own ToolHandler never has a pool, so there is no nested off-loading.
219
626
  */
220
627
  setQueryPool(pool: QueryPool | null): void;
628
+ /**
629
+ * Engine-only: own the lifecycle (watcher, catch-up, writer lock) of every
630
+ * project this handler opens for an explicit `projectPath` (#1835).
631
+ */
632
+ setProjectLifecycle(lifecycle: ProjectLifecycle | null): void;
221
633
  /**
222
634
  * Update the default CodeGraph instance (e.g. after lazy initialization)
223
635
  */
224
636
  setDefaultCodeGraph(cg: CodeGraph): void;
637
+ /**
638
+ * Engine-only: record why the default project failed to open (#995), so a
639
+ * call that needs it answers with that fix rather than "no project loaded".
640
+ * `null` clears it.
641
+ */
642
+ setDefaultOpenFailure(err: WslSharedIndexError | null): void;
225
643
  /**
226
644
  * Engine-only: register the catch-up sync promise so the next `execute()`
227
645
  * call awaits it before serving. The handler swallows rejections (the
@@ -230,6 +648,12 @@ export declare class ToolHandler {
230
648
  * stale data, which is what would have happened without the gate.
231
649
  */
232
650
  setCatchUpGate(p: Promise<void> | null): void;
651
+ /**
652
+ * Engine-only: called after a tool call's {@link freshen} reopened a database
653
+ * that was replaced on disk (#1902). The engine decides whether a catch-up
654
+ * sync is its to run (only for the instance it watches and writes).
655
+ */
656
+ setOnDatabaseReopened(fn: ((cg: CodeGraph) => void) | null): void;
233
657
  /**
234
658
  * Await the catch-up gate, but no longer than the configured timeout (#905).
235
659
  * If the reconcile settles first, we got the fully-reconciled answer. If the
@@ -245,6 +669,14 @@ export declare class ToolHandler {
245
669
  * Used only to make the "no default project" error actionable.
246
670
  */
247
671
  setDefaultProjectHint(searchedPath: string): void;
672
+ /**
673
+ * Engine-only: record the indexed sub-projects the workspace down-scan saw
674
+ * when it could not adopt a default project (#1606/#1607). An empty list
675
+ * clears any previous note.
676
+ */
677
+ setKnownSubprojects(roots: string[], base: string): void;
678
+ /** One message line naming the indexed sub-projects, or '' when none known. */
679
+ private formatKnownSubprojects;
248
680
  /**
249
681
  * Whether a default CodeGraph instance is available
250
682
  */
@@ -277,6 +709,9 @@ export declare class ToolHandler {
277
709
  * similar to how git finds .git/ directories.
278
710
  */
279
711
  private getCodeGraph;
712
+ private awaitProjectGate;
713
+ /** Never evict a graph while a tool call or its timed-out reconcile uses it. */
714
+ private trimProjects;
280
715
  /**
281
716
  * Heal a long-lived connection whose `.codegraph/` was removed and recreated
282
717
  * at the same path (a worktree recreated, or `rm -rf .codegraph` + re-init)
@@ -291,7 +726,7 @@ export declare class ToolHandler {
291
726
  /**
292
727
  * Close all cached project connections
293
728
  */
294
- closeAll(): void;
729
+ closeAll(): Promise<void>;
295
730
  /**
296
731
  * Validate that a value is a non-empty string within length bounds.
297
732
  *
@@ -339,11 +774,66 @@ export declare class ToolHandler {
339
774
  * Cost when nothing is pending — the common case — is one boolean check.
340
775
  * No I/O, no parsing of markdown beyond a per-pending-file substring scan.
341
776
  */
777
+ private driftCache;
778
+ private static readonly DRIFT_TTL_MS;
779
+ /**
780
+ * On-disk drift check for a single indexed file (issue #1474). The code
781
+ * renderers slice CURRENT bytes at INDEXED line ranges; when the file
782
+ * changed after its last index sync those ranges can point at a DIFFERENT
783
+ * symbol's code — served under the requested name with `isError: false`.
784
+ * The watcher-based pending/degraded banners can't cover this for a
785
+ * project reached via `projectPath` (cross-project instances have no
786
+ * watcher, by construction), so freshness is verified here, at the point
787
+ * of emission, from data the index already stores.
788
+ *
789
+ * Cheap and precise: one stat() per file (size + mtime, the same
790
+ * comparison the sync fast path uses); only on a stat mismatch is the
791
+ * content hashed (sha256, matching extraction's `hashContent`) so a
792
+ * touch/checkout that rewrote identical bytes never false-positives.
793
+ * Results are memoized briefly so one response rendering the same file in
794
+ * several sections pays for the check once.
795
+ *
796
+ * Returns true when the on-disk file differs from what was indexed —
797
+ * i.e. indexed line ranges for it are NOT trustworthy. Any failure
798
+ * (missing files-table row, stat/read error) reports false: those cases
799
+ * are handled by the existing not-found paths, and a wrong "stale" flag
800
+ * would needlessly push the agent back to Read.
801
+ */
802
+ private isFileStaleOnDisk;
803
+ private answerResult;
342
804
  private withStalenessNotice;
343
805
  /**
344
- * Execute a tool by name
806
+ * Execute a tool by name.
807
+ *
808
+ * `sessionState` is the CALLER's per-session explore history (CG-17). The
809
+ * daemon shares one ToolHandler across every connected session, so this state
810
+ * cannot live on the handler — each session owns one and hands it in, which is
811
+ * what keeps two sessions on one daemon from ever seeing each other's calls.
812
+ * Omit it (the CLI does) and explore behaves exactly as before, untracked.
813
+ */
814
+ execute(toolName: string, args: Record<string, unknown>, sessionState?: ExploreSessionState): Promise<ToolResult>;
815
+ /**
816
+ * Attach the caller's session view to an explore call's args (CG-17), on a
817
+ * COPY so the caller's object is never mutated. Nothing else sees it: a
818
+ * non-explore tool, or a caller with no session state, gets the args
819
+ * unchanged and pays nothing.
820
+ *
821
+ * A client that spells the internal key itself is stripped rather than
822
+ * trusted — the view decides what source a later call may withhold, so it has
823
+ * to come from the server's own record, never from the wire.
824
+ */
825
+ private withSessionView;
826
+ /**
827
+ * Record an explore call's emission into the caller's session state and strip
828
+ * it from the result (CG-17).
829
+ *
830
+ * Unconditional strip: the property is internal, so it comes off even when
831
+ * there is no session state to record it into (the CLI path) — that is what
832
+ * keeps the agent-facing response byte-identical. Recording is wrapped
833
+ * because a bookkeeping bug must never fail a tool call that already
834
+ * succeeded.
345
835
  */
346
- execute(toolName: string, args: Record<string, unknown>): Promise<ToolResult>;
836
+ private takeExploreEmission;
347
837
  /**
348
838
  * Run a single read tool to completion and return its raw {@link ToolResult},
349
839
  * classifying expected failures the same way {@link execute}'s catch does so
@@ -397,6 +887,12 @@ export declare class ToolHandler {
397
887
  * for ordinary static edges. Used by trace + the node trail so a synthesized
398
888
  * hop reads as "registered via onUpdate at App.tsx:3148", not a bare arrow.
399
889
  */
890
+ /**
891
+ * The branch conditions a flow hop's call site runs under, read from the
892
+ * caller's source now (`graph/branch-guards.ts`); '' when unconditional,
893
+ * unreadable, or the grammar for that language is not loaded.
894
+ */
895
+ private whenLabel;
400
896
  private synthEdgeNote;
401
897
  /**
402
898
  * Flow-from-named-symbols: an agent's codegraph_explore query is a bag of
@@ -446,12 +942,13 @@ export declare class ToolHandler {
446
942
  */
447
943
  private buildPolymorphicBoundaries;
448
944
  /**
449
- * Shortlist candidate runtime targets for a dispatch key surfaced by
450
- * {@link buildDynamicBoundaries}. Exact conventional names first (`save` →
451
- * `onSave`/`handleSave`; `CreateCmd` → `CreateCmdHandler`), then FTS, with a
452
- * normalized-containment post-filter (FTS camel-splitting is fuzzier than a
453
- * candidate list should be). Symbols the agent already named sort first and
454
- * are marked — that's the "you were right, here's the wiring" case.
945
+ * Render the candidate shortlist for a dispatch site as one line.
946
+ *
947
+ * The shortlist itself is `shortlistBoundaryCandidates` in
948
+ * `../graph/dynamic-boundary-report` — shared with the viewer's end cap, so
949
+ * "candidates for key `save`" names the same symbols in both places. Symbols
950
+ * the agent already named are marked: that is the "you were right, here's the
951
+ * wiring" case.
455
952
  */
456
953
  private boundaryCandidates;
457
954
  /**
@@ -463,6 +960,14 @@ export declare class ToolHandler {
463
960
  * qualify so a leaf-only exploration stays clean.
464
961
  */
465
962
  private buildBlastRadiusSection;
963
+ /**
964
+ * Test-coverage note for a blast-radius entry whose DIRECT callers include no
965
+ * test file. A helper called only by production code can still be exercised
966
+ * by tests further up the caller chain (#1475: 40% of directly-unflagged
967
+ * symbols had a test within 2-3 hops), so walk up to 2 more hops before
968
+ * claiming anything — and even then claim only what was measured.
969
+ */
970
+ private indirectTestNote;
466
971
  /**
467
972
  * Graph-connectivity relevance via Random-Walk-with-Restart (personalized
468
973
  * PageRank) from the query's matched SEED nodes over the call/reference graph.
@@ -512,6 +1017,19 @@ export declare class ToolHandler {
512
1017
  private handleFileView;
513
1018
  /** Render one symbol: details + (optional) body/outline + its caller/callee trail. */
514
1019
  private renderNodeSection;
1020
+ private static readonly STALE_WHOLE_FILE_MAX_LINES;
1021
+ private static readonly STALE_WHOLE_FILE_MAX_CHARS;
1022
+ /**
1023
+ * codegraph_node render for a symbol whose file changed on disk after the
1024
+ * last index sync (issue #1474). The indexed line range is no longer
1025
+ * trustworthy, so no slice is emitted: a small file gets its full CURRENT
1026
+ * source (Read-parity — sufficiency preserved, the agent still doesn't need
1027
+ * Read); a large one gets an explicit notice steering to the tool's own
1028
+ * file-read mode (or Read) — honest absence instead of confident wrongness.
1029
+ * Location/signature stay (they're the index's answer) but are flagged as
1030
+ * possibly shifted.
1031
+ */
1032
+ private renderStaleNodeSection;
515
1033
  /**
516
1034
  * Build the "trail" for a symbol: its direct callees (what it calls) and
517
1035
  * callers (what calls it), each with file:line — so codegraph_node doubles as
@@ -551,22 +1069,8 @@ export declare class ToolHandler {
551
1069
  * Returns the best match and a note about alternatives if any.
552
1070
  */
553
1071
  /**
554
- * Check if a node matches a symbol query.
555
- *
556
- * Accepts simple names (`run`) and three flavors of qualifier:
557
- * - dotted `Session.request` (TS/JS/Python)
558
- * - colon-pair `stage_apply::run` (Rust, C++, Ruby)
559
- * - slash `configurator/stage_apply` (path-ish)
560
- *
561
- * Multi-level qualifiers compose: `crate::configurator::stage_apply::run`
562
- * works. Rust path prefixes (`crate`, `super`, `self`) are stripped so
563
- * the canonical `crate::module::symbol` form resolves.
564
- *
565
- * Resolution order, last part must always equal `node.name`:
566
- * 1. Suffix-match against `qualifiedName` (handles class-scoped methods
567
- * where the extractor builds the qualified name from the AST stack)
568
- * 2. File-path containment (handles file-derived modules in Rust/
569
- * Python — `stage_apply::run` matches a `run` in `stage_apply.rs`)
1072
+ * Check if a node matches a symbol query — see `matchesSymbol` in
1073
+ * `../graph/symbol-lookup`, which owns the rules.
570
1074
  */
571
1075
  private matchesSymbol;
572
1076
  /**
@@ -581,6 +1085,9 @@ export declare class ToolHandler {
581
1085
  /**
582
1086
  * Find ALL symbols matching a name. Used by callers/callees/impact to aggregate
583
1087
  * results across all matching symbols (e.g., multiple classes with an `execute` method).
1088
+ *
1089
+ * The resolution itself lives in `../graph/named-symbol-flow`, so the Flow
1090
+ * strip and `codegraph_explore` resolve a written name to the same nodes.
584
1091
  */
585
1092
  private findAllSymbols;
586
1093
  /**
@@ -609,5 +1116,4 @@ export declare class ToolHandler {
609
1116
  private textResult;
610
1117
  private errorResult;
611
1118
  }
612
- export {};
613
1119
  //# sourceMappingURL=tools.d.ts.map