@quolu/lattice 0.1.0

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