scip-query 0.22.0 → 0.23.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 +257 -0
- package/README.md +11 -0
- package/dist/augment-vue-worker.js +1 -1
- package/dist/by-kind-XI2CSWEY.js +2 -0
- package/dist/call-graph-UONR6JR5.js +2 -0
- package/dist/{chunk-FGNCOQUX.js → chunk-2E7CX53V.js} +2 -2
- package/dist/chunk-2GRUZAQF.js +43 -0
- package/dist/{chunk-DPWKKNKI.js → chunk-2LDBDR6J.js} +2 -2
- package/dist/{chunk-JHH5SCZ3.js → chunk-2OOY75BW.js} +2 -2
- package/dist/{chunk-XGGBK66W.js → chunk-2R3V3PSD.js} +2 -2
- package/dist/chunk-2WC2OEDO.js +4 -0
- package/dist/{chunk-57N6LN2A.js → chunk-3AF4TUFK.js} +2 -2
- package/dist/{chunk-2RE5OCHZ.js → chunk-3D3QG236.js} +2 -2
- package/dist/{chunk-D2MVJSP4.js → chunk-3FHOF22C.js} +2 -2
- package/dist/{chunk-7XZGZBSQ.js → chunk-3JKSW6LJ.js} +2 -2
- package/dist/chunk-3L2ZBPEX.js +133 -0
- package/dist/{chunk-NVSZNESQ.js → chunk-3PJABJSU.js} +2 -2
- package/dist/{chunk-WOOAY3PA.js → chunk-3SVF22I5.js} +2 -2
- package/dist/{chunk-YAGYMBEX.js → chunk-3WR4E3A3.js} +2 -2
- package/dist/chunk-4FTZ4P5G.js +2 -0
- package/dist/{chunk-F24G5NBE.js → chunk-4ILJCCXV.js} +2 -2
- package/dist/chunk-4UX2F3JX.js +2 -0
- package/dist/chunk-4WNW27SX.js +2 -0
- package/dist/chunk-5ENOG4VP.js +61 -0
- package/dist/{chunk-RHHCLWQ6.js → chunk-64BFSI5I.js} +2 -2
- package/dist/chunk-66DVSJQG.js +455 -0
- package/dist/{chunk-ISWFRGJ6.js → chunk-6HFCYNYE.js} +2 -2
- package/dist/{chunk-Y2VM4CJC.js → chunk-6I6L7Z62.js} +2 -2
- package/dist/{chunk-CKRWA452.js → chunk-6PQNKL3G.js} +2 -2
- package/dist/{chunk-GPGRZJ3R.js → chunk-6V5CNXL6.js} +2 -2
- package/dist/chunk-6VVV4WRR.js +4 -0
- package/dist/{chunk-BDGTPN27.js → chunk-7BWFZPPZ.js} +2 -2
- package/dist/{chunk-25GWKRUZ.js → chunk-7CYG22FH.js} +2 -2
- package/dist/chunk-7F45LJKI.js +2 -0
- package/dist/{chunk-4TQU4TX2.js → chunk-7IWV2EG3.js} +2 -2
- package/dist/{chunk-UDY7MIAW.js → chunk-AFHTBORT.js} +2 -2
- package/dist/chunk-AVRYW5OZ.js +2 -0
- package/dist/chunk-B3PYOSCX.js +2 -0
- package/dist/{chunk-RNKPYYYE.js → chunk-B5D7QPBE.js} +2 -2
- package/dist/{chunk-FFJQZG6J.js → chunk-BBCIS4DX.js} +2 -2
- package/dist/chunk-BDUVI7TO.js +3 -0
- package/dist/{chunk-BVFYEEBH.js → chunk-BE7ZZTMC.js} +2 -2
- package/dist/{chunk-NEIQPFBI.js → chunk-BHVUJOCQ.js} +2 -2
- package/dist/chunk-BKVWUP7Y.js +2 -0
- package/dist/{chunk-IJMD6BRI.js → chunk-BQGB4HBD.js} +2 -2
- package/dist/{chunk-ERCYGVAM.js → chunk-BRV7PIFF.js} +2 -2
- package/dist/chunk-CEEZJXEF.js +2 -0
- package/dist/{chunk-BTVKZGWT.js → chunk-CIYLO6SI.js} +2 -2
- package/dist/chunk-CJZXN4NU.js +2 -0
- package/dist/{chunk-VXJJTQYE.js → chunk-CNO7TOKL.js} +2 -2
- package/dist/{chunk-ZZ3Z7D56.js → chunk-COF23M5F.js} +2 -2
- package/dist/{chunk-ZGW4HLPD.js → chunk-CWFP7GM5.js} +2 -2
- package/dist/chunk-D2DHWI3D.js +2 -0
- package/dist/{chunk-Q55NF3ZG.js → chunk-D4N5SQ2M.js} +2 -2
- package/dist/{chunk-LXQUF2RP.js → chunk-DBRSYFXR.js} +2 -2
- package/dist/{chunk-PXXYQK55.js → chunk-DHUIOLDT.js} +2 -2
- package/dist/{chunk-KZYID5KV.js → chunk-DIRJWYBM.js} +2 -2
- package/dist/{chunk-IKVNEGTW.js → chunk-DIUFNHRJ.js} +2 -2
- package/dist/{chunk-CLG6DWVS.js → chunk-DTZCKZEU.js} +2 -2
- package/dist/{chunk-Z2PZVKPR.js → chunk-DULC3QFP.js} +2 -2
- package/dist/{chunk-AYPDH2LU.js → chunk-DYGHBZ2N.js} +2 -2
- package/dist/{chunk-JJ62MTQH.js → chunk-E5R6AQ73.js} +2 -2
- package/dist/{chunk-BWVQP3LB.js → chunk-E73UNJTF.js} +2 -2
- package/dist/{chunk-GVOMSPGL.js → chunk-EG2CPZMJ.js} +2 -2
- package/dist/{chunk-56NQAEPJ.js → chunk-EKV5HX33.js} +2 -2
- package/dist/{chunk-GDRJB3SB.js → chunk-EQHFIL6T.js} +2 -2
- package/dist/{chunk-EWWY2ZFL.js → chunk-ESIQ66Z7.js} +2 -2
- package/dist/chunk-EVFUMY4R.js +3 -0
- package/dist/{chunk-ZYM4HOFA.js → chunk-F7DY272B.js} +2 -2
- package/dist/chunk-FBN2FGXG.js +2 -0
- package/dist/{chunk-AZS7YPCB.js → chunk-FDLOBR6P.js} +2 -2
- package/dist/chunk-FESCRNVV.js +5 -0
- package/dist/{chunk-URSGGIZX.js → chunk-FFRKR4EQ.js} +2 -2
- package/dist/chunk-FGA2U4OR.js +8 -0
- package/dist/{chunk-7YQOCABQ.js → chunk-FIQRSHVM.js} +2 -2
- package/dist/{chunk-KFVSJX25.js → chunk-FPYLNQPT.js} +2 -2
- package/dist/{chunk-FELGD32K.js → chunk-FRUSVINH.js} +2 -2
- package/dist/chunk-GAS2LJMP.js +3 -0
- package/dist/{chunk-OTSPRVNW.js → chunk-GSP44ENC.js} +2 -2
- package/dist/{chunk-K3XFWJI2.js → chunk-GUFSG5TX.js} +2 -2
- package/dist/chunk-GYIZ4NXB.js +2 -0
- package/dist/{chunk-2OXVP5U5.js → chunk-GZIUDL6G.js} +2 -2
- package/dist/chunk-HCXEQRFF.js +18 -0
- package/dist/{chunk-LO5JSW2C.js → chunk-HEHOQQKH.js} +2 -2
- package/dist/{chunk-U2N2KE7A.js → chunk-HKGFPJ4T.js} +2 -2
- package/dist/chunk-HLZTEXRA.js +2 -0
- package/dist/{chunk-EELPBR7E.js → chunk-HOENASQM.js} +2 -2
- package/dist/{chunk-VTCIYFEK.js → chunk-HVF5VBG6.js} +2 -2
- package/dist/{chunk-TH6IC56G.js → chunk-HYO3NP5Q.js} +2 -2
- package/dist/{chunk-OPSAW5DT.js → chunk-I55I7XXP.js} +2 -2
- package/dist/{chunk-DEAB5TGT.js → chunk-IDFEUFKS.js} +2 -2
- package/dist/{chunk-DJAO2OZJ.js → chunk-IHGQTTVW.js} +2 -2
- package/dist/{chunk-XU75YQN4.js → chunk-IICPE7B2.js} +2 -2
- package/dist/{chunk-GY7CCCEZ.js → chunk-IL676XCC.js} +2 -2
- package/dist/{chunk-4HE7MVWD.js → chunk-ILTDAWEF.js} +2 -2
- package/dist/chunk-IZDPJ2QI.js +2 -0
- package/dist/{chunk-5YRQIE2B.js → chunk-J66VOFW6.js} +2 -2
- package/dist/{chunk-SB25YMEQ.js → chunk-JFMEXGFE.js} +2 -2
- package/dist/{chunk-QLBSG7U5.js → chunk-JGKUET5J.js} +2 -2
- package/dist/{chunk-VZ7NXSHV.js → chunk-JS4PGXMV.js} +2 -2
- package/dist/{chunk-ZAZGGSM3.js → chunk-JTQVMR42.js} +2 -2
- package/dist/chunk-JWTGMPIT.js +80 -0
- package/dist/{chunk-5ZMBRQFC.js → chunk-JYR66JN5.js} +2 -2
- package/dist/chunk-KLFEXGQA.js +2 -0
- package/dist/chunk-KYSDI3GE.js +5 -0
- package/dist/{chunk-MSR2QRUE.js → chunk-L6PJPETJ.js} +2 -2
- package/dist/{chunk-VU6LIWHT.js → chunk-LDVT66YM.js} +2 -2
- package/dist/chunk-LEECKFCJ.js +2 -0
- package/dist/{chunk-H7CG6LOE.js → chunk-LMZ5PRUV.js} +2 -2
- package/dist/{chunk-ZPASRBLF.js → chunk-LQRQN2XA.js} +2 -2
- package/dist/{chunk-HISEUIL2.js → chunk-LXABEJX3.js} +2 -2
- package/dist/{chunk-WHADK6OS.js → chunk-M2O5NY6W.js} +2 -2
- package/dist/{chunk-Y334QQU5.js → chunk-MNV5FSBW.js} +2 -2
- package/dist/{chunk-RYOYJMGF.js → chunk-MPQ4OTBM.js} +2 -2
- package/dist/{chunk-6NC3YSPY.js → chunk-MV3CDXPI.js} +2 -2
- package/dist/{chunk-NRBNAECH.js → chunk-MWN53KRN.js} +2 -2
- package/dist/chunk-N2ZSIIGR.js +117 -0
- package/dist/chunk-N5B2NILC.js +5 -0
- package/dist/{chunk-Q6T2CAJL.js → chunk-NJITK2GP.js} +2 -2
- package/dist/{chunk-ENWQWA2R.js → chunk-NOGJXYFO.js} +2 -2
- package/dist/{chunk-V4NG5OMS.js → chunk-NOYBFVJA.js} +106 -106
- package/dist/chunk-NWQXSFFU.js +3 -0
- package/dist/chunk-ODDUPDP7.js +13 -0
- package/dist/{chunk-A77SCPW2.js → chunk-OLIWTZI3.js} +2 -2
- package/dist/{chunk-XFMVKFSF.js → chunk-OLNV6I6U.js} +2 -2
- package/dist/{chunk-QKT4UI2Y.js → chunk-OR2E3AGZ.js} +2 -2
- package/dist/chunk-OSR2GEHQ.js +2 -0
- package/dist/{chunk-5H5WTJSD.js → chunk-OSSESPDX.js} +2 -2
- package/dist/{chunk-KQHJEU6V.js → chunk-OWOOWNJ5.js} +2 -2
- package/dist/{chunk-GRX7JOXQ.js → chunk-P42EIXTA.js} +2 -2
- package/dist/{chunk-AQ2PORIO.js → chunk-PJFGPYTU.js} +2 -2
- package/dist/{chunk-LRI5OMPE.js → chunk-PP7KNN7L.js} +2 -2
- package/dist/{chunk-PLJUQFQN.js → chunk-PU7T5QYQ.js} +2 -2
- package/dist/{chunk-JUN5DOAK.js → chunk-PWWAJSKV.js} +2 -2
- package/dist/{chunk-7IQXARSQ.js → chunk-PZL5T7SU.js} +2 -2
- package/dist/{chunk-UAQ4T73O.js → chunk-QBE3YX64.js} +2 -2
- package/dist/{chunk-3TJY6M3B.js → chunk-QGVTFRY2.js} +2 -2
- package/dist/chunk-QOJONDS7.js +2 -0
- package/dist/chunk-QU5XRYB5.js +4 -0
- package/dist/{chunk-2KVU55CW.js → chunk-QUU5OBVK.js} +2 -2
- package/dist/{chunk-Q5TA4OY4.js → chunk-RBLQNW26.js} +2 -2
- package/dist/chunk-RTQ7NEKG.js +81 -0
- package/dist/{chunk-F24QUEQP.js → chunk-SQXRS7BG.js} +2 -2
- package/dist/chunk-SSK6LDPC.js +2 -0
- package/dist/chunk-SZHGTCPP.js +7 -0
- package/dist/chunk-T4N4P2K5.js +16 -0
- package/dist/chunk-TA3QKLLU.js +2 -0
- package/dist/chunk-TEBQMNVI.js +43 -0
- package/dist/{chunk-NK3JMP22.js → chunk-TPFHAQ2G.js} +2 -2
- package/dist/chunk-TQPCBMWT.js +5 -0
- package/dist/{chunk-HG722PO7.js → chunk-TRNAEQ6P.js} +2 -2
- package/dist/chunk-TY7CRN3Z.js +2 -0
- package/dist/{chunk-7XA3OM44.js → chunk-UHFYCMZO.js} +2 -2
- package/dist/{chunk-ARVO6TTW.js → chunk-UICY4GTQ.js} +2 -2
- package/dist/{chunk-SWK4XPUS.js → chunk-UVGEWT4Y.js} +2 -2
- package/dist/{chunk-GIQ6CSL4.js → chunk-UXW33INU.js} +2 -2
- package/dist/{chunk-RDULNRSJ.js → chunk-VMPRET3I.js} +2 -2
- package/dist/{chunk-I6UTXNHU.js → chunk-VNLGKHS6.js} +2 -2
- package/dist/{chunk-44T4DUAA.js → chunk-VQILFTEH.js} +2 -2
- package/dist/{chunk-N7FP5H5U.js → chunk-VUPHCS7Y.js} +8 -8
- package/dist/{chunk-JAT6C3VX.js → chunk-VVZSBTSU.js} +2 -2
- package/dist/{chunk-FBCVASUG.js → chunk-VZRNID6A.js} +2 -2
- package/dist/{chunk-TUQIPUDS.js → chunk-W5OXRYGE.js} +2 -2
- package/dist/chunk-W6STWDQI.js +57 -0
- package/dist/chunk-W7CXK74K.js +2 -0
- package/dist/chunk-WB3WYIRE.js +4 -0
- package/dist/{chunk-C76O5MDS.js → chunk-WDNVY4E7.js} +2 -2
- package/dist/{chunk-TAYD3AE7.js → chunk-WIWY3CRX.js} +2 -2
- package/dist/chunk-WK46TNUM.js +3 -0
- package/dist/chunk-WNTFFKAX.js +12 -0
- package/dist/{chunk-JFQBRL3J.js → chunk-WOIKCX6A.js} +2 -2
- package/dist/{chunk-PIFTZEEM.js → chunk-WUN6KBHV.js} +2 -2
- package/dist/chunk-WYCTJDVR.js +2 -0
- package/dist/chunk-WYPL7GF7.js +2 -0
- package/dist/{chunk-XN22RGSR.js → chunk-XBGWL66K.js} +2 -2
- package/dist/{chunk-R6M456QG.js → chunk-XDQMU3BT.js} +2 -2
- package/dist/{chunk-XJX6LGHL.js → chunk-XFA4SSO3.js} +2 -2
- package/dist/{chunk-2YC7YNKT.js → chunk-XGZEP6GR.js} +2 -2
- package/dist/chunk-XPDPNWTQ.js +368 -0
- package/dist/chunk-XRYABF57.js +8 -0
- package/dist/{chunk-YIHNPKWD.js → chunk-YBGKCQIS.js} +2 -2
- package/dist/{chunk-2XCGSDIT.js → chunk-YEN6CYC7.js} +2 -2
- package/dist/{chunk-VMWUV6WB.js → chunk-YF5IB2LF.js} +2 -2
- package/dist/{chunk-TNG2FYS5.js → chunk-YI2AWIHC.js} +2 -2
- package/dist/{chunk-EELG7D3Q.js → chunk-YPWBKGFU.js} +2 -2
- package/dist/{chunk-GQIDEID3.js → chunk-YPWHBBIS.js} +2 -2
- package/dist/{chunk-TKDNDQA7.js → chunk-YSH6U3L4.js} +2 -2
- package/dist/{chunk-BUTEIZKP.js → chunk-YU5DZUZI.js} +2 -2
- package/dist/chunk-YWO5DDRC.js +16 -0
- package/dist/{chunk-6HRZQLOI.js → chunk-Z4CDXYNQ.js} +2 -2
- package/dist/{chunk-XSWYJCAK.js → chunk-ZF5KHH7C.js} +2 -2
- package/dist/chunk-ZOHS7AQV.js +21 -0
- package/dist/{chunk-7U2YQSDE.js → chunk-ZTI4SBFV.js} +2 -2
- package/dist/cli-main.js +2 -2
- package/dist/code-MI6F2TTU.js +2 -0
- package/dist/code-result-json-FXALY4HE.js +2 -0
- package/dist/{command-descriptors-ORNTVNYV.js → command-descriptors-P34VABY5.js} +136 -135
- package/dist/dataflow-4KEMJPC6.js +2 -0
- package/dist/dependence-slice-R7FPWD5M.js +2 -0
- package/dist/deps-7EMQUYUT.js +2 -0
- package/dist/direct-navigation-6YO234F2.js +3 -0
- package/dist/entry-map-KOOLR26E.js +2 -0
- package/dist/files-OPIPJIGZ.js +2 -0
- package/dist/hierarchy-QPD2CAER.js +2 -0
- package/dist/imports-M6HUXRXC.js +2 -0
- package/dist/index.js +1 -1
- package/dist/members-I5MEFOCT.js +2 -0
- package/dist/methods-5JYGGHXA.js +2 -0
- package/dist/output-continuation-command-UPQAAKBP.js +3 -0
- package/dist/postinstall.js +1 -1
- package/dist/project-reindex-UKKQ5PLS.js +3 -0
- package/dist/queries/affected.js +1 -1
- package/dist/queries/anchors.js +1 -1
- package/dist/queries/architecture.js +1 -1
- package/dist/queries/bottlenecks.js +1 -1
- package/dist/queries/by-kind.js +1 -1
- package/dist/queries/call-graph.js +1 -1
- package/dist/queries/change-surface.js +1 -1
- package/dist/queries/cleanup-plan.js +1 -1
- package/dist/queries/co-change.js +1 -1
- package/dist/queries/code.js +1 -1
- package/dist/queries/complexity-hotspots.js +1 -1
- package/dist/queries/complexity.js +1 -1
- package/dist/queries/context.js +1 -1
- package/dist/queries/convergence.js +1 -1
- package/dist/queries/coupling.js +1 -1
- package/dist/queries/cycles.js +1 -1
- package/dist/queries/dataflow.js +1 -1
- package/dist/queries/dead.js +1 -1
- package/dist/queries/decorative-checkers.js +1 -1
- package/dist/queries/deep-chains.js +1 -1
- package/dist/queries/dependence-slice.js +1 -1
- package/dist/queries/dependency-depth.js +1 -1
- package/dist/queries/deps.js +1 -1
- package/dist/queries/diff-impact.d.ts +9 -0
- package/dist/queries/diff-impact.js +1 -1
- package/dist/queries/doc-drift.js +1 -1
- package/dist/queries/drift.js +1 -1
- package/dist/queries/duplicate-bodies.js +1 -1
- package/dist/queries/entry-map.js +1 -1
- package/dist/queries/evidence.js +1 -1
- package/dist/queries/extract-candidates.js +1 -1
- package/dist/queries/fan.js +1 -1
- package/dist/queries/files.js +1 -1
- package/dist/queries/health.js +1 -1
- package/dist/queries/hierarchy.js +1 -1
- package/dist/queries/hotspots.js +1 -1
- package/dist/queries/imports.js +1 -1
- package/dist/queries/incomplete-migration.js +1 -1
- package/dist/queries/index.js +1 -1
- package/dist/queries/isolated.js +1 -1
- package/dist/queries/locality-candidates.js +1 -1
- package/dist/queries/members.js +1 -1
- package/dist/queries/methods.js +1 -1
- package/dist/queries/not-implemented.js +1 -1
- package/dist/queries/outline.js +1 -1
- package/dist/queries/passthrough-candidates.js +1 -1
- package/dist/queries/plan-context.js +1 -1
- package/dist/queries/react-component-duplicates.js +1 -1
- package/dist/queries/react-hook-candidates.js +1 -1
- package/dist/queries/react-large-component-pressure.js +1 -1
- package/dist/queries/recent-duplicates.js +1 -1
- package/dist/queries/redundant-reexports.js +1 -1
- package/dist/queries/reference-neighborhood.js +1 -1
- package/dist/queries/reference-reachability.js +1 -1
- package/dist/queries/refs.js +1 -1
- package/dist/queries/self-audit.js +1 -1
- package/dist/queries/similar-chains.js +1 -1
- package/dist/queries/similar-files.js +1 -1
- package/dist/queries/similar-signatures.js +1 -1
- package/dist/queries/similar.js +1 -1
- package/dist/queries/slice.js +1 -1
- package/dist/queries/source-inspection.js +1 -1
- package/dist/queries/source-search.js +1 -1
- package/dist/queries/stale-abstractions.js +1 -1
- package/dist/queries/surface.js +1 -1
- package/dist/queries/symbols.js +1 -1
- package/dist/queries/system-map.js +1 -1
- package/dist/queries/system.js +1 -1
- package/dist/queries/test-quality.js +1 -1
- package/dist/queries/trace.js +1 -1
- package/dist/queries/twin-ab.js +1 -1
- package/dist/queries/twin-drift.js +1 -1
- package/dist/queries/unused-imports.js +1 -1
- package/dist/queries/unused-params.js +1 -1
- package/dist/queries/value-flow.js +1 -1
- package/dist/queries/vue-component-duplicates.js +1 -1
- package/dist/queries/vue-composable-candidates.js +1 -1
- package/dist/queries/vue-large-view-pressure.js +1 -1
- package/dist/queries/wrapper-candidates.js +1 -1
- package/dist/query-service-server.js +3 -3
- package/dist/refs-PSU4JZZW.js +2 -0
- package/dist/refs-pagination-JG6CJMRC.js +2 -0
- package/dist/reindex-worker.js +25 -25
- package/dist/reindex.d.ts +3 -2
- package/dist/reindex.js +35 -35
- package/dist/runtime.d.ts +34 -2
- 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-H-n59izO.d.ts → scip-cli-DOerTq-R.d.ts} +42 -4
- package/dist/slice-HYRATV64.js +2 -0
- package/dist/surface-VTGDYWF5.js +2 -0
- package/dist/symbol-resolution-WD5EU5JE.js +2 -0
- package/dist/system-LRQNFOR2.js +2 -0
- package/dist/trace-F4B6OLL4.js +2 -0
- package/dist/typescript-mailbox-worker.js +1 -1
- package/dist/value-flow-VRPZY72V.js +2 -0
- package/dist/watch-server.js +3 -3
- package/package.json +1 -1
- package/dist/by-kind-4IYG2SKW.js +0 -2
- package/dist/call-graph-WQNXMNNN.js +0 -2
- package/dist/chunk-2BTJALUS.js +0 -454
- package/dist/chunk-3QXC54FQ.js +0 -3
- package/dist/chunk-42W3LFUK.js +0 -13
- package/dist/chunk-4GAQ6FI4.js +0 -43
- package/dist/chunk-6VEFRPTD.js +0 -5
- package/dist/chunk-7C26EKLZ.js +0 -4
- package/dist/chunk-7JYHQAH2.js +0 -22
- package/dist/chunk-7KSO2OAP.js +0 -2
- package/dist/chunk-AK3PYTIK.js +0 -5
- package/dist/chunk-AMIMMNA4.js +0 -11
- package/dist/chunk-AUY5BL74.js +0 -2
- package/dist/chunk-BDHFVH2M.js +0 -18
- package/dist/chunk-BECZLYNU.js +0 -8
- package/dist/chunk-BYDAFMSR.js +0 -57
- package/dist/chunk-BZYSGZRK.js +0 -2
- package/dist/chunk-C7IJMOFP.js +0 -134
- package/dist/chunk-CBBHFNLX.js +0 -2
- package/dist/chunk-D35XIZGN.js +0 -2
- package/dist/chunk-DKM723YF.js +0 -79
- package/dist/chunk-E44IVWIJ.js +0 -367
- package/dist/chunk-EDMB6SSO.js +0 -7
- package/dist/chunk-EETGXQY7.js +0 -3
- package/dist/chunk-FKGQOTKD.js +0 -2
- package/dist/chunk-GH5YSGZL.js +0 -5
- package/dist/chunk-HCVJR2V4.js +0 -3
- package/dist/chunk-HXOU4XNH.js +0 -3
- package/dist/chunk-IMKZEXZG.js +0 -2
- package/dist/chunk-ISIQLPJ2.js +0 -61
- package/dist/chunk-IXESDH3J.js +0 -2
- package/dist/chunk-JT6XX7QY.js +0 -8
- package/dist/chunk-MHIEP7EG.js +0 -4
- package/dist/chunk-OJNK5ALA.js +0 -2
- package/dist/chunk-OXYAWIEA.js +0 -2
- package/dist/chunk-OZETODHH.js +0 -2
- package/dist/chunk-PBUH2P5S.js +0 -3
- package/dist/chunk-PLYUVM4F.js +0 -2
- package/dist/chunk-Q7GBK5T7.js +0 -81
- package/dist/chunk-QWKHW6VZ.js +0 -2
- package/dist/chunk-RPL3ARU7.js +0 -16
- package/dist/chunk-SVHTMVA4.js +0 -4
- package/dist/chunk-T6QD2ZQB.js +0 -43
- package/dist/chunk-TD7VKJ2Y.js +0 -117
- package/dist/chunk-TUSPIVZ3.js +0 -4
- package/dist/chunk-UT7TADJX.js +0 -2
- package/dist/chunk-VUSKPCUB.js +0 -2
- package/dist/chunk-WN3TCGJ4.js +0 -2
- package/dist/chunk-WSLEJSFR.js +0 -2
- package/dist/chunk-WYZIHUPZ.js +0 -16
- package/dist/chunk-XE33FV5W.js +0 -2
- package/dist/chunk-Z2AWCTN6.js +0 -2
- package/dist/chunk-ZOXKSQQB.js +0 -2
- package/dist/code-EQJFDT6I.js +0 -2
- package/dist/code-result-json-7UWIWBOO.js +0 -2
- package/dist/dataflow-6VL54GX5.js +0 -2
- package/dist/dependence-slice-DT2NUHD2.js +0 -2
- package/dist/deps-DB7H5IKC.js +0 -2
- package/dist/direct-navigation-O3LUAYWQ.js +0 -3
- package/dist/entry-map-6K62RV3D.js +0 -2
- package/dist/files-MSLD7MO6.js +0 -2
- package/dist/hierarchy-IVBXAKFA.js +0 -2
- package/dist/imports-FRAVZ3Y2.js +0 -2
- package/dist/members-KJOJDYGO.js +0 -2
- package/dist/methods-2AYABBT3.js +0 -2
- package/dist/output-continuation-command-JHMPH6NC.js +0 -3
- package/dist/project-reindex-HYO4WD7Z.js +0 -3
- package/dist/refs-ARMA6XUJ.js +0 -2
- package/dist/refs-pagination-VUGIWN6U.js +0 -2
- package/dist/slice-YOB5YFAM.js +0 -2
- package/dist/surface-VY5EFWTW.js +0 -2
- package/dist/symbol-resolution-DGQN4XIV.js +0 -2
- package/dist/system-2KQ3QD2P.js +0 -2
- package/dist/trace-HTIPTXAE.js +0 -2
- package/dist/value-flow-5FV3VQI7.js +0 -2
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import{a as be}from"./chunk-YXPUP5G2.js";import{b as H,c as on,d as an,e as we,g as ut}from"./chunk-DRENNWRG.js";import{b as Yt,c as U,d as xe,f as Zt,g as en,h as tn,i as nn,j as rn,k as sn,q as de}from"./chunk-RTQ7NEKG.js";import{a as Gt,c as N,d as ue,e as Xt,f as pe}from"./chunk-IW5XQG5G.js";import{a as at,b as ct,e as lt}from"./chunk-HGFDYOVB.js";import{$ as ve,_ as Re,o as b}from"./chunk-KYSDI3GE.js";import{h as De}from"./chunk-7F45LJKI.js";var Ae=null;function Ne(e){Ae?.(e)}function oc(e,t){let n=Ae;Ae=e;try{return t()}finally{Ae=n}}var Ar=N("source-text",{clearGroups:["whole-project","source-file"]}),jr=N("source-lines",{clearGroups:["whole-project","source-file"]});function _(e,t){let n=t.replace(/\\/g,"/");return Ne(n),Ar.get(e,n,()=>Or(e,n))}function Or(e,t){let n=t.replace(/\\/g,"/");Ne(n);try{return Re(e.config.projectRoot,n,{inputKind:"indexed source file"})}catch(r){if(ve(r))return"";throw r}}function pc(e){if(e.length===0)return[];let t=e.split(`
|
|
2
|
+
`);return e.endsWith(`
|
|
3
|
+
`)&&t.pop(),t}function pt(e,t){let n=t.replace(/\\/g,"/");return jr.get(e,n,()=>{let r=_(e,n);return r?r.split(`
|
|
4
|
+
`):[]})}var Mr=/^\s*(?:\/\/|#|\/\*+|\*)\s*scip-query[\s:-]*ignore(?:[\s:-]+(dead(?:-code)?|stale|wrapper|passthrough|drift|extract|similar|twin))?\b/i;function $r(e){let t=Mr.exec(e);return t?t[1]??"":null}function dc(e,t,n){return Br(e,t,n).length>0}function Br(e,t,n){if(n<=0)return[];let r=pt(e,t);if(r.length===0)return[];let s=[];for(let i=n-1;i>=0&&i>=n-5;i-=1){let o=(r[i]??"").trim();if(o==="")continue;let a=$r(o);if(a!==null){s.push(a);continue}if(!o.startsWith("//")&&!o.startsWith("*")&&!o.startsWith("/*")&&!o.startsWith("@")&&!o.startsWith("#"))return s}return s}import{extname as cn}from"path";var Vr={".rs":"rust",".ts":"typescript",".mts":"typescript",".cts":"typescript",".tsx":"tsx",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".py":"python",".pyi":"python",".java":"java",".kt":"kotlin",".kts":"kotlin",".scala":"scala",".sc":"scala",".rb":"ruby",".c":"c",".h":"c",".cc":"cpp",".cpp":"cpp",".cxx":"cpp",".hpp":"cpp",".hh":"cpp",".hxx":"cpp",".cs":"csharp",".php":"php",".vb":"vb",".clj":"clojure",".cljs":"clojure",".cljc":"clojure"};function z(e){return Vr[cn(e).toLowerCase()]??null}function q(e){return cn(e).toLowerCase()===".vue"}var Wr=[S("source-facts",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/source/source-facts.ts"}),S("file-definitions",{dependsOn:["content-hash","project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","relativePath","contentHash","projectFingerprint","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/symbols/definition-catalog.ts"}),S("definition-exclusions",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/analysis/framework-patterns.ts"}),S("doc-path-tokens",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/storage/evidence-products.test.ts",owner:"tests/storage/evidence-cache.test.ts"}),S("doc-path-evidence",{dependsOn:["content-hash","git-history","git-head","tool-version"],keyParts:["kind","relativePath","contentHash","trackedFiles","historyWindow","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/queries/cleanup/doc-drift.ts"}),S("source-imports",{dependsOn:["content-hash","import-resolution-fingerprint","config","tool-version"],keyParts:["kind","relativePath","contentHash","importResolutionFingerprint","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/language-parsers/index.ts"}),S("source-reexports",{dependsOn:["content-hash","import-resolution-fingerprint","config","tool-version"],keyParts:["kind","relativePath","contentHash","importResolutionFingerprint","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/language-parsers/index.ts"}),S("source-fingerprints",{dependsOn:["content-hash","project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","relativePath","contentHash","projectFingerprint","payloadVersion"],stalenessTest:"tests/symbols/definition-catalog.test.ts",owner:"src/queries/cleanup/similar.ts"}),S("consumer-file-usage",{dependsOn:["content-hash","project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","relativePath","contentHash","projectFingerprint","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/queries/internal/consumer-evidence.ts"}),S("react-component-behavior-profiles",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/source/react-profile.ts"}),S("git-file-adds",{dependsOn:["git-head","git-history","tool-version"],keyParts:["kind","cacheKey","head","historyWindow","payloadVersion"],stalenessTest:"tests/storage/evidence-cache.test.ts",owner:"src/analysis/git-history.ts"}),S("typescript-reference-fragments",{dependsOn:["content-hash","transitive-deps-digest","config","tool-version"],keyParts:["kind","relativePath","semanticIdentity","payloadVersion"],stalenessTest:"tests/semantic/typescript/typescript-reference-fragments.test.ts",owner:"src/semantic/typescript/reference-fragment-shadow.ts"}),S("typescript-import-usage",{dependsOn:["content-hash","transitive-deps-digest","config","tool-version"],keyParts:["kind","relativePath","semanticIdentity","payloadVersion"],stalenessTest:"tests/semantic/typescript/typescript-semantic-provider.test.ts",owner:"src/semantic/shared-primitives.ts"}),S("typescript-signatures",{dependsOn:["content-hash","transitive-deps-digest","config","tool-version"],keyParts:["kind","relativePath","semanticIdentity","payloadVersion"],stalenessTest:"tests/semantic/typescript/typescript-semantic-provider.test.ts",owner:"src/semantic/shared-primitives.ts"}),S("runtime-boundary-http-roles",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/analysis/runtime-boundaries.test.ts",owner:"src/analysis/runtime-boundaries/http-summaries.ts"}),S("runtime-boundary-source-hashes",{dependsOn:["content-hash","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/analysis/runtime-boundaries.test.ts",owner:"src/analysis/runtime-boundaries/graph.ts"}),S("runtime-boundary-direct-extraction",{dependsOn:["content-hash","direct-deps-digest","tool-version"],keyParts:["kind","relativePath","contentHash","payloadVersion"],stalenessTest:"tests/analysis/runtime-boundaries.test.ts",owner:"src/analysis/runtime-boundaries/graph.ts"}),_e("file-dependency-graph",{dependsOn:["project-fingerprint","indexed-language-set","import-resolution-fingerprint","tool-version"],keyParts:["kind","scope","projectFingerprint","payloadVersion"],stalenessTest:"tests/symbols/file-dep-graph.test.ts",owner:"src/symbols/graph/file-dep-graph.ts"}),_e("semantic-import-usage",{dependsOn:["project-fingerprint","indexed-language-set","import-resolution-fingerprint","tool-version"],keyParts:["kind","relativePath","projectFingerprint","language","semanticEngine","payloadVersion"],stalenessTest:"tests/semantic/rust/rust-semantic-cache-gate.test.ts",owner:"src/semantic/shared-primitives.ts"}),_e("semantic-signatures",{dependsOn:["project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","relativePath","symbol","projectFingerprint","language","semanticEngine","payloadVersion"],stalenessTest:"tests/semantic/rust/rust-semantic-cache-gate.test.ts",owner:"src/semantic/shared-primitives.ts"}),_e("health-semantic-prewarm",{dependsOn:["project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","scope","cliVersion","projectFingerprint","payloadVersion"],stalenessTest:"tests/runtime/cli-support.test.ts",owner:"src/runtime/cli-support.ts"}),_e("typescript-hierarchy-targets",{dependsOn:["project-fingerprint","indexed-language-set","tool-version"],keyParts:["kind","definitionSet","projectFingerprint","payloadVersion"],stalenessTest:"tests/semantic/typescript/typescript-semantic-provider.test.ts",owner:"src/semantic/typescript/ts-morph-provider.ts"})];function Y(e){let t=new Map;return{kind:e.kind,read(n,r,s){let i=!1,o=0,a;if(at()){let c=xe(n);if(c){let l=`${c}\0${r}\0${s}`;a=t.get(l),a||(a=ct(["evidence-product-file-read-v1",e.kind,c,r,s]),t.set(l,a))}}return lt("evidence-product.file.read",()=>{let c=Zt(n,e.kind,r,s);if(c===null)return null;o=c.length;try{let l=e.deserialize(c);return i=l!==null,l}catch{return null}},()=>({...a?{workIdentity:a,workOutcome:"computed"}:{},scope:"file",kind:e.kind,available:!0,hit:i,payloadBytes:o}))},has(n,r,s){return en(n,e.kind,r,s)},write(n,r,s,i){tn(n,e.kind,r,s,e.serialize(i))},writeBatch(n,r){nn(n,r.map(s=>({kind:e.kind,relativePath:s.relativePath,contentHash:s.contentHash,payload:e.serialize(s.value)})))}}}function bc(e){let t=new Map;return{kind:e.kind,read(n,r,s){let i=!1,o=0,a;if(at()){let c=`${s}\0${r}`;a=t.get(c),a||(a=ct(["evidence-product-project-read-v1",e.kind,s,r]),t.set(c,a))}return lt("evidence-product.project.read",()=>{let c=rn(n,e.kind,r,s);if(c===null)return null;o=c.length;try{let l=e.deserialize(c);return i=l!==null,l}catch{return null}},()=>({...a?{workIdentity:a,workOutcome:"computed"}:{},scope:"project",kind:e.kind,available:!0,hit:i,payloadBytes:o}))},write(n,r,s,i){sn(n,e.kind,r,s,e.serialize(i))}}}function Z(e){let t=Wr.find(n=>n.kind===e);if(!t)throw new Error(`missing evidence product manifest entry for ${e}`);return t.invalidation}function S(e,t){return{scope:"file",kind:e,invalidation:{scope:"file",...t}}}function _e(e,t){return{scope:"project",kind:e,invalidation:{scope:"project",...t}}}import{createRequire as Qr}from"module";import{setFlagsFromString as ln}from"v8";import{runInNewContext as Ur}from"vm";var ee;function Hr(){if(ee!==void 0)return ee;let e=globalThis.gc;if(typeof e=="function")return ee=e,ee;try{ln("--expose_gc");let t=Ur("gc");ln("--no-expose_gc"),ee=typeof t=="function"?t:null}catch{ee=null}return ee}function zr(){let e=Hr();return e?(e(),!0):!1}var qr=512*1024*1024,dt=0;function un(e,t=zr){!Number.isFinite(e)||e<=0||(dt+=e,!(dt<qr)&&(dt=0,t()))}var I=Qr(import.meta.url),je=null,pn=!1;function Jr(){if(pn)return null;if(je)return je;try{return je=I("tree-sitter"),je}catch{return pn=!0,null}}var dn=new Map,Oe=new Set;function Kr(e){if(Oe.has(e))return null;let t=dn.get(e);if(t)return t;let n;try{switch(e){case"rust":n=I("tree-sitter-rust");break;case"typescript":n=I("tree-sitter-typescript").typescript;break;case"tsx":n=I("tree-sitter-typescript").tsx;break;case"javascript":n=I("tree-sitter-javascript");break;case"python":n=I("tree-sitter-python");break;case"java":n=I("tree-sitter-java");break;case"kotlin":n=I("tree-sitter-kotlin");break;case"scala":n=I("tree-sitter-scala");break;case"ruby":n=I("tree-sitter-ruby");break;case"c":n=I("tree-sitter-c");break;case"cpp":n=I("tree-sitter-cpp");break;case"csharp":n=I("tree-sitter-c-sharp");break;case"php":n=I("tree-sitter-php").php;break;case"vb":{let r=I("tree-sitter-vb-dotnet");n=r.language??r;break}case"clojure":return Oe.add(e),null}}catch{return Oe.add(e),null}return dn.set(e,n),n}var fn=new Map;function Gr(e){let t=fn.get(e);if(t)return t;let n=Kr(e);if(!n)return null;let r=Jr();if(!r)return null;let s=new r;try{s.setLanguage(n)}catch{return Oe.add(e),null}return fn.set(e,s),s}function Xr(e,t){return e.parse(r=>r>=t.length?null:t.slice(r,Math.min(t.length,r+16384)))}var Yr=24;function Ie(e,t){let n=Gr(e);if(!n)return null;try{let r=Xr(n,t);return un(t.length*Yr),r}catch{return null}}import{createRequire as Zr}from"module";import{posix as ft}from"path";var Rc=Xt("vue-sfc-units"),es=Zr(import.meta.url),ts;function ns(){return ts??=es("@vue/compiler-sfc")}function rs(...e){return ns().parse(...e)}function ss(e){return e.replace(/\\/g,"/").replace(/^\.\//,"")}function is(e){let t=e?.toLowerCase();return!t||t==="js"||t==="javascript"||t==="jsx"?"javascript":t==="ts"||t==="typescript"?"typescript":t==="tsx"?"tsx":null}function yn(e,t,n){let r={relativePath:t,template:null,scripts:[],styles:[],customBlocks:[],errors:[]};if(!n)return r;let s;try{s=rs(n,{filename:t})}catch(o){return r.errors.push(gn(o)),r}r.errors.push(...s.errors.map(gn));let{descriptor:i}=s;return i.template&&(r.template=Me(e,t,"template",i.template)),i.script&&r.scripts.push(mn(e,t,i.script,!1)),i.scriptSetup&&r.scripts.push(mn(e,t,i.scriptSetup,!0)),r.styles=i.styles.map(o=>Me(e,t,"style",o)),r.customBlocks=i.customBlocks.map(o=>Me(e,t,"custom",o)),r.errors.push(...[r.template,...r.scripts,...r.styles,...r.customBlocks].flatMap(o=>o?.errors??[])),r}function mn(e,t,n,r){let s=Me(e,t,"script",n);return{...s,kind:"script",setup:r,astLanguage:is(s.lang)}}function Me(e,t,n,r){let s=as(r.attrs),i=typeof s.lang=="string"?s.lang:null,o=typeof s.src=="string"?s.src:typeof r.src=="string"?r.src:void 0;if(o){let c=os(t,o);if(!c)return{kind:n,ownerPath:t,sourcePath:t,external:!0,src:o,attrs:s,lang:i,body:"",startLine:0,endLine:0,errors:[`Could not resolve Vue ${n} block source: ${o}`]};let l=_(e,c),u=l?Math.max(0,l.split(`
|
|
5
|
+
`).length-1):0;return{kind:n,ownerPath:t,sourcePath:c,external:!0,src:o,attrs:s,lang:i,body:l,startLine:0,endLine:u,errors:l?[]:[`Vue ${n} block source not found: ${c}`]}}let a=Math.max(0,r.loc.start.line-1);return{kind:n,ownerPath:t,sourcePath:t,external:!1,attrs:s,lang:i,body:r.content,startLine:a,endLine:Math.max(a,r.loc.end.line-1),errors:[]}}function os(e,t){let n=t.split(/[?#]/,1)[0];if(!n||n.startsWith("/")||n.includes("://"))return null;let r=ss(ft.normalize(ft.join(ft.dirname(e),n)));return r===".."||r.startsWith("../")?null:r}function as(e){return{...e}}function gn(e){return e instanceof Error?e.message:String(e)}function Ce(e,t,n){let s=yn(e,t,n).scripts.filter(o=>o.astLanguage&&o.body.length>0),i=s[0]?.astLanguage;return i?{body:s.map(o=>`${`
|
|
6
|
+
`.repeat(o.startLine)}${o.body}`).join(`
|
|
7
|
+
`),startLine:0,language:i}:null}var $e=pe("ast-trees",{clearGroups:["whole-project","source-file"]});function O(e,t){if(q(t))return cs(e,t);let n=z(t);if(!n)return null;let r=_(e,t);return r?$e.get(e,t,r,()=>Ie(n,r)):null}function Be(e,t,n){if(q(t))return $e.get(e,t,n,()=>{let s=Ce(e,t,n);return s?Ie(s.language,`
|
|
8
|
+
`.repeat(s.startLine)+s.body):null});let r=z(t);return r?$e.get(e,t,n,()=>Ie(r,n)):null}function cs(e,t){let n=_(e,t);return n?$e.get(e,t,n,()=>{let r=Ce(e,t,n);if(!r)return null;let s=`
|
|
9
|
+
`.repeat(r.startLine)+r.body;return Ie(r.language,s)}):null}var ls=new Set(["if_statement","conditional_expression","ternary_expression","for_statement","for_in_statement","for_of_statement","while_statement","do_statement","switch_case","case_statement","catch_clause","except_clause","elif_clause","match_arm"]);function hn(e){return ls.has(e.type)?1:e.type==="binary_expression"&&e.parent?.type!=="binary_expression"&&(e.text.includes("&&")||e.text.includes("||"))?us(e.text):0}function us(e){return(e.match(/&&|\|\|/g)??[]).length}function Ee(e){return e.type==="comment"||e.type==="line_comment"||e.type==="block_comment"}var Cn=["function_declaration","generator_function_declaration","method_definition","method_signature","function_signature"],ps=new Set(Cn),ds=[...Cn,"variable_declarator","public_field_definition"],fs=["function_item","function_signature_item"],ms=["function_definition"],gs=[],Sn=new Set(["arrow_function","function_expression","generator_function"]);function En(e){return e==="rust"?fs:e==="python"?ms:e==="typescript"||e==="tsx"||e==="javascript"?ds:gs}function Ve(e,t){let n=hs(e,t);if(n)return{name:n.name,startLine:n.definitionNode.startPosition.row,endLine:n.definitionNode.endPosition.row,paramCount:_n(n.functionNode),params:xn(n.functionNode),paramsEndLine:bn(n.functionNode),isLiteralPassthrough:In(n.functionNode,t),branches:0};if(!ys(e.type,t))return null;let r=e.childForFieldName("name")??e.namedChildren.find(s=>s.type==="identifier"||s.type==="property_identifier");return r?{name:r.text,startLine:e.startPosition.row,endLine:e.endPosition.row,paramCount:_n(e),params:xn(e),paramsEndLine:bn(e),isLiteralPassthrough:In(e,t),branches:0}:null}function kn(e){return e.namedChildren.find(t=>t.type==="parameters"||t.type==="formal_parameters")}function xn(e){let t=kn(e);if(!t)return[];let n=[];for(let r of t.namedChildren){if(Ee(r))continue;if(r.type==="identifier"){n.push({name:r.text,simple:!0});continue}let s=r.namedChildren.some(a=>a.type.endsWith("_modifier"))||/^\s*(?:public|private|protected|readonly|override)\b/.test(r.text),i=r.childForFieldName("pattern");if(!s&&i&&i.type==="identifier"){n.push({name:i.text,simple:!0});continue}let o=r.namedChildren.find(a=>a.type==="identifier");n.push({name:i?.type==="identifier"?i.text:o?.text??"",simple:!1})}return n}function bn(e){let t=kn(e);return t?t.endPosition.row:e.startPosition.row}function ys(e,t){return t==="rust"?e==="function_item"||e==="function_signature_item":t==="python"?e==="function_definition":t==="typescript"||t==="tsx"||t==="javascript"?ps.has(e):!1}function hs(e,t){if(t!=="typescript"&&t!=="tsx"&&t!=="javascript")return null;if(e.type==="variable_declarator"){let n=e.childForFieldName("name")??e.namedChild(0),r=e.childForFieldName("value")??e.namedChild(1);if(!n||!r)return null;let s=Nn(r);return s?{name:n.text,definitionNode:e,functionNode:s}:null}if(e.type==="public_field_definition"){let n=e.childForFieldName("name")??e.namedChild(0),r=e.childForFieldName("value")??e.namedChild(1);if(!n||!r)return null;let s=Nn(r);return s?{name:n.text,definitionNode:e,functionNode:s}:null}return null}function Nn(e){if(Sn.has(e.type))return e;if(e.type!=="call_expression"||(e.childForFieldName("function")??e.namedChild(0))?.type!=="call_expression")return null;let r=((e.childForFieldName("arguments")??e.namedChildren.find(s=>s.type==="arguments"))?.namedChildren??[]).filter(s=>Sn.has(s.type));return r.length===1?r[0]:null}function _n(e){let t=e.namedChildren.find(r=>r.type==="parameters"||r.type==="formal_parameters");if(!t)return 0;let n=0;for(let r of t.namedChildren)Ee(r)||(n+=1);return n}function In(e,t){let n=e.namedChildren.find(p=>p.type==="block"||p.type==="statement_block");if(!n)return!1;let r=n.namedChildren.filter(p=>!Ee(p));if(r.length!==1)return!1;let s=r[0],i=null;if(s.type==="return_statement"||s.type==="expression_statement"?i=s.namedChild(0)??null:t==="rust"&&(s.type==="call_expression"||s.type==="macro_invocation")&&(i=s),!i)return!1;let o=t==="python"?"call":"call_expression";if(i.type!==o)return!1;let a=i.namedChildren.find(p=>p.type==="arguments"||p.type==="argument_list");if(!a)return!1;let c=a.namedChildren.filter(p=>!Ee(p)),l=e.namedChildren.find(p=>p.type==="parameters"||p.type==="formal_parameters");if(!l)return!1;let u=[];for(let p of l.namedChildren){if(p.type==="identifier"){u.push(p.text);continue}let d=p.namedChildren.find(f=>f.type==="identifier");d&&u.push(d.text)}if(c.length!==u.length)return!1;for(let p=0;p<u.length;p+=1){let d=c[p];if(d.type!=="identifier"||d.text!==u[p])return!1}return!0}function zc(e,t){return e.filter(n=>n.startLine<=t&&n.endLine>=t).sort((n,r)=>n.endLine-n.startLine-(r.endLine-r.startLine)||n.startLine-r.startLine)[0]??null}function Pn(e,t){let n=xs(e,t);if(!n)return null;let r=te(n);if(!r)return null;let s=bs(n);return{calleeLeaf:r,calleeQualifier:s?Ss(n):void 0,calleeText:n.text,memberAccess:s,line:e.startPosition.row}}function Ss(e){return(e.childForFieldName("object")??e.childForFieldName("value")??e.namedChild(0)??void 0)?.text||void 0}function xs(e,t){if(t==="rust")return e.type==="call_expression"?e.childForFieldName("function")??e.namedChild(0):e.type==="macro_invocation"?e.childForFieldName("macro")??e.namedChild(0):null;if(t==="python")return e.type!=="call"?null:e.childForFieldName("function")??e.namedChild(0);if(t==="typescript"||t==="tsx"||t==="javascript"){if(e.type==="call_expression")return e.childForFieldName("function")??e.namedChild(0);if(e.type==="new_expression")return e.childForFieldName("constructor")??e.namedChild(0)}return null}function bs(e){switch(e.type){case"field_expression":case"member_expression":case"attribute":return!0;default:return!1}}function te(e){switch(e.type){case"identifier":case"type_identifier":case"field_identifier":case"property_identifier":case"private_property_identifier":case"shorthand_property_identifier":return e.text.replace(/^#/u,"");case"field_expression":case"member_expression":case"attribute":{let t=e.namedChild(e.namedChildCount-1);return t?te(t):null}case"generic_function":{let t=e.childForFieldName("function")??e.namedChild(0);return t?te(t):null}case"scoped_identifier":{let t=e.childForFieldName("name")??e.namedChild(e.namedChildCount-1);return t?te(t):null}case"super":case"self":case"this":return null;default:return null}}var Ns=new Set(["identifier","type_identifier","field_identifier"]),_s=new Set(["identifier"]),Is=new Set(["identifier","property_identifier","type_identifier","shorthand_property_identifier","shorthand_property_identifier_pattern"]),Cs=new Set(["rust","python"]),Es=/\{([^{}]*)\}/g,ks=/\b([A-Za-z_][\w]*)\b/g;function Tn(e,t){return Ps(t).has(e.type)}function Ln(e,t){return Cs.has(t)&&e.type==="string_content"}function mt(e){let t=0;for(let r of e.values()){let s=r[r.length-1];s!==void 0&&s>t&&(t=s)}let n=new Array(t+1);for(let r=0;r<=t;r+=1)n[r]=new Set;for(let[r,s]of e)for(let i of s)n[i].add(r);return n}function Ps(e){return e==="rust"?Ns:e==="python"?_s:Is}function Fn(e,t){let n=e.startPosition.row;for(let r of e.text.matchAll(Es)){let s=r[1]??"";for(let i of s.matchAll(ks))i[1]&&t(i[1],n)}}var Ts=[/\bdefault\s*=\s*"([^"]+)"/g,/\bwith\s*=\s*"([^"]+)"/g,/\bserialize_with\s*=\s*"([^"]+)"/g,/\bdeserialize_with\s*=\s*"([^"]+)"/g,/\bskip_serializing_if\s*=\s*"([^"]+)"/g,/\bgetter\s*=\s*"([^"]+)"/g,/\brename_all_with\s*=\s*"([^"]+)"/g,/\bschema_with\s*=\s*"([^"]+)"/g],Ls=/^#!?\[\s*serde\s*\(/,Fs=/^#!?\[\s*schemars\s*\(/,Ds=/^#!?\[\s*validate\s*\(/,Rs=new Set(["invoke","invokeTauriCommand","listen","once","emit","subscribe","dispatch","sendCommand","callRust"]);function Dn(e,t,n){if(t!=="typescript"&&t!=="tsx"&&t!=="javascript"||e.type!=="call_expression")return;let r=e.childForFieldName("function")??e.namedChild(0);if(!r)return;let s=te(r);if(!s||!Rs.has(s))return;let i=e.namedChildren.find(c=>c.type==="arguments");if(!i)return;let o=i.namedChild(0);if(!o||o.type!=="string")return;let a=o.namedChildren.find(c=>c.type==="string_fragment");a&&n.add(a.text)}function Rn(e,t){let n=Ls.test(e),r=Fs.test(e),s=Ds.test(e);if(!(!n&&!r&&!s))for(let i of Ts){i.lastIndex=0;let o;for(;(o=i.exec(e))!==null;){let a=o[1],c=a.split("::").pop()??a;c==="is_none"&&/\bOption\b/.test(a)||c==="is_empty"&&/\b(String|Vec|HashMap|BTreeMap|HashSet|BTreeSet)\b/.test(a)||c&&t.add(c)}}}function vn(e,t){let n=new Map,r=(o,a)=>{if(o===a)return;let c=n.get(o);c||(c=new Set,n.set(o,c)),c.add(a)},s=t==="python"?new Set(["identifier"]):new Set(["type_identifier"]),i=(o,a)=>{let c=l=>{s.has(l.type)&&l.text!==a&&r(l.text,a);for(let u of l.children)c(u)};for(let l of o.children)c(l)};if(t==="rust")for(let o of e.rootNode.descendantsOfType(["struct_item","enum_item","union_item","type_item"])){let a=o.namedChildren.find(l=>l.type==="type_identifier")?.text;if(!a)continue;let c=o.namedChildren.find(l=>l.type==="field_declaration_list"||l.type==="enum_variant_list"||l.type==="ordered_field_declaration_list");c&&i(c,a),o.type==="type_item"&&i(o,a)}else if(t==="python")for(let o of e.rootNode.descendantsOfType("class_definition")){let a=o.namedChildren.find(u=>u.type==="identifier")?.text;if(!a)continue;let c=o.childForFieldName("superclasses");c&&i(c,a);let l=o.namedChildren.find(u=>u.type==="block");if(l)for(let u of l.descendantsOfType("type"))for(let p of u.descendantsOfType("identifier"))p.text!==a&&r(p.text,a)}else for(let o of e.rootNode.descendantsOfType(["interface_declaration","type_alias_declaration","class_declaration"])){let a=o.namedChildren.find(c=>c.type==="type_identifier")?.text;a&&i(o,a)}return n}var vs=new Map([["defn","function"],["defn-","function"],["defmacro","macro"],["defmacro-","macro"],["defmethod","method"]]),gt=new Set(["catch","comment","def","defprotocol","defrecord","deftype","defmethod","defmacro","defmacro-","defn","defn-","do","doseq","dotimes","fn","for","if","let","loop","ns","quote","recur","throw","try","extend-protocol","extend-type","when","when-let","when-not"]);function wn(e){let t=[],n=[],r=[],s=new Map,i=[],o=0,a=0,c=(l,u)=>{let p=s.get(l);if(!p){s.set(l,[u]);return}p[p.length-1]!==u&&p.push(u)};for(;a<e.length;){let l=e[a];if(l===`
|
|
10
|
+
`){o+=1,a+=1;continue}if(/\s|,/.test(l)){a+=1;continue}if(l===";"){a=Ue(e,a);continue}if(l==='"'){let m=Pe(e,a,o);o=m.line,a=m.index;continue}if(l==="("||l==="["||l==="{"){i.push({kind:l,startLine:o,endLine:o,headTokens:[],tokens:[],children:[]}),a+=1;continue}if(l===")"||l==="]"||l==="}"){let m=i.pop();m&&(m.endLine=o,ws(m,{callables:t,callSites:n,clojureMembers:r,recordIdentifier:c}),i[i.length-1]?.children.push(m)),a+=1;continue}if(yt(l)){a+=1;continue}let u=o,p=a;for(;a<e.length&&!ht(e[a]);)a+=1;let d=e.slice(p,a);if(!d)continue;let f={text:d,line:u};As(i[i.length-1],f),c(L(d),u)}return{language:"clojure",callables:t,callSites:n,clojureMembers:r,typeContainerMap:new Map,identifierLineMap:s,identifiersByLine:Bs(s),fileIdentifiers:new Set(s.keys()),rustAttrReferencedNames:new Set,crossLanguageDispatchNames:new Set}}function ws(e,t){if(e.kind!=="("||e.headTokens.length===0)return;let n=e.headTokens[0],r=L(n.text),s=vs.get(n.text);if(s){let o=e.headTokens[1];if(o){let a=L(o.text);t.recordIdentifier(a,o.line),t.callables.push({name:a,startLine:e.startLine,endLine:e.endLine,paramCount:0,params:[],paramsEndLine:o.line,isLiteralPassthrough:!1,clojureKind:s})}}if(js(e,t),!r||gt.has(n.text)||gt.has(r)||r.startsWith(":"))return;let i=$s(n.text);t.callSites.push({calleeLeaf:i.leaf,calleeQualifier:i.qualifier,calleeText:i.text,memberAccess:!1,line:n.line})}function As(e,t){e&&(e.headTokens.length<2&&e.headTokens.push(t),e.tokens.length<200&&e.tokens.push(t))}function js(e,t){let n=L(e.tokens[0]?.text??"");if(n==="defprotocol"){let r=L(e.tokens[1]?.text??"");if(!r)return;for(let s of We(e))ke(t,r,"protocol",s,"protocol-method");return}if(n==="defrecord"||n==="deftype"){let r=L(e.tokens[1]?.text??"");if(!r)return;let s=n==="defrecord"?"record":"type",i=n==="defrecord"?"record-method":"type-method";for(let o of We(e))ke(t,r,s,o,i);return}if(n==="extend-type"){let r=L(e.tokens[1]?.text??"");if(!r)return;for(let s of We(e))ke(t,r,"extension",s,"extension-method");return}if(n==="extend-protocol"){let r=L(e.tokens[1]?.text??"");for(let s of We(e)){r&&ke(t,r,"extension",s,"extension-method");let i=Ms(e,s.startLine);i&&i!==r&&ke(t,i,"extension",s,"extension-method")}}}function We(e){return e.children.filter(Os)}function Os(e){if(e.kind!=="(")return!1;let t=L(e.tokens[0]?.text??"");return!!(t&&!gt.has(t)&&!t.startsWith(":"))}function ke(e,t,n,r,s){let i=r.tokens[0],o=L(i?.text??"");!i||!o||(e.recordIdentifier(o,i.line),e.clojureMembers.push({ownerName:t,ownerKind:n,memberName:o,memberKind:s,startLine:r.startLine,endLine:r.endLine}))}function Ms(e,t){let n=null;for(let r=2;r<e.tokens.length;r+=1){let s=e.tokens[r];if(s.line>t)break;let i=L(s.text);i&&!i.startsWith(":")&&(n=i)}return n}function L(e){return e.replace(/^#?['`~@]+/,"").split("/").pop()?.replace(/^\./,"")??""}function $s(e){let t=e.replace(/^#?['`~@]+/,""),n=t.lastIndexOf("/"),r=L(t);if(n<=0)return{leaf:r,text:t};let s=t.slice(0,n);return{leaf:r,qualifier:s,text:t}}function Ue(e,t){let n=t;for(;n<e.length&&e[n]!==`
|
|
11
|
+
`;)n+=1;return n}function Pe(e,t,n){let r=t+1,s=n;for(;r<e.length;){let i=e[r];if(i==="\\"){r+=2;continue}if(i===`
|
|
12
|
+
`&&(s+=1),r+=1,i==='"')break}return{index:r,line:s}}function yt(e){return e==="'"||e==="`"||e==="~"||e==="@"||e==="^"||e==="#"}function ht(e){return/\s|,/.test(e)||e==="("||e===")"||e==="["||e==="]"||e==="{"||e==="}"||e==='"'||e===";"}function Bs(e){let t=[];for(let[n,r]of e)for(let s of r)t[s]??=new Set,t[s].add(n);return t}var An=7,Ws=pe("source-facts",{clearGroups:["whole-project","source-file"]}),St=Y({kind:"source-facts",invalidation:Z("source-facts"),serialize:zs,deserialize:qs});function fe(e,t){return xt(e,t).facts}function xt(e,t){let n=_(e,t);if(!n)return{facts:null};let r=Us(e,t,n);return r?Ws.get(e,t,n,()=>Hs(e,t,r,n)):{facts:null}}function Us(e,t,n){return q(t)?Ce(e,t,n)?.language??null:z(t)}function Hs(e,t,n,r){let s=U(e,t,r),i=St.read(e,t,s);if(i&&i.language===n)return{facts:i};if(n==="clojure"){let c=wn(r);return St.write(e,t,s,c),{facts:c}}let o=O(e,t);if(!o)return{facts:null,unavailable:{language:n,reason:"parser-unavailable"}};let a=Qs(o,n);return St.write(e,t,s,a),{facts:a}}function zs(e){let t={version:An,language:e.language,callables:e.callables,callSites:e.callSites,clojureMembers:e.clojureMembers,typeContainerMap:[...e.typeContainerMap.entries()].map(([n,r])=>[n,[...r]]),identifierLineMap:[...e.identifierLineMap.entries()],rustAttrReferencedNames:[...e.rustAttrReferencedNames],crossLanguageDispatchNames:[...e.crossLanguageDispatchNames]};return JSON.stringify(t)}function qs(e){try{let t=JSON.parse(e);if(t.version!==An||t.language==="clojure"&&(t.clojureMembers===void 0||t.callSites.some(r=>r.calleeText===void 0)))return null;let n=new Map(t.identifierLineMap);return{language:t.language,callables:t.callables,callSites:t.callSites,clojureMembers:t.clojureMembers??[],typeContainerMap:new Map(t.typeContainerMap.map(([r,s])=>[r,new Set(s)])),identifierLineMap:n,identifiersByLine:mt(n),fileIdentifiers:new Set(n.keys()),rustAttrReferencedNames:new Set(t.rustAttrReferencedNames),crossLanguageDispatchNames:new Set(t.crossLanguageDispatchNames)}}catch{return null}}function Qs(e,t){let n=[],r=[],s=new Set,i=new Set,o=new Map,a=(u,p)=>{let d=o.get(u);if(!d){o.set(u,[p]);return}d[d.length-1]!==p&&d.push(p)},c=[],l=u=>{let p=Ve(u,t);p&&(p.branches=0,n.push(p),c.push(p));let d=hn(u);if(d>0)for(let m of c)m.branches=(m.branches??0)+d;let f=Pn(u,t);f&&r.push(f),Dn(u,t,i),t==="rust"&&(u.type==="attribute_item"||u.type==="inner_attribute_item")&&Rn(u.text,s),Tn(u,t)&&a(u.text,u.startPosition.row),Ln(u,t)&&Fn(u,a);for(let m of u.children)l(m);p&&c.pop()};return l(e.rootNode),{language:t,callables:n,callSites:r,clojureMembers:[],typeContainerMap:vn(e,t),identifierLineMap:o,identifiersByLine:mt(o),fileIdentifiers:new Set(o.keys()),rustAttrReferencedNames:s,crossLanguageDispatchNames:i}}var jn=new WeakMap,On=new Set(["call_expression","call","decorator","pair","string","string_literal","template_string","variable_declarator"]);function Js(e,t){let n=Array.isArray(t)?t:[t];if(!n.every(i=>On.has(i)))return e.descendantsOfType(t);let r=Ks(e);return n.length===1?r.get(n[0])??[]:n.flatMap(i=>r.get(i)??[]).sort((i,o)=>i.startIndex-o.startIndex)}function bt(e,t){let n=e.walk(),r=0,s=!1;for(;!s;){if(t(n),n.gotoFirstChild()){r+=1;continue}for(;;){if(r===0){s=!0;break}if(n.gotoNextSibling())break;n.gotoParent(),r-=1}}}function Ks(e){let t=jn.get(e);if(t)return t;let n=new Map;return bt(e,r=>{let s=r.nodeType;if(!On.has(s))return;let i=n.get(s);i?i.push(r.currentNode):n.set(s,[r.currentNode])}),jn.set(e,n),n}function $n(e,t){t(e);for(let n of e.namedChildren)$n(n,t)}var Gs=/(?:function|method|lambda)/u,Mn=new WeakMap;function Xs(e){let t=Mn.get(e);if(t)return t;let n=[];return bt(e,r=>{if(!r.nodeIsNamed)return;let s=r.nodeType;(s==="arrow_function"||Gs.test(s))&&n.push(r.currentNode)}),Mn.set(e,n),n}function Ys(e,t,n){let r=null;for(let s of Xs(e))s.startPosition.row>t||s.endPosition.row<n||(!r||s.endIndex-s.startIndex<r.endIndex-r.startIndex)&&(r=s);return r}function Bn(e,t,n){if(e.startPosition.row>t||e.endPosition.row<n)return null;for(let r of e.namedChildren){let s=Bn(r,t,n);if(s)return s}return e}function Zs(e){let t=e;for(;["as_expression","satisfies_expression","type_assertion","parenthesized_expression"].includes(t.type)&&t.namedChildren.length>0;)t=t.namedChildren[0];return t}function Nt(e){if(e.type==="identifier")return e.text;let t=e.childForFieldName("name")??e.childForFieldName("pattern");return t?Nt(t):e.namedChildren.find(n=>n.type==="identifier")?.text??null}function ei(e){return(e.childForFieldName("parameters")??e.namedChildren.find(n=>/parameters/u.test(n.type)))?.namedChildren.map(Nt)??[]}var Vn=new Set(["rust","typescript","tsx","javascript","python","clojure"]),ti=new Set(["rust","typescript","tsx","javascript","python"]);function _t(e,t){let n=fe(e,t);return!n||!Vn.has(n.language)?null:n.callables.map(r=>({name:r.name,startLine:r.startLine,endLine:r.endLine}))}function ni(e,t){if(!ti.has(t))return null;let n=[];for(let r of e.descendantsOfType([...En(t)])){let s=Ve(r,t);s&&n.push({name:s.name,startLine:s.startLine,endLine:s.endLine})}return n}function ri(e,t){let n=fe(e,t);return!n||!Vn.has(n.language)?null:n.callSites}function Wn(e,t){return e.split(t).filter(Boolean).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}import{createRequire as mi}from"module";import{existsSync as se}from"fs";import{basename as Hn,dirname as k,extname as M,join as F,relative as ne,resolve as x,sep as gi}from"path";import{existsSync as Ct,readdirSync as si,statSync as ii}from"fs";import{join as me,relative as oi}from"path";function Un(e){let t=ai(e)??pi(e);if(!t||t.length===0)return[];let n=[],r=new Set;for(let s of t)for(let i of di(e,s)){if(r.has(i))continue;r.add(i);let o=fi(e,i);o&&n.push(o)}return n}function ai(e){let t=me(e,"pnpm-workspace.yaml");if(!Ct(t))return null;try{return ci(De(t,"pnpm workspace manifest"))}catch{return null}}function ci(e){let t=[],n=!1;for(let r of e.split(/\r?\n/)){let s=li(r);if(!n){/^packages\s*:\s*$/.test(s.trim())&&(n=!0);continue}let i=/^\s+-\s*(.+)$/.exec(s);if(i){let o=ui(i[1].trim());o&&t.push(o);continue}if(s.trim()!=="")break}return t}function li(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ui(e){return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e}function pi(e){let t=me(e,"package.json");if(!Ct(t))return null;try{let n=JSON.parse(De(t,"workspace package manifest"));return n.workspaces?Array.isArray(n.workspaces)?n.workspaces:n.workspaces.packages??[]:null}catch{return null}}function di(e,t){if(!t||t.startsWith("!")||t.includes("node_modules"))return[];if(!t.includes("*")){let o=me(e,t);return It(o)?[o]:[]}let n=t.indexOf("*"),r=t.slice(0,n).replace(/\/$/,""),s=t.slice(n+1).replace(/^\//,""),i=me(e,r||".");return It(i)?si(i).map(o=>me(i,o,s)).filter(It):[]}function It(e){try{return ii(e).isDirectory()}catch{return!1}}function fi(e,t){let n=me(t,"package.json");if(!Ct(n))return null;try{let r=JSON.parse(De(n,"workspace package manifest"));return typeof r.name!="string"||r.name.length===0?null:{name:r.name,relativeDir:oi(e,t).replace(/\\/g,"/"),exports:r.exports}}catch{return null}}var yi=ue("indexed-paths",{clearGroups:[]}),hi=ue("indexed-path-digest",{clearGroups:[]}),Si=N("tsconfig-alias-config",{clearGroups:["whole-project"]}),xi=N("tsconfig-alias-config-for-dir",{clearGroups:["whole-project"]}),bi=mi(import.meta.url),Te;function Ni(){if(Te!==void 0)return Te;try{Te=bi("typescript")}catch{Te=null}return Te}var _i=["tsconfig.json","tsconfig.app.json","tsconfig.node.json","tsconfig.base.json"],Ii=ue("workspace-packages",{clearGroups:["whole-project"]}),re=[".ts",".tsx",".mts",".cts",".js",".jsx",".mjs",".cjs",".vue"],He=[".py",".pyi"],P=[".java",".scala",".kt",".kts"],ze=[".rs"],qe=[".rb"],Qe=[".c",".h",".cc",".cpp",".cxx",".hpp",".hh",".hxx"],Q=[".cs",".vb"],Je=[".dart"],ie=[".php"],ge=[".clj",".cljs",".cljc"],Ci=new Set(re),Et=new Set(He),zn=new Set(P),kt=new Set(ze),Pt=new Set(qe),qn=new Set(Qe),Qn=new Set(Q),Tt=new Set(Je),Jn=new Set(ie),Kn=new Set(ge),Ei=[{extensions:re,lookup:Ci},{extensions:He,lookup:Et},{extensions:P,lookup:zn},{extensions:ze,lookup:kt},{extensions:qe,lookup:Pt},{extensions:Qe,lookup:qn},{extensions:Q,lookup:Qn},{extensions:Je,lookup:Tt},{extensions:ie,lookup:Jn},{extensions:ge,lookup:Kn}];function $(e,t){return t.has(M(e).toLowerCase())}function ki(e){return $(e,Et)}function Pi(e){return $(e,zn)}function Ti(e){return $(e,kt)}function Li(e){return $(e,Pt)}function Fi(e){return $(e,qn)}function Di(e){return $(e,Qn)}function Gn(e){return M(e).toLowerCase()===".vb"}function Ri(e){return $(e,Tt)}function vi(e){return $(e,Jn)}function wi(e){return $(e,Kn)}function Lt(e){let t=M(e).toLowerCase();for(let n of Ei)if(n.lookup.has(t))return n.extensions;return re}function Ai(e){return Pi(e)||Di(e)||vi(e)}function J(e,t,n){return ki(t)?ye(e,t,n):Ti(t)?B(e,t,n):Li(t)?Ke(e,t,n):Fi(t)?Ge(e,t,n):Ai(t)?y(e,n.replace(/\\/g,"."),Lt(t)):Ri(t)?Xe(e,t,n):wi(t)?Ft(e,n):ji(e,t,n)}function ji(e,t,n){if(!n.startsWith(".")&&!n.startsWith("/"))return Oi(e,t,n)??$i(e,n);let r=k(F(e.config.projectRoot,t)),s=x(r,n),i=V(e);for(let o of Rt(s)){let a=b(ne(e.config.projectRoot,o));if(i.has(a)||se(o))return a}return b(ne(e.config.projectRoot,s))}function Oi(e,t,n){let r=zi(e,t);if(!r)return null;let s=V(e);for(let i of Mi(r,n)){let o=x(r.baseUrl,i);for(let a of Rt(o)){let c=b(ne(e.config.projectRoot,a));if(s.has(c)||se(a))return c}}return null}function Mi(e,t){let n=[];for(let[r,s]of Object.entries(e.paths)){let i=r.indexOf("*");if(i===-1){if(t!==r)continue;n.push(...s);continue}let o=r.slice(0,i),a=r.slice(i+1);if(!t.startsWith(o)||!t.endsWith(a)||t.length<o.length+a.length)continue;let c=t.slice(o.length,t.length-a.length);for(let l of s)n.push(l.includes("*")?l.replace("*",c):l)}return n}function $i(e,t){let n=Vi(Bi(e),t);if(!n)return null;let r=V(e);for(let s of Wi(n)){let i=x(e.config.projectRoot,n.pkg.relativeDir,s);for(let o of Rt(i)){let a=b(ne(e.config.projectRoot,o));if(r.has(a)||se(o))return a}}return null}function Bi(e){return Ii.get(e,()=>Un(e.config.projectRoot))}function Vi(e,t){let n=null;for(let r of e){let s=null;t===r.name?s="":t.startsWith(`${r.name}/`)&&(s=t.slice(r.name.length+1)),s!==null&&(!n||r.name.length>n.pkg.name.length)&&(n={pkg:r,subpath:s})}return n}function Wi(e){let t=[],n=Ui(e.pkg.exports,e.subpath);if(n){let r=Hi(n);r&&t.push(r)}return t.push(e.subpath?`src/${e.subpath}`:"src/index"),t}function Ui(e,t){if(!e||typeof e!="object")return null;let n=t===""?".":`./${t}`;return Xn(e[n])}function Xn(e){if(typeof e=="string")return e;if(!e||typeof e!="object")return null;let t=e;for(let n of["types","import","default","require","node"]){let r=Xn(t[n]);if(r)return r}return null}function Hi(e){let t=e.replace(/^\.\//,"");return t.startsWith("dist/")?`src/${t.slice(5)}`:null}function zi(e,t){let n=b(k(t));return xi.get(e,n,()=>qi(e,n))}function qi(e,t){let n=Ni();if(!n)return null;let r=x(e.config.projectRoot),s=x(r,t);for(;s===r||s.startsWith(r+gi);){for(let o of _i){let a=F(s,o);if(!se(a))continue;let c=Si.get(e,a,()=>Qi(n,a));if(c)return c}let i=k(s);if(i===s)break;s=i}return null}function Qi(e,t){try{let n=e.readConfigFile(t,e.sys.readFile);if(n.error||!n.config)return null;let r=e.parseJsonConfigFileContent(n.config,e.sys,k(t)),s=r.options.paths;return!s||Object.keys(s).length===0?null:{baseUrl:r.options.baseUrl?x(k(t),r.options.baseUrl):k(t),paths:s}}catch{return null}}function ye(e,t,n){let r=V(e),s;if(n.startsWith(".")){let i=n.match(/^(\.+)(.*)$/);if(!i)return null;let o=i[1].length,a=i[2].replace(/^\./,""),c=k(F(e.config.projectRoot,t));for(let l=1;l<o;l++)c=k(c);s=a?x(c,a.replace(/\./g,"/")):c}else s=x(e.config.projectRoot,n.replace(/\./g,"/"));for(let i of Ji(s)){let o=b(ne(e.config.projectRoot,i));if(r.has(o)||se(i))return o}return null}function B(e,t,n){if(!n)return null;let r=n.replace(/\s+as\s+.+$/,"").trim();if(!r.startsWith("crate::")&&!r.startsWith("self::")&&!r.startsWith("super::"))return null;let s=k(F(e.config.projectRoot,t)),i;return r.startsWith("crate::")?i=x(e.config.projectRoot,"src",r.slice(7).replace(/::/g,"/")):r.startsWith("self::")?i=x(s,r.slice(6).replace(/::/g,"/")):i=x(k(s),r.slice(7).replace(/::/g,"/")),Dt(e,Ki(i))}function Ke(e,t,n){let r=k(F(e.config.projectRoot,t)),s=x(r,n);return Dt(e,Gi(s))}function Ge(e,t,n){let r=k(F(e.config.projectRoot,t)),s=[x(r,n),x(e.config.projectRoot,n),x(e.config.projectRoot,"include",n),x(e.config.projectRoot,"src",n)];return Dt(e,s)}function y(e,t,n){let r=V(e),s=t.replace(/\\/g,".").replace(/::/g,".").replace(/^global::/,""),i=s.replace(/\./g,"/"),o=s.split(".").pop()??s;for(let c of n){let l=`${i}${c}`,u=[...r].find(p=>p.endsWith(l));if(u)return u}for(let c of n){let l=[...r].find(u=>Hn(u)===`${o}${c}`);if(l)return l}let a=[...r].filter(c=>n.includes(M(c).toLowerCase())).filter(c=>c.includes(`/${i}/`)||c.includes(`/${o}/`)).sort((c,l)=>c.localeCompare(l));return a.length===1?a[0]:null}function Xe(e,t,n){let r=V(e);if(n.startsWith("package:")){let o=n.slice(8),a=o.indexOf("/");if(a<0)return null;let c=o.slice(a+1),l=b(c.startsWith("lib/")?c:`lib/${c}`);return r.has(l)?l:null}let s=k(F(e.config.projectRoot,t)),i=x(s,n);for(let o of Xi(i)){let a=b(ne(e.config.projectRoot,o));if(r.has(a)||se(o))return a}return null}function Ft(e,t){let n=t.replace(/-/g,"_").replace(/\./g,"/"),r=V(e);for(let s of ge){let i=`${n}${s}`,o=[...r].find(a=>a.endsWith(i));if(o)return o}for(let s of ge){let i=[...r].find(o=>Hn(o)===`${n.split("/").pop()}${s}`);if(i)return i}return null}function Ji(e){let t=M(e);return Et.has(t)?[e]:[`${e}.py`,`${e}.pyi`,F(e,"__init__.py"),F(e,"__init__.pyi")]}function Dt(e,t){let n=V(e);for(let r of t){let s=b(ne(e.config.projectRoot,r));if(n.has(s)||se(r))return s}return null}function Ki(e){let t=M(e);return kt.has(t)?[e]:[`${e}.rs`,F(e,"mod.rs")]}function Gi(e){let t=M(e);return Pt.has(t)?[e]:[`${e}.rb`,F(e,"index.rb")]}function Xi(e){let t=M(e);return Tt.has(t)?[e]:[`${e}.dart`,e]}function Rt(e){let t=M(e),n=new Set;if(t){n.add(e);for(let r of re)n.add(e.slice(0,-t.length)+r)}else for(let r of re)n.add(`${e}${r}`),n.add(F(e,`index${r}`));return[...n]}function V(e){return yi.get(e,()=>new Set(be(e,{includeIgnored:!1}).map(b)))}function vt(e){return hi.get(e,()=>Yt([...V(e)].sort().join(`
|
|
13
|
+
`)))}function Yi(e,t,n={}){let r=fe(e,t);if(!r)return[];let s=[];if(n.includeCrossLanguageDispatchNames)for(let i of r.crossLanguageDispatchNames)s.push({name:i,kind:"cross-language-dispatch",occurrences:1});if(n.includeRustAttributeNames&&r.language==="rust")for(let i of r.rustAttrReferencedNames)s.push({name:i,kind:"rust-attribute",occurrences:1});return s}import{basename as Yn}from"path";function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zi(e){return e.replace(/'''[\s\S]*?'''/g,K).replace(/"""[\s\S]*?"""/g,K).replace(/#.*$/gm,K).replace(/\/\/.*$/gm,K).replace(/\/\*[\s\S]*?\*\//g,K).replace(/`(?:\\[\s\S]|[^`])*`/g,K).replace(/'(?:\\.|[^'\\\r\n])*'/g,K).replace(/"(?:\\.|[^"\\\r\n])*"/g,K)}function K(e){return e.replace(/[^\r\n]/g," ")}var eu=pe("stripped-lines",{clearGroups:["whole-project","source-file"]});Gt({name:"stripped-source-singleton",groups:["whole-project","source-file"],clearAll:()=>{Ye=null,Le=""},clearFile:()=>{Ye=null,Le=""}});var Ye=null,Le="";function eo(e){return Ye===e||(Ye=e,Le=Zi(e)),Le}function G(e,t,n){let r=eo(e);return`${r.slice(0,t)}${" ".repeat(n-t)}${r.slice(n)}`}function C(e,t){return new RegExp(`\\b${A(t)}\\b`,"m").test(e)}function he(e,t){let n=new Set,r=new RegExp(`\\b${A(t)}\\s*\\.\\s*([A-Za-z_$][\\w$]*)`,"g");for(let s of e.matchAll(r)){let i=s[1];i&&n.add(i)}return[...n]}function wt(e){let t=0;for(let n of e)n==="("&&(t+=1),n===")"&&(t-=1);return t}var to=new Set(["identifier","type_identifier","property_identifier","shorthand_property_identifier","field_identifier"]);function E(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let i=e[s];(i==="{"||i==="["||i==="(")&&n++,(i==="}"||i==="]"||i===")")&&n--,i===","&&n===0&&(t.push(e.slice(r,s)),r=s+1)}return t.push(e.slice(r)),t}function T(e,t){for(let n of e.namedChildren)if(n.type===t)return n;return null}function h(e,t){let n=new Set,r=(s,i)=>{let o=i||t.has(s.type);!o&&to.has(s.type)&&n.add(s.text);for(let a of s.children)r(a,o)};return r(e.rootNode,!1),n}function w(e,t,n,r,s,i,o){return{importedName:s,localName:i,sourcePath:o??y(e,r,Lt(t)),kind:"named",used:C(n,i),usedMembers:[]}}function g(e,t,n,r,s="named",i={}){return{importedName:e,localName:t,sourcePath:n,kind:s,used:r.has(t),usedMembers:[],isTypeOnly:i.isTypeOnly}}function W(e,t,n,r,s="named",i=[],o={}){return{importedName:e,localName:t,sourcePath:n,kind:s,used:r,usedMembers:i,isTypeOnly:o.isTypeOnly}}function oe(e,t){return{importedName:e,localName:null,sourcePath:t,kind:"side-effect",used:!0,usedMembers:[]}}function ae(e,t,n={}){return{importedName:e,localName:n.localName??null,sourcePath:t,kind:"namespace",used:n.used??!0,usedMembers:n.usedMembers??[],isTypeOnly:n.isTypeOnly}}function D(e,t,n){let r=[];for(let s of e.matchAll(t)){let i=s[0];if(!i||typeof s.index!="number")continue;let o=G(e,s.index,s.index+i.length);for(let a of n(s,o))r.push(a)}return r}function R(e,t,n,r,s){let i=Be(e,t,s);if(i){let o=n(i);if(o)return o}return r()}function Ze(e,t,n,r,s){let i=Be(e,t,s),o=z(t),a=o?n[o]:void 0;return i&&a?a(i):r()}function Zn(e,t,n){return R(e,t,r=>ro(e,t,r),()=>no(e,t,n),n)}function no(e,t,n){return D(n,/^[ \t]*#include\s+[<"]([^">]+)[">]\s*$/gm,(r,s)=>{let i=r[1]?.trim();if(!i)return[];let o=Yn(i).replace(/\.[^.]+$/,"");return[W(i,o,Ge(e,t,i),C(s,o))]})}function ro(e,t,n){let r=h(n,new Set(["preproc_include"])),s=[];for(let i of n.rootNode.descendantsOfType("preproc_include")){let o=null;for(let c of i.namedChildren){if(c.type==="system_lib_string"){o=c.text.replace(/^<|>$/g,"");break}if(c.type==="string_literal"){o=c.namedChildren.find(u=>u.type==="string_content")?.text??c.text.replace(/^"|"$/g,"");break}}if(!o)continue;let a=Yn(o).replace(/\.[^.]+$/,"");s.push(g(o,a,Ge(e,t,o),r))}return s}var so=new Set([":require",":require-macros",":use"]),Ot=String.raw`A-Za-z0-9_$*+!?.<>=-`;function tr(e,t,n){let r=yo(n);if(!r)return[];let s=go(n,r.start,r.end),i=[];for(let o of r.children.slice(2)){if(o.type!=="list"||o.children.length===0)continue;let a=v(o.children[0]);if(a){if(so.has(a)){for(let c of ao(o.children.slice(1)))i.push(...oo(e,c,s));continue}if(a===":import")for(let c of lo(o.children.slice(1)))i.push(c)}}return i}function io(e){return e.type==="list"&&v(e.children[0])==="ns"}function oo(e,t,n){let r=Ft(e,t.namespace),s=t.alias??t.namespace,i=po(n,s),o=[{importedName:t.namespace,localName:s,sourcePath:r,kind:"namespace",used:t.refers.length>0||t.referAll||i.length>0||fo(n,t.namespace),usedMembers:i}];t.referAll&&o.push({importedName:"*",localName:null,sourcePath:r,kind:"side-effect",used:!0,usedMembers:[]});for(let a of t.refers)o.push({importedName:a,localName:a,sourcePath:r,kind:"named",used:mo(n,a),usedMembers:[]});return o}function ao(e){return e.flatMap(t=>et(t,null))}function et(e,t){if(e.type==="atom")return e.text.startsWith(":")?[]:[{namespace:jt(t,e.text),alias:null,refers:[],referAll:!1}];if(e.type==="vector")return e.children.length>0&&v(e.children[0])===null?e.children.flatMap(n=>et(n,t)):co(e,t);if(e.type==="list"&&e.children.length>0){let n=v(e.children[0]);return n?!n||n.startsWith(":")?[]:e.children.slice(1).flatMap(r=>et(r,jt(t,n))):e.children.flatMap(r=>et(r,t))}return[]}function co(e,t){let n=v(e.children[0]);if(!n||n.startsWith(":"))return[];let r={namespace:jt(t,n),alias:null,refers:[],referAll:!1};for(let s=1;s<e.children.length;s+=1){let i=v(e.children[s]);if(!i?.startsWith(":"))continue;let o=e.children[s+1];if((i===":as"||i===":as-alias")&&o){r.alias=v(o),s+=1;continue}i===":refer"&&o&&(v(o)===":all"?r.referAll=!0:(o.type==="vector"||o.type==="list")&&r.refers.push(...o.children.map(v).filter(uo)),s+=1)}return[r]}function lo(e){let t=[];for(let n of e){if(n.type==="atom"){let s=n.text.split(".").pop()??n.text;t.push(W(s,s,null,!0));continue}if(n.type!=="vector")continue;let r=v(n.children[0]);if(r)for(let s of n.children.slice(1)){let i=v(s);i&&t.push(W(`${r}.${i}`,i,null,!0))}}return t}function jt(e,t){return e?`${e}.${t}`:t}function v(e){return e?.type==="atom"?e.text:null}function uo(e){return!!(e&&!e.startsWith(":"))}function po(e,t){let n=new Set,r=new RegExp(`${Mt()}${A(t)}\\s*/\\s*([${Ot}]+)`,"g");for(let s of e.matchAll(r)){let i=s[1];i&&n.add(i)}return[...n]}function fo(e,t){return new RegExp(`${Mt()}${A(t)}\\s*/`,"m").test(e)}function mo(e,t){return new RegExp(`${Mt()}${A(t)}(?![${Ot}])`,"m").test(e)}function Mt(){return`(?<![${Ot}])`}function go(e,t,n){let r="",s=0;for(;s<e.length;){if(s>=t&&s<n){r+=e[s]===`
|
|
14
|
+
`?`
|
|
15
|
+
`:" ",s+=1;continue}let i=e[s];if(i===";"){let o=Ue(e,s);r+=er(e.slice(s,o)),s=o;continue}if(i==='"'){let o=Pe(e,s,0).index;r+=er(e.slice(s,o)),s=o;continue}r+=i,s+=1}return r}function yo(e){let t=0;for(;t<e.length&&(t=$t(e,t),!(t>=e.length));){let n=tt(e,t);if(!n){t+=1;continue}if(io(n.form))return n.form;t=n.index}return null}function tt(e,t){let n=$t(e,t);if(e.startsWith("#?@",n)||e.startsWith("#?",n))return ho(e,n);if(e.startsWith("#_",n)){let s=tt(e,n+2);return s?{form:{type:"atom",text:"",start:n,end:s.index},index:s.index}:null}for(;yt(e[n]);)n+=1;let r=e[n];return r?r==="("?At(e,n,"list",")"):r==="["?At(e,n,"vector","]"):r==="{"?At(e,n,"map","}"):r==='"'?{form:{type:"atom",text:"",start:n,end:Pe(e,n,0).index},index:Pe(e,n,0).index}:xo(e,n):null}function ho(e,t){let n=e.startsWith("#?@",t)?3:2,r=tt(e,t+n);return r?{form:{type:"list",children:r.form.type==="list"||r.form.type==="vector"||r.form.type==="map"?So(r.form.children):[],start:t,end:r.index},index:r.index}:null}function So(e){let t=[];for(let n=0;n<e.length;n+=2){let r=v(e[n]),s=e[n+1];r?.startsWith(":")&&s&&t.push(s)}return t}function At(e,t,n,r){let s=[],i=t+1;for(;i<e.length;){if(i=$t(e,i),e[i]===r)return{form:{type:n,children:s,start:t,end:i+1},index:i+1};let o=tt(e,i);if(!o){i+=1;continue}o.form.type==="atom"&&o.form.text===""||s.push(o.form),i=o.index}return{form:{type:n,children:s,start:t,end:e.length},index:e.length}}function xo(e,t){let n=t;for(;n<e.length&&!ht(e[n]);)n+=1;return{form:{type:"atom",text:e.slice(t,n),start:t,end:n},index:n}}function $t(e,t){let n=t;for(;n<e.length;){let r=e[n];if(/\s|,/.test(r)){n+=1;continue}if(r===";"){n=Ue(e,n);continue}break}return n}function er(e){return e.replace(/[^\r\n]/g," ")}function nr(e,t,n){let r=[];for(let s of n.matchAll(/^[ \t]*import\s+['"]([^'"]+)['"](?:\s+as\s+([A-Za-z_]\w*))?[\s\S]*?;$/gm)){let i=s[1]?.trim(),o=s[2]?.trim()??null,a=s[0];if(!i||!a||typeof s.index!="number")continue;let c=G(n,s.index,s.index+a.length);r.push({importedName:i,localName:o,sourcePath:Xe(e,t,i),kind:o?"namespace":"side-effect",used:o?C(c,o):!0,usedMembers:o?he(c,o):[]})}return r}function rr(e,t,n){let r=[];for(let s of n.matchAll(/^[ \t]*export\s+['"]([^'"]+)['"][\s\S]*?;$/gm)){let i=s[1]?.trim();i&&r.push({specifier:i,sourcePath:Xe(e,t,i)})}return r}function sr(e,t,n){return Ze(e,t,{csharp:r=>No(e,t,r),vb:r=>bo(e,t,r)},()=>{let r=Gn(t)?/^[ \t]*Imports\s+(.+?)\s*$/gm:/^[ \t]*using\s+(.+?)\s*;$/gm;return D(n,r,(s,i)=>{let o=s[1]?.trim();if(!o)return[];let[a,c]=o.split(/\s*=\s*/),l=!!c,u=(l?c:a)?.trim()??o,p=u.split(".").pop()??u,d=l?a?.trim()??p:p;return[w(e,t,i,u,p,d,y(e,u,Q))]})},n)}function bo(e,t,n){let r=h(n,new Set(["imports_statement"])),s=[];for(let i of n.rootNode.descendantsOfType("imports_statement")){let o=i.namedChildren.filter(d=>d.type==="namespace_name");if(o.length===0)continue;let a=o[o.length-1],c=o.length>1?o[0]:null,l=a.text,u=l.split(".").pop()??l,p=c?.text??u;s.push(g(u,p,y(e,l,Q),r,c?"namespace":"named"))}return s}function No(e,t,n){let r=h(n,new Set(["using_directive"])),s=[];for(let i of n.rootNode.descendantsOfType("using_directive")){let o=i.namedChildren;if(o.length===0)continue;let a=null,c;o.length>=2&&o[0].type==="identifier"&&(o[1].type==="qualified_name"||o[1].type==="identifier")?(a=o[0],c=o[1]):c=o[o.length-1];let l=c.text,u=l.split(".").pop()??l,p=a?.text??u;s.push(g(u,p,y(e,l,Q),r,a?"namespace":"named"))}return s}var _o=N("vue-non-script-identifiers",{clearGroups:["whole-project","source-file"]});function ir(e,t){return _o.get(e,t,()=>{let n=new Set,r=_(e,t);if(!r)return n;let i=r.replace(/<script\b[^>]*>[\s\S]*?<\/script>/g,o=>o.replace(/[^\r\n]/g," ")).replace(/<!--[\s\S]*?-->/g,o=>o.replace(/[^\r\n]/g," ")).replace(/\/\*[\s\S]*?\*\//g,o=>o.replace(/[^\r\n]/g," "));for(let o of i.matchAll(/[A-Za-z_$][\w$]*/g))n.add(o[0]);return n})}function Bt(e,t,n){return R(e,t,r=>Co(e,t,r),()=>Io(e,t,n),n)}function Io(e,t,n){return Ao(n).flatMap(r=>jo(e,t,r.clause,r.specifier,r.start,r.end,n))}function Co(e,t,n){let r=Eo(e,t,n),s=[];for(let i of n.rootNode.descendantsOfType("import_statement"))s.push(...ko(e,t,n,i,r));return s}function Eo(e,t,n){let r=h(n,new Set(["import_statement"]));if(q(t))for(let s of ir(e,t))r.add(s);return r}function ko(e,t,n,r,s){let i=Do(r);if(!i)return[];let o=J(e,t,i),a=T(r,"import_clause");return a?Po(n,a,o,s,Ro(r.text)):[oe("*",o)]}function Po(e,t,n,r,s){let i=[];for(let o of t.namedChildren)if(o.type==="identifier")i.push(To(o.text,n,r,s));else if(o.type==="namespace_import"){let a=Lo(e,o,n,r,s);a&&i.push(a)}else o.type==="named_imports"&&i.push(...Fo(o,n,r,s));return i}function To(e,t,n,r){return g("default",e,t,n,"default",{isTypeOnly:r})}function Lo(e,t,n,r,s){let o=T(t,"identifier")?.text??"";if(!o)return null;let a=wo(e,o);return ae("*",n,{localName:o,usedMembers:a,isTypeOnly:s,used:a.length>0||r.has(o)})}function Fo(e,t,n,r){let s=[];for(let i of e.namedChildren){if(i.type!=="import_specifier")continue;let o=i.namedChild(0),a=i.namedChild(1);if(!o)continue;let c=o.text,l=a?.text??c;s.push(g(c,l,t,n,"named",{isTypeOnly:r||vo(i.text)}))}return s}function Do(e){let t=T(e,"string");if(!t)return null;let n=T(t,"string_fragment");return n?n.text:null}function Ro(e){return/^\s*import\s+type\b/.test(e)}function vo(e){return/^\s*type\b/.test(e.trim())}function wo(e,t){let n=new Set;for(let r of e.rootNode.descendantsOfType("member_expression")){let s=r.namedChild(0),i=r.namedChild(1);!s||!i||s.type!=="identifier"||s.text!==t||(i.type==="property_identifier"||i.type==="identifier")&&n.add(i.text)}return[...n]}function Ao(e){let t=[],n=/^[ \t]*import\s+([\s\S]*?)\s+from\s+['"]([^'"]+)['"]\s*;?/gm;for(let s of e.matchAll(n)){let i=s[0],o=s[1],a=s[2];!i||!a||typeof s.index!="number"||t.push({clause:o,specifier:a,start:s.index,end:s.index+i.length})}let r=/^[ \t]*import\s+['"]([^'"]+)['"]\s*;?/gm;for(let s of e.matchAll(r)){let i=s[0],o=s[1];!i||!o||typeof s.index!="number"||t.push({clause:null,specifier:o,start:s.index,end:s.index+i.length})}return t.sort((s,i)=>s.start-i.start)}function jo(e,t,n,r,s,i,o){let a=J(e,t,r),c=G(o,s,i);return n?Oo(n).map(u=>({...u,sourcePath:a})).map(u=>{if(u.kind==="namespace"){let p=he(c,u.localName);return ae(u.importedName,u.sourcePath,{localName:u.localName,usedMembers:p,used:p.length>0||C(c,u.localName),isTypeOnly:u.isTypeOnly})}return u.kind==="side-effect"?oe(u.importedName,u.sourcePath):W(u.importedName,u.localName??"",u.sourcePath,u.localName?C(c,u.localName):!1,u.kind,[],{isTypeOnly:u.isTypeOnly})}):[oe("*",a)]}function Oo(e){let t=e.trim(),n=/^type\b/.test(t),r=t.replace(/^type\s+/,""),[s,i]=Mo(r),o=[];return s&&o.push(...or(s,n)),i&&o.push(...or(i,n)),o}function or(e,t){let n=e.trim();if(!n)return[];if(n.startsWith("{")){let r=n.slice(1,-1).trim();return r?E(r).map(s=>{let i=s.trim(),o=t||/^type\b/.test(i),a=i.replace(/^type\s+/,""),[c,l]=a.split(/\s+as\s+/);return{importedName:c.trim(),localName:(l??c).trim(),kind:"named",isTypeOnly:o}}):[]}return n.startsWith("* as ")?[{importedName:"*",localName:n.slice(5).trim(),kind:"namespace",isTypeOnly:t}]:[{importedName:"default",localName:n,kind:"default",isTypeOnly:t}]}function Mo(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r==="{"&&t++,r==="}"&&t--,r===","&&t===0)return[e.slice(0,n).trim(),e.slice(n+1).trim()]}return[e.trim(),null]}function Vt(e,t,n){let r=O(e,t);return r?Ho(e,t,r):$o(e,t,n)}function $o(e,t,n){return[...Bo(e,t,n),...Vo(e,t,n),...Wo(e,t,n)]}function Bo(e,t,n){let r=[],s=/^[ \t]*export\s+(?:type\s+)?\{([\s\S]*?)\}\s+from\s+['"]([^'"]+)['"]\s*;?/gm;for(let i of n.matchAll(s)){if(typeof i.index!="number")continue;let o=i[1]??"",a=i[2]??"",c=E(o).map(p=>Uo(p.trim())).filter(p=>!!p),l=Se(n,i.index),u=Se(n,i.index+i[0].length-1);r.push({kind:"named",sourcePath:J(e,t,a),names:c,startLine:l,endLine:u})}return r}function Vo(e,t,n){let r=[],s=/^[ \t]*export\s+\*\s+as\s+(\w+)\s+from\s+['"]([^'"]+)['"]\s*;?/gm;for(let i of n.matchAll(s)){if(typeof i.index!="number")continue;let o=i[2]??"",a=Se(n,i.index),c=Se(n,i.index+i[0].length-1);r.push({kind:"star-as",sourcePath:J(e,t,o),names:i[1]?[i[1]]:[],startLine:a,endLine:c})}return r}function Wo(e,t,n){let r=[],s=/^[ \t]*export\s+\*\s+from\s+['"]([^'"]+)['"]\s*;?/gm;for(let i of n.matchAll(s)){if(typeof i.index!="number")continue;let o=i[1]??"",a=Se(n,i.index),c=Se(n,i.index+i[0].length-1);r.push({kind:"star",sourcePath:J(e,t,o),names:[],startLine:a,endLine:c})}return r}function Uo(e){if(!e)return null;let t=e.replace(/^type\s+/,"").trim();if(!t)return null;let n=t.match(/^(\w+)\s+as\s+(\w+)$/);if(n)return n[2]??null;let r=t.match(/^(\w+)$/);return r?r[1]??null:null}function Se(e,t){let n=0;for(let r=0;r<t&&r<e.length;r++)e.charCodeAt(r)===10&&n++;return n}function Ho(e,t,n){let r=[];for(let s of n.rootNode.descendantsOfType("export_statement")){let i=zo(e,t,s);if(i===void 0)continue;let o=s.startPosition.row,a=s.endPosition.row,c=qo(s,i,o,a);r.push(c)}return r}function zo(e,t,n){let r=T(n,"string");if(!r)return;let s=T(r,"string_fragment");if(s)return J(e,t,s.text)}function qo(e,t,n,r){let s=T(e,"export_clause");if(s){let o=[];for(let a of s.namedChildren){if(a.type!=="export_specifier")continue;let c=a.namedChild(0),l=a.namedChild(1);c&&o.push((l??c).text)}return{kind:"named",sourcePath:t,names:o,startLine:n,endLine:r}}let i=T(e,"namespace_export");if(i){let o=i.namedChildren.find(a=>a.type==="identifier"||a.type==="type_identifier")?.text;return{kind:"star-as",sourcePath:t,names:o?[o]:[],startLine:n,endLine:r}}return{kind:"star",sourcePath:t,names:[],startLine:n,endLine:r}}function ar(e,t,n){return Ze(e,t,{java:r=>Qo(e,t,r),kotlin:r=>Jo(e,t,r),scala:r=>Ko(e,t,r)},()=>D(n,/^[ \t]*import\s+(?:static\s+)?(.+?)\s*;?$/gm,(r,s)=>{let i=r[1]?.trim();return i?Go(e,t,i,s):[]}),n)}function Qo(e,t,n){let r=h(n,new Set(["import_declaration"])),s=[];for(let i of n.rootNode.descendantsOfType("import_declaration")){let o=i.children.some(p=>p.type==="asterisk"),c=i.namedChildren.find(p=>p.type==="scoped_identifier")??i.namedChildren.find(p=>p.type==="identifier");if(!c)continue;let l=c.text;if(o){s.push(ae("*",y(e,l,P)));continue}let u=l.split(".").pop()??l;s.push(g(u,u,y(e,l,P),r))}return s}function Jo(e,t,n){let r=h(n,new Set(["import_header","import_list"])),s=[];for(let i of n.rootNode.descendantsOfType("import_header")){let o=i.namedChildren.find(f=>f.type==="identifier");if(!o)continue;let a=i.namedChildren.some(f=>f.type==="wildcard_import"),c=i.namedChildren.find(f=>f.type==="import_alias");if(a){s.push(ae("*",y(e,o.text,P)));continue}let l=o.text,u=l.split(".").pop()??l,d=c?.namedChild(0)?.text??u;s.push(g(u,d,y(e,l,P),r))}return s}function Ko(e,t,n){let r=h(n,new Set(["import_declaration"])),s=[];for(let i of n.rootNode.descendantsOfType("import_declaration")){let o=i.namedChildren.find(p=>p.type==="namespace_selectors"||p.type==="namespace_wildcard"),a=i.namedChildren.filter(p=>p!==o&&(p.type==="identifier"||p.type==="stable_identifier")),c=a.map(p=>p.text).join(".");if(!c)continue;if(o?.type==="namespace_wildcard"){s.push(ae("*",y(e,c,P)));continue}if(o?.type==="namespace_selectors"){for(let p of o.namedChildren)if(p.type==="arrow_renamed_identifier"){let[d,f]=p.namedChildren;if(!d)continue;let m=d.text,ce=f?.text??m;if(m==="_")continue;s.push(g(m,ce,y(e,`${c}.${m}`,P),r))}else if(p.type==="identifier"){let d=p.text;s.push(g(d,d,y(e,`${c}.${d}`,P),r))}continue}let l=a[a.length-1]?.text??c,u=a.slice(0,-1).map(p=>p.text).join(".")||c;s.push(g(l,l,y(e,u&&a.length>1?`${u}.${l}`:c,P),r))}return s}function Go(e,t,n,r){if(n.includes("{")&&n.includes("}")){let s=n.slice(0,n.indexOf("{")).replace(/\.$/,"").trim(),i=n.slice(n.indexOf("{")+1,n.lastIndexOf("}")).trim();return E(i).flatMap(o=>{let a=o.trim();if(!a)return[];let[c,l]=a.includes("=>")?a.split(/\s*=>\s*/):a.split(/\s+as\s+/),u=c?.trim();if(!u||u==="_")return[];let p=(l??u.split(".").pop()??u).trim(),d=u==="_"?s:`${s}.${u}`.replace(/\.\./g,".");return[w(e,t,r,d,u,p)]})}return[w(e,t,r,n,n.split(".").pop()??n,n.split(".").pop()??n)]}function lr(e,t,n){return R(e,t,r=>Xo(e,t,r),()=>D(n,/^[ \t]*use\s+(.+?)\s*;$/gm,(r,s)=>{let i=r[1]?.trim();return i?E(i).flatMap(o=>{let a=o.trim();if(!a)return[];let[c,l]=a.split(/\s+as\s+/i),u=c?.trim()??a,p=u.split("\\").pop()??u,d=(l??p).trim();return[w(e,t,s,u,p,d,y(e,u.replace(/\\/g,"."),ie))]}):[]}),n)}function Xo(e,t,n){let r=h(n,new Set(["namespace_use_declaration"])),s=[],i=(o,a,c)=>{s.push(g(a,c,y(e,o.replace(/\\/g,"."),ie),r))};for(let o of n.rootNode.descendantsOfType("namespace_use_declaration")){let a=o.namedChildren.find(c=>c.type==="namespace_use_group");if(a){let c=o.namedChildren.find(l=>l.type==="namespace_name")?.text??"";for(let l of a.namedChildren){if(l.type!=="namespace_use_clause")continue;let{importedName:u,localName:p,qualified:d}=cr(l,c);u&&i(d,u,p)}continue}for(let c of o.namedChildren){if(c.type!=="namespace_use_clause")continue;let{importedName:l,localName:u,qualified:p}=cr(c,"");l&&i(p,l,u)}}return s}function cr(e,t){let n=e.namedChildren.find(l=>l.type==="qualified_name"),r=e.namedChildren.filter(l=>l.type==="name"),s="";n?s=n.text:r.length>=1&&(s=r[0].text);let i=n&&r.length>0?r[r.length-1]:null,o=s.split("\\").pop()??s,a=i?.text??o,c=t?`${t}\\${s}`:s;return{importedName:o,localName:a,qualified:c}}function pr(e,t,n){return R(e,t,r=>Yo(e,t,r),()=>ea(n).flatMap(r=>na(e,t,r,n)),n)}function Yo(e,t,n){let r=h(n,new Set(["import_statement","import_from_statement"])),s=[];for(let i of n.rootNode.descendantsOfType("import_statement"))for(let o of i.namedChildren){let a=ur(o);if(!a)continue;let c=ye(e,t,a.qualifiedName);s.push({importedName:a.qualifiedName,localName:a.localName,sourcePath:c,kind:"namespace",used:r.has(a.localName),usedMembers:[]})}for(let i of n.rootNode.descendantsOfType("import_from_statement")){let o=i.namedChild(0);if(!o)continue;let a=Zo(o);if(a===null)continue;let c=ye(e,t,a);for(let l=1;l<i.namedChildCount;l+=1){let u=i.namedChild(l);if(u.type==="wildcard_import"){s.push({importedName:"*",localName:null,sourcePath:c,kind:"side-effect",used:!0,usedMembers:[]});continue}let p=ur(u);p&&s.push({importedName:p.qualifiedName,localName:p.localName,sourcePath:c,kind:"named",used:r.has(p.localName),usedMembers:[]})}}return s}function ur(e){if(e.type==="aliased_import"){let t=e.namedChild(0),n=e.namedChild(1);return!t||!n?null:{qualifiedName:t.text,localName:n.text}}if(e.type==="dotted_name"){let t=e.text;return{qualifiedName:t,localName:t.split(".")[0]??t}}return e.type==="identifier"?{qualifiedName:e.text,localName:e.text}:null}function Zo(e){if(e.type==="dotted_name")return e.text;if(e.type==="relative_import"){let t=T(e,"import_prefix")?.text??"",n=T(e,"dotted_name")?.text??"";return`${t}${n}`}return null}function ea(e){let t=e.split(`
|
|
16
|
+
`),n=[],r=0;for(let s=0;s<t.length;s++){let i=t[s],o=i.trimStart(),a=r;if(r+=i.length+1,!o.startsWith("import ")&&!o.startsWith("from "))continue;let c=i,l=a+i.length,u=wt(i);for(;s+1<t.length&&(u>0||c.trimEnd().endsWith("\\"));){s++;let d=t[s];c+=`
|
|
17
|
+
${d}`,l+=1+d.length,u+=wt(d),r+=d.length+1}let p=ta(c);p&&n.push({...p,start:a,end:l})}return n}function ta(e){let t=e.replace(/\\\s*\n/g," ").trim();if(t.startsWith("import "))return{kind:"import",module:null,clause:t.slice(7).trim()};let n=t.match(/^from\s+([.\w]+)\s+import\s+([\s\S]+)$/);if(!n)return null;let r=n[2].trim();return r.startsWith("(")&&r.endsWith(")")&&(r=r.slice(1,-1).trim()),{kind:"from",module:n[1],clause:r}}function na(e,t,n,r){let s=G(r,n.start,n.end),i=n.clause.replace(/\n/g," ").trim();if(n.kind==="import")return E(i).flatMap(c=>{let l=c.trim().replace(/,$/,"");if(!l)return[];let[u,p]=l.split(/\s+as\s+/),d=u.trim(),f=(p??d.split(".")[0]??d).trim(),m=ye(e,t,d),ce=he(s,f);return[{importedName:d,localName:f,sourcePath:m,kind:"namespace",used:C(s,f)||ce.length>0,usedMembers:ce}]});let o=n.module?ye(e,t,n.module):null,a=[];for(let c of E(i)){let l=c.trim().replace(/,$/,"");if(!l)continue;if(l==="*"){a.push({importedName:"*",localName:null,sourcePath:o,kind:"side-effect",used:!0,usedMembers:[]});continue}let[u,p]=l.split(/\s+as\s+/),d=(p??u).trim();a.push({importedName:u.trim(),localName:d,sourcePath:o,kind:"named",used:C(s,d),usedMembers:[]})}return a}import{basename as ra}from"path";function dr(e,t,n){return R(e,t,r=>ia(e,t,r),()=>sa(e,t,n),n)}function sa(e,t,n){return D(n,/^[ \t]*(require_relative|require)\s+["']([^"']+)["']\s*$/gm,(r,s)=>{let i=r[1],o=r[2];if(!i||!o)return[];let a=i==="require_relative"?Ke(e,t,o):null;if(a){let c=fr(o);return[W(c,c,a,C(s,c))]}return[oe(o,a)]})}function ia(e,t,n){let r=h(n,new Set([])),s=[],i=new Set(["require","require_relative","load"]);for(let o of n.rootNode.descendantsOfType("call")){let a=o.namedChild(0);if(!a||a.type!=="identifier"||!i.has(a.text))continue;let l=o.namedChildren.find(f=>f.type==="argument_list")?.namedChild(0);if(!l||l.type!=="string")continue;let p=l.namedChildren.find(f=>f.type==="string_content")?.text;if(!p)continue;let d=a.text==="require_relative"?Ke(e,t,p):null;if(d){let f=fr(p);s.push(g(f,f,d,r))}else s.push(oe(p,d))}return s}function fr(e){return Wn(ra(e).replace(/\.[^.]+$/,""),/_/)}function mr(e,t,n){return R(e,t,r=>oa(e,t,r),()=>D(n,/^[ \t]*use\s+(.+?)\s*;$/gm,(r,s)=>{let i=r[1]?.trim();return i?aa(e,t,i,s):[]}),n)}function oa(e,t,n){let r=h(n,new Set(["use_declaration"])),s=[];for(let i of n.rootNode.descendantsOfType("use_declaration")){let o=i.namedChild(0);if(o)for(let a of Fe(o,"")){if(!a.importedName||a.importedName==="*")continue;let c=B(e,t,a.qualifiedName)??B(e,t,a.qualifiedName.split("::").slice(0,-1).join("::"));s.push(g(a.importedName,a.localName,c,r))}}return s}function Fe(e,t){switch(e.type){case"identifier":case"super":case"crate":{let n=e.text;return[{qualifiedName:nt(t,n),importedName:n,localName:n}]}case"self":{let n=t.split("::").filter(Boolean).pop()??"self";return[{qualifiedName:t||"self",importedName:n,localName:n}]}case"scoped_identifier":{let n=e.text,r=n.split("::").pop()??n;return[{qualifiedName:nt(t,n),importedName:r,localName:r}]}case"scoped_use_list":{let n=e.namedChild(0),r=e.namedChild(1);if(!n||!r)return[];let s=nt(t,n.text),i=[];for(let o of r.namedChildren)i.push(...Fe(o,s));return i}case"use_list":{let n=[];for(let r of e.namedChildren)n.push(...Fe(r,t));return n}case"use_as_clause":{let n=e.namedChild(0),r=e.namedChild(1);if(!n||!r)return[];let s=Fe(n,t),i=r.text;return s.map(o=>({...o,localName:i}))}case"use_wildcard":{let n=e.namedChild(0),r=n?n.text:"";return[{qualifiedName:nt(t,`${r}::*`),importedName:"*",localName:"*"}]}default:return[]}}function nt(e,t){return e?t?`${e}::${t}`:e:t}function aa(e,t,n,r){let s=n.trim();if(s.includes("{")&&s.includes("}")){let u=s.slice(0,s.indexOf("{")).replace(/::$/,"").trim(),p=s.slice(s.indexOf("{")+1,s.lastIndexOf("}")).trim();return E(p).flatMap(d=>{let f=d.trim();if(!f)return[];if(f==="self"){let ot=u.split("::").filter(Boolean).pop();return ot?[w(e,t,r,u,ot,ot)]:[]}let[m,ce]=f.split(/\s+as\s+/),le=m?.trim();if(!le)return[];let vr=(ce??le.split("::").pop()??le).trim(),wr=`${u}::${le}`.replace(/::::/g,"::");return[w(e,t,r,wr,le.split("::").pop()??le,vr,B(e,t,u))]})}let[i,o]=s.split(/\s+as\s+/),a=i?.trim()??s,c=(o??a.split("::").pop()??a).trim(),l=B(e,t,a)??B(e,t,a.split("::").slice(0,-1).join("::"));return[w(e,t,r,a,a.split("::").pop()??a,c,l)]}function gr(e,t,n){let r=O(e,t);if(r)return ca(e,t,r);let s=[];for(let i of n.matchAll(/^[ \t]*pub\s+use\s+(.+?)\s*;$/gm)){let o=i[1]?.trim();o&&s.push(...ua(e,t,o))}return s}function ca(e,t,n){let r=[];for(let s of n.rootNode.descendantsOfType("use_declaration")){if(!la(s))continue;let i=s.namedChildren.find(o=>o.type!=="visibility_modifier");if(i)for(let o of Fe(i,""))o.importedName&&r.push(Wt(e,t,o.qualifiedName))}return r}function la(e){for(let t of e.children)if(t.type==="visibility_modifier"&&t.text.startsWith("pub"))return!0;return!1}function ua(e,t,n){let r=n.trim();if(r.includes("{")&&r.includes("}")){let s=r.slice(0,r.indexOf("{")).replace(/::$/,"").trim(),i=r.slice(r.indexOf("{")+1,r.lastIndexOf("}")).trim();return E(i).flatMap(o=>{let a=o.trim();if(!a||a==="self")return[];let[c]=a.split(/\s+as\s+/),l=`${s}::${c?.trim()??a}`.replace(/::::/g,"::");return[Wt(e,t,l)]})}return[Wt(e,t,r)]}function Wt(e,t,n){return{specifier:n,sourcePath:B(e,t,n)??B(e,t,n.split("::").slice(0,-1).join("::"))}}function X({language:e,extensions:t,imports:n,parseImports:r}){return{language:e,extensions:t,capabilities:{imports:n},parseImports:r}}function yr(e,t){let n=t.toLowerCase();for(let r of e)for(let s of r.extensions)if(n.endsWith(s))return r;return null}var pa={language:"javascript",extensions:re,capabilities:{imports:"ast-with-regex-fallback",reExports:"ast-with-regex-fallback"},parseImports:Bt,parseReExports:Vt},da=X({language:"python",extensions:He,imports:"ast-with-regex-fallback",parseImports:pr}),fa=X({language:"jvm",extensions:P,imports:"ast-dispatch-with-regex-fallback",parseImports:ar}),ma={language:"rust",extensions:ze,capabilities:{imports:"ast-with-regex-fallback",exports:"ast-with-regex-fallback"},parseImports:mr,parseExports:gr},ga=X({language:"ruby",extensions:qe,imports:"ast-with-regex-fallback",parseImports:dr}),ya=X({language:"c/cpp",extensions:Qe,imports:"ast-with-regex-fallback",parseImports:Zn}),ha=X({language:"dotnet",extensions:Q,imports:"ast-dispatch-with-regex-fallback",parseImports:sr}),Sa={language:"dart",extensions:Je,capabilities:{imports:"regex-only",exports:"regex-only"},parseImports:nr,parseExports:rr},xa=X({language:"php",extensions:ie,imports:"ast-with-regex-fallback",parseImports:lr}),ba=X({language:"clojure",extensions:ge,imports:"regex-only",parseImports:tr}),Na=[pa,da,fa,ma,ga,ya,ha,Sa,xa,ba];function rt(e){return yr(Na,e)}var Ut={clearGroups:["whole-project","source-file"]},_a=N("source-imports",Ut),Pp=N("source-exports",Ut),Ia=N("source-reexports",Ut),hr=Y({kind:"source-imports",invalidation:Z("source-imports"),serialize:Ca,deserialize:Ea}),Sr=Y({kind:"source-reexports",invalidation:Z("source-reexports"),serialize:ka,deserialize:Pa});function xr(e,t){let n=b(t);return Ia.get(e,n,()=>{let r=rt(n);if(!r?.parseReExports)return[];let s=_(e,n);if(!s)return[];let i=U(e,n,s),o=vt(e),a=Sr.read(e,n,i);if(a?.resolutionFingerprint===o)return a.reExports;let c=r.parseReExports(e,n,s);return Sr.write(e,n,i,{resolutionFingerprint:o,reExports:c}),c})}function Ht(e,t){let n=b(t);return _a.get(e,n,()=>{let r=rt(n);if(!r)return[];let s=_(e,n);return s?br(e,n,s,r):[]})}function Tp(e,t){let n=b(t),r=rt(n);if(!r)return[];let s;try{s=Re(e.config.projectRoot,n,{inputKind:"indexed source file"})}catch(i){if(ve(i))return[];throw i}return br(e,n,s,r)}function br(e,t,n,r){let s=U(e,t,n),i=vt(e),o=hr.read(e,t,s);if(o?.resolutionFingerprint===i)return o.imports;let a=r.parseImports(e,t,n);return hr.write(e,t,s,{parserVersion:2,resolutionFingerprint:i,imports:a}),a}function Lp(e,t,n){let r=Ht(e,t).filter(s=>s.kind==="named"&&s.isTypeOnly!==!0&&s.localName===n&&s.sourcePath!==null);return r.length===1?r[0]:null}function Ca(e){return JSON.stringify(e)}function Ea(e){try{let t=JSON.parse(e);return!de(t)||t.parserVersion!==2||typeof t.resolutionFingerprint!="string"||!Array.isArray(t.imports)?null:{parserVersion:2,resolutionFingerprint:t.resolutionFingerprint,imports:t.imports}}catch{return null}}function ka(e){return JSON.stringify(e)}function Pa(e){try{let t=JSON.parse(e);return!de(t)||typeof t.resolutionFingerprint!="string"||!Array.isArray(t.reExports)?null:{resolutionFingerprint:t.resolutionFingerprint,reExports:t.reExports}}catch{return null}}function Dp(e,t){return e.all(`SELECT gs.id, gs.symbol, der.document_id, der.start_line, der.start_char, der.end_line, der.end_char, d.relative_path, gs.display_name, gs.documentation
|
|
18
|
+
FROM global_symbols gs
|
|
19
|
+
JOIN defn_enclosing_ranges der ON gs.id = der.symbol_id
|
|
20
|
+
JOIN documents d ON der.document_id = d.id
|
|
21
|
+
WHERE ${t.where}
|
|
22
|
+
${e.pathExclusionsFor("d")}
|
|
23
|
+
${_r(t.orderBy)}
|
|
24
|
+
${Ir(t.limit)}`,...t.params??[])}function Rp(e,t){return e.all(`SELECT
|
|
25
|
+
gs.id,
|
|
26
|
+
gs.symbol,
|
|
27
|
+
c.document_id,
|
|
28
|
+
MIN(c.start_line) AS start_line,
|
|
29
|
+
0 AS start_char,
|
|
30
|
+
MAX(c.end_line) AS end_line,
|
|
31
|
+
0 AS end_char,
|
|
32
|
+
d.relative_path,
|
|
33
|
+
gs.display_name,
|
|
34
|
+
gs.documentation
|
|
35
|
+
FROM global_symbols gs
|
|
36
|
+
JOIN mentions m ON m.symbol_id = gs.id
|
|
37
|
+
JOIN chunks c ON m.chunk_id = c.id
|
|
38
|
+
JOIN documents d ON c.document_id = d.id
|
|
39
|
+
WHERE m.role = 1
|
|
40
|
+
AND ${t.where}
|
|
41
|
+
${e.pathExclusionsFor("d")}
|
|
42
|
+
GROUP BY gs.id, gs.symbol, c.document_id, d.relative_path, gs.display_name, gs.documentation
|
|
43
|
+
${_r(t.orderBy)}
|
|
44
|
+
${Ir(t.limit)}`,...t.params??[])}function _r(e){return e?`ORDER BY ${e}`:""}function Ir(e){return typeof e=="number"?`LIMIT ${e}`:""}function Cr(e){return!e||!e.trim()?null:e.replace(/^```\w*\s*/,"").replace(/\s*```$/,"").replace(/^\(method\)\s*/,"").replace(/^\(property\)\s*/,"").replace(/^\(function\)\s*/,"").replace(/^\(class\)\s*/,"").replace(/^\(interface\)\s*/,"").replace(/^\(enum\)\s*/,"").replace(/^\(type alias\)\s*/,"").replace(/^\(const\)\s*/,"").replace(/^\(var\)\s*/,"").trim()||null}function Er(e){if(!e)return null;let t=Nr(e);if(t)return t.replace(/\n/g," ");let n=e.indexOf("|");if(n===-1)return e.replace(/\n/g," ");let r=e.slice(n+1);return(Nr(r)??r).replace(/\n/g," ")}function Nr(e){return/^```(?:\w+)?\s*\n?([\s\S]*?)\n?```/.exec(e.trimStart())?.[1]?.trim()||null}function st(e){return{forFile(t,n){return kr(e,t,n)},forFiles(t,n){let r=new Map;for(let s of t)r.set(s,kr(e,s,n));return r}}}function kr(e,t,n){let r={file:t},s=n.facts||n.identifiers;if(n.text&&(r.text=_(e,t)),n.lines&&(r.lines=pt(e,t)),n.ast&&(r.ast=O(e,t)),n.imports&&(r.imports=Ht(e,t)),n.reexports&&(r.reexports=xr(e,t)),s){let i=xt(e,t),o=i.facts;n.facts&&(r.facts=o),i.unavailable&&(r.sourceFactsUnavailable=i.unavailable),n.identifiers&&o&&(r.identifiers=o.fileIdentifiers,r.identifierLineMap=o.identifierLineMap)}return r}function Ta(e,t={}){if(H(e.symbol)!==null)return t.includeClassMemberFallbacks===!0;let s=(e.documentation??"").replace(/^```\w*\s*/,"").replace(/\s*```$/,"").trim();return/^(?:var|let|const|function|class|interface|type|enum)\b/.test(s)}function zt(e,t,n={}){let r=new Map;for(let i of t)e.length>0&&!Ta(i,{includeClassMemberFallbacks:n.includeClassMemberFallbacks})||r.set(i.id,i);for(let i of e)r.set(i.id,i);let s=[...r.values()];return n.sort?s.sort((i,o)=>i.start_line-o.start_line||i.end_line-o.end_line||i.symbol.localeCompare(o.symbol)):s}var La=N("file-definitions",{clearGroups:["definition-catalog"]}),Fa=ue("scoped-matched-definitions",{clearGroups:["definition-catalog"]}),Da=N("file-function-like-definitions",{clearGroups:["definition-catalog"]}),Pr=new WeakMap;function Qt(e,t,n={},r){return Ne(t),n.includeClassMemberFallbacks?qt(e,t,void 0,{includeClassMemberFallbacks:!0},r):La.get(e,t,()=>{let s=j(r,"evidence-read",()=>Dr(e,t));if(s)return s;let i=qt(e,t,void 0,n,r);return j(r,"evidence-write",()=>{let o=xe(e),a=st(e).forFile(t,{text:!0}).text;o&&a&&Fr.write(e,t,U(e,t,a),{projectFingerprint:o,definitions:i.map(c=>({...c}))})}),i})}function Ra(e,t){return Da.get(e,t,()=>{let n=Dr(e,t);return n?n.filter(r=>r.isFunctionLike):qt(e,t,r=>r.isFunctionLike)})}var Fr=Y({kind:"file-definitions",invalidation:Z("file-definitions"),serialize:va,deserialize:wa});function Dr(e,t){let n=xe(e);if(!n)return null;let r=st(e).forFile(t,{text:!0}).text;if(!r)return null;let s=Fr.read(e,t,U(e,t,r));return s?Aa(s,n,t):null}function va(e){return JSON.stringify(e)}function wa(e){try{let t=JSON.parse(e);return!de(t)||typeof t.projectFingerprint!="string"||!Array.isArray(t.definitions)?null:{projectFingerprint:t.projectFingerprint,definitions:t.definitions}}catch{return null}}function Aa(e,t,n){if(e.projectFingerprint!==t)return null;let r=[];for(let s of e.definitions){let i=ja(s,n);if(!i)return null;r.push(i)}return r}function ja(e,t){return!de(e)||typeof e.symbolId!="number"||typeof e.symbol!="string"||typeof e.documentId!="number"||typeof e.startLine!="number"||typeof e.startChar!="number"&&e.startChar!==void 0||typeof e.endLine!="number"||typeof e.endChar!="number"&&e.endChar!==void 0||e.relativePath!==t||typeof e.leaf!="string"||typeof e.parentTypeName!="string"&&e.parentTypeName!==null||typeof e.isFunctionLike!="boolean"||typeof e.isTypeLike!="boolean"||typeof e.kind!="number"&&e.kind!==null||typeof e.documentation!="string"&&e.documentation!==null||typeof e.enclosingSymbol!="string"&&e.enclosingSymbol!==null?null:{symbolId:e.symbolId,symbol:e.symbol,documentId:e.documentId,startLine:e.startLine,startChar:e.startChar,endLine:e.endLine,endChar:e.endChar,relativePath:e.relativePath,leaf:e.leaf,parentTypeName:e.parentTypeName,isFunctionLike:e.isFunctionLike,isTypeLike:e.isTypeLike,kind:e.kind,documentation:e.documentation,enclosingSymbol:e.enclosingSymbol}}function qt(e,t,n,r={},s){let i=j(s,"primary-rows",()=>Oa(e,t)),o=j(s,"fallback-rows",()=>Ma(e,t)),a=j(s,"merge-rows",()=>zt(i,o,{sort:!0,includeClassMemberFallbacks:r.includeClassMemberFallbacks}).map(Jt));return n&&(a=a.filter(n)),j(s,"range-correction",()=>Kt(e,t,a,s,r.rangeCorrectionEvidence))}function j(e,t,n){return e?e(t,n):n()}function Oa(e,t){return e.all(`SELECT
|
|
45
|
+
gs.id,
|
|
46
|
+
gs.symbol,
|
|
47
|
+
der.document_id,
|
|
48
|
+
der.start_line,
|
|
49
|
+
der.start_char,
|
|
50
|
+
der.end_line,
|
|
51
|
+
der.end_char,
|
|
52
|
+
d.relative_path,
|
|
53
|
+
gs.display_name,
|
|
54
|
+
gs.kind,
|
|
55
|
+
gs.documentation,
|
|
56
|
+
gs.enclosing_symbol
|
|
57
|
+
FROM global_symbols gs
|
|
58
|
+
JOIN defn_enclosing_ranges der ON gs.id = der.symbol_id
|
|
59
|
+
JOIN documents d ON der.document_id = d.id
|
|
60
|
+
WHERE d.relative_path = ?
|
|
61
|
+
${e.symbolNoiseFor("gs")}
|
|
62
|
+
ORDER BY der.start_line, der.end_line`,t)}function Ma(e,t){return e.all(`SELECT
|
|
63
|
+
gs.id,
|
|
64
|
+
gs.symbol,
|
|
65
|
+
c.document_id,
|
|
66
|
+
MIN(c.start_line) AS start_line,
|
|
67
|
+
0 AS start_char,
|
|
68
|
+
MAX(c.end_line) AS end_line,
|
|
69
|
+
0 AS end_char,
|
|
70
|
+
d.relative_path,
|
|
71
|
+
gs.display_name,
|
|
72
|
+
gs.kind,
|
|
73
|
+
gs.documentation,
|
|
74
|
+
gs.enclosing_symbol
|
|
75
|
+
FROM global_symbols gs
|
|
76
|
+
JOIN mentions m ON m.symbol_id = gs.id
|
|
77
|
+
JOIN chunks c ON m.chunk_id = c.id
|
|
78
|
+
JOIN documents d ON c.document_id = d.id
|
|
79
|
+
WHERE d.relative_path = ?
|
|
80
|
+
AND m.role = 1
|
|
81
|
+
${e.symbolNoiseFor("gs")}
|
|
82
|
+
GROUP BY gs.id, gs.symbol, c.document_id, d.relative_path
|
|
83
|
+
ORDER BY start_line, end_line`,t)}function Jt(e){return{symbolId:e.id,symbol:e.symbol,documentId:e.document_id,startLine:e.start_line,startChar:e.start_char??0,endLine:e.end_line,endChar:e.end_char??0,relativePath:e.relative_path,leaf:an(e.symbol),parentTypeName:H(e.symbol),isFunctionLike:ut(e.symbol),isTypeLike:we(e.symbol)==="type",kind:e.kind??null,documentation:e.documentation??null,enclosingSymbol:e.enclosing_symbol??null}}function ed(e,t={}){return $a(e,t.scope)}function $a(e,t){return be(e,{scope:t,includeIgnored:!1}).flatMap(n=>Qt(e,n)).filter(n=>!e.isIgnored(n.relativePath))}function td(e,t){return be(e,{scope:t,includeIgnored:!1}).flatMap(n=>Ra(e,n)).filter(n=>!e.isIgnored(n.relativePath))}function nd(e,t){let n=Fa.get(e,()=>new WeakMap),r=n.get(t.symbolMatches);r||(r=new Map,n.set(t.symbolMatches,r));let s=JSON.stringify({scope:t.scope??null,sqlPrefilter:t.sqlPrefilter??null}),i=r.get(s);if(i)return[...i];let o=Tr(Ba(e,t.scope,t.sqlPrefilter)),a=Tr(Va(e,t.scope,t.sqlPrefilter)),c=new Set([...o.keys(),...a.keys()]),l=[];for(let u of[...c].sort()){if(e.isIgnored(u))continue;let p=zt(o.get(u)??[],a.get(u)??[],{sort:!0}).filter(d=>t.symbolMatches(d.symbol));p.length!==0&&l.push(...Kt(e,u,p.map(Jt)))}return r.set(s,l),[...l]}function Ba(e,t,n){let r=t?"AND d.relative_path LIKE ?":"",s=n?`AND ${Rr("gs",n)}`:"",i=t?[`%${t}%`]:[];return e.all(`SELECT
|
|
84
|
+
gs.id,
|
|
85
|
+
gs.symbol,
|
|
86
|
+
der.document_id,
|
|
87
|
+
der.start_line,
|
|
88
|
+
der.start_char,
|
|
89
|
+
der.end_line,
|
|
90
|
+
der.end_char,
|
|
91
|
+
d.relative_path,
|
|
92
|
+
gs.display_name,
|
|
93
|
+
gs.kind,
|
|
94
|
+
gs.documentation,
|
|
95
|
+
gs.enclosing_symbol
|
|
96
|
+
FROM global_symbols gs
|
|
97
|
+
JOIN defn_enclosing_ranges der ON gs.id = der.symbol_id
|
|
98
|
+
JOIN documents d ON der.document_id = d.id
|
|
99
|
+
WHERE 1 = 1
|
|
100
|
+
${e.pathExclusionsFor("d")}
|
|
101
|
+
${r}
|
|
102
|
+
${s}
|
|
103
|
+
${e.symbolNoiseFor("gs")}
|
|
104
|
+
ORDER BY d.relative_path, der.start_line, der.end_line`,...i)}function Va(e,t,n){let r=t?"AND d.relative_path LIKE ?":"",s=n?`AND ${Rr("gs",n)}`:"",i=t?[`%${t}%`]:[];return e.all(`SELECT
|
|
105
|
+
gs.id,
|
|
106
|
+
gs.symbol,
|
|
107
|
+
c.document_id,
|
|
108
|
+
MIN(c.start_line) AS start_line,
|
|
109
|
+
0 AS start_char,
|
|
110
|
+
MAX(c.end_line) AS end_line,
|
|
111
|
+
0 AS end_char,
|
|
112
|
+
d.relative_path,
|
|
113
|
+
gs.display_name,
|
|
114
|
+
gs.kind,
|
|
115
|
+
gs.documentation,
|
|
116
|
+
gs.enclosing_symbol
|
|
117
|
+
FROM global_symbols gs
|
|
118
|
+
JOIN mentions m ON m.symbol_id = gs.id
|
|
119
|
+
JOIN chunks c ON m.chunk_id = c.id
|
|
120
|
+
JOIN documents d ON c.document_id = d.id
|
|
121
|
+
WHERE m.role = 1
|
|
122
|
+
AND NOT EXISTS (
|
|
123
|
+
SELECT 1
|
|
124
|
+
FROM defn_enclosing_ranges existing_der
|
|
125
|
+
WHERE existing_der.symbol_id = gs.id
|
|
126
|
+
)
|
|
127
|
+
${e.pathExclusionsFor("d")}
|
|
128
|
+
${r}
|
|
129
|
+
${s}
|
|
130
|
+
${e.symbolNoiseFor("gs")}
|
|
131
|
+
GROUP BY gs.id, gs.symbol, c.document_id, d.relative_path
|
|
132
|
+
ORDER BY d.relative_path, start_line, end_line`,...i)}function Wa(e){return`(${e}.symbol LIKE '%().' OR ${e}.symbol LIKE '%()')`}function Rr(e,t){return t==="callable"?Wa(e):Ua(e)}function Ua(e){return`(${e}.symbol LIKE '%.' OR ${e}.symbol LIKE '%()')`}function Tr(e){let t=new Map;for(let n of e){let r=t.get(n.relative_path);r?r.push(n):t.set(n.relative_path,[n])}return t}function rd(e,t,n={}){if(t.length===0)return[];let r=t.flatMap(s=>Qt(e,s)).filter(s=>!e.isIgnored(s.relativePath));return n.onlyDocumented&&(r=r.filter(s=>s.documentation!==null&&s.documentation!=="")),n.sort&&(r=r.sort((s,i)=>s.relativePath.localeCompare(i.relativePath)||s.startLine-i.startLine||s.endLine-i.endLine)),r.map(s=>({startLine:s.startLine,endLine:s.endLine,symbol:s.symbol,shortName:on(s.symbol),signature:Cr(Er(s.documentation)),relativePath:s.relativePath,enclosingSymbol:s.enclosingSymbol}))}function Ha(e){let t=new Map,n=e.map((r,s)=>({definition:r,index:s,span:r.endLine-r.startLine})).sort((r,s)=>r.span-s.span||r.index-s.index);for(let{definition:r}of n)for(let s=r.startLine;s<=r.endLine;s+=1)t.has(s)||t.set(s,r);return t}function sd(e,t){let n=Pr.get(e);return n||(n=Ha(e),Pr.set(e,n)),n.get(t)??null}function id(e,t){let n=Qt(e,t.relative_path).find(r=>r.symbolId===t.id)??(H(t.symbol)===null||!ut(t.symbol)?void 0:Kt(e,t.relative_path,[Jt(t)])[0]);return n?{symbolId:n.symbolId,symbol:n.symbol,documentId:n.documentId,startLine:n.startLine,startChar:n.startChar,endLine:n.endLine,endChar:n.endChar,relativePath:n.relativePath}:{symbolId:t.id,symbol:t.symbol,documentId:t.document_id,startLine:t.start_line,startChar:t.start_char??0,endLine:t.end_line,endChar:t.end_char??0,relativePath:t.relative_path}}function Kt(e,t,n,r,s){let i=j(r,"range-correction.source-text",()=>s?s.source:st(e).forFile(t,{text:!0}).text),o=j(r,"range-correction.callable-sites",()=>s?s.callables:_t(e,t));return o?j(r,"range-correction.ast-correction",()=>Ga(n,o,i)):i?j(r,"range-correction.regex-fallback",()=>za(n,i)):n}function za(e,t){let n=t.split(/\r?\n/),r=qa(e,n),s=Qa(e,r),i=Ja(s,n);return Ka(e,i)}function qa(e,t){let n=e.some(s=>it(s.symbol))?rc(t):null,r=new Map;for(let s of e)r.set(s.symbolId,nc(t,n,s));return r}function Qa(e,t){return e.filter(n=>it(n.symbol)).map(n=>({definition:n,startLine:t.get(n.symbolId)??n.startLine})).sort((n,r)=>n.startLine-r.startLine||n.definition.startLine-r.definition.startLine||n.definition.symbol.localeCompare(r.definition.symbol))}function Ja(e,t){let n=new Map;for(let r=0;r<e.length;r+=1){let s=e[r],i=e[r+1],o=i?Math.max(s.startLine,i.startLine-1):t.length-1;n.set(s.definition.symbolId,{startLine:s.startLine,endLine:sc(t,s.definition,s.startLine,o)})}return n}function Ka(e,t){return e.map(n=>{let r=t.get(n.symbolId);return r?{...n,startLine:r.startLine,endLine:r.endLine}:n})}function Ga(e,t,n=null){let r=new Map;for(let s of t){let i=r.get(s.name);i?i.push(s):r.set(s.name,[s])}return e.map(s=>{if(!tc(s)||!s.leaf)return Lr(s,n);let i=r.get(s.leaf);if(!i||i.length===0)return Lr(s,n);let o=n?Xa(s,i,n):null;if(o)return{...s,startLine:o.startLine,endLine:o.endLine};let a=i[0],c=Math.abs(a.startLine-s.startLine);for(let l=1;l<i.length;l+=1){let u=i[l],p=Math.abs(u.startLine-s.startLine);p<c&&(a=u,c=p)}return{...s,startLine:a.startLine,endLine:a.endLine}})}function Xa(e,t,n){let r=Ya(e.symbol);if(!r)return null;let s=n.split(/\r?\n/),i=new RegExp(`\\b${A(r)}\\b`);for(let o of t){let a=Za(s,o.startLine);if(a&&i.test(a))return o}return null}function Ya(e){return e.match(/\/impl#\[([^\]]+)\]/)?.[1]??null}function Za(e,t){for(let n=t;n>=0;n-=1){let r=e[n]?.trim()??"";if(r){if(/^impl\b/.test(r))return ec(e,n,t);if(/^(?:struct|enum|trait|mod)\b/.test(r))return null}}return null}function ec(e,t,n){let r=[];for(let s=t;s<=n;s+=1){let i=e[s]??"";if(r.push(i),i.includes("{"))break}return r.join(" ")}function tc(e){return it(e.symbol)?!0:we(e.symbol)==="term"&&H(e.symbol)===null}function Lr(e,t){if(!t||!e.leaf||we(e.symbol)!=="term"||H(e.symbol)!==null)return e;let n=A(e.leaf),r=new RegExp(`\\b(?:export\\s+)?(?:const|let|var)\\s+${n}\\b`),i=t.split(/\r?\n/).findIndex(o=>r.test(o));return i>=0?{...e,startLine:i,endLine:i}:e}function nc(e,t,n){if(!it(n.symbol))return n.startLine;let r=Math.max(0,Math.min(n.startLine,e.length-1));if(!t)return r;let s=t.get(n.leaf);if(!s||s.length===0)return r;let i=null;for(let o of s){let a=Math.abs(o-n.startLine);(!i||a<i.distance)&&(i={line:o,distance:a})}return i?.line??r}function rc(e){let t=/\b(?:function|def|fn)\s+([A-Za-z_$][\w$]*)/g,n=/\b([A-Za-z_$][\w$]*)\s*[:=]\s*(?:async\s*)?(?:function\b|\()/g,r=/^\s*(?:(?:export|public|private|protected|static|readonly|async|abstract|get|set)\s+)*([A-Za-z_$][\w$]*)\s*(?:<[^(]*>)?\s*\(/,s=/\b([A-Za-z_$][\w$]*)\s*\(/g,i=new Map,o=(a,c)=>{let l=i.get(a);if(!l){i.set(a,[c]);return}l[l.length-1]!==c&&l.push(c)};for(let a=0;a<e.length;a+=1){let c=e[a]??"";for(let u of c.matchAll(t))u[1]&&o(u[1],a);for(let u of c.matchAll(n))u[1]&&o(u[1],a);let l=c.match(r);l?.[1]&&o(l[1],a);for(let u of c.matchAll(s))u[1]&&o(u[1],a)}return i}function sc(e,t,n,r){let s=Math.max(n,Math.min(e.length-1,r)),i=Math.max(n,Math.min(s,t.endLine)),o=0,a=0,c=!1;for(let l=n;l<=s;l+=1){let u=ic(e[l]??"");for(let p of u)p==="{"?(o+=1,c=!0):p==="}"?o=Math.max(0,o-1):p==="("?a+=1:p===")"&&(a=Math.max(0,a-1));if(c&&o===0||!c&&a===0&&l>=i)return l}return i}function ic(e){let t="",n=null,r=!1;for(let s=0;s<e.length;s+=1){let i=e[s],o=e[s+1];if(!n&&i==="/"&&o==="/"){t+=" ".repeat(e.length-s);break}if(n){if(r){r=!1,t+=" ";continue}if(i==="\\"){r=!0,t+=" ";continue}i===n&&(n=null),t+=" ";continue}if(i==='"'||i==="'"||i==="`"){n=i,t+=" ";continue}t+=i}return t}function it(e){return e.includes("().")}export{zr as a,Y as b,bc as c,Z as d,Un as e,di as f,J as g,oc as h,_ as i,Or as j,pc as k,pt as l,dc as m,A as n,Zi as o,z as p,q,Js as r,$n as s,Ys as t,Bn as u,Zs as v,Nt as w,ei as x,O as y,Be as z,te as A,zc as B,fe as C,xt as D,_t as E,ni as F,ri as G,Yi as H,nt as I,xr as J,Ht as K,Tp as L,Lp as M,st as N,Dp as O,Rp as P,Cr as Q,Er as R,zt as S,Qt as T,ed as U,$a as V,td as W,nd as X,rd as Y,Ha as Z,sd as _,id as $};
|
|
133
|
+
//# sourceMappingURL=chunk-3L2ZBPEX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-WUN6KBHV.js";import{c as m}from"./chunk-CJZXN4NU.js";import{a as d}from"./chunk-BGBBVSH4.js";import{d as u}from"./chunk-N2ZSIIGR.js";function k(n,c={}){let{scope:e,minLoc:t=10,minCallees:a=6,limit:r=20,scanLimit:i}=c,o=new m(n);return g({candidates:()=>o.productionCallableDefinitions({scope:e,minLoc:t,excludeTypesFiles:!0,requireFunctionLikeSymbol:!0,sortByLocDesc:!0}),scanLimit:i,profile:{name:"extract-candidates"},prepare:s=>o.calleeMap(s,{semantic:c.semantic!==!1}),evaluate:(s,l)=>h(s,l.get(s.symbolId)??[],a),orderResults:(s,l)=>l.clusters.length-s.clusters.length||l.loc-s.loc,limit:r})}function h(n,c,e){let t=new Set(c.map(l=>l.symbol));if(t.size<e)return null;let a=S(t,c),r=y(t,a);if(r.length<2)return null;let i=C(r,a);if(i.length===0)return null;let o=u(n.symbol),s=p(o,t.size,r.length,i);return{symbol:n.symbol,shortName:o,relativePath:n.relativePath,startLine:n.startLine,endLine:n.endLine,loc:d(n),totalCallees:t.size,extractionKind:s.extractionKind,actionTier:"signal",evidenceReasons:s.evidenceReasons,recommendation:s.recommendation,clusters:i}}function p(n,c,e,t){let a=Math.max(...t.map(s=>s.callees.length)),r=Math.max(...t.map(s=>s.isolation)),i=[`${c} distinct callees across ${e} co-occurrence cluster(s)`,`${t.length} extractable cluster(s) passed size and isolation thresholds`,`largest extractable cluster has ${a} callees at ${Math.round(r*100)}% isolation`],o=f(n,c,e);return o!==null?{extractionKind:"workflow-orchestration",evidenceReasons:[...i,o],recommendation:"Review the isolated helper group as a possible private or feature-local helper, but keep the orchestration sequence together when it preserves the workflow."}:a>=6?{extractionKind:"broad-helper-cluster",evidenceReasons:[...i,"one isolated helper group is broad enough to deserve a named review"],recommendation:"Review whether the broad helper cluster has a stable concept name before extracting it; avoid creating a bag-of-helpers abstraction."}:{extractionKind:"cohesive-helper-cluster",evidenceReasons:i,recommendation:"Review the isolated callee group as a possible same-file or feature-local helper; extract only if the new name preserves the current behavior."}}function f(n,c,e){if(c>=10)return`callee breadth suggests orchestration: ${c} callees`;if(e>=4)return`multiple disconnected callee groups suggest orchestration: ${e} groups`;let t=b(n);return x.has(t)?`caller verb suggests orchestration: ${t}`:null}function b(n){return n.split(":").pop()?.replace(/\(\)$/,"").replace(/[^A-Za-z0-9_]/g,"").replace(/([a-z0-9])([A-Z])/g,"$1 $2").split(/[_\s-]+/).filter(Boolean)[0]?.toLowerCase()??""}var x=new Set(["apply","build","check","collect","create","diff","execute","find","handle","load","prepare","process","render","resolve","run","select","sync","update","validate","verify","write"]);function S(n,c){let e=new Map;for(let a of n)e.set(a,new Set);let t=new Map;for(let a of c){let r=t.get(a.chunkId);r||(r=new Set,t.set(a.chunkId,r)),r.add(a.symbol)}for(let a of t.values()){let r=[...a];for(let i=0;i<r.length;i++)for(let o=i+1;o<r.length;o++)e.get(r[i]).add(r[o]),e.get(r[o]).add(r[i])}return e}function y(n,c){let e=new Set,t=[];for(let a of n){if(e.has(a))continue;let r=new Set,i=[a];for(;i.length>0;){let o=i.pop();if(!e.has(o)){e.add(o),r.add(o);for(let s of c.get(o)??[])e.has(s)||i.push(s)}}t.push(r)}return t}function C(n,c){return n.filter(e=>e.size>=3).map(e=>v(e,n,c)).filter(e=>e.isolation>.5).sort((e,t)=>t.isolation-e.isolation)}function v(n,c,e){let t=new Set;for(let o of c)if(o!==n)for(let s of o)t.add(s);let a=0;for(let o of n)for(let s of e.get(o)??[])t.has(s)&&a++;let r=n.size*t.size,i=r>0?1-a/r:1;return{callees:[...n].map(u),isolation:i}}export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3PJABJSU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d}from"./chunk-6VVV4WRR.js";import{D as c}from"./chunk-ZOHS7AQV.js";import{k as s}from"./chunk-FESCRNVV.js";var p=new Set(["arrow_function","class_declaration","constructor_declaration","field_definition","function_declaration","function_definition","function_expression","function_item","generator_function_declaration","generator_function","lexical_declaration","method","method_declaration","method_definition","object_method","variable_declaration"]);function b(n,t,e){let o=c(n,t)?.rootNode??null,r=L(o,e);if(!r)return null;let a=s(n,t);if(a.length===0)return null;let u=Math.max(0,r.startPosition.row),i=r.endPosition.column===0?r.endPosition.row-1:r.endPosition.row;return{type:r.type,startLine:u,endLine:Math.min(a.length-1,Math.max(u,i))}}function y(n,t,e,o,r){let a=d(n,t,o,r,[e]),u=a.startLine===a.endLine&&/(?:=>|\(|\{|\[|,)\s*$/u.test(s(n,t)[a.startLine]??"");if(!u&&(a.startLine>o||a.endLine<r))return a;let i=b(n,t,e);return u&&i?{startLine:i.startLine,endLine:i.endLine}:i&&i.startLine>=o&&i.endLine<=r?{startLine:i.startLine,endLine:i.endLine}:{startLine:o,endLine:r}}function L(n,t){if(!n||!f(n,t))return null;let e=m(n,t);for(;e;){if(p.has(e.type))return e;e=e.parent}return null}function m(n,t){let e=n.namedChildren.filter(o=>f(o,t)).sort((o,r)=>l(o)-l(r));return e.length>0?m(e[0],t):n}function f(n,t){return n.startPosition.row<=t&&n.endPosition.row>=t}function l(n){return n.endIndex-n.startIndex}export{b as a,y as b};
|
|
2
|
+
//# sourceMappingURL=chunk-3SVF22I5.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as S}from"./chunk-
|
|
1
|
+
import{c as S}from"./chunk-2R3V3PSD.js";import{a as y,b as h}from"./chunk-EG2CPZMJ.js";import{a as f}from"./chunk-ZF5KHH7C.js";import{d as v}from"./chunk-CIYLO6SI.js";import{c as p}from"./chunk-M2O5NY6W.js";import{b as d}from"./chunk-OSSESPDX.js";import{d as l,t as m}from"./chunk-N2ZSIIGR.js";import{k as u}from"./chunk-FESCRNVV.js";function B(i,r,c={}){let t=g(i,r,c);if(t.kind!=="matched")return t;let{referenceEvidence:n,claimSupport:e,...s}=t;return s}function g(i,r,c={}){let t=d(i,r);if(!t.match)return{kind:"missing",query:r};if(t.total>1)return{kind:"ambiguous",query:r,total:t.total,candidates:[{symbol:t.match.symbol,shortName:l(t.match.symbol),relativePath:t.match.relativePath,startLine:t.match.startLine},...t.candidates]};let n=t.match,e=R(c.parts),s=e.includes("definition")||e.includes("references")?S(i,n.symbol,{semantic:c.semantic,referenceContext:c.referenceContext}):{definitions:[],referencedBy:[],referenceEvidence:[],claimSupport:null},o=e.includes("callers")||e.includes("callees")?f(i,n.symbol,{semantic:c.semantic}):null,a=c.relatedSourceLines??80;return{kind:"matched",query:r,symbol:n.symbol,shortName:l(n.symbol),file:n.relativePath,parts:e,definition:e.includes("definition")?v(i,n.symbol):null,referenceWindows:e.includes("references")?L(i,s.referencedBy):[],callers:e.includes("callers")?E(i,o?.callers??[],a):[],callees:e.includes("callees")?E(i,o?.callees??[],a):[],dependencies:e.includes("dependencies")?y(i,n.relativePath):[],consumers:e.includes("consumers")?h(i,n.relativePath):[],referenceEvidence:s.referenceEvidence,claimSupport:s.claimSupport}}function L(i,r){let c=r.filter(n=>n.sourceStartLine!==null&&n.sourceEndLine!==null&&n.source!==null).sort((n,e)=>n.relativePath.localeCompare(e.relativePath)||n.sourceStartLine-e.sourceStartLine||n.line-e.line),t=[];for(let n of c){let e=t[t.length-1];if(e&&e.relativePath===n.relativePath&&n.sourceStartLine<=e.endLine+1){e.endLine=Math.max(e.endLine,n.sourceEndLine),e.references.push(b(n)),e.source=u(i,e.relativePath).slice(e.startLine,e.endLine+1).join(`
|
|
2
2
|
`);continue}t.push({relativePath:n.relativePath,startLine:n.sourceStartLine,endLine:n.sourceEndLine,source:n.source,references:[b(n)]})}return t}function b(i){return{line:i.line,enclosingSymbol:i.enclosingSymbol,enclosingShort:i.enclosingShort}}function R(i){let r=i&&i.length>0?i:["definition","references"];return[...new Set(r)]}function E(i,r,c){let t=[],n=new Set;for(let e of r){if(n.has(e.symbol))continue;n.add(e.symbol);let s=(e.file?m(i,e.file).find(a=>a.symbol===e.symbol):void 0)??d(i,e.symbol).match;if(!s)continue;let o=p(i,s.relativePath,s.startLine,s.endLine,c);o&&t.push({...o,symbol:e.symbol,shortName:e.shortName,omittedLines:Math.max(0,s.endLine-o.endLine)})}return t}export{B as a,g as b};
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-3WR4E3A3.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as T}from"./chunk-GUFSG5TX.js";import{$ as b,U as x,X as m,Y as P,Z as k,ba as j,r as v}from"./chunk-KYSDI3GE.js";import{createHash as A}from"crypto";import{isUtf8 as K}from"buffer";import{TextDecoder as _}from"util";var O=new _("utf-8",{fatal:!0});function H(e){return j(e.config.projectRoot)}function Q(e,t){let a=v(t),r;try{r=m(e.config.projectRoot,a,{inputKind:"repository text file"})}catch(o){if(b(o)||o instanceof x)return null;throw o}let n=C(r);return n===null?null:w(a,r,n,E(e),L(e))}function V(e,t,a){let r=H(e).filter(i=>!t.scope||i.includes(t.scope)),n=E(e),o=L(e),u=[],S=[],B=[],f=0,d=0,h={aligned:0,stale:0,unavailable:0},l=t.literalBytes?Buffer.isBuffer(t.literalBytes)?[t.literalBytes]:[...t.literalBytes]:[],F=l.length>0?Buffer.allocUnsafe(1024*1024):void 0;for(let i of r){let c,p,g=[],y=o.has(i);try{if(l.length>0){let s=l.length===1?P(e.config.projectRoot,i,l[0],{inputKind:"repository text file",computeSha256:y,scratchBuffer:F}):k(e.config.projectRoot,i,l,{inputKind:"repository text file",computeSha256:y,scratchBuffer:F});if(!s.isUtf8Text){u.push(i);continue}f+=s.byteLength,d+=1,p=s.sha256;let z=R(i,p,n,o);if(h[z.state]+=1,g="matchedLiteralIndexes"in s?s.matchedLiteralIndexes:s.includesLiteral?[0]:[],g.length===0||!s.bytes)continue;c=s.bytes}else c=m(e.config.projectRoot,i,{inputKind:"repository text file"})}catch(s){if(s instanceof x){B.push(i);continue}if(b(s))continue;S.push(i);continue}if(l.length===0&&!I(c)){u.push(i);continue}if(l.length===0){f+=c.byteLength,d+=1,p=y?M(c):void 0;let s=R(i,p,n,o);h[s.state]+=1}if(t.includeBytes&&!t.includeBytes(i,c))continue;let U=O.decode(c);a(w(i,c,U,n,o,p),g)}return{candidateFiles:r.length,scannedTextFiles:d,semanticFiles:h,scannedBytes:f,skippedBinaryPaths:u,skippedUnreadablePaths:S,skippedOversizedPaths:B}}function w(e,t,a,r,n,o){let u=o??M(t);return{relativePath:e,text:a,bytes:t.byteLength,freshness:{exactText:{state:"current",basis:"working-tree-read",sha256:u},semantic:R(e,u,r,n)}}}function R(e,t,a,r){if(!r.has(e))return{state:"unavailable",basis:"no-compiler-document"};let n=a.get(e);return!n||!t?{state:"unavailable",basis:"fingerprint-unavailable"}:{state:n===t?"aligned":"stale",basis:"indexed-input-fingerprint"}}function L(e){return new Set(e.all(`SELECT documents.relative_path FROM documents WHERE 1 = 1 ${e.pathExclusionsFor("documents")}`).map(t=>t.relative_path))}function E(e){let t=new Map;if(!e.generation.metadataRaw)return t;let a=T(e.generation.metadataRaw);if(a.kind!=="legacy"&&a.kind!=="supported")return t;let r=a.metadata.fingerprint;if(!D(r)||!Array.isArray(r.files))return t;for(let n of r.files)!D(n)||typeof n.path!="string"||typeof n.hash!="string"||t.set(n.path,n.hash);return t}function C(e){return I(e)?O.decode(e):null}function I(e){return!e.includes(0)&&K(e)}function M(e){return A("sha256").update(e).digest("hex")}function D(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{H as a,Q as b,V as c};
|
|
2
|
+
//# sourceMappingURL=chunk-4FTZ4P5G.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{c as o}from"./chunk-
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
import{c as o}from"./chunk-RBLQNW26.js";import{_ as n}from"./chunk-66DVSJQG.js";async function i(t){if(typeof t!="string"||t.length===0)throw new Error("Output continuation requires a cursor.");await o(t,n)}var u={id:"continue",command:"continue <cursor>",hidden:!0,description:"Continue an immutable output snapshot",renderShape:"custom",handler:i};export{u as a};
|
|
3
|
+
//# sourceMappingURL=chunk-4ILJCCXV.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f as B,g as S}from"./chunk-JGKUET5J.js";import{b as O}from"./chunk-BOJ5SVE2.js";import{a as E}from"./chunk-BGBBVSH4.js";import{c as k}from"./chunk-XRYABF57.js";import{b as L}from"./chunk-NJITK2GP.js";import{d as P}from"./chunk-MTDBHTSF.js";import{d as I,g as z,j as D,u as $}from"./chunk-N2ZSIIGR.js";import{b as T,t as v,y as A}from"./chunk-ODDUPDP7.js";import{n as _}from"./chunk-FESCRNVV.js";import{y as p}from"./chunk-JWTGMPIT.js";import{d as b}from"./chunk-N5B2NILC.js";var U=new Set(P());function $e(e,t={}){let{includeHomonyms:n=!1,limit:i}=t,s=X(e,t).filter(r=>r.relationship==="divergent"||n&&r.relationship==="homonym");return i?s.slice(0,i):s}function X(e,t={}){let{scope:n,minSimilarity:i=.3,scanLimit:s}=t,r=Q(e,{scope:n,scanLimit:s});return Y(r,{minSimilarity:i,isDelegatePair:De(e)}).filter(a=>!a.members.some(o=>_(e,o.file,o.startLine,"twin")))}function Y(e,t={}){let n=t.minSimilarity??.3,i=t.isDelegatePair,s=e.filter(c=>!V(c.leaf)&&!fe(c.leaf)&&L(c.file)!=="test"&&!D(c.symbol)&&!Z(c.symbol)&&!j(c.symbol,c.leaf)),{recordsByLeaf:r,recordOrder:a}=p("twin-drift.group-by-leaf",()=>q(s),()=>({records:s.length})),o=p("twin-drift.cluster-leaf-names",()=>W([...r.keys()]),()=>({leaves:r.size}));return p("twin-drift.compare-clusters",()=>{let c=[];for(let h of o){let u=J(h,r,a);if(u.length<2||new Set(u.map(f=>f.file)).size<2)continue;let m=null,R=!1,C=!1,y=new Set;for(let f=0;f<u.length;f+=1)for(let w=f+1;w<u.length;w+=1){let d=u[f],g=u[w];if(d.file===g.file||!ge(d,g)||i?.(d,g,u)||i?.(g,d,u))continue;if(R=!0,y.add(d.symbol),y.add(g.symbol),d.normalizedBody===g.normalizedBody){C=!0;continue}let M=oe(d.tokens,g.tokens);(!m||M>m.similarity)&&(m={a:d,b:g,similarity:M})}if(!R)continue;let x=u.filter(f=>y.has(f.symbol)).sort((f,w)=>f.file.localeCompare(w.file)||f.startLine-w.startLine).map(se);if(!m){c.push({leaf:G(h),relationship:C?"identical":"homonym",maxDivergence:0,members:x});continue}let N=m.similarity>=n?"divergent":"homonym";c.push({leaf:G(h),relationship:N,maxDivergence:Math.round((1-m.similarity)*1e3)/1e3,members:x,...N==="divergent"?{firstDivergentTokens:ae(m.a.tokens,m.b.tokens)}:{}})}return c},()=>({clusters:o.length,records:s.length})).sort((c,h)=>h.members.length-c.members.length||h.maxDivergence-c.maxDivergence||c.leaf.localeCompare(h.leaf))}function q(e){let t=new Map,n=new Map;for(let[i,s]of e.entries()){let r=t.get(s.leaf)??[];r.push(s),t.set(s.leaf,r),n.set(s,i)}return{recordsByLeaf:t,recordOrder:n}}function J(e,t,n){let i=[...e].flatMap(s=>t.get(s)??[]);return e.size>1&&i.sort((s,r)=>(n.get(s)??0)-(n.get(r)??0)),i}function Q(e,t){let n=p("twin-drift.load-definitions",()=>$(e,{scope:t.scope}).filter(r=>ee(r)&&!e.isIgnored(r.relativePath)).filter(r=>!k(r.relativePath)));p("twin-drift.sort-definitions",()=>n.sort((r,a)=>r.relativePath.localeCompare(a.relativePath)||r.startLine-a.startLine),()=>({definitions:n.length}));let i=O(n,t.scanLimit),s=p("twin-drift.select-candidates",()=>te(i),()=>({scanned:i.length}));return p("twin-drift.build-records",()=>{let r=[];for(let a of s){let o=ne(e,a);o&&r.push(o)}return r},()=>({candidates:s.length,scanned:i.length}))}function ee(e){return e.isFunctionLike?e.symbol.startsWith("rust-analyzer ")?typeof e.kind=="number"&&U.has(e.kind):!0:!1}function te(e){let t=e.filter(r=>r.leaf&&!V(r.leaf)&&!D(r.symbol)&&!Z(r.symbol)&&!j(r.symbol,r.leaf)),n=new Map;for(let r of t){let a=n.get(r.leaf)??[];a.push(r),n.set(r.leaf,a)}let i=W([...n.keys()]),s=new Set;for(let r of i){let a=[...r].flatMap(o=>n.get(o)??[]);if(!(a.length<2)&&!(new Set(a.map(o=>o.relativePath)).size<2)&&!a.every(o=>L(o.relativePath)==="test"))for(let o of a)s.add(o)}return e.filter(r=>s.has(r))}function ne(e,t){if(!t.leaf)return null;let n=B(e,t);if(!n||!z(t.symbol)&&!re(n,t.leaf))return null;let i=T(S(n)),s=i.replace(/\s+/g,"");if(!s||s.length<8)return null;let r=i.match(ie)??[];return r.length===0?null:{leaf:t.leaf,symbol:t.symbol,shortName:I(t.symbol),file:t.relativePath,startLine:t.startLine,endLine:t.endLine,loc:E(t),normalizedBody:s,tokens:r,isThinForwarder:H(i)}}function re(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`\\b(?:const|let|var)\\s+${n}(?:\\s*:[^=]+)?\\s*=\\s*(?:async\\s*)?(?:\\([^)]*\\)|[A-Za-z_$][\\w$]*)\\s*=>`,"s").test(e)}var ie=/[A-Za-z_$][A-Za-z0-9_$]*|\d+(?:\.\d+)?|[^\sA-Za-z0-9_$]/g;function se(e){return{symbol:e.symbol,shortName:e.shortName,file:e.file,startLine:e.startLine,endLine:e.endLine,loc:e.loc}}function oe(e,t){let n=new Set(e),i=new Set(t);if(n.size===0&&i.size===0)return 1;if(n.size===0||i.size===0)return 0;let s=0;for(let a of n)i.has(a)&&(s+=1);let r=n.size+i.size-s;return r===0?0:s/r}function ae(e,t){let n=Math.min(e.length,t.length),i=0;for(;i<n&&e[i]===t[i];)i+=1;let s=e.slice(i,i+6).join(" "),r=t.slice(i,i+6).join(" ");return!s&&!r?"(bodies differ only in trailing length)":`A: ${s||"(end)"} | B: ${r||"(end)"}`}function W(e){let t=new Map;for(let a of e)t.set(a,a);let n=a=>{let o=a;for(;t.get(o)!==o;)o=t.get(o);let l=a;for(;t.get(l)!==o;){let c=t.get(l);t.set(l,o),l=c}return o},i=(a,o)=>{let l=n(a),c=n(o);l!==c&&t.set(l,c)},s=new Map;for(let a of e){let o=a.slice(0,2).toLowerCase(),l=s.get(o)??[];l.push(a),s.set(o,l)}for(let a of s.values())for(let o=0;o<a.length;o+=1)for(let l=o+1;l<a.length;l+=1)le(a[o],a[l])&&i(a[o],a[l]);let r=new Map;for(let a of e){let o=n(a),l=r.get(o)??new Set;l.add(a),r.set(o,l)}return[...r.values()]}function le(e,t){return e===t||e.toLowerCase()===t.toLowerCase()?!0:e.length<8||t.length<8||Math.abs(e.length-t.length)>2||ce(e.toLowerCase(),t.toLowerCase())/Math.max(e.length,t.length)<.8?!1:pe(e.toLowerCase(),t.toLowerCase(),2)}function ce(e,t){let n=Math.min(e.length,t.length),i=0;for(;i<n&&e[i]===t[i];)i+=1;return i}function fe(e){return/^[A-Z][A-Z0-9_]*$/.test(e)||/^__[^_].*__$/.test(e)||ue.has(e.toLowerCase())}var ue=new Set(["main","row"]),me=new Set(["app","component","components","feature","features","impl","index","lib","route","routes","shared","src","tsx","typescript","ui"]);function Z(e){return e.startsWith("rust-analyzer ")&&/\/(?:tests?|benches?)\//.test(e)}var de=new Set(["default","new","reset"]);function j(e,t){return e.startsWith("rust-analyzer ")&&de.has(t.toLowerCase())}function ge(e,t){if(e.leaf.toLowerCase()!==t.leaf.toLowerCase()||e.leaf.length>4)return!0;let n=F(e);return[...F(t)].some(i=>n.has(i))}function F(e){let t=e.leaf.toLowerCase();return new Set(`${e.file}/${e.shortName}`.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(n=>n.length>2&&n!==t&&!me.has(n)))}function pe(e,t,n){if(Math.abs(e.length-t.length)>n)return!1;let i=Array.from({length:t.length+1},(s,r)=>r);for(let s=1;s<=e.length;s+=1){let r=[s],a=r[0];for(let o=1;o<=t.length;o+=1){let l=e[s-1]===t[o-1]?0:1,c=Math.min(i[o]+1,r[o-1]+1,i[o-1]+l);r.push(c),a=Math.min(a,c)}if(a>n)return!1;i=r}return i[t.length]<=n}function ke(e){return H(T(S(e)))}function H(e){let t=e.trim();if(!t||he.test(t))return!1;let n=be(t);return n.length===0||n.length>2?!1:ye(n[n.length-1])}var he=/\b(?:if|else|for|while|switch|try|catch|do)\b/,we=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\[[^[\]]*\])*\((?:[^()]|\([^()]*\))*\)$/;function ye(e){let t=e.trim().replace(/^return\s+/,"").replace(/^await\s+/,"").replace(/;\s*$/,"").trim();return we.test(t)}function be(e){let t=[],n=0,i="";for(let s of e){if(s==="("||s==="["||s==="{"?n+=1:(s===")"||s==="]"||s==="}")&&(n=Math.max(0,n-1)),s===";"&&n===0){t.push(i),i="";continue}i+=s}return i.trim()&&t.push(i),t.map(s=>s.trim()).filter(s=>s.length>0)}var Te=3;function De(e){let t=new Map;return(n,i,s)=>{if(!n.isThinForwarder)return!1;let r=`${n.symbol}\0${i.symbol}`,a=t.get(r);if(a!==void 0)return a;let o=K(e,n,i,s,Te,new Set);return t.set(r,o),o}}function K(e,t,n,i,s,r){if(s<=0||r.has(t.symbol)||(r.add(t.symbol),(v(e,t.file)??[]).filter(l=>l.line>=t.startLine&&l.line<=t.endLine&&l.calleeLeaf===n.leaf).length===0))return!1;let o=new Set(A(e,t.file).filter(l=>l.sourcePath&&(l.kind!=="namespace"||l.usedMembers.includes(n.leaf))).map(l=>l.sourcePath));if([...o].some(l=>b(l,n.file)))return!0;for(let l of i)if(!(l.symbol===t.symbol||l.symbol===n.symbol||!l.isThinForwarder)&&[...o].some(c=>b(c,l.file))&&K(e,l,n,i,s-1,r))return!0;return!1}function V(e){return e.startsWith("<")&&e.endsWith(">")}function G(e){return[...e].sort()[0]}export{$e as a,X as b,Y as c,ke as d,be as e};
|
|
2
|
+
//# sourceMappingURL=chunk-4UX2F3JX.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as f,c as g}from"./chunk-F4FNK44D.js";import{W as p,X as x}from"./chunk-KYSDI3GE.js";import{h as d}from"./chunk-7F45LJKI.js";function U(n){if(!n)return;let e=Number(n);return Number.isInteger(e)&&e>0?e:void 0}import{execFileSync as b}from"child_process";import{createHash as v}from"crypto";import{existsSync as s,statSync as j}from"fs";import{createRequire as B}from"module";import{platform as N}from"os";import{dirname as m,join as a}from"path";var S=B(import.meta.url),G={language:"rust",indexerBinary:"rust-analyzer",installUrl:"https://github.com/rust-lang/rust-analyzer"};function l(n){return[n.indexerBinary,...n.binaryAliases??[]]}function k(n){let e=l(n);return e.length===1?e[0]:e.join(" or ")}function u(n){for(let e of l(n)){let r=g(e);if(r)return r}return O(n)}function W(n){return u(n)!==null||L(n)}function L(n){return I(n)!==null}function O(n){let e=I(n);if(!e)return null;let t=JSON.parse(d(e,"indexer package manifest")).bin;if(!t)return null;if(typeof t=="string")return a(m(e),t);for(let o of l(n)){let i=t[o];if(i)return a(m(e),i)}return null}function I(n){if(!n.bundledNpmPackage)return null;try{return S.resolve(`${n.bundledNpmPackage}/package.json`)}catch{return null}}function E(n,e){for(let r of n.projectLocalBinaries??[]){let t=a(e,r);if(s(t))return t}return null}function w(n,e){for(let r of n.projectLocalBinaries??[]){let t=a(e,r);if(s(t))return T(e,r,t)}return null}function Y(n,e){let r=D(n,e);if(!r||r.canonicalPath!==e.canonicalPath||r.sha256!==e.sha256||r.size!==e.size||r.mtimeMs!==e.mtimeMs||r.device!==e.device||r.inode!==e.inode||r.executable!==e.executable)throw new Error(`refusing changed project-local indexer ${e.relativePath}; review the current file and rerun with --trust-project-tools`)}function D(n,e){try{return T(n,e.relativePath,e.configuredPath)}catch{return null}}function T(n,e,r){let t={maxBytes:268435456,inputKind:"project-local indexer"},o=p(n,e,t),i=x(n,e,t),h=j(o.absolutePath);return{configuredPath:r,canonicalPath:o.absolutePath,relativePath:e,sha256:v("sha256").update(i).digest("hex"),size:o.size,mtimeMs:o.mtimeMs,device:o.device,inode:o.inode,executable:(h.mode&73)!==0}}function R(n,e,r={}){return(r.trustProjectTools?w(n,e)?.canonicalPath:null)??u(n)}function Z(n,e=process.env,r=n.indexerBinary){if(n.indexerBinary!=="scip-dotnet"||c(r,e))return e;let t=P(r,e);return t?{...e,DOTNET_ROOT:t}:e}function Q(n,e,r={}){let t=k(n),o=e?R(n,e,r):u(n);if(!o)return{language:n.language,binaryLabel:t,installed:!1,runnable:!1,resolvedBinary:null,installUrl:n.installUrl,...e&&E(n,e)?{note:"project-local indexer available only with --trust-project-tools"}:{}};if(n.indexerBinary!=="scip-dotnet")return{language:n.language,binaryLabel:t,installed:!0,runnable:!0,resolvedBinary:o};let i=J(o);return{language:n.language,binaryLabel:t,installed:!0,runnable:i.runnable,resolvedBinary:o,installUrl:n.installUrl,note:i.note}}function J(n){if(c(n,process.env))return{runnable:!0};let e=P(n,process.env);if(e)return{runnable:!0,note:`using .NET 9 runtime from ${e}`};let r=y(process.env);return{runnable:!1,note:r.length>0?`.NET 9 runtime still unavailable after checking ${r.join(", ")}`:"binary is present, but scip-dotnet still needs a .NET 9 runtime"}}function P(n,e){for(let r of y(e))if(c(n,{...e,DOTNET_ROOT:r}))return r;return null}function y(n){let e=[],r=n.DOTNET_ROOT;if(r&&s(r)&&e.push(r),N()==="darwin"&&f("brew"))try{let t=b("brew",["--prefix","dotnet@9"],{stdio:"pipe",env:n,timeout:1e4,killSignal:"SIGKILL"}).toString().trim(),o=a(t,"libexec");s(o)&&!e.includes(o)&&e.push(o)}catch{}return e}function c(n,e){try{return b(n,["--version"],{stdio:"pipe",env:e,timeout:1e4,killSignal:"SIGKILL"}),!0}catch{return!1}}export{G as a,k as b,u as c,W as d,E as e,w as f,Y as g,Z as h,Q as i,U as j};
|
|
2
|
+
//# sourceMappingURL=chunk-4WNW27SX.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import{a as S,b as k,c as P,d as I,e as v,i as K}from"./chunk-TRNAEQ6P.js";import{C as B,I as j,J as f,O as W,P as J,Q as E,x as z,z as Q}from"./chunk-N5B2NILC.js";function F(t,e){return t.reason instanceof Error?t.reason:new Error(e)}function H(t,e){if(t?.aborted)throw F(t,e)}import{randomUUID as ye}from"crypto";import{closeSync as pe,fsyncSync as me,linkSync as ge,mkdirSync as be,openSync as ke,statSync as Le,unlinkSync as Se,writeSync as Pe}from"fs";import{dirname as O}from"path";var A="scip-query-process-lock",x=1,w=Object.freeze({wallNow:()=>Date.now(),isProcessAlive:I,readProcessIdentity:P,randomToken:()=>ye(),makeDirectory:t=>be(t,{recursive:!0}),openFile:(t,e,r)=>ke(t,e,r),writeFile:(t,e,r,n)=>Pe(t,e,r,n),syncFile:t=>me(t),closeFile:t=>pe(t),linkFile:(t,e)=>ge(t,e),readFile:t=>f(t,"process lock record"),statFile:t=>{let e=Le(t);return{dev:e.dev,ino:e.ino,size:e.size,mtimeMs:e.mtimeMs}},removeFile:t=>Se(t)});function U(t,e){let r=e.runtime??w;r.makeDirectory(O(t));let n;for(let i=0;i<2;i+=1)try{return{kind:"acquired",lock:V(t,e,r),...n?{reclaimed:n}:{}}}catch(o){if(o.code!=="EEXIST")throw o;let s=m(t,{parseLegacy:e.parseLegacy,runtime:r});if(i===0&&Fe(t,s,{creationGraceMs:e.creationGraceMs,parseLegacy:e.parseLegacy,runtime:r})){n=s;continue}return{kind:"contended",observation:s}}return{kind:"contended",observation:m(t,{parseLegacy:e.parseLegacy,runtime:r})}}function m(t,e={}){let r=e.runtime??w,n,i;try{n=r.statFile(t),i=r.readFile(t)}catch(c){return c.code==="ENOENT"?{state:"missing"}:{state:"malformed"}}let o;try{o=JSON.parse(i)}catch{return{state:"malformed",raw:i,identity:n}}let s=Ie(o);if(s)return{state:"valid",raw:i,identity:n,record:s,owner:he(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 Ie(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t;if(e.protocol!==A||e.version!==x||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:S(e.processIdentity);return e.processIdentity!==void 0&&(!r||r.pid!==e.pid)?null:{protocol:A,version:x,kind:e.kind,pid:e.pid,token:e.token,...r?{processIdentity:r}:{},startedAt:e.startedAt,...e.detail?{detail:e.detail}:{}}}function Fe(t,e,r={}){let n=r.runtime??w;if(!q(e,n))return!1;let i=Re(`${t}.reclaim`,n);if(!i)return!1;try{let o=m(t,{parseLegacy:r.parseLegacy,runtime:n});return!Y(e,o)||!q(o,n)?!1:D(t,n)}finally{i.release()}}function V(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:A,version:x,kind:e.kind,pid:i,token:o,...s?{processIdentity:s}:{},startedAt:new Date(r.wallNow()).toISOString(),...e.detail?{detail:e.detail}:{}},c=`${t}.${o}.candidate`,y=r.openFile(c,"wx",384),l;try{J(y,Buffer.from(`${JSON.stringify(a)}
|
|
2
|
+
`),r,"process lock"),r.syncFile(y)}catch(u){l=u}try{r.closeFile(y)}catch(u){l??=u}if(l!==void 0)throw G(c,r),l;try{r.linkFile(c,t)}catch(u){throw G(c,r),u}if(G(c,r),n==="durable")try{Z(O(t),r)}catch(u){throw we(t,a,r),u}let p=!1;return{path:t,record:a,release:()=>p?!1:(p=!0,X(t,a,r,n))}}function we(t,e,r=w){return X(t,e,r,"durable")}function X(t,e,r,n){let i=m(t,{runtime:r});return i.state!=="valid"||!i.record||i.record.pid!==e.pid||i.record.token!==e.token||e.processIdentity&&(!i.record.processIdentity||!k(e.processIdentity,i.record.processIdentity))?!1:D(t,r,n)}function Re(t,e){for(let r=0;r<2;r+=1)try{return V(t,{kind:"reclaim-guard",runtime:e},e)}catch(n){if(n.code!=="EEXIST")return null;let i=m(t,{runtime:e});if(r>0||!q(i,e))return null;let o=m(t,{runtime:e});if(!Y(i,o)||!D(t,e))return null}return null}function q(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&&!k(t.owner.processIdentity,r)}return!1}function Y(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 he(t){return{pid:t.pid,...t.processIdentity?{processIdentity:t.processIdentity}:{}}}function Z(t,e){let r;try{r=e.openFile(t,"r")}catch(n){if(E(n,process.platform))return;throw n}try{e.syncFile(r)}catch(n){if(!E(n,process.platform))throw n}finally{e.closeFile(r)}}function D(t,e,r="durable"){try{return e.removeFile(t),r==="durable"&&Z(O(t),e),!0}catch{return!1}}function G(t,e){try{e.removeFile(t)}catch{}}import{join as ve}from"path";var Ee=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 wt(t,e={}){return M(ve(t,"gc.lock"),e)}function M(t,e={}){let r=e.waitMs??0,n=e.pollMs??10,i=e.now??v,o=i()+r;do{let s=ee(t,e.directoryDurability);if(s)return te(s);let a=o-i();if(a<=0)return null;Ge(Math.min(n,a))}while(i()<=o);return null}async function Rt(t,e={}){let r=e.waitMs??0,n=e.pollMs??10,i=e.now??v,o=i()+r;do{H(e.signal,"Lock acquisition was aborted.");let s=ee(t,e.directoryDurability);if(s)return te(s);let a=o-i();if(a<=0)return null;await Ae(Math.min(n,a),e.signal)}while(i()<=o);return null}function ee(t,e){let r=U(t,{kind:"generic",parseLegacy:Ee,...e?{directoryDurability:e}:{}});return r.kind==="acquired"?r.lock:null}function te(t){return{release:()=>{t.release()}}}function Ge(t){let e=new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT));Atomics.wait(e,0,0,t)}function Ae(t,e){return e?.aborted?Promise.reject(F(e,"Lock acquisition was aborted.")):new Promise((r,n)=>{let i=setTimeout(()=>{e?.removeEventListener("abort",o),r()},t),o=()=>{clearTimeout(i),e?.removeEventListener("abort",o),n(e?F(e,"Lock acquisition was aborted."):new Error("Lock acquisition was aborted."))};e?.addEventListener("abort",o,{once:!0})})}import{createHash as xe,randomUUID as qe}from"crypto";import{existsSync as g,mkdirSync as Oe,readdirSync as De,rmSync as ne,statSync as ie}from"fs";import{basename as Me,dirname as R,join as d}from"path";var Te=1,Ne=1,_e=".scipquery-generations",Ce="manifest.json",oe="readers",$e="gc.lock",ze=128,L=new Map,se={pid:process.pid,now:()=>new Date,randomToken:()=>qe(),isProcessAlive:I,readProcessIdentity:P};function b(t){return d(R(t),_e)}function Qe(t){return d(b(t),$e)}function Nt(t,e=se){let r=M(Qe(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=Ke(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=d(b(t.dbPath),oe);Oe(s,{recursive:!0}),n=d(s,`${e.pid}-${o}.json`);let a=e.readProcessIdentity(e.pid);K(n,{version:1,token:o,generationIdentity:i.identity,pid:e.pid,...a?{processIdentity:a}:{},acquiredAt:e.now().toISOString()},{spacing:2,trailingNewline:!0});let c=!1;return{generation:i,release(){c||!n||(c=!0,ne(n,{force:!0}))}}}finally{r.release()}}function _t(t,e,r=se,n={}){let i=d(b(t),oe);if(!g(i))return{protectedGenerations:new Set,activeLeases:0,staleLeasesRemoved:0,malformedLeases:0};let o=new Set,s=0,a=0,c=0;for(let y of De(i,{withFileTypes:!0})){if(!y.isFile()||!y.name.endsWith(".json"))continue;let l=d(i,y.name),p;try{p=Be(JSON.parse(f(l,"SQLite generation reader lease")))}catch{p=null}if(!p){c+=1;for(let u of e)o.add(u);continue}if(!je(p,r)){n.removeStale!==!1&&(ne(l,{force:!0}),a+=1);continue}s+=1,o.add(p.generationIdentity)}return{protectedGenerations:o,activeLeases:s,staleLeasesRemoved:a,malformedLeases:c}}function Be(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t,r=e.processIdentity===void 0?null:S(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 je(t,e){if(!e.isProcessAlive(t.pid))return!1;if(!t.processIdentity)return!0;let r=e.readProcessIdentity(t.pid);return r===null||k(t.processIdentity,r)}function ae(t){try{let e=JSON.parse(f(d(b(t),"state.json"),"SQLite generation state"));return Ye(e)?e:null}catch{return null}}function We(t,e){return Je(b(t),e)}function Je(t,e){try{let r=JSON.parse(f(d(t,e,Ce),"SQLite generation manifest"));return Xe(r,e)?r:null}catch{return null}}function Ke(t){let e=ae(t.dbPath);if(e){let r=Ue(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(g(d(R(t.dbPath),"index.lock")))throw new Error("Legacy SQLite publication is in progress; retry after the reindex lock is released.");return Ve(t,e?.currentGeneration)}function Ct(t){let e=ae(t);if(e)return e.currentGeneration;try{let r=d(R(t),"meta.json"),n=g(r)?f(r,"reindex metadata"):void 0;return ce(t,n)}catch{return null}}function He(t){return Q(z(t))??t}function Ue(t,e){try{let r=d(b(t.dbPath),e),n=We(t.dbPath,e);if(!n)return null;let i=T(r,n.database),o=n.index?T(r,n.index):void 0,s=n.metadata?T(r,n.metadata):void 0;return!N(i,n.database)||n.index&&(!o||!N(o,n.index))||n.metadata&&(!s||!N(s,n.metadata))?null:{identity:e,databasePath:i,...o?{indexPath:o}:{},...s?{metadataPath:s,metadataRaw:f(s,"reindex metadata")}:{},source:"immutable"}}catch{return null}}function Ve(t,e){let r=de(t.dbPath),n=d(R(t.dbPath),"meta.json"),i=g(n)?f(n,"reindex metadata"):void 0,o=g(t.indexPath)?t.indexPath:void 0;return{identity:e??ce(t.dbPath,i),databasePath:t.dbPath,...o?{indexPath:o}:{},...i===void 0?{}:{metadataPath:n,metadataRaw:i},source:"legacy",databaseFileIdentity:r}}function ce(t,e){let r=xe("sha256").update("sqlite-generation-legacy-v1\0");return e!==void 0&&r.update(He(e)),r.update(`\0${de(t)}`),r.digest("hex")}function de(t){let e=ie(t);return`${e.dev}:${e.ino}:${e.size}:${e.mtimeMs}`}function T(t,e){if(Me(e.file)!==e.file||e.file==="."||e.file==="..")throw new Error("SQLite generation manifest contains an unsafe artifact path");return d(t,e.file)}function N(t,e){if(!g(t))return!1;let r=re(t);if(!r||r.size!==e.size)return!1;let n=`${t}\0${e.sha256}\0${r.identity}`;if(L.has(n))return!0;let i=W(t,{inputKind:"immutable SQLite generation artifact",maxBytes:e.size}),o=re(t);if(!o||o.identity!==r.identity||i!==e.sha256)return!1;for(L.set(n,!0);L.size>ze;){let s=L.keys().next().value;if(s===void 0)break;L.delete(s)}return!0}function re(t){let e=ie(t,{bigint:!0});return e.isFile()?{identity:`${e.dev}:${e.ino}:${e.size}:${e.mtimeNs}:${e.ctimeNs}`,size:Number(e.size)}:null}function Xe(t,e){return t.version===Ne&&t.identity===e&&_(t.database)&&(t.index===void 0||_(t.index))&&(t.metadata===void 0||_(t.metadata))}function _(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 Ye(t){return t.version===Te&&typeof t.currentGeneration=="string"&&!!t.currentGeneration&&typeof t.publishedAt=="string"&&Number.isFinite(Date.parse(t.publishedAt))&&(t.artifactSet===void 0||t.artifactSet==="immutable-v1")&&Ze(t.stableMirrors)&&et(t.previousGeneration)&&tt(t.publication)}function Ze(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 et(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 tt(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 rt from"ignore";import{existsSync as le,readdirSync as nt}from"fs";import{dirname as C,isAbsolute as ue,join as h,relative as it,resolve as ot}from"path";function Wt(t){let e=rt();return st(t,e)||e.add(dt),{isIgnored:n=>$(e,t,n),filter:n=>n.filter(i=>!$(e,t,i))}}function st(t,e){let r=new Set,n=(s,a)=>{if(!(r.has(s)||!le(s)))try{let c=j(s,{maxBytes:B,inputKind:"gitignore file"});e.add(a?at(c,a):c),r.add(s)}catch{}},i=C(t),o=0;for(;i!==C(i)&&o<5&&(n(h(i,".gitignore"),""),!le(h(i,".git")));)i=C(i),o++;return fe(t,"",e,n),r.size>0}function fe(t,e,r,n){let i=e?h(t,e):t;n(h(i,".gitignore"),e);let o;try{o=nt(i,{withFileTypes:!0})}catch{return}for(let s of o){if(!s.isDirectory()||s.name===".git")continue;let a=e?`${e}/${s.name}`:s.name;$(r,t,`${a}/`)||fe(t,a,r,n)}}function at(t,e){let r=e.replaceAll("\\","/").replace(/\/+$/,"");return t.split(/\r?\n/).map(n=>ct(n,r)).join(`
|
|
3
|
+
`)}function ct(t,e){let r=t.trimStart();if(!r||r.startsWith("#"))return t;let n=t.slice(0,t.length-r.length),i=r.startsWith("!"),o=i?r.slice(1):r;if(!o||o.startsWith("#"))return t;let s=o.startsWith("/"),a=s?o.slice(1):o,l=(a.endsWith("/")?a.slice(0,-1):a).includes("/")||s?`${e}/${a}`:`${e}/**/${a}`;return`${n}${i?"!":""}${l}`}var dt=`
|
|
4
|
+
# Dependencies
|
|
5
|
+
node_modules/
|
|
6
|
+
vendor/
|
|
7
|
+
.bundle/
|
|
8
|
+
|
|
9
|
+
# Build output
|
|
10
|
+
dist/
|
|
11
|
+
build/
|
|
12
|
+
out/
|
|
13
|
+
target/
|
|
14
|
+
bin/
|
|
15
|
+
obj/
|
|
16
|
+
|
|
17
|
+
# Python
|
|
18
|
+
__pycache__/
|
|
19
|
+
*.pyc
|
|
20
|
+
*.pyo
|
|
21
|
+
.venv/
|
|
22
|
+
venv/
|
|
23
|
+
.env/
|
|
24
|
+
env/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
|
|
27
|
+
# Rust
|
|
28
|
+
target/
|
|
29
|
+
|
|
30
|
+
# Java / Kotlin / Scala
|
|
31
|
+
*.class
|
|
32
|
+
.gradle/
|
|
33
|
+
.mvn/
|
|
34
|
+
|
|
35
|
+
# C# / .NET
|
|
36
|
+
bin/
|
|
37
|
+
obj/
|
|
38
|
+
packages/
|
|
39
|
+
|
|
40
|
+
# Go
|
|
41
|
+
vendor/
|
|
42
|
+
|
|
43
|
+
# Dart
|
|
44
|
+
.dart_tool/
|
|
45
|
+
build/
|
|
46
|
+
|
|
47
|
+
# PHP
|
|
48
|
+
vendor/
|
|
49
|
+
|
|
50
|
+
# IDE / OS
|
|
51
|
+
.idea/
|
|
52
|
+
.vscode/
|
|
53
|
+
*.swp
|
|
54
|
+
*.swo
|
|
55
|
+
.DS_Store
|
|
56
|
+
Thumbs.db
|
|
57
|
+
|
|
58
|
+
# Type definitions (often noise in queries)
|
|
59
|
+
*.d.ts
|
|
60
|
+
`;function $(t,e,r){let n=lt(e,r);if(!n)return!1;try{return t.ignores(n)}catch{return!1}}function lt(t,e){if(!e||e===".")return null;if(!ue(e)&&!e.startsWith(".."))return e.replaceAll("\\","/");let r=ue(e)?e:ot(t,e),n=it(t,r).replaceAll("\\","/");return!n||n==="."||n.startsWith("..")?null:n}export{F as a,H as b,U as c,m as d,Fe as e,wt as f,M as g,Rt as h,Te as i,Ne as j,_e as k,Ce as l,b as m,Qe as n,Nt as o,_t as p,ae as q,We as r,Je as s,Ke as t,Ct as u,He as v,de as w,Wt as x};
|
|
61
|
+
//# sourceMappingURL=chunk-5ENOG4VP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as f}from"./chunk-2WC2OEDO.js";import{a as L}from"./chunk-HOENASQM.js";import{C as l,p as a}from"./chunk-3L2ZBPEX.js";import{c as i,d as b,e as u,k as c}from"./chunk-DRENNWRG.js";function S(o,s){let t=L(o,s);if(!t)return[];let e=new f(o).definitionsForFile(t.relativePath).filter(r=>r.symbol!==t.symbol).filter(r=>c(t.symbol,r.symbol)).sort((r,m)=>r.startLine-m.startLine||r.endLine-m.endLine).map(r=>({symbol:r.symbol,shortName:i(r.symbol),startLine:r.startLine,endLine:r.endLine,kind:u(r.symbol)??"unknown"}));return a(t.relativePath)!=="clojure"?e:d(e,y(o,t))}function y(o,s){let t=b(s.symbol);if(!t)return[];let n=i(s.symbol);return(l(o,s.relativePath)?.clojureMembers??[]).filter(e=>e.ownerName===t).map(e=>({symbol:`${s.symbol}${e.memberName}().`,shortName:`${n}:${e.memberName}()`,startLine:e.startLine,endLine:e.endLine,kind:e.memberKind}))}function d(o,s){let t=new Map;for(let n of[...o,...s])t.set(`${n.shortName}:${n.startLine}:${n.endLine}`,n);return[...t.values()].sort((n,e)=>n.startLine-e.startLine||n.endLine-e.endLine)}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-64BFSI5I.js.map
|