scip-query 0.23.0 → 0.26.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 (650) hide show
  1. package/CHANGELOG.md +491 -2
  2. package/README.md +111 -122
  3. package/dist/augment-vue-worker.js +1 -1
  4. package/dist/by-kind-PRVFAGTQ.js +2 -0
  5. package/dist/call-graph-DVPAQV2F.js +2 -0
  6. package/dist/call-graph-evidence-CUtj8V2I.d.ts +19 -0
  7. package/dist/chunk-2FSBGL5P.js +2 -0
  8. package/dist/chunk-2HLAFUCY.js +2 -0
  9. package/dist/chunk-2IWUT6CJ.js +3 -0
  10. package/dist/chunk-2KNN7GTQ.js +2 -0
  11. package/dist/chunk-2LHXRE2B.js +8 -0
  12. package/dist/{chunk-EG2CPZMJ.js → chunk-2YXE77TJ.js} +2 -2
  13. package/dist/chunk-36SGVCGX.js +2 -0
  14. package/dist/chunk-3ABBFPTP.js +2 -0
  15. package/dist/chunk-3IVFU4FD.js +3 -0
  16. package/dist/chunk-3JIQS44J.js +7 -0
  17. package/dist/chunk-3ZRB6DNK.js +7 -0
  18. package/dist/{chunk-6YTSKJJ3.js → chunk-42EOW5VI.js} +1 -1
  19. package/dist/{chunk-6I6L7Z62.js → chunk-4BHGBMNO.js} +2 -2
  20. package/dist/chunk-4BP3UBDG.js +2 -0
  21. package/dist/chunk-4D6RO7G4.js +2 -0
  22. package/dist/chunk-4FEWQ6RH.js +2 -0
  23. package/dist/chunk-4IGEOBG7.js +2 -0
  24. package/dist/chunk-4QZXBUKC.js +2 -0
  25. package/dist/chunk-4WBDEVX2.js +4 -0
  26. package/dist/chunk-4WCUBZU3.js +8 -0
  27. package/dist/chunk-4WTUBQ36.js +40 -0
  28. package/dist/chunk-4XQ4O6IM.js +3 -0
  29. package/dist/chunk-55UQAMZO.js +4 -0
  30. package/dist/chunk-5D2LVK7O.js +125 -0
  31. package/dist/chunk-5IYJ56TT.js +2 -0
  32. package/dist/chunk-5PLMJC7Q.js +2 -0
  33. package/dist/chunk-5TNQJUR2.js +5 -0
  34. package/dist/chunk-62BDNPMI.js +2 -0
  35. package/dist/chunk-64DZ5TXR.js +7 -0
  36. package/dist/chunk-65245JCM.js +2 -0
  37. package/dist/chunk-6FFVZZL4.js +2 -0
  38. package/dist/chunk-6KO5JHAR.js +2 -0
  39. package/dist/chunk-6LRXOOSX.js +2 -0
  40. package/dist/chunk-6LSEIIF7.js +2 -0
  41. package/dist/chunk-6YMNWD3H.js +6 -0
  42. package/dist/chunk-72AD6ZRR.js +5 -0
  43. package/dist/chunk-73AAKPUC.js +4 -0
  44. package/dist/chunk-76CZ77DF.js +2 -0
  45. package/dist/chunk-7VPEEAAG.js +2 -0
  46. package/dist/chunk-7WTPQ4NX.js +14 -0
  47. package/dist/chunk-7Y5T6XDP.js +2 -0
  48. package/dist/chunk-A2IIGFMJ.js +5 -0
  49. package/dist/chunk-AB5KCTEV.js +2 -0
  50. package/dist/chunk-AC566WBP.js +6 -0
  51. package/dist/chunk-AGWFSTXC.js +3 -0
  52. package/dist/chunk-AOSIYPTA.js +2 -0
  53. package/dist/chunk-AUVEWPIF.js +2 -0
  54. package/dist/chunk-B56T42J3.js +25 -0
  55. package/dist/chunk-BIQEF5NE.js +2 -0
  56. package/dist/chunk-BL6XJKTA.js +3 -0
  57. package/dist/chunk-BMKOQJRI.js +2 -0
  58. package/dist/chunk-BOZ4EXBB.js +3 -0
  59. package/dist/chunk-BUTWYEPH.js +2 -0
  60. package/dist/chunk-BZB4QPIP.js +2 -0
  61. package/dist/{chunk-ILTDAWEF.js → chunk-CE357GEE.js} +4 -4
  62. package/dist/chunk-CFN45HFP.js +2 -0
  63. package/dist/chunk-CFYMZFXT.js +368 -0
  64. package/dist/chunk-CN5EH7O3.js +2 -0
  65. package/dist/chunk-D254DNNQ.js +4 -0
  66. package/dist/chunk-D3FDISIC.js +2 -0
  67. package/dist/chunk-D3NX5XIE.js +3 -0
  68. package/dist/chunk-DA7RPPDF.js +3 -0
  69. package/dist/chunk-DDMC3FON.js +3 -0
  70. package/dist/chunk-DIO3FUSG.js +2 -0
  71. package/dist/chunk-DJ2NNSUK.js +3 -0
  72. package/dist/chunk-DKYQIM3C.js +18 -0
  73. package/dist/{chunk-JTQVMR42.js → chunk-DOOEL2IV.js} +2 -2
  74. package/dist/chunk-DVFP6PZI.js +2 -0
  75. package/dist/chunk-E3FDPXZK.js +2 -0
  76. package/dist/chunk-E7YNJLCB.js +2 -0
  77. package/dist/chunk-EFGW5JPH.js +2 -0
  78. package/dist/chunk-EJVTR244.js +13 -0
  79. package/dist/chunk-EOV7RTRZ.js +2 -0
  80. package/dist/chunk-ETOIKRHO.js +2 -0
  81. package/dist/chunk-EYK3ZAO2.js +3 -0
  82. package/dist/chunk-F2V2LPET.js +52 -0
  83. package/dist/chunk-F4LUHJTF.js +2 -0
  84. package/dist/chunk-F4PUT6IT.js +2 -0
  85. package/dist/chunk-F56GCXXS.js +5 -0
  86. package/dist/chunk-FC2EVQRM.js +2 -0
  87. package/dist/chunk-FL7NBMHP.js +3 -0
  88. package/dist/chunk-FMRN2TRL.js +3 -0
  89. package/dist/chunk-FVULPZDF.js +20 -0
  90. package/dist/chunk-GCKCF5FL.js +43 -0
  91. package/dist/chunk-GH2PYF46.js +2 -0
  92. package/dist/chunk-GHJAGXIP.js +2 -0
  93. package/dist/{chunk-WIWY3CRX.js → chunk-GMVSHUKZ.js} +2 -2
  94. package/dist/chunk-GS6KDO4R.js +2 -0
  95. package/dist/chunk-GUUBXNN7.js +2 -0
  96. package/dist/chunk-GVWX5T43.js +80 -0
  97. package/dist/chunk-GZKFETP5.js +2 -0
  98. package/dist/chunk-H4EQHO6J.js +9 -0
  99. package/dist/chunk-H73WY2RM.js +2 -0
  100. package/dist/chunk-H75GSPRV.js +60 -0
  101. package/dist/chunk-HDR3AHSV.js +61 -0
  102. package/dist/chunk-HQBSL74Y.js +2 -0
  103. package/dist/chunk-HRRFKWPZ.js +2 -0
  104. package/dist/chunk-HXENDJC6.js +2 -0
  105. package/dist/chunk-IIBAZNSW.js +21 -0
  106. package/dist/chunk-INLMWEUU.js +12 -0
  107. package/dist/chunk-IWQPAF4F.js +2 -0
  108. package/dist/chunk-IZJ6YUKP.js +35 -0
  109. package/dist/chunk-J2TMAIN5.js +60 -0
  110. package/dist/chunk-J5FJMODQ.js +142 -0
  111. package/dist/chunk-J7HZPIO3.js +2 -0
  112. package/dist/chunk-JEVRKFRL.js +2 -0
  113. package/dist/chunk-JFXSGAEB.js +30 -0
  114. package/dist/chunk-JVRTHGFS.js +3 -0
  115. package/dist/chunk-JYWEX7RR.js +360 -0
  116. package/dist/chunk-K3YL22N6.js +2 -0
  117. package/dist/chunk-K4CN7GXK.js +12 -0
  118. package/dist/chunk-K5TBVXU4.js +30 -0
  119. package/dist/chunk-KDDIE2DP.js +9 -0
  120. package/dist/chunk-KHWRRPV4.js +2 -0
  121. package/dist/chunk-KI6NBKDY.js +14 -0
  122. package/dist/chunk-KU3QRSTH.js +2 -0
  123. package/dist/chunk-KZBJWZJB.js +2 -0
  124. package/dist/chunk-L7GFM3NP.js +3 -0
  125. package/dist/chunk-LMO6PK3V.js +35 -0
  126. package/dist/chunk-LN4YXJJU.js +2 -0
  127. package/dist/chunk-LOVIZBJ4.js +43 -0
  128. package/dist/chunk-LPCRK4A2.js +11 -0
  129. package/dist/chunk-MMHZKBFA.js +2 -0
  130. package/dist/{chunk-M2O5NY6W.js → chunk-MOQQBQRD.js} +2 -2
  131. package/dist/chunk-N2WN6I3L.js +2 -0
  132. package/dist/chunk-N3ORQT7L.js +2 -0
  133. package/dist/chunk-NAZ3RAIW.js +2 -0
  134. package/dist/chunk-NDUNO5JQ.js +2 -0
  135. package/dist/chunk-NEIWRNAZ.js +4 -0
  136. package/dist/chunk-NJJMVD65.js +2 -0
  137. package/dist/chunk-NLOQOBXI.js +20 -0
  138. package/dist/chunk-NOLZOVCU.js +2 -0
  139. package/dist/chunk-NOWINRRN.js +2 -0
  140. package/dist/chunk-NZAXKGRL.js +16 -0
  141. package/dist/chunk-O2C4UILI.js +2 -0
  142. package/dist/chunk-O3RHA6ZT.js +3 -0
  143. package/dist/chunk-O4UZSPPI.js +3 -0
  144. package/dist/chunk-OGFV2BUX.js +2 -0
  145. package/dist/chunk-OZCJXZK6.js +499 -0
  146. package/dist/chunk-P6ODM7BY.js +2 -0
  147. package/dist/{chunk-XBGWL66K.js → chunk-PAVGPRHJ.js} +2 -2
  148. package/dist/chunk-PH52RA7D.js +2 -0
  149. package/dist/chunk-PKN354TH.js +3 -0
  150. package/dist/chunk-PWOASWEG.js +11 -0
  151. package/dist/chunk-QIWXRW72.js +2 -0
  152. package/dist/chunk-QJRMOK5N.js +2 -0
  153. package/dist/{chunk-YXPUP5G2.js → chunk-QOIXNWQR.js} +2 -2
  154. package/dist/chunk-QXEUDXBT.js +3 -0
  155. package/dist/chunk-QYUVVBMR.js +6 -0
  156. package/dist/chunk-QZ7KQZRN.js +2 -0
  157. package/dist/chunk-R6LQBUDH.js +2 -0
  158. package/dist/chunk-RBS42E55.js +20 -0
  159. package/dist/chunk-RSJKPCFX.js +26 -0
  160. package/dist/chunk-S6CZA3MV.js +2 -0
  161. package/dist/chunk-STMVAHJP.js +2 -0
  162. package/dist/chunk-SYVPTTVW.js +2 -0
  163. package/dist/chunk-T3I6NHBH.js +2 -0
  164. package/dist/chunk-T6DK3ZP7.js +2 -0
  165. package/dist/chunk-TKD34PHN.js +4 -0
  166. package/dist/chunk-TNNQFH7W.js +2 -0
  167. package/dist/chunk-TNV7SSUF.js +2 -0
  168. package/dist/chunk-TO7ZR3EH.js +8 -0
  169. package/dist/chunk-TOU3CHK4.js +2 -0
  170. package/dist/chunk-TRBI4UKT.js +2 -0
  171. package/dist/chunk-TZCVNCAN.js +4 -0
  172. package/dist/chunk-U4LZA5LL.js +3 -0
  173. package/dist/chunk-U5RIG3JP.js +3 -0
  174. package/dist/chunk-UP5KXN2I.js +2 -0
  175. package/dist/chunk-UQFR3NDH.js +5 -0
  176. package/dist/chunk-UXYXF7GV.js +2 -0
  177. package/dist/chunk-VB3GOKOS.js +2 -0
  178. package/dist/chunk-VF5JZICY.js +2 -0
  179. package/dist/chunk-VTY3VK6E.js +2 -0
  180. package/dist/chunk-VX2O4RIS.js +2 -0
  181. package/dist/chunk-WKPV2TDZ.js +2 -0
  182. package/dist/chunk-WOFQ5DTB.js +2 -0
  183. package/dist/chunk-WS4C6TCK.js +2 -0
  184. package/dist/chunk-WXU3DGPU.js +2 -0
  185. package/dist/chunk-X6RMKHJQ.js +81 -0
  186. package/dist/{chunk-4ILJCCXV.js → chunk-XHMN6ZX7.js} +2 -2
  187. package/dist/chunk-XHTVFLWW.js +2 -0
  188. package/dist/chunk-XKIDJCIK.js +2 -0
  189. package/dist/chunk-XTYTYZPT.js +2 -0
  190. package/dist/chunk-Y2JHHTTA.js +2 -0
  191. package/dist/chunk-YGVRMGYN.js +4 -0
  192. package/dist/chunk-YNQCGEQE.js +2 -0
  193. package/dist/chunk-YOQVEXVE.js +14 -0
  194. package/dist/chunk-YRT2WLYY.js +2 -0
  195. package/dist/chunk-YTAP5Y2G.js +2 -0
  196. package/dist/chunk-YTYWI7VB.js +2 -0
  197. package/dist/chunk-YULZRALL.js +2 -0
  198. package/dist/chunk-Z33WQG4Q.js +2 -0
  199. package/dist/chunk-ZGTYGDMF.js +16 -0
  200. package/dist/chunk-ZHMRSZFD.js +43 -0
  201. package/dist/chunk-ZHSP366W.js +10 -0
  202. package/dist/chunk-ZIBYCYKK.js +7 -0
  203. package/dist/{chunk-GAS2LJMP.js → chunk-ZLADLUE6.js} +3 -3
  204. package/dist/chunk-ZO4YXUT6.js +4 -0
  205. package/dist/{chunk-HYO3NP5Q.js → chunk-ZR4HBC2H.js} +2 -2
  206. package/dist/cli-main.js +6 -6
  207. package/dist/cli.js +1 -1
  208. package/dist/{code-B17qEMbt.d.ts → code-BNyrCF3_.d.ts} +3 -2
  209. package/dist/code-IL5WH3NZ.js +2 -0
  210. package/dist/code-result-json-ANTBEDFP.js +4 -0
  211. package/dist/command-descriptors-HEEMDHTU.js +222 -0
  212. package/dist/deps-EOWFC6FD.js +2 -0
  213. package/dist/direct-navigation-Y5B6OSIQ.js +3 -0
  214. package/dist/{exploration-topology-BG4v30HZ.d.ts → exploration-topology-CSgEyAz-.d.ts} +3 -1
  215. package/dist/files-K4AI3JUM.js +2 -0
  216. package/dist/frontend-profile-roles-D7eCum8P.d.ts +10 -0
  217. package/dist/{health-CPp2Jf1Z.d.ts → health-BtfmNrfa.d.ts} +58 -74
  218. package/dist/hierarchy-6W5NDIFI.js +2 -0
  219. package/dist/imports-WH365QY4.js +2 -0
  220. package/dist/index.d.ts +13 -1
  221. package/dist/index.js +1 -1
  222. package/dist/members-K3PHMF5S.js +2 -0
  223. package/dist/methods-E7KVMBX4.js +2 -0
  224. package/dist/output-continuation-command-BJSY67SN.js +3 -0
  225. package/dist/output-pagination-UZJ5ACIX.js +24 -0
  226. package/dist/postinstall.js +1 -1
  227. package/dist/project-reindex-EP24WT4X.js +3 -0
  228. package/dist/queries/affected.js +1 -1
  229. package/dist/queries/architecture.d.ts +15 -4
  230. package/dist/queries/architecture.js +1 -1
  231. package/dist/queries/bottlenecks.js +1 -1
  232. package/dist/queries/by-kind.js +1 -1
  233. package/dist/queries/call-graph.d.ts +3 -1
  234. package/dist/queries/call-graph.js +1 -1
  235. package/dist/queries/change-surface.d.ts +1 -0
  236. package/dist/queries/change-surface.js +1 -1
  237. package/dist/queries/cleanup-plan.d.ts +3 -3
  238. package/dist/queries/cleanup-plan.js +1 -1
  239. package/dist/queries/co-change.d.ts +20 -2
  240. package/dist/queries/co-change.js +1 -1
  241. package/dist/queries/code.d.ts +1 -1
  242. package/dist/queries/code.js +1 -1
  243. package/dist/queries/complexity.d.ts +6 -3
  244. package/dist/queries/complexity.js +1 -1
  245. package/dist/queries/context.d.ts +1 -7
  246. package/dist/queries/context.js +1 -1
  247. package/dist/queries/coupling.js +1 -1
  248. package/dist/queries/cycles.js +1 -1
  249. package/dist/queries/dead.d.ts +2 -0
  250. package/dist/queries/dead.js +1 -1
  251. package/dist/queries/decorative-checkers.js +1 -1
  252. package/dist/queries/dependence-slice.d.ts +46 -22
  253. package/dist/queries/dependence-slice.js +1 -1
  254. package/dist/queries/dependency-depth.d.ts +1 -7
  255. package/dist/queries/dependency-depth.js +1 -1
  256. package/dist/queries/deps.js +1 -1
  257. package/dist/queries/diff-impact.d.ts +3 -1
  258. package/dist/queries/diff-impact.js +1 -1
  259. package/dist/queries/doc-drift.js +1 -1
  260. package/dist/queries/drift.d.ts +1 -1
  261. package/dist/queries/drift.js +1 -1
  262. package/dist/queries/duplicate-bodies.d.ts +29 -2
  263. package/dist/queries/duplicate-bodies.js +1 -1
  264. package/dist/queries/entry-map.d.ts +2 -4
  265. package/dist/queries/entry-map.js +1 -1
  266. package/dist/queries/evidence.d.ts +121 -61
  267. package/dist/queries/evidence.js +1 -1
  268. package/dist/queries/fan.js +1 -1
  269. package/dist/queries/files.js +1 -1
  270. package/dist/queries/health.d.ts +1 -1
  271. package/dist/queries/health.js +1 -1
  272. package/dist/queries/hierarchy.d.ts +2 -2
  273. package/dist/queries/hierarchy.js +1 -1
  274. package/dist/queries/hotspots.d.ts +1 -1
  275. package/dist/queries/hotspots.js +1 -1
  276. package/dist/queries/imports.d.ts +1 -0
  277. package/dist/queries/imports.js +1 -1
  278. package/dist/queries/incomplete-migration.d.ts +3 -3
  279. package/dist/queries/incomplete-migration.js +1 -1
  280. package/dist/queries/index.d.ts +17 -65
  281. package/dist/queries/index.js +1 -1
  282. package/dist/queries/locality-candidates.d.ts +4 -4
  283. package/dist/queries/locality-candidates.js +1 -1
  284. package/dist/queries/members.d.ts +2 -2
  285. package/dist/queries/members.js +1 -1
  286. package/dist/queries/methods.js +1 -1
  287. package/dist/queries/not-implemented.d.ts +2 -6
  288. package/dist/queries/not-implemented.js +1 -1
  289. package/dist/queries/outline.js +1 -1
  290. package/dist/queries/passthrough-candidates.d.ts +9 -1
  291. package/dist/queries/passthrough-candidates.js +1 -1
  292. package/dist/queries/react-component-duplicates.d.ts +19 -3
  293. package/dist/queries/react-component-duplicates.js +1 -1
  294. package/dist/queries/react-hook-candidates.d.ts +22 -3
  295. package/dist/queries/react-hook-candidates.js +1 -1
  296. package/dist/queries/react-large-component-pressure.d.ts +17 -3
  297. package/dist/queries/react-large-component-pressure.js +1 -1
  298. package/dist/queries/recent-duplicates.js +1 -1
  299. package/dist/queries/redundant-reexports.d.ts +4 -14
  300. package/dist/queries/redundant-reexports.js +1 -1
  301. package/dist/queries/refs.d.ts +4 -1
  302. package/dist/queries/refs.js +1 -1
  303. package/dist/queries/review.d.ts +188 -0
  304. package/dist/queries/review.js +2 -0
  305. package/dist/queries/similar-files.d.ts +7 -10
  306. package/dist/queries/similar-files.js +1 -1
  307. package/dist/queries/similar-signatures.js +1 -1
  308. package/dist/queries/similar.d.ts +19 -1
  309. package/dist/queries/similar.js +1 -1
  310. package/dist/queries/slice-cohesion.d.ts +205 -0
  311. package/dist/queries/slice-cohesion.js +2 -0
  312. package/dist/queries/source-inspection.d.ts +6 -202
  313. package/dist/queries/source-inspection.js +1 -1
  314. package/dist/queries/source-search.d.ts +2 -3
  315. package/dist/queries/source-search.js +1 -1
  316. package/dist/queries/stats.d.ts +1 -0
  317. package/dist/queries/stats.js +1 -1
  318. package/dist/queries/surface.js +1 -1
  319. package/dist/queries/symbols.js +1 -1
  320. package/dist/queries/system.d.ts +4 -2
  321. package/dist/queries/system.js +1 -1
  322. package/dist/queries/test-quality.d.ts +1 -1
  323. package/dist/queries/test-quality.js +1 -1
  324. package/dist/queries/twin-drift.d.ts +23 -7
  325. package/dist/queries/twin-drift.js +1 -1
  326. package/dist/queries/unused-imports.js +1 -1
  327. package/dist/queries/unused-params.d.ts +3 -15
  328. package/dist/queries/unused-params.js +1 -1
  329. package/dist/queries/vue-component-duplicates.js +1 -1
  330. package/dist/queries/vue-composable-candidates.js +1 -1
  331. package/dist/queries/vue-large-view-pressure.js +1 -1
  332. package/dist/query-service-fastpath.js +5 -5
  333. package/dist/query-service-server.js +4 -4
  334. package/dist/refs-CCBJG7WK.js +2 -0
  335. package/dist/refs-pagination-DRNLVU4S.js +2 -0
  336. package/dist/reindex-worker.js +79 -29
  337. package/dist/reindex.js +45 -45
  338. package/dist/repository-cache-worker.js +2 -0
  339. package/dist/runtime.d.ts +8 -8
  340. package/dist/runtime.js +3 -4
  341. package/dist/rust-semantic-session-server.js +1 -1
  342. package/dist/rust-semantic-session-worker.js +1 -1
  343. package/dist/rust-semantic-worker.js +1 -1
  344. package/dist/service-queries-2WAJI7R6.js +6 -0
  345. package/dist/source-inspection-91U9zdO3.d.ts +341 -0
  346. package/dist/{source-search-types-Dwz8KeuW.d.ts → source-search-types-DWGYNg8M.d.ts} +15 -2
  347. package/dist/stats-G7DIV6VU.js +2 -0
  348. package/dist/surface-IO55UALI.js +2 -0
  349. package/dist/system-ZBMSHJXU.js +2 -0
  350. package/dist/{queries/trace.d.ts → trace-BMjw3prn.d.ts} +1 -18
  351. package/dist/typescript-indexer.js +2 -0
  352. package/dist/typescript-mailbox-worker.js +1 -1
  353. package/dist/watch-server.js +3 -3
  354. package/docs/AGENT_GUIDE.md +19 -128
  355. package/docs/CLI_JSON_OUTPUT.md +21 -17
  356. package/docs/COMMAND_REFERENCE.md +34 -49
  357. package/docs/CURRENT_COMMANDS.md +123 -0
  358. package/docs/DETECTOR_EVIDENCE_CONTRACTS.md +0 -40
  359. package/docs/DETECTOR_GUIDE.md +55 -12
  360. package/docs/PRODUCT_VISION.md +135 -0
  361. package/docs/PROPERTY_TESTING.md +73 -0
  362. package/docs/REVIEW.md +76 -0
  363. package/docs/SKILLS.md +51 -0
  364. package/docs/WINDOWS_SIDECAR_RELEASE.md +12 -3
  365. package/docs/accuracy-audit-checklist.md +70 -13
  366. package/docs/analyzer-inventory.md +2 -2
  367. package/docs/locality-analyzer-design.md +9 -9
  368. package/package.json +18 -80
  369. package/scripts/evidence-product-contract.mjs +7 -3
  370. package/scripts/record-review-coverage.mjs +118 -0
  371. package/scripts/scip-windows-provenance.mjs +29 -19
  372. package/skills/scip-architecture-review/SKILL.md +57 -0
  373. package/skills/scip-architecture-review/agents/openai.yaml +4 -0
  374. package/skills/scip-architecture-review/references/design-checks.md +17 -0
  375. package/skills/scip-explore/SKILL.md +15 -59
  376. package/skills/scip-explore/agents/openai.yaml +3 -3
  377. package/skills/scip-explore/references/external-evidence.md +2 -2
  378. package/skills/scip-explore/references/information-model.md +26 -29
  379. package/skills/scip-explore/scripts/capture-evidence.mjs +68 -34
  380. package/skills/scip-integrity-audit/SKILL.md +53 -181
  381. package/skills/scip-integrity-audit/agents/openai.yaml +3 -3
  382. package/skills/scip-integrity-audit/references/integrity-probes.md +27 -0
  383. package/skills/scip-plan/SKILL.md +39 -65
  384. package/skills/scip-plan/agents/openai.yaml +2 -2
  385. package/skills/scip-query/SKILL.md +28 -81
  386. package/skills/scip-query/agents/openai.yaml +2 -2
  387. package/skills/scip-query/references/command-guide.md +169 -0
  388. package/skills/scip-setup/SKILL.md +4 -2
  389. package/skills/scip-setup/agents/openai.yaml +3 -3
  390. package/dist/by-kind-XI2CSWEY.js +0 -2
  391. package/dist/call-graph-UONR6JR5.js +0 -2
  392. package/dist/call-graph-evidence-lZa2dwQA.d.ts +0 -11
  393. package/dist/chunk-26CT72HM.js +0 -2
  394. package/dist/chunk-2E7CX53V.js +0 -2
  395. package/dist/chunk-2GRUZAQF.js +0 -43
  396. package/dist/chunk-2LDBDR6J.js +0 -29
  397. package/dist/chunk-2OOY75BW.js +0 -2
  398. package/dist/chunk-2R3V3PSD.js +0 -4
  399. package/dist/chunk-2WC2OEDO.js +0 -4
  400. package/dist/chunk-35NLDRZC.js +0 -2
  401. package/dist/chunk-3AF4TUFK.js +0 -3
  402. package/dist/chunk-3D3QG236.js +0 -2
  403. package/dist/chunk-3FHOF22C.js +0 -21
  404. package/dist/chunk-3JKSW6LJ.js +0 -2
  405. package/dist/chunk-3L2ZBPEX.js +0 -133
  406. package/dist/chunk-3PJABJSU.js +0 -2
  407. package/dist/chunk-3SVF22I5.js +0 -2
  408. package/dist/chunk-3WR4E3A3.js +0 -3
  409. package/dist/chunk-4FTZ4P5G.js +0 -2
  410. package/dist/chunk-4UX2F3JX.js +0 -2
  411. package/dist/chunk-4WNW27SX.js +0 -2
  412. package/dist/chunk-5ENOG4VP.js +0 -61
  413. package/dist/chunk-64BFSI5I.js +0 -2
  414. package/dist/chunk-66DVSJQG.js +0 -455
  415. package/dist/chunk-6HFCYNYE.js +0 -9
  416. package/dist/chunk-6PQNKL3G.js +0 -3
  417. package/dist/chunk-6V5CNXL6.js +0 -2
  418. package/dist/chunk-6VVV4WRR.js +0 -4
  419. package/dist/chunk-7BWFZPPZ.js +0 -2
  420. package/dist/chunk-7CYG22FH.js +0 -2
  421. package/dist/chunk-7F45LJKI.js +0 -2
  422. package/dist/chunk-7IWV2EG3.js +0 -3
  423. package/dist/chunk-7KCZELVM.js +0 -2
  424. package/dist/chunk-AFHTBORT.js +0 -2
  425. package/dist/chunk-AVRYW5OZ.js +0 -2
  426. package/dist/chunk-B3X6KU75.js +0 -2
  427. package/dist/chunk-B5D7QPBE.js +0 -4
  428. package/dist/chunk-BBCIS4DX.js +0 -16
  429. package/dist/chunk-BDUVI7TO.js +0 -3
  430. package/dist/chunk-BE7ZZTMC.js +0 -2
  431. package/dist/chunk-BHVUJOCQ.js +0 -3
  432. package/dist/chunk-BJT7LSPK.js +0 -3
  433. package/dist/chunk-BKVWUP7Y.js +0 -2
  434. package/dist/chunk-BQGB4HBD.js +0 -2
  435. package/dist/chunk-BRV7PIFF.js +0 -2
  436. package/dist/chunk-CEEZJXEF.js +0 -2
  437. package/dist/chunk-CIYLO6SI.js +0 -7
  438. package/dist/chunk-CJZXN4NU.js +0 -2
  439. package/dist/chunk-CNO7TOKL.js +0 -2
  440. package/dist/chunk-COF23M5F.js +0 -2
  441. package/dist/chunk-CWFP7GM5.js +0 -2
  442. package/dist/chunk-D2DHWI3D.js +0 -2
  443. package/dist/chunk-D4N5SQ2M.js +0 -4
  444. package/dist/chunk-DBRSYFXR.js +0 -2
  445. package/dist/chunk-DHUIOLDT.js +0 -2
  446. package/dist/chunk-DIRJWYBM.js +0 -6
  447. package/dist/chunk-DIUFNHRJ.js +0 -35
  448. package/dist/chunk-DRENNWRG.js +0 -2
  449. package/dist/chunk-DTZCKZEU.js +0 -4
  450. package/dist/chunk-DULC3QFP.js +0 -5
  451. package/dist/chunk-DYGHBZ2N.js +0 -16
  452. package/dist/chunk-E5R6AQ73.js +0 -40
  453. package/dist/chunk-E73UNJTF.js +0 -38
  454. package/dist/chunk-EKV5HX33.js +0 -2
  455. package/dist/chunk-EQHFIL6T.js +0 -3
  456. package/dist/chunk-ESIQ66Z7.js +0 -2
  457. package/dist/chunk-EVFUMY4R.js +0 -3
  458. package/dist/chunk-F7DY272B.js +0 -2
  459. package/dist/chunk-FBN2FGXG.js +0 -2
  460. package/dist/chunk-FDLOBR6P.js +0 -4
  461. package/dist/chunk-FESCRNVV.js +0 -5
  462. package/dist/chunk-FFRKR4EQ.js +0 -2
  463. package/dist/chunk-FGA2U4OR.js +0 -8
  464. package/dist/chunk-FIQRSHVM.js +0 -2
  465. package/dist/chunk-FPYLNQPT.js +0 -2
  466. package/dist/chunk-FRUSVINH.js +0 -2
  467. package/dist/chunk-GSP44ENC.js +0 -2
  468. package/dist/chunk-GUFSG5TX.js +0 -2
  469. package/dist/chunk-GYIZ4NXB.js +0 -2
  470. package/dist/chunk-GZIUDL6G.js +0 -2
  471. package/dist/chunk-H5EXS3HM.js +0 -2
  472. package/dist/chunk-HCXEQRFF.js +0 -18
  473. package/dist/chunk-HEHOQQKH.js +0 -2
  474. package/dist/chunk-HKGFPJ4T.js +0 -4
  475. package/dist/chunk-HLZTEXRA.js +0 -2
  476. package/dist/chunk-HOENASQM.js +0 -3
  477. package/dist/chunk-HVF5VBG6.js +0 -2
  478. package/dist/chunk-I55I7XXP.js +0 -2
  479. package/dist/chunk-IDFEUFKS.js +0 -2
  480. package/dist/chunk-IHGQTTVW.js +0 -2
  481. package/dist/chunk-IICPE7B2.js +0 -20
  482. package/dist/chunk-IL676XCC.js +0 -18
  483. package/dist/chunk-IW5XQG5G.js +0 -2
  484. package/dist/chunk-IZDPJ2QI.js +0 -2
  485. package/dist/chunk-J66VOFW6.js +0 -5
  486. package/dist/chunk-JFMEXGFE.js +0 -2
  487. package/dist/chunk-JGKUET5J.js +0 -3
  488. package/dist/chunk-JS4PGXMV.js +0 -3
  489. package/dist/chunk-JWTGMPIT.js +0 -80
  490. package/dist/chunk-JYR66JN5.js +0 -5
  491. package/dist/chunk-KFOYCQAJ.js +0 -9
  492. package/dist/chunk-KLFEXGQA.js +0 -2
  493. package/dist/chunk-KMVGRIO2.js +0 -2
  494. package/dist/chunk-KYSDI3GE.js +0 -5
  495. package/dist/chunk-L6PJPETJ.js +0 -29
  496. package/dist/chunk-LDVT66YM.js +0 -2
  497. package/dist/chunk-LEECKFCJ.js +0 -2
  498. package/dist/chunk-LMZ5PRUV.js +0 -2
  499. package/dist/chunk-LQRQN2XA.js +0 -2
  500. package/dist/chunk-LXABEJX3.js +0 -2
  501. package/dist/chunk-MNV5FSBW.js +0 -3
  502. package/dist/chunk-MPQ4OTBM.js +0 -2
  503. package/dist/chunk-MTDBHTSF.js +0 -2
  504. package/dist/chunk-MV3CDXPI.js +0 -38
  505. package/dist/chunk-MWN53KRN.js +0 -60
  506. package/dist/chunk-MXNGIEPU.js +0 -3
  507. package/dist/chunk-N2ZSIIGR.js +0 -117
  508. package/dist/chunk-N5B2NILC.js +0 -5
  509. package/dist/chunk-NJITK2GP.js +0 -2
  510. package/dist/chunk-NOGJXYFO.js +0 -2
  511. package/dist/chunk-NOYBFVJA.js +0 -554
  512. package/dist/chunk-NWQXSFFU.js +0 -3
  513. package/dist/chunk-ODDUPDP7.js +0 -13
  514. package/dist/chunk-OLIWTZI3.js +0 -3
  515. package/dist/chunk-OLNV6I6U.js +0 -2
  516. package/dist/chunk-OR2E3AGZ.js +0 -2
  517. package/dist/chunk-OSR2GEHQ.js +0 -2
  518. package/dist/chunk-OSSESPDX.js +0 -3
  519. package/dist/chunk-OWOOWNJ5.js +0 -7
  520. package/dist/chunk-P42EIXTA.js +0 -2
  521. package/dist/chunk-PJFGPYTU.js +0 -2
  522. package/dist/chunk-PP7KNN7L.js +0 -2
  523. package/dist/chunk-PU7T5QYQ.js +0 -2
  524. package/dist/chunk-PWWAJSKV.js +0 -74
  525. package/dist/chunk-PZL5T7SU.js +0 -73
  526. package/dist/chunk-QBE3YX64.js +0 -23
  527. package/dist/chunk-QGVTFRY2.js +0 -7
  528. package/dist/chunk-QOJONDS7.js +0 -2
  529. package/dist/chunk-QU5XRYB5.js +0 -4
  530. package/dist/chunk-QUU5OBVK.js +0 -11
  531. package/dist/chunk-RBLQNW26.js +0 -20
  532. package/dist/chunk-RTQ7NEKG.js +0 -81
  533. package/dist/chunk-SQXRS7BG.js +0 -4
  534. package/dist/chunk-SSK6LDPC.js +0 -2
  535. package/dist/chunk-SZHGTCPP.js +0 -7
  536. package/dist/chunk-T4N4P2K5.js +0 -16
  537. package/dist/chunk-TA3QKLLU.js +0 -2
  538. package/dist/chunk-TEBQMNVI.js +0 -43
  539. package/dist/chunk-TPFHAQ2G.js +0 -2
  540. package/dist/chunk-TQPCBMWT.js +0 -5
  541. package/dist/chunk-TQZV7KV4.js +0 -2
  542. package/dist/chunk-TRNAEQ6P.js +0 -3
  543. package/dist/chunk-TY7CRN3Z.js +0 -2
  544. package/dist/chunk-UHFYCMZO.js +0 -35
  545. package/dist/chunk-UICY4GTQ.js +0 -7
  546. package/dist/chunk-UVGEWT4Y.js +0 -26
  547. package/dist/chunk-UXW33INU.js +0 -29
  548. package/dist/chunk-VMPRET3I.js +0 -5
  549. package/dist/chunk-VNLGKHS6.js +0 -6
  550. package/dist/chunk-VQILFTEH.js +0 -2
  551. package/dist/chunk-VUPHCS7Y.js +0 -57
  552. package/dist/chunk-VVZSBTSU.js +0 -23
  553. package/dist/chunk-VZRNID6A.js +0 -2
  554. package/dist/chunk-W5OXRYGE.js +0 -7
  555. package/dist/chunk-W6STWDQI.js +0 -57
  556. package/dist/chunk-W7CXK74K.js +0 -2
  557. package/dist/chunk-WB3WYIRE.js +0 -4
  558. package/dist/chunk-WDNVY4E7.js +0 -20
  559. package/dist/chunk-WK46TNUM.js +0 -3
  560. package/dist/chunk-WNTFFKAX.js +0 -12
  561. package/dist/chunk-WOIKCX6A.js +0 -2
  562. package/dist/chunk-WUN6KBHV.js +0 -2
  563. package/dist/chunk-WYCTJDVR.js +0 -2
  564. package/dist/chunk-WYPL7GF7.js +0 -2
  565. package/dist/chunk-XDAUYDFT.js +0 -2
  566. package/dist/chunk-XDQMU3BT.js +0 -2
  567. package/dist/chunk-XFA4SSO3.js +0 -3
  568. package/dist/chunk-XGZEP6GR.js +0 -8
  569. package/dist/chunk-XPDPNWTQ.js +0 -368
  570. package/dist/chunk-XRYABF57.js +0 -8
  571. package/dist/chunk-YBGKCQIS.js +0 -2
  572. package/dist/chunk-YEN6CYC7.js +0 -16
  573. package/dist/chunk-YF5IB2LF.js +0 -2
  574. package/dist/chunk-YI2AWIHC.js +0 -3
  575. package/dist/chunk-YPWBKGFU.js +0 -2
  576. package/dist/chunk-YPWHBBIS.js +0 -2
  577. package/dist/chunk-YSH6U3L4.js +0 -3
  578. package/dist/chunk-YU5DZUZI.js +0 -10
  579. package/dist/chunk-YWO5DDRC.js +0 -16
  580. package/dist/chunk-Z4CDXYNQ.js +0 -2
  581. package/dist/chunk-ZF5KHH7C.js +0 -2
  582. package/dist/chunk-ZOHS7AQV.js +0 -21
  583. package/dist/chunk-ZTI4SBFV.js +0 -3
  584. package/dist/code-MI6F2TTU.js +0 -2
  585. package/dist/code-result-json-FXALY4HE.js +0 -2
  586. package/dist/command-descriptors-P34VABY5.js +0 -343
  587. package/dist/dataflow-4KEMJPC6.js +0 -2
  588. package/dist/dependence-slice-R7FPWD5M.js +0 -2
  589. package/dist/deps-7EMQUYUT.js +0 -2
  590. package/dist/direct-navigation-6YO234F2.js +0 -3
  591. package/dist/entry-map-KOOLR26E.js +0 -2
  592. package/dist/files-OPIPJIGZ.js +0 -2
  593. package/dist/graph-evidence-Bjyky2V4.d.ts +0 -126
  594. package/dist/hierarchy-QPD2CAER.js +0 -2
  595. package/dist/imports-M6HUXRXC.js +0 -2
  596. package/dist/members-I5MEFOCT.js +0 -2
  597. package/dist/methods-5JYGGHXA.js +0 -2
  598. package/dist/next-anchor-candidates-BwMczMvX.d.ts +0 -90
  599. package/dist/output-continuation-command-UPQAAKBP.js +0 -3
  600. package/dist/output-pagination-3OFL2MJV.js +0 -19
  601. package/dist/project-reindex-UKKQ5PLS.js +0 -3
  602. package/dist/queries/anchors.d.ts +0 -123
  603. package/dist/queries/anchors.js +0 -2
  604. package/dist/queries/complexity-hotspots.d.ts +0 -40
  605. package/dist/queries/complexity-hotspots.js +0 -2
  606. package/dist/queries/convergence.d.ts +0 -33
  607. package/dist/queries/convergence.js +0 -2
  608. package/dist/queries/dataflow.d.ts +0 -77
  609. package/dist/queries/dataflow.js +0 -2
  610. package/dist/queries/deep-chains.d.ts +0 -5
  611. package/dist/queries/deep-chains.js +0 -2
  612. package/dist/queries/extract-candidates.d.ts +0 -52
  613. package/dist/queries/extract-candidates.js +0 -2
  614. package/dist/queries/isolated.d.ts +0 -24
  615. package/dist/queries/isolated.js +0 -2
  616. package/dist/queries/plan-context.d.ts +0 -33
  617. package/dist/queries/plan-context.js +0 -2
  618. package/dist/queries/reference-neighborhood.d.ts +0 -4
  619. package/dist/queries/reference-neighborhood.js +0 -2
  620. package/dist/queries/reference-reachability.d.ts +0 -48
  621. package/dist/queries/reference-reachability.js +0 -2
  622. package/dist/queries/self-audit.d.ts +0 -63
  623. package/dist/queries/self-audit.js +0 -2
  624. package/dist/queries/similar-chains.d.ts +0 -48
  625. package/dist/queries/similar-chains.js +0 -2
  626. package/dist/queries/slice.d.ts +0 -4
  627. package/dist/queries/slice.js +0 -2
  628. package/dist/queries/stale-abstractions.d.ts +0 -72
  629. package/dist/queries/stale-abstractions.js +0 -2
  630. package/dist/queries/system-map.d.ts +0 -449
  631. package/dist/queries/system-map.js +0 -2
  632. package/dist/queries/trace.js +0 -2
  633. package/dist/queries/twin-ab.d.ts +0 -66
  634. package/dist/queries/twin-ab.js +0 -2
  635. package/dist/queries/value-flow.d.ts +0 -43
  636. package/dist/queries/value-flow.js +0 -2
  637. package/dist/queries/wrapper-candidates.d.ts +0 -34
  638. package/dist/queries/wrapper-candidates.js +0 -2
  639. package/dist/refs-PSU4JZZW.js +0 -2
  640. package/dist/refs-pagination-JG6CJMRC.js +0 -2
  641. package/dist/slice-HYRATV64.js +0 -2
  642. package/dist/source-snippet-_wrcgmZc.d.ts +0 -15
  643. package/dist/stats-OOJ74B32.js +0 -2
  644. package/dist/surface-VTGDYWF5.js +0 -2
  645. package/dist/symbol-resolution-WD5EU5JE.js +0 -2
  646. package/dist/system-LRQNFOR2.js +0 -2
  647. package/dist/trace-F4B6OLL4.js +0 -2
  648. package/dist/value-flow-VRPZY72V.js +0 -2
  649. package/skills/concrete-plan/SKILL.md +0 -8
  650. package/skills/concrete-plan/agents/openai.yaml +0 -4
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-ESIQ66Z7.js";import"./chunk-7KCZELVM.js";import"./chunk-BGBBVSH4.js";import"./chunk-MV3CDXPI.js";import"./chunk-MTDBHTSF.js";import"./chunk-WYCTJDVR.js";import"./chunk-CEEZJXEF.js";import"./chunk-OSR2GEHQ.js";import"./chunk-YEN6CYC7.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-BJT7LSPK.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{b as dataflow,a as referenceNeighborhood};
2
- //# sourceMappingURL=dataflow-4KEMJPC6.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-IHGQTTVW.js";import"./chunk-3FHOF22C.js";import"./chunk-3TNRNKAT.js";import"./chunk-7KCZELVM.js";import"./chunk-XBGWL66K.js";import"./chunk-B5D7QPBE.js";import"./chunk-2WC2OEDO.js";import"./chunk-BGBBVSH4.js";import"./chunk-MV3CDXPI.js";import"./chunk-MTDBHTSF.js";import"./chunk-WYCTJDVR.js";import"./chunk-CEEZJXEF.js";import"./chunk-W6STWDQI.js";import"./chunk-MPQ4OTBM.js";import"./chunk-OSR2GEHQ.js";import"./chunk-FRUSVINH.js";import"./chunk-YEN6CYC7.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-YUKYB54I.js";import"./chunk-BJT7LSPK.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-DHEQMPLW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{a as dependenceSlice};
2
- //# sourceMappingURL=dependence-slice-R7FPWD5M.js.map
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-HYO3NP5Q.js";import"./chunk-EKV5HX33.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{a as deps,b as rdeps};
2
- //# sourceMappingURL=deps-7EMQUYUT.js.map
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import{z as a}from"./chunk-L6PJPETJ.js";import"./chunk-6PQNKL3G.js";import"./chunk-NOYBFVJA.js";import"./chunk-66DVSJQG.js";export{a as directNavigationQueryCommandDescriptors};
3
- //# sourceMappingURL=direct-navigation-6YO234F2.js.map
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-JS4PGXMV.js";import"./chunk-3TNRNKAT.js";import"./chunk-XBGWL66K.js";import"./chunk-2WC2OEDO.js";import"./chunk-BGBBVSH4.js";import"./chunk-MV3CDXPI.js";import"./chunk-MTDBHTSF.js";import"./chunk-WYCTJDVR.js";import"./chunk-CEEZJXEF.js";import"./chunk-OSR2GEHQ.js";import"./chunk-FRUSVINH.js";import"./chunk-YEN6CYC7.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-YUKYB54I.js";import"./chunk-BJT7LSPK.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-DHEQMPLW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{b as entryCallMap,a as entryPoints};
2
- //# sourceMappingURL=entry-map-KOOLR26E.js.map
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-YBGKCQIS.js";import"./chunk-4FTZ4P5G.js";import"./chunk-YUKYB54I.js";import"./chunk-GUFSG5TX.js";import"./chunk-H5EXS3HM.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{a as files,b as pathMatchesGlob};
2
- //# sourceMappingURL=files-OPIPJIGZ.js.map
@@ -1,126 +0,0 @@
1
- import { S as ScipDatabase } from './db-BwIVAYNB.js';
2
- import { G as GraphEvidenceFamily, a as GraphProjectionDirection } from './graph-exploration-contract-CqDsnPQL.js';
3
- import { P as ProgramEdgeSemantic, E as ExplorationSourceLocation, a as ExplorationEvidenceStrength } from './exploration-topology-BG4v30HZ.js';
4
-
5
- declare const GRAPH_EVIDENCE_VIEWS: readonly ["causal", "structure", "complete"];
6
- type GraphEvidenceView = (typeof GRAPH_EVIDENCE_VIEWS)[number];
7
- interface GraphEvidenceSelectors {
8
- symbols?: readonly string[];
9
- locations?: readonly string[];
10
- searches?: readonly string[];
11
- }
12
- interface GraphEvidenceOptions {
13
- view?: GraphEvidenceView;
14
- families?: readonly GraphEvidenceFamily[];
15
- direction?: GraphProjectionDirection;
16
- subtypes?: readonly string[];
17
- connecting?: boolean;
18
- inventoryOnly?: boolean;
19
- /** Materialize the exact membership of recoverable folds from the same projection. */
20
- foldIds?: readonly string[];
21
- maxDepth?: number;
22
- maxEdges?: number;
23
- }
24
- interface GraphEvidenceSelection {
25
- direction: GraphProjectionDirection;
26
- subtypes: string[];
27
- connecting: boolean;
28
- inventoryOnly: boolean;
29
- foldIds: string[];
30
- }
31
- interface GraphEvidenceInventoryRow {
32
- family: GraphEvidenceFamily;
33
- subtype: string;
34
- incoming: number;
35
- outgoing: number;
36
- both: number;
37
- }
38
- interface GraphEvidenceFold {
39
- id: string;
40
- mode: 'linear' | 'scc' | 'topology';
41
- family: GraphEvidenceFamily;
42
- /** One subtype name, or `mixed` when this structural fold contains several. */
43
- subtype: string;
44
- /** Complete subtype inventory for the folded relationships. */
45
- subtypes?: string[];
46
- /** Query-neutral structural region shared by the folded relationships. */
47
- region?: string;
48
- edgeCount: number;
49
- edgeIds: string[];
50
- nodeIds: string[];
51
- minimumMaxEdges: number;
52
- }
53
- interface GraphEvidenceTarget {
54
- kind: string;
55
- query: string;
56
- status: 'matched' | 'ambiguous' | 'missing';
57
- nodeIds: string[];
58
- omittedCandidates: number;
59
- }
60
- interface GraphEvidenceNode {
61
- id: string;
62
- kind: string;
63
- label: string;
64
- symbol: string | null;
65
- location: ExplorationSourceLocation | null;
66
- }
67
- interface GraphEvidenceEdge {
68
- id: string;
69
- family: GraphEvidenceFamily;
70
- /** Original typed-program semantic family before presentation grouping. */
71
- semanticFamily: ProgramEdgeSemantic['family'];
72
- subtype: string;
73
- from: GraphEvidenceNode;
74
- to: GraphEvidenceNode;
75
- sourceKind: string;
76
- providerId: string;
77
- supportCeiling: 'exact' | 'partial' | 'candidate';
78
- establishes: string;
79
- nonClaims: readonly string[];
80
- recoverWith: readonly string[];
81
- evidenceStrength: ExplorationEvidenceStrength;
82
- evidenceMethods: string[];
83
- evidenceConstituents?: Array<{
84
- method: string;
85
- strength: ExplorationEvidenceStrength;
86
- }>;
87
- context: ProgramEdgeSemantic['context'] | null;
88
- attributes: ProgramEdgeSemantic['attributes'] | null;
89
- }
90
- interface GraphEvidenceCoverage {
91
- status: 'accounted' | 'bounded' | 'incomplete';
92
- topologyStatus: 'accounted' | 'incomplete';
93
- scope: string;
94
- maxDepth: number;
95
- maxEdges: number;
96
- /** Present for projection-aware callers; omitted by results produced before projection metadata existed. */
97
- matchedEdges?: number;
98
- eligibleEdges: number;
99
- returnedEdges: number;
100
- omittedEdges: number;
101
- frontierGroups: number;
102
- unsupportedFrontiers: number;
103
- blindSpots: string[];
104
- explanation: string;
105
- }
106
- interface GraphEvidenceResult {
107
- kind: 'graph';
108
- view: GraphEvidenceView | 'custom';
109
- families: GraphEvidenceFamily[];
110
- /** Explicit projection applied by the current implementation. */
111
- selection?: GraphEvidenceSelection;
112
- targets: GraphEvidenceTarget[];
113
- /** Complete relationship counts before materialization budgeting. */
114
- inventory?: GraphEvidenceInventoryRow[];
115
- edges: GraphEvidenceEdge[];
116
- /** Recoverable membership for relationships withheld by the materialization budget. */
117
- folds?: GraphEvidenceFold[];
118
- coverage: GraphEvidenceCoverage;
119
- }
120
- /**
121
- * Compose the existing system-map topology into one small, agent-selected
122
- * relationship packet. This function performs no task-relevance inference.
123
- */
124
- declare function graphEvidence(db: ScipDatabase, selectors: GraphEvidenceSelectors, options?: GraphEvidenceOptions): GraphEvidenceResult;
125
-
126
- export { type GraphEvidenceCoverage as G, type GraphEvidenceEdge as a, type GraphEvidenceTarget as b, GRAPH_EVIDENCE_VIEWS as c, type GraphEvidenceFold as d, type GraphEvidenceInventoryRow as e, type GraphEvidenceNode as f, type GraphEvidenceOptions as g, type GraphEvidenceResult as h, type GraphEvidenceSelection as i, type GraphEvidenceSelectors as j, type GraphEvidenceView as k, graphEvidence as l };
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-ZTI4SBFV.js";import"./chunk-HOENASQM.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{a as hierarchy,b as ownershipChain};
2
- //# sourceMappingURL=hierarchy-QPD2CAER.js.map
@@ -1,2 +0,0 @@
1
- import{a,b,c}from"./chunk-DIUFNHRJ.js";import"./chunk-EKV5HX33.js";import"./chunk-CEEZJXEF.js";import"./chunk-OSR2GEHQ.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{b as importedBy,a as imports,c as unusedImports};
2
- //# sourceMappingURL=imports-M6HUXRXC.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-64BFSI5I.js";import"./chunk-2WC2OEDO.js";import"./chunk-BGBBVSH4.js";import"./chunk-MV3CDXPI.js";import"./chunk-MTDBHTSF.js";import"./chunk-WYCTJDVR.js";import"./chunk-CEEZJXEF.js";import"./chunk-OSR2GEHQ.js";import"./chunk-FRUSVINH.js";import"./chunk-YEN6CYC7.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-YUKYB54I.js";import"./chunk-BJT7LSPK.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-DHEQMPLW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{a as members};
2
- //# sourceMappingURL=members-I5MEFOCT.js.map
@@ -1,2 +0,0 @@
1
- import{a,b}from"./chunk-AFHTBORT.js";import"./chunk-2WC2OEDO.js";import"./chunk-BGBBVSH4.js";import"./chunk-MV3CDXPI.js";import"./chunk-MTDBHTSF.js";import"./chunk-WYCTJDVR.js";import"./chunk-CEEZJXEF.js";import"./chunk-OSR2GEHQ.js";import"./chunk-FRUSVINH.js";import"./chunk-YEN6CYC7.js";import"./chunk-WRQXLNYE.js";import"./chunk-2GRUZAQF.js";import"./chunk-HOENASQM.js";import"./chunk-YUKYB54I.js";import"./chunk-BJT7LSPK.js";import"./chunk-SSK6LDPC.js";import"./chunk-4WNW27SX.js";import"./chunk-F4FNK44D.js";import"./chunk-GAS2LJMP.js";import"./chunk-WK46TNUM.js";import"./chunk-TQZV7KV4.js";import"./chunk-3L2ZBPEX.js";import"./chunk-YXPUP5G2.js";import"./chunk-DRENNWRG.js";import"./chunk-BE7ZZTMC.js";import"./chunk-2OOY75BW.js";import"./chunk-DHEQMPLW.js";import"./chunk-NOGJXYFO.js";import"./chunk-RTQ7NEKG.js";import"./chunk-GUFSG5TX.js";import"./chunk-IW5XQG5G.js";import"./chunk-FGA2U4OR.js";import"./chunk-B3PYOSCX.js";import"./chunk-H5EXS3HM.js";import"./chunk-HGFDYOVB.js";import"./chunk-JFMEXGFE.js";import"./chunk-KYSDI3GE.js";import"./chunk-7F45LJKI.js";export{b as methods,a as resolveMethods};
2
- //# sourceMappingURL=methods-5JYGGHXA.js.map
@@ -1,90 +0,0 @@
1
- import { a as ExplorationEvidenceStrength, c as ExplorationEvidenceSource } from './exploration-topology-BG4v30HZ.js';
2
-
3
- /** Compatibility projection used by current renderers while evidence axes remain independent. */
4
- type BoundaryEvidenceStrength = 'exact' | 'derived' | 'candidate';
5
- type BoundaryResolutionState = 'locally-linked' | 'external' | 'unresolved' | 'ambiguous';
6
- type BoundarySourceScope = 'production' | 'test' | 'fixture' | 'example' | 'generated' | 'script' | 'unknown';
7
-
8
- type BehaviorSignal = 'anchor' | 'signature' | 'binding' | 'branch' | 'loop' | 'call' | 'await' | 'return' | 'throw' | 'mutation' | 'shape' | 'spread' | 'catch' | 'finally';
9
- interface BehaviorSkeletonLine {
10
- line: number;
11
- endLine: number;
12
- depth: number;
13
- signals: BehaviorSignal[];
14
- text: string;
15
- copied: boolean;
16
- }
17
- interface BehaviorSkeleton {
18
- callable?: {
19
- name: string;
20
- startLine: number;
21
- endLine: number;
22
- };
23
- representation: 'outline';
24
- constructKind: string;
25
- signature: string;
26
- lines: BehaviorSkeletonLine[];
27
- signals: BehaviorSignal[];
28
- testCases: string[];
29
- coverage: {
30
- sourceStatements: number;
31
- representedStatements: number;
32
- copiedStatements: number;
33
- omittedStatements: 0;
34
- };
35
- rawCharacters: number;
36
- outlineCharacters: number;
37
- /** @deprecated Prefer coverage.sourceStatements. */
38
- candidateLines: number;
39
- /** @deprecated Behavioral outlines never silently omit statements. */
40
- omittedLines: number;
41
- }
42
-
43
- interface SystemMapNextAnchorAlternative {
44
- symbol: string | null;
45
- label: string;
46
- file: string;
47
- line: number;
48
- endLine: number | null;
49
- }
50
- interface SystemMapNextAnchor {
51
- id: string;
52
- status: ExplorationEvidenceStrength | 'ambiguous';
53
- source: 'graph-call' | 'graph-relation' | 'leaf-identity-candidate';
54
- /** Optional on legacy call candidates; populated for newly rendered causal targets. */
55
- direction?: 'upstream' | 'downstream' | 'connector';
56
- causalRole?: 'caller' | 'callee' | 'result-callback' | 'callable-reference' | 'runtime-producer' | 'runtime-consumer';
57
- relationKind?: string;
58
- fromStepId: string;
59
- fromLabel: string;
60
- callsite: {
61
- file: string;
62
- line: number;
63
- endLine: number;
64
- text: string;
65
- signals: BehaviorSignal[];
66
- calleeLeaf: string;
67
- };
68
- alternatives: SystemMapNextAnchorAlternative[];
69
- alternativeCount: number;
70
- evidence: ExplorationEvidenceSource[];
71
- }
72
- interface SystemMapNextAnchorPacket {
73
- anchors: SystemMapNextAnchor[];
74
- withheldAnchors: SystemMapNextAnchor[];
75
- candidateAnchors: number;
76
- omittedAnchors: number;
77
- scannedBehaviorSteps: number;
78
- visibleCallsites: number;
79
- graphEvidencedCallsites: number;
80
- identityCandidateCallsites: number;
81
- ambiguousCallsites: number;
82
- unresolvedCallsites: number;
83
- upstreamCandidates?: number;
84
- resultCandidates?: number;
85
- runtimeCandidates?: number;
86
- inspectCommand: string | null;
87
- remainingInspectCommands: string[];
88
- }
89
-
90
- export type { BehaviorSignal as B, SystemMapNextAnchorPacket as S, BoundarySourceScope as a, SystemMapNextAnchor as b, SystemMapNextAnchorAlternative as c, BehaviorSkeleton as d, BoundaryEvidenceStrength as e, BoundaryResolutionState as f };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import{a}from"./chunk-4ILJCCXV.js";import"./chunk-RBLQNW26.js";import"./chunk-NOYBFVJA.js";import"./chunk-66DVSJQG.js";export{a as outputContinuationCommandDescriptor};
3
- //# sourceMappingURL=output-continuation-command-UPQAAKBP.js.map
@@ -1,19 +0,0 @@
1
- import{A as fe,D as _,E as k,F as H,a as R,b as x,c as D,d as $,e as de,o as U,p as T,r as pe,t as b,w as he,x as ge,y as J,z as le}from"./chunk-KFOYCQAJ.js";import{createHash as A,randomBytes as Ce}from"crypto";import{chmodSync as it,closeSync as L,fstatSync as ve,lstatSync as ot,mkdirSync as xe,openSync as Y,readSync as at,readdirSync as Te,renameSync as _e,rmSync as Q,statSync as ut,writeSync as Ae}from"fs";import{tmpdir as ct}from"os";import{dirname as dt,join as N,resolve as pt}from"path";import{StringDecoder as Z}from"string_decoder";import{InvalidArgumentError as we}from"commander";var Ye=/^[A-Za-z0-9_@%+=:,./-]+$/u;function me(e,t={}){return t.omitSafeQuotes&&Ye.test(e)?e:(t.platform??process.platform)==="win32"?`"${e.replaceAll("%","%%").replaceAll('"','\\"')}"`:`'${e.replaceAll("'",`'"'"'`)}'`}import{AsyncLocalStorage as Qe}from"async_hooks";import{createHash as rn}from"crypto";import{existsSync as on,mkdirSync as an}from"fs";import{tmpdir as cn}from"os";import{isAbsolute as pn,join as hn,resolve as Ze}from"path";var Ke="SCIP_QUERY_SESSION";var et=128,ye=new Qe;function Se(e,t){let n=e.sessionEnabled===!1||e.json?void 0:st(),r={enabled:n!==void 0,reemit:e.reemit===!0,command:e.command,projectRoot:Ze(e.cwd),sessionIdentity:n,staged:[],stagedEvidence:[],finalized:!1};return ye.run(r,t)}function B(e){let t=ye.getStore();if(!t||t.finalized)return;t.finalized=!0;let n=t.state;if(!n){t.staged.length=0,t.stagedEvidence.length=0;return}try{if(e&&(t.staged.length>0||t.stagedEvidence.length>0)){let r=n.ledger.nextOrdinal,s=tt(t.staged).map(i=>({...i,ordinal:r,command:t.command})),o=rt(t.stagedEvidence).map(i=>({...i,ordinal:r,command:t.command}));n.ledger.ranges.push(...s),n.ledger.evidence.push(...o),n.ledger.nextOrdinal+=1,n.ledger.updatedAt=new Date().toISOString(),_(n.ledgerPath,n.ledger,{spacing:2,trailingNewline:!0})}}catch{}finally{n.lock.release(),t.state=null,t.staged.length=0,t.stagedEvidence.length=0}}function tt(e){let t=[...e].sort((r,s)=>r.relativePath.localeCompare(s.relativePath)||r.startLine-s.startLine||r.endLine-s.endLine),n=[];for(let r of t){let s=n[n.length-1];if(s&&s.relativePath===r.relativePath&&s.ownerSymbol===r.ownerSymbol&&s.policy===r.policy&&r.startLine<=s.endLine+1&&nt(s,r)){let o=r.startLine-s.startLine;for(let i=0;i<r.lineHashes.length;i+=1)s.lineHashes[o+i]??=r.lineHashes[i];s.endLine=Math.max(s.endLine,r.endLine)}else n.push({...r,lineHashes:[...r.lineHashes]})}return n}function nt(e,t){let n=Math.max(e.startLine,t.startLine),r=Math.min(e.endLine,t.endLine);for(let s=n;s<=r;s+=1)if(e.lineHashes[s-e.startLine]!==t.lineHashes[s-t.startLine])return!1;return!0}function rt(e){let t=new Set,n=[];for(let r of e){let s=`${r.kind}\0${r.identity}\0${r.contentHash}`;t.has(s)||(t.add(s),n.push(r))}return n}function st(){let e=process.env[Ke]?.trim();if(e&&!(e.length>et||!/^[A-Za-z0-9._:-]+$/.test(e)))return`explicit:${e}`}var K="scip-query-output-page",ee=1,ht="continue",w=256,C=1e5,j=4096,m=32e6,Le=64*1024*1024,gt=256*1024*1024,lt=32,Ne=32768,Re=16,ft=$*Re,M=4096,Oe=Le,te=3600*1e3,mt="scip-query-json-export",yt=1,$e=3;function ne(){return N(ct(),`scip-query-output-pages-${typeof process.getuid=="function"?process.getuid():"user"}`)}var re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u,Ue=/^[A-Za-z0-9_][A-Za-z0-9_-]{11}$/u,St=/^4\.([A-Za-z0-9_-]{22})\.([0-9a-z]{1,10})$/u,vt=/^([A-Za-z0-9_][A-Za-z0-9_-]{11})(?:\.([0-9a-z]{1,10}))?$/u,ke=1,wt="quota.lock",Ot=2e3,bt=5,be=1024*1024,It=new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)),F,Et=Object.freeze({maxSnapshotBytes:Le,maxAggregateBytes:gt,maxSnapshotCount:lt});function Pt(e){if(!T(e))return{kind:"malformed",reason:"Output page envelope must be an object."};if(e.kind!==K||e.schemaVersion!==ee)return{kind:"malformed",reason:"Output page envelope kind or schema version is unsupported."};if(!T(e.producer)||e.producer.name!=="scip-query"||typeof e.producer.version!="string"||e.producer.version.length===0||typeof e.command!="string"||e.command.length===0||e.contentType!=="text/plain"&&e.contentType!=="application/json"||e.agentInstruction!==void 0&&typeof e.agentInstruction!="string"||typeof e.content!="string"||!T(e.page))return{kind:"malformed",reason:"Output page envelope contains invalid common fields."};let t=e.page;if(["offset","returnedCharacters","totalCharacters","omittedCharacters","remainingCharacters"].some(c=>!pe(t[c]))||!b(t.outputHash))return{kind:"malformed",reason:"Output page counts or output hash are invalid."};let r=Number(t.offset),s=Number(t.returnedCharacters),o=Number(t.totalCharacters),i=Number(t.omittedCharacters),a=Number(t.remainingCharacters);if(s!==e.content.length||i!==o-s||a!==o-r-s||a<0)return{kind:"malformed",reason:"Output page character counts are inconsistent."};if(t.complete===!0){if(t.remainingCharacters!==0||t.continuation!==void 0)return{kind:"malformed",reason:"A complete output page cannot have remaining content or a continuation."}}else if(t.complete===!1){let c=t.continuation;if(t.remainingCharacters===0||!T(c)||typeof c.cursor!="string"||c.cursor.length===0||typeof c.command!="string"||c.command.length===0)return{kind:"malformed",reason:"An incomplete output page requires a non-empty continuation."}}else return{kind:"malformed",reason:"Output page complete must be a Boolean."};return{kind:"supported",envelope:e}}function Ln(e){let t=Pt(e);if(t.kind==="malformed")throw new Error(t.reason);return t.envelope}var He={writeStdout:e=>{process.stdout.write(e)},writeStderr:e=>{process.stderr.write(e)}};async function Ct(e,t,n=He){return Se({command:e.command,cwd:e.cwd,argv:e.argv,json:e.json,sessionEnabled:e.sourceSession,reemit:e.reemitSource},async()=>{try{await xt(e,t,n)}finally{B(!1)}})}async function xt(e,t,n){let r=e.pageSize??R,s=e.snapshotRoot??ne(),o=kt(e.snapshotLimits),i=e.maxOutputCharacters??m;if(!Number.isSafeInteger(i)||i<=0)throw new Error("Output character safety limit must be a positive integer.");let a=Math.min(i,m,e.agentOutput?ft:m);if(Be(r),e.cursor!==void 0&&e.cursor.length>j)throw new Error(`Output cursor exceeds the ${j}-character limit. Run the command again without --output-cursor.`);if(e.jsonOutputPath!==void 0){if(!e.json)throw new Error("--json-output requires --json.");if(e.agentOutput||e.pageSize!==void 0||e.cursor!==void 0)throw new Error("--json-output cannot be combined with --agent-output or output pagination.");e.command==="system-map"&&H(e.cwd,e.sourceSession!==!1),await Tt(e,t,n,a);return}if(e.json&&!e.agentOutput&&e.pageSize===void 0&&e.cursor===void 0){e.command==="system-map"&&H(e.cwd,e.sourceSession!==!1),await At(e,t,n);return}let c=Je(e.argv),p=Ge(e.invocationPrefix),h=De(e.command,e.cwd,p,c),g=e.cursor===void 0?void 0:Gt(e.cursor,h);e.command==="system-map"&&!g&&H(e.cwd,e.sourceSession!==!1);let d=g?.snapshotId,u;if(g)try{u=Nt(g,h,r,a,s,e.onSnapshotRead)}catch(y){let q=y instanceof Error?y.message:String(y);throw new Error(`${q} Restart with: ${Fe(p,c,r)}`,{cause:y})}else{let y=new W(h,p,e.command,e.cwd,c,r,a,Jt(e,p),s,o,e.agentOutput?Re:Ne,!e.json,se(a,e.agentOutput===!0)),q=Me(V=>y.write(V)),ce=!1;try{await t(),ce=!0}finally{q(),ce||y.abort()}let P;try{P=y.complete()}catch(V){throw y.abort(),V}d=P.snapshotId,u={content:P.content,offset:0,pageIndex:0,pageCount:P.pageCount,totalCharacters:P.totalCharacters,outputHash:P.outputHash}}let v=u.offset+u.content.length,l=u.pageIndex+1>=u.pageCount,f=l?void 0:Dt({invocationPrefix:p,nextPageIndex:u.pageIndex+1,snapshotId:qt(d)});if(k(e.command,e.cwd,l,e.sourceSession!==!1,f?.command),u.offset===0&&l&&e.cursor===void 0){n.writeStdout(u.content),B(!0),d&&I(d,s);return}let E={kind:K,schemaVersion:ee,producer:{name:"scip-query",version:e.producerVersion},command:e.command,contentType:e.json?"application/json":"text/plain",agentInstruction:f?"INCOMPLETE EVIDENCE: do not draw conclusions or report completion from this partial page. Run page.continuation.command exactly, then repeat until page.complete is true.":"OUTPUT COMPLETE: all rendered characters have been retrieved. Evaluate the command result's own coverage separately.",page:f?{offset:u.offset,returnedCharacters:u.content.length,totalCharacters:u.totalCharacters,omittedCharacters:u.totalCharacters-u.content.length,remainingCharacters:u.totalCharacters-v,complete:!1,outputHash:u.outputHash,continuation:f}:{offset:u.offset,returnedCharacters:u.content.length,totalCharacters:u.totalCharacters,omittedCharacters:u.totalCharacters-u.content.length,remainingCharacters:u.totalCharacters-v,complete:!0,outputHash:u.outputHash},content:u.content};if(e.json){n.writeStdout(`${JSON.stringify(E)}
2
- `),l&&d&&I(d,s);return}n.writeStdout(Kt(E)),l&&d&&I(d,s)}async function Nn(e,t,n=ne(),r=He){if(e.length>j)throw new Error(`Output cursor exceeds the ${j}-character limit.`);let s=ae(e);if(!s)throw new Error("Invalid output cursor. Run the original command again.");let o=ie(s.snapshotId,n);await Ct({command:o.command,producerVersion:t,invocationPrefix:o.invocationPrefix,argv:[...o.argv,"--output-page-size",String(o.pageSize),"--output-cursor",e],cwd:o.cwd,json:o.argv.some(i=>i==="--json"||i.startsWith("--json=")),sourceSession:!o.argv.some(i=>i==="--no-session"),agentOutput:o.argv.some(i=>i==="--agent-output"),pageSize:o.pageSize,cursor:e,snapshotRoot:n},()=>{throw new Error("Output continuation attempted to rerun the original command.")},r)}async function Tt(e,t,n,r){let s=e.jsonOutputPath;if(s===void 0||s.length===0||Buffer.byteLength(s)>M||s.includes("\0"))throw new Error(`--json-output requires a path from 1 through ${M} UTF-8 bytes.`);let o=pt(e.cwd,s);if(Buffer.byteLength(o)>M)throw new Error(`The resolved --json-output path exceeds ${M} UTF-8 bytes.`);let i=new Z("utf8"),a=A("sha256"),c=0,p=0,h=f=>{if(p+=f.length,!Number.isSafeInteger(p)||p>r)throw new Error(se(r,!1))};xe(dt(o),{recursive:!0});let g=`${o}.tmp-${Ce(12).toString("hex")}`,d=Y(g,"wx",384),u=!0,v=Me(f=>{let E=c+f.length;if(!Number.isSafeInteger(E)||E>Oe)throw new Error(`JSON export exceeds the ${Oe}-byte file safety limit. Narrow the query before retrying.`);if(h(i.write(f)),d===void 0)throw new Error("JSON export writer is closed.");_t(d,f),a.update(f),c=E});try{await t(),h(i.end()),v(),L(d),d=void 0,_e(g,o),u=!1}finally{if(v(),d!==void 0)try{L(d)}catch{}u&&Q(g,{force:!0})}let l={kind:mt,schemaVersion:yt,producer:{name:"scip-query",version:e.producerVersion},command:e.command,path:o,bytes:c,sha256:a.digest("hex")};n.writeStdout(`${JSON.stringify(l)}
3
- `),k(e.command,e.cwd,!0,e.sourceSession!==!1),B(!0)}function _t(e,t){let n=0;for(;n<t.length;){let r=Ae(e,t,n,t.length-n);if(r<=0)throw new Error("JSON export write made no forward progress.");n+=r}}function se(e,t){let n=`Command output exceeds the ${e}-character safety limit. Narrow the query before retrying.`;return t?`${n} For the complete machine result, use --json --json-output <path> and inspect the file programmatically.`:n}function Rn(e){if(!/^\d+$/u.test(e))throw new we(`Output page size must be an integer from ${w} through ${C}.`);let t=Number(e);try{Be(t)}catch{throw new we(`Output page size must be an integer from ${w} through ${C}.`)}return t}function Be(e){if(!Number.isSafeInteger(e)||e<w||e>C)throw new Error(`Output page size must be an integer from ${w} through ${C}.`)}async function At(e,t,n){let r=new G(x,e.maxOutputCharacters??m),s=process.stdout.write,o=!1,i=`${de(`scip-query: JSON output exceeds the ${x}-byte client-safe budget and may be truncated by the client. Do not use possibly partial client output as evidence. Read every page with: ${Fe(Ge(e.invocationPrefix),Qt(Je(e.argv)),R)}`)}
4
- `;process.stdout.write=((a,c,p)=>{let h=r.push(a,c);return h!==void 0&&(o||(o=!0,n.writeStderr(i)),s.call(process.stdout,h)),je(c,p),!0});try{await t();let a=r.finish();a.crossedPageBoundary&&!o&&(o=!0,n.writeStderr(i)),a.bytes.length>0&&s.call(process.stdout,a.bytes),o&&n.writeStderr(i),k(e.command,e.cwd,!0,e.sourceSession!==!1)}finally{process.stdout.write=s}}function Me(e){let t=process.stdout.write;return process.stdout.write=((n,r,s)=>{let o=Lt(n,r);return e(o),je(r,s),!0}),()=>{process.stdout.write=t}}function Lt(e,t){return typeof e=="string"?Buffer.from(e,typeof t=="string"?t:"utf8"):Buffer.from(e)}function je(e,t){let n=typeof e=="function"?e:t;typeof n=="function"&&n()}var G=class{constructor(t,n){this.byteLimit=t;this.maxOutputCharacters=n}byteLimit;maxOutputCharacters;decoder=new Z("utf8");chunks=[];overflowed=!1;totalCharacters=0;totalBytes=0;push(t,n){let r=typeof t=="string"?Buffer.from(t,typeof n=="string"?n:"utf8"):Buffer.from(t);if(this.totalBytes+=r.length,this.addCharacters(this.decoder.write(r)),this.overflowed)return r;if(this.chunks.push(r),this.totalBytes<=this.byteLimit)return;this.overflowed=!0;let s=Buffer.concat(this.chunks);return this.chunks.length=0,s}finish(){this.addCharacters(this.decoder.end());let t=this.totalBytes>this.byteLimit,n=Buffer.concat(this.chunks);return this.chunks.length=0,{bytes:n,crossedPageBoundary:t}}addCharacters(t){if(this.totalCharacters+=t.length,!Number.isSafeInteger(this.totalCharacters)||this.totalCharacters>this.maxOutputCharacters)throw new Error(`Command output exceeds the ${this.maxOutputCharacters}-character safety limit. Narrow the query before retrying.`)}},W=class{constructor(t,n,r,s,o,i,a,c,p,h,g,d,u=se(a,!1)){this.invocationHash=t;this.invocationPrefix=n;this.command=r;this.cwd=s;this.argv=o;this.pageSize=i;this.maxOutputCharacters=a;this.pageContentByteLimit=c;this.snapshotRoot=p;this.limits=h;this.maxPages=g;this.preferLineBoundaries=d;this.overflowMessage=u;oe(p);do this.snapshotId=Ce(9).toString("base64url");while(this.snapshotId.startsWith("-"));this.temporaryPath=S(p,this.snapshotId,"tmp")}invocationHash;invocationPrefix;command;cwd;argv;pageSize;maxOutputCharacters;pageContentByteLimit;snapshotRoot;limits;maxPages;preferLineBoundaries;overflowMessage;snapshotId;temporaryPath;decoder=new Z("utf8");hash=A("sha256");pages=[];descriptor=null;pending="";firstPageContent="";totalCharacters=0;pageCharacterOffset=0;byteLength=0;reservedBytes=0;opened=!1;finished=!1;write(t){if(this.finished)throw new Error("Output snapshot writer is closed.");this.appendDecoded(this.decoder.write(t))}complete(){if(this.finished)throw new Error("Output snapshot writer is closed.");if(this.appendDecoded(this.decoder.end()),this.finished=!0,!this.opened){let s=this.pending,o=Buffer.from(s);return this.assertWithinByteLimit(o.length),this.hash.update(o),this.pending="",{content:s,totalCharacters:this.totalCharacters,outputHash:this.hash.digest("hex"),pageCount:1}}if((this.pending.length>0||this.pages.length===0)&&(this.flushPage(this.pending),this.pending=""),this.descriptor===null)throw new Error("Output snapshot writer is not open.");L(this.descriptor),this.descriptor=null;let t=this.hash.digest("hex"),n=S(this.snapshotRoot,this.snapshotId,"output"),r=S(this.snapshotRoot,this.snapshotId,"json");try{_e(this.temporaryPath,n);let s={version:$e,snapshotId:this.snapshotId,invocationHash:this.invocationHash,invocationPrefix:[...this.invocationPrefix],command:this.command,cwd:this.cwd,argv:[...this.argv],outputHash:t,pageSize:this.pageSize,pages:this.pages,totalCharacters:this.totalCharacters,byteLength:this.byteLength,createdAtMs:Date.now()};return _(r,s),Ie(this.snapshotRoot,this.snapshotId,this.byteLength,"complete",this.limits),this.reservedBytes=this.byteLength,{content:this.firstPageContent,totalCharacters:this.totalCharacters,outputHash:t,pageCount:this.pages.length,snapshotId:this.snapshotId}}catch(s){throw I(this.snapshotId,this.snapshotRoot),s}}abort(){this.descriptor!==null&&(L(this.descriptor),this.descriptor=null),this.finished=!0,I(this.snapshotId,this.snapshotRoot)}appendDecoded(t){if(t.length===0)return;let n=this.totalCharacters+t.length;if(!Number.isSafeInteger(n)||n>this.maxOutputCharacters)throw new Error(this.overflowMessage);for(this.totalCharacters=n,this.pending+=t,this.assertWithinByteLimit(this.byteLength+Buffer.byteLength(this.pending));this.pending.length>this.pageSize||Buffer.byteLength(this.pending)>this.pageContentByteLimit;){this.open();let r=Vt(this.pending,this.pageSize,this.pageContentByteLimit,this.preferLineBoundaries),s=this.pending.slice(0,r);this.pending=this.pending.slice(r),this.flushPage(s)}}open(){if(!this.opened){Ht(this.snapshotRoot,this.snapshotId,0,this.limits);try{this.descriptor=Y(this.temporaryPath,"wx",384),this.opened=!0}catch(t){throw Bt(this.snapshotRoot,this.snapshotId),t}}}flushPage(t){if(this.descriptor===null)throw new Error("Output snapshot writer is not open.");if(this.pages.length>=this.maxPages)throw new Error(`Command output requires more than ${this.maxPages} snapshot pages. Retry with a larger --output-page-size, narrow the query, or use --json --json-output <path>.`);let n=Buffer.from(t),r=this.byteLength+n.length;if(this.assertWithinByteLimit(r),r>this.reservedBytes){let i=Math.min(this.limits.maxSnapshotBytes,Math.ceil(r/be)*be);Ie(this.snapshotRoot,this.snapshotId,i,"active",this.limits),this.reservedBytes=i}let s=0;for(;s<n.length;){let i=Ae(this.descriptor,n,s,n.length-s);if(i<=0)throw new Error("Output snapshot write made no progress.");s+=i}let o={characterOffset:this.pageCharacterOffset,characterLength:t.length,byteOffset:this.byteLength,byteLength:n.length,hash:A("sha256").update(n).digest("hex")};this.pages.length===0&&(this.firstPageContent=t),this.pages.push(o),this.hash.update(n),this.pageCharacterOffset+=t.length,this.byteLength=r}assertWithinByteLimit(t){if(!Number.isSafeInteger(t)||t>this.limits.maxSnapshotBytes)throw new Error(`Command output exceeds the ${this.limits.maxSnapshotBytes}-byte snapshot limit. Narrow the query before retrying.`)}};function Nt(e,t,n,r,s,o){oe(s);let i=ie(e.snapshotId,s);if(i.invocationHash!==t)throw new Error("This output cursor belongs to a different command, working directory, or argument set. Run again without --output-cursor.");if(i.snapshotId!==e.snapshotId||e.version===3&&(i.invocationHash!==e.invocationHash||i.outputHash!==e.outputHash))throw new Error("Output snapshot identity does not match this cursor.");if(i.pageSize!==n||e.version===3&&e.pageSize!==n)throw new Error(`Output page size changed after this cursor was issued; use ${i.pageSize}.`);let a=i.pages[e.pageIndex];if(!a)throw new Error("Output cursor points past the current result.");if(i.totalCharacters>r)throw new Error(`Output snapshot exceeds the ${r}-character safety limit.`);if(Date.now()-i.createdAtMs>te)throw I(e.snapshotId,s),new Error("Output snapshot expired before all pages were read.");let c=S(s,e.snapshotId,"output"),p=Y(c,"r");try{let h=ve(p);if(!h.isFile()||h.size!==i.byteLength)throw new Error("Output snapshot size or type changed.");let g=Buffer.allocUnsafe(a.byteLength),d=0;for(;d<g.length;){let l=at(p,g,d,g.length-d,a.byteOffset+d);if(l===0)break;d+=l,o?.(l)}let u=ve(p);if(u.dev!==h.dev||u.ino!==h.ino||u.size!==h.size||d!==a.byteLength)throw new Error("Output snapshot changed while it was being read.");if(A("sha256").update(g).digest("hex")!==a.hash)throw new Error("Output snapshot page no longer matches its metadata.");let v=g.toString("utf8");if(v.length!==a.characterLength)throw new Error("Output snapshot page character count changed.");return{content:v,offset:a.characterOffset,pageIndex:e.pageIndex,pageCount:i.pages.length,totalCharacters:i.totalCharacters,outputHash:i.outputHash}}catch(h){throw I(e.snapshotId,s),h}finally{L(p)}}function ie(e,t){if(!O(e))throw new Error("Output snapshot identifier is invalid.");let n;try{n=JSON.parse(U(S(t,e,"json"),"output snapshot metadata"))}catch(r){throw new Error("Output snapshot is unavailable.",{cause:r})}if(!Rt(n))throw new Error("Output snapshot metadata is invalid.");return n}function Rt(e){if(!e||typeof e!="object")return!1;let t=e;return t.version===$e&&typeof t.snapshotId=="string"&&O(t.snapshotId)&&b(t.invocationHash)&&We(t.invocationPrefix)&&typeof t.command=="string"&&t.command.length>0&&t.command.length<=256&&typeof t.cwd=="string"&&t.cwd.length>0&&t.cwd.length<=8192&&Zt(t.argv)&&De(t.command,t.cwd,t.invocationPrefix,t.argv)===t.invocationHash&&b(t.outputHash)&&Number.isSafeInteger(t.pageSize)&&(t.pageSize??0)>=w&&(t.pageSize??0)<=C&&Array.isArray(t.pages)&&t.pages.length>1&&t.pages.length<=Ne&&t.pages.every($t)&&Ut(t.pages)&&Number.isSafeInteger(t.totalCharacters)&&(t.totalCharacters??-1)>=0&&t.pages.reduce((n,r)=>n+r.characterLength,0)===t.totalCharacters&&Number.isSafeInteger(t.byteLength)&&(t.byteLength??-1)>=0&&t.pages.reduce((n,r)=>n+r.byteLength,0)===t.byteLength&&Number.isSafeInteger(t.createdAtMs)&&(t.createdAtMs??-1)>=0}function $t(e){if(!e||typeof e!="object")return!1;let t=e;return Number.isSafeInteger(t.characterOffset)&&(t.characterOffset??-1)>=0&&Number.isSafeInteger(t.characterLength)&&(t.characterLength??0)>0&&Number.isSafeInteger(t.byteOffset)&&(t.byteOffset??-1)>=0&&Number.isSafeInteger(t.byteLength)&&(t.byteLength??0)>0&&b(t.hash)}function Ut(e){let t=0,n=0;for(let r of e){if(r.characterOffset!==t||r.byteOffset!==n)return!1;t+=r.characterLength,n+=r.byteLength}return!0}function oe(e){xe(e,{recursive:!0,mode:448});let t=ot(e);if(!t.isDirectory()||t.isSymbolicLink())throw new Error(`Output snapshot root is not a private directory: ${e}`);if(typeof process.getuid=="function"&&t.uid!==process.getuid())throw new Error(`Output snapshot root is not owned by the current user: ${e}`);process.platform!=="win32"&&it(e,448)}function kt(e){let t={...Et,...e};for(let[n,r]of Object.entries(t))if(!Number.isSafeInteger(r)||r<=0)throw new Error(`Output snapshot ${n} must be a positive integer.`);if(t.maxSnapshotBytes>t.maxAggregateBytes)throw new Error("Output snapshot maxSnapshotBytes cannot exceed maxAggregateBytes.");return t}function Ht(e,t,n,r){z(e,()=>{jt(e),ze(e,t,n,"active",r)})}function Ie(e,t,n,r,s){if(!Number.isSafeInteger(n)||n<0||n>s.maxSnapshotBytes)throw new Error(`Command output exceeds the ${s.maxSnapshotBytes}-byte snapshot limit.`);z(e,()=>{ze(e,t,n,r,s)})}function ze(e,t,n,r,s){if(!Number.isSafeInteger(n)||n<0||n>s.maxSnapshotBytes)throw new Error(`Command output exceeds the ${s.maxSnapshotBytes}-byte snapshot limit.`);let o=Mt(e),i=o.find(g=>g.snapshotId===t),a=o.reduce((g,d)=>g+d.reservedBytes,0)-(i?.reservedBytes??0)+n,c=o.length+(i?0:1);if(c>s.maxSnapshotCount||a>s.maxAggregateBytes)throw new Error(`Output snapshot capacity is full (${c}/${s.maxSnapshotCount} snapshots, ${a}/${s.maxAggregateBytes} bytes). Narrow the query or finish an existing pagination sequence before retrying.`);let p=Date.now(),h={version:ke,snapshotId:t,pid:process.pid,...X()?{processIdentity:X()}:{},reservedBytes:n,state:r,createdAtMs:i?.createdAtMs??p,updatedAtMs:p};_(S(e,t,"reserve"),h)}function Bt(e,t){z(e,()=>{Q(S(e,t,"reserve"),{force:!0})})}function Mt(e){let t=[];for(let n of Te(e,{withFileTypes:!0})){if(!n.isFile()||!n.name.endsWith(".reserve"))continue;let r=n.name.slice(0,-8);if(O(r))try{let s=JSON.parse(U(N(e,n.name),"output snapshot reservation"));if(!qe(s)||s.snapshotId!==r)throw new Error("reservation identity is invalid");t.push(s)}catch(s){throw new Error(`Output snapshot reservation ${n.name} is invalid; retry after its owning process or snapshot expires.`,{cause:s})}}return t}function qe(e){if(!e||typeof e!="object")return!1;let t=e;return t.version===ke&&typeof t.snapshotId=="string"&&O(t.snapshotId)&&Number.isSafeInteger(t.pid)&&(t.pid??0)>0&&(t.processIdentity===void 0||he(t.processIdentity)!==null&&t.processIdentity.pid===t.pid)&&Number.isSafeInteger(t.reservedBytes)&&(t.reservedBytes??-1)>=0&&(t.state==="active"||t.state==="complete")&&Number.isSafeInteger(t.createdAtMs)&&Number.isSafeInteger(t.updatedAtMs)}function jt(e){let t=Date.now();for(let n of Te(e,{withFileTypes:!0})){if(!n.isFile()||!n.name.endsWith(".reserve"))continue;let r=n.name.slice(0,-8);if(!O(r))continue;let s=null;try{let c=JSON.parse(U(N(e,n.name),"output snapshot reservation"));s=qe(c)?c:null}catch{s=null}let o=zt(S(e,r,"json")),i=s?.state==="active"&&le(s.pid)&&(s.processIdentity===void 0||(()=>{let c=J(s.pid);return c!==null&&ge(s.processIdentity,c)})()),a=s?t-s.updatedAtMs>te:!1;i||o&&!a||!o&&s&&!a&&s.state==="complete"||Ve(r,e)}}function zt(e){try{return ut(e),!0}catch{return!1}}function z(e,t){oe(e);let n=N(e,wt),r=Date.now()+Ot;for(;;){let s=fe(n,{kind:"output-snapshot-quota",processIdentity:X()});if(s.kind==="acquired")try{return t()}finally{s.lock.release()}if(Date.now()>=r)throw new Error("Output snapshot quota is busy. Retry the command.");Atomics.wait(It,0,0,bt)}}function X(){return F===void 0&&(F=J(process.pid)),F}function I(e,t){O(e)&&z(t,()=>Ve(e,t))}function Ve(e,t){for(let n of["json","output","tmp","reserve"])Q(S(t,e,n),{force:!0})}function S(e,t,n){if(!O(t))throw new Error("Output snapshot identifier is invalid.");return N(e,`${t}.${n}`)}function qt(e){if(!e)throw new Error("Incomplete output did not create a resumable snapshot.");return e}function Ee(e){return e>=55296&&e<=56319}function Vt(e,t,n,r){let s=Math.min(e.length,t);if(Ee(e.charCodeAt(s-1))&&(s-=1),Buffer.byteLength(e.slice(0,s))>n){let o=0,i=s;for(;o<i;){let a=Math.ceil((o+i)/2);Buffer.byteLength(e.slice(0,a))<=n?o=a:i=a-1}s=o,Ee(e.charCodeAt(s-1))&&(s-=1)}if(s<=0)throw new Error("Output page byte limit cannot contain one UTF-8 character.");if(r){let o=e.lastIndexOf(`
5
- `,s-1);if(o>=0)return o+1}return s}function Dt(e){let t=Ft({pageIndex:e.nextPageIndex,snapshotId:e.snapshotId});return{cursor:t,command:ue(e.invocationPrefix,t)}}function Jt(e,t){let n="c".repeat(64),r={cursor:n,command:ue(t,n)};if(!e.json){let i="9".repeat(String(m).length),a=`[scip-query output page: characters ${i}-${i} of ${i}]
6
-
7
- [Incomplete: ${i} characters remain. Continue exactly:
8
- ${r.command}]
9
- `;return Pe(D,Buffer.byteLength(a),1)}let s={kind:K,schemaVersion:ee,producer:{name:"scip-query",version:e.producerVersion},command:e.command,contentType:"application/json",agentInstruction:"INCOMPLETE EVIDENCE: do not draw conclusions or report completion from this partial page. Run page.continuation.command exactly, then repeat until page.complete is true.",page:{offset:m,returnedCharacters:m,totalCharacters:m,omittedCharacters:m,remainingCharacters:m,complete:!1,outputHash:"f".repeat(64),continuation:r},content:""},o=Buffer.byteLength(`${JSON.stringify(s)}
10
- `);return Pe($,o,2)}function Pe(e,t,n){let r=Math.floor((x-t)/n);if(r<w)throw new Error(`The command invocation leaves fewer than ${w} bytes for client-safe output content. Use a shorter executable path.`);return Math.min(e,r)}function Ft(e){return Ue.test(e.snapshotId)?e.pageIndex===1?e.snapshotId:`${e.snapshotId}.${e.pageIndex.toString(36)}`:`4.${Xt(e.snapshotId)}.${e.pageIndex.toString(36)}`}function Gt(e,t){let n=ae(e);if(!n)throw new Error("Invalid output cursor. Run the command again without --output-cursor.");if(n.version===3&&n.invocationHash!==t)throw new Error("This output cursor belongs to a different command, working directory, or argument set. Run again without --output-cursor.");return n}function ae(e){let t=vt.exec(e);if(t){let r=t[2]??"1",s=Number.parseInt(r,36);return Number.isSafeInteger(s)&&s>=1&&s.toString(36)===r?{version:4,pageIndex:s,snapshotId:t[1]}:null}let n=St.exec(e);if(n){let r=Yt(n[1]),s=Number.parseInt(n[2],36);return r&&Number.isSafeInteger(s)&&s>=1&&s.toString(36)===n[2]?{version:4,pageIndex:s,snapshotId:r}:null}try{let r=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));return Wt(r)?r:null}catch{return null}}function $n(e,t=ne()){let n=ae(e);if(n)try{let r=ie(n.snapshotId,t);if(r.snapshotId!==n.snapshotId||n.version===3&&(r.invocationHash!==n.invocationHash||r.outputHash!==n.outputHash||r.pageSize!==n.pageSize)||Date.now()-r.createdAtMs>te||!r.pages[n.pageIndex])return;let s=r.pages[n.pageIndex];return{snapshotId:r.snapshotId,pageIndex:n.pageIndex,command:r.command,cwd:r.cwd,continuationCommand:ue(r.invocationPrefix,e),remainingCharacters:r.totalCharacters-s.characterOffset,totalCharacters:r.totalCharacters,outputHash:r.outputHash,createdAtMs:r.createdAtMs}}catch{return}}function Wt(e){if(!e||typeof e!="object")return!1;let t=e;return t.version===3&&b(t.invocationHash)&&Number.isSafeInteger(t.pageIndex)&&(t.pageIndex??-1)>=1&&Number.isSafeInteger(t.pageSize)&&(t.pageSize??0)>=w&&(t.pageSize??0)<=C&&b(t.outputHash)&&typeof t.snapshotId=="string"&&O(t.snapshotId)}function Xt(e){if(!re.test(e))throw new Error("Output snapshot identifier is invalid.");return Buffer.from(e.replaceAll("-",""),"hex").toString("base64url")}function Yt(e){let t=Buffer.from(e,"base64url");if(t.length!==16)return null;let n=t.toString("hex"),r=`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`;return re.test(r)?r:null}function O(e){return typeof e=="string"&&(Ue.test(e)||re.test(e))}function De(e,t,n,r){return A("sha256").update(JSON.stringify({command:e,cwd:t,invocationPrefix:n,argv:r})).digest("hex")}function Je(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];if(r==="--output-page-size"||r==="--output-cursor"){n+=1;continue}r.startsWith("--output-page-size=")||r.startsWith("--output-cursor=")||t.push(r)}return t}function Qt(e){return e.filter(t=>t!=="--raw-json"&&t!=="--raw-json=true")}function Fe(e,t,n){return Xe([...e,...t,"--output-page-size",String(n)])}function ue(e,t){return Xe([...e,ht,t])}function Ge(e){let t=e===void 0?["scip-query"]:[...e];if(!We(t))throw new Error("Output pagination invocation prefix must contain one to sixteen non-empty shell arguments.");return t}function We(e){return Array.isArray(e)&&e.length>0&&e.length<=16&&e.every(t=>typeof t=="string"&&t.length>0&&t.length<=2048&&!t.includes("\0")&&!t.includes("\r")&&!t.includes(`
11
- `))}function Zt(e){return Array.isArray(e)&&e.length>0&&e.length<=256&&e.every(t=>typeof t=="string"&&t.length<=8192&&!t.includes("\0")&&!t.includes("\r")&&!t.includes(`
12
- `))}function Xe(e){return e.map(t=>me(t,{omitSafeQuotes:!0})).join(" ")}function Kt(e){let t=e.page.continuation,n=Math.max(e.page.offset,e.page.offset+e.page.returnedCharacters-1),r=`[scip-query output page: characters ${e.page.offset}-${n} of ${e.page.totalCharacters}]
13
- `,s=t?`
14
- [Incomplete: ${e.page.remainingCharacters} characters remain. Continue exactly:
15
- ${t.command}]
16
- `:`
17
- [scip-query transport complete; evaluate command coverage separately]
18
- `;return`${r}${e.content}${s}`}export{x as CLIENT_SAFE_OUTPUT_BYTES,mt as CLI_JSON_EXPORT_RECEIPT_KIND,yt as CLI_JSON_EXPORT_RECEIPT_SCHEMA_VERSION,ht as CLI_OUTPUT_CONTINUATION_COMMAND,K as CLI_OUTPUT_PAGE_KIND,ee as CLI_OUTPUT_PAGE_SCHEMA_VERSION,R as DEFAULT_OUTPUT_PAGE_SIZE,D as HUMAN_OUTPUT_PAGE_CONTENT_BYTES,$ as JSON_OUTPUT_PAGE_CONTENT_BYTES,ft as MAX_AGENT_OUTPUT_CHARACTERS,Re as MAX_AGENT_OUTPUT_PAGES,Oe as MAX_JSON_OUTPUT_FILE_BYTES,M as MAX_JSON_OUTPUT_PATH_LENGTH,j as MAX_OUTPUT_CURSOR_LENGTH,C as MAX_OUTPUT_PAGE_SIZE,gt as MAX_OUTPUT_SNAPSHOT_AGGREGATE_BYTES,Le as MAX_OUTPUT_SNAPSHOT_BYTES,lt as MAX_OUTPUT_SNAPSHOT_COUNT,Ne as MAX_OUTPUT_SNAPSHOT_PAGES,m as MAX_TRACKED_OUTPUT_CHARACTERS,w as MIN_OUTPUT_PAGE_SIZE,te as OUTPUT_SNAPSHOT_TTL_MS,Nn as continueCliOutput,Pt as decodeCliOutputPageEnvelope,$n as inspectPendingCliOutputCursor,Rn as parseOutputPageSize,Ln as requireCliOutputPageEnvelope,Ct as runWithCliOutputPagination};
19
- //# sourceMappingURL=output-pagination-3OFL2MJV.js.map
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as a}from"./chunk-XPDPNWTQ.js";import"./chunk-66DVSJQG.js";export{a as reindexConfiguredProject};
3
- //# sourceMappingURL=project-reindex-UKKQ5PLS.js.map
@@ -1,123 +0,0 @@
1
- import { F as FileKind } from '../file-kind-BKCVMNUf.js';
2
- import { S as ScipDatabase } from '../db-BwIVAYNB.js';
3
- import { a as CalleeEvidenceSource } from '../call-graph-evidence-lZa2dwQA.js';
4
- import 'better-sqlite3';
5
- import '../config-types-B9B60MiR.js';
6
-
7
- type AnchorDiscoveryMatchSource = 'symbol' | 'path' | 'documentation' | 'source';
8
- interface AnchorDiscoveryTermMatch {
9
- term: string;
10
- sources: AnchorDiscoveryMatchSource[];
11
- locations: Array<{
12
- file: string;
13
- line: number;
14
- }>;
15
- }
16
- interface AnchorDiscoveryCandidate {
17
- symbol: string;
18
- label: string;
19
- leaf: string;
20
- file: string;
21
- line: number;
22
- endLine: number;
23
- kind: 'callable' | 'type' | 'symbol';
24
- fileKind: FileKind;
25
- matches: AnchorDiscoveryTermMatch[];
26
- focusLocations: Array<{
27
- file: string;
28
- line: number;
29
- matchedTerms: string[];
30
- }>;
31
- matchedTerms: string[];
32
- symbolMatchedTerms: string[];
33
- symbolPhraseLength: number;
34
- identityMatchedTerms: string[];
35
- rarity: number;
36
- symbolRarity: number;
37
- /** Exact slash-delimited query path fragments matched by this candidate's repository path. */
38
- queryPathMatches?: string[];
39
- /** Exact current source size for the compiler-owned range, when available. */
40
- sourceCharacters?: number;
41
- }
42
- interface AnchorDiscoveryRelation {
43
- kind: 'call' | 'runtime-boundary';
44
- fromSymbol: string;
45
- fromLabel: string;
46
- fromFile: string;
47
- toSymbol: string;
48
- toLabel: string;
49
- toFile: string;
50
- depth: number;
51
- strength: 'exact' | 'derived';
52
- evidence: CalleeEvidenceSource | 'scip-occurrence-callsite' | 'ast-member-import-candidate' | `runtime-boundary:${string}`;
53
- callsiteLine: number | null;
54
- runtimeBoundaryKey?: string;
55
- }
56
- interface AnchorDiscoveryGroup {
57
- id: string;
58
- kind: 'cross-boundary-flow' | 'parallel-paths' | 'connected-flow' | 'shared-callee-owners';
59
- roots: AnchorDiscoveryCandidate[];
60
- keyAnchors: AnchorDiscoveryCandidate[];
61
- candidateOwnerCount: number;
62
- omittedCandidateOwners: AnchorDiscoveryCandidate[];
63
- ownerRecoveryCommands: string[];
64
- upstreamEntries: AnchorDiscoveryUpstreamEntry[];
65
- matchedTerms: string[];
66
- /** Exact slash-delimited query path fragments covered by the group's roots. */
67
- queryPathMatches?: string[];
68
- relations: AnchorDiscoveryRelation[];
69
- relationCount: number;
70
- /** Number of independently named sides that carry at least one causal edge. */
71
- parallelConnectedSides?: number;
72
- /** Number of independently named sides whose matched root has an outgoing causal edge. */
73
- parallelOrchestrationSides?: number;
74
- /** Query vocabulary that occurs in the repository path on every batched side. */
75
- parallelSharedPathTerms?: string[];
76
- /** Rarest repository frequency among the shared path terms; lower is more discriminative. */
77
- parallelSharedPathFrequency?: number;
78
- /** Matched roots that initiate at least one returned causal relationship. */
79
- orchestrationRootCount?: number;
80
- omittedRelations: number;
81
- systemMapCommand: string;
82
- }
83
- interface AnchorDiscoveryUpstreamEntry {
84
- name: string;
85
- file: string;
86
- line: number;
87
- endLine: number;
88
- callsiteLine: number;
89
- }
90
- interface AnchorDiscoveryResult {
91
- query: string;
92
- /** Slash-delimited repository path fragments preserved from the original query. */
93
- queryPathFragments?: string[];
94
- normalizedTerms: string[];
95
- matchedTerms: string[];
96
- unmatchedTerms: string[];
97
- groups: AnchorDiscoveryGroup[];
98
- candidateRoots: AnchorDiscoveryCandidate[];
99
- candidateRootCount: number;
100
- analyzedRootCount: number;
101
- omittedRootCount: number;
102
- omittedGroupCount: number;
103
- scannedFiles: number;
104
- scannedBytes: number;
105
- recoveryCommand: string | null;
106
- }
107
- interface AnchorDiscoveryOptions {
108
- scope?: string;
109
- limit?: number;
110
- full?: boolean;
111
- semantic?: boolean;
112
- }
113
- /**
114
- * Locate a small set of graph starting points from vocabulary that already
115
- * exists in the repository. Query words are normalized mechanically; their
116
- * meaning is not inferred. The highest-ranked owning definitions receive a
117
- * bounded two-hop call expansion so connected candidates can be selected in
118
- * one model-visible packet.
119
- */
120
- declare function discoverAnchors(db: ScipDatabase, query: string, options?: AnchorDiscoveryOptions): AnchorDiscoveryResult;
121
- declare function normalizeAnchorQuery(query: string): string[];
122
-
123
- export { type AnchorDiscoveryCandidate, type AnchorDiscoveryGroup, type AnchorDiscoveryMatchSource, type AnchorDiscoveryOptions, type AnchorDiscoveryRelation, type AnchorDiscoveryResult, type AnchorDiscoveryTermMatch, type AnchorDiscoveryUpstreamEntry, discoverAnchors, normalizeAnchorQuery };
@@ -1,2 +0,0 @@
1
- import{a,b}from"../chunk-YSH6U3L4.js";import"../chunk-DIRJWYBM.js";import"../chunk-TPFHAQ2G.js";import"../chunk-OR2E3AGZ.js";import"../chunk-6VVV4WRR.js";import"../chunk-VUPHCS7Y.js";import"../chunk-WOIKCX6A.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as discoverAnchors,b as normalizeAnchorQuery};
2
- //# sourceMappingURL=anchors.js.map
@@ -1,40 +0,0 @@
1
- import { S as ScipDatabase } from '../db-BwIVAYNB.js';
2
- import { BranchEstimateBasis } from './complexity.js';
3
- import 'better-sqlite3';
4
- import '../config-types-B9B60MiR.js';
5
- import '../symbol-types-BIQwfoAx.js';
6
-
7
- interface ComplexityHotspot {
8
- symbol: string;
9
- shortName: string;
10
- file: string;
11
- startLine: number;
12
- endLine: number;
13
- loc: number;
14
- fanIn: number;
15
- fanOut: number;
16
- calleeCount: number;
17
- branches: number;
18
- estimateBasis: BranchEstimateBasis;
19
- score: number;
20
- }
21
- /**
22
- * Find complexity hotspots: symbols with a composite score based on
23
- * LOC, fan-in, fan-out, and callee count.
24
- *
25
- * Score = (loc / 50) * (fanIn / 5) * max(fanOut / 5, 1) * max(cyclomatic / 5, 1)
26
- *
27
- * Bulk fan-in/out via caller evidence + buildCalleeMap so we pay
28
- * one SQL pass per kind regardless of how many definitions we score —
29
- * replaces the previous per-symbol getCaller/CalleeRowsForSymbol calls
30
- * that were O(symbols × files) on large indexes.
31
- */
32
- declare function complexityHotspots(db: ScipDatabase, opts?: {
33
- scope?: string;
34
- minLoc?: number;
35
- limit?: number;
36
- scanLimit?: number;
37
- semantic?: boolean;
38
- }): ComplexityHotspot[];
39
-
40
- export { type ComplexityHotspot, complexityHotspots };
@@ -1,2 +0,0 @@
1
- import{a}from"../chunk-QU5XRYB5.js";import"../chunk-WUN6KBHV.js";import"../chunk-T4N4P2K5.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as complexityHotspots};
2
- //# sourceMappingURL=complexity-hotspots.js.map
@@ -1,33 +0,0 @@
1
- import { S as ScipDatabase } from '../db-BwIVAYNB.js';
2
- import 'better-sqlite3';
3
- import '../config-types-B9B60MiR.js';
4
-
5
- interface ConvergenceResult {
6
- symbolA: {
7
- symbol: string;
8
- shortName: string;
9
- file: string;
10
- loc: number;
11
- };
12
- symbolB: {
13
- symbol: string;
14
- shortName: string;
15
- file: string;
16
- loc: number;
17
- };
18
- similarity: number;
19
- sharedCallees: string[];
20
- uniqueToA: string[];
21
- uniqueToB: string[];
22
- consolidationStrategy: string;
23
- }
24
- /**
25
- * Given two similar symbols, show what a consolidated version would look like.
26
- * The shared callee set becomes the common body. The unique callees become
27
- * the parameterization points.
28
- */
29
- declare function convergence(db: ScipDatabase, symbolPatternA: string, symbolPatternB: string, opts?: {
30
- semantic?: boolean;
31
- }): ConvergenceResult | null;
32
-
33
- export { type ConvergenceResult, convergence };
@@ -1,2 +0,0 @@
1
- import{a}from"../chunk-PJFGPYTU.js";import"../chunk-TQPCBMWT.js";import"../chunk-KMVGRIO2.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as convergence};
2
- //# sourceMappingURL=convergence.js.map