codegraph-java 0.1.0

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 (866) hide show
  1. package/README.md +131 -0
  2. package/dist/base-graph/index.d.ts +57 -0
  3. package/dist/base-graph/index.d.ts.map +1 -0
  4. package/dist/base-graph/index.js +175 -0
  5. package/dist/base-graph/index.js.map +1 -0
  6. package/dist/bin/codegraph.d.ts +28 -0
  7. package/dist/bin/codegraph.d.ts.map +1 -0
  8. package/dist/bin/codegraph.js +2615 -0
  9. package/dist/bin/codegraph.js.map +1 -0
  10. package/dist/bin/command-supervision.d.ts +49 -0
  11. package/dist/bin/command-supervision.d.ts.map +1 -0
  12. package/dist/bin/command-supervision.js +95 -0
  13. package/dist/bin/command-supervision.js.map +1 -0
  14. package/dist/bin/fatal-handler.d.ts +20 -0
  15. package/dist/bin/fatal-handler.d.ts.map +1 -0
  16. package/dist/bin/fatal-handler.js +118 -0
  17. package/dist/bin/fatal-handler.js.map +1 -0
  18. package/dist/bin/node-version-check.d.ts +45 -0
  19. package/dist/bin/node-version-check.d.ts.map +1 -0
  20. package/dist/bin/node-version-check.js +98 -0
  21. package/dist/bin/node-version-check.js.map +1 -0
  22. package/dist/bin/uninstall.d.ts +14 -0
  23. package/dist/bin/uninstall.d.ts.map +1 -0
  24. package/dist/bin/uninstall.js +36 -0
  25. package/dist/bin/uninstall.js.map +1 -0
  26. package/dist/context/formatter.d.ts +36 -0
  27. package/dist/context/formatter.d.ts.map +1 -0
  28. package/dist/context/formatter.js +269 -0
  29. package/dist/context/formatter.js.map +1 -0
  30. package/dist/context/index.d.ts +131 -0
  31. package/dist/context/index.d.ts.map +1 -0
  32. package/dist/context/index.js +1378 -0
  33. package/dist/context/index.js.map +1 -0
  34. package/dist/context/markers.d.ts +19 -0
  35. package/dist/context/markers.d.ts.map +1 -0
  36. package/dist/context/markers.js +22 -0
  37. package/dist/context/markers.js.map +1 -0
  38. package/dist/db/index.d.ts +380 -0
  39. package/dist/db/index.d.ts.map +1 -0
  40. package/dist/db/index.js +854 -0
  41. package/dist/db/index.js.map +1 -0
  42. package/dist/db/migrations.d.ts +44 -0
  43. package/dist/db/migrations.d.ts.map +1 -0
  44. package/dist/db/migrations.js +255 -0
  45. package/dist/db/migrations.js.map +1 -0
  46. package/dist/db/queries.d.ts +1060 -0
  47. package/dist/db/queries.d.ts.map +1 -0
  48. package/dist/db/queries.js +3191 -0
  49. package/dist/db/queries.js.map +1 -0
  50. package/dist/db/schema.sql +209 -0
  51. package/dist/db/sqlite-adapter.d.ts +55 -0
  52. package/dist/db/sqlite-adapter.d.ts.map +1 -0
  53. package/dist/db/sqlite-adapter.js +135 -0
  54. package/dist/db/sqlite-adapter.js.map +1 -0
  55. package/dist/db/wal-valve.d.ts +119 -0
  56. package/dist/db/wal-valve.d.ts.map +1 -0
  57. package/dist/db/wal-valve.js +290 -0
  58. package/dist/db/wal-valve.js.map +1 -0
  59. package/dist/directory.d.ts +213 -0
  60. package/dist/directory.d.ts.map +1 -0
  61. package/dist/directory.js +781 -0
  62. package/dist/directory.js.map +1 -0
  63. package/dist/errors.d.ts +150 -0
  64. package/dist/errors.d.ts.map +1 -0
  65. package/dist/errors.js +234 -0
  66. package/dist/errors.js.map +1 -0
  67. package/dist/extraction/extraction-version.d.ts +25 -0
  68. package/dist/extraction/extraction-version.d.ts.map +1 -0
  69. package/dist/extraction/extraction-version.js +28 -0
  70. package/dist/extraction/extraction-version.js.map +1 -0
  71. package/dist/extraction/function-ref.d.ts +118 -0
  72. package/dist/extraction/function-ref.d.ts.map +1 -0
  73. package/dist/extraction/function-ref.js +746 -0
  74. package/dist/extraction/function-ref.js.map +1 -0
  75. package/dist/extraction/generated-detection.d.ts +66 -0
  76. package/dist/extraction/generated-detection.d.ts.map +1 -0
  77. package/dist/extraction/generated-detection.js +248 -0
  78. package/dist/extraction/generated-detection.js.map +1 -0
  79. package/dist/extraction/grammars.d.ts +148 -0
  80. package/dist/extraction/grammars.d.ts.map +1 -0
  81. package/dist/extraction/grammars.js +558 -0
  82. package/dist/extraction/grammars.js.map +1 -0
  83. package/dist/extraction/index.d.ts +367 -0
  84. package/dist/extraction/index.d.ts.map +1 -0
  85. package/dist/extraction/index.js +2833 -0
  86. package/dist/extraction/index.js.map +1 -0
  87. package/dist/extraction/kernel/decode.d.ts +9 -0
  88. package/dist/extraction/kernel/decode.d.ts.map +1 -0
  89. package/dist/extraction/kernel/decode.js +162 -0
  90. package/dist/extraction/kernel/decode.js.map +1 -0
  91. package/dist/extraction/kernel/index.d.ts +64 -0
  92. package/dist/extraction/kernel/index.d.ts.map +1 -0
  93. package/dist/extraction/kernel/index.js +204 -0
  94. package/dist/extraction/kernel/index.js.map +1 -0
  95. package/dist/extraction/kernel/layout.d.ts +101 -0
  96. package/dist/extraction/kernel/layout.d.ts.map +1 -0
  97. package/dist/extraction/kernel/layout.js +104 -0
  98. package/dist/extraction/kernel/layout.js.map +1 -0
  99. package/dist/extraction/kernel/loader.d.ts +103 -0
  100. package/dist/extraction/kernel/loader.d.ts.map +1 -0
  101. package/dist/extraction/kernel/loader.js +146 -0
  102. package/dist/extraction/kernel/loader.js.map +1 -0
  103. package/dist/extraction/languages/c-cpp.d.ts +124 -0
  104. package/dist/extraction/languages/c-cpp.d.ts.map +1 -0
  105. package/dist/extraction/languages/c-cpp.js +1689 -0
  106. package/dist/extraction/languages/c-cpp.js.map +1 -0
  107. package/dist/extraction/languages/index.d.ts +11 -0
  108. package/dist/extraction/languages/index.d.ts.map +1 -0
  109. package/dist/extraction/languages/index.js +15 -0
  110. package/dist/extraction/languages/index.js.map +1 -0
  111. package/dist/extraction/languages/java.d.ts +3 -0
  112. package/dist/extraction/languages/java.d.ts.map +1 -0
  113. package/dist/extraction/languages/java.js +315 -0
  114. package/dist/extraction/languages/java.js.map +1 -0
  115. package/dist/extraction/languages/rust.d.ts +23 -0
  116. package/dist/extraction/languages/rust.d.ts.map +1 -0
  117. package/dist/extraction/languages/rust.js +169 -0
  118. package/dist/extraction/languages/rust.js.map +1 -0
  119. package/dist/extraction/parse-pool.d.ts +167 -0
  120. package/dist/extraction/parse-pool.d.ts.map +1 -0
  121. package/dist/extraction/parse-pool.js +421 -0
  122. package/dist/extraction/parse-pool.js.map +1 -0
  123. package/dist/extraction/parse-worker.d.ts +8 -0
  124. package/dist/extraction/parse-worker.d.ts.map +1 -0
  125. package/dist/extraction/parse-worker.js +138 -0
  126. package/dist/extraction/parse-worker.js.map +1 -0
  127. package/dist/extraction/store-worker.d.ts +24 -0
  128. package/dist/extraction/store-worker.d.ts.map +1 -0
  129. package/dist/extraction/store-worker.js +139 -0
  130. package/dist/extraction/store-worker.js.map +1 -0
  131. package/dist/extraction/store-writer.d.ts +63 -0
  132. package/dist/extraction/store-writer.d.ts.map +1 -0
  133. package/dist/extraction/store-writer.js +174 -0
  134. package/dist/extraction/store-writer.js.map +1 -0
  135. package/dist/extraction/syntax-tokens.d.ts +103 -0
  136. package/dist/extraction/syntax-tokens.d.ts.map +1 -0
  137. package/dist/extraction/syntax-tokens.js +381 -0
  138. package/dist/extraction/syntax-tokens.js.map +1 -0
  139. package/dist/extraction/tree-sitter-helpers.d.ts +28 -0
  140. package/dist/extraction/tree-sitter-helpers.d.ts.map +1 -0
  141. package/dist/extraction/tree-sitter-helpers.js +153 -0
  142. package/dist/extraction/tree-sitter-helpers.js.map +1 -0
  143. package/dist/extraction/tree-sitter-types.d.ts +260 -0
  144. package/dist/extraction/tree-sitter-types.d.ts.map +1 -0
  145. package/dist/extraction/tree-sitter-types.js +10 -0
  146. package/dist/extraction/tree-sitter-types.js.map +1 -0
  147. package/dist/extraction/tree-sitter.d.ts +745 -0
  148. package/dist/extraction/tree-sitter.d.ts.map +1 -0
  149. package/dist/extraction/tree-sitter.js +6725 -0
  150. package/dist/extraction/tree-sitter.js.map +1 -0
  151. package/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
  152. package/dist/extraction/wasm-runtime-flags.d.ts +53 -0
  153. package/dist/extraction/wasm-runtime-flags.d.ts.map +1 -0
  154. package/dist/extraction/wasm-runtime-flags.js +130 -0
  155. package/dist/extraction/wasm-runtime-flags.js.map +1 -0
  156. package/dist/graph/branch-guards.d.ts +248 -0
  157. package/dist/graph/branch-guards.d.ts.map +1 -0
  158. package/dist/graph/branch-guards.js +2231 -0
  159. package/dist/graph/branch-guards.js.map +1 -0
  160. package/dist/graph/dead-code.d.ts +251 -0
  161. package/dist/graph/dead-code.d.ts.map +1 -0
  162. package/dist/graph/dead-code.js +756 -0
  163. package/dist/graph/dead-code.js.map +1 -0
  164. package/dist/graph/dynamic-boundary-report.d.ts +121 -0
  165. package/dist/graph/dynamic-boundary-report.d.ts.map +1 -0
  166. package/dist/graph/dynamic-boundary-report.js +283 -0
  167. package/dist/graph/dynamic-boundary-report.js.map +1 -0
  168. package/dist/graph/index.d.ts +12 -0
  169. package/dist/graph/index.d.ts.map +1 -0
  170. package/dist/graph/index.js +28 -0
  171. package/dist/graph/index.js.map +1 -0
  172. package/dist/graph/named-symbol-flow.d.ts +153 -0
  173. package/dist/graph/named-symbol-flow.d.ts.map +1 -0
  174. package/dist/graph/named-symbol-flow.js +609 -0
  175. package/dist/graph/named-symbol-flow.js.map +1 -0
  176. package/dist/graph/queries.d.ts +106 -0
  177. package/dist/graph/queries.d.ts.map +1 -0
  178. package/dist/graph/queries.js +341 -0
  179. package/dist/graph/queries.js.map +1 -0
  180. package/dist/graph/traversal.d.ts +127 -0
  181. package/dist/graph/traversal.d.ts.map +1 -0
  182. package/dist/graph/traversal.js +599 -0
  183. package/dist/graph/traversal.js.map +1 -0
  184. package/dist/graph/type-hierarchy.d.ts +155 -0
  185. package/dist/graph/type-hierarchy.d.ts.map +1 -0
  186. package/dist/graph/type-hierarchy.js +382 -0
  187. package/dist/graph/type-hierarchy.js.map +1 -0
  188. package/dist/index.d.ts +886 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.js +2019 -0
  191. package/dist/index.js.map +1 -0
  192. package/dist/installer/beta-signup.d.ts +54 -0
  193. package/dist/installer/beta-signup.d.ts.map +1 -0
  194. package/dist/installer/beta-signup.js +178 -0
  195. package/dist/installer/beta-signup.js.map +1 -0
  196. package/dist/installer/config-writer.d.ts +28 -0
  197. package/dist/installer/config-writer.d.ts.map +1 -0
  198. package/dist/installer/config-writer.js +91 -0
  199. package/dist/installer/config-writer.js.map +1 -0
  200. package/dist/installer/index.d.ts +143 -0
  201. package/dist/installer/index.d.ts.map +1 -0
  202. package/dist/installer/index.js +632 -0
  203. package/dist/installer/index.js.map +1 -0
  204. package/dist/installer/instructions-template.d.ts +41 -0
  205. package/dist/installer/instructions-template.d.ts.map +1 -0
  206. package/dist/installer/instructions-template.js +53 -0
  207. package/dist/installer/instructions-template.js.map +1 -0
  208. package/dist/installer/targets/antigravity.d.ts +57 -0
  209. package/dist/installer/targets/antigravity.d.ts.map +1 -0
  210. package/dist/installer/targets/antigravity.js +308 -0
  211. package/dist/installer/targets/antigravity.js.map +1 -0
  212. package/dist/installer/targets/claude.d.ts +62 -0
  213. package/dist/installer/targets/claude.d.ts.map +1 -0
  214. package/dist/installer/targets/claude.js +486 -0
  215. package/dist/installer/targets/claude.js.map +1 -0
  216. package/dist/installer/targets/codex.d.ts +32 -0
  217. package/dist/installer/targets/codex.d.ts.map +1 -0
  218. package/dist/installer/targets/codex.js +202 -0
  219. package/dist/installer/targets/codex.js.map +1 -0
  220. package/dist/installer/targets/copilot-cli.d.ts +32 -0
  221. package/dist/installer/targets/copilot-cli.d.ts.map +1 -0
  222. package/dist/installer/targets/copilot-cli.js +209 -0
  223. package/dist/installer/targets/copilot-cli.js.map +1 -0
  224. package/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
  225. package/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
  226. package/dist/installer/targets/copilot-jetbrains.js +238 -0
  227. package/dist/installer/targets/copilot-jetbrains.js.map +1 -0
  228. package/dist/installer/targets/copilot-vscode.d.ts +47 -0
  229. package/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
  230. package/dist/installer/targets/copilot-vscode.js +219 -0
  231. package/dist/installer/targets/copilot-vscode.js.map +1 -0
  232. package/dist/installer/targets/cursor.d.ts +35 -0
  233. package/dist/installer/targets/cursor.d.ts.map +1 -0
  234. package/dist/installer/targets/cursor.js +254 -0
  235. package/dist/installer/targets/cursor.js.map +1 -0
  236. package/dist/installer/targets/gemini.d.ts +26 -0
  237. package/dist/installer/targets/gemini.d.ts.map +1 -0
  238. package/dist/installer/targets/gemini.js +165 -0
  239. package/dist/installer/targets/gemini.js.map +1 -0
  240. package/dist/installer/targets/hermes.d.ts +18 -0
  241. package/dist/installer/targets/hermes.d.ts.map +1 -0
  242. package/dist/installer/targets/hermes.js +359 -0
  243. package/dist/installer/targets/hermes.js.map +1 -0
  244. package/dist/installer/targets/kiro.d.ts +27 -0
  245. package/dist/installer/targets/kiro.d.ts.map +1 -0
  246. package/dist/installer/targets/kiro.js +178 -0
  247. package/dist/installer/targets/kiro.js.map +1 -0
  248. package/dist/installer/targets/opencode.d.ts +38 -0
  249. package/dist/installer/targets/opencode.d.ts.map +1 -0
  250. package/dist/installer/targets/opencode.js +288 -0
  251. package/dist/installer/targets/opencode.js.map +1 -0
  252. package/dist/installer/targets/registry.d.ts +35 -0
  253. package/dist/installer/targets/registry.d.ts.map +1 -0
  254. package/dist/installer/targets/registry.js +101 -0
  255. package/dist/installer/targets/registry.js.map +1 -0
  256. package/dist/installer/targets/shared.d.ts +101 -0
  257. package/dist/installer/targets/shared.d.ts.map +1 -0
  258. package/dist/installer/targets/shared.js +264 -0
  259. package/dist/installer/targets/shared.js.map +1 -0
  260. package/dist/installer/targets/toml.d.ts +53 -0
  261. package/dist/installer/targets/toml.d.ts.map +1 -0
  262. package/dist/installer/targets/toml.js +226 -0
  263. package/dist/installer/targets/toml.js.map +1 -0
  264. package/dist/installer/targets/trae.d.ts +30 -0
  265. package/dist/installer/targets/trae.d.ts.map +1 -0
  266. package/dist/installer/targets/trae.js +164 -0
  267. package/dist/installer/targets/trae.js.map +1 -0
  268. package/dist/installer/targets/types.d.ts +108 -0
  269. package/dist/installer/targets/types.d.ts.map +1 -0
  270. package/dist/installer/targets/types.js +16 -0
  271. package/dist/installer/targets/types.js.map +1 -0
  272. package/dist/installer/targets/workbuddy.d.ts +29 -0
  273. package/dist/installer/targets/workbuddy.d.ts.map +1 -0
  274. package/dist/installer/targets/workbuddy.js +163 -0
  275. package/dist/installer/targets/workbuddy.js.map +1 -0
  276. package/dist/mcp/daemon-manager.d.ts +42 -0
  277. package/dist/mcp/daemon-manager.d.ts.map +1 -0
  278. package/dist/mcp/daemon-manager.js +129 -0
  279. package/dist/mcp/daemon-manager.js.map +1 -0
  280. package/dist/mcp/daemon-paths.d.ts +79 -0
  281. package/dist/mcp/daemon-paths.d.ts.map +1 -0
  282. package/dist/mcp/daemon-paths.js +219 -0
  283. package/dist/mcp/daemon-paths.js.map +1 -0
  284. package/dist/mcp/daemon-registry.d.ts +57 -0
  285. package/dist/mcp/daemon-registry.d.ts.map +1 -0
  286. package/dist/mcp/daemon-registry.js +281 -0
  287. package/dist/mcp/daemon-registry.js.map +1 -0
  288. package/dist/mcp/daemon.d.ts +293 -0
  289. package/dist/mcp/daemon.d.ts.map +1 -0
  290. package/dist/mcp/daemon.js +864 -0
  291. package/dist/mcp/daemon.js.map +1 -0
  292. package/dist/mcp/dynamic-boundaries.d.ts +41 -0
  293. package/dist/mcp/dynamic-boundaries.d.ts.map +1 -0
  294. package/dist/mcp/dynamic-boundaries.js +360 -0
  295. package/dist/mcp/dynamic-boundaries.js.map +1 -0
  296. package/dist/mcp/early-ppid.d.ts +26 -0
  297. package/dist/mcp/early-ppid.d.ts.map +1 -0
  298. package/dist/mcp/early-ppid.js +29 -0
  299. package/dist/mcp/early-ppid.js.map +1 -0
  300. package/dist/mcp/engine.d.ts +125 -0
  301. package/dist/mcp/engine.d.ts.map +1 -0
  302. package/dist/mcp/engine.js +392 -0
  303. package/dist/mcp/engine.js.map +1 -0
  304. package/dist/mcp/explore-dedup.d.ts +137 -0
  305. package/dist/mcp/explore-dedup.d.ts.map +1 -0
  306. package/dist/mcp/explore-dedup.js +236 -0
  307. package/dist/mcp/explore-dedup.js.map +1 -0
  308. package/dist/mcp/explore-diagnostics.d.ts +289 -0
  309. package/dist/mcp/explore-diagnostics.d.ts.map +1 -0
  310. package/dist/mcp/explore-diagnostics.js +558 -0
  311. package/dist/mcp/explore-diagnostics.js.map +1 -0
  312. package/dist/mcp/explore-session-state.d.ts +217 -0
  313. package/dist/mcp/explore-session-state.d.ts.map +1 -0
  314. package/dist/mcp/explore-session-state.js +322 -0
  315. package/dist/mcp/explore-session-state.js.map +1 -0
  316. package/dist/mcp/index.d.ts +137 -0
  317. package/dist/mcp/index.d.ts.map +1 -0
  318. package/dist/mcp/index.js +567 -0
  319. package/dist/mcp/index.js.map +1 -0
  320. package/dist/mcp/liveness-watchdog.d.ts +35 -0
  321. package/dist/mcp/liveness-watchdog.d.ts.map +1 -0
  322. package/dist/mcp/liveness-watchdog.js +269 -0
  323. package/dist/mcp/liveness-watchdog.js.map +1 -0
  324. package/dist/mcp/ppid-watchdog.d.ts +62 -0
  325. package/dist/mcp/ppid-watchdog.d.ts.map +1 -0
  326. package/dist/mcp/ppid-watchdog.js +64 -0
  327. package/dist/mcp/ppid-watchdog.js.map +1 -0
  328. package/dist/mcp/proxy.d.ts +87 -0
  329. package/dist/mcp/proxy.d.ts.map +1 -0
  330. package/dist/mcp/proxy.js +672 -0
  331. package/dist/mcp/proxy.js.map +1 -0
  332. package/dist/mcp/query-pool.d.ts +108 -0
  333. package/dist/mcp/query-pool.d.ts.map +1 -0
  334. package/dist/mcp/query-pool.js +315 -0
  335. package/dist/mcp/query-pool.js.map +1 -0
  336. package/dist/mcp/query-worker.d.ts +24 -0
  337. package/dist/mcp/query-worker.d.ts.map +1 -0
  338. package/dist/mcp/query-worker.js +87 -0
  339. package/dist/mcp/query-worker.js.map +1 -0
  340. package/dist/mcp/server-instructions.d.ts +34 -0
  341. package/dist/mcp/server-instructions.d.ts.map +1 -0
  342. package/dist/mcp/server-instructions.js +111 -0
  343. package/dist/mcp/server-instructions.js.map +1 -0
  344. package/dist/mcp/session.d.ts +109 -0
  345. package/dist/mcp/session.d.ts.map +1 -0
  346. package/dist/mcp/session.js +380 -0
  347. package/dist/mcp/session.js.map +1 -0
  348. package/dist/mcp/startup-handshake.d.ts +44 -0
  349. package/dist/mcp/startup-handshake.d.ts.map +1 -0
  350. package/dist/mcp/startup-handshake.js +73 -0
  351. package/dist/mcp/startup-handshake.js.map +1 -0
  352. package/dist/mcp/stdin-teardown.d.ts +27 -0
  353. package/dist/mcp/stdin-teardown.d.ts.map +1 -0
  354. package/dist/mcp/stdin-teardown.js +49 -0
  355. package/dist/mcp/stdin-teardown.js.map +1 -0
  356. package/dist/mcp/tools.d.ts +877 -0
  357. package/dist/mcp/tools.d.ts.map +1 -0
  358. package/dist/mcp/tools.js +6371 -0
  359. package/dist/mcp/tools.js.map +1 -0
  360. package/dist/mcp/transport.d.ts +188 -0
  361. package/dist/mcp/transport.d.ts.map +1 -0
  362. package/dist/mcp/transport.js +377 -0
  363. package/dist/mcp/transport.js.map +1 -0
  364. package/dist/mcp/version.d.ts +19 -0
  365. package/dist/mcp/version.d.ts.map +1 -0
  366. package/dist/mcp/version.js +71 -0
  367. package/dist/mcp/version.js.map +1 -0
  368. package/dist/project-config.d.ts +158 -0
  369. package/dist/project-config.d.ts.map +1 -0
  370. package/dist/project-config.js +489 -0
  371. package/dist/project-config.js.map +1 -0
  372. package/dist/resolution/c-fnptr-synthesizer.d.ts +6 -0
  373. package/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -0
  374. package/dist/resolution/c-fnptr-synthesizer.js +1506 -0
  375. package/dist/resolution/c-fnptr-synthesizer.js.map +1 -0
  376. package/dist/resolution/callback-synthesizer.d.ts +59 -0
  377. package/dist/resolution/callback-synthesizer.d.ts.map +1 -0
  378. package/dist/resolution/callback-synthesizer.js +4066 -0
  379. package/dist/resolution/callback-synthesizer.js.map +1 -0
  380. package/dist/resolution/cooperative-yield.d.ts +40 -0
  381. package/dist/resolution/cooperative-yield.d.ts.map +1 -0
  382. package/dist/resolution/cooperative-yield.js +44 -0
  383. package/dist/resolution/cooperative-yield.js.map +1 -0
  384. package/dist/resolution/expo-router-synthesizer.d.ts +32 -0
  385. package/dist/resolution/expo-router-synthesizer.d.ts.map +1 -0
  386. package/dist/resolution/expo-router-synthesizer.js +189 -0
  387. package/dist/resolution/expo-router-synthesizer.js.map +1 -0
  388. package/dist/resolution/frameworks/astro.d.ts +9 -0
  389. package/dist/resolution/frameworks/astro.d.ts.map +1 -0
  390. package/dist/resolution/frameworks/astro.js +169 -0
  391. package/dist/resolution/frameworks/astro.js.map +1 -0
  392. package/dist/resolution/frameworks/cargo-workspace.d.ts +18 -0
  393. package/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -0
  394. package/dist/resolution/frameworks/cargo-workspace.js +225 -0
  395. package/dist/resolution/frameworks/cargo-workspace.js.map +1 -0
  396. package/dist/resolution/frameworks/cics.d.ts +20 -0
  397. package/dist/resolution/frameworks/cics.d.ts.map +1 -0
  398. package/dist/resolution/frameworks/cics.js +90 -0
  399. package/dist/resolution/frameworks/cics.js.map +1 -0
  400. package/dist/resolution/frameworks/csharp.d.ts +8 -0
  401. package/dist/resolution/frameworks/csharp.d.ts.map +1 -0
  402. package/dist/resolution/frameworks/csharp.js +335 -0
  403. package/dist/resolution/frameworks/csharp.js.map +1 -0
  404. package/dist/resolution/frameworks/drupal.d.ts +51 -0
  405. package/dist/resolution/frameworks/drupal.d.ts.map +1 -0
  406. package/dist/resolution/frameworks/drupal.js +367 -0
  407. package/dist/resolution/frameworks/drupal.js.map +1 -0
  408. package/dist/resolution/frameworks/expo-modules.d.ts +3 -0
  409. package/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
  410. package/dist/resolution/frameworks/expo-modules.js +148 -0
  411. package/dist/resolution/frameworks/expo-modules.js.map +1 -0
  412. package/dist/resolution/frameworks/expo-router.d.ts +189 -0
  413. package/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
  414. package/dist/resolution/frameworks/expo-router.js +785 -0
  415. package/dist/resolution/frameworks/expo-router.js.map +1 -0
  416. package/dist/resolution/frameworks/express.d.ts +8 -0
  417. package/dist/resolution/frameworks/express.d.ts.map +1 -0
  418. package/dist/resolution/frameworks/express.js +540 -0
  419. package/dist/resolution/frameworks/express.js.map +1 -0
  420. package/dist/resolution/frameworks/fabric.d.ts +3 -0
  421. package/dist/resolution/frameworks/fabric.d.ts.map +1 -0
  422. package/dist/resolution/frameworks/fabric.js +354 -0
  423. package/dist/resolution/frameworks/fabric.js.map +1 -0
  424. package/dist/resolution/frameworks/go.d.ts +8 -0
  425. package/dist/resolution/frameworks/go.d.ts.map +1 -0
  426. package/dist/resolution/frameworks/go.js +184 -0
  427. package/dist/resolution/frameworks/go.js.map +1 -0
  428. package/dist/resolution/frameworks/goframe.d.ts +41 -0
  429. package/dist/resolution/frameworks/goframe.d.ts.map +1 -0
  430. package/dist/resolution/frameworks/goframe.js +112 -0
  431. package/dist/resolution/frameworks/goframe.js.map +1 -0
  432. package/dist/resolution/frameworks/index.d.ts +30 -0
  433. package/dist/resolution/frameworks/index.d.ts.map +1 -0
  434. package/dist/resolution/frameworks/index.js +72 -0
  435. package/dist/resolution/frameworks/index.js.map +1 -0
  436. package/dist/resolution/frameworks/java.d.ts +8 -0
  437. package/dist/resolution/frameworks/java.d.ts.map +1 -0
  438. package/dist/resolution/frameworks/java.js +517 -0
  439. package/dist/resolution/frameworks/java.js.map +1 -0
  440. package/dist/resolution/frameworks/laravel.d.ts +13 -0
  441. package/dist/resolution/frameworks/laravel.d.ts.map +1 -0
  442. package/dist/resolution/frameworks/laravel.js +257 -0
  443. package/dist/resolution/frameworks/laravel.js.map +1 -0
  444. package/dist/resolution/frameworks/nestjs.d.ts +26 -0
  445. package/dist/resolution/frameworks/nestjs.d.ts.map +1 -0
  446. package/dist/resolution/frameworks/nestjs.js +690 -0
  447. package/dist/resolution/frameworks/nestjs.js.map +1 -0
  448. package/dist/resolution/frameworks/nextjs.d.ts +76 -0
  449. package/dist/resolution/frameworks/nextjs.d.ts.map +1 -0
  450. package/dist/resolution/frameworks/nextjs.js +328 -0
  451. package/dist/resolution/frameworks/nextjs.js.map +1 -0
  452. package/dist/resolution/frameworks/object-literal.d.ts +32 -0
  453. package/dist/resolution/frameworks/object-literal.d.ts.map +1 -0
  454. package/dist/resolution/frameworks/object-literal.js +139 -0
  455. package/dist/resolution/frameworks/object-literal.js.map +1 -0
  456. package/dist/resolution/frameworks/package-deps.d.ts +14 -0
  457. package/dist/resolution/frameworks/package-deps.d.ts.map +1 -0
  458. package/dist/resolution/frameworks/package-deps.js +78 -0
  459. package/dist/resolution/frameworks/package-deps.js.map +1 -0
  460. package/dist/resolution/frameworks/play.d.ts +19 -0
  461. package/dist/resolution/frameworks/play.d.ts.map +1 -0
  462. package/dist/resolution/frameworks/play.js +111 -0
  463. package/dist/resolution/frameworks/play.js.map +1 -0
  464. package/dist/resolution/frameworks/python.d.ts +10 -0
  465. package/dist/resolution/frameworks/python.d.ts.map +1 -0
  466. package/dist/resolution/frameworks/python.js +566 -0
  467. package/dist/resolution/frameworks/python.js.map +1 -0
  468. package/dist/resolution/frameworks/react-native.d.ts +29 -0
  469. package/dist/resolution/frameworks/react-native.d.ts.map +1 -0
  470. package/dist/resolution/frameworks/react-native.js +549 -0
  471. package/dist/resolution/frameworks/react-native.js.map +1 -0
  472. package/dist/resolution/frameworks/react-router.d.ts +46 -0
  473. package/dist/resolution/frameworks/react-router.d.ts.map +1 -0
  474. package/dist/resolution/frameworks/react-router.js +187 -0
  475. package/dist/resolution/frameworks/react-router.js.map +1 -0
  476. package/dist/resolution/frameworks/react.d.ts +9 -0
  477. package/dist/resolution/frameworks/react.d.ts.map +1 -0
  478. package/dist/resolution/frameworks/react.js +257 -0
  479. package/dist/resolution/frameworks/react.js.map +1 -0
  480. package/dist/resolution/frameworks/ruby.d.ts +8 -0
  481. package/dist/resolution/frameworks/ruby.d.ts.map +1 -0
  482. package/dist/resolution/frameworks/ruby.js +302 -0
  483. package/dist/resolution/frameworks/ruby.js.map +1 -0
  484. package/dist/resolution/frameworks/rust.d.ts +8 -0
  485. package/dist/resolution/frameworks/rust.d.ts.map +1 -0
  486. package/dist/resolution/frameworks/rust.js +304 -0
  487. package/dist/resolution/frameworks/rust.js.map +1 -0
  488. package/dist/resolution/frameworks/svelte.d.ts +9 -0
  489. package/dist/resolution/frameworks/svelte.d.ts.map +1 -0
  490. package/dist/resolution/frameworks/svelte.js +258 -0
  491. package/dist/resolution/frameworks/svelte.js.map +1 -0
  492. package/dist/resolution/frameworks/sveltekit-router.d.ts +36 -0
  493. package/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -0
  494. package/dist/resolution/frameworks/sveltekit-router.js +156 -0
  495. package/dist/resolution/frameworks/sveltekit-router.js.map +1 -0
  496. package/dist/resolution/frameworks/swift-objc.d.ts +37 -0
  497. package/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
  498. package/dist/resolution/frameworks/swift-objc.js +252 -0
  499. package/dist/resolution/frameworks/swift-objc.js.map +1 -0
  500. package/dist/resolution/frameworks/swift.d.ts +10 -0
  501. package/dist/resolution/frameworks/swift.d.ts.map +1 -0
  502. package/dist/resolution/frameworks/swift.js +410 -0
  503. package/dist/resolution/frameworks/swift.js.map +1 -0
  504. package/dist/resolution/frameworks/tanstack-router.d.ts +84 -0
  505. package/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -0
  506. package/dist/resolution/frameworks/tanstack-router.js +437 -0
  507. package/dist/resolution/frameworks/tanstack-router.js.map +1 -0
  508. package/dist/resolution/frameworks/terraform.d.ts +38 -0
  509. package/dist/resolution/frameworks/terraform.d.ts.map +1 -0
  510. package/dist/resolution/frameworks/terraform.js +277 -0
  511. package/dist/resolution/frameworks/terraform.js.map +1 -0
  512. package/dist/resolution/frameworks/vue-router.d.ts +82 -0
  513. package/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
  514. package/dist/resolution/frameworks/vue-router.js +377 -0
  515. package/dist/resolution/frameworks/vue-router.js.map +1 -0
  516. package/dist/resolution/frameworks/vue.d.ts +9 -0
  517. package/dist/resolution/frameworks/vue.d.ts.map +1 -0
  518. package/dist/resolution/frameworks/vue.js +303 -0
  519. package/dist/resolution/frameworks/vue.js.map +1 -0
  520. package/dist/resolution/go-module.d.ts +26 -0
  521. package/dist/resolution/go-module.d.ts.map +1 -0
  522. package/dist/resolution/go-module.js +78 -0
  523. package/dist/resolution/go-module.js.map +1 -0
  524. package/dist/resolution/goframe-synthesizer.d.ts +29 -0
  525. package/dist/resolution/goframe-synthesizer.d.ts.map +1 -0
  526. package/dist/resolution/goframe-synthesizer.js +163 -0
  527. package/dist/resolution/goframe-synthesizer.js.map +1 -0
  528. package/dist/resolution/import-resolver.d.ts +84 -0
  529. package/dist/resolution/import-resolver.d.ts.map +1 -0
  530. package/dist/resolution/import-resolver.js +2240 -0
  531. package/dist/resolution/import-resolver.js.map +1 -0
  532. package/dist/resolution/index.d.ts +343 -0
  533. package/dist/resolution/index.d.ts.map +1 -0
  534. package/dist/resolution/index.js +2352 -0
  535. package/dist/resolution/index.js.map +1 -0
  536. package/dist/resolution/lru-cache.d.ts +24 -0
  537. package/dist/resolution/lru-cache.d.ts.map +1 -0
  538. package/dist/resolution/lru-cache.js +62 -0
  539. package/dist/resolution/lru-cache.js.map +1 -0
  540. package/dist/resolution/memory-budget.d.ts +48 -0
  541. package/dist/resolution/memory-budget.d.ts.map +1 -0
  542. package/dist/resolution/memory-budget.js +162 -0
  543. package/dist/resolution/memory-budget.js.map +1 -0
  544. package/dist/resolution/name-matcher.d.ts +153 -0
  545. package/dist/resolution/name-matcher.d.ts.map +1 -0
  546. package/dist/resolution/name-matcher.js +2412 -0
  547. package/dist/resolution/name-matcher.js.map +1 -0
  548. package/dist/resolution/next-router-synthesizer.d.ts +27 -0
  549. package/dist/resolution/next-router-synthesizer.d.ts.map +1 -0
  550. package/dist/resolution/next-router-synthesizer.js +113 -0
  551. package/dist/resolution/next-router-synthesizer.js.map +1 -0
  552. package/dist/resolution/path-aliases.d.ts +70 -0
  553. package/dist/resolution/path-aliases.d.ts.map +1 -0
  554. package/dist/resolution/path-aliases.js +346 -0
  555. package/dist/resolution/path-aliases.js.map +1 -0
  556. package/dist/resolution/react-router-synthesizer.d.ts +33 -0
  557. package/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
  558. package/dist/resolution/react-router-synthesizer.js +126 -0
  559. package/dist/resolution/react-router-synthesizer.js.map +1 -0
  560. package/dist/resolution/resolver-pool.d.ts +106 -0
  561. package/dist/resolution/resolver-pool.d.ts.map +1 -0
  562. package/dist/resolution/resolver-pool.js +344 -0
  563. package/dist/resolution/resolver-pool.js.map +1 -0
  564. package/dist/resolution/resolver-worker.d.ts +17 -0
  565. package/dist/resolution/resolver-worker.d.ts.map +1 -0
  566. package/dist/resolution/resolver-worker.js +141 -0
  567. package/dist/resolution/resolver-worker.js.map +1 -0
  568. package/dist/resolution/strip-comments.d.ts +27 -0
  569. package/dist/resolution/strip-comments.d.ts.map +1 -0
  570. package/dist/resolution/strip-comments.js +492 -0
  571. package/dist/resolution/strip-comments.js.map +1 -0
  572. package/dist/resolution/sveltekit-synthesizer.d.ts +58 -0
  573. package/dist/resolution/sveltekit-synthesizer.d.ts.map +1 -0
  574. package/dist/resolution/sveltekit-synthesizer.js +173 -0
  575. package/dist/resolution/sveltekit-synthesizer.js.map +1 -0
  576. package/dist/resolution/swift-objc-bridge.d.ts +134 -0
  577. package/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
  578. package/dist/resolution/swift-objc-bridge.js +256 -0
  579. package/dist/resolution/swift-objc-bridge.js.map +1 -0
  580. package/dist/resolution/synth-utils.d.ts +26 -0
  581. package/dist/resolution/synth-utils.d.ts.map +1 -0
  582. package/dist/resolution/synth-utils.js +75 -0
  583. package/dist/resolution/synth-utils.js.map +1 -0
  584. package/dist/resolution/tanstack-router-synthesizer.d.ts +31 -0
  585. package/dist/resolution/tanstack-router-synthesizer.d.ts.map +1 -0
  586. package/dist/resolution/tanstack-router-synthesizer.js +114 -0
  587. package/dist/resolution/tanstack-router-synthesizer.js.map +1 -0
  588. package/dist/resolution/tier-synthesizer.d.ts +48 -0
  589. package/dist/resolution/tier-synthesizer.d.ts.map +1 -0
  590. package/dist/resolution/tier-synthesizer.js +907 -0
  591. package/dist/resolution/tier-synthesizer.js.map +1 -0
  592. package/dist/resolution/types.d.ts +290 -0
  593. package/dist/resolution/types.d.ts.map +1 -0
  594. package/dist/resolution/types.js +8 -0
  595. package/dist/resolution/types.js.map +1 -0
  596. package/dist/resolution/vue-router-synthesizer.d.ts +30 -0
  597. package/dist/resolution/vue-router-synthesizer.d.ts.map +1 -0
  598. package/dist/resolution/vue-router-synthesizer.js +115 -0
  599. package/dist/resolution/vue-router-synthesizer.js.map +1 -0
  600. package/dist/resolution/workspace-packages.d.ts +58 -0
  601. package/dist/resolution/workspace-packages.d.ts.map +1 -0
  602. package/dist/resolution/workspace-packages.js +346 -0
  603. package/dist/resolution/workspace-packages.js.map +1 -0
  604. package/dist/search/identifier-segments.d.ts +70 -0
  605. package/dist/search/identifier-segments.d.ts.map +1 -0
  606. package/dist/search/identifier-segments.js +205 -0
  607. package/dist/search/identifier-segments.js.map +1 -0
  608. package/dist/search/query-parser.d.ts +57 -0
  609. package/dist/search/query-parser.d.ts.map +1 -0
  610. package/dist/search/query-parser.js +177 -0
  611. package/dist/search/query-parser.js.map +1 -0
  612. package/dist/search/query-paths.d.ts +57 -0
  613. package/dist/search/query-paths.d.ts.map +1 -0
  614. package/dist/search/query-paths.js +298 -0
  615. package/dist/search/query-paths.js.map +1 -0
  616. package/dist/search/query-utils.d.ts +102 -0
  617. package/dist/search/query-utils.d.ts.map +1 -0
  618. package/dist/search/query-utils.js +487 -0
  619. package/dist/search/query-utils.js.map +1 -0
  620. package/dist/sync/git-hooks.d.ts +45 -0
  621. package/dist/sync/git-hooks.d.ts.map +1 -0
  622. package/dist/sync/git-hooks.js +227 -0
  623. package/dist/sync/git-hooks.js.map +1 -0
  624. package/dist/sync/index.d.ts +19 -0
  625. package/dist/sync/index.d.ts.map +1 -0
  626. package/dist/sync/index.js +35 -0
  627. package/dist/sync/index.js.map +1 -0
  628. package/dist/sync/watch-policy.d.ts +48 -0
  629. package/dist/sync/watch-policy.d.ts.map +1 -0
  630. package/dist/sync/watch-policy.js +124 -0
  631. package/dist/sync/watch-policy.js.map +1 -0
  632. package/dist/sync/watcher.d.ts +401 -0
  633. package/dist/sync/watcher.d.ts.map +1 -0
  634. package/dist/sync/watcher.js +967 -0
  635. package/dist/sync/watcher.js.map +1 -0
  636. package/dist/sync/worktree.d.ts +63 -0
  637. package/dist/sync/worktree.d.ts.map +1 -0
  638. package/dist/sync/worktree.js +182 -0
  639. package/dist/sync/worktree.js.map +1 -0
  640. package/dist/telemetry/index.d.ts +143 -0
  641. package/dist/telemetry/index.d.ts.map +1 -0
  642. package/dist/telemetry/index.js +541 -0
  643. package/dist/telemetry/index.js.map +1 -0
  644. package/dist/types.d.ts +486 -0
  645. package/dist/types.d.ts.map +1 -0
  646. package/dist/types.js +118 -0
  647. package/dist/types.js.map +1 -0
  648. package/dist/ui/color.d.ts +21 -0
  649. package/dist/ui/color.d.ts.map +1 -0
  650. package/dist/ui/color.js +42 -0
  651. package/dist/ui/color.js.map +1 -0
  652. package/dist/ui/glyphs.d.ts +67 -0
  653. package/dist/ui/glyphs.d.ts.map +1 -0
  654. package/dist/ui/glyphs.js +125 -0
  655. package/dist/ui/glyphs.js.map +1 -0
  656. package/dist/ui/shimmer-progress.d.ts +11 -0
  657. package/dist/ui/shimmer-progress.d.ts.map +1 -0
  658. package/dist/ui/shimmer-progress.js +164 -0
  659. package/dist/ui/shimmer-progress.js.map +1 -0
  660. package/dist/ui/shimmer-worker.d.ts +2 -0
  661. package/dist/ui/shimmer-worker.d.ts.map +1 -0
  662. package/dist/ui/shimmer-worker.js +126 -0
  663. package/dist/ui/shimmer-worker.js.map +1 -0
  664. package/dist/ui/types.d.ts +15 -0
  665. package/dist/ui/types.d.ts.map +1 -0
  666. package/dist/ui/types.js +3 -0
  667. package/dist/ui/types.js.map +1 -0
  668. package/dist/ui-server/api/deadcode.d.ts +84 -0
  669. package/dist/ui-server/api/deadcode.d.ts.map +1 -0
  670. package/dist/ui-server/api/deadcode.js +136 -0
  671. package/dist/ui-server/api/deadcode.js.map +1 -0
  672. package/dist/ui-server/api/effects.d.ts +87 -0
  673. package/dist/ui-server/api/effects.d.ts.map +1 -0
  674. package/dist/ui-server/api/effects.js +499 -0
  675. package/dist/ui-server/api/effects.js.map +1 -0
  676. package/dist/ui-server/api/entrypoints.d.ts +86 -0
  677. package/dist/ui-server/api/entrypoints.d.ts.map +1 -0
  678. package/dist/ui-server/api/entrypoints.js +279 -0
  679. package/dist/ui-server/api/entrypoints.js.map +1 -0
  680. package/dist/ui-server/api/events.d.ts +183 -0
  681. package/dist/ui-server/api/events.d.ts.map +1 -0
  682. package/dist/ui-server/api/events.js +430 -0
  683. package/dist/ui-server/api/events.js.map +1 -0
  684. package/dist/ui-server/api/file.d.ts +66 -0
  685. package/dist/ui-server/api/file.d.ts.map +1 -0
  686. package/dist/ui-server/api/file.js +222 -0
  687. package/dist/ui-server/api/file.js.map +1 -0
  688. package/dist/ui-server/api/filecode.d.ts +126 -0
  689. package/dist/ui-server/api/filecode.d.ts.map +1 -0
  690. package/dist/ui-server/api/filecode.js +205 -0
  691. package/dist/ui-server/api/filecode.js.map +1 -0
  692. package/dist/ui-server/api/flow.d.ts +226 -0
  693. package/dist/ui-server/api/flow.d.ts.map +1 -0
  694. package/dist/ui-server/api/flow.js +611 -0
  695. package/dist/ui-server/api/flow.js.map +1 -0
  696. package/dist/ui-server/api/hierarchy.d.ts +81 -0
  697. package/dist/ui-server/api/hierarchy.d.ts.map +1 -0
  698. package/dist/ui-server/api/hierarchy.js +92 -0
  699. package/dist/ui-server/api/hierarchy.js.map +1 -0
  700. package/dist/ui-server/api/index.d.ts +90 -0
  701. package/dist/ui-server/api/index.d.ts.map +1 -0
  702. package/dist/ui-server/api/index.js +332 -0
  703. package/dist/ui-server/api/index.js.map +1 -0
  704. package/dist/ui-server/api/map.d.ts +187 -0
  705. package/dist/ui-server/api/map.d.ts.map +1 -0
  706. package/dist/ui-server/api/map.js +498 -0
  707. package/dist/ui-server/api/map.js.map +1 -0
  708. package/dist/ui-server/api/node.d.ts +81 -0
  709. package/dist/ui-server/api/node.d.ts.map +1 -0
  710. package/dist/ui-server/api/node.js +388 -0
  711. package/dist/ui-server/api/node.js.map +1 -0
  712. package/dist/ui-server/api/nodes.d.ts +25 -0
  713. package/dist/ui-server/api/nodes.d.ts.map +1 -0
  714. package/dist/ui-server/api/nodes.js +45 -0
  715. package/dist/ui-server/api/nodes.js.map +1 -0
  716. package/dist/ui-server/api/program.d.ts +139 -0
  717. package/dist/ui-server/api/program.d.ts.map +1 -0
  718. package/dist/ui-server/api/program.js +315 -0
  719. package/dist/ui-server/api/program.js.map +1 -0
  720. package/dist/ui-server/api/respond.d.ts +76 -0
  721. package/dist/ui-server/api/respond.d.ts.map +1 -0
  722. package/dist/ui-server/api/respond.js +186 -0
  723. package/dist/ui-server/api/respond.js.map +1 -0
  724. package/dist/ui-server/api/route-roots.d.ts +39 -0
  725. package/dist/ui-server/api/route-roots.d.ts.map +1 -0
  726. package/dist/ui-server/api/route-roots.js +96 -0
  727. package/dist/ui-server/api/route-roots.js.map +1 -0
  728. package/dist/ui-server/api/routes.d.ts +59 -0
  729. package/dist/ui-server/api/routes.d.ts.map +1 -0
  730. package/dist/ui-server/api/routes.js +112 -0
  731. package/dist/ui-server/api/routes.js.map +1 -0
  732. package/dist/ui-server/api/screens.d.ts +117 -0
  733. package/dist/ui-server/api/screens.d.ts.map +1 -0
  734. package/dist/ui-server/api/screens.js +611 -0
  735. package/dist/ui-server/api/screens.js.map +1 -0
  736. package/dist/ui-server/api/search.d.ts +29 -0
  737. package/dist/ui-server/api/search.d.ts.map +1 -0
  738. package/dist/ui-server/api/search.js +232 -0
  739. package/dist/ui-server/api/search.js.map +1 -0
  740. package/dist/ui-server/api/session.d.ts +52 -0
  741. package/dist/ui-server/api/session.d.ts.map +1 -0
  742. package/dist/ui-server/api/session.js +196 -0
  743. package/dist/ui-server/api/session.js.map +1 -0
  744. package/dist/ui-server/api/source.d.ts +200 -0
  745. package/dist/ui-server/api/source.d.ts.map +1 -0
  746. package/dist/ui-server/api/source.js +419 -0
  747. package/dist/ui-server/api/source.js.map +1 -0
  748. package/dist/ui-server/api/stats.d.ts +27 -0
  749. package/dist/ui-server/api/stats.d.ts.map +1 -0
  750. package/dist/ui-server/api/stats.js +164 -0
  751. package/dist/ui-server/api/stats.js.map +1 -0
  752. package/dist/ui-server/api/steps.d.ts +274 -0
  753. package/dist/ui-server/api/steps.d.ts.map +1 -0
  754. package/dist/ui-server/api/steps.js +1446 -0
  755. package/dist/ui-server/api/steps.js.map +1 -0
  756. package/dist/ui-server/api/trail-store.d.ts +142 -0
  757. package/dist/ui-server/api/trail-store.d.ts.map +1 -0
  758. package/dist/ui-server/api/trail-store.js +323 -0
  759. package/dist/ui-server/api/trail-store.js.map +1 -0
  760. package/dist/ui-server/api/trails.d.ts +163 -0
  761. package/dist/ui-server/api/trails.d.ts.map +1 -0
  762. package/dist/ui-server/api/trails.js +369 -0
  763. package/dist/ui-server/api/trails.js.map +1 -0
  764. package/dist/ui-server/api/when.d.ts +125 -0
  765. package/dist/ui-server/api/when.d.ts.map +1 -0
  766. package/dist/ui-server/api/when.js +251 -0
  767. package/dist/ui-server/api/when.js.map +1 -0
  768. package/dist/ui-server/api/wire.d.ts +179 -0
  769. package/dist/ui-server/api/wire.d.ts.map +1 -0
  770. package/dist/ui-server/api/wire.js +231 -0
  771. package/dist/ui-server/api/wire.js.map +1 -0
  772. package/dist/ui-server/assets.d.ts +40 -0
  773. package/dist/ui-server/assets.d.ts.map +1 -0
  774. package/dist/ui-server/assets.js +110 -0
  775. package/dist/ui-server/assets.js.map +1 -0
  776. package/dist/ui-server/constants.d.ts +32 -0
  777. package/dist/ui-server/constants.d.ts.map +1 -0
  778. package/dist/ui-server/constants.js +35 -0
  779. package/dist/ui-server/constants.js.map +1 -0
  780. package/dist/ui-server/highlight/index.d.ts +113 -0
  781. package/dist/ui-server/highlight/index.d.ts.map +1 -0
  782. package/dist/ui-server/highlight/index.js +307 -0
  783. package/dist/ui-server/highlight/index.js.map +1 -0
  784. package/dist/ui-server/highlight/languages.d.ts +36 -0
  785. package/dist/ui-server/highlight/languages.d.ts.map +1 -0
  786. package/dist/ui-server/highlight/languages.js +50 -0
  787. package/dist/ui-server/highlight/languages.js.map +1 -0
  788. package/dist/ui-server/index.d.ts +92 -0
  789. package/dist/ui-server/index.d.ts.map +1 -0
  790. package/dist/ui-server/index.js +399 -0
  791. package/dist/ui-server/index.js.map +1 -0
  792. package/dist/ui-server/open-browser.d.ts +31 -0
  793. package/dist/ui-server/open-browser.d.ts.map +1 -0
  794. package/dist/ui-server/open-browser.js +79 -0
  795. package/dist/ui-server/open-browser.js.map +1 -0
  796. package/dist/ui-server/security.d.ts +127 -0
  797. package/dist/ui-server/security.d.ts.map +1 -0
  798. package/dist/ui-server/security.js +332 -0
  799. package/dist/ui-server/security.js.map +1 -0
  800. package/dist/ui-server/static.d.ts +45 -0
  801. package/dist/ui-server/static.d.ts.map +1 -0
  802. package/dist/ui-server/static.js +165 -0
  803. package/dist/ui-server/static.js.map +1 -0
  804. package/dist/upgrade/index.d.ts +177 -0
  805. package/dist/upgrade/index.d.ts.map +1 -0
  806. package/dist/upgrade/index.js +665 -0
  807. package/dist/upgrade/index.js.map +1 -0
  808. package/dist/upgrade/remove-binary.d.ts +87 -0
  809. package/dist/upgrade/remove-binary.d.ts.map +1 -0
  810. package/dist/upgrade/remove-binary.js +289 -0
  811. package/dist/upgrade/remove-binary.js.map +1 -0
  812. package/dist/upgrade/update-check.d.ts +92 -0
  813. package/dist/upgrade/update-check.d.ts.map +1 -0
  814. package/dist/upgrade/update-check.js +258 -0
  815. package/dist/upgrade/update-check.js.map +1 -0
  816. package/dist/utils.d.ts +224 -0
  817. package/dist/utils.d.ts.map +1 -0
  818. package/dist/utils.js +583 -0
  819. package/dist/utils.js.map +1 -0
  820. package/dist/viewer/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
  821. package/dist/viewer/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
  822. package/dist/viewer/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
  823. package/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
  824. package/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
  825. package/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  826. package/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  827. package/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  828. package/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  829. package/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  830. package/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  831. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
  832. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
  833. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  834. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  835. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  836. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  837. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  838. package/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  839. package/dist/viewer/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
  840. package/dist/viewer/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
  841. package/dist/viewer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  842. package/dist/viewer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  843. package/dist/viewer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  844. package/dist/viewer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  845. package/dist/viewer/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  846. package/dist/viewer/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  847. package/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
  848. package/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
  849. package/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  850. package/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  851. package/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  852. package/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  853. package/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  854. package/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  855. package/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
  856. package/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
  857. package/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  858. package/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  859. package/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  860. package/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  861. package/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  862. package/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  863. package/dist/viewer/assets/index-2IPslW5t.js +13 -0
  864. package/dist/viewer/assets/index-DSwi2Seu.css +1 -0
  865. package/dist/viewer/index.html +16 -0
  866. package/package.json +67 -0
@@ -0,0 +1,886 @@
1
+ /**
2
+ * CodeGraph
3
+ *
4
+ * A local-first code intelligence system that builds a semantic
5
+ * knowledge graph from any codebase.
6
+ */
7
+ import { Node, NodeKind, Edge, FileRecord, ExtractionResult, Subgraph, TraversalOptions, SearchOptions, SearchResult, SegmentMatch, Context, GraphStats, TaskInput, TaskContext, BuildContextOptions, FindRelevantContextOptions, UnresolvedReference } from './types';
8
+ import { QueryBuilder } from './db/queries';
9
+ import { IndexProgress, IndexResult, SyncResult } from './extraction';
10
+ import { ResolutionResult } from './resolution';
11
+ import { WatchOptions, PendingFile } from './sync';
12
+ export * from './types';
13
+ export { getDatabasePath, DatabaseConnection } from './db';
14
+ export { QueryBuilder } from './db/queries';
15
+ export { getCodeGraphDir, isInitialized, findNearestCodeGraphRoot, CODEGRAPH_DIR, } from './directory';
16
+ export { IndexProgress, IndexResult, SyncResult } from './extraction';
17
+ export { detectLanguage, isLanguageSupported, isGrammarLoaded, getSupportedLanguages, initGrammars, loadGrammarsForLanguages, loadAllGrammars } from './extraction';
18
+ export { ResolutionResult } from './resolution';
19
+ export { CodeGraphError, FileError, ParseError, DatabaseError, SearchError, VectorError, ConfigError, Logger, setLogger, getLogger, silentLogger, defaultLogger, } from './errors';
20
+ export { Mutex, FileLock, processInBatches, debounce, throttle, MemoryMonitor } from './utils';
21
+ export { FileWatcher, WatchOptions, PendingFile, LockUnavailableError } from './sync';
22
+ export { MCPServer } from './mcp';
23
+ /**
24
+ * Options for initializing a new CodeGraph project
25
+ */
26
+ export interface InitOptions {
27
+ /** Whether to run initial indexing after init */
28
+ index?: boolean;
29
+ /** Progress callback for indexing */
30
+ onProgress?: (progress: IndexProgress) => void;
31
+ }
32
+ /**
33
+ * Options for opening an existing CodeGraph project
34
+ */
35
+ export interface OpenOptions {
36
+ /** Whether to run sync if files have changed */
37
+ sync?: boolean;
38
+ /** Whether to run in read-only mode */
39
+ readOnly?: boolean;
40
+ }
41
+ /**
42
+ * Options for indexing
43
+ */
44
+ export interface IndexOptions {
45
+ /** Progress callback */
46
+ onProgress?: (progress: IndexProgress) => void;
47
+ /** Abort signal for cancellation */
48
+ signal?: AbortSignal;
49
+ /** Enable verbose logging (worker lifecycle, memory, timeouts) */
50
+ verbose?: boolean;
51
+ /** Watcher fast path: reconcile ONLY these project-relative paths (see ExtractionOrchestrator.sync). */
52
+ paths?: string[];
53
+ }
54
+ /**
55
+ * Main CodeGraph class
56
+ *
57
+ * Provides the primary interface for interacting with the code knowledge graph.
58
+ */
59
+ export declare class CodeGraph {
60
+ private db;
61
+ private queries;
62
+ private projectRoot;
63
+ private orchestrator;
64
+ private resolver;
65
+ private graphManager;
66
+ private traverser;
67
+ private contextBuilder;
68
+ private indexMutex;
69
+ private fileLock;
70
+ private watcher;
71
+ private constructor();
72
+ /**
73
+ * (Re)build the query/extraction/graph layers over the current `this.queries`
74
+ * (which wraps `this.db`). Factored out of the constructor so `reopenIfReplaced`
75
+ * can rebuild them against a fresh connection without duplicating the wiring.
76
+ * The path-based `fileLock` is independent of the DB handle, so it stays put.
77
+ */
78
+ private wireLayers;
79
+ /**
80
+ * Heal a stale database handle in place. If `.codegraph/` was removed and
81
+ * recreated at the SAME path while this instance held the DB open — a git
82
+ * worktree removed and re-added, or `rm -rf .codegraph` + `cg init` —
83
+ * our open fd points at the now-unlinked inode and can never see the new
84
+ * index, so every query returns the pre-removal snapshot until the process
85
+ * restarts (#925). When that's detected, open the live file at the same path,
86
+ * rebuild the query layers, and swap them IN PLACE, so every holder of this
87
+ * instance (the MCP daemon's default project, cached projectPath connections)
88
+ * heals without a restart. Returns true iff it reopened.
89
+ *
90
+ * POSIX-only in practice: `isReplacedOnDisk` never fires on Windows (an open
91
+ * file can't be unlinked there, and st_ino is unreliable).
92
+ */
93
+ reopenIfReplaced(): boolean;
94
+ /**
95
+ * Initialize a new CodeGraph project
96
+ *
97
+ * Creates the .CodeGraph directory, database, and configuration.
98
+ *
99
+ * @param projectRoot - Path to the project root directory
100
+ * @param options - Initialization options
101
+ * @returns A new CodeGraph instance
102
+ */
103
+ static init(projectRoot: string, options?: InitOptions): Promise<CodeGraph>;
104
+ /**
105
+ * Initialize synchronously (without indexing)
106
+ */
107
+ static initSync(projectRoot: string): CodeGraph;
108
+ /**
109
+ * Open an existing CodeGraph project
110
+ *
111
+ * @param projectRoot - Path to the project root directory
112
+ * @param options - Open options
113
+ * @returns A CodeGraph instance
114
+ */
115
+ static open(projectRoot: string, options?: OpenOptions): Promise<CodeGraph>;
116
+ /**
117
+ * Rebuild the project's database from scratch and return a fresh, empty
118
+ * instance — the "same result as a fresh init" semantics that `codegraph
119
+ * index` documents.
120
+ *
121
+ * Unlike `open()` followed by `clear()`, this DISCARDS the existing
122
+ * `.codegraph/codegraph.db` (and its `-wal`/`-shm` sidecars) before
123
+ * re-initializing, instead of opening the old database and DELETE-ing every
124
+ * row. On a large or pre-fix poisoned index — e.g. an old graph that scanned
125
+ * an ignored gitlink corpus (#1065) into ~1.6M nodes with a multi-GB WAL —
126
+ * the per-row `nodes_fts` delete-trigger churn blocks the main thread long
127
+ * enough to trip the #850 liveness watchdog before indexing even starts, so a
128
+ * full re-index could never recover the bad state (#1067). Discarding the
129
+ * files is O(1) regardless of size, reclaims the disk, and sidesteps opening
130
+ * (and running migrations against) the poisoned database entirely.
131
+ */
132
+ static recreate(projectRoot: string): Promise<CodeGraph>;
133
+ /**
134
+ * Open synchronously (without sync)
135
+ */
136
+ static openSync(projectRoot: string): CodeGraph;
137
+ /**
138
+ * Check if a directory has been initialized as a CodeGraph project
139
+ */
140
+ static isInitialized(projectRoot: string): boolean;
141
+ /**
142
+ * Close the CodeGraph instance and release resources
143
+ */
144
+ close(): void;
145
+ /**
146
+ * Get the project root directory
147
+ */
148
+ getProjectRoot(): string;
149
+ /**
150
+ * Index all files in the project
151
+ *
152
+ * Uses a mutex to prevent concurrent indexing operations.
153
+ */
154
+ indexAll(options?: IndexOptions): Promise<IndexResult>;
155
+ /**
156
+ * Index specific files
157
+ *
158
+ * Uses a mutex to prevent concurrent indexing operations.
159
+ */
160
+ indexFiles(filePaths: string[]): Promise<IndexResult>;
161
+ /**
162
+ * Sync with current file state (incremental update)
163
+ *
164
+ * Uses a mutex to prevent concurrent indexing operations.
165
+ */
166
+ sync(options?: IndexOptions): Promise<SyncResult>;
167
+ /**
168
+ * Check if an indexing operation is currently in progress
169
+ */
170
+ isIndexing(): boolean;
171
+ /**
172
+ * Start watching for file changes and auto-syncing.
173
+ *
174
+ * Uses native OS file events (FSEvents on macOS, inotify on Linux 19+,
175
+ * ReadDirectoryChangesW on Windows) with debouncing to avoid thrashing.
176
+ *
177
+ * @param options - Watch options (debounce delay, callbacks)
178
+ * @returns true if watching started successfully
179
+ */
180
+ watch(options?: WatchOptions): boolean;
181
+ /**
182
+ * Stop watching for file changes.
183
+ */
184
+ unwatch(): void;
185
+ /**
186
+ * Check if the file watcher is active.
187
+ */
188
+ isWatching(): boolean;
189
+ /**
190
+ * True once live watching has permanently degraded (OS watch-resource
191
+ * exhaustion, or a write lock held past the retry budget) and auto-sync is
192
+ * disabled until the next {@link watch} call. Distinct from `!isWatching()`:
193
+ * a stopped/never-started watcher is inactive but NOT degraded. MCP tools use
194
+ * this to surface a whole-index "results may be stale" notice, since
195
+ * `getPendingFiles()` goes empty once watching stops (#876).
196
+ */
197
+ isWatcherDegraded(): boolean;
198
+ /** The reason live watching degraded, or null if it is healthy (#876). */
199
+ getWatcherDegradedReason(): string | null;
200
+ /**
201
+ * Files seen by the file watcher since the last successful sync —
202
+ * the per-file "stale" signal MCP tools attach to responses so an agent
203
+ * can fall back to {@link Read} for just the affected file without
204
+ * waiting for a debounced sync to complete (issue #403).
205
+ *
206
+ * Returns an empty list when the watcher isn't active, or no events have
207
+ * arrived. Each entry includes `firstSeenMs` and `lastSeenMs` (wall-clock
208
+ * `Date.now()` values) so callers can render "edited Nms ago", plus an
209
+ * `indexing` flag indicating whether the in-flight sync (if any) will
210
+ * absorb that file.
211
+ */
212
+ getPendingFiles(): PendingFile[];
213
+ /**
214
+ * Resolves once the file watcher has installed its watch set. Useful for
215
+ * tests that need a deterministic boundary before asserting on
216
+ * `getPendingFiles()`. Resolves immediately when no watcher is active.
217
+ */
218
+ waitUntilWatcherReady(timeoutMs?: number): Promise<void>;
219
+ /**
220
+ * Get files that have changed since last index
221
+ */
222
+ getChangedFiles(): {
223
+ added: string[];
224
+ modified: string[];
225
+ removed: string[];
226
+ };
227
+ /**
228
+ * Most recent index timestamp (ms since epoch) across all tracked files, or
229
+ * null when nothing is indexed yet. Lets library consumers check index
230
+ * freshness without shelling out to `cg status --json`. (#329)
231
+ */
232
+ getLastIndexedAt(): number | null;
233
+ /**
234
+ * How far the last sync got and how many files it left behind — the cheapest
235
+ * marker of "has this index moved". One query; safe to call on every
236
+ * filesystem event a live viewer sees.
237
+ */
238
+ getIndexRevision(): {
239
+ lastIndexedAt: number | null;
240
+ fileCount: number;
241
+ };
242
+ /**
243
+ * Files re-indexed strictly after `since`, newest first — what a sync just
244
+ * picked up. `total` is the real count, `paths` is capped at `limit`.
245
+ */
246
+ getFilesIndexedSince(since: number, limit: number): {
247
+ paths: string[];
248
+ total: number;
249
+ };
250
+ /**
251
+ * Forget everything held in memory about rows another process may have
252
+ * changed.
253
+ *
254
+ * The query layer keeps an LRU of nodes by id, invalidated by writes made
255
+ * through THIS instance — which is exactly right for a process that owns the
256
+ * index, and wrong for one that is only reading a database somebody else is
257
+ * writing. A long-lived reader (the `cg ui` server, a daemon holding a
258
+ * graph open across an agent's edits) will otherwise answer `getNode(id)`
259
+ * with a row a sync deleted minutes ago, while every SQL-backed query beside
260
+ * it reports the truth — a disagreement that reads as a bug in whichever
261
+ * screen shows both.
262
+ *
263
+ * Cheap (clearing a bounded Map) and safe to call whenever the database file
264
+ * looks like it moved.
265
+ */
266
+ dropReadCaches(): void;
267
+ /**
268
+ * Completeness of the last full index run. `'complete'` is the only good
269
+ * state. `'indexing'` after the fact means a run was killed mid-index (OOM,
270
+ * SIGKILL, liveness watchdog) and the on-disk index is truncated;
271
+ * `'partial'` means the run finished but silently dropped files
272
+ * (discovered > indexed+skipped+errored); `'failed'` means it reported
273
+ * failure. `null` = index predates this marker. Surfaced by
274
+ * `cg status`.
275
+ */
276
+ getIndexState(): 'indexing' | 'complete' | 'partial' | 'failed' | null;
277
+ /**
278
+ * Which engine built the current index: the package version + extraction
279
+ * version stamped at the last full `indexAll`. Either field is null for an
280
+ * index built before stamping existed (treated as stale). See
281
+ * `extraction-version.ts` and `isIndexStale()`.
282
+ */
283
+ getIndexBuildInfo(): {
284
+ version: string | null;
285
+ extractionVersion: number | null;
286
+ };
287
+ /**
288
+ * True when the on-disk index was built by an engine whose extraction is
289
+ * older than the one now running — i.e. a re-index would add data a migration
290
+ * can't backfill. False when there's no index yet (nothing to refresh) or the
291
+ * stamp is current. This is the signal behind `cg status`'s re-index
292
+ * hint and `cg upgrade`'s reminder.
293
+ */
294
+ isIndexStale(): boolean;
295
+ /**
296
+ * Extract nodes and edges from source code (without storing)
297
+ */
298
+ extractFromSource(filePath: string, source: string): ExtractionResult;
299
+ /**
300
+ * Resolve unresolved references and create edges
301
+ *
302
+ * This method takes unresolved references from extraction and attempts
303
+ * to resolve them using multiple strategies:
304
+ * - Framework-specific patterns (React, Express, Laravel)
305
+ * - Import-based resolution
306
+ * - Name-based symbol matching
307
+ */
308
+ resolveReferences(onProgress?: (current: number, total: number) => void): ResolutionResult;
309
+ /**
310
+ * Resolve references in batches to keep memory bounded on large codebases.
311
+ * Processes chunks of unresolved refs, persisting results after each batch.
312
+ */
313
+ resolveReferencesBatched(onProgress?: (current: number, total: number) => void, onSynthesisProgress?: (done: number, total: number) => void, backpressure?: () => Promise<void> | null): Promise<ResolutionResult>;
314
+ /**
315
+ * References extracted but never attempted by a resolution pass. Zero on a
316
+ * healthy index — a completed pass consumes every pending row (resolving it
317
+ * or parking it as failed, #1240). Non-zero at rest means a pass was
318
+ * interrupted mid-run (killed indexer, crash — #1187), so some files' call
319
+ * edges are missing; the next `sync` sweeps them.
320
+ */
321
+ getPendingReferenceCount(): number;
322
+ /**
323
+ * Get detected frameworks in the project
324
+ */
325
+ getDetectedFrameworks(): string[];
326
+ /**
327
+ * Re-initialize the resolver (useful after adding new files)
328
+ */
329
+ reinitializeResolver(): void;
330
+ /**
331
+ * Get statistics about the knowledge graph
332
+ */
333
+ getStats(): GraphStats;
334
+ /**
335
+ * Info about the upstream baseGraph snapshot this index was built with, or
336
+ * null when cross-graph merging was never configured/applied. Reads the
337
+ * project_metadata rows a `cg build` / `cg index` merge writes.
338
+ */
339
+ getBaseGraphInfo(): {
340
+ path: string;
341
+ project: string;
342
+ importedNodes: number;
343
+ importedEdges: number;
344
+ importedAt: number;
345
+ } | null;
346
+ /**
347
+ * Active SQLite backend for this project's connection (`node-sqlite` — Node's
348
+ * built-in real-SQLite module). Surfaced via `cg status` and the
349
+ * `codegraph_status` MCP tool alongside the effective journal mode.
350
+ */
351
+ getBackend(): import('./db').SqliteBackend;
352
+ /**
353
+ * The journal mode actually in effect ('wal', 'delete', …). 'wal' means
354
+ * readers never block on a concurrent writer; anything else means they can,
355
+ * which is the precondition for the "database is locked" failures in issue
356
+ * #238. Surfaced via `cg status` and the `codegraph_status` MCP tool.
357
+ */
358
+ getJournalMode(): string;
359
+ /**
360
+ * Get a node by ID
361
+ */
362
+ getNode(id: string): Node | null;
363
+ /**
364
+ * Get many nodes by id in ONE round-trip (LRU-cache aware).
365
+ *
366
+ * The batch form of {@link getNode}. Anything resolving a list of edges to
367
+ * their endpoints — a caller list, a callee rail, an impact set — must use
368
+ * this rather than a `getNode` per edge: a symbol with 500 callers is 500
369
+ * queries otherwise. Ids that name nothing are simply absent from the map.
370
+ */
371
+ getNodesByIds(ids: readonly string[]): Map<string, Node>;
372
+ /**
373
+ * Every symbol carrying an exact qualified name.
374
+ *
375
+ * The identity that survives a re-index. A node's id contains its start line,
376
+ * so any edit ABOVE a symbol gives it a different id — anything that has to
377
+ * name the same symbol across two indexes (a saved trail, a bookmark, a
378
+ * review comment) has to key on this instead, and then disambiguate the
379
+ * result by kind and file. Index-backed; unlike
380
+ * {@link GraphQueryManager.findByQualifiedName} it takes no pattern and scans
381
+ * nothing.
382
+ */
383
+ getNodesByQualifiedName(qualifiedName: string): Node[];
384
+ /**
385
+ * Outgoing edges for many source nodes at once — the batch form of
386
+ * {@link getOutgoingEdges}. See {@link QueryBuilder.getOutgoingEdgesFrom}.
387
+ */
388
+ getOutgoingEdgesFrom(nodeIds: readonly string[], kinds?: Edge['kind'][]): Edge[];
389
+ /**
390
+ * Fan-in (incoming edge count) for many nodes at once — the "hub" signal,
391
+ * without a query per node. See {@link QueryBuilder.countIncomingEdges}.
392
+ */
393
+ getFanIn(ids: readonly string[]): Map<string, number>;
394
+ /**
395
+ * Incoming edges for many target nodes at once — the mirror of
396
+ * {@link getOutgoingEdgesFrom}. See {@link QueryBuilder.getIncomingEdgesTo}.
397
+ */
398
+ getIncomingEdgesTo(nodeIds: readonly string[], kinds?: Edge['kind'][]): Edge[];
399
+ /**
400
+ * Fan-out (outgoing edge count) for many nodes at once — the mirror of
401
+ * {@link getFanIn}. See {@link QueryBuilder.countOutgoingEdges}.
402
+ */
403
+ getFanOut(ids: readonly string[]): Map<string, number>;
404
+ /**
405
+ * Symbols nothing in the index points at, by kind — the candidate set the
406
+ * dead code report (`src/graph/dead-code.ts`) applies its exclusions to.
407
+ *
408
+ * Every edge kind except `contains` counts as a reference, so a method is
409
+ * not "reached" by the class that holds it. An unreferenced symbol is not
410
+ * yet a dead one: see {@link buildDeadCodeReport}.
411
+ */
412
+ getUnreferencedNodes(kinds: readonly Node['kind'][], limit: number): Array<{
413
+ node: Node;
414
+ generated: boolean;
415
+ }>;
416
+ /**
417
+ * Which of the given names are carried by more than one symbol, at least one
418
+ * of which something references — the names a "nothing reaches this" claim
419
+ * must not be made about, because the resolver may have picked the twin.
420
+ */
421
+ getAmbiguousReferencedNames(names: Iterable<string>): Set<string>;
422
+ /**
423
+ * Which of the given languages this index records an export marker for. A
424
+ * language with none has no "reachable from outside" signal at all.
425
+ */
426
+ getLanguagesWithExports(languages: Iterable<string>): Set<string>;
427
+ /**
428
+ * Which of the given names the index holds an unresolved reference to — the
429
+ * resolver saw the name and could not decide what it meant. A symbol with
430
+ * such a name can never be called unreferenced.
431
+ */
432
+ getUnresolvedNamesAmong(names: Iterable<string>): Set<string>;
433
+ /**
434
+ * The symbols with the most distinct dependents, most first — the index's
435
+ * hubs. Distinct dependents, not edges: a helper called forty times from one
436
+ * function has one dependent, and it is dependents a blast radius grows from.
437
+ */
438
+ getTopDependedOn(limit: number): Array<{
439
+ nodeId: string;
440
+ dependents: number;
441
+ }>;
442
+ /**
443
+ * The graph's executable roots — files that run something at module level (a
444
+ * CLI, a worker entry, a script), ranked by calls x the number of other files
445
+ * they reach. A statement at the top level of a file is recorded as an edge
446
+ * out of the *file* node, which is what makes these visible at all.
447
+ */
448
+ getTopCallingFiles(limit: number): Array<{
449
+ nodeId: string;
450
+ filePath: string;
451
+ calls: number;
452
+ reaches: number;
453
+ score: number;
454
+ }>;
455
+ /**
456
+ * How many other files depend on each of the given files, counted through
457
+ * their symbols (an `imports` edge points at the symbol, not the file).
458
+ * A zero means nothing else in the index reaches into that file.
459
+ */
460
+ getFileDependentCounts(filePaths: string[]): Map<string, number>;
461
+ /**
462
+ * How far each of the given files reaches out: distinct other files their
463
+ * symbols touch, and how many references that is. The mirror of
464
+ * {@link getFileDependentCounts}; a test file's reach is what it exercises.
465
+ */
466
+ getFileReachCounts(filePaths: string[]): Map<string, {
467
+ reaches: number;
468
+ refs: number;
469
+ }>;
470
+ /** The `file` nodes for the given paths, in one query. */
471
+ getFileNodes(filePaths: string[]): Node[];
472
+ /**
473
+ * Roll the edge table up to module granularity, for a file → module
474
+ * assignment the caller decides.
475
+ *
476
+ * The architecture map's single query: cross-module edge counts by kind,
477
+ * the `declared` subset of each (see {@link QueryBuilder.aggregateModuleGraph}),
478
+ * and the busiest symbol pairs behind each link. Read-only, and bounded by
479
+ * the number of modules rather than the number of edges.
480
+ */
481
+ getModuleAggregation(assignments: ReadonlyArray<{
482
+ filePath: string;
483
+ module: string;
484
+ }>, options: {
485
+ kinds: readonly Edge['kind'][];
486
+ minConfidence: number;
487
+ topPairsPerLink: number;
488
+ pairKinds: readonly Edge['kind'][];
489
+ }): ReturnType<QueryBuilder['aggregateModuleGraph']>;
490
+ /**
491
+ * Every ordered pair of files where one reaches into the other — the edge
492
+ * list a cycle finder runs on. See {@link QueryBuilder.getCrossFileDependencyPairs}.
493
+ */
494
+ getFileDependencyPairs(minConfidence?: number): Array<{
495
+ source: string;
496
+ target: string;
497
+ }>;
498
+ /**
499
+ * References from a symbol that never resolved to an indexed node — the
500
+ * calls and type mentions that leave the index. Lets a reader account for
501
+ * the call sites that have no callee row instead of implying there are none.
502
+ */
503
+ getUnresolvedReferencesFrom(nodeId: string): UnresolvedReference[];
504
+ /**
505
+ * The same, for every symbol in a FILE at once, in line order.
506
+ *
507
+ * One indexed lookup instead of one per symbol — the whole-file reader needs
508
+ * it for every line it draws. See
509
+ * {@link QueryBuilder.getUnresolvedReferencesInFile}.
510
+ */
511
+ getUnresolvedReferencesInFile(filePath: string, limit?: number): UnresolvedReference[];
512
+ /**
513
+ * Get all nodes in a file
514
+ */
515
+ getNodesInFile(filePath: string): Node[];
516
+ /**
517
+ * Get all nodes of a specific kind
518
+ */
519
+ getNodesByKind(kind: Node['kind']): Node[];
520
+ /**
521
+ * Get ALL nodes with an exact name (direct index lookup, not FTS-ranked/capped).
522
+ * Used to enumerate every overload of a heavily-overloaded name so the specific
523
+ * definition the caller wants is never dropped below a search cut.
524
+ */
525
+ getNodesByName(name: string): Node[];
526
+ /** Nodes whose name starts with `prefix` (index range scan, capped). */
527
+ getNodesByNamePrefix(prefix: string, limit?: number): Node[];
528
+ /**
529
+ * Nodes whose name CONTAINS `substring` (LIKE scan, ASCII-case-insensitive,
530
+ * shortest-first). The camel-infix lookup FTS can't do — `profileInfo`
531
+ * inside `getProfileInfoV2` is one FTS token (#1196).
532
+ */
533
+ getNodesByNameSubstring(substring: string, options?: {
534
+ kinds?: NodeKind[];
535
+ limit?: number;
536
+ excludePrefix?: boolean;
537
+ }): Node[];
538
+ /**
539
+ * Search nodes by text
540
+ */
541
+ searchNodes(query: string, options?: SearchOptions): SearchResult[];
542
+ /**
543
+ * Graph-derived prompt matching for the front-load hook's MEDIUM tier:
544
+ * which indexed symbols do these prose words name? "state machine des
545
+ * commandes" → `OrderStateMachine`, in any human language whose technical
546
+ * nouns are Latin script — no keyword list involved.
547
+ *
548
+ * Precision comes from the repo's own naming statistics, not vocabulary:
549
+ * - CO-OCCURRENCE: ≥2 words that are segments of the SAME name ("state" +
550
+ * "machine" → OrderStateMachine) is strong evidence and always qualifies.
551
+ * - RARITY: a single matched word qualifies only when its segment is
552
+ * discriminative here (≤ {@link SEGMENT_RARITY_CEILING} distinct names) —
553
+ * "checkout" in a shop backend yes, "state" in a react app no.
554
+ * Every candidate is re-verified against `nodes` before being returned
555
+ * (vocab rows are proposals; deletions leave orphans by design), so a
556
+ * returned symbol is guaranteed to exist right now.
557
+ */
558
+ getSegmentMatches(words: string[], limit?: number): SegmentMatch[];
559
+ /** A single word ("state") can match hundreds of names in a big repo — that
560
+ * is noise, not signal. Ceiling for the single-word tier; co-occurrence is
561
+ * exempt because two words on one name is already discriminative. */
562
+ private static readonly SEGMENT_RARITY_CEILING;
563
+ /** Which of the prompt's original words match `name`'s segments (via
564
+ * variants). Segments are recomputed in JS — a name-keyed vocab lookup
565
+ * would scan the (segment, name) primary key. */
566
+ private wordsMatchingName;
567
+ /**
568
+ * One-shot upgrade heal for callers that open the graph WITHOUT syncing —
569
+ * concretely the prompt hook, whose MEDIUM tier reads the segment
570
+ * vocabulary: a database migrated from before the vocab table existed
571
+ * starts with it empty, and the only other backfill lives inside `sync()`,
572
+ * which such callers never run (#1142). Returns true when the vocab is
573
+ * usable (already populated — the overwhelmingly common one-SELECT case —
574
+ * or healed here); false when it isn't (empty graph, or another process
575
+ * holds the index lock — that process's own sync heals it).
576
+ */
577
+ healSegmentVocabIfEmpty(): Promise<boolean>;
578
+ /**
579
+ * Rebuild the segment vocabulary from the current graph, batched and
580
+ * yielding — the upgrade-heal path for indexes built before the vocab table
581
+ * existed. Runs inside the index mutex/lock (sync and
582
+ * healSegmentVocabIfEmpty hold them).
583
+ */
584
+ private rebuildNameSegmentVocab;
585
+ /**
586
+ * Normalized project-name tokens (go.mod / package.json / repo dir) used to
587
+ * down-weight the non-discriminative project name in search ranking (#720).
588
+ * Exposed so explore can exclude it from the PascalCase type-disambiguation
589
+ * bias, which would otherwise pull overloaded tokens toward whichever stack
590
+ * embeds the project name.
591
+ */
592
+ getProjectNameTokens(): Set<string>;
593
+ /**
594
+ * Find the project's "primary route file" — the file with the densest
595
+ * concentration of framework-emitted `route` nodes (≥3 routes, ≥30%
596
+ * of all non-test routes). Used to inline the routing config in
597
+ * `codegraph_explore` responses on small realworld template repos
598
+ * (rails-realworld, laravel-realworld, drupal-admintoolbar, …) where
599
+ * Glob+Read of `routes.rb`/`urls.py`/etc. otherwise beats codegraph.
600
+ */
601
+ getTopRouteFile(): {
602
+ filePath: string;
603
+ routeCount: number;
604
+ totalRoutes: number;
605
+ } | null;
606
+ /**
607
+ * Build a URL → handler routing manifest from the index. Each entry
608
+ * pairs a route node (URL + method) with its handler function/method
609
+ * via the `references` edge that framework resolvers emit. Returns
610
+ * null when fewer than 3 valid (non-test) routes exist.
611
+ */
612
+ getRoutingManifest(limit?: number): {
613
+ entries: Array<{
614
+ url: string;
615
+ handler: string;
616
+ handlerFile: string;
617
+ handlerLine: number;
618
+ handlerKind: string;
619
+ routeId: string;
620
+ routeFile: string;
621
+ routeLine: number;
622
+ }>;
623
+ topHandlerFile: string | null;
624
+ topHandlerFileCount: number;
625
+ totalRoutes: number;
626
+ } | null;
627
+ /**
628
+ * Get outgoing edges from a node
629
+ */
630
+ getOutgoingEdges(nodeId: string): Edge[];
631
+ /**
632
+ * Get incoming edges to a node
633
+ */
634
+ getIncomingEdges(nodeId: string): Edge[];
635
+ /**
636
+ * Get a file record by path
637
+ */
638
+ getFile(filePath: string): FileRecord | null;
639
+ /**
640
+ * Get all tracked files
641
+ */
642
+ getFiles(): FileRecord[];
643
+ /**
644
+ * A `(path) => boolean` generated-file test over a BOUNDED candidate list,
645
+ * unioning the index-time content-banner flag with the filename convention
646
+ * (#1500). One query up front, O(1) per call after — built for use inside a
647
+ * ranking comparator, where re-querying per comparison would be quadratic.
648
+ *
649
+ * Pass every path you might ask about; a path outside the list falls back to
650
+ * the filename check alone.
651
+ */
652
+ generatedFilePredicate(filePaths: Iterable<string>): (filePath: string) => boolean;
653
+ /**
654
+ * A `(path) => boolean` ambient-declaration test over a BOUNDED candidate
655
+ * list: true for a file that declares nothing but types, originates no call
656
+ * edge, and that nothing in the index depends on — an ambient `.d.ts` of
657
+ * global shims, vendored typings, module augmentation (CG-28). Structural
658
+ * rather than extension-based, and deliberately narrow: see
659
+ * `QueryBuilder.getAmbientDeclarationPathsAmong` for why each condition is
660
+ * there, in particular why a `types.ts` the codebase imports is NOT flagged.
661
+ */
662
+ ambientDeclarationFilePredicate(filePaths: Iterable<string>): (filePath: string) => boolean;
663
+ /** How many indexed files are flagged tool-generated. Reported by `status`. */
664
+ getGeneratedFileCount(): number;
665
+ /**
666
+ * Get the context for a node (ancestors, children, references)
667
+ *
668
+ * Returns comprehensive context about a node including its containment
669
+ * hierarchy, children, incoming/outgoing references, type information,
670
+ * and relevant imports.
671
+ *
672
+ * @param nodeId - ID of the focal node
673
+ * @returns Context object with all related information
674
+ */
675
+ getContext(nodeId: string): Context;
676
+ /**
677
+ * Traverse the graph from a starting node
678
+ *
679
+ * Uses breadth-first search by default. Supports filtering by edge types,
680
+ * node types, and traversal direction.
681
+ *
682
+ * @param startId - Starting node ID
683
+ * @param options - Traversal options
684
+ * @returns Subgraph containing traversed nodes and edges
685
+ */
686
+ traverse(startId: string, options?: TraversalOptions): Subgraph;
687
+ /**
688
+ * Get the call graph for a function
689
+ *
690
+ * Returns both callers (functions that call this function) and
691
+ * callees (functions called by this function) up to the specified depth.
692
+ *
693
+ * @param nodeId - ID of the function/method node
694
+ * @param depth - Maximum depth in each direction (default: 2)
695
+ * @returns Subgraph containing the call graph
696
+ */
697
+ getCallGraph(nodeId: string, depth?: number): Subgraph;
698
+ /**
699
+ * Get the type hierarchy for a class/interface
700
+ *
701
+ * Returns both ancestors (types this extends/implements) and
702
+ * descendants (types that extend/implement this).
703
+ *
704
+ * @param nodeId - ID of the class/interface node
705
+ * @returns Subgraph containing the type hierarchy
706
+ */
707
+ getTypeHierarchy(nodeId: string): Subgraph;
708
+ /**
709
+ * Find all usages of a symbol
710
+ *
711
+ * Returns all nodes that reference the specified symbol through
712
+ * any edge type (calls, references, type_of, etc.).
713
+ *
714
+ * @param nodeId - ID of the symbol node
715
+ * @returns Array of nodes and edges that reference this symbol
716
+ */
717
+ findUsages(nodeId: string): Array<{
718
+ node: Node;
719
+ edge: Edge;
720
+ }>;
721
+ /**
722
+ * Get callers of a function/method
723
+ *
724
+ * @param nodeId - ID of the function/method node
725
+ * @param maxDepth - Maximum depth to traverse (default: 1)
726
+ * @returns Array of nodes that call this function
727
+ */
728
+ getCallers(nodeId: string, maxDepth?: number): Array<{
729
+ node: Node;
730
+ edge: Edge;
731
+ }>;
732
+ /**
733
+ * Get callees of a function/method
734
+ *
735
+ * @param nodeId - ID of the function/method node
736
+ * @param maxDepth - Maximum depth to traverse (default: 1)
737
+ * @returns Array of nodes called by this function
738
+ */
739
+ getCallees(nodeId: string, maxDepth?: number): Array<{
740
+ node: Node;
741
+ edge: Edge;
742
+ }>;
743
+ /**
744
+ * Calculate the impact radius of a node
745
+ *
746
+ * Returns all nodes that could be affected by changes to this node.
747
+ *
748
+ * @param nodeId - ID of the node
749
+ * @param maxDepth - Maximum depth to traverse (default: 3)
750
+ * @returns Subgraph containing potentially impacted nodes
751
+ */
752
+ getImpactRadius(nodeId: string, maxDepth?: number): Subgraph;
753
+ /**
754
+ * Find the shortest path between two nodes
755
+ *
756
+ * @param fromId - Starting node ID
757
+ * @param toId - Target node ID
758
+ * @param edgeKinds - Edge types to consider (all if empty)
759
+ * @returns Array of nodes and edges forming the path, or null if no path exists
760
+ */
761
+ findPath(fromId: string, toId: string, edgeKinds?: Edge['kind'][]): Array<{
762
+ node: Node;
763
+ edge: Edge | null;
764
+ }> | null;
765
+ /**
766
+ * Get ancestors of a node in the containment hierarchy
767
+ *
768
+ * @param nodeId - ID of the node
769
+ * @returns Array of ancestor nodes from immediate parent to root
770
+ */
771
+ getAncestors(nodeId: string): Node[];
772
+ /**
773
+ * Get immediate children of a node
774
+ *
775
+ * @param nodeId - ID of the node
776
+ * @returns Array of child nodes
777
+ */
778
+ getChildren(nodeId: string): Node[];
779
+ /**
780
+ * Get dependencies of a file
781
+ *
782
+ * @param filePath - Path to the file
783
+ * @returns Array of file paths this file depends on
784
+ */
785
+ getFileDependencies(filePath: string): string[];
786
+ /**
787
+ * Get dependents of a file
788
+ *
789
+ * @param filePath - Path to the file
790
+ * @returns Array of file paths that depend on this file
791
+ */
792
+ getFileDependents(filePath: string): string[];
793
+ /**
794
+ * Find circular dependencies in the codebase
795
+ *
796
+ * @returns Array of cycles, each cycle is an array of file paths
797
+ */
798
+ findCircularDependencies(): string[][];
799
+ /**
800
+ * Find unreferenced symbols — the RAW candidate set.
801
+ *
802
+ * Non-exported symbols of the given kinds with no incoming edge but
803
+ * `contains`. That is a fact, not a claim: on this engine's own index it
804
+ * returns ~2 500 symbols, of which about 20 are actually unreachable. The
805
+ * rest are overrides, framework registrations, mis-resolved twins and
806
+ * references the extractor never recorded.
807
+ *
808
+ * For a list anybody should act on, use `buildDeadCodeReport` from
809
+ * `src/graph/dead-code.ts`, which applies the exclusions and counts every one
810
+ * of them. This method is kept as-is because it is a published API.
811
+ *
812
+ * @param kinds - Node kinds to check (default: functions, methods, classes)
813
+ * @returns Array of unreferenced nodes
814
+ */
815
+ findDeadCode(kinds?: Node['kind'][]): Node[];
816
+ /**
817
+ * Get complexity metrics for a node
818
+ *
819
+ * @param nodeId - ID of the node
820
+ * @returns Object containing various complexity metrics
821
+ */
822
+ getNodeMetrics(nodeId: string): {
823
+ incomingEdgeCount: number;
824
+ outgoingEdgeCount: number;
825
+ callCount: number;
826
+ callerCount: number;
827
+ childCount: number;
828
+ depth: number;
829
+ };
830
+ /**
831
+ * Get the source code for a node
832
+ *
833
+ * Reads the file and extracts the code between startLine and endLine.
834
+ *
835
+ * @param nodeId - ID of the node
836
+ * @returns Code string or null if not found
837
+ */
838
+ getCode(nodeId: string): Promise<string | null>;
839
+ /**
840
+ * Find relevant subgraph for a query
841
+ *
842
+ * Combines semantic search with graph traversal to find the most
843
+ * relevant nodes and their relationships for a given query.
844
+ *
845
+ * @param query - Natural language query describing the task
846
+ * @param options - Search and traversal options
847
+ * @returns Subgraph of relevant nodes and edges
848
+ */
849
+ findRelevantContext(query: string, options?: FindRelevantContextOptions): Promise<Subgraph>;
850
+ /**
851
+ * Build context for a task
852
+ *
853
+ * Creates comprehensive context by:
854
+ * 1. Running FTS search to find entry points
855
+ * 2. Expanding the graph around entry points
856
+ * 3. Extracting code blocks for key nodes
857
+ * 4. Formatting output for Claude
858
+ *
859
+ * @param input - Task description (string or {title, description})
860
+ * @param options - Build options (maxNodes, includeCode, format, etc.)
861
+ * @returns TaskContext object or formatted string (markdown/JSON)
862
+ */
863
+ buildContext(input: TaskInput, options?: BuildContextOptions): Promise<TaskContext | string>;
864
+ /**
865
+ * Optimize the database (vacuum and analyze)
866
+ */
867
+ optimize(): void;
868
+ /**
869
+ * Clear all data from the graph
870
+ */
871
+ clear(): void;
872
+ /**
873
+ * Alias for close() for backwards compatibility.
874
+ * @deprecated Use close() instead
875
+ */
876
+ destroy(): void;
877
+ /**
878
+ * Completely remove CodeGraph from the project.
879
+ * This closes the database and deletes the .CodeGraph directory.
880
+ *
881
+ * WARNING: This permanently deletes all CodeGraph data for the project.
882
+ */
883
+ uninitialize(): void;
884
+ }
885
+ export default CodeGraph;
886
+ //# sourceMappingURL=index.d.ts.map