@delali/narsil 0.3.1-next.154 → 0.3.1-next.156
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/NOTICE +45 -0
- package/README.md +1 -0
- package/dist/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/{analysis-change-4GCRVRBW.mjs → analysis-change-5BQOQ4BF.mjs} +35 -28
- package/dist/{react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs → analysis-change-entry-TXX6JSMX.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-IXWPXXJJ.mjs → analysis-change-435CUEPZ.mjs} +32 -12
- package/dist/{analysis-change-entry-KYGSXW4K.mjs → browser/analysis-change-entry-HZXKPPGV.mjs} +1 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
- package/dist/browser/{chunk-4PD752F6.mjs → chunk-23XRXIBW.mjs} +1 -1
- package/dist/browser/{chunk-J433A7P3.mjs → chunk-2CFI5VVV.mjs} +5 -5
- package/dist/{react-native/chunks/chunk-3XKMRNRE.mjs → browser/chunk-2TI4SSUP.mjs} +27 -10
- package/dist/browser/chunk-3SSRJMFN.mjs +100 -0
- package/dist/browser/{chunk-2SHAKW2Z.mjs → chunk-3V7DNNZL.mjs} +515 -733
- package/dist/browser/{chunk-C4KS2QNF.mjs → chunk-4NGKC4H4.mjs} +9 -9
- package/dist/browser/{chunk-XRV72TJD.mjs → chunk-6LWDPLTB.mjs} +2 -2
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/{chunk-VCOYGVP7.mjs → chunk-7U3WVJUP.mjs} +3 -3
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/browser/chunk-BHFQATSC.mjs +432 -0
- package/dist/browser/chunk-CRE3G7F3.mjs +1007 -0
- package/dist/browser/{chunk-QXTPSX2H.mjs → chunk-EA63E3D2.mjs} +7 -7
- package/dist/{react-native/chunks/chunk-DCKMICOB.mjs → browser/chunk-EXQZGUQH.mjs} +1 -1
- package/dist/browser/{chunk-ML6HY7T7.mjs → chunk-G64Q6OJF.mjs} +1 -1
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/{chunk-EUNBNLKM.mjs → chunk-IZXVW2ZJ.mjs} +5 -5
- package/dist/browser/{chunk-G7LUMBSG.mjs → chunk-K4Q6KX3R.mjs} +30 -20
- package/dist/browser/{chunk-H6QFBMVE.mjs → chunk-KZWSX6BH.mjs} +3 -3
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/chunk-MGI4BCXC.mjs +63 -0
- package/dist/browser/chunk-MOG4OVDK.mjs +51 -0
- package/dist/browser/{chunk-W5X2UFWQ.mjs → chunk-NLWTBAGB.mjs} +12 -3
- package/dist/browser/{chunk-AYY6PIKL.mjs → chunk-NQAME3RK.mjs} +2 -2
- package/dist/browser/{chunk-7MEYN7V6.mjs → chunk-NXQG7DRA.mjs} +29 -14
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/{chunk-KUZKUONM.mjs → browser/chunk-SRMZXJSL.mjs} +1 -0
- package/dist/browser/chunk-SSTPBZZX.mjs +1106 -0
- package/dist/browser/{chunk-7TTWXUH6.mjs → chunk-STOWQFT3.mjs} +3 -2
- package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
- package/dist/browser/{chunk-SJB6VIZG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/{chunk-AJ4HHOVT.mjs → chunk-U4YDIBUT.mjs} +4 -4
- package/dist/browser/{chunk-2FX6ROWR.mjs → chunk-VLJQW4J6.mjs} +2986 -2986
- package/dist/{react-native/chunks/chunk-3O57C2ZO.mjs → browser/chunk-WI4MR75E.mjs} +2 -2
- package/dist/browser/{chunk-3U3QR5YP.mjs → chunk-WN464PTL.mjs} +2 -2
- package/dist/browser/{chunk-U2E3HMYW.mjs → chunk-XAWNZ4G2.mjs} +11 -11
- package/dist/browser/{cold-module-VTUGDYNY.mjs → cold-module-2EHCIV4K.mjs} +20 -18
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-GL4A7KDV.mjs → durability-wiring-A7BVG2DW.mjs} +50 -153
- package/dist/browser/engine-hooks-E4UD67JD.mjs +17 -0
- package/dist/browser/geo-index-HHWGMNIS.mjs +1386 -0
- package/dist/browser/import-DXYB6756.mjs +19 -0
- package/dist/browser/{methods-LMUTS7OI.mjs → methods-KTQCSIN4.mjs} +3 -3
- package/dist/browser/{module-M4JNBV6V.mjs → module-NIYMEA5R.mjs} +16 -14
- package/dist/browser/{module-EC3FYW7N.mjs → module-TCT66FWA.mjs} +10 -9
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-NPYUVX75.mjs → phrase-module-HAT3TLZN.mjs} +2 -2
- package/dist/browser/{pool-WCGDZHJP.mjs → pool-3JLET5RO.mjs} +1 -1
- package/dist/browser/restore-hooks-YPN4ZFCY.mjs +114 -0
- package/dist/browser/restore-queue-G3RQGL3Y.mjs +55 -0
- package/dist/browser/{retention-6QMRS5VK.mjs → retention-ZWVMNC3Q.mjs} +18 -15
- package/dist/browser/{runtime-3EW2AGB6.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-DN3CRVUQ.mjs → snapshot-VEQNIE6C.mjs} +71 -36
- package/dist/browser/start-BM442C6R.mjs +25 -0
- package/dist/browser/{write-WAWAFGKQ.mjs → write-2EVMZWDE.mjs} +16 -14
- package/dist/{capabilities-B3Brs1Rc.d.ts → capabilities-Da4ywVVl.d.ts} +35 -3
- package/dist/{chunk-K4B7OH65.mjs → chunk-25KDNIZZ.mjs} +2 -2
- package/dist/{chunk-O43Z4MS6.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/chunk-2UV4QBHW.mjs +1092 -0
- package/dist/{chunk-3Y3J4V2R.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/{chunk-TRISKD4Q.mjs → chunk-3HYC4JRF.mjs} +2 -2
- package/dist/{chunk-HVYICDY3.mjs → chunk-3OH67G7R.mjs} +1 -1
- package/dist/{chunk-PFKM7VNZ.mjs → chunk-46KY2PJD.mjs} +30 -11
- package/dist/{chunk-IJU7LL7D.mjs → chunk-4KKXNJM6.mjs} +5 -5
- package/dist/{chunk-IQ4R2I6N.mjs → chunk-5FLRXF73.mjs} +5 -1
- package/dist/{chunk-BPSKLCS7.mjs → chunk-5VV4R6P7.mjs} +3017 -3017
- package/dist/chunk-5YNRKI2C.mjs +81 -0
- package/dist/chunk-6HTGOXIK.mjs +875 -0
- package/dist/{chunk-7HCZWC7B.mjs → chunk-6I6AYAXS.mjs} +50 -8
- package/dist/{chunk-C6ASEFZI.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{chunk-DVWYODEB.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/chunk-7GFE3PEY.mjs +40 -0
- package/dist/{chunk-QKZHLADX.mjs → chunk-7LXHHCXZ.mjs} +28 -19
- package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
- package/dist/{react-native/chunks/chunk-7GWPJDOA.mjs → chunk-A4L7YTKX.mjs} +53 -90
- package/dist/{chunk-Z3TNWCI5.mjs → chunk-BU4SAIC4.mjs} +3 -3
- package/dist/chunk-BWZ3P4MU.mjs +20 -0
- package/dist/{chunk-OKX2BBNW.mjs → chunk-CITFCZKF.mjs} +5 -4
- package/dist/{chunk-4HWZV5MK.mjs → chunk-CSLGFPFQ.mjs} +5 -5
- package/dist/chunk-DP5C7YFQ.mjs +543 -0
- package/dist/{chunk-RVKFI3A2.mjs → chunk-DWEPMFJE.mjs} +11 -8
- package/dist/{chunk-LSM2YTKM.mjs → chunk-EFBDHH5P.mjs} +87 -144
- package/dist/{chunk-NZMAXR2S.mjs → chunk-FAKFUDZZ.mjs} +121 -11
- package/dist/chunk-FB6463IN.mjs +1499 -0
- package/dist/{chunk-REL7LFLR.mjs → chunk-FCJ553HS.mjs} +3 -3
- package/dist/{chunk-MMEMEUOO.mjs → chunk-FJKKCV4D.mjs} +2 -2
- package/dist/{chunk-K7KLL263.mjs → chunk-FNGAM5B7.mjs} +14 -13
- package/dist/{chunk-DMQPFLGI.mjs → chunk-FRBFVQFN.mjs} +6 -5
- package/dist/{chunk-IBNLW3AV.mjs → chunk-FYOVBEMM.mjs} +20 -6
- package/dist/chunk-G6HRSGOU.mjs +74 -0
- package/dist/{chunk-USR7FQRZ.mjs → chunk-GH4WQ22V.mjs} +2 -2
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/{chunk-VREK3MYG.mjs → chunk-HFPMMRQT.mjs} +3 -3
- package/dist/{chunk-MLHNSAPK.mjs → chunk-HHBUCIUY.mjs} +3 -3
- package/dist/{chunk-YROWNOMH.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-ECX4SGX6.mjs → chunk-I2KPOLOZ.mjs} +9 -9
- package/dist/{chunk-TV2L3BN7.mjs → chunk-I53G4JAU.mjs} +266 -265
- package/dist/{chunk-3A5KI24C.mjs → chunk-I54T6CQP.mjs} +1 -1
- package/dist/{chunk-NTZOXVUZ.mjs → chunk-I5B7RXU7.mjs} +93 -24
- package/dist/{chunk-YBJDOA2T.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
- package/dist/{chunk-X6NSJYQ3.mjs → chunk-JDJBQLRO.mjs} +13 -13
- package/dist/{chunk-MMBEANB2.mjs → chunk-JWRUUCWD.mjs} +3 -3
- package/dist/{chunk-AO2FAYIZ.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-JFNKIBDT.mjs → chunk-K5QFDYST.mjs} +2 -2
- package/dist/{chunk-C73JLU4E.mjs → chunk-KF4EXSM4.mjs} +2 -2
- package/dist/{chunk-WCBA2LVZ.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/{chunk-7QUGDVFC.mjs → chunk-KJ3RTZDJ.mjs} +1 -1
- package/dist/{chunk-HVKXNBFL.mjs → chunk-KKQC526K.mjs} +20 -12
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-VMXSVVXG.mjs → chunk-L6V6BST3.mjs} +9 -22
- package/dist/{chunk-URPCYQVJ.mjs → chunk-LHKOSI2J.mjs} +1 -1
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/{react-native/chunks/chunk-CUNGPR5R.mjs → chunk-MP7ABPTD.mjs} +1 -0
- package/dist/{chunk-5KGYQT6W.mjs → chunk-MQOJIO5B.mjs} +26 -9
- package/dist/{chunk-Q3TCTQCC.mjs → chunk-NF4DT3IH.mjs} +1 -1
- package/dist/{chunk-3OFU3NJT.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/chunk-ORN5BLL7.mjs +11 -0
- package/dist/{chunk-HWEDFLB7.mjs → chunk-P5ZI2P2W.mjs} +126 -1701
- package/dist/{chunk-466PYR4P.mjs → chunk-PWC4VB3Q.mjs} +2 -2
- package/dist/{chunk-B7S6YEBP.mjs → chunk-QJVOLKU6.mjs} +12 -3
- package/dist/{chunk-KCUIFVVW.mjs → chunk-QOW2JPUI.mjs} +9 -9
- package/dist/chunk-RDXO6JST.mjs +63 -0
- package/dist/chunk-RLOES5SX.mjs +31 -0
- package/dist/{chunk-YPUEV6ZC.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/{chunk-JCLTESFN.mjs → chunk-RZWWB2XR.mjs} +1 -1
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/chunk-SA5LOGO3.mjs +470 -0
- package/dist/chunk-SQJWAIF4.mjs +12 -0
- package/dist/{chunk-YTJCGKM4.mjs → chunk-TBC3XUL2.mjs} +29 -6
- package/dist/chunk-TDIK6NTV.mjs +10 -0
- package/dist/chunk-TGS5UXBE.mjs +216 -0
- package/dist/{chunk-CP5RRPJR.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-7NTMUDC5.mjs → chunk-TZ3355VS.mjs} +5 -5
- package/dist/{chunk-Q7MS6P2J.mjs → chunk-TZTRKM33.mjs} +2 -2
- package/dist/{chunk-4UMZ7KQL.mjs → chunk-U55XJEIG.mjs} +2 -1
- package/dist/{chunk-S2N75OTN.mjs → chunk-UHICS3JI.mjs} +1 -1
- package/dist/{chunk-5FUOVJKG.mjs → chunk-VTTRFF2C.mjs} +32 -19
- package/dist/{chunk-62G63NMH.mjs → chunk-WX4LAO6M.mjs} +4 -4
- package/dist/{chunk-LTUGDMV4.mjs → chunk-WZ7YV54N.mjs} +1 -1
- package/dist/chunk-XAXKV65G.mjs +72 -0
- package/dist/chunk-XXHN7J46.mjs +101 -0
- package/dist/{chunk-PGVPE7GJ.mjs → chunk-YEKL4JBK.mjs} +1 -1
- package/dist/chunk-YTWZVGCB.mjs +382 -0
- package/dist/chunk-Z2KAFCRT.mjs +30 -0
- package/dist/{chunk-LKUE5GXS.mjs → chunk-ZKP7G7TV.mjs} +2 -2
- package/dist/{client-Df76GNKm.d.ts → client-DRv7UVeY.d.ts} +123 -11
- package/dist/client.d.ts +9 -8
- package/dist/client.mjs +65 -3
- package/dist/{cold-module-YLWMTTZG.mjs → cold-module-6MO2XJF2.mjs} +45 -39
- package/dist/{config-B8DP2VwR.d.ts → config-CoSig5Ox.d.ts} +22 -3
- package/dist/{config-05G_hy-1.d.ts → config-DMwffLKn.d.ts} +20 -5
- package/dist/direct-executor-FTMYY3TI.mjs +34 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +3 -3
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- package/dist/distribution/transport/grpc.mjs +4 -4
- package/dist/distribution/transport/in-memory.mjs +2 -2
- package/dist/distribution/transport/tcp.mjs +3 -3
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +6799 -5939
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-RHLXDIVF.mjs → durability-wiring-VIF5MOSY.mjs} +82 -179
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{sync-uXR7MmM7.d.ts → engine-CFxPYqEk.d.ts} +702 -2
- package/dist/engine-hooks-EGUGNZYE.mjs +54 -0
- package/dist/geo-index-MRH5JMIR.mjs +1387 -0
- package/dist/import-XKDPJQDP.mjs +56 -0
- package/dist/{index-nRqDM6uS.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +9 -7
- package/dist/index.d.ts +134 -9
- package/dist/index.mjs +33 -26
- package/dist/index.react-native.mjs +20 -17
- package/dist/invalidation/filesystem.mjs +2 -2
- package/dist/{long-query-thread-EMYTGSJP.mjs → long-query-thread-YA4IAYSY.mjs} +34 -28
- package/dist/{methods-ABM5ELBR.mjs → methods-7IOINERF.mjs} +3 -3
- package/dist/{module-MG7JMV2U.mjs → module-FQ4JWNQJ.mjs} +41 -34
- package/dist/{module-3OMJZUFT.mjs → module-N55W4Q5C.mjs} +14 -14
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-UOLHOEZJ.mjs → paged-partition-archive-PXW5XAYU.mjs} +48 -38
- package/dist/partial-words.mjs +11 -9
- package/dist/pattern.mjs +6 -5
- package/dist/persistence/durability/checkpoint-worker.d.ts +8 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +44 -35
- package/dist/{phrase-module-O3MDRQXP.mjs → phrase-module-XW5MKWP5.mjs} +4 -3
- package/dist/{pool-CQXYPFLG.mjs → pool-Y4A46T36.mjs} +1 -1
- package/dist/query-suggestions/merge-worker.d.ts +55 -0
- package/dist/query-suggestions/merge-worker.mjs +88 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +247 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +69 -0
- package/dist/react-native/chunks/{analysis-change-EAYO3Y6Q.mjs → analysis-change-LT5QBQ3H.mjs} +43 -22
- package/dist/{browser/analysis-change-entry-FCSHFQSS.mjs → react-native/chunks/analysis-change-entry-SCVWK6OU.mjs} +1 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
- package/dist/{chunk-ZIFJXCKA.mjs → react-native/chunks/chunk-2PRHILX3.mjs} +54 -20
- package/dist/react-native/chunks/{chunk-VQSKZ3EZ.mjs → chunk-3JWDECAZ.mjs} +8 -8
- package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-75VWIY35.mjs → chunk-4DII3ZSM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-NKIZX26F.mjs → chunk-4J74WHQM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-UWDNZDWK.mjs → chunk-4JYO3JD2.mjs} +6 -6
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +17 -0
- package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +9 -0
- package/dist/react-native/chunks/{chunk-SJWDBRNP.mjs → chunk-6WA3C3DV.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-OQQVRWZ2.mjs → chunk-C5G6TJ7A.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-RVAEBN74.mjs → chunk-CKNRFDTZ.mjs} +1 -1
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/react-native/chunks/{chunk-O32RB3BL.mjs → chunk-DNXOMPAQ.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-YBEW6YTR.mjs → chunk-DVDX4SDR.mjs} +2 -2
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
- package/dist/{browser/chunk-MYITLCHT.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +1 -0
- package/dist/react-native/chunks/{chunk-PPEPTUVV.mjs → chunk-EJ33LCHV.mjs} +29 -6
- package/dist/react-native/chunks/{chunk-RYMDHGL4.mjs → chunk-ENLMYKSX.mjs} +3045 -3075
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
- package/dist/react-native/chunks/{chunk-JV6VQY2S.mjs → chunk-FTZHMRD2.mjs} +2 -1
- package/dist/react-native/chunks/{chunk-YHKZSLOC.mjs → chunk-G43IPIDG.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-AUT7PMA4.mjs → chunk-GXX3DQXP.mjs} +8 -22
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-DH3TVWWK.mjs → chunk-IYNT75CE.mjs} +12 -3
- package/dist/react-native/chunks/chunk-KV46CT4D.mjs +1007 -0
- package/dist/{browser/chunk-ZPTA75ZC.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-63YSZOXB.mjs → chunk-MIP4SOR6.mjs} +1480 -826
- package/dist/react-native/chunks/{chunk-ZBSWRSBG.mjs → chunk-MJDQU5MW.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GFYFQLJD.mjs → chunk-MUWD2H2S.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-IOY2SM2P.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/{browser/chunk-TTD27VXX.mjs → react-native/chunks/chunk-NB3LP33V.mjs} +27 -10
- package/dist/react-native/chunks/{chunk-I5PGWQJF.mjs → chunk-PDRWWPKV.mjs} +33 -24
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/{chunk-2CGSQM4O.mjs → chunk-POPDAGH6.mjs} +13 -13
- package/dist/react-native/chunks/{chunk-NP7DD4G5.mjs → chunk-QUKQNI3H.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-EH5CFV6Z.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-JX2RIAXH.mjs → chunk-SK2PWYDH.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-ZYDKJXQJ.mjs → chunk-SUPXRTMD.mjs} +1 -1
- package/dist/react-native/chunks/chunk-TP6KCKER.mjs +63 -0
- package/dist/react-native/chunks/{chunk-JPAJWO6D.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/chunk-UQ4OAXKU.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-VVFYOADG.mjs → chunk-VWUDIOT6.mjs} +6 -6
- package/dist/{browser/chunk-SIR3LMTV.mjs → react-native/chunks/chunk-WBYQRHDY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-C2H2QQFW.mjs → chunk-YH7QY657.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-NCJS3WIY.mjs → chunk-YZW4CHM6.mjs} +51 -12
- package/dist/react-native/chunks/chunk-ZLWVW734.mjs +100 -0
- package/dist/react-native/chunks/chunk-ZXZFN7FI.mjs +432 -0
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-TJL6AFAD.mjs → cold-module-KVZYUGRY.mjs} +31 -28
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-RRDYJLLM.mjs → durability-wiring-34OYO32E.mjs} +60 -162
- package/dist/react-native/chunks/engine-hooks-M7JV46NH.mjs +30 -0
- package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
- package/dist/react-native/chunks/import-H6AQREWI.mjs +32 -0
- package/dist/react-native/chunks/{methods-X6F36SJE.mjs → methods-6W5U4C3H.mjs} +3 -3
- package/dist/react-native/chunks/module-LBZPGOWH.mjs +36 -0
- package/dist/react-native/chunks/{module-S4DKSWMF.mjs → module-TTEVPRCW.mjs} +14 -13
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-JZ37TB7N.mjs → phrase-module-QK22HSQ2.mjs} +2 -2
- package/dist/react-native/chunks/{pool-RTGXJXPU.mjs → pool-JR3NJCAF.mjs} +1 -1
- package/dist/react-native/chunks/restore-hooks-IBGIY3DR.mjs +127 -0
- package/dist/react-native/chunks/restore-queue-ZZX54AH7.mjs +55 -0
- package/dist/react-native/chunks/{retention-PPCTP2VY.mjs → retention-EW4TTDFB.mjs} +29 -25
- package/dist/react-native/chunks/{runtime-KUATOLYB.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-ZBIEOZTZ.mjs → snapshot-REYVIN3X.mjs} +80 -44
- package/dist/react-native/chunks/start-BQK6KN3R.mjs +38 -0
- package/dist/react-native/chunks/{write-2W4FTX7J.mjs → write-FQAYCZF5.mjs} +27 -24
- package/dist/react-native/partial-words.mjs +11 -9
- package/dist/react-native/pattern.mjs +4 -4
- package/dist/react-native/query-suggestions.mjs +260 -0
- package/dist/react-native/sync.mjs +78 -15
- package/dist/react-native/synonyms.mjs +95 -27
- package/dist/react.d.ts +11 -11
- package/dist/react.mjs +1 -0
- package/dist/{rerank-IZOB6NII.mjs → rerank-MQ37IYRV.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-hooks-CDERDEF4.mjs +153 -0
- package/dist/restore-queue-7NNSTROA.mjs +55 -0
- package/dist/retention-QSVBBNRM.mjs +66 -0
- package/dist/{runtime-UZOC3NPY.mjs → runtime-COIUORCN.mjs} +5 -5
- package/dist/{schema-DDauvDOv.d.ts → schema-Jwt928nJ.d.ts} +1 -1
- package/dist/server.d.ts +108 -12
- package/dist/server.mjs +303 -50
- package/dist/{snapshot-NFX2EYN2.mjs → snapshot-RH4NSKIZ.mjs} +98 -61
- package/dist/start-MCKCOGIW.mjs +66 -0
- package/dist/sync/filesystem.d.ts +4 -4
- package/dist/sync/filesystem.mjs +6 -6
- package/dist/sync/indexeddb.d.ts +4 -4
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +74 -11
- package/dist/sync.d.ts +5 -5
- package/dist/sync.mjs +78 -16
- package/dist/synonyms.mjs +9 -8
- package/dist/{tasks-BShx8pdK.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/thread-O4SBJJJS.mjs +50 -0
- package/dist/{types-SnO7_tAI.d.ts → types-BZCGjfLn.d.ts} +2 -3
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +8 -8
- package/dist/workers/entry.mjs +19 -8
- package/dist/{write-FGB62BHQ.mjs → write-3FK7NG3Y.mjs} +40 -33
- package/openapi.json +798 -7
- package/package.json +32 -8
- package/dist/browser/import-YI5GNB4H.mjs +0 -17
- package/dist/browser/operations-WVYLF72Q.mjs +0 -5
- package/dist/browser/restore-queue-TYIGDL5L.mjs +0 -41
- package/dist/chunk-37IVJLP6.mjs +0 -44
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/direct-executor-FI5GJHWX.mjs +0 -29
- package/dist/engine-DYu-e0oR.d.ts +0 -674
- package/dist/import-SRBNC6TE.mjs +0 -49
- package/dist/operations-PGOAY2KS.mjs +0 -5
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
- package/dist/react-native/chunks/gzip.react-native-DNB5YNFA.mjs +0 -3
- package/dist/react-native/chunks/import-JYBMEJPQ.mjs +0 -29
- package/dist/react-native/chunks/module-QT5HZAY4.mjs +0 -33
- package/dist/react-native/chunks/operations-RYKTSZQA.mjs +0 -5
- package/dist/react-native/chunks/restore-queue-ZBVIKJWI.mjs +0 -41
- package/dist/restore-queue-COI2GSSK.mjs +0 -41
- package/dist/retention-55WA7GPU.mjs +0 -58
- package/dist/thread-P2G2FWM2.mjs +0 -44
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { readSnapshotArchive } from './chunks/chunk-3XKMRNRE.mjs';
|
|
2
|
-
import './chunks/chunk-UWDNZDWK.mjs';
|
|
3
1
|
import { createByteReader } from './chunks/chunk-NVVRSRX5.mjs';
|
|
2
|
+
import { readSnapshotArchive } from './chunks/chunk-NB3LP33V.mjs';
|
|
3
|
+
import './chunks/chunk-4JYO3JD2.mjs';
|
|
4
|
+
import './chunks/chunk-DVDX4SDR.mjs';
|
|
5
|
+
import './chunks/chunk-6WA3C3DV.mjs';
|
|
4
6
|
import { isSyncEpoch } from './chunks/chunk-JWUCMVRK.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
6
|
-
import './chunks/chunk-
|
|
7
|
-
import { readHeapStatistics, decodeIndexConfiguration } from './chunks/chunk-C2H2QQFW.mjs';
|
|
7
|
+
import './chunks/chunk-PJHAB5ZY.mjs';
|
|
8
|
+
import { readHeapStatistics, decodeIndexConfiguration } from './chunks/chunk-YH7QY657.mjs';
|
|
8
9
|
import './chunks/chunk-CHPTFFJM.mjs';
|
|
9
|
-
import { encodeDocument } from './chunks/chunk-
|
|
10
|
-
import './chunks/chunk-
|
|
11
|
-
import './chunks/chunk-
|
|
12
|
-
import
|
|
13
|
-
import './chunks/chunk-
|
|
14
|
-
import './chunks/chunk-
|
|
15
|
-
import
|
|
10
|
+
import { encodeDocument } from './chunks/chunk-DNXOMPAQ.mjs';
|
|
11
|
+
import './chunks/chunk-5CQX3XXV.mjs';
|
|
12
|
+
import './chunks/chunk-6VBXNFLE.mjs';
|
|
13
|
+
import './chunks/chunk-C5G6TJ7A.mjs';
|
|
14
|
+
import { hasLanguage, hasTokenizer, hasStopWords, getLanguage } from './chunks/chunk-MJDQU5MW.mjs';
|
|
15
|
+
import './chunks/chunk-3WI35N75.mjs';
|
|
16
|
+
import './chunks/chunk-EJ33LCHV.mjs';
|
|
17
|
+
import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './chunks/chunk-DZ7H7D2C.mjs';
|
|
16
18
|
import { decode, encode } from '@msgpack/msgpack';
|
|
17
19
|
|
|
18
20
|
// src/json-encoding.ts
|
|
@@ -98,11 +100,13 @@ function createAdminOperations(transport) {
|
|
|
98
100
|
await transport.json({ method: "POST", path: `${indexPath(indexName)}/_checkpoint`, options });
|
|
99
101
|
},
|
|
100
102
|
snapshot(indexName, options) {
|
|
103
|
+
const { queryHistory, ...request } = options ?? {};
|
|
101
104
|
return transport.stream({
|
|
102
105
|
method: "GET",
|
|
103
106
|
path: `${indexPath(indexName)}/snapshot`,
|
|
107
|
+
...queryHistory === true ? { query: { queryHistory: "true" } } : {},
|
|
104
108
|
defaultTimeoutMs: NO_TIMEOUT,
|
|
105
|
-
options
|
|
109
|
+
options: request
|
|
106
110
|
});
|
|
107
111
|
},
|
|
108
112
|
async restore(indexName, data, options) {
|
|
@@ -205,7 +209,9 @@ function createBackupOperations(transport) {
|
|
|
205
209
|
}
|
|
206
210
|
return {
|
|
207
211
|
createBackup(indexName, backupName, options) {
|
|
208
|
-
|
|
212
|
+
const { queryHistory, ...request } = options ?? {};
|
|
213
|
+
const body = { backup: backupName, ...queryHistory === true ? { queryHistory } : {} };
|
|
214
|
+
return postTask(`${indexPath(indexName)}/backups`, body, request);
|
|
209
215
|
},
|
|
210
216
|
async listBackups(options) {
|
|
211
217
|
const path = "/backups";
|
|
@@ -775,6 +781,62 @@ function createIndexOperations(transport) {
|
|
|
775
781
|
};
|
|
776
782
|
}
|
|
777
783
|
|
|
784
|
+
// src/client/query-suggestions.ts
|
|
785
|
+
function createQuerySuggestionOperations(transport) {
|
|
786
|
+
const pathOf = (indexName, route = "") => `${indexPath(indexName)}/query-suggestions${route}`;
|
|
787
|
+
function send(method, path, body, options) {
|
|
788
|
+
return transport.json({
|
|
789
|
+
method,
|
|
790
|
+
path,
|
|
791
|
+
...body === void 0 ? {} : { body: encodeJson(body), contentType: "application/json" },
|
|
792
|
+
options
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
return {
|
|
796
|
+
async updateQuerySuggestions(indexName, setting, options) {
|
|
797
|
+
await send("PUT", pathOf(indexName), setting, options);
|
|
798
|
+
},
|
|
799
|
+
async querySuggestionsStatus(indexName, options) {
|
|
800
|
+
const path = pathOf(indexName);
|
|
801
|
+
return readBody(await send("GET", path, void 0, options), path);
|
|
802
|
+
},
|
|
803
|
+
async recordQuery(indexName, query, options) {
|
|
804
|
+
const path = pathOf(indexName, "/record");
|
|
805
|
+
return readBody(await send("POST", path, { query }, options), path);
|
|
806
|
+
},
|
|
807
|
+
async buildQuerySuggestions(indexName, options) {
|
|
808
|
+
const path = pathOf(indexName, "/build");
|
|
809
|
+
return readBody(await send("POST", path, void 0, options), path);
|
|
810
|
+
},
|
|
811
|
+
async previewQuerySuggestions(indexName, limit, options) {
|
|
812
|
+
const path = pathOf(indexName, "/preview");
|
|
813
|
+
const payload = await transport.json({
|
|
814
|
+
method: "GET",
|
|
815
|
+
path,
|
|
816
|
+
...limit === void 0 ? {} : { query: { limit: String(limit) } },
|
|
817
|
+
options
|
|
818
|
+
});
|
|
819
|
+
return readBody(payload, path);
|
|
820
|
+
},
|
|
821
|
+
async readQueryBans(indexName, options) {
|
|
822
|
+
const path = pathOf(indexName, "/bans");
|
|
823
|
+
return readArray(await send("GET", path, void 0, options), "bans", path);
|
|
824
|
+
},
|
|
825
|
+
async replaceQueryBans(indexName, bans, options) {
|
|
826
|
+
const path = pathOf(indexName, "/bans");
|
|
827
|
+
return readArray(await send("PUT", path, { bans }, options), "bans", path);
|
|
828
|
+
},
|
|
829
|
+
async removeQuery(indexName, query, options) {
|
|
830
|
+
const path = pathOf(indexName, "/remove");
|
|
831
|
+
return readNumber(await send("POST", path, { query }, options), "suggestionIndexes", path);
|
|
832
|
+
},
|
|
833
|
+
async addManualSuggestion(indexName, suggestion, options) {
|
|
834
|
+
const path = pathOf(indexName, "/manual");
|
|
835
|
+
return readString(await send("POST", path, suggestion, options), "indexName", path);
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
778
840
|
// src/client/search.ts
|
|
779
841
|
function createSearchOperations(transport) {
|
|
780
842
|
async function post(path, params, options) {
|
|
@@ -978,7 +1040,8 @@ function createNarsilClient(options) {
|
|
|
978
1040
|
...createAdminOperations(transport),
|
|
979
1041
|
...createBackupOperations(transport),
|
|
980
1042
|
...createServerOperations(transport),
|
|
981
|
-
...createSyncSettingOperations(transport)
|
|
1043
|
+
...createSyncSettingOperations(transport),
|
|
1044
|
+
...createQuerySuggestionOperations(transport)
|
|
982
1045
|
};
|
|
983
1046
|
}
|
|
984
1047
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { targetOfPending } from './chunks/chunk-
|
|
1
|
+
import { targetOfPending } from './chunks/chunk-U4KSKA4Z.mjs';
|
|
2
2
|
import './chunks/chunk-3NQOVO3K.mjs';
|
|
3
3
|
import { withOpenIndex, oneAtATime, emitSyncChange } from './chunks/chunk-JDOEEMEF.mjs';
|
|
4
|
-
import { encodeStringBlob, tokenize, encodeLookupKey } from './chunks/chunk-
|
|
5
|
-
import { resolveIndexAnalysis } from './chunks/chunk-
|
|
6
|
-
import './chunks/chunk-
|
|
7
|
-
import { compareCodePoints } from './chunks/chunk-
|
|
8
|
-
import './chunks/chunk-
|
|
9
|
-
import { NarsilError, ErrorCodes } from './chunks/chunk-
|
|
4
|
+
import { encodeStringBlob, tokenize, encodeLookupKey } from './chunks/chunk-2PRHILX3.mjs';
|
|
5
|
+
import { resolveIndexAnalysis } from './chunks/chunk-MJDQU5MW.mjs';
|
|
6
|
+
import './chunks/chunk-3WI35N75.mjs';
|
|
7
|
+
import { compareCodePoints } from './chunks/chunk-EJ33LCHV.mjs';
|
|
8
|
+
import './chunks/chunk-FTZHMRD2.mjs';
|
|
9
|
+
import { NarsilError, ErrorCodes } from './chunks/chunk-DZ7H7D2C.mjs';
|
|
10
10
|
import { encode, decode } from '@msgpack/msgpack';
|
|
11
11
|
|
|
12
12
|
// src/core/synonyms/constants.ts
|
|
@@ -22,14 +22,49 @@ var SYNONYM_EXPANSION_CACHE_ENTRIES = 1024;
|
|
|
22
22
|
// src/core/synonyms/combined-postings.ts
|
|
23
23
|
var NO_DELETED = { size: 0, has: () => false };
|
|
24
24
|
var FIELD_SLOTS = 65536;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
var NO_ROW = -1;
|
|
26
|
+
var rowOfField = null;
|
|
27
|
+
function addRow(combined, rowOf, docId, field, frequency) {
|
|
28
|
+
combined.totalTermFrequency += frequency;
|
|
29
|
+
const existing = rowOf[field];
|
|
30
|
+
if (existing !== NO_ROW) {
|
|
31
|
+
combined.frequencies[existing] += frequency;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
rowOf[field] = combined.docIds.length;
|
|
35
|
+
combined.docIds.push(docId);
|
|
36
|
+
combined.fieldNameIndices.push(field);
|
|
37
|
+
combined.frequencies.push(frequency);
|
|
38
|
+
combined.documents.add(docId);
|
|
39
|
+
}
|
|
40
|
+
function lowestDocumentAt(lists, cursors) {
|
|
41
|
+
let lowest = Number.POSITIVE_INFINITY;
|
|
42
|
+
for (let at = 0; at < lists.length; at++) {
|
|
43
|
+
if (cursors[at] < lists[at].length && lists[at].docIds[cursors[at]] < lowest) lowest = lists[at].docIds[cursors[at]];
|
|
44
|
+
}
|
|
45
|
+
return lowest;
|
|
46
|
+
}
|
|
47
|
+
function mergeOrderedLists(lists, combined) {
|
|
48
|
+
rowOfField ??= new Int32Array(FIELD_SLOTS).fill(NO_ROW);
|
|
49
|
+
const rowOf = rowOfField;
|
|
50
|
+
const cursors = new Uint32Array(lists.length);
|
|
51
|
+
for (let docId = lowestDocumentAt(lists, cursors); docId !== Number.POSITIVE_INFINITY; ) {
|
|
52
|
+
const runStart = combined.docIds.length;
|
|
53
|
+
for (let at = 0; at < lists.length; at++) {
|
|
54
|
+
const list = lists[at];
|
|
55
|
+
const deleted = list.deletedDocs.size > 0 && list.deletedDocs.has(docId);
|
|
56
|
+
let row = cursors[at];
|
|
57
|
+
for (; row < list.length && list.docIds[row] === docId; row++) {
|
|
58
|
+
if (!deleted) addRow(combined, rowOf, docId, list.fieldNameIndices[row], list.termFrequencies[row]);
|
|
59
|
+
}
|
|
60
|
+
cursors[at] = row;
|
|
61
|
+
}
|
|
62
|
+
for (let row = runStart; row < combined.docIds.length; row++) rowOf[combined.fieldNameIndices[row]] = NO_ROW;
|
|
63
|
+
docId = lowestDocumentAt(lists, cursors);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function combineUnorderedLists(lists, combined) {
|
|
27
67
|
const rowOf = /* @__PURE__ */ new Map();
|
|
28
|
-
const docIds = [];
|
|
29
|
-
const fieldNameIndices = [];
|
|
30
|
-
const frequencies = [];
|
|
31
|
-
const documents = /* @__PURE__ */ new Set();
|
|
32
|
-
let totalTermFrequency = 0;
|
|
33
68
|
for (const list of lists) {
|
|
34
69
|
const deleted = list.deletedDocs;
|
|
35
70
|
const hasDeleted = deleted.size > 0;
|
|
@@ -38,33 +73,66 @@ function combinePostingLists(lists) {
|
|
|
38
73
|
if (hasDeleted && deleted.has(docId)) continue;
|
|
39
74
|
const field = list.fieldNameIndices[row];
|
|
40
75
|
const frequency = list.termFrequencies[row];
|
|
41
|
-
totalTermFrequency += frequency;
|
|
76
|
+
combined.totalTermFrequency += frequency;
|
|
42
77
|
const key = docId * FIELD_SLOTS + field;
|
|
43
78
|
const existing = rowOf.get(key);
|
|
44
79
|
if (existing !== void 0) {
|
|
45
|
-
frequencies[existing] += frequency;
|
|
80
|
+
combined.frequencies[existing] += frequency;
|
|
46
81
|
continue;
|
|
47
82
|
}
|
|
48
|
-
rowOf.set(key, docIds.length);
|
|
49
|
-
docIds.push(docId);
|
|
50
|
-
fieldNameIndices.push(field);
|
|
51
|
-
frequencies.push(frequency);
|
|
52
|
-
documents.add(docId);
|
|
83
|
+
rowOf.set(key, combined.docIds.length);
|
|
84
|
+
combined.docIds.push(docId);
|
|
85
|
+
combined.fieldNameIndices.push(field);
|
|
86
|
+
combined.frequencies.push(frequency);
|
|
87
|
+
combined.documents.add(docId);
|
|
53
88
|
}
|
|
54
89
|
}
|
|
90
|
+
}
|
|
91
|
+
function rowsByDocument(docIds) {
|
|
92
|
+
const order = new Uint32Array(docIds.length);
|
|
93
|
+
for (let row = 0; row < order.length; row++) order[row] = row;
|
|
94
|
+
return order.sort((left, right) => docIds[left] - docIds[right] || left - right);
|
|
95
|
+
}
|
|
96
|
+
function listOf(combined, order) {
|
|
97
|
+
const length = combined.docIds.length;
|
|
98
|
+
const docIds = new Uint32Array(length);
|
|
99
|
+
const termFrequencies = new Float64Array(length);
|
|
100
|
+
const fieldNameIndices = new Uint16Array(length);
|
|
101
|
+
for (let at = 0; at < length; at++) {
|
|
102
|
+
const row = order === null ? at : order[at];
|
|
103
|
+
docIds[at] = combined.docIds[row];
|
|
104
|
+
termFrequencies[at] = combined.frequencies[row];
|
|
105
|
+
fieldNameIndices[at] = combined.fieldNameIndices[row];
|
|
106
|
+
}
|
|
55
107
|
return {
|
|
56
|
-
length
|
|
57
|
-
docIds
|
|
58
|
-
termFrequencies
|
|
59
|
-
fieldNameIndices
|
|
108
|
+
length,
|
|
109
|
+
docIds,
|
|
110
|
+
termFrequencies,
|
|
111
|
+
fieldNameIndices,
|
|
60
112
|
positions: null,
|
|
61
|
-
docIdSet: documents,
|
|
113
|
+
docIdSet: combined.documents,
|
|
62
114
|
deletedDocs: NO_DELETED,
|
|
63
|
-
totalTermFrequency,
|
|
115
|
+
totalTermFrequency: combined.totalTermFrequency,
|
|
64
116
|
structureRevision: 0,
|
|
65
117
|
ordered: false
|
|
66
118
|
};
|
|
67
119
|
}
|
|
120
|
+
function combinePostingLists(lists) {
|
|
121
|
+
if (lists.length === 1) return lists[0];
|
|
122
|
+
const combined = {
|
|
123
|
+
docIds: [],
|
|
124
|
+
fieldNameIndices: [],
|
|
125
|
+
frequencies: [],
|
|
126
|
+
documents: /* @__PURE__ */ new Set(),
|
|
127
|
+
totalTermFrequency: 0
|
|
128
|
+
};
|
|
129
|
+
if (lists.every((list) => list.ordered)) {
|
|
130
|
+
mergeOrderedLists(lists, combined);
|
|
131
|
+
return listOf(combined, null);
|
|
132
|
+
}
|
|
133
|
+
combineUnorderedLists(lists, combined);
|
|
134
|
+
return listOf(combined, rowsByDocument(combined.docIds));
|
|
135
|
+
}
|
|
68
136
|
|
|
69
137
|
// src/core/synonyms/expand.ts
|
|
70
138
|
function groupSynonymsOf(tokens) {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { N as NarsilError, L as ListParams, l as ListResult, I as IndexInfo,
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './
|
|
3
|
-
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-
|
|
1
|
+
import { g as Narsil, N as NarsilError, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, Q as QueryParams, o as PreflightResult, h as QueryResult, m as SuggestParams, n as SuggestResult } from './engine-CFxPYqEk.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './engine-CFxPYqEk.js';
|
|
3
|
+
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-qrJojgST.js';
|
|
4
|
+
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-qrJojgST.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as
|
|
7
|
-
import {
|
|
8
|
-
import { A as AnyDocument } from './schema-DDauvDOv.js';
|
|
9
|
-
import './config-05G_hy-1.js';
|
|
10
|
-
import './config-B8DP2VwR.js';
|
|
6
|
+
import { N as NarsilClient, I as ImportSource } from './client-DRv7UVeY.js';
|
|
7
|
+
import { A as AnyDocument } from './schema-Jwt928nJ.js';
|
|
11
8
|
import './adapters-pljAqmrC.js';
|
|
12
|
-
import './
|
|
13
|
-
import './types-DvncmvuQ.js';
|
|
9
|
+
import './query-suggestions-CBYkrQ5T.js';
|
|
14
10
|
import './synonyms-CpOAHPa-.js';
|
|
11
|
+
import './config-DMwffLKn.js';
|
|
12
|
+
import './config-CoSig5Ox.js';
|
|
13
|
+
import './index-C4AmUnl1.js';
|
|
14
|
+
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* These settings apply to {@link NarsilProvider} whether it holds a client or
|
package/dist/react.mjs
CHANGED
|
@@ -41,6 +41,7 @@ var ErrorCodes = {
|
|
|
41
41
|
SYNC_NOT_READY: "SYNC_NOT_READY",
|
|
42
42
|
SYNC_NOT_ENABLED: "SYNC_NOT_ENABLED",
|
|
43
43
|
SYNC_SNAPSHOT_PREPARING: "SYNC_SNAPSHOT_PREPARING",
|
|
44
|
+
QUERY_SUGGESTIONS_NOT_ENABLED: "QUERY_SUGGESTIONS_NOT_ENABLED",
|
|
44
45
|
SEARCH_INVALID_FIELD: "SEARCH_INVALID_FIELD",
|
|
45
46
|
VECTOR_DIMENSION_MISMATCH: "VECTOR_DIMENSION_MISMATCH",
|
|
46
47
|
SEARCH_INVALID_FILTER: "SEARCH_INVALID_FILTER",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { runRerankedQuery, rerankTextOf } from './chunk-
|
|
1
|
+
import { runRerankedQuery, rerankTextOf } from './chunk-2NE7VCYE.mjs';
|
|
2
2
|
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import { rerankOnHost } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { rerankOnHost } from './chunk-KHKIRS5D.mjs';
|
|
4
|
+
import './chunk-6OEGXLBX.mjs';
|
|
5
5
|
import './chunk-HJSN7UYG.mjs';
|
|
6
6
|
import './chunk-EEBCDP36.mjs';
|
|
7
7
|
import './chunk-FQBFZAWG.mjs';
|
|
8
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
8
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
9
9
|
|
|
10
10
|
// src/distribution/cluster-node/reads/rerank.ts
|
|
11
11
|
async function rerankClusterQuery(deps, indexName, params, firstStage, readDocuments, host) {
|
package/dist/rerankers/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { ErrorCodes, NarsilError } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-HJJI72X7.mjs';
|
|
2
|
+
import { ErrorCodes, NarsilError } from '../chunk-MP7ABPTD.mjs';
|
|
3
3
|
|
|
4
4
|
// src/rerankers/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { installSuggestionHooks, clearLeftoversOfName } from './chunk-RDXO6JST.mjs';
|
|
2
|
+
import { attachedRuntimeOf } from './chunk-S5LN746F.mjs';
|
|
3
|
+
import { RestoredHistory } from './chunk-DP5C7YFQ.mjs';
|
|
4
|
+
import './chunk-KP7TYHWT.mjs';
|
|
5
|
+
import { withState, unionOfBans } from './chunk-XXHN7J46.mjs';
|
|
6
|
+
import './chunk-YTWZVGCB.mjs';
|
|
7
|
+
import './chunk-SA5LOGO3.mjs';
|
|
8
|
+
import './chunk-GQPTDQCL.mjs';
|
|
9
|
+
import { BUILD_WRITE_BATCH } from './chunk-5YNRKI2C.mjs';
|
|
10
|
+
import { emitEngineEvent, removeDocumentBatch } from './chunk-EFBDHH5P.mjs';
|
|
11
|
+
import './chunk-I53G4JAU.mjs';
|
|
12
|
+
import './chunk-HJSN7UYG.mjs';
|
|
13
|
+
import './chunk-LHKOSI2J.mjs';
|
|
14
|
+
import './chunk-XIHUI4KB.mjs';
|
|
15
|
+
import './chunk-3MXV3VHR.mjs';
|
|
16
|
+
import './chunk-EEBCDP36.mjs';
|
|
17
|
+
import './chunk-VTTRFF2C.mjs';
|
|
18
|
+
import './chunk-P5ZI2P2W.mjs';
|
|
19
|
+
import './chunk-GH4WQ22V.mjs';
|
|
20
|
+
import './chunk-3OH67G7R.mjs';
|
|
21
|
+
import './chunk-IPN7S4KX.mjs';
|
|
22
|
+
import './chunk-KAKQ74LS.mjs';
|
|
23
|
+
import './chunk-7GXJUJ24.mjs';
|
|
24
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
25
|
+
import './chunk-CITFCZKF.mjs';
|
|
26
|
+
import './chunk-RLOES5SX.mjs';
|
|
27
|
+
import './chunk-L6V6BST3.mjs';
|
|
28
|
+
import './chunk-SQJWAIF4.mjs';
|
|
29
|
+
import './chunk-FQBFZAWG.mjs';
|
|
30
|
+
import './chunk-BU4SAIC4.mjs';
|
|
31
|
+
import './chunk-GES7U2PM.mjs';
|
|
32
|
+
import './chunk-I54T6CQP.mjs';
|
|
33
|
+
import './chunk-I5B7RXU7.mjs';
|
|
34
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
35
|
+
import './chunk-RZWWB2XR.mjs';
|
|
36
|
+
import './chunk-TGP5M5R7.mjs';
|
|
37
|
+
import './chunk-G6HRSGOU.mjs';
|
|
38
|
+
import './chunk-U2BKYEC7.mjs';
|
|
39
|
+
import './chunk-6HTGOXIK.mjs';
|
|
40
|
+
import './chunk-QHPYS427.mjs';
|
|
41
|
+
import './chunk-QYRNLLLI.mjs';
|
|
42
|
+
import './chunk-TDIK6NTV.mjs';
|
|
43
|
+
import './chunk-FB6463IN.mjs';
|
|
44
|
+
import './chunk-7GFE3PEY.mjs';
|
|
45
|
+
import './chunk-ZXNQEW43.mjs';
|
|
46
|
+
import './chunk-7V5IUP2T.mjs';
|
|
47
|
+
import './chunk-L5ORED7V.mjs';
|
|
48
|
+
import './chunk-X5CV2E2B.mjs';
|
|
49
|
+
import './chunk-A4L7YTKX.mjs';
|
|
50
|
+
import './chunk-U55XJEIG.mjs';
|
|
51
|
+
import './chunk-KOKM4PQN.mjs';
|
|
52
|
+
import './chunk-ORN5BLL7.mjs';
|
|
53
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
54
|
+
import './chunk-LQG5G2LY.mjs';
|
|
55
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
56
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
57
|
+
import './chunk-KKQC526K.mjs';
|
|
58
|
+
import './chunk-U476IXKQ.mjs';
|
|
59
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
60
|
+
import './chunk-J4IJTTEX.mjs';
|
|
61
|
+
import './chunk-TBC3XUL2.mjs';
|
|
62
|
+
|
|
63
|
+
// src/query-suggestions/restore-hooks.ts
|
|
64
|
+
function warn(core, event) {
|
|
65
|
+
if (emitEngineEvent(core.eventHandlers, "querySuggestionsWarning", event) > 0) return;
|
|
66
|
+
console.warn("Popular query suggestions warning:", event);
|
|
67
|
+
}
|
|
68
|
+
function requireNoSyncConflict(indexName, entry) {
|
|
69
|
+
if (entry.sync === null || entry.querySuggestions?.querySuggestions?.enabled !== true) return;
|
|
70
|
+
throw new NarsilError(
|
|
71
|
+
ErrorCodes.CONFIG_INVALID,
|
|
72
|
+
`Index "${indexName}" has device sync on, and the archive turns popular query suggestions on, which a synced index cannot hold`,
|
|
73
|
+
{ indexName }
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
async function removeFromOthers(core, engine, indexName, bans) {
|
|
77
|
+
for (const [name, other] of core.indexRegistry) {
|
|
78
|
+
if (name === indexName || other.querySuggestions?.querySuggestionsSource?.index !== indexName) continue;
|
|
79
|
+
for (let start = 0; start < bans.length; start += BUILD_WRITE_BATCH) {
|
|
80
|
+
const result = await engine.removeBatch(name, bans.slice(start, start + BUILD_WRITE_BATCH));
|
|
81
|
+
const failure = result.failed.find((failed) => failed.error.code !== ErrorCodes.DOC_NOT_FOUND);
|
|
82
|
+
if (failure !== void 0) throw failure.error;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function removeFromRestored(core, indexName, bans) {
|
|
87
|
+
for (let start = 0; start < bans.length; start += BUILD_WRITE_BATCH) {
|
|
88
|
+
const result = await removeDocumentBatch(core.mutationCtx, indexName, bans.slice(start, start + BUILD_WRITE_BATCH));
|
|
89
|
+
const failure = result.failed.find((failed) => failed.error.code !== ErrorCodes.DOC_NOT_FOUND);
|
|
90
|
+
if (failure !== void 0) throw failure.error;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function applyBans(core, engine, indexName, entry) {
|
|
94
|
+
const bans = entry.querySuggestions?.bannedQueries ?? [];
|
|
95
|
+
if (bans.length > 0) await removeFromOthers(core, engine, indexName, bans);
|
|
96
|
+
const marker = entry.querySuggestions?.querySuggestionsSource;
|
|
97
|
+
if (marker === void 0 || marker.index === indexName) return;
|
|
98
|
+
const sourceBans = core.indexRegistry.get(marker.index)?.querySuggestions?.bannedQueries ?? [];
|
|
99
|
+
if (sourceBans.length > 0) await removeFromRestored(core, indexName, sourceBans);
|
|
100
|
+
}
|
|
101
|
+
function restoreSuggestionHooksOf(core, engine, indexName) {
|
|
102
|
+
installSuggestionHooks(core);
|
|
103
|
+
return {
|
|
104
|
+
async historySink(restored) {
|
|
105
|
+
return attachedRuntimeOf(core)?.restoredHistory(indexName, restored?.querySuggestions) ?? null;
|
|
106
|
+
},
|
|
107
|
+
async beforeInstall(entry, previous) {
|
|
108
|
+
requireNoSyncConflict(indexName, entry);
|
|
109
|
+
const previousBans = previous?.querySuggestions?.bannedQueries ?? [];
|
|
110
|
+
if (previousBans.length > 0) {
|
|
111
|
+
const restoredBans = entry.querySuggestions?.bannedQueries ?? [];
|
|
112
|
+
entry.querySuggestions = withState(entry.querySuggestions, {
|
|
113
|
+
bannedQueries: unionOfBans(previousBans, restoredBans)
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
if (previous === void 0) await clearLeftoversOfName(core, indexName);
|
|
117
|
+
},
|
|
118
|
+
async afterActivate(entry) {
|
|
119
|
+
try {
|
|
120
|
+
await applyBans(core, engine, indexName, entry);
|
|
121
|
+
} catch (error) {
|
|
122
|
+
warn(core, {
|
|
123
|
+
indexName,
|
|
124
|
+
reason: "ban-removal-failed",
|
|
125
|
+
message: error instanceof Error ? error.message : String(error)
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
async afterInstall(entry, history) {
|
|
130
|
+
const runtime = attachedRuntimeOf(core);
|
|
131
|
+
const enabled = entry.querySuggestions?.querySuggestions?.enabled === true;
|
|
132
|
+
try {
|
|
133
|
+
if (!enabled) {
|
|
134
|
+
if (runtime !== void 0) await runtime.discardHistory(indexName);
|
|
135
|
+
else await core.durability?.manager.removeQueryHistory?.(indexName);
|
|
136
|
+
} else if (runtime === void 0 || runtime.scrambler === null) {
|
|
137
|
+
warn(core, { indexName, reason: "no-key" });
|
|
138
|
+
} else if (history instanceof RestoredHistory) {
|
|
139
|
+
await history.commit();
|
|
140
|
+
}
|
|
141
|
+
} catch (error) {
|
|
142
|
+
warn(core, {
|
|
143
|
+
indexName,
|
|
144
|
+
reason: "save-failed",
|
|
145
|
+
message: error instanceof Error ? error.message : String(error)
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
runtime?.settingChanged(indexName);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export { restoreSuggestionHooksOf };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { abandonChangeOf } from './chunk-KF4EXSM4.mjs';
|
|
2
|
+
import { attachedRuntimeOf } from './chunk-S5LN746F.mjs';
|
|
3
|
+
|
|
4
|
+
// src/narsil/restore-queue.ts
|
|
5
|
+
function suggestionsInPlay(core, ...entries) {
|
|
6
|
+
return core.querySuggestionHooks !== void 0 || entries.some((entry) => (entry?.querySuggestions ?? null) !== null);
|
|
7
|
+
}
|
|
8
|
+
function suggestionHooksLoadedOnUse(core, engine, indexName) {
|
|
9
|
+
let loaded = null;
|
|
10
|
+
const load = () => {
|
|
11
|
+
loaded ??= import('./restore-hooks-CDERDEF4.mjs').then(
|
|
12
|
+
({ restoreSuggestionHooksOf }) => restoreSuggestionHooksOf(core, engine, indexName)
|
|
13
|
+
);
|
|
14
|
+
return loaded;
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
historySink: async (restored) => attachedRuntimeOf(core)?.restoredHistory(indexName, restored?.querySuggestions) ?? null,
|
|
18
|
+
async beforeInstall(entry, previous) {
|
|
19
|
+
if (suggestionsInPlay(core, entry, previous)) await (await load()).beforeInstall(entry, previous);
|
|
20
|
+
},
|
|
21
|
+
async afterActivate(entry) {
|
|
22
|
+
if (suggestionsInPlay(core, entry)) await (await load()).afterActivate(entry);
|
|
23
|
+
},
|
|
24
|
+
async afterInstall(entry, history) {
|
|
25
|
+
if (suggestionsInPlay(core, entry) || history !== null) await (await load()).afterInstall(entry, history);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function restoreDepsOf(core, host, engine, indexName) {
|
|
30
|
+
return {
|
|
31
|
+
...host,
|
|
32
|
+
querySuggestions: suggestionHooksLoadedOnUse(core, engine, indexName),
|
|
33
|
+
executor: core.executor,
|
|
34
|
+
indexRegistry: core.indexRegistry,
|
|
35
|
+
durability: core.durability,
|
|
36
|
+
filesystemDurability: core.filesystemDurability,
|
|
37
|
+
embeddingAdapters: core.embeddingAdapters,
|
|
38
|
+
markAnalysisStale: core.analysisRebuild.markStale,
|
|
39
|
+
clearAnalysisStale: core.analysisRebuild.clearStale,
|
|
40
|
+
abandonAnalysisRebuild: async (indexName2) => {
|
|
41
|
+
await core.analysisRebuild.abandon(indexName2);
|
|
42
|
+
await abandonChangeOf(core, indexName2);
|
|
43
|
+
},
|
|
44
|
+
abandonAnalysisChange: (indexName2) => abandonChangeOf(core, indexName2),
|
|
45
|
+
indexState: core.indexState,
|
|
46
|
+
copies: core.orchestrator,
|
|
47
|
+
forgetWatermark: core.watermarkNotifier.forget
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
async function runRestore(core, host, indexName, data, engine) {
|
|
51
|
+
const { restoreFromSnapshot } = await import('./snapshot-RH4NSKIZ.mjs');
|
|
52
|
+
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host, engine, indexName));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { runRestore };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-I2KPOLOZ.mjs';
|
|
2
|
+
import './chunk-YEKL4JBK.mjs';
|
|
3
|
+
import './chunk-TZTRKM33.mjs';
|
|
4
|
+
import './chunk-ZYAY26KG.mjs';
|
|
5
|
+
import './chunk-QJVOLKU6.mjs';
|
|
6
|
+
import './chunk-MQOJIO5B.mjs';
|
|
7
|
+
import './chunk-4KKXNJM6.mjs';
|
|
8
|
+
import './chunk-K4ZIGL2O.mjs';
|
|
9
|
+
import './chunk-BUMREPLU.mjs';
|
|
10
|
+
import './chunk-37CD3OKS.mjs';
|
|
11
|
+
import './chunk-NF4DT3IH.mjs';
|
|
12
|
+
import './chunk-QDZJM7NI.mjs';
|
|
13
|
+
import './chunk-V6EUBAIT.mjs';
|
|
14
|
+
import './chunk-5YNRKI2C.mjs';
|
|
15
|
+
import './chunk-EFBDHH5P.mjs';
|
|
16
|
+
import './chunk-I53G4JAU.mjs';
|
|
17
|
+
import './chunk-HJSN7UYG.mjs';
|
|
18
|
+
import './chunk-LHKOSI2J.mjs';
|
|
19
|
+
import './chunk-XIHUI4KB.mjs';
|
|
20
|
+
import './chunk-3MXV3VHR.mjs';
|
|
21
|
+
import './chunk-EEBCDP36.mjs';
|
|
22
|
+
import './chunk-VTTRFF2C.mjs';
|
|
23
|
+
import './chunk-P5ZI2P2W.mjs';
|
|
24
|
+
import './chunk-GH4WQ22V.mjs';
|
|
25
|
+
import './chunk-3OH67G7R.mjs';
|
|
26
|
+
import './chunk-IPN7S4KX.mjs';
|
|
27
|
+
import './chunk-KAKQ74LS.mjs';
|
|
28
|
+
import './chunk-7GXJUJ24.mjs';
|
|
29
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
30
|
+
import './chunk-CITFCZKF.mjs';
|
|
31
|
+
import './chunk-RLOES5SX.mjs';
|
|
32
|
+
import './chunk-L6V6BST3.mjs';
|
|
33
|
+
import './chunk-SQJWAIF4.mjs';
|
|
34
|
+
import './chunk-FQBFZAWG.mjs';
|
|
35
|
+
import './chunk-BU4SAIC4.mjs';
|
|
36
|
+
import './chunk-GES7U2PM.mjs';
|
|
37
|
+
import './chunk-I54T6CQP.mjs';
|
|
38
|
+
import './chunk-I5B7RXU7.mjs';
|
|
39
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
40
|
+
import './chunk-RZWWB2XR.mjs';
|
|
41
|
+
import './chunk-TGP5M5R7.mjs';
|
|
42
|
+
import './chunk-G6HRSGOU.mjs';
|
|
43
|
+
import './chunk-U2BKYEC7.mjs';
|
|
44
|
+
import './chunk-6HTGOXIK.mjs';
|
|
45
|
+
import './chunk-QHPYS427.mjs';
|
|
46
|
+
import './chunk-QYRNLLLI.mjs';
|
|
47
|
+
import './chunk-TDIK6NTV.mjs';
|
|
48
|
+
import './chunk-FB6463IN.mjs';
|
|
49
|
+
import './chunk-7GFE3PEY.mjs';
|
|
50
|
+
import './chunk-ZXNQEW43.mjs';
|
|
51
|
+
import './chunk-7V5IUP2T.mjs';
|
|
52
|
+
import './chunk-L5ORED7V.mjs';
|
|
53
|
+
import './chunk-X5CV2E2B.mjs';
|
|
54
|
+
import './chunk-A4L7YTKX.mjs';
|
|
55
|
+
import './chunk-U55XJEIG.mjs';
|
|
56
|
+
import './chunk-KOKM4PQN.mjs';
|
|
57
|
+
import './chunk-ORN5BLL7.mjs';
|
|
58
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
59
|
+
import './chunk-LQG5G2LY.mjs';
|
|
60
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
61
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
62
|
+
import './chunk-KKQC526K.mjs';
|
|
63
|
+
import './chunk-U476IXKQ.mjs';
|
|
64
|
+
import './chunk-MP7ABPTD.mjs';
|
|
65
|
+
import './chunk-J4IJTTEX.mjs';
|
|
66
|
+
import './chunk-TBC3XUL2.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { runRerankedQuery, rerankTextOf } from './chunk-
|
|
1
|
+
import { runRerankedQuery, rerankTextOf } from './chunk-2NE7VCYE.mjs';
|
|
2
2
|
export { withRerankQueryText } from './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import { rerankOnHost } from './chunk-
|
|
4
|
-
export { rerankOnHost } from './chunk-
|
|
5
|
-
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-
|
|
3
|
+
import { rerankOnHost } from './chunk-KHKIRS5D.mjs';
|
|
4
|
+
export { rerankOnHost } from './chunk-KHKIRS5D.mjs';
|
|
5
|
+
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-6OEGXLBX.mjs';
|
|
6
6
|
import { MIN_RERANK_TIMEOUT_MS, MAX_RERANK_TIMEOUT_MS, MIN_RERANK_WINDOW, MAX_RERANK_WINDOW, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_RERANK_TIMEOUT_MS } from './chunk-HJSN7UYG.mjs';
|
|
7
7
|
import './chunk-EEBCDP36.mjs';
|
|
8
8
|
import { HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
|
|
9
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
9
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
10
10
|
|
|
11
11
|
// src/engine/query/hybrid-depth.ts
|
|
12
12
|
function countOfUnion(text, vectorScored) {
|
|
@@ -392,4 +392,4 @@ interface InsertOptions extends WriteOptions {
|
|
|
392
392
|
skipClone?: boolean;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
export type { AnyDocument as A, BM25Params as B, CustomTokenizer as C, EmbeddingFieldConfig as E, FieldType as F, IndexConfig as I, PartitionConfig as P, SchemaDefinition as S, TextFieldOption as T, VectorIndexConfig as V, WriteOptions as W, InsertOptions as a,
|
|
395
|
+
export type { AnyDocument as A, BM25Params as B, CustomTokenizer as C, EmbeddingFieldConfig as E, FieldType as F, IndexConfig as I, PartitionConfig as P, SchemaDefinition as S, TextFieldOption as T, VectorIndexConfig as V, WriteOptions as W, InsertOptions as a, StopWordOverride as b, BM25FieldParams as c, FieldOptionChain as d, ScoringMode as e, VectorQuantizationMode as f, VectorStorageMode as g };
|