@optave/codegraph 3.1.5 → 3.3.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 (1164) hide show
  1. package/README.md +50 -56
  2. package/dist/ast-analysis/engine.d.ts +17 -0
  3. package/dist/ast-analysis/engine.d.ts.map +1 -0
  4. package/dist/ast-analysis/engine.js +328 -0
  5. package/dist/ast-analysis/engine.js.map +1 -0
  6. package/dist/ast-analysis/metrics.d.ts +51 -0
  7. package/dist/ast-analysis/metrics.d.ts.map +1 -0
  8. package/dist/ast-analysis/metrics.js +106 -0
  9. package/dist/ast-analysis/metrics.js.map +1 -0
  10. package/dist/ast-analysis/rules/csharp.d.ts +24 -0
  11. package/dist/ast-analysis/rules/csharp.d.ts.map +1 -0
  12. package/dist/ast-analysis/rules/csharp.js +192 -0
  13. package/dist/ast-analysis/rules/csharp.js.map +1 -0
  14. package/dist/ast-analysis/rules/go.d.ts +24 -0
  15. package/dist/ast-analysis/rules/go.d.ts.map +1 -0
  16. package/dist/ast-analysis/rules/go.js +173 -0
  17. package/dist/ast-analysis/rules/go.js.map +1 -0
  18. package/dist/ast-analysis/rules/index.d.ts +31 -0
  19. package/dist/ast-analysis/rules/index.d.ts.map +1 -0
  20. package/dist/ast-analysis/rules/index.js +72 -0
  21. package/dist/ast-analysis/rules/index.js.map +1 -0
  22. package/dist/ast-analysis/rules/java.d.ts +24 -0
  23. package/dist/ast-analysis/rules/java.d.ts.map +1 -0
  24. package/dist/ast-analysis/rules/java.js +166 -0
  25. package/dist/ast-analysis/rules/java.js.map +1 -0
  26. package/dist/ast-analysis/rules/javascript.d.ts +31 -0
  27. package/dist/ast-analysis/rules/javascript.d.ts.map +1 -0
  28. package/dist/ast-analysis/rules/javascript.js +235 -0
  29. package/dist/ast-analysis/rules/javascript.js.map +1 -0
  30. package/dist/ast-analysis/rules/php.d.ts +24 -0
  31. package/dist/ast-analysis/rules/php.d.ts.map +1 -0
  32. package/dist/ast-analysis/rules/php.js +210 -0
  33. package/dist/ast-analysis/rules/php.js.map +1 -0
  34. package/dist/ast-analysis/rules/python.d.ts +24 -0
  35. package/dist/ast-analysis/rules/python.d.ts.map +1 -0
  36. package/dist/ast-analysis/rules/python.js +188 -0
  37. package/dist/ast-analysis/rules/python.js.map +1 -0
  38. package/dist/ast-analysis/rules/ruby.d.ts +24 -0
  39. package/dist/ast-analysis/rules/ruby.d.ts.map +1 -0
  40. package/dist/ast-analysis/rules/ruby.js +193 -0
  41. package/dist/ast-analysis/rules/ruby.js.map +1 -0
  42. package/dist/ast-analysis/rules/rust.d.ts +24 -0
  43. package/dist/ast-analysis/rules/rust.d.ts.map +1 -0
  44. package/dist/ast-analysis/rules/rust.js +165 -0
  45. package/dist/ast-analysis/rules/rust.js.map +1 -0
  46. package/dist/ast-analysis/shared.d.ts +106 -0
  47. package/dist/ast-analysis/shared.d.ts.map +1 -0
  48. package/dist/ast-analysis/shared.js +186 -0
  49. package/dist/ast-analysis/shared.js.map +1 -0
  50. package/dist/ast-analysis/visitor-utils.d.ts +41 -0
  51. package/dist/ast-analysis/visitor-utils.d.ts.map +1 -0
  52. package/dist/ast-analysis/visitor-utils.js +180 -0
  53. package/dist/ast-analysis/visitor-utils.js.map +1 -0
  54. package/dist/ast-analysis/visitor.d.ts +119 -0
  55. package/dist/ast-analysis/visitor.d.ts.map +1 -0
  56. package/dist/ast-analysis/visitor.js +146 -0
  57. package/dist/ast-analysis/visitor.js.map +1 -0
  58. package/dist/ast-analysis/visitors/ast-store-visitor.d.ts +11 -0
  59. package/dist/ast-analysis/visitors/ast-store-visitor.d.ts.map +1 -0
  60. package/dist/ast-analysis/visitors/ast-store-visitor.js +147 -0
  61. package/dist/ast-analysis/visitors/ast-store-visitor.js.map +1 -0
  62. package/dist/ast-analysis/visitors/cfg-visitor.d.ts +8 -0
  63. package/dist/ast-analysis/visitors/cfg-visitor.d.ts.map +1 -0
  64. package/dist/ast-analysis/visitors/cfg-visitor.js +660 -0
  65. package/dist/ast-analysis/visitors/cfg-visitor.js.map +1 -0
  66. package/dist/ast-analysis/visitors/complexity-visitor.d.ts +17 -0
  67. package/dist/ast-analysis/visitors/complexity-visitor.d.ts.map +1 -0
  68. package/dist/ast-analysis/visitors/complexity-visitor.js +216 -0
  69. package/dist/ast-analysis/visitors/complexity-visitor.js.map +1 -0
  70. package/dist/ast-analysis/visitors/dataflow-visitor.d.ts +8 -0
  71. package/dist/ast-analysis/visitors/dataflow-visitor.d.ts.map +1 -0
  72. package/dist/ast-analysis/visitors/dataflow-visitor.js +321 -0
  73. package/dist/ast-analysis/visitors/dataflow-visitor.js.map +1 -0
  74. package/dist/cli/commands/ast.d.ts +9 -0
  75. package/dist/cli/commands/ast.d.ts.map +1 -0
  76. package/dist/cli/commands/ast.js +23 -0
  77. package/dist/cli/commands/ast.js.map +1 -0
  78. package/dist/cli/commands/audit.d.ts +9 -0
  79. package/dist/cli/commands/audit.d.ts.map +1 -0
  80. package/dist/cli/commands/audit.js +46 -0
  81. package/dist/cli/commands/audit.js.map +1 -0
  82. package/dist/cli/commands/batch.d.ts +9 -0
  83. package/dist/cli/commands/batch.d.ts.map +1 -0
  84. package/dist/cli/commands/batch.js +70 -0
  85. package/dist/cli/commands/batch.js.map +1 -0
  86. package/dist/cli/commands/branch-compare.d.ts +7 -0
  87. package/dist/cli/commands/branch-compare.d.ts.map +1 -0
  88. package/dist/cli/commands/branch-compare.js +22 -0
  89. package/dist/cli/commands/branch-compare.js.map +1 -0
  90. package/dist/cli/commands/brief.d.ts +7 -0
  91. package/dist/cli/commands/brief.d.ts.map +1 -0
  92. package/dist/cli/commands/brief.js +12 -0
  93. package/dist/cli/commands/brief.js.map +1 -0
  94. package/dist/cli/commands/build.d.ts +7 -0
  95. package/dist/cli/commands/build.d.ts.map +1 -0
  96. package/dist/cli/commands/build.js +26 -0
  97. package/dist/cli/commands/build.js.map +1 -0
  98. package/dist/cli/commands/cfg.d.ts +10 -0
  99. package/dist/cli/commands/cfg.d.ts.map +1 -0
  100. package/dist/cli/commands/cfg.js +27 -0
  101. package/dist/cli/commands/cfg.js.map +1 -0
  102. package/dist/cli/commands/check.d.ts +8 -0
  103. package/dist/cli/commands/check.d.ts.map +1 -0
  104. package/dist/cli/commands/check.js +65 -0
  105. package/dist/cli/commands/check.js.map +1 -0
  106. package/dist/cli/commands/children.d.ts +9 -0
  107. package/dist/cli/commands/children.d.ts.map +1 -0
  108. package/dist/cli/commands/children.js +33 -0
  109. package/dist/cli/commands/children.js.map +1 -0
  110. package/dist/cli/commands/co-change.d.ts +7 -0
  111. package/dist/cli/commands/co-change.d.ts.map +1 -0
  112. package/dist/cli/commands/co-change.js +62 -0
  113. package/dist/cli/commands/co-change.js.map +1 -0
  114. package/dist/cli/commands/communities.d.ts +8 -0
  115. package/dist/cli/commands/communities.d.ts.map +1 -0
  116. package/dist/cli/commands/communities.js +20 -0
  117. package/dist/cli/commands/communities.js.map +1 -0
  118. package/dist/cli/commands/complexity.d.ts +9 -0
  119. package/dist/cli/commands/complexity.d.ts.map +1 -0
  120. package/dist/cli/commands/complexity.js +47 -0
  121. package/dist/cli/commands/complexity.js.map +1 -0
  122. package/dist/cli/commands/context.d.ts +10 -0
  123. package/dist/cli/commands/context.d.ts.map +1 -0
  124. package/dist/cli/commands/context.js +35 -0
  125. package/dist/cli/commands/context.js.map +1 -0
  126. package/dist/cli/commands/cycles.d.ts +7 -0
  127. package/dist/cli/commands/cycles.d.ts.map +1 -0
  128. package/dist/cli/commands/cycles.js +33 -0
  129. package/dist/cli/commands/cycles.js.map +1 -0
  130. package/dist/cli/commands/dataflow.d.ts +10 -0
  131. package/dist/cli/commands/dataflow.d.ts.map +1 -0
  132. package/dist/cli/commands/dataflow.js +29 -0
  133. package/dist/cli/commands/dataflow.js.map +1 -0
  134. package/dist/cli/commands/deps.d.ts +8 -0
  135. package/dist/cli/commands/deps.d.ts.map +1 -0
  136. package/dist/cli/commands/deps.js +18 -0
  137. package/dist/cli/commands/deps.js.map +1 -0
  138. package/dist/cli/commands/diff-impact.d.ts +7 -0
  139. package/dist/cli/commands/diff-impact.d.ts.map +1 -0
  140. package/dist/cli/commands/diff-impact.js +28 -0
  141. package/dist/cli/commands/diff-impact.js.map +1 -0
  142. package/dist/cli/commands/embed.d.ts +8 -0
  143. package/dist/cli/commands/embed.d.ts.map +1 -0
  144. package/dist/cli/commands/embed.js +29 -0
  145. package/dist/cli/commands/embed.js.map +1 -0
  146. package/dist/cli/commands/export.d.ts +7 -0
  147. package/dist/cli/commands/export.d.ts.map +1 -0
  148. package/dist/cli/commands/export.js +72 -0
  149. package/dist/cli/commands/export.js.map +1 -0
  150. package/dist/cli/commands/exports.d.ts +8 -0
  151. package/dist/cli/commands/exports.d.ts.map +1 -0
  152. package/dist/cli/commands/exports.js +14 -0
  153. package/dist/cli/commands/exports.js.map +1 -0
  154. package/dist/cli/commands/flow.d.ts +10 -0
  155. package/dist/cli/commands/flow.d.ts.map +1 -0
  156. package/dist/cli/commands/flow.js +32 -0
  157. package/dist/cli/commands/flow.js.map +1 -0
  158. package/dist/cli/commands/fn-impact.d.ts +10 -0
  159. package/dist/cli/commands/fn-impact.d.ts.map +1 -0
  160. package/dist/cli/commands/fn-impact.js +33 -0
  161. package/dist/cli/commands/fn-impact.js.map +1 -0
  162. package/dist/cli/commands/impact.d.ts +7 -0
  163. package/dist/cli/commands/impact.d.ts.map +1 -0
  164. package/dist/cli/commands/impact.js +12 -0
  165. package/dist/cli/commands/impact.js.map +1 -0
  166. package/dist/cli/commands/implementations.d.ts +10 -0
  167. package/dist/cli/commands/implementations.d.ts.map +1 -0
  168. package/dist/cli/commands/implementations.js +29 -0
  169. package/dist/cli/commands/implementations.js.map +1 -0
  170. package/dist/cli/commands/info.d.ts +6 -0
  171. package/dist/cli/commands/info.d.ts.map +1 -0
  172. package/dist/cli/commands/info.js +66 -0
  173. package/dist/cli/commands/info.js.map +1 -0
  174. package/dist/cli/commands/interfaces.d.ts +10 -0
  175. package/dist/cli/commands/interfaces.d.ts.map +1 -0
  176. package/dist/cli/commands/interfaces.js +29 -0
  177. package/dist/cli/commands/interfaces.js.map +1 -0
  178. package/dist/cli/commands/map.d.ts +7 -0
  179. package/dist/cli/commands/map.d.ts.map +1 -0
  180. package/dist/cli/commands/map.js +19 -0
  181. package/dist/cli/commands/map.js.map +1 -0
  182. package/dist/cli/commands/mcp.d.ts +7 -0
  183. package/dist/cli/commands/mcp.d.ts.map +1 -0
  184. package/dist/cli/commands/mcp.js +19 -0
  185. package/dist/cli/commands/mcp.js.map +1 -0
  186. package/dist/cli/commands/models.d.ts +6 -0
  187. package/dist/cli/commands/models.d.ts.map +1 -0
  188. package/dist/cli/commands/models.js +17 -0
  189. package/dist/cli/commands/models.js.map +1 -0
  190. package/dist/cli/commands/owners.d.ts +8 -0
  191. package/dist/cli/commands/owners.d.ts.map +1 -0
  192. package/dist/cli/commands/owners.js +27 -0
  193. package/dist/cli/commands/owners.js.map +1 -0
  194. package/dist/cli/commands/path.d.ts +8 -0
  195. package/dist/cli/commands/path.d.ts.map +1 -0
  196. package/dist/cli/commands/path.js +36 -0
  197. package/dist/cli/commands/path.js.map +1 -0
  198. package/dist/cli/commands/plot.d.ts +7 -0
  199. package/dist/cli/commands/plot.d.ts.map +1 -0
  200. package/dist/cli/commands/plot.js +94 -0
  201. package/dist/cli/commands/plot.js.map +1 -0
  202. package/dist/cli/commands/query.d.ts +10 -0
  203. package/dist/cli/commands/query.d.ts.map +1 -0
  204. package/dist/cli/commands/query.js +51 -0
  205. package/dist/cli/commands/query.js.map +1 -0
  206. package/dist/cli/commands/registry.d.ts +16 -0
  207. package/dist/cli/commands/registry.d.ts.map +1 -0
  208. package/dist/cli/commands/registry.js +95 -0
  209. package/dist/cli/commands/registry.js.map +1 -0
  210. package/dist/cli/commands/roles.d.ts +9 -0
  211. package/dist/cli/commands/roles.d.ts.map +1 -0
  212. package/dist/cli/commands/roles.js +31 -0
  213. package/dist/cli/commands/roles.js.map +1 -0
  214. package/dist/cli/commands/search.d.ts +9 -0
  215. package/dist/cli/commands/search.d.ts.map +1 -0
  216. package/dist/cli/commands/search.js +47 -0
  217. package/dist/cli/commands/search.js.map +1 -0
  218. package/dist/cli/commands/sequence.d.ts +10 -0
  219. package/dist/cli/commands/sequence.d.ts.map +1 -0
  220. package/dist/cli/commands/sequence.js +29 -0
  221. package/dist/cli/commands/sequence.js.map +1 -0
  222. package/dist/cli/commands/snapshot.d.ts +11 -0
  223. package/dist/cli/commands/snapshot.d.ts.map +1 -0
  224. package/dist/cli/commands/snapshot.js +61 -0
  225. package/dist/cli/commands/snapshot.js.map +1 -0
  226. package/dist/cli/commands/stats.d.ts +7 -0
  227. package/dist/cli/commands/stats.d.ts.map +1 -0
  228. package/dist/cli/commands/stats.js +15 -0
  229. package/dist/cli/commands/stats.js.map +1 -0
  230. package/dist/cli/commands/structure.d.ts +7 -0
  231. package/dist/cli/commands/structure.d.ts.map +1 -0
  232. package/dist/cli/commands/structure.js +33 -0
  233. package/dist/cli/commands/structure.js.map +1 -0
  234. package/dist/cli/commands/triage.d.ts +8 -0
  235. package/dist/cli/commands/triage.d.ts.map +1 -0
  236. package/dist/cli/commands/triage.js +89 -0
  237. package/dist/cli/commands/triage.js.map +1 -0
  238. package/dist/cli/commands/watch.d.ts +6 -0
  239. package/dist/cli/commands/watch.d.ts.map +1 -0
  240. package/dist/cli/commands/watch.js +12 -0
  241. package/dist/cli/commands/watch.js.map +1 -0
  242. package/dist/cli/commands/where.d.ts +9 -0
  243. package/dist/cli/commands/where.d.ts.map +1 -0
  244. package/dist/cli/commands/where.js +20 -0
  245. package/dist/cli/commands/where.js.map +1 -0
  246. package/dist/cli/index.d.ts +31 -0
  247. package/dist/cli/index.d.ts.map +1 -0
  248. package/dist/cli/index.js +109 -0
  249. package/dist/cli/index.js.map +1 -0
  250. package/dist/cli/shared/open-graph.d.ts +14 -0
  251. package/dist/cli/shared/open-graph.d.ts.map +1 -0
  252. package/dist/cli/shared/open-graph.js +13 -0
  253. package/dist/cli/shared/open-graph.js.map +1 -0
  254. package/dist/cli/shared/options.d.ts +31 -0
  255. package/dist/cli/shared/options.d.ts.map +1 -0
  256. package/dist/cli/shared/options.js +58 -0
  257. package/dist/cli/shared/options.js.map +1 -0
  258. package/dist/cli/shared/output.d.ts +2 -0
  259. package/dist/cli/shared/output.d.ts.map +1 -0
  260. package/dist/cli/shared/output.js +2 -0
  261. package/dist/cli/shared/output.js.map +1 -0
  262. package/dist/cli.d.ts +3 -0
  263. package/dist/cli.d.ts.map +1 -0
  264. package/dist/cli.js +15 -0
  265. package/dist/cli.js.map +1 -0
  266. package/dist/db/connection.d.ts +39 -0
  267. package/dist/db/connection.d.ts.map +1 -0
  268. package/dist/db/connection.js +217 -0
  269. package/dist/db/connection.js.map +1 -0
  270. package/dist/db/index.d.ts +5 -0
  271. package/dist/db/index.d.ts.map +1 -0
  272. package/dist/db/index.js +6 -0
  273. package/dist/db/index.js.map +1 -0
  274. package/dist/db/migrations.d.ts +8 -0
  275. package/dist/db/migrations.d.ts.map +1 -0
  276. package/dist/db/migrations.js +323 -0
  277. package/dist/db/migrations.js.map +1 -0
  278. package/dist/db/query-builder.d.ts +106 -0
  279. package/dist/db/query-builder.d.ts.map +1 -0
  280. package/dist/db/query-builder.js +313 -0
  281. package/dist/db/query-builder.js.map +1 -0
  282. package/dist/db/repository/base.d.ts +115 -0
  283. package/dist/db/repository/base.d.ts.map +1 -0
  284. package/dist/db/repository/base.js +165 -0
  285. package/dist/db/repository/base.js.map +1 -0
  286. package/dist/db/repository/build-stmts.d.ts +25 -0
  287. package/dist/db/repository/build-stmts.d.ts.map +1 -0
  288. package/dist/db/repository/build-stmts.js +86 -0
  289. package/dist/db/repository/build-stmts.js.map +1 -0
  290. package/dist/db/repository/cached-stmt.d.ts +13 -0
  291. package/dist/db/repository/cached-stmt.d.ts.map +1 -0
  292. package/dist/db/repository/cached-stmt.js +20 -0
  293. package/dist/db/repository/cached-stmt.js.map +1 -0
  294. package/dist/db/repository/cfg.d.ts +27 -0
  295. package/dist/db/repository/cfg.d.ts.map +1 -0
  296. package/dist/db/repository/cfg.js +57 -0
  297. package/dist/db/repository/cfg.js.map +1 -0
  298. package/dist/db/repository/cochange.d.ts +20 -0
  299. package/dist/db/repository/cochange.d.ts.map +1 -0
  300. package/dist/db/repository/cochange.js +45 -0
  301. package/dist/db/repository/cochange.js.map +1 -0
  302. package/dist/db/repository/complexity.d.ts +15 -0
  303. package/dist/db/repository/complexity.d.ts.map +1 -0
  304. package/dist/db/repository/complexity.js +15 -0
  305. package/dist/db/repository/complexity.js.map +1 -0
  306. package/dist/db/repository/dataflow.d.ts +7 -0
  307. package/dist/db/repository/dataflow.d.ts.map +1 -0
  308. package/dist/db/repository/dataflow.js +17 -0
  309. package/dist/db/repository/dataflow.js.map +1 -0
  310. package/dist/db/repository/edges.d.ts +173 -0
  311. package/dist/db/repository/edges.d.ts.map +1 -0
  312. package/dist/db/repository/edges.js +231 -0
  313. package/dist/db/repository/edges.js.map +1 -0
  314. package/dist/db/repository/embeddings.d.ts +20 -0
  315. package/dist/db/repository/embeddings.d.ts.map +1 -0
  316. package/dist/db/repository/embeddings.js +47 -0
  317. package/dist/db/repository/embeddings.js.map +1 -0
  318. package/dist/db/repository/graph-read.d.ts +41 -0
  319. package/dist/db/repository/graph-read.d.ts.map +1 -0
  320. package/dist/db/repository/graph-read.js +41 -0
  321. package/dist/db/repository/graph-read.js.map +1 -0
  322. package/dist/db/repository/in-memory-repository.d.ts +156 -0
  323. package/dist/db/repository/in-memory-repository.d.ts.map +1 -0
  324. package/dist/db/repository/in-memory-repository.js +533 -0
  325. package/dist/db/repository/in-memory-repository.js.map +1 -0
  326. package/dist/db/repository/index.d.ts +14 -0
  327. package/dist/db/repository/index.d.ts.map +1 -0
  328. package/dist/db/repository/index.js +15 -0
  329. package/dist/db/repository/index.js.map +1 -0
  330. package/dist/db/repository/nodes.d.ts +151 -0
  331. package/dist/db/repository/nodes.d.ts.map +1 -0
  332. package/dist/db/repository/nodes.js +244 -0
  333. package/dist/db/repository/nodes.js.map +1 -0
  334. package/dist/db/repository/sqlite-repository.d.ts +100 -0
  335. package/dist/db/repository/sqlite-repository.d.ts.map +1 -0
  336. package/dist/db/repository/sqlite-repository.js +143 -0
  337. package/dist/db/repository/sqlite-repository.js.map +1 -0
  338. package/dist/domain/analysis/brief.d.ts +16 -0
  339. package/dist/domain/analysis/brief.d.ts.map +1 -0
  340. package/dist/domain/analysis/brief.js +147 -0
  341. package/dist/domain/analysis/brief.js.map +1 -0
  342. package/dist/domain/analysis/context.d.ts +3 -0
  343. package/dist/domain/analysis/context.d.ts.map +1 -0
  344. package/dist/domain/analysis/context.js +378 -0
  345. package/dist/domain/analysis/context.js.map +1 -0
  346. package/dist/domain/analysis/dependencies.d.ts +60 -0
  347. package/dist/domain/analysis/dependencies.d.ts.map +1 -0
  348. package/dist/domain/analysis/dependencies.js +359 -0
  349. package/dist/domain/analysis/dependencies.js.map +1 -0
  350. package/dist/domain/analysis/exports.d.ts +2 -0
  351. package/dist/domain/analysis/exports.d.ts.map +1 -0
  352. package/dist/domain/analysis/exports.js +168 -0
  353. package/dist/domain/analysis/exports.js.map +1 -0
  354. package/dist/domain/analysis/impact.d.ts +39 -0
  355. package/dist/domain/analysis/impact.d.ts.map +1 -0
  356. package/dist/domain/analysis/impact.js +596 -0
  357. package/dist/domain/analysis/impact.js.map +1 -0
  358. package/dist/domain/analysis/implementations.d.ts +59 -0
  359. package/dist/domain/analysis/implementations.d.ts.map +1 -0
  360. package/dist/domain/analysis/implementations.js +93 -0
  361. package/dist/domain/analysis/implementations.js.map +1 -0
  362. package/dist/domain/analysis/module-map.d.ts +64 -0
  363. package/dist/domain/analysis/module-map.d.ts.map +1 -0
  364. package/dist/domain/analysis/module-map.js +334 -0
  365. package/dist/domain/analysis/module-map.js.map +1 -0
  366. package/dist/domain/analysis/roles.d.ts +2 -0
  367. package/dist/domain/analysis/roles.d.ts.map +1 -0
  368. package/dist/domain/analysis/roles.js +50 -0
  369. package/dist/domain/analysis/roles.js.map +1 -0
  370. package/dist/domain/analysis/symbol-lookup.d.ts +12 -0
  371. package/dist/domain/analysis/symbol-lookup.d.ts.map +1 -0
  372. package/dist/domain/analysis/symbol-lookup.js +202 -0
  373. package/dist/domain/analysis/symbol-lookup.js.map +1 -0
  374. package/dist/domain/graph/builder/context.d.ts +91 -0
  375. package/dist/domain/graph/builder/context.d.ts.map +1 -0
  376. package/dist/domain/graph/builder/context.js +78 -0
  377. package/dist/domain/graph/builder/context.js.map +1 -0
  378. package/dist/domain/graph/builder/helpers.d.ts +43 -0
  379. package/dist/domain/graph/builder/helpers.d.ts.map +1 -0
  380. package/dist/domain/graph/builder/helpers.js +209 -0
  381. package/dist/domain/graph/builder/helpers.js.map +1 -0
  382. package/dist/domain/graph/builder/incremental.d.ts +17 -0
  383. package/dist/domain/graph/builder/incremental.d.ts.map +1 -0
  384. package/dist/domain/graph/builder/incremental.js +191 -0
  385. package/dist/domain/graph/builder/incremental.js.map +1 -0
  386. package/dist/domain/graph/builder/pipeline.d.ts +13 -0
  387. package/dist/domain/graph/builder/pipeline.d.ts.map +1 -0
  388. package/dist/domain/graph/builder/pipeline.js +146 -0
  389. package/dist/domain/graph/builder/pipeline.js.map +1 -0
  390. package/dist/domain/graph/builder/stages/build-edges.d.ts +5 -0
  391. package/dist/domain/graph/builder/stages/build-edges.d.ts.map +1 -0
  392. package/dist/domain/graph/builder/stages/build-edges.js +387 -0
  393. package/dist/domain/graph/builder/stages/build-edges.js.map +1 -0
  394. package/dist/domain/graph/builder/stages/build-structure.d.ts +5 -0
  395. package/dist/domain/graph/builder/stages/build-structure.d.ts.map +1 -0
  396. package/dist/domain/graph/builder/stages/build-structure.js +107 -0
  397. package/dist/domain/graph/builder/stages/build-structure.js.map +1 -0
  398. package/dist/domain/graph/builder/stages/collect-files.d.ts +5 -0
  399. package/dist/domain/graph/builder/stages/collect-files.d.ts.map +1 -0
  400. package/dist/domain/graph/builder/stages/collect-files.js +45 -0
  401. package/dist/domain/graph/builder/stages/collect-files.js.map +1 -0
  402. package/dist/domain/graph/builder/stages/detect-changes.d.ts +5 -0
  403. package/dist/domain/graph/builder/stages/detect-changes.d.ts.map +1 -0
  404. package/dist/domain/graph/builder/stages/detect-changes.js +358 -0
  405. package/dist/domain/graph/builder/stages/detect-changes.js.map +1 -0
  406. package/dist/domain/graph/builder/stages/finalize.d.ts +5 -0
  407. package/dist/domain/graph/builder/stages/finalize.d.ts.map +1 -0
  408. package/dist/domain/graph/builder/stages/finalize.js +123 -0
  409. package/dist/domain/graph/builder/stages/finalize.js.map +1 -0
  410. package/dist/domain/graph/builder/stages/insert-nodes.d.ts +5 -0
  411. package/dist/domain/graph/builder/stages/insert-nodes.d.ts.map +1 -0
  412. package/dist/domain/graph/builder/stages/insert-nodes.js +183 -0
  413. package/dist/domain/graph/builder/stages/insert-nodes.js.map +1 -0
  414. package/dist/domain/graph/builder/stages/parse-files.d.ts +5 -0
  415. package/dist/domain/graph/builder/stages/parse-files.d.ts.map +1 -0
  416. package/dist/domain/graph/builder/stages/parse-files.js +25 -0
  417. package/dist/domain/graph/builder/stages/parse-files.js.map +1 -0
  418. package/dist/domain/graph/builder/stages/resolve-imports.d.ts +18 -0
  419. package/dist/domain/graph/builder/stages/resolve-imports.d.ts.map +1 -0
  420. package/dist/domain/graph/builder/stages/resolve-imports.js +139 -0
  421. package/dist/domain/graph/builder/stages/resolve-imports.js.map +1 -0
  422. package/dist/domain/graph/builder/stages/run-analyses.d.ts +5 -0
  423. package/dist/domain/graph/builder/stages/run-analyses.d.ts.map +1 -0
  424. package/dist/domain/graph/builder/stages/run-analyses.js +39 -0
  425. package/dist/domain/graph/builder/stages/run-analyses.js.map +1 -0
  426. package/dist/domain/graph/builder.d.ts +4 -0
  427. package/dist/domain/graph/builder.d.ts.map +1 -0
  428. package/dist/domain/graph/builder.js +6 -0
  429. package/dist/domain/graph/builder.js.map +1 -0
  430. package/dist/domain/graph/change-journal.d.ts +57 -0
  431. package/dist/domain/graph/change-journal.d.ts.map +1 -0
  432. package/dist/domain/graph/change-journal.js +120 -0
  433. package/dist/domain/graph/change-journal.js.map +1 -0
  434. package/dist/domain/graph/cycles.d.ts +18 -0
  435. package/dist/domain/graph/cycles.d.ts.map +1 -0
  436. package/dist/domain/graph/cycles.js +75 -0
  437. package/dist/domain/graph/cycles.js.map +1 -0
  438. package/dist/domain/graph/journal.d.ts +27 -0
  439. package/dist/domain/graph/journal.d.ts.map +1 -0
  440. package/dist/domain/graph/journal.js +100 -0
  441. package/dist/domain/graph/journal.js.map +1 -0
  442. package/dist/domain/graph/resolve.d.ts +76 -0
  443. package/dist/domain/graph/resolve.d.ts.map +1 -0
  444. package/dist/domain/graph/resolve.js +482 -0
  445. package/dist/domain/graph/resolve.js.map +1 -0
  446. package/dist/domain/graph/watcher.d.ts +2 -0
  447. package/dist/domain/graph/watcher.d.ts.map +1 -0
  448. package/dist/domain/graph/watcher.js +140 -0
  449. package/dist/domain/graph/watcher.js.map +1 -0
  450. package/dist/domain/parser.d.ts +104 -0
  451. package/dist/domain/parser.d.ts.map +1 -0
  452. package/dist/domain/parser.js +557 -0
  453. package/dist/domain/parser.js.map +1 -0
  454. package/dist/domain/queries.d.ts +14 -0
  455. package/dist/domain/queries.d.ts.map +1 -0
  456. package/dist/domain/queries.js +25 -0
  457. package/dist/domain/queries.js.map +1 -0
  458. package/dist/domain/search/generator.d.ts +17 -0
  459. package/dist/domain/search/generator.d.ts.map +1 -0
  460. package/dist/domain/search/generator.js +135 -0
  461. package/dist/domain/search/generator.js.map +1 -0
  462. package/dist/domain/search/index.d.ts +8 -0
  463. package/dist/domain/search/index.d.ts.map +1 -0
  464. package/dist/domain/search/index.js +13 -0
  465. package/dist/domain/search/index.js.map +1 -0
  466. package/dist/domain/search/models.d.ts +82 -0
  467. package/dist/domain/search/models.d.ts.map +1 -0
  468. package/dist/domain/search/models.js +198 -0
  469. package/dist/domain/search/models.js.map +1 -0
  470. package/dist/domain/search/search/cli-formatter.d.ts +6 -0
  471. package/dist/domain/search/search/cli-formatter.d.ts.map +1 -0
  472. package/dist/domain/search/search/cli-formatter.js +135 -0
  473. package/dist/domain/search/search/cli-formatter.js.map +1 -0
  474. package/dist/domain/search/search/filters.d.ts +19 -0
  475. package/dist/domain/search/search/filters.d.ts.map +1 -0
  476. package/dist/domain/search/search/filters.js +48 -0
  477. package/dist/domain/search/search/filters.js.map +1 -0
  478. package/dist/domain/search/search/hybrid.d.ts +22 -0
  479. package/dist/domain/search/search/hybrid.d.ts.map +1 -0
  480. package/dist/domain/search/search/hybrid.js +113 -0
  481. package/dist/domain/search/search/hybrid.js.map +1 -0
  482. package/dist/domain/search/search/keyword.d.ts +17 -0
  483. package/dist/domain/search/search/keyword.d.ts.map +1 -0
  484. package/dist/domain/search/search/keyword.js +66 -0
  485. package/dist/domain/search/search/keyword.js.map +1 -0
  486. package/dist/domain/search/search/prepare.d.ts +13 -0
  487. package/dist/domain/search/search/prepare.d.ts.map +1 -0
  488. package/dist/domain/search/search/prepare.js +70 -0
  489. package/dist/domain/search/search/prepare.js.map +1 -0
  490. package/dist/domain/search/search/semantic.d.ts +34 -0
  491. package/dist/domain/search/search/semantic.d.ts.map +1 -0
  492. package/dist/domain/search/search/semantic.js +129 -0
  493. package/dist/domain/search/search/semantic.js.map +1 -0
  494. package/dist/domain/search/stores/fts5.d.ts +11 -0
  495. package/dist/domain/search/stores/fts5.d.ts.map +1 -0
  496. package/dist/domain/search/stores/fts5.js +31 -0
  497. package/dist/domain/search/stores/fts5.js.map +1 -0
  498. package/dist/domain/search/stores/sqlite-blob.d.ts +27 -0
  499. package/dist/domain/search/stores/sqlite-blob.d.ts.map +1 -0
  500. package/dist/domain/search/stores/sqlite-blob.js +22 -0
  501. package/dist/domain/search/stores/sqlite-blob.js.map +1 -0
  502. package/dist/domain/search/strategies/source.d.ts +5 -0
  503. package/dist/domain/search/strategies/source.d.ts.map +1 -0
  504. package/dist/domain/search/strategies/source.js +14 -0
  505. package/dist/domain/search/strategies/source.js.map +1 -0
  506. package/dist/domain/search/strategies/structured.d.ts +6 -0
  507. package/dist/domain/search/strategies/structured.d.ts.map +1 -0
  508. package/dist/domain/search/strategies/structured.js +40 -0
  509. package/dist/domain/search/strategies/structured.js.map +1 -0
  510. package/dist/domain/search/strategies/text-utils.d.ts +11 -0
  511. package/dist/domain/search/strategies/text-utils.d.ts.map +1 -0
  512. package/dist/domain/search/strategies/text-utils.js +47 -0
  513. package/dist/domain/search/strategies/text-utils.js.map +1 -0
  514. package/dist/extractors/csharp.d.ts +12 -0
  515. package/dist/extractors/csharp.d.ts.map +1 -0
  516. package/dist/extractors/csharp.js +402 -0
  517. package/dist/extractors/csharp.js.map +1 -0
  518. package/dist/extractors/go.d.ts +12 -0
  519. package/dist/extractors/go.d.ts.map +1 -0
  520. package/dist/extractors/go.js +381 -0
  521. package/dist/extractors/go.js.map +1 -0
  522. package/dist/extractors/hcl.d.ts +11 -0
  523. package/dist/extractors/hcl.d.ts.map +1 -0
  524. package/dist/extractors/hcl.js +105 -0
  525. package/dist/extractors/hcl.js.map +1 -0
  526. package/dist/extractors/helpers.d.ts +16 -0
  527. package/dist/extractors/helpers.d.ts.map +1 -0
  528. package/dist/extractors/helpers.js +88 -0
  529. package/dist/extractors/helpers.js.map +1 -0
  530. package/dist/extractors/index.d.ts +10 -0
  531. package/dist/extractors/index.d.ts.map +1 -0
  532. package/dist/extractors/index.js +10 -0
  533. package/dist/extractors/index.js.map +1 -0
  534. package/dist/extractors/java.d.ts +12 -0
  535. package/dist/extractors/java.d.ts.map +1 -0
  536. package/dist/extractors/java.js +325 -0
  537. package/dist/extractors/java.js.map +1 -0
  538. package/dist/extractors/javascript.d.ts +81 -0
  539. package/dist/extractors/javascript.d.ts.map +1 -0
  540. package/dist/extractors/javascript.js +1232 -0
  541. package/dist/extractors/javascript.js.map +1 -0
  542. package/dist/extractors/php.d.ts +12 -0
  543. package/dist/extractors/php.d.ts.map +1 -0
  544. package/dist/extractors/php.js +380 -0
  545. package/dist/extractors/php.js.map +1 -0
  546. package/dist/extractors/python.d.ts +12 -0
  547. package/dist/extractors/python.d.ts.map +1 -0
  548. package/dist/extractors/python.js +426 -0
  549. package/dist/extractors/python.js.map +1 -0
  550. package/dist/extractors/ruby.d.ts +11 -0
  551. package/dist/extractors/ruby.d.ts.map +1 -0
  552. package/dist/extractors/ruby.js +284 -0
  553. package/dist/extractors/ruby.js.map +1 -0
  554. package/dist/extractors/rust.d.ts +12 -0
  555. package/dist/extractors/rust.d.ts.map +1 -0
  556. package/dist/extractors/rust.js +366 -0
  557. package/dist/extractors/rust.js.map +1 -0
  558. package/dist/features/ast.d.ts +30 -0
  559. package/dist/features/ast.d.ts.map +1 -0
  560. package/dist/features/ast.js +242 -0
  561. package/dist/features/ast.js.map +1 -0
  562. package/dist/features/audit.d.ts +6 -0
  563. package/dist/features/audit.d.ts.map +1 -0
  564. package/dist/features/audit.js +283 -0
  565. package/dist/features/audit.js.map +1 -0
  566. package/dist/features/batch.d.ts +110 -0
  567. package/dist/features/batch.d.ts.map +1 -0
  568. package/dist/features/batch.js +138 -0
  569. package/dist/features/batch.js.map +1 -0
  570. package/dist/features/boundaries.d.ts +69 -0
  571. package/dist/features/boundaries.d.ts.map +1 -0
  572. package/dist/features/boundaries.js +344 -0
  573. package/dist/features/boundaries.js.map +1 -0
  574. package/dist/features/branch-compare.d.ts +52 -0
  575. package/dist/features/branch-compare.d.ts.map +1 -0
  576. package/dist/features/branch-compare.js +425 -0
  577. package/dist/features/branch-compare.js.map +1 -0
  578. package/dist/features/cfg.d.ts +51 -0
  579. package/dist/features/cfg.d.ts.map +1 -0
  580. package/dist/features/cfg.js +372 -0
  581. package/dist/features/cfg.js.map +1 -0
  582. package/dist/features/check.d.ts +99 -0
  583. package/dist/features/check.d.ts.map +1 -0
  584. package/dist/features/check.js +296 -0
  585. package/dist/features/check.js.map +1 -0
  586. package/dist/features/cochange.d.ts +119 -0
  587. package/dist/features/cochange.d.ts.map +1 -0
  588. package/dist/features/cochange.js +425 -0
  589. package/dist/features/cochange.js.map +1 -0
  590. package/dist/features/communities.d.ts +40 -0
  591. package/dist/features/communities.d.ts.map +1 -0
  592. package/dist/features/communities.js +163 -0
  593. package/dist/features/communities.js.map +1 -0
  594. package/dist/features/complexity.d.ts +127 -0
  595. package/dist/features/complexity.d.ts.map +1 -0
  596. package/dist/features/complexity.js +683 -0
  597. package/dist/features/complexity.js.map +1 -0
  598. package/dist/features/dataflow.d.ts +72 -0
  599. package/dist/features/dataflow.d.ts.map +1 -0
  600. package/dist/features/dataflow.js +483 -0
  601. package/dist/features/dataflow.js.map +1 -0
  602. package/dist/features/export.d.ts +29 -0
  603. package/dist/features/export.d.ts.map +1 -0
  604. package/dist/features/export.js +336 -0
  605. package/dist/features/export.js.map +1 -0
  606. package/dist/features/flow.d.ts +49 -0
  607. package/dist/features/flow.d.ts.map +1 -0
  608. package/dist/features/flow.js +203 -0
  609. package/dist/features/flow.js.map +1 -0
  610. package/dist/features/graph-enrichment.d.ts +54 -0
  611. package/dist/features/graph-enrichment.d.ts.map +1 -0
  612. package/dist/features/graph-enrichment.js +297 -0
  613. package/dist/features/graph-enrichment.js.map +1 -0
  614. package/dist/features/manifesto.d.ts +46 -0
  615. package/dist/features/manifesto.d.ts.map +1 -0
  616. package/dist/features/manifesto.js +398 -0
  617. package/dist/features/manifesto.js.map +1 -0
  618. package/dist/features/owners.d.ts +123 -0
  619. package/dist/features/owners.d.ts.map +1 -0
  620. package/dist/features/owners.js +289 -0
  621. package/dist/features/owners.js.map +1 -0
  622. package/dist/features/sequence.d.ts +33 -0
  623. package/dist/features/sequence.d.ts.map +1 -0
  624. package/dist/features/sequence.js +269 -0
  625. package/dist/features/sequence.js.map +1 -0
  626. package/dist/features/shared/find-nodes.d.ts +11 -0
  627. package/dist/features/shared/find-nodes.d.ts.map +1 -0
  628. package/dist/features/shared/find-nodes.js +27 -0
  629. package/dist/features/shared/find-nodes.js.map +1 -0
  630. package/dist/features/snapshot.d.ts +64 -0
  631. package/dist/features/snapshot.d.ts.map +1 -0
  632. package/dist/features/snapshot.js +132 -0
  633. package/dist/features/snapshot.js.map +1 -0
  634. package/dist/features/structure.d.ts +42 -0
  635. package/dist/features/structure.d.ts.map +1 -0
  636. package/dist/features/structure.js +596 -0
  637. package/dist/features/structure.js.map +1 -0
  638. package/dist/features/triage.d.ts +13 -0
  639. package/dist/features/triage.d.ts.map +1 -0
  640. package/dist/features/triage.js +133 -0
  641. package/dist/features/triage.js.map +1 -0
  642. package/dist/graph/algorithms/bfs.d.ts +13 -0
  643. package/dist/graph/algorithms/bfs.d.ts.map +1 -0
  644. package/dist/graph/algorithms/bfs.js +47 -0
  645. package/dist/graph/algorithms/bfs.js.map +1 -0
  646. package/dist/graph/algorithms/centrality.d.ts +11 -0
  647. package/dist/graph/algorithms/centrality.d.ts.map +1 -0
  648. package/dist/graph/algorithms/centrality.js +17 -0
  649. package/dist/graph/algorithms/centrality.js.map +1 -0
  650. package/dist/graph/algorithms/index.d.ts +6 -0
  651. package/dist/graph/algorithms/index.d.ts.map +1 -0
  652. package/dist/graph/algorithms/index.js +6 -0
  653. package/dist/graph/algorithms/index.js.map +1 -0
  654. package/dist/graph/algorithms/louvain.d.ts +5 -0
  655. package/dist/graph/algorithms/louvain.d.ts.map +1 -0
  656. package/dist/graph/algorithms/louvain.js +22 -0
  657. package/dist/graph/algorithms/louvain.js.map +1 -0
  658. package/dist/graph/algorithms/shortest-path.d.ts +10 -0
  659. package/dist/graph/algorithms/shortest-path.d.ts.map +1 -0
  660. package/dist/graph/algorithms/shortest-path.js +41 -0
  661. package/dist/graph/algorithms/shortest-path.js.map +1 -0
  662. package/dist/graph/algorithms/tarjan.d.ts +9 -0
  663. package/dist/graph/algorithms/tarjan.d.ts.map +1 -0
  664. package/dist/graph/algorithms/tarjan.js +48 -0
  665. package/dist/graph/algorithms/tarjan.js.map +1 -0
  666. package/dist/graph/builders/dependency.d.ts +15 -0
  667. package/dist/graph/builders/dependency.d.ts.map +1 -0
  668. package/dist/graph/builders/dependency.js +99 -0
  669. package/dist/graph/builders/dependency.js.map +1 -0
  670. package/dist/graph/builders/index.d.ts +4 -0
  671. package/dist/graph/builders/index.d.ts.map +1 -0
  672. package/dist/graph/builders/index.js +4 -0
  673. package/dist/graph/builders/index.js.map +1 -0
  674. package/dist/graph/builders/structure.d.ts +7 -0
  675. package/dist/graph/builders/structure.d.ts.map +1 -0
  676. package/dist/graph/builders/structure.js +32 -0
  677. package/dist/graph/builders/structure.js.map +1 -0
  678. package/dist/graph/builders/temporal.d.ts +10 -0
  679. package/dist/graph/builders/temporal.d.ts.map +1 -0
  680. package/dist/graph/builders/temporal.js +31 -0
  681. package/dist/graph/builders/temporal.js.map +1 -0
  682. package/dist/graph/classifiers/index.d.ts +3 -0
  683. package/dist/graph/classifiers/index.d.ts.map +1 -0
  684. package/dist/graph/classifiers/index.js +3 -0
  685. package/dist/graph/classifiers/index.js.map +1 -0
  686. package/dist/graph/classifiers/risk.d.ts +49 -0
  687. package/dist/graph/classifiers/risk.d.ts.map +1 -0
  688. package/dist/graph/classifiers/risk.js +84 -0
  689. package/dist/graph/classifiers/risk.js.map +1 -0
  690. package/dist/graph/classifiers/roles.d.ts +29 -0
  691. package/dist/graph/classifiers/roles.d.ts.map +1 -0
  692. package/dist/graph/classifiers/roles.js +109 -0
  693. package/dist/graph/classifiers/roles.js.map +1 -0
  694. package/dist/graph/index.d.ts +5 -0
  695. package/dist/graph/index.d.ts.map +1 -0
  696. package/dist/graph/index.js +6 -0
  697. package/dist/graph/index.js.map +1 -0
  698. package/dist/graph/model.d.ts +53 -0
  699. package/dist/graph/model.d.ts.map +1 -0
  700. package/dist/graph/model.js +210 -0
  701. package/dist/graph/model.js.map +1 -0
  702. package/dist/index.cjs +18 -0
  703. package/dist/index.cjs.map +1 -0
  704. package/dist/index.d.cts +3 -0
  705. package/dist/index.d.cts.map +1 -0
  706. package/dist/index.d.ts +26 -0
  707. package/dist/index.d.ts.map +1 -0
  708. package/dist/index.js +36 -0
  709. package/dist/index.js.map +1 -0
  710. package/dist/infrastructure/config.d.ts +222 -0
  711. package/dist/infrastructure/config.d.ts.map +1 -0
  712. package/dist/infrastructure/config.js +386 -0
  713. package/dist/infrastructure/config.js.map +1 -0
  714. package/dist/infrastructure/logger.d.ts +7 -0
  715. package/dist/infrastructure/logger.d.ts.map +1 -0
  716. package/dist/infrastructure/logger.js +21 -0
  717. package/dist/infrastructure/logger.js.map +1 -0
  718. package/dist/infrastructure/native.d.ts +19 -0
  719. package/dist/infrastructure/native.d.ts.map +1 -0
  720. package/dist/infrastructure/native.js +105 -0
  721. package/dist/infrastructure/native.js.map +1 -0
  722. package/dist/infrastructure/registry.d.ts +57 -0
  723. package/dist/infrastructure/registry.d.ts.map +1 -0
  724. package/dist/infrastructure/registry.js +157 -0
  725. package/dist/infrastructure/registry.js.map +1 -0
  726. package/dist/infrastructure/result-formatter.d.ts +2 -0
  727. package/dist/infrastructure/result-formatter.d.ts.map +1 -0
  728. package/dist/infrastructure/result-formatter.js +3 -0
  729. package/dist/infrastructure/result-formatter.js.map +1 -0
  730. package/dist/infrastructure/test-filter.d.ts +5 -0
  731. package/dist/infrastructure/test-filter.d.ts.map +1 -0
  732. package/dist/infrastructure/test-filter.js +7 -0
  733. package/dist/infrastructure/test-filter.js.map +1 -0
  734. package/dist/infrastructure/update-check.d.ts +24 -0
  735. package/dist/infrastructure/update-check.d.ts.map +1 -0
  736. package/dist/infrastructure/update-check.js +150 -0
  737. package/dist/infrastructure/update-check.js.map +1 -0
  738. package/dist/mcp/index.d.ts +3 -0
  739. package/dist/mcp/index.d.ts.map +1 -0
  740. package/dist/mcp/index.js +3 -0
  741. package/dist/mcp/index.js.map +1 -0
  742. package/dist/mcp/middleware.d.ts +26 -0
  743. package/dist/mcp/middleware.d.ts.map +1 -0
  744. package/dist/mcp/middleware.js +38 -0
  745. package/dist/mcp/middleware.js.map +1 -0
  746. package/dist/mcp/server.d.ts +2 -0
  747. package/dist/mcp/server.d.ts.map +1 -0
  748. package/dist/mcp/server.js +120 -0
  749. package/dist/mcp/server.js.map +1 -0
  750. package/dist/mcp/tool-registry.d.ts +8 -0
  751. package/dist/mcp/tool-registry.d.ts.map +1 -0
  752. package/dist/mcp/tool-registry.js +819 -0
  753. package/dist/mcp/tool-registry.js.map +1 -0
  754. package/dist/mcp/tools/ast-query.d.ts +9 -0
  755. package/dist/mcp/tools/ast-query.d.ts.map +1 -0
  756. package/dist/mcp/tools/ast-query.js +13 -0
  757. package/dist/mcp/tools/ast-query.js.map +1 -0
  758. package/dist/mcp/tools/audit.d.ts +3 -0
  759. package/dist/mcp/tools/audit.d.ts.map +1 -0
  760. package/dist/mcp/tools/audit.js +20 -0
  761. package/dist/mcp/tools/audit.js.map +1 -0
  762. package/dist/mcp/tools/batch-query.d.ts +9 -0
  763. package/dist/mcp/tools/batch-query.d.ts.map +1 -0
  764. package/dist/mcp/tools/batch-query.js +11 -0
  765. package/dist/mcp/tools/batch-query.js.map +1 -0
  766. package/dist/mcp/tools/branch-compare.d.ts +3 -0
  767. package/dist/mcp/tools/branch-compare.d.ts.map +1 -0
  768. package/dist/mcp/tools/branch-compare.js +10 -0
  769. package/dist/mcp/tools/branch-compare.js.map +1 -0
  770. package/dist/mcp/tools/brief.d.ts +3 -0
  771. package/dist/mcp/tools/brief.d.ts.map +1 -0
  772. package/dist/mcp/tools/brief.js +8 -0
  773. package/dist/mcp/tools/brief.js.map +1 -0
  774. package/dist/mcp/tools/cfg.d.ts +10 -0
  775. package/dist/mcp/tools/cfg.d.ts.map +1 -0
  776. package/dist/mcp/tools/cfg.js +20 -0
  777. package/dist/mcp/tools/cfg.js.map +1 -0
  778. package/dist/mcp/tools/check.d.ts +24 -0
  779. package/dist/mcp/tools/check.d.ts.map +1 -0
  780. package/dist/mcp/tools/check.js +39 -0
  781. package/dist/mcp/tools/check.js.map +1 -0
  782. package/dist/mcp/tools/co-changes.d.ts +10 -0
  783. package/dist/mcp/tools/co-changes.d.ts.map +1 -0
  784. package/dist/mcp/tools/co-changes.js +19 -0
  785. package/dist/mcp/tools/co-changes.js.map +1 -0
  786. package/dist/mcp/tools/code-owners.d.ts +48 -0
  787. package/dist/mcp/tools/code-owners.d.ts.map +1 -0
  788. package/dist/mcp/tools/code-owners.js +12 -0
  789. package/dist/mcp/tools/code-owners.js.map +1 -0
  790. package/dist/mcp/tools/communities.d.ts +8 -0
  791. package/dist/mcp/tools/communities.d.ts.map +1 -0
  792. package/dist/mcp/tools/communities.js +14 -0
  793. package/dist/mcp/tools/communities.js.map +1 -0
  794. package/dist/mcp/tools/complexity.d.ts +7 -0
  795. package/dist/mcp/tools/complexity.d.ts.map +1 -0
  796. package/dist/mcp/tools/complexity.js +17 -0
  797. package/dist/mcp/tools/complexity.js.map +1 -0
  798. package/dist/mcp/tools/context.d.ts +3 -0
  799. package/dist/mcp/tools/context.d.ts.map +1 -0
  800. package/dist/mcp/tools/context.js +16 -0
  801. package/dist/mcp/tools/context.js.map +1 -0
  802. package/dist/mcp/tools/dataflow.d.ts +6 -0
  803. package/dist/mcp/tools/dataflow.d.ts.map +1 -0
  804. package/dist/mcp/tools/dataflow.js +25 -0
  805. package/dist/mcp/tools/dataflow.js.map +1 -0
  806. package/dist/mcp/tools/diff-impact.d.ts +3 -0
  807. package/dist/mcp/tools/diff-impact.d.ts.map +1 -0
  808. package/dist/mcp/tools/diff-impact.js +23 -0
  809. package/dist/mcp/tools/diff-impact.js.map +1 -0
  810. package/dist/mcp/tools/execution-flow.d.ts +17 -0
  811. package/dist/mcp/tools/execution-flow.d.ts.map +1 -0
  812. package/dist/mcp/tools/execution-flow.js +25 -0
  813. package/dist/mcp/tools/execution-flow.js.map +1 -0
  814. package/dist/mcp/tools/export-graph.d.ts +3 -0
  815. package/dist/mcp/tools/export-graph.d.ts.map +1 -0
  816. package/dist/mcp/tools/export-graph.js +55 -0
  817. package/dist/mcp/tools/export-graph.js.map +1 -0
  818. package/dist/mcp/tools/file-deps.d.ts +3 -0
  819. package/dist/mcp/tools/file-deps.d.ts.map +1 -0
  820. package/dist/mcp/tools/file-deps.js +11 -0
  821. package/dist/mcp/tools/file-deps.js.map +1 -0
  822. package/dist/mcp/tools/file-exports.d.ts +3 -0
  823. package/dist/mcp/tools/file-exports.d.ts.map +1 -0
  824. package/dist/mcp/tools/file-exports.js +12 -0
  825. package/dist/mcp/tools/file-exports.js.map +1 -0
  826. package/dist/mcp/tools/find-cycles.d.ts +6 -0
  827. package/dist/mcp/tools/find-cycles.d.ts.map +1 -0
  828. package/dist/mcp/tools/find-cycles.js +15 -0
  829. package/dist/mcp/tools/find-cycles.js.map +1 -0
  830. package/dist/mcp/tools/fn-impact.d.ts +3 -0
  831. package/dist/mcp/tools/fn-impact.d.ts.map +1 -0
  832. package/dist/mcp/tools/fn-impact.js +14 -0
  833. package/dist/mcp/tools/fn-impact.js.map +1 -0
  834. package/dist/mcp/tools/impact-analysis.d.ts +3 -0
  835. package/dist/mcp/tools/impact-analysis.d.ts.map +1 -0
  836. package/dist/mcp/tools/impact-analysis.js +11 -0
  837. package/dist/mcp/tools/impact-analysis.js.map +1 -0
  838. package/dist/mcp/tools/implementations.d.ts +3 -0
  839. package/dist/mcp/tools/implementations.d.ts.map +1 -0
  840. package/dist/mcp/tools/implementations.js +13 -0
  841. package/dist/mcp/tools/implementations.js.map +1 -0
  842. package/dist/mcp/tools/index.d.ts +3 -0
  843. package/dist/mcp/tools/index.d.ts.map +1 -0
  844. package/dist/mcp/tools/index.js +76 -0
  845. package/dist/mcp/tools/index.js.map +1 -0
  846. package/dist/mcp/tools/interfaces.d.ts +3 -0
  847. package/dist/mcp/tools/interfaces.d.ts.map +1 -0
  848. package/dist/mcp/tools/interfaces.js +13 -0
  849. package/dist/mcp/tools/interfaces.js.map +1 -0
  850. package/dist/mcp/tools/list-functions.d.ts +3 -0
  851. package/dist/mcp/tools/list-functions.d.ts.map +1 -0
  852. package/dist/mcp/tools/list-functions.js +13 -0
  853. package/dist/mcp/tools/list-functions.js.map +1 -0
  854. package/dist/mcp/tools/list-repos.d.ts +11 -0
  855. package/dist/mcp/tools/list-repos.d.ts.map +1 -0
  856. package/dist/mcp/tools/list-repos.js +11 -0
  857. package/dist/mcp/tools/list-repos.js.map +1 -0
  858. package/dist/mcp/tools/module-map.d.ts +3 -0
  859. package/dist/mcp/tools/module-map.d.ts.map +1 -0
  860. package/dist/mcp/tools/module-map.js +6 -0
  861. package/dist/mcp/tools/module-map.js.map +1 -0
  862. package/dist/mcp/tools/node-roles.d.ts +3 -0
  863. package/dist/mcp/tools/node-roles.d.ts.map +1 -0
  864. package/dist/mcp/tools/node-roles.js +13 -0
  865. package/dist/mcp/tools/node-roles.js.map +1 -0
  866. package/dist/mcp/tools/path.d.ts +3 -0
  867. package/dist/mcp/tools/path.d.ts.map +1 -0
  868. package/dist/mcp/tools/path.js +12 -0
  869. package/dist/mcp/tools/path.js.map +1 -0
  870. package/dist/mcp/tools/query.d.ts +3 -0
  871. package/dist/mcp/tools/query.d.ts.map +1 -0
  872. package/dist/mcp/tools/query.js +29 -0
  873. package/dist/mcp/tools/query.js.map +1 -0
  874. package/dist/mcp/tools/semantic-search.d.ts +3 -0
  875. package/dist/mcp/tools/semantic-search.d.ts.map +1 -0
  876. package/dist/mcp/tools/semantic-search.js +61 -0
  877. package/dist/mcp/tools/semantic-search.js.map +1 -0
  878. package/dist/mcp/tools/sequence.d.ts +18 -0
  879. package/dist/mcp/tools/sequence.d.ts.map +1 -0
  880. package/dist/mcp/tools/sequence.js +16 -0
  881. package/dist/mcp/tools/sequence.js.map +1 -0
  882. package/dist/mcp/tools/structure.d.ts +3 -0
  883. package/dist/mcp/tools/structure.d.ts.map +1 -0
  884. package/dist/mcp/tools/structure.js +14 -0
  885. package/dist/mcp/tools/structure.js.map +1 -0
  886. package/dist/mcp/tools/symbol-children.d.ts +3 -0
  887. package/dist/mcp/tools/symbol-children.d.ts.map +1 -0
  888. package/dist/mcp/tools/symbol-children.js +13 -0
  889. package/dist/mcp/tools/symbol-children.js.map +1 -0
  890. package/dist/mcp/tools/triage.d.ts +3 -0
  891. package/dist/mcp/tools/triage.d.ts.map +1 -0
  892. package/dist/mcp/tools/triage.js +34 -0
  893. package/dist/mcp/tools/triage.js.map +1 -0
  894. package/dist/mcp/tools/where.d.ts +3 -0
  895. package/dist/mcp/tools/where.d.ts.map +1 -0
  896. package/dist/mcp/tools/where.js +12 -0
  897. package/dist/mcp/tools/where.js.map +1 -0
  898. package/dist/presentation/audit.d.ts +5 -0
  899. package/dist/presentation/audit.d.ts.map +1 -0
  900. package/dist/presentation/audit.js +77 -0
  901. package/dist/presentation/audit.js.map +1 -0
  902. package/dist/presentation/batch.d.ts +10 -0
  903. package/dist/presentation/batch.d.ts.map +1 -0
  904. package/dist/presentation/batch.js +25 -0
  905. package/dist/presentation/batch.js.map +1 -0
  906. package/dist/presentation/branch-compare.d.ts +2 -0
  907. package/dist/presentation/branch-compare.d.ts.map +1 -0
  908. package/dist/presentation/branch-compare.js +75 -0
  909. package/dist/presentation/branch-compare.js.map +1 -0
  910. package/dist/presentation/brief.d.ts +12 -0
  911. package/dist/presentation/brief.d.ts.map +1 -0
  912. package/dist/presentation/brief.js +49 -0
  913. package/dist/presentation/brief.js.map +1 -0
  914. package/dist/presentation/cfg.d.ts +5 -0
  915. package/dist/presentation/cfg.d.ts.map +1 -0
  916. package/dist/presentation/cfg.js +50 -0
  917. package/dist/presentation/cfg.js.map +1 -0
  918. package/dist/presentation/check.d.ts +5 -0
  919. package/dist/presentation/check.d.ts.map +1 -0
  920. package/dist/presentation/check.js +70 -0
  921. package/dist/presentation/check.js.map +1 -0
  922. package/dist/presentation/cochange.d.ts +9 -0
  923. package/dist/presentation/cochange.d.ts.map +1 -0
  924. package/dist/presentation/cochange.js +39 -0
  925. package/dist/presentation/cochange.js.map +1 -0
  926. package/dist/presentation/colors.d.ts +26 -0
  927. package/dist/presentation/colors.d.ts.map +1 -0
  928. package/dist/presentation/colors.js +42 -0
  929. package/dist/presentation/colors.js.map +1 -0
  930. package/dist/presentation/communities.d.ts +5 -0
  931. package/dist/presentation/communities.d.ts.map +1 -0
  932. package/dist/presentation/communities.js +56 -0
  933. package/dist/presentation/communities.js.map +1 -0
  934. package/dist/presentation/complexity.d.ts +5 -0
  935. package/dist/presentation/complexity.d.ts.map +1 -0
  936. package/dist/presentation/complexity.js +56 -0
  937. package/dist/presentation/complexity.js.map +1 -0
  938. package/dist/presentation/dataflow.d.ts +5 -0
  939. package/dist/presentation/dataflow.d.ts.map +1 -0
  940. package/dist/presentation/dataflow.js +96 -0
  941. package/dist/presentation/dataflow.js.map +1 -0
  942. package/dist/presentation/export.d.ts +137 -0
  943. package/dist/presentation/export.d.ts.map +1 -0
  944. package/dist/presentation/export.js +374 -0
  945. package/dist/presentation/export.js.map +1 -0
  946. package/dist/presentation/flow.d.ts +5 -0
  947. package/dist/presentation/flow.d.ts.map +1 -0
  948. package/dist/presentation/flow.js +64 -0
  949. package/dist/presentation/flow.js.map +1 -0
  950. package/dist/presentation/manifesto.d.ts +5 -0
  951. package/dist/presentation/manifesto.d.ts.map +1 -0
  952. package/dist/presentation/manifesto.js +56 -0
  953. package/dist/presentation/manifesto.js.map +1 -0
  954. package/dist/presentation/owners.d.ts +5 -0
  955. package/dist/presentation/owners.d.ts.map +1 -0
  956. package/dist/presentation/owners.js +45 -0
  957. package/dist/presentation/owners.js.map +1 -0
  958. package/dist/presentation/queries-cli/exports.d.ts +2 -0
  959. package/dist/presentation/queries-cli/exports.d.ts.map +1 -0
  960. package/dist/presentation/queries-cli/exports.js +94 -0
  961. package/dist/presentation/queries-cli/exports.js.map +1 -0
  962. package/dist/presentation/queries-cli/impact.d.ts +6 -0
  963. package/dist/presentation/queries-cli/impact.d.ts.map +1 -0
  964. package/dist/presentation/queries-cli/impact.js +196 -0
  965. package/dist/presentation/queries-cli/impact.js.map +1 -0
  966. package/dist/presentation/queries-cli/index.d.ts +6 -0
  967. package/dist/presentation/queries-cli/index.d.ts.map +1 -0
  968. package/dist/presentation/queries-cli/index.js +6 -0
  969. package/dist/presentation/queries-cli/index.js.map +1 -0
  970. package/dist/presentation/queries-cli/inspect.d.ts +8 -0
  971. package/dist/presentation/queries-cli/inspect.d.ts.map +1 -0
  972. package/dist/presentation/queries-cli/inspect.js +353 -0
  973. package/dist/presentation/queries-cli/inspect.js.map +1 -0
  974. package/dist/presentation/queries-cli/overview.d.ts +4 -0
  975. package/dist/presentation/queries-cli/overview.d.ts.map +1 -0
  976. package/dist/presentation/queries-cli/overview.js +163 -0
  977. package/dist/presentation/queries-cli/overview.js.map +1 -0
  978. package/dist/presentation/queries-cli/path.d.ts +2 -0
  979. package/dist/presentation/queries-cli/path.d.ts.map +1 -0
  980. package/dist/presentation/queries-cli/path.js +51 -0
  981. package/dist/presentation/queries-cli/path.js.map +1 -0
  982. package/dist/presentation/queries-cli.d.ts +2 -0
  983. package/dist/presentation/queries-cli.d.ts.map +1 -0
  984. package/dist/presentation/queries-cli.js +12 -0
  985. package/dist/presentation/queries-cli.js.map +1 -0
  986. package/dist/presentation/query.d.ts +2 -0
  987. package/dist/presentation/query.d.ts.map +1 -0
  988. package/dist/presentation/query.js +6 -0
  989. package/dist/presentation/query.js.map +1 -0
  990. package/dist/presentation/result-formatter.d.ts +10 -0
  991. package/dist/presentation/result-formatter.d.ts.map +1 -0
  992. package/dist/presentation/result-formatter.js +134 -0
  993. package/dist/presentation/result-formatter.js.map +1 -0
  994. package/dist/presentation/sequence-renderer.d.ts +12 -0
  995. package/dist/presentation/sequence-renderer.d.ts.map +1 -0
  996. package/dist/presentation/sequence-renderer.js +36 -0
  997. package/dist/presentation/sequence-renderer.js.map +1 -0
  998. package/dist/presentation/sequence.d.ts +5 -0
  999. package/dist/presentation/sequence.d.ts.map +1 -0
  1000. package/dist/presentation/sequence.js +29 -0
  1001. package/dist/presentation/sequence.js.map +1 -0
  1002. package/dist/presentation/structure.d.ts +8 -0
  1003. package/dist/presentation/structure.d.ts.map +1 -0
  1004. package/dist/presentation/structure.js +50 -0
  1005. package/dist/presentation/structure.js.map +1 -0
  1006. package/dist/presentation/table.d.ts +28 -0
  1007. package/dist/presentation/table.d.ts.map +1 -0
  1008. package/dist/presentation/table.js +39 -0
  1009. package/dist/presentation/table.js.map +1 -0
  1010. package/dist/presentation/triage.d.ts +5 -0
  1011. package/dist/presentation/triage.d.ts.map +1 -0
  1012. package/dist/presentation/triage.js +37 -0
  1013. package/dist/presentation/triage.js.map +1 -0
  1014. package/dist/presentation/viewer.d.ts +85 -0
  1015. package/dist/presentation/viewer.d.ts.map +1 -0
  1016. package/dist/presentation/viewer.js +621 -0
  1017. package/dist/presentation/viewer.js.map +1 -0
  1018. package/dist/shared/constants.d.ts +11 -0
  1019. package/dist/shared/constants.d.ts.map +1 -0
  1020. package/dist/shared/constants.js +35 -0
  1021. package/dist/shared/constants.js.map +1 -0
  1022. package/dist/shared/errors.d.ts +47 -0
  1023. package/dist/shared/errors.d.ts.map +1 -0
  1024. package/dist/shared/errors.js +69 -0
  1025. package/dist/shared/errors.js.map +1 -0
  1026. package/dist/shared/file-utils.d.ts +14 -0
  1027. package/dist/shared/file-utils.d.ts.map +1 -0
  1028. package/dist/shared/file-utils.js +165 -0
  1029. package/dist/shared/file-utils.js.map +1 -0
  1030. package/dist/shared/generators.d.ts +62 -0
  1031. package/dist/shared/generators.d.ts.map +1 -0
  1032. package/dist/shared/generators.js +120 -0
  1033. package/dist/shared/generators.js.map +1 -0
  1034. package/dist/shared/hierarchy.d.ts +2 -0
  1035. package/dist/shared/hierarchy.d.ts.map +1 -0
  1036. package/dist/shared/hierarchy.js +27 -0
  1037. package/dist/shared/hierarchy.js.map +1 -0
  1038. package/dist/shared/kinds.d.ts +11 -0
  1039. package/dist/shared/kinds.d.ts.map +1 -0
  1040. package/dist/shared/kinds.js +56 -0
  1041. package/dist/shared/kinds.js.map +1 -0
  1042. package/dist/shared/normalize.d.ts +19 -0
  1043. package/dist/shared/normalize.d.ts.map +1 -0
  1044. package/dist/shared/normalize.js +59 -0
  1045. package/dist/shared/normalize.js.map +1 -0
  1046. package/dist/shared/paginate.d.ts +80 -0
  1047. package/dist/shared/paginate.d.ts.map +1 -0
  1048. package/dist/shared/paginate.js +111 -0
  1049. package/dist/shared/paginate.js.map +1 -0
  1050. package/dist/types.d.ts +1322 -0
  1051. package/dist/types.d.ts.map +1 -0
  1052. package/dist/types.js +10 -0
  1053. package/dist/types.js.map +1 -0
  1054. package/package.json +21 -15
  1055. package/src/ast-analysis/engine.js +252 -258
  1056. package/src/ast-analysis/shared.js +0 -12
  1057. package/src/ast-analysis/visitors/cfg-visitor.js +635 -649
  1058. package/src/ast-analysis/visitors/complexity-visitor.js +135 -139
  1059. package/src/ast-analysis/visitors/dataflow-visitor.js +230 -224
  1060. package/src/cli/commands/ast.js +2 -1
  1061. package/src/cli/commands/audit.js +2 -1
  1062. package/src/cli/commands/batch.js +2 -1
  1063. package/src/cli/commands/brief.js +12 -0
  1064. package/src/cli/commands/cfg.js +2 -1
  1065. package/src/cli/commands/check.js +20 -23
  1066. package/src/cli/commands/children.js +6 -1
  1067. package/src/cli/commands/complexity.js +2 -1
  1068. package/src/cli/commands/context.js +6 -1
  1069. package/src/cli/commands/dataflow.js +2 -1
  1070. package/src/cli/commands/deps.js +8 -3
  1071. package/src/cli/commands/diff-impact.js +2 -0
  1072. package/src/cli/commands/flow.js +2 -1
  1073. package/src/cli/commands/fn-impact.js +8 -1
  1074. package/src/cli/commands/implementations.js +29 -0
  1075. package/src/cli/commands/info.js +1 -1
  1076. package/src/cli/commands/interfaces.js +29 -0
  1077. package/src/cli/commands/owners.js +4 -2
  1078. package/src/cli/commands/query.js +6 -1
  1079. package/src/cli/commands/roles.js +4 -2
  1080. package/src/cli/commands/search.js +8 -2
  1081. package/src/cli/commands/sequence.js +2 -1
  1082. package/src/cli/commands/triage.js +42 -28
  1083. package/src/db/connection.js +18 -12
  1084. package/src/db/index.js +2 -0
  1085. package/src/db/migrations.js +41 -64
  1086. package/src/db/query-builder.js +69 -8
  1087. package/src/db/repository/edges.js +38 -0
  1088. package/src/db/repository/in-memory-repository.js +38 -18
  1089. package/src/db/repository/index.js +2 -0
  1090. package/src/db/repository/nodes.js +8 -10
  1091. package/src/domain/analysis/brief.js +161 -0
  1092. package/src/domain/analysis/context.js +237 -199
  1093. package/src/domain/analysis/dependencies.js +200 -146
  1094. package/src/domain/analysis/exports.js +84 -12
  1095. package/src/domain/analysis/impact.js +350 -157
  1096. package/src/domain/analysis/implementations.js +98 -0
  1097. package/src/domain/analysis/module-map.js +256 -221
  1098. package/src/domain/analysis/roles.js +16 -7
  1099. package/src/domain/analysis/symbol-lookup.js +7 -5
  1100. package/src/domain/graph/builder/helpers.js +1 -1
  1101. package/src/domain/graph/builder/incremental.js +136 -90
  1102. package/src/domain/graph/builder/pipeline.js +114 -80
  1103. package/src/domain/graph/builder/stages/build-edges.js +413 -237
  1104. package/src/domain/graph/builder/stages/detect-changes.js +198 -177
  1105. package/src/domain/graph/builder/stages/insert-nodes.js +147 -139
  1106. package/src/domain/graph/resolve.js +315 -1
  1107. package/src/domain/graph/watcher.js +2 -2
  1108. package/src/domain/parser.js +90 -17
  1109. package/src/domain/queries.js +2 -0
  1110. package/src/domain/search/search/filters.js +9 -5
  1111. package/src/domain/search/search/hybrid.js +7 -4
  1112. package/src/domain/search/search/keyword.js +12 -5
  1113. package/src/domain/search/search/prepare.js +13 -5
  1114. package/src/domain/search/search/semantic.js +11 -6
  1115. package/src/extractors/csharp.js +286 -207
  1116. package/src/extractors/go.js +304 -159
  1117. package/src/extractors/hcl.js +94 -78
  1118. package/src/extractors/java.js +239 -207
  1119. package/src/extractors/javascript.js +437 -305
  1120. package/src/extractors/php.js +276 -220
  1121. package/src/extractors/python.js +379 -247
  1122. package/src/extractors/ruby.js +192 -185
  1123. package/src/extractors/rust.js +243 -168
  1124. package/src/features/ast.js +5 -3
  1125. package/src/features/audit.js +6 -3
  1126. package/src/features/boundaries.js +98 -83
  1127. package/src/features/cfg.js +134 -143
  1128. package/src/features/communities.js +70 -53
  1129. package/src/features/complexity.js +143 -132
  1130. package/src/features/dataflow.js +146 -149
  1131. package/src/features/export.js +3 -3
  1132. package/src/features/graph-enrichment.js +3 -3
  1133. package/src/features/manifesto.js +9 -6
  1134. package/src/features/owners.js +4 -3
  1135. package/src/features/sequence.js +155 -142
  1136. package/src/features/shared/find-nodes.js +31 -0
  1137. package/src/features/structure.js +161 -101
  1138. package/src/features/triage.js +93 -71
  1139. package/src/graph/classifiers/risk.js +12 -4
  1140. package/src/graph/classifiers/roles.js +54 -3
  1141. package/src/index.js +1 -0
  1142. package/src/infrastructure/config.js +255 -4
  1143. package/src/mcp/middleware.js +20 -2
  1144. package/src/mcp/server.js +71 -56
  1145. package/src/mcp/tool-registry.js +53 -1
  1146. package/src/mcp/tools/brief.js +8 -0
  1147. package/src/mcp/tools/implementations.js +14 -0
  1148. package/src/mcp/tools/index.js +6 -0
  1149. package/src/mcp/tools/interfaces.js +14 -0
  1150. package/src/presentation/brief.js +51 -0
  1151. package/src/presentation/queries-cli/exports.js +72 -15
  1152. package/src/presentation/queries-cli/impact.js +55 -39
  1153. package/src/presentation/queries-cli/index.js +9 -1
  1154. package/src/presentation/queries-cli/inspect.js +241 -182
  1155. package/src/presentation/queries-cli/overview.js +57 -58
  1156. package/src/presentation/queries-cli/path.js +36 -29
  1157. package/src/presentation/queries-cli.js +3 -1
  1158. package/src/presentation/result-formatter.js +9 -5
  1159. package/src/presentation/table.js +0 -8
  1160. package/src/shared/file-utils.js +20 -11
  1161. package/src/shared/generators.js +7 -3
  1162. package/src/shared/kinds.js +14 -1
  1163. package/src/shared/paginate.js +10 -2
  1164. package/src/types.ts +1609 -0
@@ -0,0 +1,1322 @@
1
+ /**
2
+ * Core type definitions for codegraph.
3
+ *
4
+ * These interfaces serve as the migration contract — each module is migrated
5
+ * to satisfy its interface. They capture every abstraction in the codebase:
6
+ * symbol/edge kinds, database shapes, repository contracts, extractors,
7
+ * parsers, builders, visitors, features, config, and the graph model.
8
+ */
9
+ /** The original 10 symbol kinds — default query scope. */
10
+ export type CoreSymbolKind = 'function' | 'method' | 'class' | 'interface' | 'type' | 'struct' | 'enum' | 'trait' | 'record' | 'module';
11
+ /** Sub-declaration kinds (Phase 1). Includes 'method' for class child nodes. */
12
+ export type ExtendedSymbolKind = 'parameter' | 'property' | 'constant' | 'method';
13
+ /** All queryable symbol kinds. */
14
+ export type SymbolKind = CoreSymbolKind | ExtendedSymbolKind;
15
+ /** Special kind used for file-level nodes in the graph. */
16
+ export type FileNodeKind = 'file';
17
+ /** Union of every kind that can appear in a node row. */
18
+ export type AnyNodeKind = SymbolKind | FileNodeKind;
19
+ /** Coupling and dependency edge kinds. */
20
+ export type CoreEdgeKind = 'imports' | 'imports-type' | 'dynamic-imports' | 'reexports' | 'calls' | 'extends' | 'implements' | 'contains';
21
+ /** Parent/child and type relationship edges. */
22
+ export type StructuralEdgeKind = 'parameter_of' | 'receiver';
23
+ /** Dataflow-specific edge kinds. */
24
+ export type DataflowEdgeKind = 'flows_to' | 'returns' | 'mutates';
25
+ /** All edge kinds that can appear in the graph. */
26
+ export type EdgeKind = CoreEdgeKind | StructuralEdgeKind;
27
+ /** Extended edge kinds including dataflow. */
28
+ export type AnyEdgeKind = EdgeKind | DataflowEdgeKind;
29
+ /** AST node kinds extracted during analysis. */
30
+ export type ASTNodeKind = 'call' | 'new' | 'string' | 'regex' | 'throw' | 'await';
31
+ /** Coarse role classifications for symbols based on connectivity. */
32
+ export type CoreRole = 'entry' | 'core' | 'utility' | 'adapter' | 'dead' | 'test-only' | 'leaf';
33
+ /** Dead sub-roles — refine the coarse "dead" bucket. */
34
+ export type DeadSubRole = 'dead-leaf' | 'dead-entry' | 'dead-ffi' | 'dead-unresolved';
35
+ /** Every valid role. */
36
+ export type Role = CoreRole | DeadSubRole;
37
+ /** Supported language identifiers (from LANGUAGE_REGISTRY). */
38
+ export type LanguageId = 'javascript' | 'typescript' | 'tsx' | 'python' | 'go' | 'rust' | 'java' | 'csharp' | 'ruby' | 'php' | 'hcl';
39
+ /** Engine mode selector. */
40
+ export type EngineMode = 'native' | 'wasm' | 'auto';
41
+ /** Graph export formats. */
42
+ export type ExportFormat = 'dot' | 'mermaid' | 'json' | 'graphml' | 'graphson' | 'neo4j-csv';
43
+ /** A node row as stored in (and returned from) SQLite. */
44
+ export interface NodeRow {
45
+ id: number;
46
+ name: string;
47
+ kind: AnyNodeKind;
48
+ file: string;
49
+ line: number;
50
+ end_line: number | null;
51
+ parent_id: number | null;
52
+ exported: 0 | 1 | null;
53
+ qualified_name: string | null;
54
+ scope: string | null;
55
+ visibility: 'public' | 'private' | 'protected' | null;
56
+ role: Role | null;
57
+ }
58
+ /** A node row augmented with fan-in count (from findNodesWithFanIn). */
59
+ export interface NodeRowWithFanIn extends NodeRow {
60
+ fan_in: number;
61
+ }
62
+ /** Compact node ID row (from bulkNodeIdsByFile). */
63
+ export interface NodeIdRow {
64
+ id: number;
65
+ name: string;
66
+ kind: string;
67
+ line: number;
68
+ }
69
+ /** A child node row (from findNodeChildren). */
70
+ export interface ChildNodeRow {
71
+ name: string;
72
+ kind: SymbolKind;
73
+ line: number;
74
+ end_line: number | null;
75
+ qualified_name: string | null;
76
+ scope: string | null;
77
+ visibility: 'public' | 'private' | 'protected' | null;
78
+ }
79
+ /** An edge row as stored in SQLite. */
80
+ export interface EdgeRow {
81
+ id: number;
82
+ source_id: number;
83
+ target_id: number;
84
+ kind: EdgeKind;
85
+ confidence: number | null;
86
+ dynamic: 0 | 1;
87
+ }
88
+ /** Callee/caller node shape (from findCallees / findCallers). */
89
+ export interface RelatedNodeRow {
90
+ id: number;
91
+ name: string;
92
+ kind: string;
93
+ file: string;
94
+ line: number;
95
+ end_line?: number | null;
96
+ }
97
+ /** An incoming/outgoing edge with the related node info. */
98
+ export interface AdjacentEdgeRow {
99
+ name: string;
100
+ kind: string;
101
+ file: string;
102
+ line: number;
103
+ edge_kind: EdgeKind;
104
+ }
105
+ /** Import target/source row. */
106
+ export interface ImportEdgeRow {
107
+ file: string;
108
+ edge_kind: EdgeKind;
109
+ }
110
+ /** Intra-file call edge (from findIntraFileCallEdges). */
111
+ export interface IntraFileCallEdge {
112
+ caller_name: string;
113
+ callee_name: string;
114
+ }
115
+ /** Callable node row (for graph-read queries). */
116
+ export interface CallableNodeRow {
117
+ id: number;
118
+ name: string;
119
+ kind: string;
120
+ file: string;
121
+ }
122
+ /** Call edge row (for graph-read queries). */
123
+ export interface CallEdgeRow {
124
+ source_id: number;
125
+ target_id: number;
126
+ confidence: number | null;
127
+ }
128
+ /** File node row (for graph-read queries). */
129
+ export interface FileNodeRow {
130
+ id: number;
131
+ name: string;
132
+ file: string;
133
+ }
134
+ /** Import edge row (for graph-read queries). */
135
+ export interface ImportGraphEdgeRow {
136
+ source_id: number;
137
+ target_id: number;
138
+ }
139
+ /** Complexity metrics (from getComplexityForNode). */
140
+ export interface ComplexityMetrics {
141
+ cognitive: number;
142
+ cyclomatic: number;
143
+ max_nesting: number;
144
+ maintainability_index: number | null;
145
+ halstead_volume: number | null;
146
+ }
147
+ /** Query options common across many repository methods. */
148
+ export interface QueryOpts {
149
+ kind?: SymbolKind;
150
+ kinds?: SymbolKind[];
151
+ file?: string;
152
+ noTests?: boolean;
153
+ }
154
+ /** Options for listFunctionNodes / iterateFunctionNodes. */
155
+ export interface ListFunctionOpts {
156
+ file?: string;
157
+ pattern?: string;
158
+ noTests?: boolean;
159
+ }
160
+ /** Options for findNodesForTriage. */
161
+ export interface TriageQueryOpts {
162
+ kind?: string;
163
+ role?: Role;
164
+ noTests?: boolean;
165
+ file?: string;
166
+ }
167
+ /**
168
+ * Abstract Repository contract — defines all graph data access methods.
169
+ * Concrete implementations: SqliteRepository, InMemoryRepository.
170
+ */
171
+ export interface Repository {
172
+ findNodeById(id: number): NodeRow | undefined;
173
+ findNodesByFile(file: string): NodeRow[];
174
+ findFileNodes(fileLike: string): NodeRow[];
175
+ findNodesWithFanIn(namePattern: string, opts?: QueryOpts): NodeRowWithFanIn[];
176
+ countNodes(): number;
177
+ countEdges(): number;
178
+ countFiles(): number;
179
+ getNodeId(name: string, kind: string, file: string, line: number): number | undefined;
180
+ getFunctionNodeId(name: string, file: string, line: number): number | undefined;
181
+ bulkNodeIdsByFile(file: string): NodeIdRow[];
182
+ findNodeChildren(parentId: number): ChildNodeRow[];
183
+ findNodesByScope(scopeName: string, opts?: QueryOpts): NodeRow[];
184
+ findNodeByQualifiedName(qualifiedName: string, opts?: {
185
+ file?: string;
186
+ }): NodeRow[];
187
+ listFunctionNodes(opts?: ListFunctionOpts): NodeRow[];
188
+ iterateFunctionNodes(opts?: ListFunctionOpts): IterableIterator<NodeRow>;
189
+ findNodesForTriage(opts?: TriageQueryOpts): NodeRow[];
190
+ findCallees(nodeId: number): RelatedNodeRow[];
191
+ findCallers(nodeId: number): RelatedNodeRow[];
192
+ findDistinctCallers(nodeId: number): RelatedNodeRow[];
193
+ findAllOutgoingEdges(nodeId: number): AdjacentEdgeRow[];
194
+ findAllIncomingEdges(nodeId: number): AdjacentEdgeRow[];
195
+ findCalleeNames(nodeId: number): string[];
196
+ findCallerNames(nodeId: number): string[];
197
+ findImportTargets(nodeId: number): ImportEdgeRow[];
198
+ findImportSources(nodeId: number): ImportEdgeRow[];
199
+ findImportDependents(nodeId: number): NodeRow[];
200
+ findCrossFileCallTargets(file: string): Set<number>;
201
+ countCrossFileCallers(nodeId: number, file: string): number;
202
+ getClassHierarchy(classNodeId: number): Set<number>;
203
+ findIntraFileCallEdges(file: string): IntraFileCallEdge[];
204
+ getCallableNodes(): CallableNodeRow[];
205
+ getCallEdges(): CallEdgeRow[];
206
+ getFileNodesAll(): FileNodeRow[];
207
+ getImportEdges(): ImportGraphEdgeRow[];
208
+ hasCfgTables(): boolean;
209
+ hasEmbeddings(): boolean;
210
+ hasDataflowTable(): boolean;
211
+ getComplexityForNode(nodeId: number): ComplexityMetrics | undefined;
212
+ }
213
+ /**
214
+ * In-memory repository — mutable, used for testing and incremental builds.
215
+ * Extends Repository with mutation methods.
216
+ */
217
+ export interface MutableRepository extends Repository {
218
+ addNode(attrs: {
219
+ name: string;
220
+ kind: AnyNodeKind;
221
+ file: string;
222
+ line: number;
223
+ end_line?: number;
224
+ parent_id?: number;
225
+ exported?: 0 | 1;
226
+ qualified_name?: string;
227
+ scope?: string;
228
+ visibility?: 'public' | 'private' | 'protected';
229
+ role?: Role;
230
+ }): number;
231
+ addEdge(attrs: {
232
+ source_id: number;
233
+ target_id: number;
234
+ kind: AnyEdgeKind;
235
+ confidence?: number;
236
+ dynamic?: 0 | 1;
237
+ }): number;
238
+ addComplexity(nodeId: number, metrics: {
239
+ cognitive: number;
240
+ cyclomatic: number;
241
+ max_nesting: number;
242
+ maintainability_index?: number;
243
+ halstead_volume?: number;
244
+ }): void;
245
+ }
246
+ /** A symbol definition produced by any extractor. */
247
+ export interface Definition {
248
+ name: string;
249
+ kind: SymbolKind;
250
+ line: number;
251
+ endLine?: number;
252
+ children?: SubDeclaration[];
253
+ visibility?: 'public' | 'private' | 'protected';
254
+ decorators?: string[];
255
+ /** Populated post-analysis by the complexity visitor. */
256
+ complexity?: DefinitionComplexity;
257
+ /** Populated post-analysis by the CFG visitor. */
258
+ cfg?: {
259
+ blocks: CfgBlock[];
260
+ edges: CfgEdge[];
261
+ } | null;
262
+ }
263
+ /** Sub-declaration (child) within a definition. */
264
+ export interface SubDeclaration {
265
+ name: string;
266
+ kind: 'parameter' | 'property' | 'constant' | 'method';
267
+ line: number;
268
+ endLine?: number;
269
+ visibility?: 'public' | 'private' | 'protected';
270
+ }
271
+ /** Complexity metrics attached to a definition post-analysis. */
272
+ export interface DefinitionComplexity {
273
+ cognitive: number;
274
+ cyclomatic: number;
275
+ maxNesting: number;
276
+ halstead?: HalsteadMetrics;
277
+ loc?: LOCMetrics;
278
+ maintainabilityIndex?: number;
279
+ }
280
+ /** Halstead software science metrics. */
281
+ export interface HalsteadMetrics {
282
+ volume: number;
283
+ difficulty: number;
284
+ effort: number;
285
+ bugs: number;
286
+ }
287
+ /** Lines-of-code metrics. */
288
+ export interface LOCMetrics {
289
+ loc: number;
290
+ sloc: number;
291
+ commentLines: number;
292
+ }
293
+ /** A function/method call detected by an extractor. */
294
+ export interface Call {
295
+ name: string;
296
+ line: number;
297
+ receiver?: string;
298
+ dynamic?: boolean;
299
+ }
300
+ /** An import statement detected by an extractor. */
301
+ export interface Import {
302
+ source: string;
303
+ names: string[];
304
+ line: number;
305
+ typeOnly?: boolean;
306
+ reexport?: boolean;
307
+ wildcardReexport?: boolean;
308
+ dynamicImport?: boolean;
309
+ pythonImport?: boolean;
310
+ goImport?: boolean;
311
+ rustUse?: boolean;
312
+ javaImport?: boolean;
313
+ csharpUsing?: boolean;
314
+ rubyRequire?: boolean;
315
+ phpUse?: boolean;
316
+ }
317
+ /** A class/struct/trait relationship (extends or implements). */
318
+ export interface ClassRelation {
319
+ name: string;
320
+ extends?: string;
321
+ implements?: string;
322
+ line: number;
323
+ }
324
+ /** A named export from a module. */
325
+ export interface Export {
326
+ name: string;
327
+ kind: SymbolKind;
328
+ line: number;
329
+ }
330
+ /** A type-map entry for call resolution confidence scoring. */
331
+ export interface TypeMapEntry {
332
+ type: string;
333
+ confidence: number;
334
+ }
335
+ /** The normalized output shape returned by every language extractor. */
336
+ export interface ExtractorOutput {
337
+ definitions: Definition[];
338
+ calls: Call[];
339
+ imports: Import[];
340
+ classes: ClassRelation[];
341
+ exports: Export[];
342
+ typeMap: Map<string, TypeMapEntry>;
343
+ /** WASM tree retained for downstream analysis (complexity, CFG, dataflow). */
344
+ _tree?: TreeSitterTree;
345
+ /** Language identifier. */
346
+ _langId?: LanguageId;
347
+ /** Line count for metrics. */
348
+ _lineCount?: number;
349
+ /** Dataflow results, populated post-analysis. */
350
+ dataflow?: DataflowResult;
351
+ /** AST node rows, populated post-analysis. */
352
+ astNodes?: ASTNodeRow[];
353
+ }
354
+ /** Extractor function signature. */
355
+ export type ExtractorFn = (tree: TreeSitterTree, filePath: string, query?: TreeSitterQuery) => ExtractorOutput;
356
+ /** A single entry in the LANGUAGE_REGISTRY. */
357
+ export interface LanguageRegistryEntry {
358
+ id: LanguageId;
359
+ extensions: string[];
360
+ grammarFile: string;
361
+ extractor: ExtractorFn;
362
+ required: boolean;
363
+ }
364
+ /** tree-sitter opaque types (thin wrappers — real impl is WASM). */
365
+ export interface TreeSitterNode {
366
+ type: string;
367
+ text: string;
368
+ startPosition: {
369
+ row: number;
370
+ column: number;
371
+ };
372
+ endPosition: {
373
+ row: number;
374
+ column: number;
375
+ };
376
+ childCount: number;
377
+ namedChildCount: number;
378
+ child(index: number): TreeSitterNode | null;
379
+ namedChild(index: number): TreeSitterNode | null;
380
+ childForFieldName(name: string): TreeSitterNode | null;
381
+ parent: TreeSitterNode | null;
382
+ children: TreeSitterNode[];
383
+ namedChildren: TreeSitterNode[];
384
+ }
385
+ export interface TreeSitterTree {
386
+ rootNode: TreeSitterNode;
387
+ }
388
+ export interface TreeSitterQuery {
389
+ matches(node: TreeSitterNode): TreeSitterQueryMatch[];
390
+ captures(node: TreeSitterNode): TreeSitterQueryCapture[];
391
+ }
392
+ export interface TreeSitterQueryMatch {
393
+ pattern: number;
394
+ captures: TreeSitterQueryCapture[];
395
+ }
396
+ export interface TreeSitterQueryCapture {
397
+ name: string;
398
+ node: TreeSitterNode;
399
+ }
400
+ /** A single import to resolve. */
401
+ export interface ImportBatchItem {
402
+ fromFile: string;
403
+ importSource: string;
404
+ }
405
+ /** Batch of imports to resolve. */
406
+ export type ImportBatch = ImportBatchItem[];
407
+ /** Result of resolveImportsBatch: Map<"fromFile|importSource", resolvedPath>. */
408
+ export type BatchResolvedMap = Map<string, string>;
409
+ /** Path aliases from tsconfig/jsconfig. */
410
+ export interface PathAliases {
411
+ baseUrl: string | null;
412
+ paths: Record<string, string[]>;
413
+ }
414
+ /** Parsed bare specifier. */
415
+ export interface BareSpecifier {
416
+ packageName: string;
417
+ subpath: string;
418
+ }
419
+ /** Shared context mutated during the DFS walk. */
420
+ export interface VisitorContext {
421
+ nestingLevel: number;
422
+ currentFunction: TreeSitterNode | null;
423
+ langId: string;
424
+ scopeStack: ScopeEntry[];
425
+ }
426
+ /** An entry on the scope stack. */
427
+ export interface ScopeEntry {
428
+ funcName: string | null;
429
+ funcNode: TreeSitterNode;
430
+ params: Map<string, unknown>;
431
+ locals: Map<string, unknown>;
432
+ }
433
+ /** Return value from enterNode — request skip of descendants. */
434
+ export interface EnterNodeResult {
435
+ skipChildren?: boolean;
436
+ }
437
+ /** A pluggable analysis visitor for the unified DFS walker. */
438
+ export interface Visitor {
439
+ name: string;
440
+ init?(langId: string): void;
441
+ enterNode?(node: TreeSitterNode, context: VisitorContext): EnterNodeResult | undefined;
442
+ exitNode?(node: TreeSitterNode, context: VisitorContext): void;
443
+ enterFunction?(funcNode: TreeSitterNode, funcName: string | null, context: VisitorContext): void;
444
+ exitFunction?(funcNode: TreeSitterNode, funcName: string | null, context: VisitorContext): void;
445
+ finish?(): unknown;
446
+ functionNodeTypes?: Set<string>;
447
+ }
448
+ /** Options for walkWithVisitors. */
449
+ export interface WalkOptions {
450
+ functionNodeTypes?: Set<string>;
451
+ nestingNodeTypes?: Set<string>;
452
+ getFunctionName?: (node: TreeSitterNode) => string | null;
453
+ }
454
+ /** Result of walkWithVisitors: Map of visitor.name → finish() result. */
455
+ export type WalkResults = Record<string, unknown>;
456
+ /** Toggles for runAnalyses. */
457
+ export interface AnalysisOpts {
458
+ ast?: boolean;
459
+ complexity?: boolean;
460
+ cfg?: boolean;
461
+ dataflow?: boolean;
462
+ }
463
+ /** Timing output from runAnalyses. */
464
+ export interface AnalysisTiming {
465
+ astMs: number;
466
+ complexityMs: number;
467
+ cfgMs: number;
468
+ dataflowMs: number;
469
+ _unifiedWalkMs?: number;
470
+ }
471
+ /** An AST node row stored in the database. */
472
+ export interface ASTNodeRow {
473
+ node_id: number;
474
+ kind: ASTNodeKind;
475
+ line: number;
476
+ text: string;
477
+ }
478
+ /** AST type mapping: tree-sitter node type → analysis kind. */
479
+ export type ASTTypeMap = Map<string, ASTNodeKind>;
480
+ /** Complexity rules for a language. */
481
+ export interface ComplexityRules {
482
+ branchNodes: Set<string>;
483
+ nestingNodes: Set<string>;
484
+ functionNodes: Set<string>;
485
+ }
486
+ /** Halstead rules for a language. */
487
+ export interface HalsteadRules {
488
+ operators: Set<string>;
489
+ operands: Set<string>;
490
+ }
491
+ /** CFG rules for a language. */
492
+ export interface CfgRules {
493
+ controlFlowNodes: Set<string>;
494
+ functionNodes: Set<string>;
495
+ }
496
+ /** Dataflow rules for a language. */
497
+ export interface DataflowRules {
498
+ variableDeclarators: Set<string>;
499
+ parameterNodes: Set<string>;
500
+ callNodes: Set<string>;
501
+ memberNodes: Set<string>;
502
+ returnNodes: Set<string>;
503
+ awaitNodes: Set<string>;
504
+ }
505
+ /** A basic block in a control flow graph. */
506
+ export interface CfgBlock {
507
+ id: number;
508
+ label: string;
509
+ startLine: number;
510
+ endLine: number;
511
+ }
512
+ /** An edge in a control flow graph. */
513
+ export interface CfgEdge {
514
+ from: number;
515
+ to: number;
516
+ label?: string;
517
+ }
518
+ /** Dataflow extraction result. */
519
+ export interface DataflowResult {
520
+ parameters: DataflowParam[];
521
+ returns: DataflowReturn[];
522
+ assignments: DataflowAssignment[];
523
+ argFlows: DataflowArgFlow[];
524
+ mutations: DataflowMutation[];
525
+ }
526
+ export interface DataflowParam {
527
+ name: string;
528
+ funcName: string;
529
+ line: number;
530
+ typeHint?: string;
531
+ }
532
+ export interface DataflowReturn {
533
+ funcName: string;
534
+ line: number;
535
+ expression: string;
536
+ }
537
+ export interface DataflowAssignment {
538
+ name: string;
539
+ line: number;
540
+ expression: string;
541
+ }
542
+ export interface DataflowArgFlow {
543
+ callerFunc: string;
544
+ callee: string;
545
+ argIndex: number;
546
+ binding: {
547
+ name: string;
548
+ type: 'param' | 'local' | 'unknown';
549
+ };
550
+ line: number;
551
+ }
552
+ export interface DataflowMutation {
553
+ binding: {
554
+ name: string;
555
+ type: 'param' | 'local' | 'unknown';
556
+ };
557
+ mutatingExpr: string;
558
+ line: number;
559
+ }
560
+ /** Node attributes stored in the in-memory graph. */
561
+ export interface GraphNodeAttrs {
562
+ label?: string;
563
+ kind?: string;
564
+ file?: string;
565
+ name?: string;
566
+ line?: number;
567
+ dbId?: number;
568
+ [key: string]: unknown;
569
+ }
570
+ /** Edge attributes stored in the in-memory graph. */
571
+ export interface GraphEdgeAttrs {
572
+ kind?: string;
573
+ confidence?: number;
574
+ weight?: number;
575
+ [key: string]: unknown;
576
+ }
577
+ /** The unified in-memory graph model. */
578
+ export interface CodeGraph {
579
+ readonly directed: boolean;
580
+ readonly nodeCount: number;
581
+ readonly edgeCount: number;
582
+ addNode(id: string, attrs?: GraphNodeAttrs): CodeGraph;
583
+ hasNode(id: string): boolean;
584
+ getNodeAttrs(id: string): GraphNodeAttrs | undefined;
585
+ nodes(): IterableIterator<[string, GraphNodeAttrs]>;
586
+ nodeIds(): string[];
587
+ addEdge(source: string, target: string, attrs?: GraphEdgeAttrs): CodeGraph;
588
+ hasEdge(source: string, target: string): boolean;
589
+ getEdgeAttrs(source: string, target: string): GraphEdgeAttrs | undefined;
590
+ edges(): Generator<[string, string, GraphEdgeAttrs]>;
591
+ successors(id: string): string[];
592
+ predecessors(id: string): string[];
593
+ neighbors(id: string): string[];
594
+ outDegree(id: string): number;
595
+ inDegree(id: string): number;
596
+ subgraph(predicate: (id: string, attrs: GraphNodeAttrs) => boolean): CodeGraph;
597
+ filterEdges(predicate: (src: string, tgt: string, attrs: GraphEdgeAttrs) => boolean): CodeGraph;
598
+ toEdgeArray(): Array<{
599
+ source: string;
600
+ target: string;
601
+ }>;
602
+ toGraphology(opts?: {
603
+ type?: string;
604
+ }): unknown;
605
+ clone(): CodeGraph;
606
+ merge(other: CodeGraph): CodeGraph;
607
+ }
608
+ /** Engine options for the build pipeline. */
609
+ export interface EngineOpts {
610
+ engine: EngineMode;
611
+ dataflow: boolean;
612
+ ast: boolean;
613
+ }
614
+ /** A file change detected during incremental builds. */
615
+ export interface ParseChange {
616
+ file: string;
617
+ relPath?: string;
618
+ content?: string;
619
+ hash?: string;
620
+ stat?: {
621
+ mtime: number;
622
+ size: number;
623
+ };
624
+ _reverseDepOnly?: boolean;
625
+ }
626
+ /** Metadata-only self-heal update. */
627
+ export interface MetadataUpdate {
628
+ relPath: string;
629
+ hash: string;
630
+ stat: {
631
+ mtime: number;
632
+ size: number;
633
+ };
634
+ }
635
+ /** A file queued for parsing. */
636
+ export interface FileToParse {
637
+ file: string;
638
+ relPath?: string;
639
+ }
640
+ /** Shared mutable state threaded through all build stages. */
641
+ export interface PipelineContext {
642
+ rootDir: string;
643
+ db: unknown;
644
+ dbPath: string;
645
+ config: CodegraphConfig;
646
+ opts: BuildGraphOpts;
647
+ engineOpts: EngineOpts;
648
+ engineName: 'native' | 'wasm';
649
+ engineVersion: string | null;
650
+ aliases: PathAliases;
651
+ incremental: boolean;
652
+ forceFullRebuild: boolean;
653
+ schemaVersion: number;
654
+ allFiles: string[];
655
+ discoveredDirs: Set<string>;
656
+ isFullBuild: boolean;
657
+ parseChanges: ParseChange[];
658
+ metadataUpdates: MetadataUpdate[];
659
+ removed: string[];
660
+ earlyExit: boolean;
661
+ allSymbols: Map<string, ExtractorOutput>;
662
+ fileSymbols: Map<string, ExtractorOutput>;
663
+ filesToParse: FileToParse[];
664
+ batchResolved: BatchResolvedMap | null;
665
+ reexportMap: Map<string, unknown[]>;
666
+ barrelOnlyFiles: Set<string>;
667
+ nodesByName: Map<string, NodeRow[]>;
668
+ nodesByNameAndFile: Map<string, NodeRow[]>;
669
+ hasEmbeddings: boolean;
670
+ lineCountMap: Map<string, number>;
671
+ timing: Record<string, number>;
672
+ buildStart: number;
673
+ }
674
+ /** Options for buildGraph. */
675
+ export interface BuildGraphOpts {
676
+ incremental?: boolean;
677
+ engine?: EngineMode;
678
+ dataflow?: boolean;
679
+ ast?: boolean;
680
+ }
681
+ /** Build timing result from buildGraph. */
682
+ export interface BuildResult {
683
+ phases: {
684
+ setupMs: number;
685
+ parseMs: number;
686
+ insertMs: number;
687
+ resolveMs: number;
688
+ edgesMs: number;
689
+ structureMs: number;
690
+ rolesMs: number;
691
+ astMs: number;
692
+ complexityMs: number;
693
+ cfgMs: number;
694
+ dataflowMs: number;
695
+ finalizeMs: number;
696
+ };
697
+ }
698
+ /** A pipeline stage function. */
699
+ export type PipelineStage = (ctx: PipelineContext) => Promise<void>;
700
+ export interface CodegraphConfig {
701
+ include: string[];
702
+ exclude: string[];
703
+ ignoreDirs: string[];
704
+ extensions: string[];
705
+ aliases: Record<string, unknown>;
706
+ build: {
707
+ incremental: boolean;
708
+ dbPath: string;
709
+ driftThreshold: number;
710
+ };
711
+ query: {
712
+ defaultDepth: number;
713
+ defaultLimit: number;
714
+ excludeTests: boolean;
715
+ };
716
+ embeddings: {
717
+ model: string;
718
+ llmProvider: string | null;
719
+ };
720
+ llm: {
721
+ provider: string | null;
722
+ model: string | null;
723
+ baseUrl: string | null;
724
+ apiKey: string | null;
725
+ apiKeyCommand: string | null;
726
+ };
727
+ search: {
728
+ defaultMinScore: number;
729
+ rrfK: number;
730
+ topK: number;
731
+ similarityWarnThreshold: number;
732
+ };
733
+ ci: {
734
+ failOnCycles: boolean;
735
+ impactThreshold: number | null;
736
+ };
737
+ manifesto: {
738
+ rules: ManifestoRules;
739
+ boundaries: unknown | null;
740
+ };
741
+ check: {
742
+ cycles: boolean;
743
+ blastRadius: number | null;
744
+ signatures: boolean;
745
+ boundaries: boolean;
746
+ depth: number;
747
+ };
748
+ coChange: {
749
+ since: string;
750
+ minSupport: number;
751
+ minJaccard: number;
752
+ maxFilesPerCommit: number;
753
+ };
754
+ analysis: {
755
+ impactDepth: number;
756
+ fnImpactDepth: number;
757
+ auditDepth: number;
758
+ sequenceDepth: number;
759
+ falsePositiveCallers: number;
760
+ briefCallerDepth: number;
761
+ briefImporterDepth: number;
762
+ briefHighRiskCallers: number;
763
+ briefMediumRiskCallers: number;
764
+ };
765
+ community: {
766
+ resolution: number;
767
+ };
768
+ structure: {
769
+ cohesionThreshold: number;
770
+ };
771
+ risk: {
772
+ weights: RiskWeights;
773
+ roleWeights: Record<Role, number>;
774
+ defaultRoleWeight: number;
775
+ };
776
+ display: {
777
+ maxColWidth: number;
778
+ excerptLines: number;
779
+ summaryMaxChars: number;
780
+ jsdocEndScanLines: number;
781
+ jsdocOpenScanLines: number;
782
+ signatureGatherLines: number;
783
+ };
784
+ mcp: {
785
+ defaults: McpDefaults;
786
+ };
787
+ }
788
+ export interface ManifestoRules {
789
+ cognitive: ThresholdRule;
790
+ cyclomatic: ThresholdRule;
791
+ maxNesting: ThresholdRule;
792
+ maintainabilityIndex: ThresholdRule;
793
+ importCount: ThresholdRule;
794
+ exportCount: ThresholdRule;
795
+ lineCount: ThresholdRule;
796
+ fanIn: ThresholdRule;
797
+ fanOut: ThresholdRule;
798
+ noCycles: ThresholdRule;
799
+ boundaries: ThresholdRule;
800
+ }
801
+ export interface ThresholdRule {
802
+ warn: number | null;
803
+ fail?: number | null;
804
+ }
805
+ export interface RiskWeights {
806
+ fanIn: number;
807
+ complexity: number;
808
+ churn: number;
809
+ role: number;
810
+ mi: number;
811
+ }
812
+ export interface McpDefaults {
813
+ list_functions: number;
814
+ query: number;
815
+ where: number;
816
+ node_roles: number;
817
+ export_graph: number;
818
+ fn_impact: number;
819
+ context: number;
820
+ explain: number;
821
+ file_deps: number;
822
+ file_exports: number;
823
+ diff_impact: number;
824
+ impact_analysis: number;
825
+ semantic_search: number;
826
+ execution_flow: number;
827
+ hotspots: number;
828
+ co_changes: number;
829
+ complexity: number;
830
+ manifesto: number;
831
+ communities: number;
832
+ structure: number;
833
+ triage: number;
834
+ ast_query: number;
835
+ }
836
+ export interface PaginationOpts {
837
+ limit?: number;
838
+ offset?: number;
839
+ }
840
+ export interface PaginationMeta {
841
+ total: number;
842
+ offset: number;
843
+ limit: number;
844
+ hasMore: boolean;
845
+ returned: number;
846
+ }
847
+ export interface PaginatedItems<T> {
848
+ items: T[];
849
+ pagination?: PaginationMeta;
850
+ }
851
+ /** A result object with optional _pagination metadata. */
852
+ export type Paginated<T> = T & {
853
+ _pagination?: PaginationMeta;
854
+ };
855
+ export type ErrorCode = 'CODEGRAPH_ERROR' | 'PARSE_FAILED' | 'DB_ERROR' | 'CONFIG_INVALID' | 'RESOLUTION_FAILED' | 'ENGINE_UNAVAILABLE' | 'ANALYSIS_FAILED' | 'BOUNDARY_VIOLATION';
856
+ export interface CodegraphErrorOpts {
857
+ code?: ErrorCode;
858
+ file?: string;
859
+ cause?: Error;
860
+ }
861
+ export interface AuditResult {
862
+ target: string;
863
+ kind: 'function' | 'file';
864
+ functions: AuditFunctionEntry[];
865
+ }
866
+ export interface AuditFunctionEntry {
867
+ name: string;
868
+ kind: SymbolKind;
869
+ file: string;
870
+ line: number;
871
+ endLine: number | null;
872
+ role: Role | null;
873
+ lineCount: number;
874
+ summary: string | null;
875
+ signature: string | null;
876
+ callees: string[];
877
+ callers: string[];
878
+ relatedTests: string[];
879
+ impact: {
880
+ totalDependents: number;
881
+ levels: Record<number, ImpactLevelEntry[]>;
882
+ };
883
+ health: {
884
+ cognitive: number;
885
+ cyclomatic: number;
886
+ maxNesting: number;
887
+ maintainabilityIndex: number | null;
888
+ halstead: HalsteadMetrics | null;
889
+ loc: number;
890
+ sloc: number;
891
+ commentLines: number;
892
+ thresholdBreaches: string[];
893
+ };
894
+ riskScore: number;
895
+ complexityNotes: string[];
896
+ sideEffects: string[];
897
+ }
898
+ export interface ImpactLevelEntry {
899
+ name: string;
900
+ kind: string;
901
+ file: string;
902
+ line: number;
903
+ viaImplements?: boolean;
904
+ }
905
+ export interface ComplexityResult {
906
+ functions: ComplexityEntry[];
907
+ summary: {
908
+ analyzed: number;
909
+ avgCognitive: number;
910
+ maxCognitive: number;
911
+ avgCyclomatic: number;
912
+ maxCyclomatic: number;
913
+ avgMI: number;
914
+ minMI: number;
915
+ aboveWarn: number;
916
+ };
917
+ thresholds: ManifestoRules;
918
+ hasGraph: boolean;
919
+ }
920
+ export interface ComplexityEntry {
921
+ name: string;
922
+ kind: SymbolKind;
923
+ file: string;
924
+ line: number;
925
+ endLine: number | null;
926
+ cognitive: number;
927
+ cyclomatic: number;
928
+ maxNesting: number;
929
+ loc: number;
930
+ sloc: number;
931
+ maintainabilityIndex: number;
932
+ halstead: HalsteadMetrics;
933
+ exceeds?: Array<'cognitive' | 'cyclomatic' | 'maxNesting' | 'maintainabilityIndex'>;
934
+ }
935
+ export interface DiffImpactResult {
936
+ error?: string;
937
+ changedFiles: number;
938
+ newFiles: string[];
939
+ affectedFunctions: AffectedFunction[];
940
+ affectedFiles: string[];
941
+ historicallyCoupled?: CoChangeEntry[];
942
+ ownership?: Record<string, string>;
943
+ boundaryViolations?: BoundaryViolation[];
944
+ boundaryViolationCount: number;
945
+ summary?: DiffImpactSummary;
946
+ }
947
+ export interface AffectedFunction {
948
+ name: string;
949
+ kind: string;
950
+ file: string;
951
+ line: number;
952
+ totalDependents: number;
953
+ levels: Record<number, ImpactLevelEntry[]>;
954
+ }
955
+ export interface CoChangeEntry {
956
+ file: string;
957
+ support: number;
958
+ jaccard: number;
959
+ }
960
+ export interface BoundaryViolation {
961
+ from: string;
962
+ to: string;
963
+ rule: string;
964
+ }
965
+ export interface DiffImpactSummary {
966
+ changedFiles: number;
967
+ newFiles: number;
968
+ affectedFunctions: number;
969
+ totalDependents: number;
970
+ boundaryViolations: number;
971
+ }
972
+ export interface TriageResult {
973
+ items: TriageEntry[];
974
+ summary: {
975
+ total: number;
976
+ analyzed: number;
977
+ avgScore: number;
978
+ maxScore: number;
979
+ weights: RiskWeights;
980
+ signalCoverage: {
981
+ complexity: number;
982
+ churn: number;
983
+ fanIn: number;
984
+ mi: number;
985
+ };
986
+ };
987
+ _pagination?: PaginationMeta;
988
+ }
989
+ export interface TriageEntry {
990
+ name: string;
991
+ kind: SymbolKind;
992
+ file: string;
993
+ line: number;
994
+ role: Role | null;
995
+ fanIn: number;
996
+ cognitive: number;
997
+ churn: number;
998
+ maintainabilityIndex: number;
999
+ normFanIn: number;
1000
+ normComplexity: number;
1001
+ normChurn: number;
1002
+ normMI: number;
1003
+ roleWeight: number;
1004
+ riskScore: number;
1005
+ }
1006
+ export interface CommunitiesResult {
1007
+ communities: CommunityEntry[];
1008
+ modularity: number;
1009
+ drift: {
1010
+ splitCandidates: Array<{
1011
+ directory: string;
1012
+ communityCount: number;
1013
+ }>;
1014
+ mergeCandidates: Array<{
1015
+ communityId: number;
1016
+ size: number;
1017
+ directoryCount: number;
1018
+ directories: string[];
1019
+ }>;
1020
+ };
1021
+ summary: {
1022
+ communityCount: number;
1023
+ modularity: number;
1024
+ nodeCount: number;
1025
+ driftScore: number;
1026
+ };
1027
+ _pagination?: PaginationMeta;
1028
+ }
1029
+ export interface CommunityEntry {
1030
+ id: number;
1031
+ size: number;
1032
+ directories: Record<string, number>;
1033
+ members?: Array<{
1034
+ name: string;
1035
+ file: string;
1036
+ kind?: string;
1037
+ }>;
1038
+ }
1039
+ export interface CheckResult {
1040
+ predicates: CheckPredicate[];
1041
+ summary: {
1042
+ total: number;
1043
+ passed: number;
1044
+ failed: number;
1045
+ changedFiles: number;
1046
+ newFiles: number;
1047
+ };
1048
+ passed: boolean;
1049
+ error?: string;
1050
+ }
1051
+ export interface CheckPredicate {
1052
+ name: string;
1053
+ passed: boolean;
1054
+ violations: unknown[];
1055
+ maxFound?: number;
1056
+ threshold?: number;
1057
+ note?: string;
1058
+ }
1059
+ export type BatchCommand = 'fn-impact' | 'context' | 'explain' | 'where' | 'query' | 'impact' | 'deps' | 'exports' | 'flow' | 'dataflow' | 'complexity';
1060
+ export interface BatchResult {
1061
+ command: BatchCommand;
1062
+ total: number;
1063
+ succeeded: number;
1064
+ failed: number;
1065
+ results: BatchResultEntry[];
1066
+ }
1067
+ export interface BatchResultEntry {
1068
+ target: string;
1069
+ ok: boolean;
1070
+ data?: unknown;
1071
+ error?: string;
1072
+ }
1073
+ export interface MultiBatchItem {
1074
+ command: BatchCommand;
1075
+ target: string;
1076
+ opts?: Record<string, unknown>;
1077
+ }
1078
+ export interface MultiBatchResult {
1079
+ mode: 'multi';
1080
+ total: number;
1081
+ succeeded: number;
1082
+ failed: number;
1083
+ results: BatchResultEntry[];
1084
+ }
1085
+ export interface FlowResult {
1086
+ entry: FlowEntry | null;
1087
+ depth: number;
1088
+ steps: Array<{
1089
+ depth: number;
1090
+ nodes: Array<{
1091
+ name: string;
1092
+ kind: string;
1093
+ file: string;
1094
+ line: number;
1095
+ }>;
1096
+ }>;
1097
+ leaves: Array<{
1098
+ name: string;
1099
+ kind: string;
1100
+ file: string;
1101
+ line: number;
1102
+ depth: number;
1103
+ }>;
1104
+ cycles: Array<{
1105
+ from: string;
1106
+ to: string;
1107
+ depth: number;
1108
+ }>;
1109
+ totalReached: number;
1110
+ truncated: boolean;
1111
+ _pagination?: PaginationMeta;
1112
+ }
1113
+ export interface FlowEntry {
1114
+ name: string;
1115
+ kind: string;
1116
+ file: string;
1117
+ line: number;
1118
+ type: string;
1119
+ role: Role | null;
1120
+ }
1121
+ export type ManifestoRuleLevel = 'function' | 'file' | 'graph';
1122
+ export interface ManifestoRuleDef {
1123
+ name: string;
1124
+ level: ManifestoRuleLevel;
1125
+ metric: string;
1126
+ defaults: ThresholdRule;
1127
+ reportOnly?: boolean;
1128
+ }
1129
+ export interface ManifestoResult {
1130
+ rules: ManifestoRuleStatus[];
1131
+ violations: ManifestoViolation[];
1132
+ summary: {
1133
+ total: number;
1134
+ passed: number;
1135
+ warned: number;
1136
+ failed: number;
1137
+ };
1138
+ _pagination?: PaginationMeta;
1139
+ }
1140
+ export interface ManifestoRuleStatus {
1141
+ name: string;
1142
+ level: ManifestoRuleLevel;
1143
+ status: 'pass' | 'warn' | 'fail';
1144
+ thresholds: ThresholdRule;
1145
+ violationCount: number;
1146
+ }
1147
+ export interface ManifestoViolation {
1148
+ rule: string;
1149
+ level: ManifestoRuleLevel;
1150
+ value: number;
1151
+ threshold: number;
1152
+ name?: string;
1153
+ kind?: string;
1154
+ file?: string;
1155
+ line?: number;
1156
+ }
1157
+ export interface FileExportsResult {
1158
+ file: string;
1159
+ results: FileExportEntry[];
1160
+ reexports: Array<{
1161
+ file: string;
1162
+ }>;
1163
+ totalExported: number;
1164
+ totalInternal: number;
1165
+ totalUnused: number;
1166
+ }
1167
+ export interface FileExportEntry {
1168
+ name: string;
1169
+ kind: SymbolKind;
1170
+ line: number;
1171
+ endLine: number | null;
1172
+ role: Role | null;
1173
+ signature: string | null;
1174
+ summary: string | null;
1175
+ consumers: Array<{
1176
+ name: string;
1177
+ file: string;
1178
+ line: number;
1179
+ }>;
1180
+ consumerCount: number;
1181
+ }
1182
+ export interface PathResult {
1183
+ from: string;
1184
+ to: string;
1185
+ fromCandidates: NodeRow[];
1186
+ toCandidates: NodeRow[];
1187
+ found: boolean;
1188
+ hops: number | null;
1189
+ path: PathStep[];
1190
+ alternateCount: number;
1191
+ edgeKinds: string[];
1192
+ reverse: boolean;
1193
+ maxDepth: number;
1194
+ }
1195
+ export interface PathStep {
1196
+ name: string;
1197
+ kind: string;
1198
+ file: string;
1199
+ line: number;
1200
+ edgeKind: AnyEdgeKind | null;
1201
+ }
1202
+ export interface StatsResult {
1203
+ nodes: {
1204
+ total: number;
1205
+ byKind: Record<string, number>;
1206
+ };
1207
+ edges: {
1208
+ total: number;
1209
+ byKind: Record<string, number>;
1210
+ };
1211
+ files: Record<string, unknown>;
1212
+ cycles: {
1213
+ fileLevel: number;
1214
+ functionLevel: number;
1215
+ };
1216
+ hotspots: unknown[];
1217
+ embeddings?: unknown;
1218
+ quality?: unknown;
1219
+ roles: Record<Role, number>;
1220
+ complexity?: unknown;
1221
+ }
1222
+ export interface ModuleMapResult {
1223
+ limit: number;
1224
+ topNodes: ModuleMapEntry[];
1225
+ stats: {
1226
+ totalFiles: number;
1227
+ totalNodes: number;
1228
+ totalEdges: number;
1229
+ };
1230
+ }
1231
+ export interface ModuleMapEntry {
1232
+ file: string;
1233
+ dir: string;
1234
+ inEdges: number;
1235
+ outEdges: number;
1236
+ coupling: number;
1237
+ }
1238
+ export interface RolesResult {
1239
+ count: number;
1240
+ summary: Record<Role, number>;
1241
+ symbols: NodeRow[];
1242
+ }
1243
+ export interface RegistryEntry {
1244
+ path: string;
1245
+ dbPath: string;
1246
+ addedAt: string;
1247
+ lastAccessedAt: string;
1248
+ }
1249
+ export interface Registry {
1250
+ repos: Record<string, RegistryEntry>;
1251
+ }
1252
+ export interface RegistryListItem {
1253
+ name: string;
1254
+ path: string;
1255
+ dbPath: string;
1256
+ addedAt: string;
1257
+ lastAccessedAt: string;
1258
+ }
1259
+ export interface MCPServerOptions {
1260
+ multiRepo?: boolean;
1261
+ allowedRepos?: string[];
1262
+ }
1263
+ export interface OptionDef {
1264
+ flags: string;
1265
+ description: string;
1266
+ default?: unknown;
1267
+ }
1268
+ export interface Command {
1269
+ name: string;
1270
+ description: string;
1271
+ options: OptionDef[];
1272
+ validate?(args: unknown, opts: unknown): void;
1273
+ execute(args: unknown, opts: unknown): Promise<void>;
1274
+ }
1275
+ export interface RiskInput {
1276
+ fan_in: number;
1277
+ cognitive: number;
1278
+ churn: number;
1279
+ mi: number;
1280
+ role?: Role;
1281
+ }
1282
+ export interface RiskScored {
1283
+ normFanIn: number;
1284
+ normComplexity: number;
1285
+ normChurn: number;
1286
+ normMI: number;
1287
+ roleWeight: number;
1288
+ riskScore: number;
1289
+ }
1290
+ export interface SequenceStep {
1291
+ caller: string;
1292
+ callee: string;
1293
+ depth: number;
1294
+ }
1295
+ export interface SequenceResult {
1296
+ entry: string;
1297
+ steps: SequenceStep[];
1298
+ participants: string[];
1299
+ }
1300
+ export interface ExportOpts {
1301
+ fileLevel?: boolean;
1302
+ noTests?: boolean;
1303
+ minConfidence?: number;
1304
+ limit?: number;
1305
+ offset?: number;
1306
+ direction?: string;
1307
+ }
1308
+ export interface ExportJSONResult {
1309
+ nodes: NodeRow[];
1310
+ edges: EdgeRow[];
1311
+ _pagination?: PaginationMeta;
1312
+ }
1313
+ export interface ExportGraphSONResult {
1314
+ vertices: unknown[];
1315
+ edges: unknown[];
1316
+ _pagination?: PaginationMeta;
1317
+ }
1318
+ export interface ExportNeo4jCSVResult {
1319
+ nodes: string;
1320
+ relationships: string;
1321
+ }
1322
+ //# sourceMappingURL=types.d.ts.map