scip-query 0.21.0 → 0.22.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.
- package/CHANGELOG.md +72 -0
- package/dist/augment-vue-worker.js +1 -1
- package/dist/by-kind-4IYG2SKW.js +2 -0
- package/dist/call-graph-WQNXMNNN.js +2 -0
- package/dist/{chunk-AQDWTCDC.js → chunk-25GWKRUZ.js} +2 -2
- package/dist/chunk-2BTJALUS.js +454 -0
- package/dist/chunk-2KVU55CW.js +11 -0
- package/dist/{chunk-BBWPOMGU.js → chunk-2OXVP5U5.js} +2 -2
- package/dist/{chunk-D5W4UZY5.js → chunk-2RE5OCHZ.js} +2 -2
- package/dist/{chunk-2I3RSUWX.js → chunk-2XCGSDIT.js} +2 -2
- package/dist/{chunk-V7LQZTTZ.js → chunk-2YC7YNKT.js} +2 -2
- package/dist/chunk-3QXC54FQ.js +3 -0
- package/dist/{chunk-32A42O5B.js → chunk-3TJY6M3B.js} +2 -2
- package/dist/chunk-42W3LFUK.js +13 -0
- package/dist/chunk-44T4DUAA.js +2 -0
- package/dist/chunk-4GAQ6FI4.js +43 -0
- package/dist/{chunk-4S4DF62J.js → chunk-4HE7MVWD.js} +2 -2
- package/dist/{chunk-TGWNNMPF.js → chunk-4TQU4TX2.js} +2 -2
- package/dist/{chunk-SKUMCCC5.js → chunk-56NQAEPJ.js} +2 -2
- package/dist/chunk-57N6LN2A.js +3 -0
- package/dist/{chunk-LPGDO2XA.js → chunk-5H5WTJSD.js} +2 -2
- package/dist/{chunk-EA4SH4U5.js → chunk-5YRQIE2B.js} +2 -2
- package/dist/{chunk-O2RM7E7L.js → chunk-5ZMBRQFC.js} +4 -4
- package/dist/{chunk-ICHBVITH.js → chunk-6HRZQLOI.js} +2 -2
- package/dist/{chunk-WULAPQUD.js → chunk-6NC3YSPY.js} +2 -2
- package/dist/{chunk-IDPLC3FI.js → chunk-6VEFRPTD.js} +2 -2
- package/dist/{chunk-IOKWFRFQ.js → chunk-7C26EKLZ.js} +2 -2
- package/dist/{chunk-S3RTPPLQ.js → chunk-7IQXARSQ.js} +2 -2
- package/dist/chunk-7JYHQAH2.js +22 -0
- package/dist/chunk-7KSO2OAP.js +2 -0
- package/dist/{chunk-2ZBMOQGG.js → chunk-7U2YQSDE.js} +2 -2
- package/dist/{chunk-EKZRF57O.js → chunk-7XA3OM44.js} +2 -2
- package/dist/{chunk-4EXFZP6H.js → chunk-7XZGZBSQ.js} +2 -2
- package/dist/chunk-7YQOCABQ.js +2 -0
- package/dist/chunk-A77SCPW2.js +3 -0
- package/dist/chunk-AK3PYTIK.js +5 -0
- package/dist/chunk-AMIMMNA4.js +11 -0
- package/dist/{chunk-MOBF2GH6.js → chunk-AQ2PORIO.js} +2 -2
- package/dist/{chunk-YUFWLWIC.js → chunk-ARVO6TTW.js} +2 -2
- package/dist/chunk-AUY5BL74.js +2 -0
- package/dist/{chunk-RGCJ4646.js → chunk-AYPDH2LU.js} +2 -2
- package/dist/{chunk-73Z33VFI.js → chunk-AZS7YPCB.js} +2 -2
- package/dist/{chunk-SYUNTKO2.js → chunk-BDGTPN27.js} +2 -2
- package/dist/{chunk-BATIVRU2.js → chunk-BDHFVH2M.js} +2 -2
- package/dist/chunk-BECZLYNU.js +8 -0
- package/dist/chunk-BJT7LSPK.js +3 -0
- package/dist/{chunk-6SWA6B24.js → chunk-BTVKZGWT.js} +2 -2
- package/dist/{chunk-QD7IFBCR.js → chunk-BUTEIZKP.js} +2 -2
- package/dist/{chunk-UZFCZ7SJ.js → chunk-BVFYEEBH.js} +2 -2
- package/dist/{chunk-ICUQONOG.js → chunk-BWVQP3LB.js} +2 -2
- package/dist/chunk-BYDAFMSR.js +57 -0
- package/dist/{chunk-BHE44MHT.js → chunk-C76O5MDS.js} +2 -2
- package/dist/chunk-C7IJMOFP.js +134 -0
- package/dist/{chunk-CN2WGM7D.js → chunk-CBBHFNLX.js} +2 -2
- package/dist/{chunk-COTMS5KM.js → chunk-CKRWA452.js} +2 -2
- package/dist/{chunk-ANWGXPPN.js → chunk-CLG6DWVS.js} +2 -2
- package/dist/chunk-D2MVJSP4.js +21 -0
- package/dist/chunk-D35XIZGN.js +2 -0
- package/dist/{chunk-U7DR7MJD.js → chunk-DEAB5TGT.js} +2 -2
- package/dist/{chunk-6GJAP4OE.js → chunk-DJAO2OZJ.js} +2 -2
- package/dist/chunk-DKM723YF.js +79 -0
- package/dist/{chunk-4IIMPWMR.js → chunk-DPWKKNKI.js} +2 -2
- package/dist/chunk-E44IVWIJ.js +367 -0
- package/dist/chunk-EDMB6SSO.js +7 -0
- package/dist/{chunk-KWARB5FZ.js → chunk-EELG7D3Q.js} +2 -2
- package/dist/chunk-EELPBR7E.js +3 -0
- package/dist/chunk-EETGXQY7.js +3 -0
- package/dist/chunk-ENWQWA2R.js +2 -0
- package/dist/{chunk-HUZNZ3H2.js → chunk-ERCYGVAM.js} +2 -2
- package/dist/{chunk-WSG3DK5H.js → chunk-EWWY2ZFL.js} +2 -2
- package/dist/chunk-F24G5NBE.js +3 -0
- package/dist/{chunk-XRXCANFQ.js → chunk-F24QUEQP.js} +2 -2
- package/dist/{chunk-KFK7GF5C.js → chunk-FBCVASUG.js} +2 -2
- package/dist/{chunk-35IW3P4H.js → chunk-FELGD32K.js} +2 -2
- package/dist/{chunk-UNORWZIJ.js → chunk-FFJQZG6J.js} +5 -5
- package/dist/{chunk-5SE323LF.js → chunk-FGNCOQUX.js} +2 -2
- package/dist/chunk-FKGQOTKD.js +2 -0
- package/dist/chunk-GDRJB3SB.js +3 -0
- package/dist/chunk-GH5YSGZL.js +5 -0
- package/dist/{chunk-X7PJJYKX.js → chunk-GIQ6CSL4.js} +2 -2
- package/dist/{chunk-2RP27XLR.js → chunk-GPGRZJ3R.js} +2 -2
- package/dist/{chunk-IYV2YBHM.js → chunk-GQIDEID3.js} +2 -2
- package/dist/chunk-GRX7JOXQ.js +2 -0
- package/dist/{chunk-H46QMB7E.js → chunk-GVOMSPGL.js} +2 -2
- package/dist/{chunk-KTRGJLY7.js → chunk-GY7CCCEZ.js} +2 -2
- package/dist/{chunk-VNKYRJKN.js → chunk-H7CG6LOE.js} +2 -2
- package/dist/chunk-HCVJR2V4.js +3 -0
- package/dist/chunk-HG722PO7.js +3 -0
- package/dist/{chunk-LHTT5C3Z.js → chunk-HISEUIL2.js} +2 -2
- package/dist/{chunk-K5MZYZV7.js → chunk-HXOU4XNH.js} +2 -2
- package/dist/chunk-I6UTXNHU.js +6 -0
- package/dist/{chunk-I7PFL5P3.js → chunk-IJMD6BRI.js} +2 -2
- package/dist/{chunk-XXJ7WL3F.js → chunk-IKVNEGTW.js} +2 -2
- package/dist/chunk-IMKZEXZG.js +2 -0
- package/dist/chunk-ISIQLPJ2.js +61 -0
- package/dist/{chunk-DEUGHURX.js → chunk-ISWFRGJ6.js} +2 -2
- package/dist/chunk-IW5XQG5G.js +2 -0
- package/dist/chunk-IXESDH3J.js +2 -0
- package/dist/{chunk-FGB567HK.js → chunk-JAT6C3VX.js} +2 -2
- package/dist/{chunk-7TWP3MCP.js → chunk-JFQBRL3J.js} +2 -2
- package/dist/{chunk-Q7HB7BFJ.js → chunk-JHH5SCZ3.js} +2 -2
- package/dist/{chunk-ZHSARYVS.js → chunk-JJ62MTQH.js} +2 -2
- package/dist/chunk-JT6XX7QY.js +8 -0
- package/dist/{chunk-5H7IWVXJ.js → chunk-JUN5DOAK.js} +2 -2
- package/dist/{chunk-DOPCR5BY.js → chunk-K3XFWJI2.js} +2 -2
- package/dist/{chunk-Y4XQ7LES.js → chunk-KFOYCQAJ.js} +1 -1
- package/dist/{chunk-N5C65OFK.js → chunk-KFVSJX25.js} +2 -2
- package/dist/chunk-KK7GPALL.js +28 -0
- package/dist/{chunk-DHKBIOXF.js → chunk-KQHJEU6V.js} +2 -2
- package/dist/{chunk-WB6LGCFB.js → chunk-KZYID5KV.js} +2 -2
- package/dist/{chunk-KW6B5OL4.js → chunk-LO5JSW2C.js} +2 -2
- package/dist/{chunk-ZW44MCJM.js → chunk-LRI5OMPE.js} +2 -2
- package/dist/{chunk-HG5YI7PV.js → chunk-LXQUF2RP.js} +2 -2
- package/dist/{chunk-TM5XEDDR.js → chunk-MHIEP7EG.js} +2 -2
- package/dist/{chunk-FHV7NMFU.js → chunk-MSR2QRUE.js} +2 -2
- package/dist/chunk-N7FP5H5U.js +57 -0
- package/dist/{chunk-3653GTR7.js → chunk-NEIQPFBI.js} +2 -2
- package/dist/chunk-NK3JMP22.js +2 -0
- package/dist/{chunk-7IOAZRVL.js → chunk-NRBNAECH.js} +2 -2
- package/dist/{chunk-HGKEAP7F.js → chunk-NVSZNESQ.js} +2 -2
- package/dist/{chunk-R2MOKIVO.js → chunk-OJNK5ALA.js} +2 -2
- package/dist/{chunk-RFWAUHVW.js → chunk-OPSAW5DT.js} +2 -2
- package/dist/chunk-OTSPRVNW.js +2 -0
- package/dist/chunk-OXYAWIEA.js +2 -0
- package/dist/chunk-OZETODHH.js +2 -0
- package/dist/chunk-PBUH2P5S.js +3 -0
- package/dist/{chunk-QBANU5BQ.js → chunk-PIFTZEEM.js} +2 -2
- package/dist/{chunk-CKDOY6JA.js → chunk-PLJUQFQN.js} +2 -2
- package/dist/{chunk-JVZNWJBH.js → chunk-PLYUVM4F.js} +2 -2
- package/dist/chunk-PXXYQK55.js +2 -0
- package/dist/{chunk-WZQFY5S7.js → chunk-Q55NF3ZG.js} +2 -2
- package/dist/{chunk-OVPS2ILI.js → chunk-Q5TA4OY4.js} +2 -2
- package/dist/{chunk-OUB4J26T.js → chunk-Q6T2CAJL.js} +2 -2
- package/dist/chunk-Q7GBK5T7.js +81 -0
- package/dist/chunk-QKT4UI2Y.js +2 -0
- package/dist/{chunk-PIZY2GX6.js → chunk-QLBSG7U5.js} +2 -2
- package/dist/chunk-QWKHW6VZ.js +2 -0
- package/dist/{chunk-E7BJXRNV.js → chunk-R6M456QG.js} +2 -2
- package/dist/{chunk-MJNV7OCG.js → chunk-RDULNRSJ.js} +2 -2
- package/dist/{chunk-SSSJO4RG.js → chunk-RHHCLWQ6.js} +2 -2
- package/dist/chunk-RNKPYYYE.js +4 -0
- package/dist/{chunk-IXJ26KJJ.js → chunk-RPL3ARU7.js} +2 -2
- package/dist/{chunk-3EX7DNBC.js → chunk-RYOYJMGF.js} +2 -2
- package/dist/chunk-SB25YMEQ.js +2 -0
- package/dist/chunk-SV2LEFVM.js +2 -0
- package/dist/{chunk-ZBNL3QCY.js → chunk-SVHTMVA4.js} +3 -3
- package/dist/{chunk-6IEVHGWG.js → chunk-SWK4XPUS.js} +2 -2
- package/dist/chunk-T6QD2ZQB.js +43 -0
- package/dist/{chunk-VETXXOYU.js → chunk-TAYD3AE7.js} +2 -2
- package/dist/chunk-TD7VKJ2Y.js +117 -0
- package/dist/{chunk-UQ7XPRWU.js → chunk-TH6IC56G.js} +2 -2
- package/dist/{chunk-XVDMJMES.js → chunk-TKDNDQA7.js} +2 -2
- package/dist/{chunk-CSDDOUA4.js → chunk-TNG2FYS5.js} +2 -2
- package/dist/chunk-TQZV7KV4.js +2 -0
- package/dist/{chunk-AJVMVE7X.js → chunk-TUQIPUDS.js} +2 -2
- package/dist/chunk-TUSPIVZ3.js +4 -0
- package/dist/{chunk-ORBKAUCH.js → chunk-U2N2KE7A.js} +2 -2
- package/dist/{chunk-3PII3JI5.js → chunk-UAQ4T73O.js} +2 -2
- package/dist/{chunk-OFY4HTMI.js → chunk-UDY7MIAW.js} +2 -2
- package/dist/{chunk-WKPZCQLI.js → chunk-URSGGIZX.js} +2 -2
- package/dist/{chunk-UL4VJUMD.js → chunk-UT7TADJX.js} +2 -2
- package/dist/chunk-V4NG5OMS.js +554 -0
- package/dist/{chunk-2H4IAJHO.js → chunk-VMWUV6WB.js} +2 -2
- package/dist/{chunk-46JLFIGA.js → chunk-VTCIYFEK.js} +2 -2
- package/dist/chunk-VU6LIWHT.js +2 -0
- package/dist/chunk-VUSKPCUB.js +2 -0
- package/dist/{chunk-URMZLV2N.js → chunk-VXJJTQYE.js} +2 -2
- package/dist/{chunk-IPAL6DP2.js → chunk-VZ7NXSHV.js} +2 -2
- package/dist/{chunk-FUG6RPYY.js → chunk-WHADK6OS.js} +2 -2
- package/dist/chunk-WN3TCGJ4.js +2 -0
- package/dist/{chunk-B7ECWJAZ.js → chunk-WOOAY3PA.js} +2 -2
- package/dist/chunk-WRQXLNYE.js +9 -0
- package/dist/chunk-WSLEJSFR.js +2 -0
- package/dist/chunk-WYZIHUPZ.js +16 -0
- package/dist/{chunk-ZYREOING.js → chunk-XE33FV5W.js} +2 -2
- package/dist/chunk-XFMVKFSF.js +2 -0
- package/dist/{chunk-BBEDPVPB.js → chunk-XGGBK66W.js} +2 -2
- package/dist/{chunk-OFUBXBYX.js → chunk-XJX6LGHL.js} +2 -2
- package/dist/{chunk-Z3GCK3PD.js → chunk-XN22RGSR.js} +2 -2
- package/dist/{chunk-HWLCBKFE.js → chunk-XSWYJCAK.js} +2 -2
- package/dist/{chunk-IGKKTHJR.js → chunk-XU75YQN4.js} +2 -2
- package/dist/{chunk-E4EJBGDZ.js → chunk-Y2VM4CJC.js} +2 -2
- package/dist/{chunk-U7LRSQG6.js → chunk-Y334QQU5.js} +2 -2
- package/dist/{chunk-APLKXICZ.js → chunk-YAGYMBEX.js} +2 -2
- package/dist/{chunk-XITQLISP.js → chunk-YIHNPKWD.js} +2 -2
- package/dist/chunk-YXPUP5G2.js +11 -0
- package/dist/{chunk-6BJ7SOY7.js → chunk-Z2AWCTN6.js} +2 -2
- package/dist/{chunk-PHSPBQM6.js → chunk-Z2PZVKPR.js} +2 -2
- package/dist/{chunk-QXR5QPSF.js → chunk-ZAZGGSM3.js} +2 -2
- package/dist/{chunk-5236NQV3.js → chunk-ZGW4HLPD.js} +2 -2
- package/dist/chunk-ZOXKSQQB.js +2 -0
- package/dist/{chunk-BD6CV7PN.js → chunk-ZPASRBLF.js} +2 -2
- package/dist/{chunk-DMUGTKMD.js → chunk-ZYM4HOFA.js} +2 -2
- package/dist/{chunk-4ILHWBYF.js → chunk-ZZ3Z7D56.js} +2 -2
- package/dist/cli-main.js +4 -4
- package/dist/{code-CczEvHui.d.ts → code-B17qEMbt.d.ts} +1 -1
- package/dist/code-EQJFDT6I.js +2 -0
- package/dist/code-result-json-7UWIWBOO.js +2 -0
- package/dist/command-descriptors-ORNTVNYV.js +342 -0
- package/dist/{config-types-Cm-VSEBb.d.ts → config-types-B9B60MiR.d.ts} +10 -0
- package/dist/dataflow-6VL54GX5.js +2 -0
- package/dist/{db-LKJXAlNS.d.ts → db-BwIVAYNB.d.ts} +1 -1
- package/dist/dependence-slice-DT2NUHD2.js +2 -0
- package/dist/deps-DB7H5IKC.js +2 -0
- package/dist/direct-navigation-O3LUAYWQ.js +3 -0
- package/dist/entry-map-6K62RV3D.js +2 -0
- package/dist/files-MSLD7MO6.js +2 -0
- package/dist/{graph-evidence-CbUPCSKV.d.ts → graph-evidence-Bjyky2V4.d.ts} +1 -1
- package/dist/{health-Wl5G_LRt.d.ts → health-CPp2Jf1Z.d.ts} +1 -1
- package/dist/hierarchy-IVBXAKFA.js +2 -0
- package/dist/imports-FRAVZ3Y2.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/members-KJOJDYGO.js +2 -0
- package/dist/methods-2AYABBT3.js +2 -0
- package/dist/output-continuation-command-JHMPH6NC.js +3 -0
- package/dist/{output-pagination-VAWOGX4R.js → output-pagination-3OFL2MJV.js} +2 -2
- package/dist/project-reindex-HYO4WD7Z.js +3 -0
- package/dist/queries/affected.d.ts +2 -2
- package/dist/queries/affected.js +1 -1
- package/dist/queries/anchors.d.ts +2 -2
- package/dist/queries/anchors.js +1 -1
- package/dist/queries/architecture.d.ts +2 -2
- package/dist/queries/architecture.js +1 -1
- package/dist/queries/bottlenecks.d.ts +2 -2
- package/dist/queries/bottlenecks.js +1 -1
- package/dist/queries/by-kind.d.ts +2 -2
- package/dist/queries/by-kind.js +1 -1
- package/dist/queries/call-graph.d.ts +2 -2
- package/dist/queries/call-graph.js +1 -1
- package/dist/queries/change-surface.d.ts +2 -2
- package/dist/queries/change-surface.js +1 -1
- package/dist/queries/cleanup-plan.d.ts +2 -2
- package/dist/queries/cleanup-plan.js +1 -1
- package/dist/queries/co-change.d.ts +2 -2
- package/dist/queries/co-change.js +1 -1
- package/dist/queries/code.d.ts +3 -3
- package/dist/queries/code.js +1 -1
- package/dist/queries/complexity-hotspots.d.ts +2 -2
- package/dist/queries/complexity-hotspots.js +1 -1
- package/dist/queries/complexity.d.ts +13 -2
- package/dist/queries/complexity.js +1 -1
- package/dist/queries/context.d.ts +2 -2
- package/dist/queries/context.js +1 -1
- package/dist/queries/convergence.d.ts +2 -2
- package/dist/queries/convergence.js +1 -1
- package/dist/queries/coupling.d.ts +2 -2
- package/dist/queries/coupling.js +1 -1
- package/dist/queries/cycles.d.ts +2 -2
- package/dist/queries/cycles.js +1 -1
- package/dist/queries/dataflow.d.ts +2 -2
- package/dist/queries/dataflow.js +1 -1
- package/dist/queries/dead.d.ts +2 -2
- package/dist/queries/dead.js +1 -1
- package/dist/queries/decorative-checkers.d.ts +2 -2
- package/dist/queries/decorative-checkers.js +1 -1
- package/dist/queries/deep-chains.d.ts +2 -2
- package/dist/queries/deep-chains.js +1 -1
- package/dist/queries/dependence-slice.d.ts +3 -3
- package/dist/queries/dependence-slice.js +1 -1
- package/dist/queries/dependency-depth.d.ts +2 -2
- package/dist/queries/dependency-depth.js +1 -1
- package/dist/queries/deps.d.ts +2 -2
- package/dist/queries/deps.js +1 -1
- package/dist/queries/diff-impact.d.ts +2 -2
- package/dist/queries/diff-impact.js +1 -1
- package/dist/queries/doc-drift.d.ts +2 -2
- package/dist/queries/doc-drift.js +1 -1
- package/dist/queries/drift.d.ts +2 -2
- package/dist/queries/drift.js +1 -1
- package/dist/queries/duplicate-bodies.d.ts +2 -2
- package/dist/queries/duplicate-bodies.js +1 -1
- package/dist/queries/entry-map.d.ts +2 -2
- package/dist/queries/entry-map.js +1 -1
- package/dist/queries/evidence.d.ts +3 -3
- package/dist/queries/evidence.js +1 -1
- package/dist/queries/extract-candidates.d.ts +2 -2
- package/dist/queries/extract-candidates.js +1 -1
- package/dist/queries/fan.d.ts +2 -2
- package/dist/queries/fan.js +1 -1
- package/dist/queries/files.d.ts +2 -2
- package/dist/queries/files.js +1 -1
- package/dist/queries/health.d.ts +3 -3
- package/dist/queries/health.js +1 -1
- package/dist/queries/hierarchy.d.ts +2 -2
- package/dist/queries/hierarchy.js +1 -1
- package/dist/queries/hotspots.d.ts +2 -2
- package/dist/queries/hotspots.js +1 -1
- package/dist/queries/imports.d.ts +2 -2
- package/dist/queries/imports.js +1 -1
- package/dist/queries/incomplete-migration.d.ts +2 -2
- package/dist/queries/incomplete-migration.js +1 -1
- package/dist/queries/index.d.ts +5 -5
- package/dist/queries/index.js +1 -1
- package/dist/queries/isolated.d.ts +2 -2
- package/dist/queries/isolated.js +1 -1
- package/dist/queries/locality-candidates.d.ts +2 -2
- package/dist/queries/locality-candidates.js +1 -1
- package/dist/queries/members.d.ts +2 -2
- package/dist/queries/members.js +1 -1
- package/dist/queries/methods.d.ts +2 -2
- package/dist/queries/methods.js +1 -1
- package/dist/queries/not-implemented.d.ts +2 -2
- package/dist/queries/not-implemented.js +1 -1
- package/dist/queries/outline.d.ts +2 -2
- package/dist/queries/outline.js +1 -1
- package/dist/queries/passthrough-candidates.d.ts +2 -2
- package/dist/queries/passthrough-candidates.js +1 -1
- package/dist/queries/plan-context.d.ts +2 -2
- package/dist/queries/plan-context.js +1 -1
- package/dist/queries/react-component-duplicates.d.ts +2 -2
- package/dist/queries/react-component-duplicates.js +1 -1
- package/dist/queries/react-hook-candidates.d.ts +2 -2
- package/dist/queries/react-hook-candidates.js +1 -1
- package/dist/queries/react-large-component-pressure.d.ts +2 -2
- package/dist/queries/react-large-component-pressure.js +1 -1
- package/dist/queries/recent-duplicates.d.ts +2 -2
- package/dist/queries/recent-duplicates.js +1 -1
- package/dist/queries/redundant-reexports.d.ts +2 -2
- package/dist/queries/redundant-reexports.js +1 -1
- package/dist/queries/reference-neighborhood.d.ts +2 -2
- package/dist/queries/reference-neighborhood.js +1 -1
- package/dist/queries/reference-reachability.d.ts +2 -2
- package/dist/queries/reference-reachability.js +1 -1
- package/dist/queries/refs.d.ts +2 -2
- package/dist/queries/refs.js +1 -1
- package/dist/queries/self-audit.d.ts +2 -2
- package/dist/queries/self-audit.js +1 -1
- package/dist/queries/similar-chains.d.ts +2 -2
- package/dist/queries/similar-chains.js +1 -1
- package/dist/queries/similar-files.d.ts +2 -2
- package/dist/queries/similar-files.js +1 -1
- package/dist/queries/similar-signatures.d.ts +2 -2
- package/dist/queries/similar-signatures.js +1 -1
- package/dist/queries/similar.d.ts +2 -2
- package/dist/queries/similar.js +1 -1
- package/dist/queries/slice.d.ts +2 -2
- package/dist/queries/slice.js +1 -1
- package/dist/queries/source-inspection.d.ts +4 -4
- package/dist/queries/source-inspection.js +1 -1
- package/dist/queries/source-search.d.ts +2 -2
- package/dist/queries/source-search.js +1 -1
- package/dist/queries/stale-abstractions.d.ts +2 -2
- package/dist/queries/stale-abstractions.js +1 -1
- package/dist/queries/stats.d.ts +2 -2
- package/dist/queries/surface.d.ts +2 -2
- package/dist/queries/surface.js +1 -1
- package/dist/queries/symbols.d.ts +2 -2
- package/dist/queries/symbols.js +1 -1
- package/dist/queries/system-map.d.ts +2 -2
- package/dist/queries/system-map.js +1 -1
- package/dist/queries/system.d.ts +2 -2
- package/dist/queries/system.js +1 -1
- package/dist/queries/test-quality.d.ts +2 -2
- package/dist/queries/test-quality.js +1 -1
- package/dist/queries/trace.d.ts +2 -2
- package/dist/queries/trace.js +1 -1
- package/dist/queries/twin-ab.d.ts +2 -2
- package/dist/queries/twin-ab.js +1 -1
- package/dist/queries/twin-drift.d.ts +2 -2
- package/dist/queries/twin-drift.js +1 -1
- package/dist/queries/unused-imports.d.ts +2 -2
- package/dist/queries/unused-imports.js +1 -1
- package/dist/queries/unused-params.d.ts +2 -2
- package/dist/queries/unused-params.js +1 -1
- package/dist/queries/value-flow.d.ts +3 -3
- package/dist/queries/value-flow.js +1 -1
- package/dist/queries/vue-component-duplicates.d.ts +2 -2
- package/dist/queries/vue-component-duplicates.js +1 -1
- package/dist/queries/vue-composable-candidates.d.ts +2 -2
- package/dist/queries/vue-composable-candidates.js +1 -1
- package/dist/queries/vue-large-view-pressure.d.ts +2 -2
- package/dist/queries/vue-large-view-pressure.js +1 -1
- package/dist/queries/wrapper-candidates.d.ts +2 -2
- package/dist/queries/wrapper-candidates.js +1 -1
- package/dist/query-service-fastpath.js +5 -5
- package/dist/query-service-server.js +2 -2
- package/dist/refs-ARMA6XUJ.js +2 -0
- package/dist/refs-pagination-VUGIWN6U.js +2 -0
- package/dist/reindex-worker.js +125 -66
- package/dist/reindex.d.ts +5 -3
- package/dist/reindex.js +135 -76
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +4 -4
- package/dist/rust-semantic-session-server.js +1 -1
- package/dist/rust-semantic-session-worker.js +1 -1
- package/dist/rust-semantic-worker.js +1 -1
- package/dist/{scip-cli-CppzF5MK.d.ts → scip-cli-H-n59izO.d.ts} +1 -1
- package/dist/slice-YOB5YFAM.js +2 -0
- package/dist/surface-VY5EFWTW.js +2 -0
- package/dist/symbol-resolution-DGQN4XIV.js +2 -0
- package/dist/system-2KQ3QD2P.js +2 -0
- package/dist/trace-HTIPTXAE.js +2 -0
- package/dist/typescript-mailbox-worker.js +1 -1
- package/dist/value-flow-5FV3VQI7.js +2 -0
- package/dist/watch-server.js +3 -3
- package/docs/CLI_JSON_OUTPUT.md +2 -2
- package/docs/COMMAND_REFERENCE.md +2 -2
- package/docs/schemas/project-config.schema.json +11 -1
- package/package.json +6 -5
- package/skills/scip-explore/SKILL.md +73 -3
- package/skills/scip-explore/agents/openai.yaml +3 -3
- package/skills/scip-explore/references/delegated-exploration.md +51 -0
- package/skills/scip-explore/references/external-evidence.md +72 -0
- package/skills/scip-explore/references/information-model.md +51 -0
- package/skills/scip-explore/scripts/capture-evidence.mjs +666 -0
- package/skills/scip-query/SKILL.md +22 -1
- package/dist/by-kind-CI3O6PQG.js +0 -2
- package/dist/call-graph-6QTUTXH7.js +0 -2
- package/dist/chunk-2COFMIVK.js +0 -60
- package/dist/chunk-35ELD3RM.js +0 -2
- package/dist/chunk-3FQ3KMCD.js +0 -2
- package/dist/chunk-3VLJ2DCA.js +0 -2
- package/dist/chunk-4DCKBY6T.js +0 -5
- package/dist/chunk-4N6QSEMZ.js +0 -10
- package/dist/chunk-4OE2JO6I.js +0 -2
- package/dist/chunk-4UUCUASK.js +0 -554
- package/dist/chunk-54EOGFBR.js +0 -2
- package/dist/chunk-5IZTXSOL.js +0 -117
- package/dist/chunk-5ZJH6DDE.js +0 -2
- package/dist/chunk-63MBA7EG.js +0 -3
- package/dist/chunk-6T7H2AFY.js +0 -3
- package/dist/chunk-7COHFNJK.js +0 -38
- package/dist/chunk-7HU2IJ2T.js +0 -3
- package/dist/chunk-7PPYXENX.js +0 -2
- package/dist/chunk-AA7K3XLM.js +0 -21
- package/dist/chunk-AUP6YI5M.js +0 -2
- package/dist/chunk-CA5RE6H7.js +0 -2
- package/dist/chunk-CT5SI2I4.js +0 -2
- package/dist/chunk-D5EKVZPI.js +0 -2
- package/dist/chunk-DMQ7ZKJG.js +0 -81
- package/dist/chunk-ELNRLMC5.js +0 -29
- package/dist/chunk-F7WQ337U.js +0 -308
- package/dist/chunk-FEQIQ26E.js +0 -2
- package/dist/chunk-FN6EJM6Q.js +0 -2
- package/dist/chunk-FTSQNONX.js +0 -2
- package/dist/chunk-G2F6T5BV.js +0 -2
- package/dist/chunk-G6OGPXJW.js +0 -9
- package/dist/chunk-GFLTPNWV.js +0 -3
- package/dist/chunk-GTDP2SKQ.js +0 -2
- package/dist/chunk-HEOMG7IM.js +0 -8
- package/dist/chunk-I3U2FN2T.js +0 -13
- package/dist/chunk-IUJ3ZFEE.js +0 -7
- package/dist/chunk-LXLD46LH.js +0 -21
- package/dist/chunk-MEI3PTUK.js +0 -2
- package/dist/chunk-MO226P4Q.js +0 -4
- package/dist/chunk-MYUKI5VN.js +0 -4
- package/dist/chunk-OIRWZIYL.js +0 -38
- package/dist/chunk-OIVZ7PW6.js +0 -438
- package/dist/chunk-PNISDVYC.js +0 -3
- package/dist/chunk-PQOL42AW.js +0 -2
- package/dist/chunk-PUVZNFVY.js +0 -11
- package/dist/chunk-PZEI2TVL.js +0 -4
- package/dist/chunk-Q2J2VZZT.js +0 -2
- package/dist/chunk-QDCCHMVZ.js +0 -2
- package/dist/chunk-QLQBZOJH.js +0 -3
- package/dist/chunk-S73HBCGI.js +0 -11
- package/dist/chunk-SDPA5DKN.js +0 -210
- package/dist/chunk-SEUJVWT2.js +0 -3
- package/dist/chunk-SF7X6QNW.js +0 -2
- package/dist/chunk-SWFAFA4G.js +0 -49
- package/dist/chunk-T6FRID7Y.js +0 -3
- package/dist/chunk-TNOHGHZQ.js +0 -2
- package/dist/chunk-U2GPTA5U.js +0 -3
- package/dist/chunk-URTX2BEA.js +0 -6
- package/dist/chunk-VGRUM7JI.js +0 -3
- package/dist/chunk-VWLIOEEF.js +0 -11
- package/dist/chunk-WK4FD4PG.js +0 -2
- package/dist/chunk-X434XZAI.js +0 -2
- package/dist/chunk-YIEFEPG6.js +0 -16
- package/dist/chunk-YRVERHJR.js +0 -49
- package/dist/chunk-ZD3Z54IW.js +0 -2
- package/dist/chunk-ZDVDSDFG.js +0 -4
- package/dist/code-EQL6ZBLH.js +0 -2
- package/dist/code-result-json-6E4J6LGZ.js +0 -2
- package/dist/command-descriptors-QH3G2OVD.js +0 -346
- package/dist/dataflow-2BLMUZBP.js +0 -2
- package/dist/dependence-slice-MGAJDZXB.js +0 -2
- package/dist/deps-GQMUYVKW.js +0 -2
- package/dist/direct-navigation-6RUJKLAV.js +0 -3
- package/dist/entry-map-V2NQP5JU.js +0 -2
- package/dist/files-VM53I4IU.js +0 -2
- package/dist/hierarchy-D553WRSZ.js +0 -2
- package/dist/imports-DOZAJWLW.js +0 -2
- package/dist/members-HE67475K.js +0 -2
- package/dist/methods-K5JK4PPH.js +0 -2
- package/dist/output-continuation-command-LKBUTNRL.js +0 -3
- package/dist/project-reindex-4ARU6QCM.js +0 -3
- package/dist/refs-NBHKL4UQ.js +0 -2
- package/dist/refs-pagination-BBVTIHMH.js +0 -2
- package/dist/slice-U6S6LBSB.js +0 -2
- package/dist/surface-C7SS5CDQ.js +0 -2
- package/dist/symbol-resolution-3FVEKDTJ.js +0 -2
- package/dist/system-6K2NOO5C.js +0 -2
- package/dist/trace-II5K2TMH.js +0 -2
- package/dist/value-flow-MKFUUE5B.js +0 -2
package/dist/chunk-MO226P4Q.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{isAbsolute as ee,relative as qe}from"path";var g=class extends Error{constructor(r,n){super(`refusing unsafe project file path ${JSON.stringify(r)} (${n})`);this.relativePath=r;this.reason=n;this.name="UnsafeProjectPathError"}relativePath;reason;code="SCIP_QUERY_UNSAFE_PROJECT_PATH"};function T(e){return e.replace(/\\/g,"/").replace(/^\.\//,"")}function rr(e){return e.replace(/\\/g,"/")}function nr(e,t){return T(e)===T(t)}function G(e,t){let r=qe(e,t);return r===""||!r.startsWith("..")&&!ee(r)}function te(e){if(!e)throw new g(e,"empty-path");if(e.includes("\0"))throw new g(e,"nul-byte");if(ee(e)||/^[A-Za-z]:/.test(e)||e.startsWith("//")||e.startsWith("\\\\"))throw new g(e,"absolute-path");let t=T(e);if(t.split("/").some(n=>n===".."))throw new g(e,"parent-traversal");if(!t||t===".")throw new g(e,"empty-path");return t}function Ue(e,t,r=[]){let n=N(e);if(se.has(n)||r.some(o=>P(n,o))||t.some(o=>ae(n,o)))return"config";if(t.some(ue)&&/\.d\.(?:ts|mts|cts)$/.test(n.toLowerCase()))return"ambient";let i=ce(n);return t.some(o=>(de[o]??[]).includes(i))?"source":"other"}function or(e,t,r){let n=N(e);if(se.has(n)||r?.some(o=>P(n,o))||ae(n,t)||ue(t)&&/\.d\.(?:ts|mts|cts)$/.test(n.toLowerCase()))return!0;let i=ce(n);return(de[t]??[]).includes(i)}function sr(e){if(typeof e!="object"||e===null)return null;let t=e;return typeof t.version!="number"||!re(t.languages)||typeof t.pnpmWorkspaces!="boolean"||typeof t.typescriptProjectMode!="string"||!re(t.typescriptProjects)||t.clojureConfigPath!==void 0&&typeof t.clojureConfigPath!="string"||!Array.isArray(t.files)||!t.files.every(M)?null:t}function ar(e,t){let r=new Map((e?.files??[]).map(a=>[a.path,a])),n=new Map(t.files.map(a=>[a.path,a])),i=new Set([...r.keys(),...n.keys()]),o=[];for(let a of[...i].sort()){let u=r.get(a),c=n.get(a),l=Ue(a,t.languages);!u&&c?o.push({kind:"added",path:a,inputKind:l,after:c}):u&&!c?o.push({kind:"deleted",path:a,inputKind:l,before:u}):u&&c&&(u.hash!==c.hash||u.size!==c.size)&&o.push({kind:"modified",path:a,inputKind:l,before:u,after:c})}let s=new Set;return e||s.add("prior-snapshot-unavailable"),e&&e.version!==t.version&&s.add("snapshot-version-changed"),(ne(e?.files??[])||ne(t.files))&&s.add("duplicate-input-path"),[...e?.files??[],...t.files].some($e)&&s.add("unreadable-input"),{version:1,changes:o,projectIdentityChanged:e?!He(e,t):!0,uncertainty:[...s].sort()}}function re(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function ne(e){return new Set(e.map(t=>t.path)).size!==e.length}function M(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.path=="string"&&typeof t.size=="number"&&Number.isFinite(t.size)&&typeof t.hash=="string"}function $e(e){return e.hash==="unreadable"||e.size<0}function He(e,t){return ie(e.languages,t.languages)&&e.pnpmWorkspaces===t.pnpmWorkspaces&&e.typescriptProjectMode===t.typescriptProjectMode&&ie(e.typescriptProjects,t.typescriptProjects)&&e.clojureConfigPath===t.clojureConfigPath}function ie(e,t){if(e.length!==t.length)return!1;let r=[...e].sort(),n=[...t].sort();return r.every((i,o)=>i===n[o])}var se=new Set([".scipquery.json"]),ze={typescript:["tsconfig.json"],javascript:["package.json"],java:["pom.xml","build.gradle"],scala:["build.sbt"],kotlin:["build.gradle.kts"],rust:["Cargo.toml"],python:["pyproject.toml","setup.py"],ruby:["Gemfile"],go:["go.mod"],cpp:["CMakeLists.txt","Makefile"],c:["CMakeLists.txt","Makefile"],csharp:["*.csproj","*.sln"],vb:["*.vbproj","*.sln"],dart:["pubspec.yaml"],php:["composer.json"],clojure:["deps.edn","project.clj","bb.edn","shadow-cljs.edn"]},Ve={typescript:["package.json","package-lock.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","tsconfig.*.json","jsconfig.json","jsconfig.*.json"],javascript:["package-lock.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","tsconfig.json","tsconfig.*.json","jsconfig.json","jsconfig.*.json"],java:["build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","gradle.lockfile","gradle-wrapper.properties"],scala:["plugins.sbt","build.properties"],kotlin:["pom.xml","build.gradle","settings.gradle","settings.gradle.kts","gradle.properties","gradle.lockfile","gradle-wrapper.properties"],rust:["Cargo.lock","rust-project.json","rust-toolchain","rust-toolchain.toml"],python:["setup.cfg","requirements*.txt","Pipfile","Pipfile.lock","poetry.lock","uv.lock"],ruby:["Gemfile.lock","gems.locked"],go:["go.sum","go.work","go.work.sum"],cpp:["compile_commands.json"],c:["compile_commands.json"],csharp:["Directory.Build.props","Directory.Build.targets","Directory.Packages.props","packages.lock.json","NuGet.Config","global.json"],vb:["Directory.Build.props","Directory.Build.targets","Directory.Packages.props","packages.lock.json","NuGet.Config","global.json"],dart:["pubspec.lock","analysis_options.yaml"],php:["composer.lock"],clojure:[]},oe=new Map;function ae(e,t){return ze[t].some(r=>P(e,r))||Ve[t].some(r=>P(e,r))}function P(e,t){let r=N(t).replace(/^\.\//,"");if(!r)return!1;let n=e.split("/").at(-1)??e,i=r.includes("/")?e:n;if(!r.includes("*")&&!r.includes("?"))return i===r;let o=oe.get(r);if(!o){let s=r.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");o=new RegExp(`^${s}$`),oe.set(r,o)}return o.test(i)}function N(e){return e.replaceAll("\\","/").replace(/^\.\//,"")}function ce(e){return e.includes(".")?`.${e.split(".").at(-1).toLowerCase()}`:""}function ue(e){return e==="typescript"||e==="javascript"}var de={typescript:[".ts",".tsx",".mts",".cts"],javascript:[".js",".jsx",".mjs",".cjs",".vue"],java:[".java"],scala:[".scala"],kotlin:[".kt",".kts"],rust:[".rs"],python:[".py",".pyi"],ruby:[".rb"],go:[".go"],cpp:[".cc",".cpp",".cxx",".hpp",".hh",".hxx"],c:[".c",".h"],csharp:[".cs"],vb:[".vb"],dart:[".dart"],php:[".php"],clojure:[".clj",".cljs",".cljc"]};function y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function pe(e){return typeof e=="string"&&Number.isFinite(Date.parse(e))}function ur(e){return typeof e=="string"&&e.length>0}function dr(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function pr(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}var Je=/^[a-f0-9]{64}$/u;function lr(e){return typeof e=="string"&&Je.test(e)}function fr(e){return typeof e=="string"&&e.length>0&&e.length<=256&&!/[\0\r\n]/u.test(e)}function gr(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0}var le=["typescript","javascript","java","scala","kotlin","rust","python","ruby","go","cpp","c","csharp","vb","dart","php","clojure"];var W=2,h=3;var B=new Set(le);function Cr(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch(s){return{kind:"malformed",reason:`invalid JSON: ${tt(s)}`}}if(!y(t))return{kind:"malformed",reason:"metadata must be a JSON object"};let r=t.version;if(!Number.isInteger(r))return{kind:"malformed",reason:"version must be an integer"};if(r!==W&&r!==h)return{kind:"unsupported",version:r,direction:r<W?"older":"future"};let n=Xe(t,r);if(n)return{kind:"malformed",reason:n};let i=t,o={metadata:i,capabilities:Ye(i)};return r===W?{kind:"legacy",...o,metadata:i}:{kind:"supported",...o,metadata:i}}function Rr(e){return e.kind==="legacy"||e.kind==="supported"?e.metadata:null}function kr(e){if(e.kind!=="legacy"&&e.kind!=="supported"||!e.capabilities.stableGenerationIdentity)return null;let t=e.metadata;return JSON.stringify({version:t.version,status:t.status,updatedAt:t.updatedAt,fingerprint:t.fingerprint,indexedLanguages:t.indexedLanguages,scipCompanion:t.scipCompanion,sqliteLayoutVersion:t.version===h?t.sqliteLayoutVersion:void 0})}function Ye(e){let t=e.fingerprint!==void 0,r=y(e.fingerprint),n=e.indexedLanguages!==void 0,i=e.status==="complete",o=e.version===h?e:null;return{usableForQuery:n,usableForEvidenceCache:t,publishableGeneration:i&&r&&n,stableGenerationIdentity:i&&t&&typeof e.updatedAt=="string",languageShardReuse:!!o?.languageFingerprints,typescriptProjectShardReuse:!!o?.typescriptProjectShards}}function Xe(e,t){if(e.status!=="complete"&&e.status!=="partial")return"status must be complete or partial";if(e.updatedAt!==void 0&&!pe(e.updatedAt))return"updatedAt must be a valid timestamp";for(let r of["requestedLanguages","indexedLanguages"])if(e[r]!==void 0&&!Ke(e[r]))return`${r} must contain unique supported languages`;return e.skipped!==void 0&&!Qe(e.skipped)?"skipped must contain supported language/reason pairs":e.scipCompanion!==void 0&&e.scipCompanion!=="current"&&e.scipCompanion!=="deferred"?"scipCompanion must be current or deferred":t===h&&e.sqliteLayoutVersion!==void 0&&(!Number.isSafeInteger(e.sqliteLayoutVersion)||e.sqliteLayoutVersion<1)?"sqliteLayoutVersion must be a positive safe integer":t===h&&e.languageFingerprints!==void 0&&!Ze(e.languageFingerprints)?"languageFingerprints must map supported languages to fingerprint objects":t===h&&e.typescriptProjectShards!==void 0&&!et(e.typescriptProjectShards)?"typescriptProjectShards must map project names to file fingerprints":null}function Er(e){return e.version===h&&e.sqliteLayoutVersion===1}function Ke(e){return!Array.isArray(e)||!e.every(t=>typeof t=="string"&&B.has(t))?!1:new Set(e).size===e.length}function Qe(e){return Array.isArray(e)&&e.every(t=>y(t)&&typeof t.language=="string"&&B.has(t.language)&&typeof t.reason=="string")}function Ze(e){return y(e)&&Object.entries(e).every(([t,r])=>B.has(t)&&y(r))}function et(e){return y(e)&&Object.values(e).every(t=>y(t)&&Array.isArray(t.files)&&t.files.every(M))}function tt(e){return e instanceof Error?e.message:String(e)}import{closeSync as q,fstatSync as j,openSync as U,readFileSync as rt,readSync as fe}from"fs";import{createHash as nt}from"crypto";var ge=8*1024*1024,it=64*1024*1024,ot=512*1024*1024,st=256*1024*1024,m=class extends Error{constructor(r,n,i,o,s){let a=i==="too-large"?`is ${o} bytes; the safety limit is ${s} bytes`:i==="not-regular"?"is not a regular file":"changed while it was being read";super(`${r} ${JSON.stringify(n)} ${a}`);this.inputKind=r;this.inputPath=n;this.reason=i;this.observedBytes=o;this.limitBytes=s;this.name="BoundedFileReadError"}inputKind;inputPath;reason;observedBytes;limitBytes;code="SCIP_QUERY_BOUNDED_FILE_READ"};function ye(e,t){z(t.maxBytes);let r=String(e),n=U(e,"r");try{let i=j(n);be(i,t,r);let o=rt(n),s=j(n);if(s.dev!==i.dev||s.ino!==i.ino||s.size!==i.size||o.byteLength!==i.size)throw new m(t.inputKind,r,"changed-during-read",s.size,t.maxBytes);return o}finally{q(n)}}function me(e,t,r="utf8"){return ye(e,t).toString(r)}function $(e,t){return me(e,{maxBytes:ge,inputKind:t})}function H(e,t){z(t.maxBytes);let r=[],n=Buffer.allocUnsafe(64*1024),i=0;for(;;){let o=fe(e,n,0,n.length,null);if(o===0)break;if(i+=o,!Number.isSafeInteger(i)||i>t.maxBytes)throw new m(t.inputKind,`file descriptor ${e}`,"too-large",i,t.maxBytes);r.push(Buffer.from(n.subarray(0,o)))}return Buffer.concat(r,i)}function at(e,t,r="utf8"){return H(e,t).toString(r)}function he(e,t){let r=U(e,"r");try{return H(r,t)}finally{q(r)}}function ct(e,t,r="utf8"){return he(e,t).toString(r)}function xe(e,t,r){z(t.maxBytes);let n=String(e),i=U(e,"r");try{let o=j(i);be(o,t,n);let s=Buffer.allocUnsafe(Math.min(1024*1024,Math.max(1,o.size))),a=0;for(;a<o.size;){let c=fe(i,s,0,Math.min(s.length,o.size-a),a);if(c===0)break;r(s.subarray(0,c)),a+=c}let u=j(i);if(u.dev!==o.dev||u.ino!==o.ino||u.size!==o.size||a!==o.size)throw new m(t.inputKind,n,"changed-during-read",u.size,t.maxBytes);return a}finally{q(i)}}function ut(e,t){let r=nt("sha256");return xe(e,t,n=>r.update(n)),r.digest("hex")}function be(e,t,r){if(!e.isFile())throw new m(t.inputKind,r,"not-regular",Number(e.size),t.maxBytes);if(e.size>t.maxBytes)throw new m(t.inputKind,r,"too-large",Number(e.size),t.maxBytes)}function z(e){if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`maxBytes must be a non-negative safe integer; received ${e}`)}import{spawnSync as pt}from"child_process";import{createHash as lt}from"crypto";import{existsSync as ft,lstatSync as gt,realpathSync as yt}from"fs";import{dirname as mt,isAbsolute as ht,join as xt,relative as qr,resolve as I,sep as Ur}from"path";var Se=Symbol.for("scip-query.project-file-listing-context.v1"),Ce=globalThis,V=Ce[Se],x=V&&typeof V=="object"?V:{};Ce[Se]=x;function Or(e,t){let r=x.active?x.canonicalProjectRoots:void 0,n=r?.get(e);if(n!==void 0)return n;let i=t();return r?.set(e,i),i}function Re(){return x.sequence??0}function _r(e,t,r){let n=x.active,i=n?.get(e);if(i&&i.pathBytes<=t)return i;let o=dt(r(),(x.sequence??0)+1);if(x.sequence=o.sequence,o.pathBytes>t)throw new RangeError(`Git project file listing exceeded ${t} path bytes.`);return n?.set(e,o),o}function*Lr(e){let t=0;for(;t<e.taggedOutput.length;){let r=e.taggedOutput.indexOf("\0",t);if(r<0)return;yield e.taggedOutput.slice(t+2,r),t=r+1}}function dt(e,t){let r=0,n=0,i=!0;for(;r<e.length;){let o=e.indexOf("\0",r);if(o<0||o<=r+2||e[r+1]!==" ")throw new Error("Git returned a malformed tagged project file listing.");let s=e[r];i&&=s==="H"||s==="?",n+=1,r=o+1}return{taggedOutput:e,pathBytes:Buffer.byteLength(e,"utf8")-n*2,indexAllowsTreeFingerprintReuse:i,sequence:t}}var C={run(e,t){let r=Ee(e,t);return r.kind==="success"?r.output:void 0},runResult:Ee},bt=["rev-parse","--show-toplevel","--absolute-git-dir","--git-common-dir","HEAD","HEAD^{tree}"],Pe=["status","--porcelain=v2","--branch","-z","--untracked-files=all"],w=/^[0-9a-f]{40,64}$/;function Hr(e,t,r=C){if(!t||t.startsWith("-")||/[\0\r\n]/.test(t))throw new Error(`Invalid Git revision ${JSON.stringify(t)}.`);let n=r.runResult(e,["rev-parse","--verify","--end-of-options",`${t}^{commit}`]);if(n.kind!=="success"||!w.test(n.output))throw new Error(`Git revision ${JSON.stringify(t)} does not resolve to exactly one commit.`);return n.output}function zr(e,t=C){return St(e,t)?.context}function St(e,t=C){let r=t.runResult(e,bt);if(r.kind==="success"){let i=Ct(r.output);if(i){let o=Rt(i,t);if(o)return ke(o)}}let n=kt(e,t);return n?ke(n):void 0}function ke(e){return{context:e,projectFileInventorySequence:Re()}}function je(e){let t=e.split("\0").filter(Boolean),r=t.find(i=>i.startsWith("# branch.oid "))?.slice(13),n=r==="(initial)"?void 0:r;if(!(n!==void 0&&!w.test(n))&&r!==void 0)return{headCommit:n,clean:t.every(i=>i.startsWith("# "))}}function Ct(e){let t=e.split(`
|
|
2
|
-
`).map(u=>u.trim());if(t.length!==5)return;let[r,n,i,o,s]=t;if(!r||!n||!i||!o||!s||!w.test(o)||!w.test(s))return;let a=b(r);return{root:a,gitDir:b(v(a,n)),commonDir:b(v(a,i)),headCommit:o,treeOid:s}}function Rt(e,t){let r=t.run(e.root,Pe);if(r===void 0)return;let n=je(r);return n?.headCommit!==e.headCommit?void 0:{...we(e.root,e.gitDir),commonDir:e.commonDir,repositoryId:Y("repository",e.commonDir),headCommit:e.headCommit,treeOid:e.treeOid,clean:n.clean}}function kt(e,t){let r=Et(e,t);if(r.kind!=="worktree")return;let n=r.identity,i=n.projectRoot,o=t.run(i,["rev-parse","--git-common-dir"])?.trim();if(!o)return;let s=b(v(i,o)),a=J(t.run(i,["rev-parse","--verify","HEAD"])),u=J(t.run(i,["rev-parse","--verify","HEAD^{tree}"])),c=t.run(i,Pe);if(c===void 0)return;let l=je(c);if(!(!l||l.headCommit!==a))return{...n,commonDir:s,repositoryId:Y("repository",s),headCommit:a,treeOid:u,clean:l.clean}}function Et(e,t=C){let r=t.runResult(e,["rev-parse","--show-toplevel"]);if(r.kind==="not-repository")return{kind:"non-git"};if(r.kind==="error")return r;let n=r.output.trim();if(!n)return{kind:"error",message:"Git returned an empty worktree root."};let i=b(n),o=t.run(i,["rev-parse","--absolute-git-dir"])?.trim();if(!o)return{kind:"error",message:"Git did not return an absolute worktree directory."};let s=b(v(i,o));return{kind:"worktree",identity:we(i,s)}}function we(e,t){return{projectRoot:e,gitDir:t,worktreeId:Y("worktree",`${e}\0${t}`)}}function Vr(e,t,r=C){return J(r.run(e,t))}function v(e,t){return ht(t)?t:I(e,t)}function b(e){try{return yt(e)}catch{return I(e)}}function Y(e,t){return lt("sha256").update(`${e}\0${t}`).digest("hex").slice(0,24)}function J(e){return e?.trim()||void 0}function Ee(e,t){let r=pt("git",["-C",e,...t],{encoding:"utf-8",env:{...process.env,LC_ALL:"C"},maxBuffer:52428800,stdio:["ignore","pipe","pipe"],timeout:3e4,killSignal:"SIGKILL"});if(r.status===0)return{kind:"success",output:r.stdout.trimEnd()};let i=(typeof r.stderr=="string"?r.stderr.trim():"")||r.error?.message||`git exited with status ${r.status??"unknown"}`,o=r.error?.code;return(/not a git repository/i.test(i)||o==="ENOENT"&&ft(I(e)))&&!Pt(e)?{kind:"not-repository"}:{kind:"error",message:i}}function Pt(e){if(process.env.GIT_DIR||process.env.GIT_COMMON_DIR)return!0;let t=I(e);for(;;){try{return gt(xt(t,".git")),!0}catch(n){let i=n.code;if(i!=="ENOENT"&&i!=="ENOTDIR")return!0}let r=mt(t);if(r===t)return!1;t=r}}import{createHash as _e,randomUUID as _t}from"crypto";import{chmodSync as Le,existsSync as S,linkSync as Lt,lstatSync as O,readdirSync as Q,realpathSync as p,unlinkSync as Tt,writeSync as Gt}from"fs";import{homedir as Mt}from"os";import{basename as Nt,dirname as _,isAbsolute as Ae,join as d,resolve as L}from"path";import{closeSync as jt,existsSync as wt,fsyncSync as vt,mkdirSync as It,openSync as Ft}from"fs";import{dirname as Ie}from"path";function ve(e,t,r,n){let i=0;for(;i<t.length;){let o=r.writeFile(e,t,i,t.length-i);if(!Number.isSafeInteger(o)||o<=0||o>t.length-i)throw new Error(`${n} write did not make valid forward progress`);i+=o}}function X(e,t){if(t!=="win32")return!1;let r=e.code;return r==="EACCES"||r==="EBADF"||r==="EINVAL"||r==="EISDIR"||r==="EPERM"}var R=Object.freeze({platform:process.platform,pathExists:e=>wt(e),makeDirectory:e=>It(e,{recursive:!0}),openFile:(e,t,r)=>Ft(e,t,r),syncFile:e=>vt(e),closeFile:e=>jt(e)});function Fe(e,t=R){let r=[],n=e;for(;!t.pathExists(n);){r.push(n);let o=Ie(n);if(o===n)throw new Error(`Cannot establish a durable directory path without an existing ancestor: ${e}`);n=o}let i="synced";for(let o of r.reverse())t.makeDirectory(o),i=D(i,F(Ie(o),t));return i}function F(e,t=R){let r;try{r=t.openFile(e,"r")}catch(n){if(X(n,t.platform))return"unsupported";throw n}try{t.syncFile(r)}catch(n){try{t.closeFile(r)}catch{}if(X(n,t.platform))return"unsupported";throw n}return t.closeFile(r),"synced"}function D(...e){return e.every(t=>t==="not-requested")?"not-requested":e.includes("unsupported")?"unsupported":"synced"}import{createRequire as Dt}from"module";var At=Dt(import.meta.url),De=Ot().version;function Ot(){for(let e of["../package.json","../../package.json"])try{return At(e)}catch{}return{version:"0.0.0"}}var Te=1,E=".scip-query-cache-owner.json",Wt=16*1024,Ge=Object.freeze({...R,randomToken:()=>_t(),linkFile:(e,t)=>Lt(e,t),removeFile:e=>Tt(e),writeFile:(e,t,r,n)=>Gt(e,t,r,n)});function A(e,t){return Object.assign(new Error(`refusing unsafe project dbPath ${JSON.stringify(e)} (${t}); use a repository-relative directory that remains inside the checkout`),{name:"UnsafeCachePathError",code:"SCIP_QUERY_UNSAFE_CACHE_PATH",configuredPath:e,reason:t})}function f(e,t){return Object.assign(new Error(`refusing unowned cache directory ${JSON.stringify(e)} (${t}); move unrelated data elsewhere or choose a new empty dbPath`),{name:"CacheOwnershipError",code:"SCIP_QUERY_CACHE_OWNERSHIP",cacheDir:e,reason:t})}function Bt(e,t){let r=p(e);return $t(r,qt(r,t))}function qt(e,t){let r=p(e),n=process.env.SCIP_QUERY_CACHE_DIR;return n?L(n):t?.dbPath?zt(r,t.dbPath):Ut(r)}function Me(){let e=process.env.XDG_CACHE_HOME;return d(e||d(Mt(),".cache"),"scip-query")}function Ut(e){let t=L(e);try{t=p(t)}catch{}let r=_e("sha256").update(t).digest("hex").slice(0,12);return d(Me(),"projects",r)}function ln(e){if(!/^[a-f0-9]{24}$/.test(e))throw new Error(`invalid repository cache identity: ${e}`);let t=d(Me(),"repositories",e);return Be(t),p(t)}function fn(e){return process.env.SCIP_QUERY_SHARED_CACHE!=="0"&&!process.env.SCIP_QUERY_CACHE_DIR&&!process.env.SCIP_QUERY_INDEX_DB&&!e?.dbPath}function gn(e,t){let r=Bt(e,t);return{cacheDir:r,dbPath:d(r,"index.db"),indexPath:d(r,"index.scip"),metaPath:d(r,"meta.json")}}function $t(e,t,r=Ge){return Ht(e,t,r).cacheDir}function Ht(e,t,r=Ge){let n=p(e),i=S(t)?"synced":Be(t,r),o=p(t),s=d(o,E);if(S(s))return K(n,o),Z(s),k(o),{kind:"existing",cacheDir:o};Oe(o),Kt(o),Oe(o);let u=`${JSON.stringify({schemaVersion:Te,canonicalProjectRoot:n,canonicalCacheDir:o,creatorVersion:De},null,2)}
|
|
3
|
-
`;try{let c=Qt(s,u,r),l=D(i,c);return{kind:"published",cacheDir:o,achievedDurability:l==="synced"?"directory-durable":"file-flushed",directorySync:l}}catch(c){if(er(c))return K(n,o),{kind:"existing",cacheDir:o};throw c}}function K(e,t){let r=p(e),n=p(t);return Jt(n,r,n)}function yn(e,t){return S(d(t,E))?(K(e,t),Ne(t),!0):!1}function zt(e,t){let r;try{r=te(t)}catch(s){throw s instanceof g?A(t,s.reason):s}let n=L(e,...r.split("/"));if(n===e||!G(e,n))throw A(t,"outside-project");let i=Vt(n),o=p(i);if(!G(e,o)&&o!==e)throw A(t,"symlink-escape");return n}function Vt(e){let t=e;for(;!S(t);){let r=_(t);if(r===t)throw A(e,"no-existing-ancestor");t=r}return t}function Jt(e,t,r){let n=d(e,E);if(!S(n)||O(n).isSymbolicLink())throw f(e,"missing regular ownership record");let i=O(n);if(!i.isFile()||i.size>Wt)throw f(e,"invalid ownership record file");let o=$(n,"cache ownership record"),s=Yt(o,e);if(t!==void 0&&s.canonicalProjectRoot!==t)throw f(e,"ownership record belongs to a different project");if(s.canonicalCacheDir!==r)throw f(e,"ownership record names a different cache directory");return{record:s,ownerSha256:_e("sha256").update(o).digest("hex"),physicalCacheDir:e}}function Yt(e,t){try{let r=JSON.parse(e);if(r.schemaVersion!==Te||typeof r.canonicalProjectRoot!="string"||typeof r.canonicalCacheDir!="string"||typeof r.creatorVersion!="string"||!Ae(r.canonicalProjectRoot)||!Ae(r.canonicalCacheDir))throw new Error("invalid fields");return r}catch(r){throw f(t,`malformed ownership record: ${r instanceof Error?r.message:String(r)}`)}}function Oe(e){let t=Q(e).filter(r=>r!==E&&!Xt(r));if(t.length>0)throw f(e,`unrecognized existing entries: ${t.slice(0,3).join(", ")}`)}function Xt(e){return e.startsWith(`${E}.tmp-`)||e.startsWith("git-worktree-context.json.tmp-")||[".scipquery-generations","affected-shadow-latest.json","affected-shadow.jsonl","agent-hooks","augment-vue-meta.json","cache-lifecycle.lock","evidence.db","evidence.db-shm","evidence.db-wal","health-report-cache.json","git-worktree-context.json","index.db","index.db-shm","index.db-wal","index.lock","index.scip","language-indexes","meta.json","reindex-activity.jsonl","shared-cache.json","typescript-index","typescript-scip-fragments","typescript-scip-overlays","typescript-semantic","watch-activity.json","watch-refresh-requests","watch-state.json","watch.lock"].includes(e)?!0:/^(?:reindex-|rust-|typescript-)/.test(e)}function Kt(e){for(let t of Q(e)){let r=d(e,t);try{let n=O(r);if(n.isSymbolicLink())throw f(e,`legacy cache entry ${t} is a symlink`);if(n.isDirectory())k(r);else if(n.isFile())Z(r);else throw f(e,`legacy cache entry ${t} is not a file or directory`)}catch(n){if(We(n))continue;throw n}}k(e)}function Ne(e,t=!1){try{let r=O(e);if(r.isSymbolicLink())throw f(e,"managed cache tree contains a symlink");if(r.isFile()){Z(e);return}if(!r.isDirectory())throw f(e,"managed cache tree contains a special file");k(e);for(let n of Q(e))Ne(d(e,n),!0)}catch(r){if(t&&We(r))return;throw r}}function We(e){let t=e?.code;return t==="ENOENT"||t==="ENOTDIR"}function Be(e,t=R){let r=Fe(e,t);return k(e),r}function Qt(e,t,r){let n=`${e}.tmp-${process.pid}-${r.randomToken()}`,i,o=!1;try{i=r.openFile(n,"wx",384),o=!0,ve(i,Buffer.from(t),r,"cache ownership record"),r.syncFile(i),r.closeFile(i),i=void 0,r.linkFile(n,e);let s=F(_(e),r);return r.removeFile(n),o=!1,D(s,F(_(e),r))}finally{if(i!==void 0)try{r.closeFile(i)}catch{}if(o)try{r.removeFile(n)}catch{}}}function k(e){process.platform!=="win32"&&Le(e,448)}function Z(e){process.platform!=="win32"&&Le(e,384)}function Zt(e){if(S(e))return p(e);let t=p(_(e));return d(t,Nt(e))}function mn(e){return Zt(L(e))}function er(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="EEXIST"}export{g as a,T as b,rr as c,nr as d,G as e,te as f,Ue as g,or as h,sr as i,ar as j,ze as k,y as l,pe as m,ur as n,dr as o,pr as p,lr as q,fr as r,gr as s,le as t,h as u,Cr as v,Rr as w,kr as x,Ye as y,Er as z,ge as A,it as B,ot as C,st as D,m as E,ye as F,me as G,$ as H,at as I,ct as J,xe as K,ut as L,z as M,ve as N,X as O,R as P,Fe as Q,F as R,D as S,Or as T,_r as U,Lr as V,C as W,Hr as X,zr as Y,Vr as Z,v as _,b as $,De as aa,qt as ba,Me as ca,Ut as da,ln as ea,fn as fa,gn as ga,yn as ha,mn as ia};
|
|
4
|
-
//# sourceMappingURL=chunk-MO226P4Q.js.map
|
package/dist/chunk-MYUKI5VN.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{H as y,J as W,L as Q,N as F,O as v,P as K,Q as g,R as b,S as P,v as U,x as z}from"./chunk-MO226P4Q.js";var Ee=new Set(["aix","android","darwin","freebsd","haiku","linux","openbsd","sunos","win32","cygwin","netbsd"]);function L(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t;return e.version!==1||typeof e.pid!="number"||!Number.isSafeInteger(e.pid)||e.pid<=0||typeof e.platform!="string"||!Ee.has(e.platform)||typeof e.startToken!="string"||e.startToken.trim()===""?null:{version:1,pid:e.pid,platform:e.platform,startToken:e.startToken}}function p(t,e){return t.version===e.version&&t.pid===e.pid&&t.platform===e.platform&&t.startToken===e.startToken}import{execFileSync as Te}from"child_process";import{platform as ve}from"os";var De=1e3,Y=16*1024,D;function S(t,e=V){if(!Number.isSafeInteger(t)||t<=0)return null;let r=t===process.pid&&e===V;if(r&&D)return{...D};try{let n=Ae(t,e);if(!n)return null;let i={version:1,pid:t,platform:e.platform,startToken:n};return r&&(D=i),{...i}}catch{return null}}function Ae(t,e){if(e.platform==="linux"||e.platform==="android")return Oe(e.readFile(`/proc/${t}/stat`));if(e.platform==="win32"){let r=`([DateTimeOffset](Get-Process -Id ${t} -ErrorAction Stop).StartTime).ToUnixTimeMilliseconds()`;return H(e.run("powershell.exe",["-NoProfile","-NonInteractive","-Command",r]))}return e.platform==="darwin"||e.platform==="freebsd"||e.platform==="openbsd"||e.platform==="netbsd"?H(e.run("ps",["-p",String(t),"-o","lstart="])):null}function Oe(t){let e=t.lastIndexOf(")");if(e<0)return null;let n=t.slice(e+1).trim().split(/\s+/)[19];return n&&/^\d+$/.test(n)?n:null}function H(t){let e=t.trim();return e===""?null:e}var V={platform:ve(),readFile(t){return W(t,{maxBytes:Y,inputKind:"process identity pseudo-file"})},run(t,e){return Te(t,[...e],{encoding:"utf8",timeout:De,maxBuffer:Y,env:{...process.env,LC_ALL:"C",LANG:"C"},stdio:["ignore","pipe","ignore"]})}};function x(t){try{return process.kill(t,0),!0}catch(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="EPERM"}}function X(){return performance.now()}function Me(t,e){return t.reason instanceof Error?t.reason:new Error(e)}function nr(t,e){if(t?.aborted)throw Me(t,e)}import{randomUUID as Ne}from"crypto";import{closeSync as Ge,fsyncSync as _e,linkSync as qe,mkdirSync as Ce,openSync as Be,statSync as $e,unlinkSync as je,writeSync as Je}from"fs";import{dirname as G}from"path";var O="scip-query-process-lock",M=1,E=Object.freeze({wallNow:()=>Date.now(),isProcessAlive:x,readProcessIdentity:S,randomToken:()=>Ne(),makeDirectory:t=>Ce(t,{recursive:!0}),openFile:(t,e,r)=>Be(t,e,r),writeFile:(t,e,r,n)=>Je(t,e,r,n),syncFile:t=>_e(t),closeFile:t=>Ge(t),linkFile:(t,e)=>qe(t,e),readFile:t=>y(t,"process lock record"),statFile:t=>{let e=$e(t);return{dev:e.dev,ino:e.ino,size:e.size,mtimeMs:e.mtimeMs}},removeFile:t=>je(t)});function Z(t,e){let r=e.runtime??E;r.makeDirectory(G(t));let n;for(let i=0;i<2;i+=1)try{return{kind:"acquired",lock:ee(t,e,r),...n?{reclaimed:n}:{}}}catch(o){if(o.code!=="EEXIST")throw o;let s=k(t,{parseLegacy:e.parseLegacy,runtime:r});if(i===0&&ze(t,s,{creationGraceMs:e.creationGraceMs,parseLegacy:e.parseLegacy,runtime:r})){n=s;continue}return{kind:"contended",observation:s}}return{kind:"contended",observation:k(t,{parseLegacy:e.parseLegacy,runtime:r})}}function k(t,e={}){let r=e.runtime??E,n,i;try{n=r.statFile(t),i=r.readFile(t)}catch(l){return l.code==="ENOENT"?{state:"missing"}:{state:"malformed"}}let o;try{o=JSON.parse(i)}catch{return{state:"malformed",raw:i,identity:n}}let s=Ue(o);if(s)return{state:"valid",raw:i,identity:n,record:s,owner:Ke(s),parsed:o};let a=e.parseLegacy?.(o)??null;return a?{state:"legacy",raw:i,identity:n,owner:a,parsed:o}:{state:"malformed",raw:i,identity:n,parsed:o}}function Ue(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t;if(e.protocol!==O||e.version!==M||typeof e.kind!="string"||e.kind.trim()===""||typeof e.pid!="number"||!Number.isSafeInteger(e.pid)||e.pid<=0||typeof e.token!="string"||e.token.trim()===""||typeof e.startedAt!="string"||!Number.isFinite(Date.parse(e.startedAt))||e.detail!==void 0&&(typeof e.detail!="object"||e.detail===null||Array.isArray(e.detail)))return null;let r=e.processIdentity===void 0?null:L(e.processIdentity);return e.processIdentity!==void 0&&(!r||r.pid!==e.pid)?null:{protocol:O,version:M,kind:e.kind,pid:e.pid,token:e.token,...r?{processIdentity:r}:{},startedAt:e.startedAt,...e.detail?{detail:e.detail}:{}}}function ze(t,e,r={}){let n=r.runtime??E;if(!N(e,n))return!1;let i=Qe(`${t}.reclaim`,n);if(!i)return!1;try{let o=k(t,{parseLegacy:r.parseLegacy,runtime:n});return!re(e,o)||!N(o,n)?!1:_(t,n)}finally{i.release()}}function ee(t,e,r){let n=e.directoryDurability??"durable",i=e.pid??process.pid,o=r.randomToken(),s=e.processIdentity===void 0?r.readProcessIdentity(i):e.processIdentity,a={protocol:O,version:M,kind:e.kind,pid:i,token:o,...s?{processIdentity:s}:{},startedAt:new Date(r.wallNow()).toISOString(),...e.detail?{detail:e.detail}:{}},l=`${t}.${o}.candidate`,c=r.openFile(l,"wx",384),d;try{F(c,Buffer.from(`${JSON.stringify(a)}
|
|
2
|
-
`),r,"process lock"),r.syncFile(c)}catch(m){d=m}try{r.closeFile(c)}catch(m){d??=m}if(d!==void 0)throw A(l,r),d;try{r.linkFile(l,t)}catch(m){throw A(l,r),m}if(A(l,r),n==="durable")try{ne(G(t),r)}catch(m){throw We(t,a,r),m}let f=!1;return{path:t,record:a,release:()=>f?!1:(f=!0,te(t,a,r,n))}}function We(t,e,r=E){return te(t,e,r,"durable")}function te(t,e,r,n){let i=k(t,{runtime:r});return i.state!=="valid"||!i.record||i.record.pid!==e.pid||i.record.token!==e.token||e.processIdentity&&(!i.record.processIdentity||!p(e.processIdentity,i.record.processIdentity))?!1:_(t,r,n)}function Qe(t,e){for(let r=0;r<2;r+=1)try{return ee(t,{kind:"reclaim-guard",runtime:e},e)}catch(n){if(n.code!=="EEXIST")return null;let i=k(t,{runtime:e});if(r>0||!N(i,e))return null;let o=k(t,{runtime:e});if(!re(i,o)||!_(t,e))return null}return null}function N(t,e){if(t.state==="missing")return!1;if(t.owner){if(!e.isProcessAlive(t.owner.pid))return!0;if(!t.owner.processIdentity)return!1;let r=e.readProcessIdentity(t.owner.pid);return r!==null&&!p(t.owner.processIdentity,r)}return!1}function re(t,e){return t.state===e.state&&t.raw===e.raw&&t.identity!==void 0&&e.identity!==void 0&&t.identity.dev===e.identity.dev&&t.identity.ino===e.identity.ino&&t.identity.size===e.identity.size&&t.identity.mtimeMs===e.identity.mtimeMs}function Ke(t){return{pid:t.pid,...t.processIdentity?{processIdentity:t.processIdentity}:{}}}function ne(t,e){let r;try{r=e.openFile(t,"r")}catch(n){if(v(n,process.platform))return;throw n}try{e.syncFile(r)}catch(n){if(!v(n,process.platform))throw n}finally{e.closeFile(r)}}function _(t,e,r="durable"){try{return e.removeFile(t),r==="durable"&&ne(G(t),e),!0}catch{return!1}}function A(t,e){try{e.removeFile(t)}catch{}}import{join as Ye}from"path";var He=t=>{if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.pid;return typeof e=="number"&&Number.isSafeInteger(e)&&e>0?{pid:e}:null};function br(t,e={}){return q(Ye(t,"gc.lock"),e)}function q(t,e={}){let r=e.waitMs??0,n=e.pollMs??10,i=e.now??X,o=i()+r;do{let s=Ve(t,e.directoryDurability);if(s)return Xe(s);let a=o-i();if(a<=0)return null;Ze(Math.min(n,a))}while(i()<=o);return null}function Ve(t,e){let r=Z(t,{kind:"generic",parseLegacy:He,...e?{directoryDurability:e}:{}});return r.kind==="acquired"?r.lock:null}function Xe(t){return{release:()=>{t.release()}}}function Ze(t){let e=new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));Atomics.wait(e,0,0,t)}import{randomUUID as ot}from"crypto";import{closeSync as st,existsSync as at,fsyncSync as ct,linkSync as lt,mkdirSync as dt,openSync as ut,renameSync as ft,unlinkSync as mt,writeSync as pt}from"fs";import{dirname as oe}from"path";import{chmodSync as et,constants as tt,copyFileSync as rt}from"fs";import{dirname as nt}from"path";var ie=Object.freeze({...K,copyFile:(t,e)=>rt(t,e,tt.COPYFILE_FICLONE),chmodFile:(t,e)=>et(t,e)});function it(t,e,r={}){let n=r.runtime??ie,i=nt(e),o=g(i,n);n.copyFile(t,e),r.mode!==void 0&&n.chmodFile(e,r.mode);let s=n.openFile(e,"r");try{n.syncFile(s)}finally{n.closeFile(s)}return P(o,b(i,n))}var se=Object.freeze({platform:process.platform,randomToken:()=>ot(),pathExists:t=>at(t),makeDirectory:t=>dt(t,{recursive:!0}),openFile:(t,e,r)=>ut(t,e,r),writeFile:(t,e,r,n)=>pt(t,e,r,n),syncFile:t=>ct(t),closeFile:t=>st(t),renameFile:(t,e)=>ft(t,e),linkFile:(t,e)=>lt(t,e),removeFile:t=>mt(t)});function C(t,e,r={}){let n=r.durability??"visibility",i=r.runtime??se,o=oe(t),s=n==="durable"?g(o,i):(i.makeDirectory(o),"not-requested"),a=`${t}.tmp-${i.randomToken()}`,l=typeof e=="string"?Buffer.from(e):e,c,d=!1;try{c=i.openFile(a,"wx",r.mode??384),d=!0,F(c,l,i,"atomic file"),n==="durable"&&i.syncFile(c),i.closeFile(c),c=void 0,i.renameFile(a,t),d=!1;let f=n==="durable"?P(s,b(o,i)):"not-requested";return ae(n,f)}finally{if(c!==void 0)try{i.closeFile(c)}catch{}if(d)try{i.removeFile(a)}catch{}}}function xr(t,e,r={}){let n=r.durability??"visibility",i=r.runtime??se;if(!i.linkFile)throw new Error("Exclusive atomic file publication requires hard-link support.");let o=oe(t),s=n==="durable"?g(o,i):(i.makeDirectory(o),"not-requested"),a=`${t}.tmp-${i.randomToken()}`,l=typeof e=="string"?Buffer.from(e):e,c,d=!1;try{c=i.openFile(a,"wx",r.mode??384),d=!0,F(c,l,i,"exclusive atomic file"),n==="durable"&&i.syncFile(c),i.closeFile(c),c=void 0,i.linkFile(a,t);let f=n==="durable"?b(o,i):"not-requested";i.removeFile(a),d=!1;let m=n==="durable"?P(s,f,b(o,i)):"not-requested";return ae(n,m)}finally{if(c!==void 0)try{i.closeFile(c)}catch{}if(d)try{i.removeFile(a)}catch{}}}function ae(t,e){return{requestedDurability:t,achievedDurability:t==="visibility"?"visibility":e==="synced"?"directory-durable":"file-flushed",directorySync:e}}function ce(t,e,r={}){C(t,le(e,r),{durability:"visibility",runtime:r.runtime})}function Ar(t,e,r={}){return C(t,le(e,r),{durability:"durable",runtime:r.runtime})}function le(t,e){let r=JSON.stringify(t,null,e.spacing);return e.trailingNewline?`${r}
|
|
3
|
-
`:r}import{createHash as yt,randomUUID as bt}from"crypto";import{existsSync as w,mkdirSync as gt,readdirSync as Pt,rmSync as ue,statSync as fe}from"fs";import{basename as St,dirname as T,join as u}from"path";var kt=1,wt=1,It=".scipquery-generations",Ft="manifest.json",me="readers",Lt="gc.lock",Rt=128,R=new Map,pe={pid:process.pid,now:()=>new Date,randomToken:()=>bt(),isProcessAlive:x,readProcessIdentity:S};function I(t){return u(T(t),It)}function ht(t){return u(I(t),Lt)}function Ur(t,e=pe){let r=q(ht(t.dbPath),{waitMs:5e3,directoryDurability:"recoverable"});if(!r)throw new Error("SQLite generation retention is busy; retry opening the index.");let n;try{let i=Dt(t);if(i.source!=="immutable")return{generation:i,release(){}};let o=e.randomToken();if(!/^[A-Za-z0-9._-]+$/.test(o))throw new Error("SQLite generation reader token is unsafe.");let s=u(I(t.dbPath),me);gt(s,{recursive:!0}),n=u(s,`${e.pid}-${o}.json`);let a=e.readProcessIdentity(e.pid);ce(n,{version:1,token:o,generationIdentity:i.identity,pid:e.pid,...a?{processIdentity:a}:{},acquiredAt:e.now().toISOString()},{spacing:2,trailingNewline:!0});let l=!1;return{generation:i,release(){l||!n||(l=!0,ue(n,{force:!0}))}}}finally{r.release()}}function zr(t,e,r=pe,n={}){let i=u(I(t),me);if(!w(i))return{protectedGenerations:new Set,activeLeases:0,staleLeasesRemoved:0,malformedLeases:0};let o=new Set,s=0,a=0,l=0;for(let c of Pt(i,{withFileTypes:!0})){if(!c.isFile()||!c.name.endsWith(".json"))continue;let d=u(i,c.name),f;try{f=xt(JSON.parse(y(d,"SQLite generation reader lease")))}catch{f=null}if(!f){l+=1;for(let m of e)o.add(m);continue}if(!Et(f,r)){n.removeStale!==!1&&(ue(d,{force:!0}),a+=1);continue}s+=1,o.add(f.generationIdentity)}return{protectedGenerations:o,activeLeases:s,staleLeasesRemoved:a,malformedLeases:l}}function xt(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t,r=e.processIdentity===void 0?null:L(e.processIdentity);return e.version!==1||typeof e.token!="string"||e.token.trim()===""||typeof e.generationIdentity!="string"||!/^[a-f0-9]{64}$/.test(e.generationIdentity)||typeof e.pid!="number"||!Number.isSafeInteger(e.pid)||e.pid<=0||typeof e.acquiredAt!="string"||!Number.isFinite(Date.parse(e.acquiredAt))||e.processIdentity!==void 0&&(!r||r.pid!==e.pid)?null:{version:1,token:e.token,generationIdentity:e.generationIdentity,pid:e.pid,...r?{processIdentity:r}:{},acquiredAt:e.acquiredAt}}function Et(t,e){if(!e.isProcessAlive(t.pid))return!1;if(!t.processIdentity)return!0;let r=e.readProcessIdentity(t.pid);return r===null||p(t.processIdentity,r)}function ye(t){try{let e=JSON.parse(y(u(I(t),"state.json"),"SQLite generation state"));return Gt(e)?e:null}catch{return null}}function Tt(t,e){return vt(I(t),e)}function vt(t,e){try{let r=JSON.parse(y(u(t,e,Ft),"SQLite generation manifest"));return Nt(r,e)?r:null}catch{return null}}function Dt(t){let e=ye(t.dbPath);if(e){let r=Ot(t,e.currentGeneration);if(r)return r;if(e.artifactSet==="immutable-v1")throw new Error(`Published SQLite generation ${e.currentGeneration} is missing or invalid.`)}if(w(u(T(t.dbPath),"index.lock")))throw new Error("Legacy SQLite publication is in progress; retry after the reindex lock is released.");return Mt(t,e?.currentGeneration)}function Wr(t){let e=ye(t);if(e)return e.currentGeneration;try{let r=u(T(t),"meta.json"),n=w(r)?y(r,"reindex metadata"):void 0;return be(t,n)}catch{return null}}function At(t){return z(U(t))??t}function Ot(t,e){try{let r=u(I(t.dbPath),e),n=Tt(t.dbPath,e);if(!n)return null;let i=B(r,n.database),o=n.index?B(r,n.index):void 0,s=n.metadata?B(r,n.metadata):void 0;return!$(i,n.database)||n.index&&(!o||!$(o,n.index))||n.metadata&&(!s||!$(s,n.metadata))?null:{identity:e,databasePath:i,...o?{indexPath:o}:{},...s?{metadataPath:s,metadataRaw:y(s,"reindex metadata")}:{},source:"immutable"}}catch{return null}}function Mt(t,e){let r=ge(t.dbPath),n=u(T(t.dbPath),"meta.json"),i=w(n)?y(n,"reindex metadata"):void 0,o=w(t.indexPath)?t.indexPath:void 0;return{identity:e??be(t.dbPath,i),databasePath:t.dbPath,...o?{indexPath:o}:{},...i===void 0?{}:{metadataPath:n,metadataRaw:i},source:"legacy",databaseFileIdentity:r}}function be(t,e){let r=yt("sha256").update("sqlite-generation-legacy-v1\0");return e!==void 0&&r.update(At(e)),r.update(`\0${ge(t)}`),r.digest("hex")}function ge(t){let e=fe(t);return`${e.dev}:${e.ino}:${e.size}:${e.mtimeMs}`}function B(t,e){if(St(e.file)!==e.file||e.file==="."||e.file==="..")throw new Error("SQLite generation manifest contains an unsafe artifact path");return u(t,e.file)}function $(t,e){if(!w(t))return!1;let r=de(t);if(!r||r.size!==e.size)return!1;let n=`${t}\0${e.sha256}\0${r.identity}`;if(R.has(n))return!0;let i=Q(t,{inputKind:"immutable SQLite generation artifact",maxBytes:e.size}),o=de(t);if(!o||o.identity!==r.identity||i!==e.sha256)return!1;for(R.set(n,!0);R.size>Rt;){let s=R.keys().next().value;if(s===void 0)break;R.delete(s)}return!0}function de(t){let e=fe(t,{bigint:!0});return e.isFile()?{identity:`${e.dev}:${e.ino}:${e.size}:${e.mtimeNs}:${e.ctimeNs}`,size:Number(e.size)}:null}function Nt(t,e){return t.version===wt&&t.identity===e&&j(t.database)&&(t.index===void 0||j(t.index))&&(t.metadata===void 0||j(t.metadata))}function j(t){if(!t||typeof t!="object")return!1;let e=t;return typeof e.file=="string"&&!!e.file&&Number.isSafeInteger(e.size)&&(e.size??-1)>=0&&typeof e.sha256=="string"&&/^[a-f0-9]{64}$/.test(e.sha256)}function Gt(t){return t.version===kt&&typeof t.currentGeneration=="string"&&!!t.currentGeneration&&typeof t.publishedAt=="string"&&Number.isFinite(Date.parse(t.publishedAt))&&(t.artifactSet===void 0||t.artifactSet==="immutable-v1")&&_t(t.stableMirrors)&&qt(t.previousGeneration)&&Ct(t.publication)}function _t(t){if(t===void 0)return!0;if(!t||typeof t!="object")return!1;let e=t;return typeof e.databaseFileIdentity=="string"&&!!e.databaseFileIdentity&&(e.indexFileIdentity===void 0||typeof e.indexFileIdentity=="string"&&!!e.indexFileIdentity)}function qt(t){if(t===void 0)return!0;if(!t||typeof t!="object")return!1;let e=t;return typeof e.generationIdentity=="string"&&!!e.generationIdentity&&typeof e.databasePath=="string"&&!!e.databasePath&&(e.metadataPath===void 0||typeof e.metadataPath=="string"&&!!e.metadataPath)}function Ct(t){if(t===void 0)return!0;if(!t||typeof t!="object")return!1;let e=t,r=[e.converterDurationMs,e.affectedDocumentCount,e.changedDocumentCount,e.producerDurationMs,e.materializationDurationMs,e.patchDurationMs].filter(n=>n!==void 0);return(e.mode==="incremental"||e.mode==="full")&&e.validation==="passed"&&e.converterDurationMs!==void 0&&r.every(n=>typeof n=="number"&&Number.isFinite(n)&&n>=0)&&(e.scipCompanion===void 0||e.scipCompanion==="current"||e.scipCompanion==="deferred")&&(e.typescriptOverlayGeneration===void 0||typeof e.typescriptOverlayGeneration=="string"&&!!e.typescriptOverlayGeneration)&&(e.scipCompanion!=="deferred"||!!e.typescriptOverlayGeneration)&&(e.fallbackReason===void 0||typeof e.fallbackReason=="string")}import{execFileSync as Pe,spawnSync as Yr}from"child_process";import{platform as Bt}from"os";import{resolve as $t}from"path";var Se=Bt()==="win32";function Xr(t){let e=Se?"where":"which";try{return Pe(e,[t],{stdio:"pipe",timeout:1e4,killSignal:"SIGKILL"}),!0}catch{return!1}}var jt=/\.(?:c|m)?js$/i,Jt=/\.(?:exe|com)$/i;function Zr(t,e){return jt.test(t)?{binary:process.execPath,args:[t,...e]}:{binary:t,args:[...e]}}function Ut(t,e){return Pe(t,e,{stdio:["ignore","pipe","ignore"],encoding:"utf8",timeout:1e4,killSignal:"SIGKILL"})}function en(t,e={}){let r=e.isWindows??Se,n=e.lookup??Ut,i;try{i=n(r?"where":"which",[t])}catch{return null}let o=i.split(/\r?\n/).map(s=>s.trim()).filter(Boolean);if(!r){let s=o[0];return s?$t(s):null}return o.find(s=>Jt.test(s))??null}import{execFileSync as Ie}from"child_process";import{platform as zt}from"os";var Fe=1e3,Le=2*1024*1024,Wt=25;function sn(t,e,r=xe){let n=r.readIdentity(t),i=new Map;return n&&i.set(t,n),{rootPid:t,rootIdentity:n,ownsProcessGroup:e,knownMembers:i}}async function an(t,e,r=xe){if(!t.rootIdentity){let l=await h(t,e.gracefulMs+e.forceMs,r);return{reaped:l,reason:l?"terminated":"identity-unavailable",detail:l?void 0:`Could not establish the birth identity of process ${t.rootPid}.`}}let n=Re(t,r);if(n==="mismatch")return{reaped:!1,reason:"identity-mismatch",detail:`Process ${t.rootPid} no longer has the identity owned by this runner.`};if(n==="exited"&&!he(t,r))return{reaped:!0,reason:"terminated"};if(r.platform==="win32"){try{r.terminateWindowsTree(t.rootPid)}catch(c){let d=await h(t,e.forceMs,r);return{reaped:d,reason:d?"terminated":"signal-failed",detail:d?void 0:J(c)}}let l=await h(t,e.forceMs,r);return{reaped:l,reason:l?"terminated":"deadline"}}let i=ke(t,"SIGTERM",r);if(await h(t,e.gracefulMs,r))return{reaped:!0,reason:"terminated"};let s=ke(t,"SIGKILL",r);return await h(t,e.forceMs,r)?{reaped:!0,reason:"terminated"}:s?{reaped:!1,reason:s.reason,detail:s.detail}:i?{reaped:!1,reason:i.reason,detail:i.detail}:{reaped:!1,reason:"deadline",detail:`Process tree ${t.rootPid} did not exit before its termination deadline.`}}function Re(t,e){let r=e.readIdentity(t.rootPid);if(!r)return"exited";if(!t.rootIdentity||!p(t.rootIdentity,r))return"mismatch";t.knownMembers.set(t.rootPid,r);for(let n of e.listDescendantPids(t.rootPid)){let i=e.readIdentity(n);i&&t.knownMembers.set(n,i)}return"owned"}function ke(t,e,r){let n=Re(t,r);if(n==="mismatch")return{reason:"identity-mismatch",detail:`Process ${t.rootPid} changed identity before ${e}.`};if(n==="owned"&&t.ownsProcessGroup)try{return r.signal(-t.rootPid,e),null}catch(o){if(!we(o))return{reason:"signal-failed",detail:J(o)}}let i=null;for(let o of t.knownMembers.values()){let s=r.readIdentity(o.pid);if(!(!s||!p(o,s)))try{r.signal(o.pid,e)}catch(a){!we(a)&&i===null&&(i=J(a))}}return i===null?null:{reason:"signal-failed",detail:i}}async function h(t,e,r){let n=r.now()+e;for(;he(t,r);){if(r.now()>=n)return!1;await r.sleep(Math.min(Wt,Math.max(1,n-r.now())))}return!0}function he(t,e){if(!t.rootIdentity&&e.isProcessAlive(t.rootPid))return!0;for(let r of t.knownMembers.values()){let n=e.readIdentity(r.pid);if(n&&p(r,n))return!0}return!!(t.ownsProcessGroup&&e.isProcessGroupAlive(t.rootPid))}function Qt(t){let e=Kt(!1),r=new Map;for(let s of e.split(/\r?\n/)){let a=/^\s*(\d+)\s+(\d+)\s*$/.exec(s);if(!a)continue;let l=Number(a[1]),c=Number(a[2]),d=r.get(c)??[];d.push(l),r.set(c,d)}let n=[],i=[...r.get(t)??[]],o=new Set;for(;i.length>0;){let s=i.pop();o.has(s)||(o.add(s),n.push(s),i.push(...r.get(s)??[]))}return n}function Kt(t){return Ie("ps",["-axo",t?"pid=,ppid=,rss=":"pid=,ppid="],{encoding:"utf8",timeout:Fe,maxBuffer:Le,env:{...process.env,LC_ALL:"C",LANG:"C"},stdio:["ignore","pipe","ignore"]})}function we(t){return typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH"}function J(t){return t instanceof Error?t.message:String(t)}var xe={platform:zt(),now:Date.now,readIdentity:S,isProcessAlive(t){try{return process.kill(t,0),!0}catch(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="EPERM"}},isProcessGroupAlive(t){if(this.platform==="win32")return!1;try{return process.kill(-t,0),!0}catch(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="EPERM"}},listDescendantPids(t){if(this.platform==="win32")return[];try{return Qt(t)}catch{return[]}},signal(t,e){process.kill(t,e)},terminateWindowsTree(t){Ie("taskkill.exe",["/PID",String(t),"/T","/F"],{timeout:Fe,maxBuffer:Le,stdio:"ignore",windowsHide:!0})},async sleep(t){await new Promise(e=>setTimeout(e,t))}};export{L as a,p as b,S as c,x as d,X as e,Me as f,nr as g,Z as h,k as i,ze as j,br as k,q as l,it as m,C as n,xr as o,ce as p,Ar as q,kt as r,wt as s,It as t,Ft as u,I as v,ht as w,Ur as x,zr as y,ye as z,Tt as A,vt as B,Dt as C,Wr as D,At as E,ge as F,Xr as G,Zr as H,en as I,sn as J,an as K};
|
|
4
|
-
//# sourceMappingURL=chunk-MYUKI5VN.js.map
|
package/dist/chunk-OIRWZIYL.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{M,N as _,a as A,c as F,j as G,k as b}from"./chunk-SDPA5DKN.js";import{b as I,f as S}from"./chunk-VWLIOEEF.js";import{e as m}from"./chunk-HGFDYOVB.js";var C=G({kind:"file-dependency-graph",invalidation:b("file-dependency-graph"),serialize:e=>JSON.stringify(e),deserialize:T}),x=I("file-dep-graph",{clearGroups:["whole-project"]});function Q(e,n,r){if(r.length===0)return[];let i=new Set(r),s=w(e),t=new Set;if(n==="forward")for(let c of i)for(let o of s.get(c)??[])i.has(o)||t.add(o);else for(let[c,o]of s)if(!i.has(c))for(let d of i)o.has(d)&&t.add(c);return[...t].sort()}function w(e,n,r={}){let i=r.scipEdges??"all-references",s=r.sourceEdges??"imports-only",t=N(n,i,s);return x.get(e,t,()=>{let c=new Set(S(e,{includeIgnored:!1})),o=F(e),d=0,a=0,u=null,O=!1,p=0,E=0,D=null;return m("file-dep-graph.product",()=>{if(o){let l=C.read(e,t,o);if(l){O=!0,D=l.construction;let y=$(l);return d=l.sourceFileCount,a=l.sourceEdgeCount,p=l.scipEdgeCount,E=y.size,u=l.sourceDependencyFingerprint,y}}let f=m("file-dep-graph.source-imports",()=>{let l=J(e,c,n,s);return d=l.files.length,a=l.edges.length,u=l.fingerprint,l},()=>({scope:n??null,sourceEdges:s,files:d,edges:a})),g=new Map,P=(l,y)=>h(e,g,c,l,y);m("file-dep-graph.scip-edges",()=>{for(let l of K(e,n,i))p=(p??0)+1,P(l.from_file,l.to_file)},()=>({scope:n??null,edges:p}));for(let l of f.edges)P(l.fromFile,l.toFile);return E=g.size,o&&(D="full",C.write(e,t,o,{version:2,construction:"full",sourceDependencyFingerprint:f.fingerprint,sourceFileCount:f.files.length,sourceEdgeCount:f.edges.length,scipEdgeCount:p,edgeCount:v(g),graph:R(g)})),g},()=>({scope:n??null,available:o!==null,hit:O,construction:D,files:d,sourceEdges:a,sourceEdgeMode:s,scipEdges:p,graphFiles:E,sourceDependencyFingerprint:u}))})}function X(e){let n=N(void 0,"all-references","imports-only"),r=w(e);return{cacheKey:n,graph:H(r)}}function Z(e,n,r){let i=F(e);if(!i)return!1;let s=N(void 0,"all-references","imports-only");if(n.cacheKey!==s)return!1;let t=new Set(S(e,{includeIgnored:!1})),c=new Set(r),o=new Map;for(let[d,a]of n.graph)if(!(c.has(d)||!t.has(d)))for(let u of a)h(e,o,t,d,u);for(let d of L(e,c,"all-references"))h(e,o,t,d.from_file,d.to_file);for(let d of c)if(t.has(d))for(let a of _(e,d))a.sourcePath&&h(e,o,t,d,a.sourcePath);return C.write(e,s,i,{version:2,construction:"carried",sourceDependencyFingerprint:null,sourceFileCount:t.size,sourceEdgeCount:null,scipEdgeCount:null,edgeCount:v(o),graph:R(o)}),!0}function J(e,n,r,i){let s=[],t=[];for(let c of n)if(!(r&&!c.includes(r))){s.push(c);for(let o of _(e,c))o.sourcePath&&t.push({fromFile:c,toFile:o.sourcePath});if(i==="imports-and-reexports")for(let o of M(e,c))o.sourcePath&&t.push({fromFile:c,toFile:o.sourcePath})}return{files:s,edges:t,fingerprint:k(s,t)}}function k(e,n){let r=n.map(i=>`${i.fromFile}\0${i.toFile}`).sort();return A(JSON.stringify({files:e,edges:r}))}function N(e,n,r){return`edge-mode-v4:${n}:${r}:${e??"<all>"}`}function R(e){return[...e].map(([n,r])=>[n,[...r].sort()]).sort(([n],[r])=>n.localeCompare(r))}function $(e){return new Map(e.graph.map(([n,r])=>[n,new Set(r)]))}function T(e){let n=JSON.parse(e);return j(n)?n:null}function j(e){if(!e||typeof e!="object")return!1;let n=e;return n.version===2&&(n.construction==="full"||n.construction==="carried")&&(n.sourceDependencyFingerprint===null||typeof n.sourceDependencyFingerprint=="string")&&typeof n.sourceFileCount=="number"&&(n.sourceEdgeCount===null||typeof n.sourceEdgeCount=="number")&&(n.scipEdgeCount===null||typeof n.scipEdgeCount=="number")&&typeof n.edgeCount=="number"&&Array.isArray(n.graph)&&n.graph.every(z)}function H(e){return new Map([...e].map(([n,r])=>[n,new Set(r)]))}function v(e){let n=0;for(let r of e.values())n+=r.size;return n}function z(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&Array.isArray(e[1])&&e[1].every(n=>typeof n=="string")}function K(e,n,r){let i=n?"AND d1.relative_path LIKE ?":"",s=n?[`%${n}%`]:[],t=r==="imports-only"?"AND m.role = 2":"AND m.role != 1";return e.all(`SELECT DISTINCT
|
|
2
|
-
d1.relative_path AS from_file,
|
|
3
|
-
d2.relative_path AS to_file
|
|
4
|
-
FROM mentions m
|
|
5
|
-
JOIN chunks c ON m.chunk_id = c.id
|
|
6
|
-
JOIN documents d1 ON c.document_id = d1.id
|
|
7
|
-
JOIN global_symbols gs ON m.symbol_id = gs.id
|
|
8
|
-
JOIN (
|
|
9
|
-
SELECT m2.symbol_id, c2.document_id
|
|
10
|
-
FROM mentions m2
|
|
11
|
-
JOIN chunks c2 ON m2.chunk_id = c2.id
|
|
12
|
-
WHERE m2.role = 1
|
|
13
|
-
GROUP BY m2.symbol_id
|
|
14
|
-
) sym_def ON sym_def.symbol_id = gs.id
|
|
15
|
-
JOIN documents d2 ON sym_def.document_id = d2.id
|
|
16
|
-
WHERE d1.id != d2.id
|
|
17
|
-
${t}
|
|
18
|
-
${e.pathExclusionsFor("d1","d2")}
|
|
19
|
-
${i}`,...s)}function L(e,n,r){let i=[...n].sort();if(i.length===0)return[];let s=r==="imports-only"?"AND m.role = 2":"AND m.role != 1",t=[];for(let c=0;c<i.length;c+=500){let o=i.slice(c,c+500),d=o.map(()=>"?").join(", ");t.push(...e.all(`SELECT DISTINCT
|
|
20
|
-
d1.relative_path AS from_file,
|
|
21
|
-
d2.relative_path AS to_file
|
|
22
|
-
FROM mentions m
|
|
23
|
-
JOIN chunks c ON m.chunk_id = c.id
|
|
24
|
-
JOIN documents d1 ON c.document_id = d1.id
|
|
25
|
-
JOIN global_symbols gs ON m.symbol_id = gs.id
|
|
26
|
-
JOIN (
|
|
27
|
-
SELECT m2.symbol_id, c2.document_id
|
|
28
|
-
FROM mentions m2
|
|
29
|
-
JOIN chunks c2 ON m2.chunk_id = c2.id
|
|
30
|
-
WHERE m2.role = 1
|
|
31
|
-
GROUP BY m2.symbol_id
|
|
32
|
-
) sym_def ON sym_def.symbol_id = gs.id
|
|
33
|
-
JOIN documents d2 ON sym_def.document_id = d2.id
|
|
34
|
-
WHERE d1.id != d2.id
|
|
35
|
-
${s}
|
|
36
|
-
${e.pathExclusionsFor("d1","d2")}
|
|
37
|
-
AND d1.relative_path IN (${d})`,...o))}return t}function h(e,n,r,i,s){if(i===s||e.isIgnored(i)||e.isIgnored(s)||!r.has(s))return;let t=n.get(i);t||(t=new Set,n.set(i,t)),t.add(s)}export{Q as a,w as b,X as c,Z as d};
|
|
38
|
-
//# sourceMappingURL=chunk-OIRWZIYL.js.map
|