@vizalice/codegraph 1.5.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 (821) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +872 -0
  3. package/dist/bin/codegraph.d.ts +26 -0
  4. package/dist/bin/codegraph.d.ts.map +1 -0
  5. package/dist/bin/codegraph.js +2324 -0
  6. package/dist/bin/codegraph.js.map +1 -0
  7. package/dist/bin/command-supervision.d.ts +49 -0
  8. package/dist/bin/command-supervision.d.ts.map +1 -0
  9. package/dist/bin/command-supervision.js +95 -0
  10. package/dist/bin/command-supervision.js.map +1 -0
  11. package/dist/bin/fatal-handler.d.ts +20 -0
  12. package/dist/bin/fatal-handler.d.ts.map +1 -0
  13. package/dist/bin/fatal-handler.js +118 -0
  14. package/dist/bin/fatal-handler.js.map +1 -0
  15. package/dist/bin/node-version-check.d.ts +37 -0
  16. package/dist/bin/node-version-check.d.ts.map +1 -0
  17. package/dist/bin/node-version-check.js +79 -0
  18. package/dist/bin/node-version-check.js.map +1 -0
  19. package/dist/bin/uninstall.d.ts +14 -0
  20. package/dist/bin/uninstall.d.ts.map +1 -0
  21. package/dist/bin/uninstall.js +36 -0
  22. package/dist/bin/uninstall.js.map +1 -0
  23. package/dist/context/formatter.d.ts +36 -0
  24. package/dist/context/formatter.d.ts.map +1 -0
  25. package/dist/context/formatter.js +269 -0
  26. package/dist/context/formatter.js.map +1 -0
  27. package/dist/context/index.d.ts +119 -0
  28. package/dist/context/index.d.ts.map +1 -0
  29. package/dist/context/index.js +1333 -0
  30. package/dist/context/index.js.map +1 -0
  31. package/dist/context/markers.d.ts +19 -0
  32. package/dist/context/markers.d.ts.map +1 -0
  33. package/dist/context/markers.js +22 -0
  34. package/dist/context/markers.js.map +1 -0
  35. package/dist/db/index.d.ts +378 -0
  36. package/dist/db/index.d.ts.map +1 -0
  37. package/dist/db/index.js +831 -0
  38. package/dist/db/index.js.map +1 -0
  39. package/dist/db/migrations.d.ts +44 -0
  40. package/dist/db/migrations.d.ts.map +1 -0
  41. package/dist/db/migrations.js +236 -0
  42. package/dist/db/migrations.js.map +1 -0
  43. package/dist/db/queries.d.ts +705 -0
  44. package/dist/db/queries.d.ts.map +1 -0
  45. package/dist/db/queries.js +2435 -0
  46. package/dist/db/queries.js.map +1 -0
  47. package/dist/db/schema.sql +207 -0
  48. package/dist/db/sqlite-adapter.d.ts +55 -0
  49. package/dist/db/sqlite-adapter.d.ts.map +1 -0
  50. package/dist/db/sqlite-adapter.js +135 -0
  51. package/dist/db/sqlite-adapter.js.map +1 -0
  52. package/dist/db/wal-valve.d.ts +119 -0
  53. package/dist/db/wal-valve.d.ts.map +1 -0
  54. package/dist/db/wal-valve.js +290 -0
  55. package/dist/db/wal-valve.js.map +1 -0
  56. package/dist/directory.d.ts +183 -0
  57. package/dist/directory.d.ts.map +1 -0
  58. package/dist/directory.js +797 -0
  59. package/dist/directory.js.map +1 -0
  60. package/dist/errors.d.ts +136 -0
  61. package/dist/errors.d.ts.map +1 -0
  62. package/dist/errors.js +219 -0
  63. package/dist/errors.js.map +1 -0
  64. package/dist/extraction/astro-extractor.d.ts +79 -0
  65. package/dist/extraction/astro-extractor.d.ts.map +1 -0
  66. package/dist/extraction/astro-extractor.js +320 -0
  67. package/dist/extraction/astro-extractor.js.map +1 -0
  68. package/dist/extraction/cfml-extractor.d.ts +107 -0
  69. package/dist/extraction/cfml-extractor.d.ts.map +1 -0
  70. package/dist/extraction/cfml-extractor.js +494 -0
  71. package/dist/extraction/cfml-extractor.js.map +1 -0
  72. package/dist/extraction/dfm-extractor.d.ts +31 -0
  73. package/dist/extraction/dfm-extractor.d.ts.map +1 -0
  74. package/dist/extraction/dfm-extractor.js +151 -0
  75. package/dist/extraction/dfm-extractor.js.map +1 -0
  76. package/dist/extraction/extraction-version.d.ts +25 -0
  77. package/dist/extraction/extraction-version.d.ts.map +1 -0
  78. package/dist/extraction/extraction-version.js +28 -0
  79. package/dist/extraction/extraction-version.js.map +1 -0
  80. package/dist/extraction/function-ref.d.ts +118 -0
  81. package/dist/extraction/function-ref.d.ts.map +1 -0
  82. package/dist/extraction/function-ref.js +733 -0
  83. package/dist/extraction/function-ref.js.map +1 -0
  84. package/dist/extraction/generated-detection.d.ts +66 -0
  85. package/dist/extraction/generated-detection.d.ts.map +1 -0
  86. package/dist/extraction/generated-detection.js +248 -0
  87. package/dist/extraction/generated-detection.js.map +1 -0
  88. package/dist/extraction/grammars.d.ts +138 -0
  89. package/dist/extraction/grammars.d.ts.map +1 -0
  90. package/dist/extraction/grammars.js +694 -0
  91. package/dist/extraction/grammars.js.map +1 -0
  92. package/dist/extraction/index.d.ts +308 -0
  93. package/dist/extraction/index.d.ts.map +1 -0
  94. package/dist/extraction/index.js +2711 -0
  95. package/dist/extraction/index.js.map +1 -0
  96. package/dist/extraction/kernel/decode.d.ts +9 -0
  97. package/dist/extraction/kernel/decode.d.ts.map +1 -0
  98. package/dist/extraction/kernel/decode.js +162 -0
  99. package/dist/extraction/kernel/decode.js.map +1 -0
  100. package/dist/extraction/kernel/index.d.ts +64 -0
  101. package/dist/extraction/kernel/index.d.ts.map +1 -0
  102. package/dist/extraction/kernel/index.js +279 -0
  103. package/dist/extraction/kernel/index.js.map +1 -0
  104. package/dist/extraction/kernel/layout.d.ts +101 -0
  105. package/dist/extraction/kernel/layout.d.ts.map +1 -0
  106. package/dist/extraction/kernel/layout.js +104 -0
  107. package/dist/extraction/kernel/layout.js.map +1 -0
  108. package/dist/extraction/kernel/loader.d.ts +103 -0
  109. package/dist/extraction/kernel/loader.d.ts.map +1 -0
  110. package/dist/extraction/kernel/loader.js +146 -0
  111. package/dist/extraction/kernel/loader.js.map +1 -0
  112. package/dist/extraction/languages/arkts.d.ts +3 -0
  113. package/dist/extraction/languages/arkts.d.ts.map +1 -0
  114. package/dist/extraction/languages/arkts.js +127 -0
  115. package/dist/extraction/languages/arkts.js.map +1 -0
  116. package/dist/extraction/languages/c-cpp.d.ts +124 -0
  117. package/dist/extraction/languages/c-cpp.d.ts.map +1 -0
  118. package/dist/extraction/languages/c-cpp.js +1689 -0
  119. package/dist/extraction/languages/c-cpp.js.map +1 -0
  120. package/dist/extraction/languages/cfquery.d.ts +12 -0
  121. package/dist/extraction/languages/cfquery.d.ts.map +1 -0
  122. package/dist/extraction/languages/cfquery.js +28 -0
  123. package/dist/extraction/languages/cfquery.js.map +1 -0
  124. package/dist/extraction/languages/cfscript.d.ts +3 -0
  125. package/dist/extraction/languages/cfscript.d.ts.map +1 -0
  126. package/dist/extraction/languages/cfscript.js +73 -0
  127. package/dist/extraction/languages/cfscript.js.map +1 -0
  128. package/dist/extraction/languages/cobol.d.ts +33 -0
  129. package/dist/extraction/languages/cobol.d.ts.map +1 -0
  130. package/dist/extraction/languages/cobol.js +499 -0
  131. package/dist/extraction/languages/cobol.js.map +1 -0
  132. package/dist/extraction/languages/csharp.d.ts +25 -0
  133. package/dist/extraction/languages/csharp.d.ts.map +1 -0
  134. package/dist/extraction/languages/csharp.js +175 -0
  135. package/dist/extraction/languages/csharp.js.map +1 -0
  136. package/dist/extraction/languages/dart.d.ts +3 -0
  137. package/dist/extraction/languages/dart.d.ts.map +1 -0
  138. package/dist/extraction/languages/dart.js +374 -0
  139. package/dist/extraction/languages/dart.js.map +1 -0
  140. package/dist/extraction/languages/erlang.d.ts +3 -0
  141. package/dist/extraction/languages/erlang.d.ts.map +1 -0
  142. package/dist/extraction/languages/erlang.js +350 -0
  143. package/dist/extraction/languages/erlang.js.map +1 -0
  144. package/dist/extraction/languages/go.d.ts +3 -0
  145. package/dist/extraction/languages/go.d.ts.map +1 -0
  146. package/dist/extraction/languages/go.js +111 -0
  147. package/dist/extraction/languages/go.js.map +1 -0
  148. package/dist/extraction/languages/index.d.ts +10 -0
  149. package/dist/extraction/languages/index.d.ts.map +1 -0
  150. package/dist/extraction/languages/index.js +71 -0
  151. package/dist/extraction/languages/index.js.map +1 -0
  152. package/dist/extraction/languages/java.d.ts +3 -0
  153. package/dist/extraction/languages/java.d.ts.map +1 -0
  154. package/dist/extraction/languages/java.js +315 -0
  155. package/dist/extraction/languages/java.js.map +1 -0
  156. package/dist/extraction/languages/javascript.d.ts +3 -0
  157. package/dist/extraction/languages/javascript.d.ts.map +1 -0
  158. package/dist/extraction/languages/javascript.js +106 -0
  159. package/dist/extraction/languages/javascript.js.map +1 -0
  160. package/dist/extraction/languages/kotlin.d.ts +3 -0
  161. package/dist/extraction/languages/kotlin.d.ts.map +1 -0
  162. package/dist/extraction/languages/kotlin.js +379 -0
  163. package/dist/extraction/languages/kotlin.js.map +1 -0
  164. package/dist/extraction/languages/lua.d.ts +3 -0
  165. package/dist/extraction/languages/lua.d.ts.map +1 -0
  166. package/dist/extraction/languages/lua.js +150 -0
  167. package/dist/extraction/languages/lua.js.map +1 -0
  168. package/dist/extraction/languages/luau.d.ts +3 -0
  169. package/dist/extraction/languages/luau.d.ts.map +1 -0
  170. package/dist/extraction/languages/luau.js +37 -0
  171. package/dist/extraction/languages/luau.js.map +1 -0
  172. package/dist/extraction/languages/nix.d.ts +3 -0
  173. package/dist/extraction/languages/nix.d.ts.map +1 -0
  174. package/dist/extraction/languages/nix.js +294 -0
  175. package/dist/extraction/languages/nix.js.map +1 -0
  176. package/dist/extraction/languages/objc.d.ts +3 -0
  177. package/dist/extraction/languages/objc.d.ts.map +1 -0
  178. package/dist/extraction/languages/objc.js +179 -0
  179. package/dist/extraction/languages/objc.js.map +1 -0
  180. package/dist/extraction/languages/pascal.d.ts +3 -0
  181. package/dist/extraction/languages/pascal.d.ts.map +1 -0
  182. package/dist/extraction/languages/pascal.js +77 -0
  183. package/dist/extraction/languages/pascal.js.map +1 -0
  184. package/dist/extraction/languages/php.d.ts +3 -0
  185. package/dist/extraction/languages/php.d.ts.map +1 -0
  186. package/dist/extraction/languages/php.js +196 -0
  187. package/dist/extraction/languages/php.js.map +1 -0
  188. package/dist/extraction/languages/python.d.ts +3 -0
  189. package/dist/extraction/languages/python.d.ts.map +1 -0
  190. package/dist/extraction/languages/python.js +56 -0
  191. package/dist/extraction/languages/python.js.map +1 -0
  192. package/dist/extraction/languages/r.d.ts +3 -0
  193. package/dist/extraction/languages/r.d.ts.map +1 -0
  194. package/dist/extraction/languages/r.js +314 -0
  195. package/dist/extraction/languages/r.js.map +1 -0
  196. package/dist/extraction/languages/ruby.d.ts +3 -0
  197. package/dist/extraction/languages/ruby.d.ts.map +1 -0
  198. package/dist/extraction/languages/ruby.js +149 -0
  199. package/dist/extraction/languages/ruby.js.map +1 -0
  200. package/dist/extraction/languages/rust.d.ts +3 -0
  201. package/dist/extraction/languages/rust.d.ts.map +1 -0
  202. package/dist/extraction/languages/rust.js +145 -0
  203. package/dist/extraction/languages/rust.js.map +1 -0
  204. package/dist/extraction/languages/scala.d.ts +3 -0
  205. package/dist/extraction/languages/scala.d.ts.map +1 -0
  206. package/dist/extraction/languages/scala.js +209 -0
  207. package/dist/extraction/languages/scala.js.map +1 -0
  208. package/dist/extraction/languages/solidity.d.ts +3 -0
  209. package/dist/extraction/languages/solidity.d.ts.map +1 -0
  210. package/dist/extraction/languages/solidity.js +293 -0
  211. package/dist/extraction/languages/solidity.js.map +1 -0
  212. package/dist/extraction/languages/swift.d.ts +3 -0
  213. package/dist/extraction/languages/swift.d.ts.map +1 -0
  214. package/dist/extraction/languages/swift.js +152 -0
  215. package/dist/extraction/languages/swift.js.map +1 -0
  216. package/dist/extraction/languages/terraform.d.ts +3 -0
  217. package/dist/extraction/languages/terraform.d.ts.map +1 -0
  218. package/dist/extraction/languages/terraform.js +641 -0
  219. package/dist/extraction/languages/terraform.js.map +1 -0
  220. package/dist/extraction/languages/typescript.d.ts +16 -0
  221. package/dist/extraction/languages/typescript.d.ts.map +1 -0
  222. package/dist/extraction/languages/typescript.js +167 -0
  223. package/dist/extraction/languages/typescript.js.map +1 -0
  224. package/dist/extraction/languages/vbnet.d.ts +11 -0
  225. package/dist/extraction/languages/vbnet.d.ts.map +1 -0
  226. package/dist/extraction/languages/vbnet.js +141 -0
  227. package/dist/extraction/languages/vbnet.js.map +1 -0
  228. package/dist/extraction/liquid-extractor.d.ts +59 -0
  229. package/dist/extraction/liquid-extractor.d.ts.map +1 -0
  230. package/dist/extraction/liquid-extractor.js +357 -0
  231. package/dist/extraction/liquid-extractor.js.map +1 -0
  232. package/dist/extraction/mybatis-extractor.d.ts +68 -0
  233. package/dist/extraction/mybatis-extractor.d.ts.map +1 -0
  234. package/dist/extraction/mybatis-extractor.js +300 -0
  235. package/dist/extraction/mybatis-extractor.js.map +1 -0
  236. package/dist/extraction/parse-pool.d.ts +160 -0
  237. package/dist/extraction/parse-pool.d.ts.map +1 -0
  238. package/dist/extraction/parse-pool.js +402 -0
  239. package/dist/extraction/parse-pool.js.map +1 -0
  240. package/dist/extraction/parse-worker.d.ts +8 -0
  241. package/dist/extraction/parse-worker.d.ts.map +1 -0
  242. package/dist/extraction/parse-worker.js +138 -0
  243. package/dist/extraction/parse-worker.js.map +1 -0
  244. package/dist/extraction/razor-extractor.d.ts +42 -0
  245. package/dist/extraction/razor-extractor.d.ts.map +1 -0
  246. package/dist/extraction/razor-extractor.js +285 -0
  247. package/dist/extraction/razor-extractor.js.map +1 -0
  248. package/dist/extraction/store-worker.d.ts +24 -0
  249. package/dist/extraction/store-worker.d.ts.map +1 -0
  250. package/dist/extraction/store-worker.js +139 -0
  251. package/dist/extraction/store-worker.js.map +1 -0
  252. package/dist/extraction/store-writer.d.ts +63 -0
  253. package/dist/extraction/store-writer.d.ts.map +1 -0
  254. package/dist/extraction/store-writer.js +174 -0
  255. package/dist/extraction/store-writer.js.map +1 -0
  256. package/dist/extraction/svelte-extractor.d.ts +56 -0
  257. package/dist/extraction/svelte-extractor.d.ts.map +1 -0
  258. package/dist/extraction/svelte-extractor.js +275 -0
  259. package/dist/extraction/svelte-extractor.js.map +1 -0
  260. package/dist/extraction/tree-sitter-helpers.d.ts +28 -0
  261. package/dist/extraction/tree-sitter-helpers.d.ts.map +1 -0
  262. package/dist/extraction/tree-sitter-helpers.js +153 -0
  263. package/dist/extraction/tree-sitter-helpers.js.map +1 -0
  264. package/dist/extraction/tree-sitter-types.d.ts +260 -0
  265. package/dist/extraction/tree-sitter-types.d.ts.map +1 -0
  266. package/dist/extraction/tree-sitter-types.js +10 -0
  267. package/dist/extraction/tree-sitter-types.js.map +1 -0
  268. package/dist/extraction/tree-sitter.d.ts +728 -0
  269. package/dist/extraction/tree-sitter.d.ts.map +1 -0
  270. package/dist/extraction/tree-sitter.js +6676 -0
  271. package/dist/extraction/tree-sitter.js.map +1 -0
  272. package/dist/extraction/vue-extractor.d.ts +51 -0
  273. package/dist/extraction/vue-extractor.d.ts.map +1 -0
  274. package/dist/extraction/vue-extractor.js +254 -0
  275. package/dist/extraction/vue-extractor.js.map +1 -0
  276. package/dist/extraction/wasm/tree-sitter-arkts.wasm +0 -0
  277. package/dist/extraction/wasm/tree-sitter-c.wasm +0 -0
  278. package/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
  279. package/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
  280. package/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
  281. package/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
  282. package/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
  283. package/dist/extraction/wasm/tree-sitter-cpp.wasm +0 -0
  284. package/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
  285. package/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
  286. package/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
  287. package/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
  288. package/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
  289. package/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
  290. package/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
  291. package/dist/extraction/wasm/tree-sitter-luau.wasm +0 -0
  292. package/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
  293. package/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
  294. package/dist/extraction/wasm/tree-sitter-php.wasm +0 -0
  295. package/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
  296. package/dist/extraction/wasm/tree-sitter-r.wasm +0 -0
  297. package/dist/extraction/wasm/tree-sitter-ruby.wasm +0 -0
  298. package/dist/extraction/wasm/tree-sitter-rust.wasm +0 -0
  299. package/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
  300. package/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
  301. package/dist/extraction/wasm/tree-sitter-terraform.wasm +0 -0
  302. package/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
  303. package/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
  304. package/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
  305. package/dist/extraction/wasm-runtime-flags.d.ts +53 -0
  306. package/dist/extraction/wasm-runtime-flags.d.ts.map +1 -0
  307. package/dist/extraction/wasm-runtime-flags.js +130 -0
  308. package/dist/extraction/wasm-runtime-flags.js.map +1 -0
  309. package/dist/graph/index.d.ts +8 -0
  310. package/dist/graph/index.d.ts.map +1 -0
  311. package/dist/graph/index.js +13 -0
  312. package/dist/graph/index.js.map +1 -0
  313. package/dist/graph/queries.d.ts +106 -0
  314. package/dist/graph/queries.d.ts.map +1 -0
  315. package/dist/graph/queries.js +341 -0
  316. package/dist/graph/queries.js.map +1 -0
  317. package/dist/graph/traversal.d.ts +127 -0
  318. package/dist/graph/traversal.d.ts.map +1 -0
  319. package/dist/graph/traversal.js +599 -0
  320. package/dist/graph/traversal.js.map +1 -0
  321. package/dist/index.d.ts +677 -0
  322. package/dist/index.d.ts.map +1 -0
  323. package/dist/index.js +1718 -0
  324. package/dist/index.js.map +1 -0
  325. package/dist/installer/beta-signup.d.ts +54 -0
  326. package/dist/installer/beta-signup.d.ts.map +1 -0
  327. package/dist/installer/beta-signup.js +178 -0
  328. package/dist/installer/beta-signup.js.map +1 -0
  329. package/dist/installer/config-writer.d.ts +28 -0
  330. package/dist/installer/config-writer.d.ts.map +1 -0
  331. package/dist/installer/config-writer.js +91 -0
  332. package/dist/installer/config-writer.js.map +1 -0
  333. package/dist/installer/index.d.ts +144 -0
  334. package/dist/installer/index.d.ts.map +1 -0
  335. package/dist/installer/index.js +634 -0
  336. package/dist/installer/index.js.map +1 -0
  337. package/dist/installer/instructions-template.d.ts +41 -0
  338. package/dist/installer/instructions-template.d.ts.map +1 -0
  339. package/dist/installer/instructions-template.js +53 -0
  340. package/dist/installer/instructions-template.js.map +1 -0
  341. package/dist/installer/targets/antigravity.d.ts +57 -0
  342. package/dist/installer/targets/antigravity.d.ts.map +1 -0
  343. package/dist/installer/targets/antigravity.js +308 -0
  344. package/dist/installer/targets/antigravity.js.map +1 -0
  345. package/dist/installer/targets/claude.d.ts +62 -0
  346. package/dist/installer/targets/claude.d.ts.map +1 -0
  347. package/dist/installer/targets/claude.js +486 -0
  348. package/dist/installer/targets/claude.js.map +1 -0
  349. package/dist/installer/targets/codex.d.ts +18 -0
  350. package/dist/installer/targets/codex.d.ts.map +1 -0
  351. package/dist/installer/targets/codex.js +185 -0
  352. package/dist/installer/targets/codex.js.map +1 -0
  353. package/dist/installer/targets/copilot-cli.d.ts +32 -0
  354. package/dist/installer/targets/copilot-cli.d.ts.map +1 -0
  355. package/dist/installer/targets/copilot-cli.js +209 -0
  356. package/dist/installer/targets/copilot-cli.js.map +1 -0
  357. package/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
  358. package/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
  359. package/dist/installer/targets/copilot-jetbrains.js +238 -0
  360. package/dist/installer/targets/copilot-jetbrains.js.map +1 -0
  361. package/dist/installer/targets/copilot-vscode.d.ts +47 -0
  362. package/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
  363. package/dist/installer/targets/copilot-vscode.js +219 -0
  364. package/dist/installer/targets/copilot-vscode.js.map +1 -0
  365. package/dist/installer/targets/cursor.d.ts +35 -0
  366. package/dist/installer/targets/cursor.d.ts.map +1 -0
  367. package/dist/installer/targets/cursor.js +254 -0
  368. package/dist/installer/targets/cursor.js.map +1 -0
  369. package/dist/installer/targets/dsh.d.ts +97 -0
  370. package/dist/installer/targets/dsh.d.ts.map +1 -0
  371. package/dist/installer/targets/dsh.js +358 -0
  372. package/dist/installer/targets/dsh.js.map +1 -0
  373. package/dist/installer/targets/gemini.d.ts +26 -0
  374. package/dist/installer/targets/gemini.d.ts.map +1 -0
  375. package/dist/installer/targets/gemini.js +165 -0
  376. package/dist/installer/targets/gemini.js.map +1 -0
  377. package/dist/installer/targets/hermes.d.ts +18 -0
  378. package/dist/installer/targets/hermes.d.ts.map +1 -0
  379. package/dist/installer/targets/hermes.js +359 -0
  380. package/dist/installer/targets/hermes.js.map +1 -0
  381. package/dist/installer/targets/kiro.d.ts +27 -0
  382. package/dist/installer/targets/kiro.d.ts.map +1 -0
  383. package/dist/installer/targets/kiro.js +178 -0
  384. package/dist/installer/targets/kiro.js.map +1 -0
  385. package/dist/installer/targets/opencode.d.ts +38 -0
  386. package/dist/installer/targets/opencode.d.ts.map +1 -0
  387. package/dist/installer/targets/opencode.js +288 -0
  388. package/dist/installer/targets/opencode.js.map +1 -0
  389. package/dist/installer/targets/registry.d.ts +35 -0
  390. package/dist/installer/targets/registry.d.ts.map +1 -0
  391. package/dist/installer/targets/registry.js +101 -0
  392. package/dist/installer/targets/registry.js.map +1 -0
  393. package/dist/installer/targets/shared.d.ts +132 -0
  394. package/dist/installer/targets/shared.d.ts.map +1 -0
  395. package/dist/installer/targets/shared.js +314 -0
  396. package/dist/installer/targets/shared.js.map +1 -0
  397. package/dist/installer/targets/toml.d.ts +53 -0
  398. package/dist/installer/targets/toml.d.ts.map +1 -0
  399. package/dist/installer/targets/toml.js +226 -0
  400. package/dist/installer/targets/toml.js.map +1 -0
  401. package/dist/installer/targets/types.d.ts +109 -0
  402. package/dist/installer/targets/types.d.ts.map +1 -0
  403. package/dist/installer/targets/types.js +16 -0
  404. package/dist/installer/targets/types.js.map +1 -0
  405. package/dist/installer/targets/zcode.d.ts +106 -0
  406. package/dist/installer/targets/zcode.d.ts.map +1 -0
  407. package/dist/installer/targets/zcode.js +451 -0
  408. package/dist/installer/targets/zcode.js.map +1 -0
  409. package/dist/mcp/daemon-manager.d.ts +42 -0
  410. package/dist/mcp/daemon-manager.d.ts.map +1 -0
  411. package/dist/mcp/daemon-manager.js +129 -0
  412. package/dist/mcp/daemon-manager.js.map +1 -0
  413. package/dist/mcp/daemon-paths.d.ts +73 -0
  414. package/dist/mcp/daemon-paths.d.ts.map +1 -0
  415. package/dist/mcp/daemon-paths.js +165 -0
  416. package/dist/mcp/daemon-paths.js.map +1 -0
  417. package/dist/mcp/daemon-registry.d.ts +47 -0
  418. package/dist/mcp/daemon-registry.d.ts.map +1 -0
  419. package/dist/mcp/daemon-registry.js +233 -0
  420. package/dist/mcp/daemon-registry.js.map +1 -0
  421. package/dist/mcp/daemon.d.ts +290 -0
  422. package/dist/mcp/daemon.d.ts.map +1 -0
  423. package/dist/mcp/daemon.js +862 -0
  424. package/dist/mcp/daemon.js.map +1 -0
  425. package/dist/mcp/dynamic-boundaries.d.ts +41 -0
  426. package/dist/mcp/dynamic-boundaries.d.ts.map +1 -0
  427. package/dist/mcp/dynamic-boundaries.js +360 -0
  428. package/dist/mcp/dynamic-boundaries.js.map +1 -0
  429. package/dist/mcp/early-ppid.d.ts +26 -0
  430. package/dist/mcp/early-ppid.d.ts.map +1 -0
  431. package/dist/mcp/early-ppid.js +29 -0
  432. package/dist/mcp/early-ppid.js.map +1 -0
  433. package/dist/mcp/engine.d.ts +122 -0
  434. package/dist/mcp/engine.d.ts.map +1 -0
  435. package/dist/mcp/engine.js +350 -0
  436. package/dist/mcp/engine.js.map +1 -0
  437. package/dist/mcp/explore-dedup.d.ts +137 -0
  438. package/dist/mcp/explore-dedup.d.ts.map +1 -0
  439. package/dist/mcp/explore-dedup.js +236 -0
  440. package/dist/mcp/explore-dedup.js.map +1 -0
  441. package/dist/mcp/explore-diagnostics.d.ts +287 -0
  442. package/dist/mcp/explore-diagnostics.d.ts.map +1 -0
  443. package/dist/mcp/explore-diagnostics.js +555 -0
  444. package/dist/mcp/explore-diagnostics.js.map +1 -0
  445. package/dist/mcp/explore-session-state.d.ts +217 -0
  446. package/dist/mcp/explore-session-state.d.ts.map +1 -0
  447. package/dist/mcp/explore-session-state.js +322 -0
  448. package/dist/mcp/explore-session-state.js.map +1 -0
  449. package/dist/mcp/index.d.ts +137 -0
  450. package/dist/mcp/index.d.ts.map +1 -0
  451. package/dist/mcp/index.js +554 -0
  452. package/dist/mcp/index.js.map +1 -0
  453. package/dist/mcp/liveness-watchdog.d.ts +35 -0
  454. package/dist/mcp/liveness-watchdog.d.ts.map +1 -0
  455. package/dist/mcp/liveness-watchdog.js +269 -0
  456. package/dist/mcp/liveness-watchdog.js.map +1 -0
  457. package/dist/mcp/ppid-watchdog.d.ts +62 -0
  458. package/dist/mcp/ppid-watchdog.d.ts.map +1 -0
  459. package/dist/mcp/ppid-watchdog.js +64 -0
  460. package/dist/mcp/ppid-watchdog.js.map +1 -0
  461. package/dist/mcp/proxy.d.ts +87 -0
  462. package/dist/mcp/proxy.d.ts.map +1 -0
  463. package/dist/mcp/proxy.js +672 -0
  464. package/dist/mcp/proxy.js.map +1 -0
  465. package/dist/mcp/query-pool.d.ts +108 -0
  466. package/dist/mcp/query-pool.d.ts.map +1 -0
  467. package/dist/mcp/query-pool.js +315 -0
  468. package/dist/mcp/query-pool.js.map +1 -0
  469. package/dist/mcp/query-worker.d.ts +24 -0
  470. package/dist/mcp/query-worker.d.ts.map +1 -0
  471. package/dist/mcp/query-worker.js +87 -0
  472. package/dist/mcp/query-worker.js.map +1 -0
  473. package/dist/mcp/server-instructions.d.ts +34 -0
  474. package/dist/mcp/server-instructions.d.ts.map +1 -0
  475. package/dist/mcp/server-instructions.js +111 -0
  476. package/dist/mcp/server-instructions.js.map +1 -0
  477. package/dist/mcp/session.d.ts +109 -0
  478. package/dist/mcp/session.d.ts.map +1 -0
  479. package/dist/mcp/session.js +375 -0
  480. package/dist/mcp/session.js.map +1 -0
  481. package/dist/mcp/startup-handshake.d.ts +44 -0
  482. package/dist/mcp/startup-handshake.d.ts.map +1 -0
  483. package/dist/mcp/startup-handshake.js +73 -0
  484. package/dist/mcp/startup-handshake.js.map +1 -0
  485. package/dist/mcp/stdin-teardown.d.ts +27 -0
  486. package/dist/mcp/stdin-teardown.d.ts.map +1 -0
  487. package/dist/mcp/stdin-teardown.js +49 -0
  488. package/dist/mcp/stdin-teardown.js.map +1 -0
  489. package/dist/mcp/tools.d.ts +862 -0
  490. package/dist/mcp/tools.d.ts.map +1 -0
  491. package/dist/mcp/tools.js +6526 -0
  492. package/dist/mcp/tools.js.map +1 -0
  493. package/dist/mcp/transport.d.ts +188 -0
  494. package/dist/mcp/transport.d.ts.map +1 -0
  495. package/dist/mcp/transport.js +377 -0
  496. package/dist/mcp/transport.js.map +1 -0
  497. package/dist/mcp/version.d.ts +19 -0
  498. package/dist/mcp/version.d.ts.map +1 -0
  499. package/dist/mcp/version.js +71 -0
  500. package/dist/mcp/version.js.map +1 -0
  501. package/dist/project-config.d.ts +94 -0
  502. package/dist/project-config.d.ts.map +1 -0
  503. package/dist/project-config.js +374 -0
  504. package/dist/project-config.js.map +1 -0
  505. package/dist/prompt-hook-output.d.ts +23 -0
  506. package/dist/prompt-hook-output.d.ts.map +1 -0
  507. package/dist/prompt-hook-output.js +35 -0
  508. package/dist/prompt-hook-output.js.map +1 -0
  509. package/dist/resolution/c-fnptr-synthesizer.d.ts +6 -0
  510. package/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -0
  511. package/dist/resolution/c-fnptr-synthesizer.js +1506 -0
  512. package/dist/resolution/c-fnptr-synthesizer.js.map +1 -0
  513. package/dist/resolution/callback-synthesizer.d.ts +59 -0
  514. package/dist/resolution/callback-synthesizer.d.ts.map +1 -0
  515. package/dist/resolution/callback-synthesizer.js +4030 -0
  516. package/dist/resolution/callback-synthesizer.js.map +1 -0
  517. package/dist/resolution/cooperative-yield.d.ts +40 -0
  518. package/dist/resolution/cooperative-yield.d.ts.map +1 -0
  519. package/dist/resolution/cooperative-yield.js +44 -0
  520. package/dist/resolution/cooperative-yield.js.map +1 -0
  521. package/dist/resolution/frameworks/astro.d.ts +9 -0
  522. package/dist/resolution/frameworks/astro.d.ts.map +1 -0
  523. package/dist/resolution/frameworks/astro.js +169 -0
  524. package/dist/resolution/frameworks/astro.js.map +1 -0
  525. package/dist/resolution/frameworks/cargo-workspace.d.ts +18 -0
  526. package/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -0
  527. package/dist/resolution/frameworks/cargo-workspace.js +225 -0
  528. package/dist/resolution/frameworks/cargo-workspace.js.map +1 -0
  529. package/dist/resolution/frameworks/cics.d.ts +20 -0
  530. package/dist/resolution/frameworks/cics.d.ts.map +1 -0
  531. package/dist/resolution/frameworks/cics.js +90 -0
  532. package/dist/resolution/frameworks/cics.js.map +1 -0
  533. package/dist/resolution/frameworks/csharp.d.ts +8 -0
  534. package/dist/resolution/frameworks/csharp.d.ts.map +1 -0
  535. package/dist/resolution/frameworks/csharp.js +241 -0
  536. package/dist/resolution/frameworks/csharp.js.map +1 -0
  537. package/dist/resolution/frameworks/drupal.d.ts +51 -0
  538. package/dist/resolution/frameworks/drupal.d.ts.map +1 -0
  539. package/dist/resolution/frameworks/drupal.js +367 -0
  540. package/dist/resolution/frameworks/drupal.js.map +1 -0
  541. package/dist/resolution/frameworks/expo-modules.d.ts +3 -0
  542. package/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
  543. package/dist/resolution/frameworks/expo-modules.js +148 -0
  544. package/dist/resolution/frameworks/expo-modules.js.map +1 -0
  545. package/dist/resolution/frameworks/express.d.ts +8 -0
  546. package/dist/resolution/frameworks/express.d.ts.map +1 -0
  547. package/dist/resolution/frameworks/express.js +308 -0
  548. package/dist/resolution/frameworks/express.js.map +1 -0
  549. package/dist/resolution/frameworks/fabric.d.ts +3 -0
  550. package/dist/resolution/frameworks/fabric.d.ts.map +1 -0
  551. package/dist/resolution/frameworks/fabric.js +354 -0
  552. package/dist/resolution/frameworks/fabric.js.map +1 -0
  553. package/dist/resolution/frameworks/go.d.ts +8 -0
  554. package/dist/resolution/frameworks/go.d.ts.map +1 -0
  555. package/dist/resolution/frameworks/go.js +184 -0
  556. package/dist/resolution/frameworks/go.js.map +1 -0
  557. package/dist/resolution/frameworks/goframe.d.ts +41 -0
  558. package/dist/resolution/frameworks/goframe.d.ts.map +1 -0
  559. package/dist/resolution/frameworks/goframe.js +112 -0
  560. package/dist/resolution/frameworks/goframe.js.map +1 -0
  561. package/dist/resolution/frameworks/index.d.ts +50 -0
  562. package/dist/resolution/frameworks/index.d.ts.map +1 -0
  563. package/dist/resolution/frameworks/index.js +175 -0
  564. package/dist/resolution/frameworks/index.js.map +1 -0
  565. package/dist/resolution/frameworks/java.d.ts +8 -0
  566. package/dist/resolution/frameworks/java.d.ts.map +1 -0
  567. package/dist/resolution/frameworks/java.js +517 -0
  568. package/dist/resolution/frameworks/java.js.map +1 -0
  569. package/dist/resolution/frameworks/laravel.d.ts +13 -0
  570. package/dist/resolution/frameworks/laravel.d.ts.map +1 -0
  571. package/dist/resolution/frameworks/laravel.js +257 -0
  572. package/dist/resolution/frameworks/laravel.js.map +1 -0
  573. package/dist/resolution/frameworks/nestjs.d.ts +26 -0
  574. package/dist/resolution/frameworks/nestjs.d.ts.map +1 -0
  575. package/dist/resolution/frameworks/nestjs.js +698 -0
  576. package/dist/resolution/frameworks/nestjs.js.map +1 -0
  577. package/dist/resolution/frameworks/play.d.ts +19 -0
  578. package/dist/resolution/frameworks/play.d.ts.map +1 -0
  579. package/dist/resolution/frameworks/play.js +111 -0
  580. package/dist/resolution/frameworks/play.js.map +1 -0
  581. package/dist/resolution/frameworks/python.d.ts +10 -0
  582. package/dist/resolution/frameworks/python.d.ts.map +1 -0
  583. package/dist/resolution/frameworks/python.js +400 -0
  584. package/dist/resolution/frameworks/python.js.map +1 -0
  585. package/dist/resolution/frameworks/react-native.d.ts +3 -0
  586. package/dist/resolution/frameworks/react-native.d.ts.map +1 -0
  587. package/dist/resolution/frameworks/react-native.js +410 -0
  588. package/dist/resolution/frameworks/react-native.js.map +1 -0
  589. package/dist/resolution/frameworks/react.d.ts +8 -0
  590. package/dist/resolution/frameworks/react.d.ts.map +1 -0
  591. package/dist/resolution/frameworks/react.js +334 -0
  592. package/dist/resolution/frameworks/react.js.map +1 -0
  593. package/dist/resolution/frameworks/ruby.d.ts +8 -0
  594. package/dist/resolution/frameworks/ruby.d.ts.map +1 -0
  595. package/dist/resolution/frameworks/ruby.js +302 -0
  596. package/dist/resolution/frameworks/ruby.js.map +1 -0
  597. package/dist/resolution/frameworks/rust.d.ts +8 -0
  598. package/dist/resolution/frameworks/rust.d.ts.map +1 -0
  599. package/dist/resolution/frameworks/rust.js +304 -0
  600. package/dist/resolution/frameworks/rust.js.map +1 -0
  601. package/dist/resolution/frameworks/svelte.d.ts +9 -0
  602. package/dist/resolution/frameworks/svelte.d.ts.map +1 -0
  603. package/dist/resolution/frameworks/svelte.js +253 -0
  604. package/dist/resolution/frameworks/svelte.js.map +1 -0
  605. package/dist/resolution/frameworks/swift-objc.d.ts +37 -0
  606. package/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
  607. package/dist/resolution/frameworks/swift-objc.js +252 -0
  608. package/dist/resolution/frameworks/swift-objc.js.map +1 -0
  609. package/dist/resolution/frameworks/swift.d.ts +10 -0
  610. package/dist/resolution/frameworks/swift.d.ts.map +1 -0
  611. package/dist/resolution/frameworks/swift.js +400 -0
  612. package/dist/resolution/frameworks/swift.js.map +1 -0
  613. package/dist/resolution/frameworks/terraform.d.ts +38 -0
  614. package/dist/resolution/frameworks/terraform.d.ts.map +1 -0
  615. package/dist/resolution/frameworks/terraform.js +277 -0
  616. package/dist/resolution/frameworks/terraform.js.map +1 -0
  617. package/dist/resolution/frameworks/vue.d.ts +9 -0
  618. package/dist/resolution/frameworks/vue.d.ts.map +1 -0
  619. package/dist/resolution/frameworks/vue.js +303 -0
  620. package/dist/resolution/frameworks/vue.js.map +1 -0
  621. package/dist/resolution/go-module.d.ts +26 -0
  622. package/dist/resolution/go-module.d.ts.map +1 -0
  623. package/dist/resolution/go-module.js +78 -0
  624. package/dist/resolution/go-module.js.map +1 -0
  625. package/dist/resolution/goframe-synthesizer.d.ts +29 -0
  626. package/dist/resolution/goframe-synthesizer.d.ts.map +1 -0
  627. package/dist/resolution/goframe-synthesizer.js +163 -0
  628. package/dist/resolution/goframe-synthesizer.js.map +1 -0
  629. package/dist/resolution/import-resolver.d.ts +84 -0
  630. package/dist/resolution/import-resolver.d.ts.map +1 -0
  631. package/dist/resolution/import-resolver.js +2134 -0
  632. package/dist/resolution/import-resolver.js.map +1 -0
  633. package/dist/resolution/index.d.ts +343 -0
  634. package/dist/resolution/index.d.ts.map +1 -0
  635. package/dist/resolution/index.js +2339 -0
  636. package/dist/resolution/index.js.map +1 -0
  637. package/dist/resolution/lru-cache.d.ts +24 -0
  638. package/dist/resolution/lru-cache.d.ts.map +1 -0
  639. package/dist/resolution/lru-cache.js +62 -0
  640. package/dist/resolution/lru-cache.js.map +1 -0
  641. package/dist/resolution/memory-budget.d.ts +48 -0
  642. package/dist/resolution/memory-budget.d.ts.map +1 -0
  643. package/dist/resolution/memory-budget.js +162 -0
  644. package/dist/resolution/memory-budget.js.map +1 -0
  645. package/dist/resolution/name-matcher.d.ts +123 -0
  646. package/dist/resolution/name-matcher.d.ts.map +1 -0
  647. package/dist/resolution/name-matcher.js +2134 -0
  648. package/dist/resolution/name-matcher.js.map +1 -0
  649. package/dist/resolution/path-aliases.d.ts +68 -0
  650. package/dist/resolution/path-aliases.d.ts.map +1 -0
  651. package/dist/resolution/path-aliases.js +238 -0
  652. package/dist/resolution/path-aliases.js.map +1 -0
  653. package/dist/resolution/resolver-pool.d.ts +106 -0
  654. package/dist/resolution/resolver-pool.d.ts.map +1 -0
  655. package/dist/resolution/resolver-pool.js +344 -0
  656. package/dist/resolution/resolver-pool.js.map +1 -0
  657. package/dist/resolution/resolver-worker.d.ts +17 -0
  658. package/dist/resolution/resolver-worker.d.ts.map +1 -0
  659. package/dist/resolution/resolver-worker.js +141 -0
  660. package/dist/resolution/resolver-worker.js.map +1 -0
  661. package/dist/resolution/strip-comments.d.ts +27 -0
  662. package/dist/resolution/strip-comments.d.ts.map +1 -0
  663. package/dist/resolution/strip-comments.js +492 -0
  664. package/dist/resolution/strip-comments.js.map +1 -0
  665. package/dist/resolution/swift-objc-bridge.d.ts +134 -0
  666. package/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
  667. package/dist/resolution/swift-objc-bridge.js +256 -0
  668. package/dist/resolution/swift-objc-bridge.js.map +1 -0
  669. package/dist/resolution/types.d.ts +265 -0
  670. package/dist/resolution/types.d.ts.map +1 -0
  671. package/dist/resolution/types.js +8 -0
  672. package/dist/resolution/types.js.map +1 -0
  673. package/dist/resolution/workspace-packages.d.ts +58 -0
  674. package/dist/resolution/workspace-packages.d.ts.map +1 -0
  675. package/dist/resolution/workspace-packages.js +346 -0
  676. package/dist/resolution/workspace-packages.js.map +1 -0
  677. package/dist/search/identifier-segments.d.ts +60 -0
  678. package/dist/search/identifier-segments.d.ts.map +1 -0
  679. package/dist/search/identifier-segments.js +176 -0
  680. package/dist/search/identifier-segments.js.map +1 -0
  681. package/dist/search/query-parser.d.ts +57 -0
  682. package/dist/search/query-parser.d.ts.map +1 -0
  683. package/dist/search/query-parser.js +177 -0
  684. package/dist/search/query-parser.js.map +1 -0
  685. package/dist/search/query-utils.d.ts +87 -0
  686. package/dist/search/query-utils.d.ts.map +1 -0
  687. package/dist/search/query-utils.js +450 -0
  688. package/dist/search/query-utils.js.map +1 -0
  689. package/dist/sync/git-hooks.d.ts +45 -0
  690. package/dist/sync/git-hooks.d.ts.map +1 -0
  691. package/dist/sync/git-hooks.js +227 -0
  692. package/dist/sync/git-hooks.js.map +1 -0
  693. package/dist/sync/index.d.ts +19 -0
  694. package/dist/sync/index.d.ts.map +1 -0
  695. package/dist/sync/index.js +35 -0
  696. package/dist/sync/index.js.map +1 -0
  697. package/dist/sync/watch-policy.d.ts +48 -0
  698. package/dist/sync/watch-policy.d.ts.map +1 -0
  699. package/dist/sync/watch-policy.js +124 -0
  700. package/dist/sync/watch-policy.js.map +1 -0
  701. package/dist/sync/watcher.d.ts +379 -0
  702. package/dist/sync/watcher.d.ts.map +1 -0
  703. package/dist/sync/watcher.js +921 -0
  704. package/dist/sync/watcher.js.map +1 -0
  705. package/dist/sync/worktree.d.ts +63 -0
  706. package/dist/sync/worktree.d.ts.map +1 -0
  707. package/dist/sync/worktree.js +182 -0
  708. package/dist/sync/worktree.js.map +1 -0
  709. package/dist/telemetry/index.d.ts +143 -0
  710. package/dist/telemetry/index.d.ts.map +1 -0
  711. package/dist/telemetry/index.js +541 -0
  712. package/dist/telemetry/index.js.map +1 -0
  713. package/dist/types.d.ts +465 -0
  714. package/dist/types.d.ts.map +1 -0
  715. package/dist/types.js +117 -0
  716. package/dist/types.js.map +1 -0
  717. package/dist/ui/color.d.ts +21 -0
  718. package/dist/ui/color.d.ts.map +1 -0
  719. package/dist/ui/color.js +42 -0
  720. package/dist/ui/color.js.map +1 -0
  721. package/dist/ui/glyphs.d.ts +67 -0
  722. package/dist/ui/glyphs.d.ts.map +1 -0
  723. package/dist/ui/glyphs.js +125 -0
  724. package/dist/ui/glyphs.js.map +1 -0
  725. package/dist/ui/shimmer-progress.d.ts +11 -0
  726. package/dist/ui/shimmer-progress.d.ts.map +1 -0
  727. package/dist/ui/shimmer-progress.js +164 -0
  728. package/dist/ui/shimmer-progress.js.map +1 -0
  729. package/dist/ui/shimmer-worker.d.ts +2 -0
  730. package/dist/ui/shimmer-worker.d.ts.map +1 -0
  731. package/dist/ui/shimmer-worker.js +126 -0
  732. package/dist/ui/shimmer-worker.js.map +1 -0
  733. package/dist/ui/types.d.ts +15 -0
  734. package/dist/ui/types.d.ts.map +1 -0
  735. package/dist/ui/types.js +3 -0
  736. package/dist/ui/types.js.map +1 -0
  737. package/dist/upgrade/index.d.ts +171 -0
  738. package/dist/upgrade/index.d.ts.map +1 -0
  739. package/dist/upgrade/index.js +659 -0
  740. package/dist/upgrade/index.js.map +1 -0
  741. package/dist/upgrade/remove-binary.d.ts +87 -0
  742. package/dist/upgrade/remove-binary.d.ts.map +1 -0
  743. package/dist/upgrade/remove-binary.js +289 -0
  744. package/dist/upgrade/remove-binary.js.map +1 -0
  745. package/dist/upgrade/update-check.d.ts +92 -0
  746. package/dist/upgrade/update-check.d.ts.map +1 -0
  747. package/dist/upgrade/update-check.js +258 -0
  748. package/dist/upgrade/update-check.js.map +1 -0
  749. package/dist/utils.d.ts +224 -0
  750. package/dist/utils.d.ts.map +1 -0
  751. package/dist/utils.js +583 -0
  752. package/dist/utils.js.map +1 -0
  753. package/package.json +61 -0
  754. package/scripts/add-lang/bench.sh +60 -0
  755. package/scripts/add-lang/check-grammar.mjs +75 -0
  756. package/scripts/add-lang/dump-ast.mjs +103 -0
  757. package/scripts/add-lang/verify-extraction.mjs +70 -0
  758. package/scripts/agent-eval/ab-adoption.sh +91 -0
  759. package/scripts/agent-eval/ab-hook.sh +86 -0
  760. package/scripts/agent-eval/ab-impl.sh +78 -0
  761. package/scripts/agent-eval/ab-new-vs-baseline.sh +161 -0
  762. package/scripts/agent-eval/ab-sufficiency.sh +78 -0
  763. package/scripts/agent-eval/allocation-fixtures.json +344 -0
  764. package/scripts/agent-eval/arms-F.sh +21 -0
  765. package/scripts/agent-eval/arms-matrix.sh +37 -0
  766. package/scripts/agent-eval/audit.sh +68 -0
  767. package/scripts/agent-eval/bench-readme.sh +48 -0
  768. package/scripts/agent-eval/bench-why-repo.sh +22 -0
  769. package/scripts/agent-eval/block-read-hook.sh +19 -0
  770. package/scripts/agent-eval/compare-arms.mjs +209 -0
  771. package/scripts/agent-eval/diff-index-drift.mjs +102 -0
  772. package/scripts/agent-eval/hook-settings.json +15 -0
  773. package/scripts/agent-eval/itrun.sh +120 -0
  774. package/scripts/agent-eval/no-cli-shim.sh +96 -0
  775. package/scripts/agent-eval/offload-eval-3arm.sh +72 -0
  776. package/scripts/agent-eval/offload-eval-cost.mjs +133 -0
  777. package/scripts/agent-eval/offload-eval-effort.mjs +108 -0
  778. package/scripts/agent-eval/offload-eval-frontload-matrix.sh +25 -0
  779. package/scripts/agent-eval/offload-eval-frontload.sh +47 -0
  780. package/scripts/agent-eval/offload-eval-ground-truth.json +18 -0
  781. package/scripts/agent-eval/offload-eval-hook.mjs +84 -0
  782. package/scripts/agent-eval/offload-eval-judge.mjs +103 -0
  783. package/scripts/agent-eval/offload-eval-matrix.sh +20 -0
  784. package/scripts/agent-eval/offload-eval-metrics.mjs +94 -0
  785. package/scripts/agent-eval/offload-eval-refs1.sh +50 -0
  786. package/scripts/agent-eval/offload-eval-setup.sh +24 -0
  787. package/scripts/agent-eval/offload-eval-styles.sh +72 -0
  788. package/scripts/agent-eval/offload-eval-summarize.mjs +68 -0
  789. package/scripts/agent-eval/offload-eval.md +76 -0
  790. package/scripts/agent-eval/parse-arms.mjs +116 -0
  791. package/scripts/agent-eval/parse-bench-readme.mjs +238 -0
  792. package/scripts/agent-eval/parse-run.mjs +1401 -0
  793. package/scripts/agent-eval/parse-session.mjs +130 -0
  794. package/scripts/agent-eval/probe-allocation.mjs +335 -0
  795. package/scripts/agent-eval/probe-context.mjs +21 -0
  796. package/scripts/agent-eval/probe-decl-only.mjs +198 -0
  797. package/scripts/agent-eval/probe-explore.mjs +40 -0
  798. package/scripts/agent-eval/probe-factory-closure.mjs +147 -0
  799. package/scripts/agent-eval/probe-file-spend.mjs +195 -0
  800. package/scripts/agent-eval/probe-named-symbol.mjs +163 -0
  801. package/scripts/agent-eval/probe-node.mjs +20 -0
  802. package/scripts/agent-eval/probe-suite-envelope.mjs +124 -0
  803. package/scripts/agent-eval/probe-sweep.mjs +119 -0
  804. package/scripts/agent-eval/probe-trace.mjs +20 -0
  805. package/scripts/agent-eval/redirect-read-hook.sh +38 -0
  806. package/scripts/agent-eval/repro-concurrent-explore.mjs +119 -0
  807. package/scripts/agent-eval/repro-daemon-clients.mjs +125 -0
  808. package/scripts/agent-eval/run-agent.sh +34 -0
  809. package/scripts/agent-eval/run-all.sh +149 -0
  810. package/scripts/agent-eval/run-arms.sh +56 -0
  811. package/scripts/agent-eval/seq-matrix.mjs +137 -0
  812. package/scripts/build-bundle.sh +145 -0
  813. package/scripts/build-kernel.sh +87 -0
  814. package/scripts/dump-graph.mjs +57 -0
  815. package/scripts/extract-release-notes.mjs +130 -0
  816. package/scripts/kernel-parity.mjs +283 -0
  817. package/scripts/local-install.sh +41 -0
  818. package/scripts/npm-sdk.js +75 -0
  819. package/scripts/npm-shim.js +279 -0
  820. package/scripts/pack-npm.sh +123 -0
  821. package/scripts/prepare-release.mjs +270 -0
@@ -0,0 +1,728 @@
1
+ /**
2
+ * Tree-sitter Parser Wrapper
3
+ *
4
+ * Handles parsing source code and extracting structural information.
5
+ */
6
+ import { Language, ExtractionResult } from '../types';
7
+ export { generateNodeId } from './tree-sitter-helpers';
8
+ export declare class TreeSitterExtractor {
9
+ private filePath;
10
+ private language;
11
+ private source;
12
+ private tree;
13
+ private nodes;
14
+ private edges;
15
+ private unresolvedReferences;
16
+ private static readonly VALUE_REF_LANGS;
17
+ private static readonly MAX_VALUE_REF_NODES;
18
+ private readonly valueRefsEnabled;
19
+ private fileScopeValues;
20
+ private fileScopeValueCounts;
21
+ private valueRefScopes;
22
+ private errors;
23
+ private extractor;
24
+ private nodeStack;
25
+ private namespacePrefix;
26
+ private cppLocalFnPtrs;
27
+ private methodIndex;
28
+ private fnRefSpec;
29
+ private fnRefCandidates;
30
+ private vueStoreFile;
31
+ private sourceIsPreParsed;
32
+ constructor(filePath: string, source: string, language?: Language, options?: {
33
+ sourceIsPreParsed?: boolean;
34
+ });
35
+ /**
36
+ * Parse and extract from the source code
37
+ */
38
+ extract(): ExtractionResult;
39
+ /**
40
+ * Function-as-value capture (#756): if this node is one of the language's
41
+ * value-position containers (call arguments, assignment RHS, struct/object
42
+ * initializer, array/table literal), collect candidate function names from
43
+ * it. Candidates are gated & flushed at end-of-file (flushFnRefCandidates).
44
+ */
45
+ private maybeCaptureFnRefs;
46
+ /**
47
+ * Candidates-only scan of a subtree the main walkers won't traverse
48
+ * (top-level variable initializers). No extraction side effects. Halts at
49
+ * nested function definitions: their bodies are walked — and their
50
+ * candidates attributed — by extractFunction's own body walk.
51
+ */
52
+ private scanFnRefSubtree;
53
+ /**
54
+ * Gate captured function-as-value candidates and push survivors as
55
+ * `function_ref` unresolved references.
56
+ *
57
+ * The gate bounds volume and protects precision: a candidate survives only
58
+ * if its name matches a function/method DEFINED IN THIS FILE or a name this
59
+ * file imports/references. Everything else (locals, params, fields passed
60
+ * as arguments) is dropped before it ever reaches the database. Resolution
61
+ * then matches survivors against function/method nodes only
62
+ * (matchFunctionRef) and emits `references` edges — which callers/impact
63
+ * already traverse.
64
+ *
65
+ * Known v1 limit, deliberate: a C/C++ callback registered in a DIFFERENT
66
+ * translation unit than its definition (extern, no symbol imports to match)
67
+ * is not captured. Same-file registration — the dominant C pattern (static
68
+ * callback + same-file ops struct) — is.
69
+ */
70
+ private flushFnRefCandidates;
71
+ /**
72
+ * Record value-reference bookkeeping as nodes are created: file-scope const/var symbols with
73
+ * distinctive names become reference targets; function/method/const/var symbols become reader
74
+ * scopes whose bodies flushValueRefs scans.
75
+ */
76
+ private captureValueRefScope;
77
+ /**
78
+ * Emit same-file `references` edges from a symbol to the file-scope const/var it reads (TS/JS).
79
+ * The engine doesn't edge const→consumer, so impact analysis misses "change this table, affect
80
+ * its readers" (the ReScript-PR false positive). Same-file only (resolution is unambiguous),
81
+ * distinctive target names only (dodges the local-shadowing precision trap documented on
82
+ * function_ref), deduped per (reader, target). Default on (CODEGRAPH_VALUE_REFS=0 disables) +
83
+ * additive. Shadowed targets are pruned — see below.
84
+ */
85
+ private flushValueRefs;
86
+ /**
87
+ * Visit a node and extract information
88
+ */
89
+ private visitNode;
90
+ /**
91
+ * Create a Node object
92
+ */
93
+ private createNode;
94
+ /**
95
+ * Find first named child whose type is in the given list.
96
+ * Used to locate inner type nodes (e.g. enum_specifier inside a typedef).
97
+ */
98
+ private findChildByTypes;
99
+ /**
100
+ * Find a `packageTypes` child under the root, create a `namespace` node
101
+ * for it, and return its id so the caller can scope top-level
102
+ * declarations underneath. Returns null when no package header is
103
+ * present (script files, .kts without a package).
104
+ */
105
+ private extractFilePackage;
106
+ /**
107
+ * Qualified name for a method defined out-of-line via a receiver qualifier
108
+ * (`Type::method() {}`). The declarator spells the receiver RELATIVE to the
109
+ * enclosing namespace, so the active C++ namespace prefix must be composed
110
+ * in — `namespace sim { Output ManifestStartup::Apply() {} }` previously
111
+ * indexed as `ManifestStartup::Apply` while the class node carried
112
+ * `sim::ManifestStartup`, so qualified call sites
113
+ * (`sim::ManifestStartup::Apply(...)`) never resolved (#1291).
114
+ *
115
+ * The source may also re-spell part or all of the namespace path
116
+ * (`namespace sim { void sim::M::f() {} }` is legal), so the receiver is
117
+ * anchored at the first prefix segment it names: everything before that
118
+ * anchor is taken from the prefix, the receiver supplies the rest. A
119
+ * receiver naming no prefix segment gets the whole prefix prepended.
120
+ * `namespacePrefix` is only ever non-empty for C++, so every other
121
+ * receiver language (Go, Rust, Kotlin, Lua) passes through unchanged.
122
+ */
123
+ private composeReceiverQualifiedName;
124
+ /**
125
+ * Build qualified name from node stack
126
+ */
127
+ private buildQualifiedName;
128
+ /**
129
+ * Build an ExtractorContext for passing to language-specific visitNode hooks.
130
+ */
131
+ private makeExtractorContext;
132
+ /**
133
+ * Check if the current node stack indicates we are inside a class-like node
134
+ * (class, struct, union, interface, trait). File nodes do not count as class-like.
135
+ */
136
+ private isInsideClassLikeNode;
137
+ /**
138
+ * Ruby `CONST = …` assignment whose LHS is a `constant` node — a class/module
139
+ * (or top-level) constant worth extracting as a symbol even inside a class.
140
+ * Other languages don't give an assignment a `constant`-typed LHS, so this
141
+ * gate is effectively Ruby-only.
142
+ */
143
+ private isClassScopeConstantAssignment;
144
+ /**
145
+ * Extract a function
146
+ */
147
+ private extractFunction;
148
+ /**
149
+ * Detect a React component declared via an HOC wrapper whose result is itself a
150
+ * component: `forwardRef(...)`, `memo(...)`, `React.forwardRef/memo(...)`, and
151
+ * styled-components / emotion `styled.tag\`…\`` / `styled(Base)\`…\``. These
152
+ * initializers are a call / tagged-template (not a bare arrow), so the const is
153
+ * otherwise classified `constant` — and a constant is skipped by both the
154
+ * JSX-render edge synthesizer and component resolution, so `<Button/>` usages
155
+ * get no edge and callers/impact silently return empty (#841).
156
+ *
157
+ * Returns `{ inner }` — the inline render function to extract as the component
158
+ * body, or `null` when the wrapper has no inline function (`memo(Imported)`,
159
+ * `styled.button\`…\``) and only a bodyless component node is minted — or
160
+ * `undefined` when this initializer is not a recognized component wrapper.
161
+ */
162
+ private reactComponentHoc;
163
+ /**
164
+ * Emit a `component` node for an HOC-wrapped React component declaration (see
165
+ * reactComponentHoc). Named by the declarator (`Button`) and located at it so
166
+ * the node range spans the body. When the wrapper has an inline render
167
+ * function, its body is walked so the component's callees (hooks, helpers) are
168
+ * captured under the component node — matching how a plain
169
+ * `const Foo = () => …` arrow component already behaves.
170
+ */
171
+ private extractReactComponentNode;
172
+ /**
173
+ * Extract a class
174
+ */
175
+ private extractClass;
176
+ /**
177
+ * Extract a method
178
+ */
179
+ private extractMethod;
180
+ /**
181
+ * Extract an interface/protocol/trait
182
+ */
183
+ private extractInterface;
184
+ /**
185
+ * Extract a struct
186
+ */
187
+ private extractStruct;
188
+ /** Extract a union while sharing the member-walk behavior of aggregate types. */
189
+ private extractUnion;
190
+ /** Extract a struct-like declaration without conflating its semantic kind. */
191
+ private extractAggregate;
192
+ /**
193
+ * Extract an enum
194
+ */
195
+ private extractEnum;
196
+ /**
197
+ * Extract enum member names from an enum member node.
198
+ * Handles multi-case declarations (Swift: `case put, delete`) and single-case patterns.
199
+ */
200
+ private extractEnumMembers;
201
+ /**
202
+ * Extract a class property declaration (e.g. C# `public string Name { get; set; }`).
203
+ * Extracts as 'property' kind node inside the owning class.
204
+ */
205
+ private extractProperty;
206
+ /**
207
+ * Extract a class field declaration (e.g. Java field_declaration, C# field_declaration).
208
+ * Extracts each declarator as a 'field' kind node inside the owning class.
209
+ */
210
+ private extractField;
211
+ /**
212
+ * Extract function-valued properties of an object literal as named function
213
+ * nodes (named by their property key). Shared by the two object-of-functions
214
+ * shapes in extractVariable: the object as a direct const value, and the
215
+ * object returned by a store-initializer call. Handles both `key: () => {}` /
216
+ * `key: function() {}` pairs and method shorthand `key() {}`.
217
+ */
218
+ private extractObjectLiteralFunctions;
219
+ /** Property-key text with surrounding quotes stripped (`'foo'` → `foo`). */
220
+ private objectKeyName;
221
+ /**
222
+ * Given a `call_expression` initializer (`create((set, get) => ({...}))`),
223
+ * find the object literal RETURNED by a function argument — descending through
224
+ * nested call_expression arguments so middleware wrappers are unwrapped
225
+ * (`create(persist((set, get) => ({...}), {...}))`, devtools, immer,
226
+ * subscribeWithSelector). Returns null when no such object is found — the
227
+ * common case for ordinary call initializers — so this stays cheap and silent
228
+ * rather than guessing. Keyed purely on AST shape; no library names.
229
+ */
230
+ private findInitializerReturnedObject;
231
+ /**
232
+ * The object literal a function expression returns — either the `=> ({...})`
233
+ * arrow form (a parenthesized_expression wrapping an object) or a
234
+ * `=> { return {...} }` block. Returns null for any other body shape.
235
+ */
236
+ private functionReturnedObject;
237
+ /**
238
+ * RTK Query: from a `createApi({ ..., endpoints: build => ({...}) })` or a
239
+ * `baseApi.injectEndpoints({ endpoints: build => ({...}) })` call initializer,
240
+ * return the object literal of endpoint definitions (the object the `endpoints`
241
+ * arrow returns). Returns null for any other call — the common case — so this
242
+ * stays cheap and silent. Keyed on the RTK entry-point names (`createApi` /
243
+ * `injectEndpoints`) like the framework extractors key on their library APIs.
244
+ */
245
+ private findRtkEndpointsObject;
246
+ /**
247
+ * Extract each RTK Query endpoint (`getX: build.query({...})` / `build.mutation`)
248
+ * as a function node named by the endpoint key, spanning its primary handler
249
+ * (the `queryFn`/`query` arrow) so the fetch logic's calls attribute to the
250
+ * endpoint. Without this an endpoint exists only as an object-literal property —
251
+ * never a node — so the generated `useXQuery` hook can't be bridged to it.
252
+ */
253
+ private extractRtkEndpoints;
254
+ /**
255
+ * The primary handler arrow of a `build.query({ queryFn|query: (…) => … })`
256
+ * endpoint — prefers `queryFn`, then `query`, else the first function-valued
257
+ * property. Returns null when the endpoint is config-only (no handler arrow).
258
+ */
259
+ private rtkEndpointHandler;
260
+ /**
261
+ * RTK Query generated-hook bindings. `export const { useGetXQuery,
262
+ * useUpdateYMutation } = someApi` destructures the hooks RTK generates per
263
+ * endpoint off a createApi result. They are real exported symbols that
264
+ * components import, but destructured bindings aren't otherwise extracted —
265
+ * mint a function node per binding matching the RTK hook convention so the hook
266
+ * resolves and the synthesizer can bridge it to its endpoint. Gated tight by the
267
+ * caller (object-pattern off a bare identifier) + the name convention here, so
268
+ * ordinary destructures stay unextracted.
269
+ */
270
+ private extractRtkHookBindings;
271
+ /** Cheap per-file heuristic: the file carries ≥2 distinct Vue-store signals
272
+ * (defineStore/createStore/Vuex, or the actions/mutations/getters/namespaced
273
+ * vocabulary). Gates the non-exported `const actions = {…}` Vuex-module form so
274
+ * a stray `const actions` in unrelated code is never mistaken for a store. */
275
+ private looksLikeVueStoreFile;
276
+ /** True if an object literal has ≥1 inline function member (`key: () => …` /
277
+ * `method(){}`) — distinguishes an inline action map (zustand/SvelteKit form
278
+ * actions) from a Pinia SETUP store's all-shorthand `return { foo, bar }`
279
+ * (whose functions are body-local consts, walked normally instead). */
280
+ private objectHasInlineFunctions;
281
+ /** Vue store action/mutation/getter collections defined INLINE in a store call:
282
+ * `defineStore({ actions: {…}, getters: {…} })` (Pinia options form),
283
+ * `defineStore('id', { actions: {…} })`, `createStore({ mutations: {…} })`,
284
+ * `new Vuex.Store({ actions: {…} })`. Returns the object literals under those
285
+ * keys so their methods become nodes. Gated on the store-factory callee. */
286
+ private findVueStoreCollectionObjects;
287
+ /** Extract the methods of a store-config object's `actions`/`mutations`/`getters`
288
+ * properties. Used for the canonical Vuex MODULE shape `export default {
289
+ * namespaced, actions: {…}, mutations: {…} }` — object-literal methods aren't
290
+ * otherwise extracted, so the actions/mutations would never be nodes. */
291
+ private extractStoreCollectionMethods;
292
+ /** The SETUP function of a Pinia setup store (`defineStore('id', () => {…})`)
293
+ * — an arrow/function arg with a block body. Returns null for the options form
294
+ * (`defineStore({…})`) and for any non-defineStore call. The setup body's local
295
+ * function consts are the store's actions; the generic body walk doesn't reach
296
+ * them (nested functions are separate scopes), so they're extracted explicitly. */
297
+ private findPiniaSetupFn;
298
+ /** Extract a Pinia setup store's actions: the body-local `const foo = () => …`
299
+ * / `function foo(){}` declarations, named by the binding. (State refs and other
300
+ * consts are left to the normal value-extraction; only the functions matter as
301
+ * the store's callable surface.) */
302
+ private extractPiniaSetupBody;
303
+ /**
304
+ * Extract a variable declaration (const, let, var, etc.)
305
+ *
306
+ * Extracts top-level and module-level variable declarations.
307
+ * Captures the variable name and first 100 chars of initializer in signature for searchability.
308
+ */
309
+ private extractVariable;
310
+ /**
311
+ * Extract a type alias (e.g. `export type X = ...` in TypeScript).
312
+ * For languages like Go, resolveTypeAliasKind detects when the type_spec
313
+ * wraps a struct or interface definition and creates the correct node kind.
314
+ * Returns true if children should be skipped (struct/interface handled body visiting).
315
+ */
316
+ private extractTypeAlias;
317
+ /**
318
+ * Extract the method specs of a Go `interface_type` body as `method` nodes
319
+ * contained by the interface (e.g. `Marshal`, `Unmarshal` of a `Core`
320
+ * interface). tree-sitter-go names these `method_elem` (newer) or
321
+ * `method_spec` (older). Embedded interfaces (`Reader` inside `ReadWriter`)
322
+ * are `type_identifier`s, not methods, and are left to inheritance extraction.
323
+ */
324
+ private extractGoInterfaceMethods;
325
+ /**
326
+ * Surface the members of a TypeScript `type X = { ... }` (or intersection
327
+ * thereof) as `property` / `method` nodes under the type-alias node. Only
328
+ * walks the immediate object_type / intersection operands so anonymous
329
+ * nested object types inside generic arguments (`Promise<{ ok: true }>`)
330
+ * don't produce phantom members.
331
+ */
332
+ private extractTsTypeAliasMembers;
333
+ /**
334
+ * Surface the string-literal "names" of a TypeScript service/contract
335
+ * registry written as a tuple of generic instantiations:
336
+ *
337
+ * type MyServiceList = [
338
+ * Service<'query_apply_record', Req, Resp>,
339
+ * Service<'apply_confirm', Req, Resp>,
340
+ * ];
341
+ *
342
+ * Each `Service<'name', …>` tags an entry with a string-literal name that a
343
+ * dynamic factory (`createService<MyServiceList>()`) turns into a callable
344
+ * property (`api.query_apply_record(…)`). Static extraction otherwise never
345
+ * sees that name — it's a type argument, not a declaration — so
346
+ * `codegraph query query_apply_record` returned nothing (issue #634). We emit
347
+ * each name as a `method` node under the type alias (qualifiedName
348
+ * `MyServiceList::query_apply_record`) so it's searchable and resolvable as a
349
+ * symbol. (A call through the proxy, `api.query_apply_record(…)`, still
350
+ * resolves to the imported `api` binding — the receiver's type isn't known —
351
+ * so this fixes discoverability, not the per-method call edge.)
352
+ *
353
+ * Scope is deliberately narrow to avoid noise: only a string literal that is
354
+ * a DIRECT type argument of a `generic_type` that is itself a DIRECT element
355
+ * of a `tuple_type`. This excludes utility types (`Pick`/`Omit`/`Record` are
356
+ * never written as tuples) and string args nested deeper
357
+ * (`Service<'a', Pick<U, 'id'>>` yields only `a`, never `id`). Names must be
358
+ * valid identifiers, which also rules out route paths / arbitrary strings.
359
+ */
360
+ private extractTsTupleContractNames;
361
+ /**
362
+ * `foo: () => T` → property_signature whose type_annotation contains a
363
+ * `function_type`. Treat that as a method-shaped contract member, since
364
+ * the call site `obj.foo()` has identical semantics to `bar(): T`.
365
+ */
366
+ private isTsFunctionTypedProperty;
367
+ /**
368
+ * Extract an import
369
+ *
370
+ * Creates an import node with the full import statement stored in signature for searchability.
371
+ * Also creates unresolved references for resolution purposes.
372
+ */
373
+ private extractImport;
374
+ /**
375
+ * Emit one `imports` reference per named/default import binding (TS/JS family),
376
+ * attributed to the file node — so the resolver links each imported symbol to
377
+ * the file that DEFINES it.
378
+ *
379
+ * Importing a symbol IS a dependency, but extraction only emits references for
380
+ * calls, instantiations, type annotations, and inheritance. A symbol that's
381
+ * imported and then only re-exported (`export { X } from './x'`), placed in a
382
+ * registry array (`[expressResolver, …]`), passed as an argument, or used in
383
+ * JSX produced NO cross-file edge at all — so the providing file showed a
384
+ * false "0 dependents" and was invisible to blast-radius / `affected`. The
385
+ * resolver maps the local name (alias-aware) to the provider's definition and
386
+ * creates a cross-file `imports` edge; `getFileDependents` picks it up, while
387
+ * `getImpactRadius` keeps it as a bounded leaf (the importing file node).
388
+ *
389
+ * Namespace imports (`import * as NS`) bind a whole module: `NS.member` calls
390
+ * resolve on their own, but a namespace used ONLY via a value-member read
391
+ * (`NS.SOME_CONST`) would leave no edge — so we also emit the namespace local
392
+ * name, which the resolver links to the module FILE as a dependency backstop.
393
+ */
394
+ private emitImportBindingRefs;
395
+ /**
396
+ * Emit one `imports` reference per re-exported binding of a
397
+ * `export { A, B as C } from './y'` statement, attributed to the file node —
398
+ * so a barrel that re-exports from another module records a dependency on it.
399
+ *
400
+ * Links the SOURCE-side name (`A`, the `name` field — not the local alias
401
+ * `C`), since that is what the source module defines. `export * from './y'`
402
+ * has no named bindings to attribute and `export { default as X }` can't be
403
+ * name-matched, so both are skipped.
404
+ */
405
+ private emitReExportRefs;
406
+ /**
407
+ * Emit one `imports` reference per binding of a Rust `use` declaration —
408
+ * `use crate::m::Item`, `use crate::m::{A, B as C}`, `pub use self::sub::Item`.
409
+ * Emits the FULL path (e.g. `self::sub::Item`, not just `Item`) so the resolver
410
+ * can resolve the module prefix to a file and find the leaf symbol there —
411
+ * disambiguating common-name re-exports (`pub use self::read::read`, where the
412
+ * leaf `read` collides with many same-named symbols). Falls back to name-match
413
+ * on the leaf when the path can't be resolved. `use ...::*` has no leaf binding.
414
+ */
415
+ private emitRustUseBindingRefs;
416
+ /**
417
+ * Emit an `imports` reference for a single PHP `use Foo\Bar\Baz;` (grouped
418
+ * imports `use Foo\{A, B}` are handled where their per-item nodes are created).
419
+ * The reference targets the namespace-qualified `Foo\Bar::Baz` form classes are
420
+ * stored under (see the PHP `namespace` capture), so it resolves to the RIGHT
421
+ * definition — Laravel has many same-named contracts (`Factory`, `Dispatcher`,
422
+ * `Guard`) across namespaces that a bare-name match can't disambiguate.
423
+ */
424
+ private emitPhpUseRefs;
425
+ /**
426
+ * Ruby `require`/`require_relative` → an `imports` ref to the required FILE.
427
+ * `require "sidekiq/fetch"` is load-path-relative (matched by file-path suffix
428
+ * via {@link matchByFilePath}); `require_relative "../foo"` is resolved against
429
+ * this file's directory. Bare gem/stdlib requires (`require "json"`, no slash)
430
+ * are skipped — they're external. The path form (a `/` + `.rb`) makes the ref
431
+ * resolve to the file node, so a file pulled in only by `require` — not by a
432
+ * resolved constant/call — still records a cross-file dependency.
433
+ */
434
+ private emitRubyRequireRefs;
435
+ /** Convert a PHP FQN `Foo\Bar\Baz` to the stored `Foo\Bar::Baz` and emit an `imports` ref. */
436
+ private pushPhpUseRef;
437
+ /**
438
+ * Emit one `imports` reference per name imported in a Python
439
+ * `from module import A, B as C` statement, attributed to the file node — so
440
+ * the resolver links each imported name to the module that DEFINES it.
441
+ *
442
+ * Same recall gap as TS: extraction only emitted references for calls,
443
+ * instantiations, and inheritance, so a name imported and then used in a
444
+ * non-call position (a list/dict literal, a default argument, a decorator
445
+ * target, or simply re-exported through an `__init__.py` barrel) produced no
446
+ * cross-file edge — the providing module showed a false "0 dependents". Links
447
+ * the LOCAL name (alias when present, since that's what the resolver's import
448
+ * mapping keys on); `from module import *` has no names to attribute.
449
+ */
450
+ private emitPyFromImportRefs;
451
+ /**
452
+ * Extract a function call
453
+ */
454
+ /**
455
+ * The module an Erlang gen_server target expression statically names, or
456
+ * null when it's dynamic (pid/var/tuple form). Static shapes:
457
+ * - a bare atom — either this module or another one; OTP's dominant
458
+ * registration convention (`{local, ?MODULE}`) names a server process
459
+ * after its module, so `gen_server:call(other_mod, …)` reaches
460
+ * `other_mod`'s handlers. A registered name that matches no module
461
+ * resolves to nothing downstream (the qualified ref just drops).
462
+ * - `?MODULE`, or a macro the file defines as `?MODULE`
463
+ * (`-define(SERVER, ?MODULE)` — the standard self idiom)
464
+ * - a macro the file defines as a bare atom
465
+ * (`-define(STORE, kv_store)` — the cross-module variant)
466
+ * The macro tables are memoized per file (single entry — extraction is
467
+ * file-sequential).
468
+ */
469
+ private erlangServerMacroFile;
470
+ private erlangSelfMacros;
471
+ private erlangAtomMacros;
472
+ private resolveErlangGenServerTarget;
473
+ private extractCall;
474
+ /**
475
+ * `new Foo(...)` / `Foo::new(...)` / object_creation_expression —
476
+ * emit an `instantiates` reference to the class name. The resolver
477
+ * then links it to the class node, producing the `instantiates`
478
+ * edge that powers "what creates instances of X" queries.
479
+ *
480
+ * Children are still walked so nested calls inside the constructor
481
+ * arguments (`new Foo(bar())`) get their own `calls` references.
482
+ */
483
+ /**
484
+ * VB.NET `New Invoice(1)` is syntactically ambiguous between constructing
485
+ * Invoice with an argument and allocating an Invoice array of bound 1; the
486
+ * grammar parses the parenthesized form as array_creation_expression. A
487
+ * user-defined type with no `{...}` array initializer is overwhelmingly a
488
+ * constructor call, so treat it as an instantiation. Predefined element
489
+ * types (`New Byte(1023)`) and brace-initialized forms stay arrays.
490
+ */
491
+ private isVbnetConstructorShapedArrayCreation;
492
+ private extractInstantiation;
493
+ /**
494
+ * Is this C++ `declaration` a stack/direct-initialization object construction
495
+ * that invokes a constructor — `Calculator calc(0)` (direct-init) or
496
+ * `Widget w{1, 2}` (brace-init) — as opposed to a plain variable or a
497
+ * function declaration? Used to emit an `instantiates` edge for the
498
+ * call-less construction syntax (#1035); heap `new T(...)` is handled
499
+ * separately by INSTANTIATION_KINDS.
500
+ *
501
+ * Two signals, both required:
502
+ * - the `type` field is a class-like NAMED type (`type_identifier`,
503
+ * `template_type`, or `qualified_identifier`). Primitives (`int x(0)`),
504
+ * `auto` (`placeholder_type_specifier` — that form always carries a real
505
+ * `call_expression`, already handled), and sized specifiers are excluded —
506
+ * they construct no class; and
507
+ * - a declarator carries constructor arguments: an `init_declarator` whose
508
+ * `value` is an `argument_list` (`(args)`) or `initializer_list` (`{args}`).
509
+ * This skips default construction `Calculator c;` (no value) and the
510
+ * most-vexing-parse `Calculator c();` (a bodyless `function_declarator`,
511
+ * a function decl — not a construction).
512
+ */
513
+ private isCppStackConstruction;
514
+ /**
515
+ * Static-member / value-read pass. A type/enum/class used only via a member
516
+ * VALUE — `Enum.value`, `Type.CONST`, `Colors.red`, `Foo::BAR` — recorded no
517
+ * edge, because the body walker only handled CALLS (`Type.method()`). So a
518
+ * type referenced only by an enum value or a static field looked like nothing
519
+ * depended on it (the residual frontier across Dart/Java/C#/Swift/Kotlin/PHP).
520
+ * Emit a `references` edge to the capitalized receiver. Gated to languages
521
+ * where types are Capitalized by convention, and skipped when the access is a
522
+ * call's callee (the call extractor already links the method).
523
+ */
524
+ private extractStaticMemberRef;
525
+ private pushStaticMemberRef;
526
+ /**
527
+ * Find a `class_body` child of an `object_creation_expression` — the
528
+ * marker for an anonymous class (`new T() { ... }`). Returns the body
529
+ * node so the caller can walk it as the anon class's members.
530
+ */
531
+ private findAnonymousClassBody;
532
+ /**
533
+ * Extract a Java/C# anonymous class — `new T() { ...members }`. Emits a
534
+ * `class` node named `<T$anon@line>`, an `extends` reference to T (so
535
+ * Phase 5.5 interface-impl can bridge), and walks the body so its
536
+ * `method_declaration` members become method nodes under the anon class.
537
+ *
538
+ * Why this matters: without anon-class extraction, the overrides inside
539
+ * a lambda-returned `new T() { @Override int foo(){...} }` are not nodes,
540
+ * so a call through T.foo (the abstract parent method) has no static
541
+ * target — the agent has to Read the file to find the implementation.
542
+ */
543
+ private extractAnonymousClass;
544
+ /**
545
+ * Scan `declNode` and its preceding siblings (within the parent's
546
+ * named children) for decorator nodes, emitting a `decorates`
547
+ * reference from `decoratedId` to each decorator's function name.
548
+ *
549
+ * Why preceding siblings: in TypeScript, `@Foo class Bar {}` parses
550
+ * as an `export_statement` (or top-level wrapper) with the
551
+ * `decorator` as a child *before* the `class_declaration` — so the
552
+ * decorator isn't a child of the class itself. For methods/
553
+ * properties, the decorator IS a direct child of the declaration,
554
+ * so we also scan declNode.namedChildren.
555
+ *
556
+ * Idempotent across grammars: if neither location yields decorators
557
+ * (most non-decorator-using languages), the function is a no-op.
558
+ */
559
+ private extractDecoratorsFor;
560
+ /**
561
+ * Visit function body and extract calls (and structural nodes).
562
+ *
563
+ * In addition to call expressions, this also detects class/struct/enum
564
+ * definitions inside function bodies. This handles two cases:
565
+ * 1. Local class/struct/enum definitions (valid in C++, Java, etc.)
566
+ * 2. C++ macro misparsing — macros like NLOHMANN_JSON_NAMESPACE_BEGIN cause
567
+ * tree-sitter to interpret the namespace block as a function_definition,
568
+ * hiding real class/struct/enum nodes inside the "function body".
569
+ */
570
+ /**
571
+ * Rocket route-registration macros — `routes![a::b::handler, c::d::other]`
572
+ * and `catchers![not_found]`. Tree-sitter leaves a macro body as a flat
573
+ * `token_tree` of raw tokens (`identifier`, `::`, `,`), so the handler paths
574
+ * are never seen as references and each handler fn looks like it has no caller
575
+ * — it's mounted by Rocket at runtime, not called by in-repo code, so its file
576
+ * shows 0 dependents. Walk the token tree, reconstruct each comma-separated
577
+ * path, and emit a `references` edge; the Rust path resolver
578
+ * (`resolveRustPathReference`) then links it to the handler fn. The handler
579
+ * names are explicit in source, so this is precise static extraction, not a
580
+ * heuristic — no false edges (resolution still validates each path).
581
+ */
582
+ private extractRustRouteMacro;
583
+ /**
584
+ * Record a C++ local function-pointer binding (`local = &fn` / `&fn<…>` /
585
+ * `&ns::fn<…>`) for the CURRENT enclosing symbol, so calls through the local
586
+ * resolve to the real target (see cppLocalFnPtrs). Only the address-of shape
587
+ * is accepted — a bare-identifier RHS (`auto x = y;`) is any value copy, and
588
+ * linking through it would guess.
589
+ */
590
+ private recordCppFnPtrBinding;
591
+ private visitFunctionBody;
592
+ /**
593
+ * Extract inheritance relationships
594
+ */
595
+ private extractInheritance;
596
+ /**
597
+ * Rust `impl Trait for Type` — creates an implements edge from Type to Trait.
598
+ * For plain `impl Type { ... }` (no trait), no inheritance edge is needed.
599
+ */
600
+ private extractRustImplItem;
601
+ /**
602
+ * Find a previously-extracted node by name (used for back-references like impl blocks)
603
+ */
604
+ private findNodeByName;
605
+ /**
606
+ * Languages that support type annotations (TypeScript, etc.)
607
+ */
608
+ private readonly TYPE_ANNOTATION_LANGUAGES;
609
+ /**
610
+ * PHP pseudo-types and `self`/`static`/`parent` that aren't project symbols.
611
+ * (Scalar primitives parse as `primitive_type` and are skipped structurally.)
612
+ */
613
+ private readonly PHP_PSEUDO_TYPES;
614
+ /**
615
+ * Built-in/primitive type names that shouldn't create references
616
+ */
617
+ private readonly BUILTIN_TYPES;
618
+ /**
619
+ * Extract type references from type annotations on a function/method/field node.
620
+ * Creates 'references' edges for parameter types, return types, and field types.
621
+ */
622
+ private extractTypeAnnotations;
623
+ /**
624
+ * Extract C# type references from a node that owns a type position —
625
+ * a method/constructor declaration, a property declaration, or a
626
+ * field declaration (which wraps `variable_declaration → type`).
627
+ *
628
+ * Walks ONLY into known type fields, so parameter names like
629
+ * `request` in `Build(UserDto request)` are never mis-emitted as
630
+ * type references. Once inside a type subtree, `walkCsharpTypePosition`
631
+ * recognizes C#'s actual type-leaf node kinds (`identifier`,
632
+ * `qualified_name`, `generic_name`, `array_type`, `nullable_type`,
633
+ * `tuple_type`, …) — none of which are `type_identifier`. Closes #381.
634
+ */
635
+ private extractCsharpTypeRefs;
636
+ /**
637
+ * Record the dependencies declared by a C# PRIMARY CONSTRUCTOR
638
+ * (`class Svc(IRepo repo, [FromKeyedServices("k")] ICache cache) { … }`,
639
+ * C# 12+). The parameter list hangs off the class/struct/record declaration
640
+ * as an unnamed-field `parameter_list` child (not the `parameters` field a
641
+ * method uses), so it's found by node type. Each parameter's declared type
642
+ * becomes a `references` edge from the owning type — these are exactly the
643
+ * services a DI-registered type depends on, so impact/blast-radius and
644
+ * "who depends on this contract" now see them. No-op when there's no primary
645
+ * constructor. (#237)
646
+ */
647
+ private extractCsharpPrimaryCtorParamRefs;
648
+ /**
649
+ * Walk a C# subtree that is KNOWN to be in a type position
650
+ * (return type, parameter type, property type, field type, generic
651
+ * argument). Identifiers here are type names, not parameter names.
652
+ */
653
+ private walkCsharpTypePosition;
654
+ /**
655
+ * Extract PHP type references from a method/function/property declaration.
656
+ * Walks ONLY type positions: each parameter's type child (inside
657
+ * `formal_parameters`), the return type, and a property's type — all
658
+ * `named_type` / `optional_type` / `union_type` / … direct children. Parameter
659
+ * and property NAMES are `variable_name` (`$x`), never type nodes, so they
660
+ * can't be mis-emitted.
661
+ */
662
+ private extractPhpTypeRefs;
663
+ /** Walk a PHP subtree KNOWN to be in a type position; emit class/interface refs. */
664
+ private walkPhpTypePosition;
665
+ /**
666
+ * Extract type references from a variable's type annotation.
667
+ */
668
+ private extractVariableTypeAnnotation;
669
+ /**
670
+ * Recursively walk a subtree and extract all type_identifier references.
671
+ * Handles unions, intersections, generics, arrays, etc.
672
+ */
673
+ private extractTypeRefsFromSubtree;
674
+ /**
675
+ * Handle Pascal-specific AST structures.
676
+ * Returns true if the node was fully handled and children should be skipped.
677
+ */
678
+ private visitPascalNode;
679
+ /**
680
+ * Extract a Pascal declType node (class, interface, enum, or type alias)
681
+ */
682
+ private extractPascalDeclType;
683
+ /**
684
+ * Extract Pascal uses clause into individual import nodes
685
+ */
686
+ private extractPascalUses;
687
+ /**
688
+ * Extract a Pascal constant declaration
689
+ */
690
+ private extractPascalConst;
691
+ /**
692
+ * Extract Pascal inheritance (extends/implements) from declClass typeref children
693
+ */
694
+ private extractPascalInheritance;
695
+ /**
696
+ * Extract calls and resolve method context from a Pascal defProc (implementation body).
697
+ * Does not create a new node — the declaration was already captured from the interface section.
698
+ */
699
+ private extractPascalDefProc;
700
+ /**
701
+ * Extract function calls from a Pascal expression
702
+ */
703
+ private extractPascalCall;
704
+ /**
705
+ * Extract a PAREN-LESS Pascal method/procedure call (`Obj.Method;`,
706
+ * `TFoo.GetInstance.DoIt;`). Pascal lets a no-arg method drop its parens, so it
707
+ * parses as a bare `exprDot` (not an `exprCall`). A bare `exprDot` is
708
+ * syntactically identical to a field/property access, so this is only ever
709
+ * called for a STATEMENT-level exprDot (caller-gated): a bare `Obj.Field;`
710
+ * statement is a no-op, so a statement-level dot expression is a call. (An
711
+ * exprDot in assignment LHS/RHS or a condition is left alone — there it really
712
+ * can be a field/property read.)
713
+ */
714
+ private extractPascalParenlessCall;
715
+ /**
716
+ * Recursively visit a Pascal block/statement tree for call expressions
717
+ */
718
+ private visitPascalBlock;
719
+ }
720
+ /**
721
+ * Extract nodes and edges from source code.
722
+ *
723
+ * If `frameworkNames` is provided, framework-specific extractors matching
724
+ * those names and the file's language are run after the tree-sitter pass.
725
+ * Their nodes/references/errors are merged into the returned result.
726
+ */
727
+ export declare function extractFromSource(filePath: string, source: string, language?: Language, frameworkNames?: string[]): ExtractionResult;
728
+ //# sourceMappingURL=tree-sitter.d.ts.map