@delali/narsil 0.3.1-next.154 → 0.3.1-next.155
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/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-3TFIHT5E.mjs} +25 -25
- package/dist/{react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs → analysis-change-entry-KA6JAO4X.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-IXWPXXJJ.mjs → analysis-change-TC36BU47.mjs} +29 -10
- package/dist/{analysis-change-entry-KYGSXW4K.mjs → browser/analysis-change-entry-4MH3CZXH.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-3UIEB4QF.mjs +63 -0
- package/dist/browser/{chunk-AJ4HHOVT.mjs → chunk-4EWUGZYZ.mjs} +4 -4
- package/dist/browser/{chunk-U2E3HMYW.mjs → chunk-4WCVMOU3.mjs} +1 -1
- package/dist/browser/{chunk-QXTPSX2H.mjs → chunk-56W3HQVJ.mjs} +7 -7
- package/dist/browser/{chunk-3U3QR5YP.mjs → chunk-5TCXK5SB.mjs} +2 -2
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/{chunk-J433A7P3.mjs → chunk-A5KUEGDY.mjs} +5 -5
- package/dist/browser/{chunk-XRV72TJD.mjs → chunk-ABCXENU5.mjs} +2 -2
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/{react-native/chunks/chunk-3XKMRNRE.mjs → browser/chunk-BXM5XOCA.mjs} +27 -10
- package/dist/browser/chunk-CJSYBQ4J.mjs +100 -0
- package/dist/{react-native/chunks/chunk-DCKMICOB.mjs → browser/chunk-EXQZGUQH.mjs} +1 -1
- package/dist/browser/{chunk-VCOYGVP7.mjs → chunk-FNIFPFB7.mjs} +3 -3
- package/dist/browser/{chunk-ML6HY7T7.mjs → chunk-G64Q6OJF.mjs} +1 -1
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/chunk-IKDKX5VQ.mjs +1007 -0
- package/dist/browser/{chunk-7TTWXUH6.mjs → chunk-JIJXMI42.mjs} +3 -2
- package/dist/browser/chunk-JVBP5EYO.mjs +1106 -0
- package/dist/browser/{chunk-2FX6ROWR.mjs → chunk-K4GCSZLI.mjs} +4 -4
- package/dist/browser/{chunk-EUNBNLKM.mjs → chunk-K5AXJBLL.mjs} +5 -5
- package/dist/browser/chunk-KKAMCABR.mjs +432 -0
- package/dist/browser/{chunk-7MEYN7V6.mjs → chunk-LFIWRCEA.mjs} +1 -9
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/{chunk-W5X2UFWQ.mjs → chunk-NLWTBAGB.mjs} +12 -3
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/browser/{chunk-G7LUMBSG.mjs → chunk-RND5CLX3.mjs} +28 -18
- package/dist/browser/{chunk-AYY6PIKL.mjs → chunk-RQBUNZQW.mjs} +2 -2
- package/dist/browser/{chunk-C4KS2QNF.mjs → chunk-RRO3EV4C.mjs} +9 -9
- package/dist/browser/{chunk-2SHAKW2Z.mjs → chunk-SMEQ36NT.mjs} +80 -134
- package/dist/{chunk-KUZKUONM.mjs → browser/chunk-SRMZXJSL.mjs} +1 -0
- package/dist/{react-native/chunks/chunk-3O57C2ZO.mjs → browser/chunk-SUDNZKPL.mjs} +2 -2
- package/dist/browser/{chunk-SJB6VIZG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/{chunk-H6QFBMVE.mjs → chunk-XY4VVBBO.mjs} +3 -3
- package/dist/browser/{cold-module-VTUGDYNY.mjs → cold-module-NEUGHUPA.mjs} +18 -17
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-GL4A7KDV.mjs → durability-wiring-CVGPRO6D.mjs} +46 -150
- package/dist/browser/engine-hooks-YXMPHZKZ.mjs +16 -0
- package/dist/browser/{import-YI5GNB4H.mjs → import-OM6QAW45.mjs} +10 -9
- package/dist/browser/{methods-LMUTS7OI.mjs → methods-KTQCSIN4.mjs} +3 -3
- package/dist/browser/{module-EC3FYW7N.mjs → module-3HNFCBJ5.mjs} +10 -9
- package/dist/browser/{module-M4JNBV6V.mjs → module-E33X4AOK.mjs} +14 -13
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-NPYUVX75.mjs → phrase-module-ZXXU7S3B.mjs} +1 -1
- package/dist/browser/{pool-WCGDZHJP.mjs → pool-3JLET5RO.mjs} +1 -1
- package/dist/browser/restore-hooks-IF2ZROUP.mjs +113 -0
- package/dist/browser/restore-queue-ZBS7CJA6.mjs +55 -0
- package/dist/browser/{retention-6QMRS5VK.mjs → retention-ASWUHAYI.mjs} +16 -14
- package/dist/browser/{runtime-3EW2AGB6.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-DN3CRVUQ.mjs → snapshot-PN7ZW6Q4.mjs} +65 -31
- package/dist/browser/start-ZIRB7MQ2.mjs +24 -0
- package/dist/browser/{write-WAWAFGKQ.mjs → write-HMDYCTV2.mjs} +14 -13
- package/dist/{capabilities-B3Brs1Rc.d.ts → capabilities-Da4ywVVl.d.ts} +35 -3
- package/dist/{chunk-K4B7OH65.mjs → chunk-2MANFZJ3.mjs} +2 -2
- package/dist/{chunk-O43Z4MS6.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/{chunk-3Y3J4V2R.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/{chunk-RVKFI3A2.mjs → chunk-3HB3PEC6.mjs} +11 -8
- package/dist/chunk-3HHQLEEQ.mjs +1092 -0
- package/dist/{chunk-HVYICDY3.mjs → chunk-3OH67G7R.mjs} +1 -1
- package/dist/{chunk-QKZHLADX.mjs → chunk-3R4UZWQG.mjs} +26 -17
- package/dist/{chunk-ZIFJXCKA.mjs → chunk-4BYWRYPM.mjs} +1 -1
- package/dist/{chunk-VMXSVVXG.mjs → chunk-4KRC2APY.mjs} +5 -5
- package/dist/{chunk-IQ4R2I6N.mjs → chunk-5FLRXF73.mjs} +5 -1
- package/dist/chunk-5FVU47TB.mjs +20 -0
- package/dist/chunk-5YNRKI2C.mjs +81 -0
- package/dist/chunk-6L3XJXGU.mjs +470 -0
- package/dist/{chunk-C6ASEFZI.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{browser/chunk-SIR3LMTV.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/{chunk-466PYR4P.mjs → chunk-AILVAOLX.mjs} +2 -2
- package/dist/chunk-BDRIVYOK.mjs +72 -0
- package/dist/{chunk-TRISKD4Q.mjs → chunk-BY6ZDGYS.mjs} +2 -2
- package/dist/{chunk-NZMAXR2S.mjs → chunk-DCNKVEDB.mjs} +121 -10
- package/dist/{chunk-C73JLU4E.mjs → chunk-DIBHI6W5.mjs} +2 -2
- package/dist/{chunk-VREK3MYG.mjs → chunk-DUOLGBTE.mjs} +3 -3
- package/dist/{chunk-USR7FQRZ.mjs → chunk-GH4WQ22V.mjs} +2 -2
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/chunk-H4KHPLHJ.mjs +382 -0
- package/dist/{chunk-K7KLL263.mjs → chunk-H6VIGE62.mjs} +12 -12
- package/dist/{chunk-YROWNOMH.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-37IVJLP6.mjs → chunk-HNVVEQP7.mjs} +1 -1
- package/dist/{chunk-PFKM7VNZ.mjs → chunk-HW5TNXBO.mjs} +28 -10
- package/dist/{chunk-3A5KI24C.mjs → chunk-I54T6CQP.mjs} +1 -1
- package/dist/{chunk-YBJDOA2T.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/{chunk-KCUIFVVW.mjs → chunk-J4IWBIVY.mjs} +9 -9
- package/dist/{chunk-AO2FAYIZ.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-7NTMUDC5.mjs → chunk-KBDBPVLN.mjs} +5 -5
- package/dist/{chunk-JFNKIBDT.mjs → chunk-KBKEXQZA.mjs} +2 -2
- package/dist/{chunk-REL7LFLR.mjs → chunk-KFLK5NA2.mjs} +3 -3
- package/dist/{chunk-WCBA2LVZ.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/{chunk-7QUGDVFC.mjs → chunk-KJ3RTZDJ.mjs} +1 -1
- package/dist/{chunk-LSM2YTKM.mjs → chunk-KMUNHGBQ.mjs} +81 -139
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-MMBEANB2.mjs → chunk-KPIV4RUC.mjs} +3 -3
- package/dist/{chunk-62G63NMH.mjs → chunk-KXCVQWOR.mjs} +4 -4
- package/dist/{chunk-TV2L3BN7.mjs → chunk-L7ZD4L3K.mjs} +263 -263
- package/dist/{chunk-OKX2BBNW.mjs → chunk-LC3FDWTX.mjs} +2 -2
- 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-MT2NRTA6.mjs +216 -0
- package/dist/{chunk-Q3TCTQCC.mjs → chunk-NF4DT3IH.mjs} +1 -1
- package/dist/{chunk-3OFU3NJT.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/{chunk-4HWZV5MK.mjs → chunk-PCRA7HTI.mjs} +5 -5
- package/dist/chunk-PHQNACDT.mjs +63 -0
- package/dist/{chunk-Q7MS6P2J.mjs → chunk-Q622CTMC.mjs} +2 -2
- package/dist/{chunk-HVKXNBFL.mjs → chunk-Q7G3BV3Y.mjs} +1 -1
- package/dist/{chunk-IBNLW3AV.mjs → chunk-QH3YIQP4.mjs} +20 -6
- package/dist/{chunk-B7S6YEBP.mjs → chunk-QJVOLKU6.mjs} +12 -3
- package/dist/chunk-QUJHMPTP.mjs +30 -0
- package/dist/{chunk-7HCZWC7B.mjs → chunk-RSVULW4Q.mjs} +49 -7
- package/dist/{chunk-YPUEV6ZC.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/{chunk-JCLTESFN.mjs → chunk-RZWWB2XR.mjs} +1 -1
- package/dist/{chunk-X6NSJYQ3.mjs → chunk-S2EQU2GE.mjs} +13 -13
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/{chunk-MMEMEUOO.mjs → chunk-SG3JBNHY.mjs} +2 -2
- package/dist/{chunk-LKUE5GXS.mjs → chunk-SMVH6JBE.mjs} +2 -2
- package/dist/{chunk-IJU7LL7D.mjs → chunk-SY3EWKQY.mjs} +5 -5
- package/dist/{chunk-CP5RRPJR.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-5KGYQT6W.mjs → chunk-U4BS74YN.mjs} +26 -9
- package/dist/{chunk-S2N75OTN.mjs → chunk-UHICS3JI.mjs} +1 -1
- package/dist/chunk-UZRZKNNZ.mjs +101 -0
- package/dist/{chunk-DMQPFLGI.mjs → chunk-VGF7CFRP.mjs} +5 -5
- package/dist/chunk-VHBNF4MA.mjs +543 -0
- package/dist/{chunk-BPSKLCS7.mjs → chunk-VQEUR6T6.mjs} +3 -3
- package/dist/{chunk-Z3TNWCI5.mjs → chunk-WQRN64Q6.mjs} +2 -2
- package/dist/{chunk-LTUGDMV4.mjs → chunk-WZ7YV54N.mjs} +1 -1
- package/dist/{chunk-NTZOXVUZ.mjs → chunk-YEDIDCR7.mjs} +3 -3
- package/dist/{chunk-PGVPE7GJ.mjs → chunk-YEKL4JBK.mjs} +1 -1
- package/dist/{chunk-5FUOVJKG.mjs → chunk-Z2BE2MAM.mjs} +13 -13
- package/dist/{chunk-HWEDFLB7.mjs → chunk-ZAUJFLEN.mjs} +10 -10
- package/dist/{chunk-MLHNSAPK.mjs → chunk-ZHCUZZE5.mjs} +2 -2
- package/dist/{chunk-ECX4SGX6.mjs → chunk-ZTW5WTGG.mjs} +9 -9
- 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-7XXCEGTZ.mjs} +35 -35
- 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-FI5GJHWX.mjs → direct-executor-G5TK7NLA.mjs} +16 -16
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +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 +6788 -5934
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-RHLXDIVF.mjs → durability-wiring-NCKUC5EO.mjs} +71 -175
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{sync-uXR7MmM7.d.ts → engine-CFxPYqEk.d.ts} +702 -2
- package/dist/engine-hooks-DHCMOADY.mjs +47 -0
- package/dist/{import-SRBNC6TE.mjs → import-NBFXFCSG.mjs} +26 -26
- package/dist/{index-nRqDM6uS.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +7 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +23 -23
- package/dist/index.react-native.mjs +13 -12
- package/dist/{long-query-thread-EMYTGSJP.mjs → long-query-thread-J4DVRM4A.mjs} +25 -24
- package/dist/{methods-ABM5ELBR.mjs → methods-7IOINERF.mjs} +3 -3
- package/dist/{module-MG7JMV2U.mjs → module-DWKPBSMN.mjs} +31 -31
- package/dist/{module-3OMJZUFT.mjs → module-UN76TF7I.mjs} +11 -11
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-UOLHOEZJ.mjs → paged-partition-archive-DPNWVSK2.mjs} +38 -34
- package/dist/partial-words.mjs +7 -7
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +8 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +32 -32
- package/dist/{phrase-module-O3MDRQXP.mjs → phrase-module-ZI4WSQVH.mjs} +1 -1
- 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 +81 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +246 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +62 -0
- package/dist/react-native/chunks/{analysis-change-EAYO3Y6Q.mjs → analysis-change-6BPDPH6K.mjs} +36 -17
- package/dist/{browser/analysis-change-entry-FCSHFQSS.mjs → react-native/chunks/analysis-change-entry-JLL42PH6.mjs} +1 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
- package/dist/react-native/chunks/{chunk-O32RB3BL.mjs → chunk-3JIBF3XT.mjs} +3 -3
- 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/{browser/chunk-TTD27VXX.mjs → react-native/chunks/chunk-4LCEN2IU.mjs} +27 -10
- package/dist/react-native/chunks/{chunk-AUT7PMA4.mjs → chunk-4Y53T4YE.mjs} +5 -5
- 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-7GRCBBME.mjs +63 -0
- package/dist/react-native/chunks/{chunk-7GWPJDOA.mjs → chunk-7PXRWYUU.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GFYFQLJD.mjs → chunk-ALOIBXWN.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-VQSKZ3EZ.mjs → chunk-C3PTWYKT.mjs} +8 -8
- 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-UWDNZDWK.mjs → chunk-CUH5F57W.mjs} +6 -6
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/react-native/chunks/{chunk-YBEW6YTR.mjs → chunk-DVDX4SDR.mjs} +2 -2
- package/dist/{browser/chunk-MYITLCHT.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +1 -0
- package/dist/react-native/chunks/{chunk-RYMDHGL4.mjs → chunk-EIOYM5TO.mjs} +5 -5
- package/dist/react-native/chunks/chunk-GIZTJXYW.mjs +1007 -0
- package/dist/react-native/chunks/{chunk-NP7DD4G5.mjs → chunk-GJFXPHXI.mjs} +5 -5
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-63YSZOXB.mjs → chunk-HUOYZJ3Q.mjs} +88 -142
- package/dist/react-native/chunks/{chunk-DH3TVWWK.mjs → chunk-IYNT75CE.mjs} +12 -3
- package/dist/react-native/chunks/{chunk-NCJS3WIY.mjs → chunk-JLIIWJUV.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KJIG57UD.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-JX2RIAXH.mjs → chunk-KTTAU63H.mjs} +5 -5
- package/dist/{browser/chunk-ZPTA75ZC.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-ZBSWRSBG.mjs → chunk-MJDQU5MW.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-IOY2SM2P.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-2CGSQM4O.mjs → chunk-N2WUOWLL.mjs} +12 -12
- package/dist/react-native/chunks/{chunk-YHKZSLOC.mjs → chunk-OL3WDV53.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-VVFYOADG.mjs → chunk-PEHS2UO3.mjs} +6 -6
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/chunk-QJXTNPLQ.mjs +100 -0
- package/dist/react-native/chunks/{chunk-EH5CFV6Z.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZYDKJXQJ.mjs → chunk-SUPXRTMD.mjs} +1 -1
- package/dist/react-native/chunks/chunk-TYIRMPD3.mjs +432 -0
- package/dist/react-native/chunks/{chunk-JPAJWO6D.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-I5PGWQJF.mjs → chunk-VXGE4ZXL.mjs} +31 -22
- package/dist/{chunk-DVWYODEB.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-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-TJL6AFAD.mjs → cold-module-5PHF6DZR.mjs} +24 -23
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-RRDYJLLM.mjs → durability-wiring-KO565FZC.mjs} +52 -156
- package/dist/react-native/chunks/engine-hooks-MVRRHH6B.mjs +28 -0
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
- package/dist/react-native/chunks/import-YVZA4V4V.mjs +30 -0
- package/dist/react-native/chunks/{methods-X6F36SJE.mjs → methods-6W5U4C3H.mjs} +3 -3
- package/dist/react-native/chunks/{module-S4DKSWMF.mjs → module-H5MVPSP2.mjs} +11 -10
- package/dist/react-native/chunks/{module-QT5HZAY4.mjs → module-ZL5ZG6YB.mjs} +20 -19
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-JZ37TB7N.mjs → phrase-module-RTVKEWJT.mjs} +1 -1
- package/dist/react-native/chunks/{pool-RTGXJXPU.mjs → pool-JR3NJCAF.mjs} +1 -1
- package/dist/react-native/chunks/restore-hooks-SILFPU6B.mjs +125 -0
- package/dist/react-native/chunks/restore-queue-HSYP2AEC.mjs +55 -0
- package/dist/react-native/chunks/{retention-PPCTP2VY.mjs → retention-7I7UAWYK.mjs} +21 -19
- package/dist/react-native/chunks/{runtime-KUATOLYB.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-ZBIEOZTZ.mjs → snapshot-EZYB6SLF.mjs} +70 -36
- package/dist/react-native/chunks/start-SHVZ72I5.mjs +36 -0
- package/dist/react-native/chunks/{write-2W4FTX7J.mjs → write-JUESXHDL.mjs} +20 -19
- package/dist/react-native/partial-words.mjs +7 -6
- package/dist/react-native/pattern.mjs +3 -3
- package/dist/react-native/query-suggestions.mjs +258 -0
- package/dist/react-native/sync.mjs +76 -13
- package/dist/react-native/synonyms.mjs +4 -4
- 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-HZ3ILAMO.mjs +146 -0
- package/dist/restore-queue-JVGENGGE.mjs +55 -0
- package/dist/{retention-55WA7GPU.mjs → retention-HROPV2QU.mjs} +33 -32
- 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 +293 -46
- package/dist/{snapshot-NFX2EYN2.mjs → snapshot-4HS2G2UM.mjs} +85 -54
- package/dist/start-UTWHGH42.mjs +59 -0
- package/dist/sync/filesystem.d.ts +4 -4
- package/dist/sync/filesystem.mjs +4 -4
- 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 +76 -14
- package/dist/synonyms.mjs +5 -5
- package/dist/{tasks-BShx8pdK.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/{thread-P2G2FWM2.mjs → thread-6MOXY2KD.mjs} +24 -23
- 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 +5 -5
- package/dist/workers/entry.mjs +8 -8
- package/dist/{write-FGB62BHQ.mjs → write-GTTWWRRG.mjs} +30 -30
- package/openapi.json +798 -7
- package/package.json +24 -7
- package/dist/browser/operations-WVYLF72Q.mjs +0 -5
- package/dist/browser/restore-queue-TYIGDL5L.mjs +0 -41
- package/dist/engine-DYu-e0oR.d.ts +0 -674
- 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/operations-RYKTSZQA.mjs +0 -5
- package/dist/react-native/chunks/restore-queue-ZBVIKJWI.mjs +0 -41
- package/dist/restore-queue-COI2GSSK.mjs +0 -41
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { emitSyncChange, withOpenIndex, oneAtATime } from './chunk-ML7THVLJ.mjs';
|
|
1
2
|
import { createRequestId, isValidWorkerResponse } from './chunk-VI7BQR4U.mjs';
|
|
2
3
|
import { DEFAULT_MAX_RERANK_WINDOW, DEFAULT_RERANK_TIMEOUT_MS } from './chunk-JPTQZWJQ.mjs';
|
|
3
|
-
import { parsedTypeOf, flattenSchema, isSingleStringFieldType, partialFieldsOf, resolveIndexAnalysis, schemaFieldsOf, isWordIndexedBase, MIN_PATTERN_VALUE_LIMIT, MAX_PATTERN_VALUE_LIMIT, requireWithinFileLimit, HEADER_SIZE, payloadByteLength, checksumOfChunks, packEnvelopeWithEngineVersion, INDEX_CONFIGURATION_ENVELOPE_VERSION, DEFAULT_PATTERN_VALUE_LIMIT, MAX_DOCUMENT_NESTING_DEPTH, PROTOTYPE_POLLUTION_KEYS, encodeDocument, isPlainObject, MAX_NESTING_DEPTH,
|
|
4
|
+
import { parsedTypeOf, flattenSchema, isSingleStringFieldType, partialFieldsOf, resolveIndexAnalysis, schemaFieldsOf, isWordIndexedBase, MIN_PATTERN_VALUE_LIMIT, MAX_PATTERN_VALUE_LIMIT, requireWithinFileLimit, HEADER_SIZE, payloadByteLength, checksumOfChunks, packEnvelopeWithEngineVersion, INDEX_CONFIGURATION_ENVELOPE_VERSION, validateSchema, requireCreatableSchema, getLanguage, DEFAULT_PATTERN_VALUE_LIMIT, MAX_DOCUMENT_NESTING_DEPTH, PROTOTYPE_POLLUTION_KEYS, encodeDocument, isPlainObject, MAX_NESTING_DEPTH, extractVectorFieldsFromSchema, isWordIndexedFieldType, readHeapStatistics, VECTOR_PATTERN, parseFieldType, isStringValuedBase, withSortableOption, isGeopointOrVectorType, isListBase, MAX_DOCUMENT_BYTES } from './chunk-JIJXMI42.mjs';
|
|
4
5
|
import { fnv1a, FNV_OFFSET_BASIS, fnv1aContinue, fnv1aContinueTaggedNumbers } from './chunk-RA6LSBCM.mjs';
|
|
5
6
|
import { TARGET_BLOCK_ENTRIES, bitsetHas, createBitSet, LOOKUP_KEY_SCRATCH_BYTES, GrowableUint32, SEGMENT_TOKEN_TABLE_START, SEGMENT_POSTING_LOG_START, SEGMENT_POSITION_POOL_START, SEGMENT_FIELD_SCRATCH_START, bitsetIsEmpty, bitsetSet, SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY, PRUNING_REJECTION_SLACK, bitsetOrInto, bitsetAndNotInto, bitsetAndInto, SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD, SORT_COLUMN_REBUILD_FRACTION_SHIFT, bitsetFromSet } from './chunk-26A5JFT2.mjs';
|
|
6
|
-
import { createDocIdMap,
|
|
7
|
-
import { splitWorkerBudget, resolveWorkerCount,
|
|
8
|
-
import { MAX_INDEX_CONFIGURATION_BYTES, ABSOLUTE_WINDOWS_PATH_PATTERN, MODULE_URL_SCHEME_PATTERN, MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, STATISTICS_BROADCAST_INTERVAL_MS,
|
|
9
|
-
import { singleFoldTable, appendFoldedCodePoint, EARLIER_RELEASE_MIN_M, MIN_M, MAX_M, compareCodePoints, toReducedSortValue, compareComparableValues, defaultSortMode,
|
|
10
|
-
import { DEFAULT_FUZZY_PREFIX_LENGTH, MAX_CURSOR_LENGTH, MAX_CURSOR_ANCHOR_CODE_POINTS, MAX_SORT_FIELDS, MAX_SORT_FIELD_NAME_LENGTH,
|
|
11
|
-
import {
|
|
12
|
-
import { ErrorCodes, NarsilError, createNarsilError } from './chunk-MYITLCHT.mjs';
|
|
7
|
+
import { createDocIdMap, turnsAreBudgeted, turnIsSpent, yieldTurn, indexChangeOutsideExternalWaits, changeIndexOutsideExternalWaits, detectRuntime, resolveWorkerEntry, missingWorkerEntry, countWrite, MIN_OVERSAMPLE, noteThreadSlotGone, threadSlotOfWorker } from './chunk-4WCVMOU3.mjs';
|
|
8
|
+
import { splitWorkerBudget, resolveWorkerCount, resolveRequestThreadCount, DEFAULT_REQUEST_TIMEOUT_MS, MAX_RENUMBERED_SEARCH_ATTEMPTS, SHUTDOWN_TIMEOUT_MS, DEFAULT_BACKPRESSURE_LIMIT, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH } from './chunk-TY7L6OXO.mjs';
|
|
9
|
+
import { MAX_INDEX_CONFIGURATION_BYTES, BATCH_CHUNK_SIZE, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN, MAX_DOC_ID_LENGTH, ABSOLUTE_WINDOWS_PATH_PATTERN, MODULE_URL_SCHEME_PATTERN, MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, STATISTICS_BROADCAST_INTERVAL_MS, HEAP_PRESSURE_WARNING_FRACTION, MAX_SUGGEST_LIMIT, FOREIGN_STATS_TTL_MS, DEFAULT_SUGGEST_LIMIT, DEFAULT_LIMIT, DEFAULT_OFFSET, MIN_DOCUMENTS_FOR_SEGMENTS, HEAP_PRESSURE_REARM_FRACTION } from './chunk-4RD3AFSB.mjs';
|
|
10
|
+
import { singleFoldTable, appendFoldedCodePoint, EARLIER_RELEASE_MIN_M, MIN_M, MAX_M, compareCodePoints, toReducedSortValue, compareComparableValues, defaultSortMode, holdsUnpairedSurrogate, readSortField, truncateSortString, exceedsCodePoints, toComparableSortValue, SORT_VALUE_MAX_CODE_POINTS, compareComparableKeys, sortModeOf, isSortMode, SORT_MODES, compareSortValues, codePointCount } from './chunk-LFIWRCEA.mjs';
|
|
11
|
+
import { BM25_DISPLAYED_NAME_LENGTH, DEFAULT_FUZZY_PREFIX_LENGTH, MAX_CURSOR_LENGTH, MAX_CURSOR_ANCHOR_CODE_POINTS, MAX_SORT_FIELDS, MAX_SORT_FIELD_NAME_LENGTH, RESULT_WINDOW, DEFAULT_LINEAR_ALPHA, MIN_LINEAR_ALPHA, MAX_LINEAR_ALPHA, DEFAULT_RANK_CONSTANT, MIN_RANK_CONSTANT, DEFAULT_PAGE_SIZE, DEFAULT_MAX_PER_GROUP, PREFIX_MAX_EXPANSIONS, MAX_TOLERANCE, MAX_PREFIX_LENGTH } from './chunk-WXLBZJMT.mjs';
|
|
12
|
+
import { ErrorCodes, NarsilError, createNarsilError } from './chunk-SRMZXJSL.mjs';
|
|
13
13
|
import { Decoder, decode, encode } from '@msgpack/msgpack';
|
|
14
14
|
|
|
15
15
|
// src/core/partition/partial-words/platform.browser.ts
|
|
@@ -646,7 +646,8 @@ var NARSIL_CONFIG_KEYS = {
|
|
|
646
646
|
lifecycle: true,
|
|
647
647
|
patternWorkCap: true,
|
|
648
648
|
events: true,
|
|
649
|
-
memory: true
|
|
649
|
+
memory: true,
|
|
650
|
+
querySuggestions: true
|
|
650
651
|
};
|
|
651
652
|
var EVENT_NAMES = {
|
|
652
653
|
write: true,
|
|
@@ -660,7 +661,9 @@ var EVENT_NAMES = {
|
|
|
660
661
|
layoutUpgrade: true,
|
|
661
662
|
checkpointHeld: true,
|
|
662
663
|
durabilityError: true,
|
|
663
|
-
invalidationError: true
|
|
664
|
+
invalidationError: true,
|
|
665
|
+
querySuggestionsBuild: true,
|
|
666
|
+
querySuggestionsWarning: true
|
|
664
667
|
};
|
|
665
668
|
var DURABILITY_CONFIG_KEYS = {
|
|
666
669
|
tier: true,
|
|
@@ -6301,7 +6304,7 @@ function requireLoadedPhraseCode() {
|
|
|
6301
6304
|
}
|
|
6302
6305
|
function loadPhraseCode() {
|
|
6303
6306
|
if (loading === null) {
|
|
6304
|
-
loading = import('./phrase-module-
|
|
6307
|
+
loading = import('./phrase-module-ZXXU7S3B.mjs').then(
|
|
6305
6308
|
(code) => {
|
|
6306
6309
|
loaded = code;
|
|
6307
6310
|
return code;
|
|
@@ -13812,7 +13815,7 @@ async function attachSegments(entry, action) {
|
|
|
13812
13815
|
growPartitionsTo(entry.manager, segment.partitionId);
|
|
13813
13816
|
const surfaceForms = segment.survivingSurfaceForms;
|
|
13814
13817
|
const spellings = surfaceForms === void 0 ? void 0 : NO_REMOVED_SPELLINGS;
|
|
13815
|
-
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-
|
|
13818
|
+
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-E33X4AOK.mjs')).createPagedFrozenSegment(segment.snapshot) : createSharedFrozenSegment(segment.snapshot, surfaceForms);
|
|
13816
13819
|
for (const docId of segment.tombstonedDocIds ?? []) frozen.tombstoneDocument(docId, spellings);
|
|
13817
13820
|
entry.manager.attachFrozenSegment(segment.partitionId, frozen);
|
|
13818
13821
|
}
|
|
@@ -13867,7 +13870,7 @@ function runSegmentAction(entry, action) {
|
|
|
13867
13870
|
case "attachSegments":
|
|
13868
13871
|
return attachSegments(entry, action);
|
|
13869
13872
|
case "adoptDiskSegments":
|
|
13870
|
-
return import('./module-
|
|
13873
|
+
return import('./module-E33X4AOK.mjs').then((code) => code.adoptSegmentsOnWorker(entry.manager, action));
|
|
13871
13874
|
case "compactSegments": {
|
|
13872
13875
|
const partition = requireComposite(entry, action.indexName, action.partitionId, "compact");
|
|
13873
13876
|
return mergeFrozenSegments(
|
|
@@ -13915,7 +13918,7 @@ function requireLoadedVectorCode() {
|
|
|
13915
13918
|
function loadVectorCode() {
|
|
13916
13919
|
if (loaded2 !== null) return Promise.resolve(loaded2);
|
|
13917
13920
|
if (loading2 === null) {
|
|
13918
|
-
loading2 = import('./module-
|
|
13921
|
+
loading2 = import('./module-3HNFCBJ5.mjs').then(
|
|
13919
13922
|
(code) => {
|
|
13920
13923
|
loaded2 = code;
|
|
13921
13924
|
return code;
|
|
@@ -14331,7 +14334,7 @@ var TEXT_REBUILD_SWITCH_BACKLOG_DOCUMENTS = 1e3;
|
|
|
14331
14334
|
// src/partitioning/rewrite-spill-of.ts
|
|
14332
14335
|
async function rewriteSpillOf(storage, manager, target) {
|
|
14333
14336
|
if (storage === void 0 || (target?.config ?? manager.config).textStorage !== "disk") return null;
|
|
14334
|
-
const { openRewriteSpill } = await import('./module-
|
|
14337
|
+
const { openRewriteSpill } = await import('./module-E33X4AOK.mjs');
|
|
14335
14338
|
return openRewriteSpill(storage, manager, target);
|
|
14336
14339
|
}
|
|
14337
14340
|
|
|
@@ -14643,91 +14646,6 @@ function createAnalysisRebuildCoordinator(config, deps) {
|
|
|
14643
14646
|
};
|
|
14644
14647
|
}
|
|
14645
14648
|
|
|
14646
|
-
// src/engine/durability-config.ts
|
|
14647
|
-
var WAL_ONLY_FIELDS = ["directory", "mode", "flushIntervalMs", "segmentMaxBytes", "compactionThreshold"];
|
|
14648
|
-
function configError(message) {
|
|
14649
|
-
return new NarsilError(ErrorCodes.CONFIG_INVALID, message);
|
|
14650
|
-
}
|
|
14651
|
-
function requireKnob(name, value, minimum) {
|
|
14652
|
-
if (value === void 0) {
|
|
14653
|
-
return;
|
|
14654
|
-
}
|
|
14655
|
-
if (typeof value !== "number" || !Number.isFinite(value) || value < minimum) {
|
|
14656
|
-
throw configError(`durability.${name} must be a finite number of at least ${minimum}, got ${String(value)}`);
|
|
14657
|
-
}
|
|
14658
|
-
}
|
|
14659
|
-
function requireValidDurabilityConfig(durability) {
|
|
14660
|
-
if (durability.tier !== void 0 && durability.tier !== "wal" && durability.tier !== "snapshot") {
|
|
14661
|
-
throw configError(`durability.tier must be "wal" or "snapshot", got "${String(durability.tier)}"`);
|
|
14662
|
-
}
|
|
14663
|
-
if (durability.mode !== void 0 && durability.mode !== "sync" && durability.mode !== "async") {
|
|
14664
|
-
throw configError(`durability.mode must be "sync" or "async", got "${String(durability.mode)}"`);
|
|
14665
|
-
}
|
|
14666
|
-
requireKnob("checkpointIntervalMs", durability.checkpointIntervalMs, 0);
|
|
14667
|
-
requireKnob("checkpointMutationThreshold", durability.checkpointMutationThreshold, 1);
|
|
14668
|
-
requireKnob("flushIntervalMs", durability.flushIntervalMs, 0);
|
|
14669
|
-
requireKnob("segmentMaxBytes", durability.segmentMaxBytes, 1);
|
|
14670
|
-
if (durability.segmentMaxBytes !== void 0 && durability.segmentMaxBytes > MAX_FILE_BYTES) {
|
|
14671
|
-
throw configError(
|
|
14672
|
-
`durability.segmentMaxBytes must be at most ${MAX_FILE_BYTES}, the largest file that every implementation reads, got ${durability.segmentMaxBytes}`
|
|
14673
|
-
);
|
|
14674
|
-
}
|
|
14675
|
-
requireKnob("compactionThreshold", durability.compactionThreshold, 1);
|
|
14676
|
-
if (durability.tier === "snapshot") {
|
|
14677
|
-
for (const field of WAL_ONLY_FIELDS) {
|
|
14678
|
-
if (durability[field] !== void 0) {
|
|
14679
|
-
throw configError(
|
|
14680
|
-
`durability.${field} applies to the write-ahead log tier only and cannot combine with durability.tier "snapshot"`
|
|
14681
|
-
);
|
|
14682
|
-
}
|
|
14683
|
-
}
|
|
14684
|
-
}
|
|
14685
|
-
}
|
|
14686
|
-
function filesystemBackedDirectory(config) {
|
|
14687
|
-
const adapterDirectory = config.persistence?.directory;
|
|
14688
|
-
if (adapterDirectory !== void 0 && adapterDirectory.trim().length > 0) {
|
|
14689
|
-
return adapterDirectory;
|
|
14690
|
-
}
|
|
14691
|
-
return null;
|
|
14692
|
-
}
|
|
14693
|
-
function resolveDurabilityTier(config) {
|
|
14694
|
-
const filesystemDirectory = filesystemBackedDirectory(config);
|
|
14695
|
-
if (config.durability) {
|
|
14696
|
-
requireValidDurabilityConfig(config.durability);
|
|
14697
|
-
}
|
|
14698
|
-
if (config.durability?.tier === "snapshot") {
|
|
14699
|
-
if (config.persistence === void 0) {
|
|
14700
|
-
throw configError(
|
|
14701
|
-
"Snapshot durability persists through a persistence adapter. Configure persistence, or remove durability.tier"
|
|
14702
|
-
);
|
|
14703
|
-
}
|
|
14704
|
-
return { kind: "snapshot", config: { ...config.durability }, adapter: config.persistence };
|
|
14705
|
-
}
|
|
14706
|
-
if (config.durability) {
|
|
14707
|
-
if (config.durability.directory !== void 0 && config.durability.directory.trim().length > 0) {
|
|
14708
|
-
return { kind: "wal", config: { ...config.durability } };
|
|
14709
|
-
}
|
|
14710
|
-
if (filesystemDirectory !== null) {
|
|
14711
|
-
return { kind: "wal", config: { ...config.durability, directory: filesystemDirectory } };
|
|
14712
|
-
}
|
|
14713
|
-
if (config.persistence !== void 0) {
|
|
14714
|
-
throw configError(
|
|
14715
|
-
"WAL durability requires a filesystem directory, but the configured persistence adapter is not filesystem-backed. Use a filesystem persistence adapter or set durability.directory"
|
|
14716
|
-
);
|
|
14717
|
-
}
|
|
14718
|
-
throw configError(
|
|
14719
|
-
"Durability requires a directory. Set durability.directory explicitly, or configure a filesystem persistence adapter"
|
|
14720
|
-
);
|
|
14721
|
-
}
|
|
14722
|
-
if (config.persistence === void 0) {
|
|
14723
|
-
return null;
|
|
14724
|
-
}
|
|
14725
|
-
if (filesystemDirectory !== null) {
|
|
14726
|
-
return { kind: "wal", config: { directory: filesystemDirectory } };
|
|
14727
|
-
}
|
|
14728
|
-
return { kind: "snapshot", config: {}, adapter: config.persistence };
|
|
14729
|
-
}
|
|
14730
|
-
|
|
14731
14649
|
// src/engine/array-positions.ts
|
|
14732
14650
|
function holdsStringArrayField(schema) {
|
|
14733
14651
|
return schemaFieldsOf(schema).some((field) => field.base === "string[]");
|
|
@@ -15024,7 +14942,7 @@ async function createIndexFromMetadata(deps, metadata, loadData) {
|
|
|
15024
14942
|
const existing = deps.indexRegistry.get(metadata.indexName);
|
|
15025
14943
|
if (existing !== void 0) {
|
|
15026
14944
|
if ((metadata.analysisGeneration ?? 0) > existing.analysisGeneration) {
|
|
15027
|
-
const { adoptSavedAnalysis } = await import('./analysis-change-
|
|
14945
|
+
const { adoptSavedAnalysis } = await import('./analysis-change-TC36BU47.mjs');
|
|
15028
14946
|
adoptSavedAnalysis(deps.executor.getManager(metadata.indexName), existing, metadata);
|
|
15029
14947
|
}
|
|
15030
14948
|
if (loadData && deps.executor.getManager(metadata.indexName) === void 0) {
|
|
@@ -15080,7 +14998,8 @@ async function createIndexFromMetadata(deps, metadata, loadData) {
|
|
|
15080
14998
|
analysisGeneration: metadata.analysisGeneration ?? 0,
|
|
15081
14999
|
pendingAnalysis: metadata.pendingAnalysis ?? null,
|
|
15082
15000
|
durableAnalysis: null,
|
|
15083
|
-
sync: metadata.sync?.enabled === true ? (await import('./sync-state-P5XG6LTQ.mjs')).syncStateOfMetadata(metadata) : null
|
|
15001
|
+
sync: metadata.sync?.enabled === true ? (await import('./sync-state-P5XG6LTQ.mjs')).syncStateOfMetadata(metadata) : null,
|
|
15002
|
+
querySuggestions: metadata.querySuggestions ?? null
|
|
15084
15003
|
});
|
|
15085
15004
|
if (loadData) await deps.indexState().registerOpen(metadata.indexName);
|
|
15086
15005
|
else deps.indexState().registerClosed(metadata.indexName);
|
|
@@ -17147,7 +17066,7 @@ async function startPool(state) {
|
|
|
17147
17066
|
);
|
|
17148
17067
|
}
|
|
17149
17068
|
eligibleIndexNames(state);
|
|
17150
|
-
const [factory, { createWorkerPool }] = await Promise.all([createWorkerFactory(), import('./pool-
|
|
17069
|
+
const [factory, { createWorkerPool }] = await Promise.all([createWorkerFactory(), import('./pool-3JLET5RO.mjs')]);
|
|
17151
17070
|
let started = null;
|
|
17152
17071
|
const pool = createWorkerPool({
|
|
17153
17072
|
count: state.keywordWorkerCount + state.longQueryWorkerCount,
|
|
@@ -17838,18 +17757,18 @@ async function emitWriteEventAfter(source, indexName, write) {
|
|
|
17838
17757
|
// src/engine/core.ts
|
|
17839
17758
|
async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
17840
17759
|
validateWorkerConfig(config?.workers, config?.lifecycle);
|
|
17841
|
-
const rerankSettings = config?.rerankTimeout === void 0 && config?.maxRerankWindow === void 0 ? { timeoutMs: DEFAULT_RERANK_TIMEOUT_MS, maxWindow: DEFAULT_MAX_RERANK_WINDOW } : (await import('./runtime-
|
|
17760
|
+
const rerankSettings = config?.rerankTimeout === void 0 && config?.maxRerankWindow === void 0 ? { timeoutMs: DEFAULT_RERANK_TIMEOUT_MS, maxWindow: DEFAULT_MAX_RERANK_WINDOW } : (await import('./runtime-OTAGEFQW.mjs')).resolveRerankSettings(config);
|
|
17842
17761
|
const eventHandlers = eventHandlersOf(config?.events);
|
|
17843
17762
|
const vectorWorkerCount = splitWorkerBudget(resolveWorkerCount(config?.workers?.count)).vector;
|
|
17844
17763
|
const vectorCopyPolicy = {
|
|
17845
17764
|
enabled: (config?.workers?.enabled ?? workersEnabledByDefault()) && vectorWorkerCount > 0,
|
|
17846
17765
|
count: vectorWorkerCount
|
|
17847
17766
|
};
|
|
17848
|
-
const durabilityTier = config !== void 0 ? resolveDurabilityTier(config) : null;
|
|
17767
|
+
const durabilityTier = config !== void 0 && (config.durability || config.persistence !== void 0) ? (await import('./durability-config-TIYKW6XX.mjs')).resolveDurabilityTier(config) : null;
|
|
17849
17768
|
if (config?.lifecycle !== void 0 && durabilityTier === null) {
|
|
17850
17769
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "Index lifecycle settings require durability");
|
|
17851
17770
|
}
|
|
17852
|
-
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-
|
|
17771
|
+
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-CVGPRO6D.mjs');
|
|
17853
17772
|
const filesystemDurability = durabilityTier?.kind === "wal";
|
|
17854
17773
|
const executor = createDirectExecutor({
|
|
17855
17774
|
vectorWorkerCopies: vectorCopyPolicy,
|
|
@@ -18035,7 +17954,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
18035
17954
|
requireManager,
|
|
18036
17955
|
resumeChange: async (indexName) => {
|
|
18037
17956
|
if ((indexRegistry.get(indexName)?.pendingAnalysis ?? null) === null) return;
|
|
18038
|
-
await (await import('./analysis-change-entry-
|
|
17957
|
+
await (await import('./analysis-change-entry-4MH3CZXH.mjs')).resumeChangeOf(engineCore, indexName);
|
|
18039
17958
|
},
|
|
18040
17959
|
onClose: hooks?.onIndexClose,
|
|
18041
17960
|
onOpen: (indexName) => {
|
|
@@ -18095,6 +18014,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
18095
18014
|
orchestrator,
|
|
18096
18015
|
rebalanceRouter,
|
|
18097
18016
|
rebalancingIndexes,
|
|
18017
|
+
restoresInFlight: /* @__PURE__ */ new Map(),
|
|
18098
18018
|
waqMap,
|
|
18099
18019
|
guardShutdown,
|
|
18100
18020
|
requireIndex,
|
|
@@ -18119,7 +18039,7 @@ async function startEngineCore(core, config) {
|
|
|
18119
18039
|
checkHeapAfterRecovery(core);
|
|
18120
18040
|
}
|
|
18121
18041
|
if (core.invalidation) await core.invalidation.start();
|
|
18122
|
-
if (core.durability) await (await import('./analysis-change-entry-
|
|
18042
|
+
if (core.durability) await (await import('./analysis-change-entry-4MH3CZXH.mjs')).resumeEveryChange(core);
|
|
18123
18043
|
if (config?.lifecycle === void 0) await core.analysisRebuild.reviewStaleIndexes();
|
|
18124
18044
|
} catch (err) {
|
|
18125
18045
|
await core.durability?.manager.shutdown().catch(() => void 0);
|
|
@@ -18129,6 +18049,7 @@ async function startEngineCore(core, config) {
|
|
|
18129
18049
|
}
|
|
18130
18050
|
async function shutdownEngine(core) {
|
|
18131
18051
|
const { executor, durability, indexRegistry, eventHandlers, orchestrator } = core;
|
|
18052
|
+
await core.querySuggestionHooks?.shutdown();
|
|
18132
18053
|
core.indexState.dispose();
|
|
18133
18054
|
if (durability) {
|
|
18134
18055
|
await durability.manager.shutdown();
|
|
@@ -18157,7 +18078,7 @@ async function shutdownEngine(core) {
|
|
|
18157
18078
|
}
|
|
18158
18079
|
}
|
|
18159
18080
|
if (core.rerankAdapters.size > 0) {
|
|
18160
|
-
await (await import('./runtime-
|
|
18081
|
+
await (await import('./runtime-OTAGEFQW.mjs')).shutdownRerankAdapters(core.rerankAdapters);
|
|
18161
18082
|
}
|
|
18162
18083
|
await orchestrator.shutdown();
|
|
18163
18084
|
await executor.shutdown();
|
|
@@ -18333,7 +18254,8 @@ function indexConfigurationOf(entry) {
|
|
|
18333
18254
|
synonyms,
|
|
18334
18255
|
entry.analysisGeneration
|
|
18335
18256
|
);
|
|
18336
|
-
|
|
18257
|
+
const withSuggestions = { ...payload, ...entry.querySuggestions };
|
|
18258
|
+
return entry.sync === null ? withSuggestions : { ...withSuggestions, syncEpoch: entry.sync.epoch };
|
|
18337
18259
|
}
|
|
18338
18260
|
function requireConfigurationWithinSizeLimit(config, language) {
|
|
18339
18261
|
const adapter = config.embedding?.adapter;
|
|
@@ -18500,6 +18422,7 @@ async function createEngineIndex(core, config, name, requestedConfig, creation =
|
|
|
18500
18422
|
const language = getLanguage(indexConfig.language ?? "english");
|
|
18501
18423
|
if (appliesCreationLimits) requireConfigurationWithinSizeLimit(indexConfig, language);
|
|
18502
18424
|
const synonyms = prepareConfiguredSynonyms(configured, language, appliesCreationLimits);
|
|
18425
|
+
await core.querySuggestionHooks?.beforeCreate(name);
|
|
18503
18426
|
core.executor.createIndex(name, indexConfig, language, false, synonyms?.lookup ?? null);
|
|
18504
18427
|
core.indexRegistry.set(name, {
|
|
18505
18428
|
config: indexConfig,
|
|
@@ -18517,7 +18440,8 @@ async function createEngineIndex(core, config, name, requestedConfig, creation =
|
|
|
18517
18440
|
analysisGeneration: 0,
|
|
18518
18441
|
pendingAnalysis: null,
|
|
18519
18442
|
durableAnalysis: null,
|
|
18520
|
-
sync: null
|
|
18443
|
+
sync: null,
|
|
18444
|
+
querySuggestions: creation.querySuggestions ?? null
|
|
18521
18445
|
});
|
|
18522
18446
|
await core.indexState.registerOpen(name);
|
|
18523
18447
|
if (core.durability) {
|
|
@@ -18530,10 +18454,11 @@ async function dropEngineIndex(core, name) {
|
|
|
18530
18454
|
const entry = core.requireIndex(name);
|
|
18531
18455
|
const changeRecorded = () => entry.pendingAnalysis !== null || entry.durableAnalysis !== null;
|
|
18532
18456
|
const abandonChange = async () => {
|
|
18533
|
-
await (await import('./analysis-change-entry-
|
|
18457
|
+
await (await import('./analysis-change-entry-4MH3CZXH.mjs')).abandonChangeOf(core, name);
|
|
18534
18458
|
};
|
|
18535
18459
|
if (changeRecorded()) await abandonChange();
|
|
18536
18460
|
await core.indexState.drop(name, async () => {
|
|
18461
|
+
await core.querySuggestionHooks?.beforeDrop(name);
|
|
18537
18462
|
await core.analysisRebuild.abandon(name);
|
|
18538
18463
|
if (changeRecorded()) await abandonChange();
|
|
18539
18464
|
await core.orchestrator.closeIndex(name);
|
|
@@ -18551,6 +18476,7 @@ async function dropEngineIndex(core, name) {
|
|
|
18551
18476
|
core.analysisRebuild.clearStale(name);
|
|
18552
18477
|
if (entry.sync !== null) emitSyncChange(core.indexRegistry, { kind: "dropped", indexName: name });
|
|
18553
18478
|
});
|
|
18479
|
+
await core.querySuggestionHooks?.afterDrop(name);
|
|
18554
18480
|
await runLifecycleHook(core, "onIndexDrop", { indexName: name, config: entry.config });
|
|
18555
18481
|
}
|
|
18556
18482
|
function registerEngineEmbeddingAdapter(core, name, adapter) {
|
|
@@ -20163,7 +20089,7 @@ async function updateDocumentBatch(ctx, indexName, updates, options) {
|
|
|
20163
20089
|
// src/engine/sync-epoch.ts
|
|
20164
20090
|
async function holdSyncEpochChange(core, indexName) {
|
|
20165
20091
|
if ((core.indexRegistry.get(indexName)?.sync ?? null) === null) return () => void 0;
|
|
20166
|
-
return (await import('./operations-
|
|
20092
|
+
return (await import('./operations-OJ3BXS55.mjs')).holdRenewedSyncEpoch(core, indexName);
|
|
20167
20093
|
}
|
|
20168
20094
|
async function withRenewedSyncEpoch(core, indexName, change) {
|
|
20169
20095
|
const release = await holdSyncEpochChange(core, indexName);
|
|
@@ -20255,6 +20181,9 @@ var engineCores = /* @__PURE__ */ new WeakMap();
|
|
|
20255
20181
|
function bindEngineCore(engine, core) {
|
|
20256
20182
|
engineCores.set(engine, core);
|
|
20257
20183
|
}
|
|
20184
|
+
function engineCoreOf(engine) {
|
|
20185
|
+
return engineCores.get(engine);
|
|
20186
|
+
}
|
|
20258
20187
|
|
|
20259
20188
|
// src/narsil/portability.ts
|
|
20260
20189
|
function portabilityOperations(core, config, engine) {
|
|
@@ -20268,7 +20197,23 @@ function portabilityOperations(core, config, engine) {
|
|
|
20268
20197
|
release();
|
|
20269
20198
|
}
|
|
20270
20199
|
}
|
|
20271
|
-
|
|
20200
|
+
function queueRestore(indexName, data) {
|
|
20201
|
+
const { restoresInFlight } = core;
|
|
20202
|
+
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20203
|
+
const restored = previous.then(async () => {
|
|
20204
|
+
const { runRestore } = await import('./restore-queue-ZBS7CJA6.mjs');
|
|
20205
|
+
await runRestore(core, restoreHost, indexName, data, engine());
|
|
20206
|
+
});
|
|
20207
|
+
const settled2 = restored.then(
|
|
20208
|
+
() => void 0,
|
|
20209
|
+
() => void 0
|
|
20210
|
+
);
|
|
20211
|
+
restoresInFlight.set(indexName, settled2);
|
|
20212
|
+
void settled2.then(() => {
|
|
20213
|
+
if (restoresInFlight.get(indexName) === settled2) restoresInFlight.delete(indexName);
|
|
20214
|
+
});
|
|
20215
|
+
return restored;
|
|
20216
|
+
}
|
|
20272
20217
|
const restoreHost = {
|
|
20273
20218
|
getVectorFieldPaths,
|
|
20274
20219
|
announceIndexCreated: (name, restoredConfig) => announceIndexCreated(core, name, restoredConfig),
|
|
@@ -20285,26 +20230,23 @@ function portabilityOperations(core, config, engine) {
|
|
|
20285
20230
|
};
|
|
20286
20231
|
}
|
|
20287
20232
|
return {
|
|
20288
|
-
snapshot(indexName) {
|
|
20233
|
+
snapshot(indexName, options) {
|
|
20289
20234
|
return withOpenIndex2(indexName, async () => {
|
|
20290
|
-
const { createSnapshot } = await import('./snapshot-
|
|
20291
|
-
return createSnapshot(snapshotDepsOf(indexName));
|
|
20235
|
+
const { createSnapshot } = await import('./snapshot-PN7ZW6Q4.mjs');
|
|
20236
|
+
return createSnapshot(snapshotDepsOf(indexName), options?.queryHistory === true ? core : null);
|
|
20292
20237
|
});
|
|
20293
20238
|
},
|
|
20294
20239
|
async restore(indexName, data) {
|
|
20295
20240
|
core.guardShutdown();
|
|
20296
20241
|
validateIndexName(indexName);
|
|
20297
|
-
|
|
20298
|
-
({ queueRestore }) => queueRestore(core, restoreHost, restoresInFlight, indexName, data)
|
|
20299
|
-
);
|
|
20300
|
-
await emitWriteEventAfter(core, indexName, restored);
|
|
20242
|
+
await emitWriteEventAfter(core, indexName, queueRestore(indexName, data));
|
|
20301
20243
|
core.heapPressureNotifier.check(indexName);
|
|
20302
20244
|
},
|
|
20303
20245
|
exportDocuments(indexName) {
|
|
20304
20246
|
return withOpenIndex2(indexName, async () => {
|
|
20305
20247
|
const [{ checkpointForArchive }, { documentExportStream }] = await Promise.all([
|
|
20306
|
-
import('./snapshot-
|
|
20307
|
-
import('./write-
|
|
20248
|
+
import('./snapshot-PN7ZW6Q4.mjs'),
|
|
20249
|
+
import('./write-HMDYCTV2.mjs')
|
|
20308
20250
|
]);
|
|
20309
20251
|
const header = indexConfigurationOf(core.requireIndex(indexName));
|
|
20310
20252
|
return documentExportStream(header, await checkpointForArchive(snapshotDepsOf(indexName)));
|
|
@@ -20312,7 +20254,7 @@ function portabilityOperations(core, config, engine) {
|
|
|
20312
20254
|
},
|
|
20313
20255
|
importDocumentExport(indexName, data) {
|
|
20314
20256
|
core.guardShutdown();
|
|
20315
|
-
const imported = import('./import-
|
|
20257
|
+
const imported = import('./import-OM6QAW45.mjs').then(
|
|
20316
20258
|
({ readDocumentExport }) => readDocumentExport(engine(), indexName, data)
|
|
20317
20259
|
);
|
|
20318
20260
|
return emitWriteEventAfter(core, indexName, imported);
|
|
@@ -21619,7 +21561,7 @@ function requireCursorDepth(cursor, signature, binding) {
|
|
|
21619
21561
|
}
|
|
21620
21562
|
function hybridSearchOf(params, context, limit, offset, cursorDepth) {
|
|
21621
21563
|
if ((params.hybrid?.depth ?? null) === null) return executeHybridSearch(params, context, limit, offset, cursorDepth);
|
|
21622
|
-
return import('./runtime-
|
|
21564
|
+
return import('./runtime-OTAGEFQW.mjs').then(
|
|
21623
21565
|
(runtime) => runtime.searchFixedDepthHybrid(params, context, { cursorDepth: cursorDepth ?? 0, offset, limit }, runtimeHost)
|
|
21624
21566
|
);
|
|
21625
21567
|
}
|
|
@@ -21629,7 +21571,7 @@ function executeQuery(request, callerContext) {
|
|
|
21629
21571
|
if (loadingPhraseCode === null) return runQuery(request, callerContext);
|
|
21630
21572
|
return loadingPhraseCode.then(() => runQuery(request, callerContext));
|
|
21631
21573
|
}
|
|
21632
|
-
return import('./runtime-
|
|
21574
|
+
return import('./runtime-OTAGEFQW.mjs').then(
|
|
21633
21575
|
(runtime) => runtime.executeRerankedQuery(request, callerContext, executeQuery, runtimeHost)
|
|
21634
21576
|
);
|
|
21635
21577
|
}
|
|
@@ -22028,7 +21970,7 @@ async function runEngineQuery(core, indexName, params, options) {
|
|
|
22028
21970
|
const manager = core.requireManager(indexName);
|
|
22029
21971
|
const scoped = scopedParams(params, options);
|
|
22030
21972
|
await core.pluginRegistry.runHook("beforeSearch", { indexName, params: scoped });
|
|
22031
|
-
const rerank = scoped.rerank === void 0 ? void 0 : await import('./runtime-
|
|
21973
|
+
const rerank = scoped.rerank === void 0 ? void 0 : await import('./runtime-OTAGEFQW.mjs');
|
|
22032
21974
|
const resolvedParams = await resolveVectorText(
|
|
22033
21975
|
rerank === void 0 ? scoped : rerank.withRerankQueryText(scoped),
|
|
22034
21976
|
entry.embeddingAdapter,
|
|
@@ -22150,8 +22092,8 @@ async function runEngineListDocuments(core, indexName, params, partitionIds) {
|
|
|
22150
22092
|
// src/narsil/sync.ts
|
|
22151
22093
|
function syncOperations(core) {
|
|
22152
22094
|
return {
|
|
22153
|
-
updateSync: async (indexName, setting) => (await import('./methods-
|
|
22154
|
-
getSync: async (indexName) => (await import('./methods-
|
|
22095
|
+
updateSync: async (indexName, setting) => (await import('./methods-KTQCSIN4.mjs')).updateSyncOf(core, indexName, setting),
|
|
22096
|
+
getSync: async (indexName) => (await import('./methods-KTQCSIN4.mjs')).syncOf(core, indexName)
|
|
22155
22097
|
};
|
|
22156
22098
|
}
|
|
22157
22099
|
|
|
@@ -22333,7 +22275,7 @@ function createNarsilFromCore(core, config) {
|
|
|
22333
22275
|
const entry = requireIndex(indexName);
|
|
22334
22276
|
await withOpenIndexWrite(indexName, async () => {
|
|
22335
22277
|
if (entry.pendingAnalysis === null) return core.analysisRebuild.rebuild(indexName);
|
|
22336
|
-
return (await import('./analysis-change-
|
|
22278
|
+
return (await import('./analysis-change-TC36BU47.mjs')).resumeAnalysisChange(core, indexName);
|
|
22337
22279
|
});
|
|
22338
22280
|
},
|
|
22339
22281
|
async changeAnalysis(indexName, change) {
|
|
@@ -22341,7 +22283,7 @@ function createNarsilFromCore(core, config) {
|
|
|
22341
22283
|
requireIndex(indexName);
|
|
22342
22284
|
const changed = withOpenIndex2(
|
|
22343
22285
|
indexName,
|
|
22344
|
-
async () => (await import('./analysis-change-
|
|
22286
|
+
async () => (await import('./analysis-change-TC36BU47.mjs')).changeIndexAnalysis(core, indexName, change)
|
|
22345
22287
|
);
|
|
22346
22288
|
await emitWriteEventAfter(core, indexName, changed);
|
|
22347
22289
|
},
|
|
@@ -22376,7 +22318,7 @@ function createNarsilFromCore(core, config) {
|
|
|
22376
22318
|
const rebalanced = withOpenIndex2(
|
|
22377
22319
|
indexName,
|
|
22378
22320
|
() => withRenewedSyncEpoch(core, indexName, async () => {
|
|
22379
|
-
const { executeRebalance } = await import('./analysis-change-
|
|
22321
|
+
const { executeRebalance } = await import('./analysis-change-TC36BU47.mjs');
|
|
22380
22322
|
const running = executeRebalance(requireManager(indexName), indexName, targetPartitionCount, rebalanceCtx);
|
|
22381
22323
|
releaseWrites();
|
|
22382
22324
|
await running;
|
|
@@ -22498,10 +22440,14 @@ async function createNarsil(config) {
|
|
|
22498
22440
|
const runnableConfig = await resolveRunnableConfig(config);
|
|
22499
22441
|
const core = await createEngineCore(runnableConfig);
|
|
22500
22442
|
await startEngineCore(core, runnableConfig);
|
|
22501
|
-
|
|
22443
|
+
const engine = createNarsilFromCore(core, runnableConfig);
|
|
22444
|
+
if (runnableConfig?.querySuggestions !== void 0 || core.durability !== null) {
|
|
22445
|
+
await (await import('./engine-hooks-YXMPHZKZ.mjs')).startQuerySuggestions(core, engine, runnableConfig);
|
|
22446
|
+
}
|
|
22447
|
+
return engine;
|
|
22502
22448
|
}
|
|
22503
22449
|
|
|
22504
22450
|
// src/index.ts
|
|
22505
22451
|
var VERSION = "0.1.0";
|
|
22506
22452
|
|
|
22507
|
-
export { ARRAY_POSITION_GAP, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, VERSION, arrayPositionsAreStale, assemblePagedFrozenSegment, buildPartialWordTableFrom, buildSegmentPayload, clearNormalizationCache, configureNormalizationCache, createCompositePartition, createEncodedDocumentSource, createFrozenSegment, createNarsil, createPartitionIndex, createPartitionManager, createPartitionRouter, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, decodeSurfaceTable, deleteNestedValue, emitEngineEvent, encodeIndexConfiguration, encodeSurfaceTable, endOfValue, engineVersionParts, extractVectorFromDoc, fieldIndexRemapOf, freezeSegmentShared, generateId, getNestedValue, getNormalizationCacheSize, holdSyncEpochChange, holdsADiscardedField, insertDocumentVectors, isCompositePartition, isQuantizationMode, isStorageMode, loadVectorCodeFor, mergeDocFrequencies, mergeFieldIndexes2 as mergeFieldIndexes, mergeFieldLengths, mergePartialWords, mergeSegmentContents, mergeSurfaceForms2 as mergeSurfaceForms, messagePackUpperBoundBytes, packChecksummedEnvelope, packEnvelopeWithChecksum, parseVectorDimension, partitionStateOf, prepareConfiguredSynonyms, prepareDocumentVectors, prepareStoredSynonyms, raiseEarlierReleaseGraphSetting, readResidentMemory, rebuildTextIndexes, reconstructSchemaFromMetadata, registerPartialWordSearch, registerPatternSearch, registerSynonyms, removeDocumentVectors, requireConfigurationWithinSizeLimit, requireSurfaceFormsForPartialFields, resetNormalizationCache, resolvePartialWordAnalysis, resolvePartitionInsertOptions, rewriteSpillOf, rulesOfStoredSynonyms, scanPostingBlocks, segmentArraysOf, selectionKeeps, shareSegmentArrays, storedArrayPositionGap, survivorDocumentsOf, textRebuildTargetOf, toError2 as toError, validateEmbeddingConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, validateTextStorage, validateVectorPromotion, validateVectorStorage, vectorsEqual, wrapFrozenTokenTable, yieldToEventLoop2 as yieldToEventLoop };
|
|
22453
|
+
export { ARRAY_POSITION_GAP, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, VERSION, arrayPositionsAreStale, assemblePagedFrozenSegment, buildPartialWordTableFrom, buildSegmentPayload, clearNormalizationCache, configureNormalizationCache, createCompositePartition, createEncodedDocumentSource, createEngineIndex, createFrozenSegment, createNarsil, createPartitionIndex, createPartitionManager, createPartitionRouter, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, decodeSurfaceTable, deleteNestedValue, dropEngineIndex, emitEngineEvent, emitWriteEventAfter, encodeIndexConfiguration, encodeSurfaceTable, endOfValue, engineCoreOf, engineVersionParts, extractVectorFromDoc, fieldIndexRemapOf, freezeSegmentShared, generateId, getNestedValue, getNormalizationCacheSize, holdSyncEpochChange, holdsADiscardedField, insertDocumentVectors, isCompositePartition, isQuantizationMode, isStorageMode, loadVectorCodeFor, mergeDocFrequencies, mergeFieldIndexes2 as mergeFieldIndexes, mergeFieldLengths, mergePartialWords, mergeSegmentContents, mergeSurfaceForms2 as mergeSurfaceForms, messagePackUpperBoundBytes, packChecksummedEnvelope, packEnvelopeWithChecksum, parseVectorDimension, partitionStateOf, prepareConfiguredSynonyms, prepareDocumentVectors, prepareStoredSynonyms, raiseEarlierReleaseGraphSetting, readResidentMemory, rebuildTextIndexes, reconstructSchemaFromMetadata, registerPartialWordSearch, registerPatternSearch, registerSynonyms, removeDocumentBatch, removeDocumentVectors, requireConfigurationWithinSizeLimit, requireSurfaceFormsForPartialFields, resetNormalizationCache, resolvePartialWordAnalysis, resolvePartitionInsertOptions, rewriteSpillOf, rulesOfStoredSynonyms, scanPostingBlocks, segmentArraysOf, selectionKeeps, shareSegmentArrays, storedArrayPositionGap, survivorDocumentsOf, textRebuildTargetOf, toError2 as toError, validateEmbeddingConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, validateTextStorage, validateVectorPromotion, validateVectorStorage, vectorsEqual, wrapFrozenTokenTable, yieldToEventLoop2 as yieldToEventLoop };
|
|
@@ -39,6 +39,7 @@ var ErrorCodes = {
|
|
|
39
39
|
SYNC_NOT_READY: "SYNC_NOT_READY",
|
|
40
40
|
SYNC_NOT_ENABLED: "SYNC_NOT_ENABLED",
|
|
41
41
|
SYNC_SNAPSHOT_PREPARING: "SYNC_SNAPSHOT_PREPARING",
|
|
42
|
+
QUERY_SUGGESTIONS_NOT_ENABLED: "QUERY_SUGGESTIONS_NOT_ENABLED",
|
|
42
43
|
SEARCH_INVALID_FIELD: "SEARCH_INVALID_FIELD",
|
|
43
44
|
VECTOR_DIMENSION_MISMATCH: "VECTOR_DIMENSION_MISMATCH",
|
|
44
45
|
SEARCH_INVALID_FILTER: "SEARCH_INVALID_FILTER",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-ABCXENU5.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/engine/export/json-line.ts
|
|
5
5
|
function refuse(path, kind, docId) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue } from './chunk-
|
|
2
|
-
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-
|
|
3
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue } from './chunk-SMEQ36NT.mjs';
|
|
2
|
+
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-JIJXMI42.mjs';
|
|
3
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
4
4
|
import { decode } from '@msgpack/msgpack';
|
|
5
5
|
|
|
6
6
|
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-
|
|
2
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-RRO3EV4C.mjs';
|
|
2
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-RRO3EV4C.mjs';
|
|
3
|
+
import './chunk-SUDNZKPL.mjs';
|
|
4
|
+
import './chunk-ABCXENU5.mjs';
|
|
5
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-56W3HQVJ.mjs';
|
|
6
|
+
import './chunk-XY4VVBBO.mjs';
|
|
7
7
|
import './chunk-ZI2V4VD7.mjs';
|
|
8
|
-
import
|
|
8
|
+
import './chunk-23XRXIBW.mjs';
|
|
9
|
+
import { yieldToEventLoop } from './chunk-SMEQ36NT.mjs';
|
|
10
|
+
import './chunk-ML7THVLJ.mjs';
|
|
9
11
|
import './chunk-VI7BQR4U.mjs';
|
|
10
12
|
import './chunk-JPTQZWJQ.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import { HEADER_SIZE, crc32, readHeader } from './chunk-7TTWXUH6.mjs';
|
|
13
|
+
import { HEADER_SIZE, crc32, readHeader } from './chunk-JIJXMI42.mjs';
|
|
13
14
|
import './chunk-RA6LSBCM.mjs';
|
|
14
15
|
import './chunk-26A5JFT2.mjs';
|
|
15
|
-
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-
|
|
16
|
-
export { createHNSWIndex, osqBitsOf } from './chunk-
|
|
17
|
-
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
16
|
+
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-K4GCSZLI.mjs';
|
|
17
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-K4GCSZLI.mjs';
|
|
18
|
+
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-5TCXK5SB.mjs';
|
|
19
|
+
import './chunk-U3JOQGWX.mjs';
|
|
20
|
+
import './chunk-4WCVMOU3.mjs';
|
|
20
21
|
import './chunk-TY7L6OXO.mjs';
|
|
21
22
|
import './chunk-4RD3AFSB.mjs';
|
|
22
|
-
import { compareCodePoints } from './chunk-
|
|
23
|
+
import { compareCodePoints } from './chunk-LFIWRCEA.mjs';
|
|
24
|
+
import './chunk-GPPOG6PT.mjs';
|
|
23
25
|
import './chunk-WXLBZJMT.mjs';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import { NarsilError, ErrorCodes } from './chunk-MYITLCHT.mjs';
|
|
26
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
26
27
|
import { decode, decodeMulti } from '@msgpack/msgpack';
|
|
27
28
|
|
|
28
29
|
// src/persistence/paged/cold-search.ts
|