@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,26 +1,26 @@
|
|
|
1
1
|
import { DEFAULT_MAX_RERANK_WINDOW, DEFAULT_RERANK_TIMEOUT_MS } from './chunk-IO2SMUQD.mjs';
|
|
2
|
-
import { createDocIdMap, detectRuntime, countWrite, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, yieldBackgroundTurn, backgroundTurnIsSpent, reservedHeapBytes, reserveHeapBytes,
|
|
3
|
-
import { MAX_INDEX_CONFIGURATION_BYTES,
|
|
2
|
+
import { createDocIdMap, turnsAreBudgeted, turnIsSpent, yieldTurn, detectRuntime, indexChangeOutsideExternalWaits, changeIndexOutsideExternalWaits, countWrite, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, yieldBackgroundTurn, backgroundTurnIsSpent, reservedHeapBytes, reserveHeapBytes, MIN_OVERSAMPLE, noteThreadSlotGone, threadSlotOfWorker, collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, collectAndReturnPages, admittedHeapBytes } from './chunk-JLIIWJUV.mjs';
|
|
3
|
+
import { MAX_INDEX_CONFIGURATION_BYTES, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN, BATCH_CHUNK_SIZE, 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-AM7RSBPF.mjs';
|
|
4
|
+
import { reactNativeHost } from './chunk-MVXELMJX.mjs';
|
|
4
5
|
import { createRequestId } from './chunk-NNE4VDMM.mjs';
|
|
5
|
-
import { splitWorkerBudget, resolveWorkerCount,
|
|
6
|
-
import { PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, requireTextRangeField, isFiniteNumber, invalid, requireFieldKind, kindOfValue, requireListLength, isObjectRecord, GEO_UNIT_METRES, DEFAULT_PATTERN_WORK_CAP, MAX_FILTER_DEPTH, MATCHER_STATE_BUDGET_BYTES, MAX_FILTER_TESTS, FILTER_OPERAND_COPY_DEPTH, TYPO_CLAIM_SLOTS_PER_WORD, PATTERN_WORK_FLUSH_UNITS } from './chunk-
|
|
7
|
-
import { isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES, MIN_POLYGON_POINTS, expandTermPrefix, getNestedValue, tokenizeOptions, raiseEarlierReleaseGraphSetting, messagePackUpperBoundBytes, suggestDisplayTerms, validateDocument, validateDocumentStrict, textFieldsChanged, sameFields, getFlatSchema, getOrCreateFieldNameIndex, partitionDocumentFrequency, visitDocumentSurfaceSpellings, visitDocumentSpellings,
|
|
6
|
+
import { splitWorkerBudget, resolveWorkerCount, resolveRequestThreadCount, DEFAULT_REQUEST_TIMEOUT_MS, MAX_RENUMBERED_SEARCH_ATTEMPTS } from './chunk-LU3Y3P63.mjs';
|
|
7
|
+
import { PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, requireTextRangeField, isFiniteNumber, invalid, requireFieldKind, kindOfValue, requireListLength, isObjectRecord, GEO_UNIT_METRES, DEFAULT_PATTERN_WORK_CAP, MAX_FILTER_DEPTH, MATCHER_STATE_BUDGET_BYTES, MAX_FILTER_TESTS, FILTER_OPERAND_COPY_DEPTH, TYPO_CLAIM_SLOTS_PER_WORD, PATTERN_WORK_FLUSH_UNITS } from './chunk-RDWG33MM.mjs';
|
|
8
|
+
import { isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES, MIN_POLYGON_POINTS, expandTermPrefix, getNestedValue, tokenizeOptions, raiseEarlierReleaseGraphSetting, messagePackUpperBoundBytes, validateVectorPromotion, validateVectorStorage, validateTextStorage, suggestDisplayTerms, validateDocument, validateDocumentStrict, textFieldsChanged, sameFields, getFlatSchema, getOrCreateFieldNameIndex, partitionDocumentFrequency, visitDocumentSurfaceSpellings, visitDocumentSpellings, ANTIMERIDIAN_SPAN_DEGREES, FULL_TURN_DEGREES, LOCATION_CODE_BITS_PER_AXIS, MAX_COVERING_CELLS, VINCENTY_CONVERGENCE_THRESHOLD, EARTH_RADIUS_METERS, RADIUS_BOX_MARGIN_RATIO, RADIUS_BOX_MARGIN_RADIANS, DEG_TO_RAD, validateRequiredFields, requireDocumentWithinSizeLimit, VINCENTY_MAX_ITERATIONS } from './chunk-4Y53T4YE.mjs';
|
|
8
9
|
import { fuzzyPrefixOf, boundedLevenshtein, fuzzyTermMatches } from './chunk-UNUFZ2QY.mjs';
|
|
9
|
-
import { withOpenIndex, oneAtATime
|
|
10
|
-
import { encodeStringBlob, encodeLookupKey, visitTokens, codePointOrder, tokenize } from './chunk-
|
|
11
|
-
import { requireWithinFileLimit, HEADER_SIZE, payloadByteLength, checksumOfChunks, packEnvelopeWithEngineVersion, INDEX_CONFIGURATION_ENVELOPE_VERSION, readHeapStatistics, readOldGenerationStatistics } from './chunk-
|
|
10
|
+
import { emitSyncChange, withOpenIndex, oneAtATime } from './chunk-JDOEEMEF.mjs';
|
|
11
|
+
import { encodeStringBlob, encodeLookupKey, visitTokens, codePointOrder, tokenize } from './chunk-7PXRWYUU.mjs';
|
|
12
|
+
import { requireWithinFileLimit, HEADER_SIZE, payloadByteLength, checksumOfChunks, packEnvelopeWithEngineVersion, INDEX_CONFIGURATION_ENVELOPE_VERSION, readHeapStatistics, readOldGenerationStatistics } from './chunk-YH7QY657.mjs';
|
|
12
13
|
import { fnv1a, FNV_OFFSET_BASIS, fnv1aContinue, fnv1aContinueTaggedNumbers } from './chunk-CHPTFFJM.mjs';
|
|
13
|
-
import { flattenSchema, partialFieldsOf, schemaFieldsOf,
|
|
14
|
-
import {
|
|
15
|
-
import { parsedTypeOf, isSingleStringFieldType, isWordIndexedBase, MIN_PATTERN_VALUE_LIMIT, MAX_PATTERN_VALUE_LIMIT, PROTOTYPE_POLLUTION_KEYS, isPlainObject, MAX_NESTING_DEPTH, isStringValuedBase, withSortableOption, isGeopointOrVectorType,
|
|
16
|
-
import { resolveIndexAnalysis, getLanguage } from './chunk-
|
|
14
|
+
import { flattenSchema, partialFieldsOf, schemaFieldsOf, validateSchema, requireCreatableSchema, encodeDocument, extractVectorFieldsFromSchema } from './chunk-3JIBF3XT.mjs';
|
|
15
|
+
import { MAX_DOCUMENT_ENCODING_DEPTH } from './chunk-6VBXNFLE.mjs';
|
|
16
|
+
import { parsedTypeOf, isSingleStringFieldType, isWordIndexedBase, MIN_PATTERN_VALUE_LIMIT, MAX_PATTERN_VALUE_LIMIT, PROTOTYPE_POLLUTION_KEYS, isPlainObject, MAX_NESTING_DEPTH, isWordIndexedFieldType, isStringValuedBase, withSortableOption, isGeopointOrVectorType, isListBase, VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
|
|
17
|
+
import { resolveIndexAnalysis, getLanguage } from './chunk-MJDQU5MW.mjs';
|
|
17
18
|
import { singleFoldTable, appendFoldedCodePoint, toReducedSortValue, compareComparableValues, defaultSortMode, readSortField, truncateSortString, toComparableSortValue, SORT_VALUE_MAX_CODE_POINTS, compareComparableKeys, sortModeOf, isSortMode, SORT_MODES, compareSortValues } from './chunk-KWRW5U65.mjs';
|
|
18
|
-
import { compareCodePoints,
|
|
19
|
+
import { compareCodePoints, holdsUnpairedSurrogate, exceedsCodePoints, codePointCount } from './chunk-PPEPTUVV.mjs';
|
|
19
20
|
import { bitsetHas, createBitSet, GrowableUint32, bitsetIsEmpty, bitsetSet, bitsetOrInto, bitsetAndNotInto, bitsetAndInto, bitsetFromSet } from './chunk-LVIKKAA6.mjs';
|
|
20
|
-
import { DEFAULT_FUZZY_PREFIX_LENGTH, MAX_CURSOR_LENGTH, MAX_CURSOR_ANCHOR_CODE_POINTS, MAX_SORT_FIELDS, MAX_SORT_FIELD_NAME_LENGTH,
|
|
21
|
+
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-AAAETEJK.mjs';
|
|
21
22
|
import { TARGET_BLOCK_ENTRIES, SEGMENT_TOKEN_TABLE_START, SEGMENT_POSTING_LOG_START, SEGMENT_POSITION_POOL_START, SEGMENT_FIELD_SCRATCH_START, SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY, PRUNING_REJECTION_SLACK, FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION, SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD, SORT_COLUMN_REBUILD_FRACTION_SHIFT } from './chunk-JV6VQY2S.mjs';
|
|
22
|
-
import {
|
|
23
|
-
import { ErrorCodes, NarsilError } from './chunk-CUNGPR5R.mjs';
|
|
23
|
+
import { ErrorCodes, NarsilError } from './chunk-DZ7H7D2C.mjs';
|
|
24
24
|
import { Decoder, decode, encode } from '@msgpack/msgpack';
|
|
25
25
|
|
|
26
26
|
// src/core/partition/partial-words/platform.browser.ts
|
|
@@ -942,7 +942,8 @@ var NARSIL_CONFIG_KEYS = {
|
|
|
942
942
|
lifecycle: true,
|
|
943
943
|
patternWorkCap: true,
|
|
944
944
|
events: true,
|
|
945
|
-
memory: true
|
|
945
|
+
memory: true,
|
|
946
|
+
querySuggestions: true
|
|
946
947
|
};
|
|
947
948
|
var EVENT_NAMES = {
|
|
948
949
|
write: true,
|
|
@@ -956,7 +957,9 @@ var EVENT_NAMES = {
|
|
|
956
957
|
layoutUpgrade: true,
|
|
957
958
|
checkpointHeld: true,
|
|
958
959
|
durabilityError: true,
|
|
959
|
-
invalidationError: true
|
|
960
|
+
invalidationError: true,
|
|
961
|
+
querySuggestionsBuild: true,
|
|
962
|
+
querySuggestionsWarning: true
|
|
960
963
|
};
|
|
961
964
|
var DURABILITY_CONFIG_KEYS = {
|
|
962
965
|
tier: true,
|
|
@@ -6179,7 +6182,7 @@ function requireLoadedPhraseCode() {
|
|
|
6179
6182
|
}
|
|
6180
6183
|
function loadPhraseCode() {
|
|
6181
6184
|
if (loading === null) {
|
|
6182
|
-
loading = import('./phrase-module-
|
|
6185
|
+
loading = import('./phrase-module-RTVKEWJT.mjs').then(
|
|
6183
6186
|
(code) => {
|
|
6184
6187
|
loaded = code;
|
|
6185
6188
|
return code;
|
|
@@ -13515,7 +13518,7 @@ async function attachSegments(entry, action) {
|
|
|
13515
13518
|
growPartitionsTo(entry.manager, segment.partitionId);
|
|
13516
13519
|
const surfaceForms = segment.survivingSurfaceForms;
|
|
13517
13520
|
const spellings = surfaceForms === void 0 ? void 0 : NO_REMOVED_SPELLINGS;
|
|
13518
|
-
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-
|
|
13521
|
+
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-ZL5ZG6YB.mjs')).createPagedFrozenSegment(segment.snapshot) : createSharedFrozenSegment(segment.snapshot, surfaceForms);
|
|
13519
13522
|
for (const docId of segment.tombstonedDocIds ?? []) frozen.tombstoneDocument(docId, spellings);
|
|
13520
13523
|
entry.manager.attachFrozenSegment(segment.partitionId, frozen);
|
|
13521
13524
|
}
|
|
@@ -13570,7 +13573,7 @@ function runSegmentAction(entry, action) {
|
|
|
13570
13573
|
case "attachSegments":
|
|
13571
13574
|
return attachSegments(entry, action);
|
|
13572
13575
|
case "adoptDiskSegments":
|
|
13573
|
-
return import('./module-
|
|
13576
|
+
return import('./module-ZL5ZG6YB.mjs').then((code) => code.adoptSegmentsOnWorker(entry.manager, action));
|
|
13574
13577
|
case "compactSegments": {
|
|
13575
13578
|
const partition = requireComposite(entry, action.indexName, action.partitionId, "compact");
|
|
13576
13579
|
return mergeFrozenSegments(
|
|
@@ -13618,7 +13621,7 @@ function requireLoadedVectorCode() {
|
|
|
13618
13621
|
function loadVectorCode() {
|
|
13619
13622
|
if (loaded2 !== null) return Promise.resolve(loaded2);
|
|
13620
13623
|
if (loading2 === null) {
|
|
13621
|
-
loading2 = import('./module-
|
|
13624
|
+
loading2 = import('./module-H5MVPSP2.mjs').then(
|
|
13622
13625
|
(code) => {
|
|
13623
13626
|
loaded2 = code;
|
|
13624
13627
|
return code;
|
|
@@ -14034,7 +14037,7 @@ var TEXT_REBUILD_SWITCH_BACKLOG_DOCUMENTS = 1e3;
|
|
|
14034
14037
|
// src/partitioning/rewrite-spill-of.ts
|
|
14035
14038
|
async function rewriteSpillOf(storage, manager, target) {
|
|
14036
14039
|
if (storage === void 0 || (target?.config ?? manager.config).textStorage !== "disk") return null;
|
|
14037
|
-
const { openRewriteSpill } = await import('./module-
|
|
14040
|
+
const { openRewriteSpill } = await import('./module-ZL5ZG6YB.mjs');
|
|
14038
14041
|
return openRewriteSpill(storage, manager, target);
|
|
14039
14042
|
}
|
|
14040
14043
|
|
|
@@ -14346,91 +14349,6 @@ function createAnalysisRebuildCoordinator(config, deps) {
|
|
|
14346
14349
|
};
|
|
14347
14350
|
}
|
|
14348
14351
|
|
|
14349
|
-
// src/engine/durability-config.ts
|
|
14350
|
-
var WAL_ONLY_FIELDS = ["directory", "mode", "flushIntervalMs", "segmentMaxBytes", "compactionThreshold"];
|
|
14351
|
-
function configError(message) {
|
|
14352
|
-
return new NarsilError(ErrorCodes.CONFIG_INVALID, message);
|
|
14353
|
-
}
|
|
14354
|
-
function requireKnob(name, value, minimum) {
|
|
14355
|
-
if (value === void 0) {
|
|
14356
|
-
return;
|
|
14357
|
-
}
|
|
14358
|
-
if (typeof value !== "number" || !Number.isFinite(value) || value < minimum) {
|
|
14359
|
-
throw configError(`durability.${name} must be a finite number of at least ${minimum}, got ${String(value)}`);
|
|
14360
|
-
}
|
|
14361
|
-
}
|
|
14362
|
-
function requireValidDurabilityConfig(durability) {
|
|
14363
|
-
if (durability.tier !== void 0 && durability.tier !== "wal" && durability.tier !== "snapshot") {
|
|
14364
|
-
throw configError(`durability.tier must be "wal" or "snapshot", got "${String(durability.tier)}"`);
|
|
14365
|
-
}
|
|
14366
|
-
if (durability.mode !== void 0 && durability.mode !== "sync" && durability.mode !== "async") {
|
|
14367
|
-
throw configError(`durability.mode must be "sync" or "async", got "${String(durability.mode)}"`);
|
|
14368
|
-
}
|
|
14369
|
-
requireKnob("checkpointIntervalMs", durability.checkpointIntervalMs, 0);
|
|
14370
|
-
requireKnob("checkpointMutationThreshold", durability.checkpointMutationThreshold, 1);
|
|
14371
|
-
requireKnob("flushIntervalMs", durability.flushIntervalMs, 0);
|
|
14372
|
-
requireKnob("segmentMaxBytes", durability.segmentMaxBytes, 1);
|
|
14373
|
-
if (durability.segmentMaxBytes !== void 0 && durability.segmentMaxBytes > MAX_FILE_BYTES) {
|
|
14374
|
-
throw configError(
|
|
14375
|
-
`durability.segmentMaxBytes must be at most ${MAX_FILE_BYTES}, the largest file that every implementation reads, got ${durability.segmentMaxBytes}`
|
|
14376
|
-
);
|
|
14377
|
-
}
|
|
14378
|
-
requireKnob("compactionThreshold", durability.compactionThreshold, 1);
|
|
14379
|
-
if (durability.tier === "snapshot") {
|
|
14380
|
-
for (const field of WAL_ONLY_FIELDS) {
|
|
14381
|
-
if (durability[field] !== void 0) {
|
|
14382
|
-
throw configError(
|
|
14383
|
-
`durability.${field} applies to the write-ahead log tier only and cannot combine with durability.tier "snapshot"`
|
|
14384
|
-
);
|
|
14385
|
-
}
|
|
14386
|
-
}
|
|
14387
|
-
}
|
|
14388
|
-
}
|
|
14389
|
-
function filesystemBackedDirectory(config) {
|
|
14390
|
-
const adapterDirectory = config.persistence?.directory;
|
|
14391
|
-
if (adapterDirectory !== void 0 && adapterDirectory.trim().length > 0) {
|
|
14392
|
-
return adapterDirectory;
|
|
14393
|
-
}
|
|
14394
|
-
return null;
|
|
14395
|
-
}
|
|
14396
|
-
function resolveDurabilityTier(config) {
|
|
14397
|
-
const filesystemDirectory = filesystemBackedDirectory(config);
|
|
14398
|
-
if (config.durability) {
|
|
14399
|
-
requireValidDurabilityConfig(config.durability);
|
|
14400
|
-
}
|
|
14401
|
-
if (config.durability?.tier === "snapshot") {
|
|
14402
|
-
if (config.persistence === void 0) {
|
|
14403
|
-
throw configError(
|
|
14404
|
-
"Snapshot durability persists through a persistence adapter. Configure persistence, or remove durability.tier"
|
|
14405
|
-
);
|
|
14406
|
-
}
|
|
14407
|
-
return { kind: "snapshot", config: { ...config.durability }, adapter: config.persistence };
|
|
14408
|
-
}
|
|
14409
|
-
if (config.durability) {
|
|
14410
|
-
if (config.durability.directory !== void 0 && config.durability.directory.trim().length > 0) {
|
|
14411
|
-
return { kind: "wal", config: { ...config.durability } };
|
|
14412
|
-
}
|
|
14413
|
-
if (filesystemDirectory !== null) {
|
|
14414
|
-
return { kind: "wal", config: { ...config.durability, directory: filesystemDirectory } };
|
|
14415
|
-
}
|
|
14416
|
-
if (config.persistence !== void 0) {
|
|
14417
|
-
throw configError(
|
|
14418
|
-
"WAL durability requires a filesystem directory, but the configured persistence adapter is not filesystem-backed. Use a filesystem persistence adapter or set durability.directory"
|
|
14419
|
-
);
|
|
14420
|
-
}
|
|
14421
|
-
throw configError(
|
|
14422
|
-
"Durability requires a directory. Set durability.directory explicitly, or configure a filesystem persistence adapter"
|
|
14423
|
-
);
|
|
14424
|
-
}
|
|
14425
|
-
if (config.persistence === void 0) {
|
|
14426
|
-
return null;
|
|
14427
|
-
}
|
|
14428
|
-
if (filesystemDirectory !== null) {
|
|
14429
|
-
return { kind: "wal", config: { directory: filesystemDirectory } };
|
|
14430
|
-
}
|
|
14431
|
-
return { kind: "snapshot", config: {}, adapter: config.persistence };
|
|
14432
|
-
}
|
|
14433
|
-
|
|
14434
14352
|
// src/engine/array-positions.ts
|
|
14435
14353
|
function holdsStringArrayField(schema) {
|
|
14436
14354
|
return schemaFieldsOf(schema).some((field) => field.base === "string[]");
|
|
@@ -14727,7 +14645,7 @@ async function createIndexFromMetadata(deps, metadata, loadData) {
|
|
|
14727
14645
|
const existing = deps.indexRegistry.get(metadata.indexName);
|
|
14728
14646
|
if (existing !== void 0) {
|
|
14729
14647
|
if ((metadata.analysisGeneration ?? 0) > existing.analysisGeneration) {
|
|
14730
|
-
const { adoptSavedAnalysis } = await import('./analysis-change-
|
|
14648
|
+
const { adoptSavedAnalysis } = await import('./analysis-change-6BPDPH6K.mjs');
|
|
14731
14649
|
adoptSavedAnalysis(deps.executor.getManager(metadata.indexName), existing, metadata);
|
|
14732
14650
|
}
|
|
14733
14651
|
if (loadData && deps.executor.getManager(metadata.indexName) === void 0) {
|
|
@@ -14783,7 +14701,8 @@ async function createIndexFromMetadata(deps, metadata, loadData) {
|
|
|
14783
14701
|
analysisGeneration: metadata.analysisGeneration ?? 0,
|
|
14784
14702
|
pendingAnalysis: metadata.pendingAnalysis ?? null,
|
|
14785
14703
|
durableAnalysis: null,
|
|
14786
|
-
sync: metadata.sync?.enabled === true ? (await import('./sync-state-PASCIHHT.mjs')).syncStateOfMetadata(metadata) : null
|
|
14704
|
+
sync: metadata.sync?.enabled === true ? (await import('./sync-state-PASCIHHT.mjs')).syncStateOfMetadata(metadata) : null,
|
|
14705
|
+
querySuggestions: metadata.querySuggestions ?? null
|
|
14787
14706
|
});
|
|
14788
14707
|
if (loadData) await deps.indexState().registerOpen(metadata.indexName);
|
|
14789
14708
|
else deps.indexState().registerClosed(metadata.indexName);
|
|
@@ -16660,7 +16579,7 @@ async function startPool(state) {
|
|
|
16660
16579
|
);
|
|
16661
16580
|
}
|
|
16662
16581
|
eligibleIndexNames(state);
|
|
16663
|
-
const [factory, { createWorkerPool }] = await Promise.all([createWorkerFactory(), import('./pool-
|
|
16582
|
+
const [factory, { createWorkerPool }] = await Promise.all([createWorkerFactory(), import('./pool-JR3NJCAF.mjs')]);
|
|
16664
16583
|
let started = null;
|
|
16665
16584
|
const pool = createWorkerPool({
|
|
16666
16585
|
count: state.keywordWorkerCount + state.longQueryWorkerCount,
|
|
@@ -17351,18 +17270,18 @@ async function emitWriteEventAfter(source, indexName, write) {
|
|
|
17351
17270
|
// src/engine/core.ts
|
|
17352
17271
|
async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
17353
17272
|
validateWorkerConfig(config?.workers, config?.lifecycle);
|
|
17354
|
-
const rerankSettings = config?.rerankTimeout === void 0 && config?.maxRerankWindow === void 0 ? { timeoutMs: DEFAULT_RERANK_TIMEOUT_MS, maxWindow: DEFAULT_MAX_RERANK_WINDOW } : (await import('./runtime-
|
|
17273
|
+
const rerankSettings = config?.rerankTimeout === void 0 && config?.maxRerankWindow === void 0 ? { timeoutMs: DEFAULT_RERANK_TIMEOUT_MS, maxWindow: DEFAULT_MAX_RERANK_WINDOW } : (await import('./runtime-R5E3TB3J.mjs')).resolveRerankSettings(config);
|
|
17355
17274
|
const eventHandlers = eventHandlersOf(config?.events);
|
|
17356
17275
|
const vectorWorkerCount = splitWorkerBudget(resolveWorkerCount(config?.workers?.count)).vector;
|
|
17357
17276
|
const vectorCopyPolicy = {
|
|
17358
17277
|
enabled: (config?.workers?.enabled ?? workersEnabledByDefault()) && vectorWorkerCount > 0,
|
|
17359
17278
|
count: vectorWorkerCount
|
|
17360
17279
|
};
|
|
17361
|
-
const durabilityTier = config !== void 0 ? resolveDurabilityTier(config) : null;
|
|
17280
|
+
const durabilityTier = config !== void 0 && (config.durability || config.persistence !== void 0) ? (await import('./durability-config-QXVZEO7T.mjs')).resolveDurabilityTier(config) : null;
|
|
17362
17281
|
if (config?.lifecycle !== void 0 && durabilityTier === null) {
|
|
17363
17282
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "Index lifecycle settings require durability");
|
|
17364
17283
|
}
|
|
17365
|
-
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-
|
|
17284
|
+
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-KO565FZC.mjs');
|
|
17366
17285
|
const filesystemDurability = durabilityTier?.kind === "wal";
|
|
17367
17286
|
const executor = createDirectExecutor({
|
|
17368
17287
|
vectorWorkerCopies: vectorCopyPolicy,
|
|
@@ -17548,7 +17467,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
17548
17467
|
requireManager,
|
|
17549
17468
|
resumeChange: async (indexName) => {
|
|
17550
17469
|
if ((indexRegistry.get(indexName)?.pendingAnalysis ?? null) === null) return;
|
|
17551
|
-
await (await import('./analysis-change-entry-
|
|
17470
|
+
await (await import('./analysis-change-entry-JLL42PH6.mjs')).resumeChangeOf(engineCore, indexName);
|
|
17552
17471
|
},
|
|
17553
17472
|
onClose: hooks?.onIndexClose,
|
|
17554
17473
|
onOpen: (indexName) => {
|
|
@@ -17611,6 +17530,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
17611
17530
|
orchestrator,
|
|
17612
17531
|
rebalanceRouter,
|
|
17613
17532
|
rebalancingIndexes,
|
|
17533
|
+
restoresInFlight: /* @__PURE__ */ new Map(),
|
|
17614
17534
|
waqMap,
|
|
17615
17535
|
guardShutdown,
|
|
17616
17536
|
requireIndex,
|
|
@@ -17635,7 +17555,7 @@ async function startEngineCore(core, config) {
|
|
|
17635
17555
|
checkHeapAfterRecovery(core);
|
|
17636
17556
|
}
|
|
17637
17557
|
if (core.invalidation) await core.invalidation.start();
|
|
17638
|
-
if (core.durability) await (await import('./analysis-change-entry-
|
|
17558
|
+
if (core.durability) await (await import('./analysis-change-entry-JLL42PH6.mjs')).resumeEveryChange(core);
|
|
17639
17559
|
if (config?.lifecycle === void 0) await core.analysisRebuild.reviewStaleIndexes();
|
|
17640
17560
|
} catch (err) {
|
|
17641
17561
|
await core.durability?.manager.shutdown().catch(() => void 0);
|
|
@@ -17645,6 +17565,7 @@ async function startEngineCore(core, config) {
|
|
|
17645
17565
|
}
|
|
17646
17566
|
async function shutdownEngine(core) {
|
|
17647
17567
|
const { executor, durability, indexRegistry, eventHandlers, orchestrator } = core;
|
|
17568
|
+
await core.querySuggestionHooks?.shutdown();
|
|
17648
17569
|
core.indexState.dispose();
|
|
17649
17570
|
if (durability) {
|
|
17650
17571
|
await durability.manager.shutdown();
|
|
@@ -17673,7 +17594,7 @@ async function shutdownEngine(core) {
|
|
|
17673
17594
|
}
|
|
17674
17595
|
}
|
|
17675
17596
|
if (core.rerankAdapters.size > 0) {
|
|
17676
|
-
await (await import('./runtime-
|
|
17597
|
+
await (await import('./runtime-R5E3TB3J.mjs')).shutdownRerankAdapters(core.rerankAdapters);
|
|
17677
17598
|
}
|
|
17678
17599
|
await orchestrator.shutdown();
|
|
17679
17600
|
await executor.shutdown();
|
|
@@ -17849,7 +17770,8 @@ function indexConfigurationOf(entry) {
|
|
|
17849
17770
|
synonyms,
|
|
17850
17771
|
entry.analysisGeneration
|
|
17851
17772
|
);
|
|
17852
|
-
|
|
17773
|
+
const withSuggestions = { ...payload, ...entry.querySuggestions };
|
|
17774
|
+
return entry.sync === null ? withSuggestions : { ...withSuggestions, syncEpoch: entry.sync.epoch };
|
|
17853
17775
|
}
|
|
17854
17776
|
function requireConfigurationWithinSizeLimit(config, language) {
|
|
17855
17777
|
const adapter = config.embedding?.adapter;
|
|
@@ -18016,6 +17938,7 @@ async function createEngineIndex(core, config, name, requestedConfig, creation =
|
|
|
18016
17938
|
const language = getLanguage(indexConfig.language ?? "english");
|
|
18017
17939
|
if (appliesCreationLimits) requireConfigurationWithinSizeLimit(indexConfig, language);
|
|
18018
17940
|
const synonyms = prepareConfiguredSynonyms(configured, language, appliesCreationLimits);
|
|
17941
|
+
await core.querySuggestionHooks?.beforeCreate(name);
|
|
18019
17942
|
core.executor.createIndex(name, indexConfig, language, false, synonyms?.lookup ?? null);
|
|
18020
17943
|
core.indexRegistry.set(name, {
|
|
18021
17944
|
config: indexConfig,
|
|
@@ -18033,7 +17956,8 @@ async function createEngineIndex(core, config, name, requestedConfig, creation =
|
|
|
18033
17956
|
analysisGeneration: 0,
|
|
18034
17957
|
pendingAnalysis: null,
|
|
18035
17958
|
durableAnalysis: null,
|
|
18036
|
-
sync: null
|
|
17959
|
+
sync: null,
|
|
17960
|
+
querySuggestions: creation.querySuggestions ?? null
|
|
18037
17961
|
});
|
|
18038
17962
|
await core.indexState.registerOpen(name);
|
|
18039
17963
|
if (core.durability) {
|
|
@@ -18046,10 +17970,11 @@ async function dropEngineIndex(core, name) {
|
|
|
18046
17970
|
const entry = core.requireIndex(name);
|
|
18047
17971
|
const changeRecorded = () => entry.pendingAnalysis !== null || entry.durableAnalysis !== null;
|
|
18048
17972
|
const abandonChange = async () => {
|
|
18049
|
-
await (await import('./analysis-change-entry-
|
|
17973
|
+
await (await import('./analysis-change-entry-JLL42PH6.mjs')).abandonChangeOf(core, name);
|
|
18050
17974
|
};
|
|
18051
17975
|
if (changeRecorded()) await abandonChange();
|
|
18052
17976
|
await core.indexState.drop(name, async () => {
|
|
17977
|
+
await core.querySuggestionHooks?.beforeDrop(name);
|
|
18053
17978
|
await core.analysisRebuild.abandon(name);
|
|
18054
17979
|
if (changeRecorded()) await abandonChange();
|
|
18055
17980
|
await core.orchestrator.closeIndex(name);
|
|
@@ -18067,6 +17992,7 @@ async function dropEngineIndex(core, name) {
|
|
|
18067
17992
|
core.analysisRebuild.clearStale(name);
|
|
18068
17993
|
if (entry.sync !== null) emitSyncChange(core.indexRegistry, { kind: "dropped", indexName: name });
|
|
18069
17994
|
});
|
|
17995
|
+
await core.querySuggestionHooks?.afterDrop(name);
|
|
18070
17996
|
await runLifecycleHook(core, "onIndexDrop", { indexName: name, config: entry.config });
|
|
18071
17997
|
}
|
|
18072
17998
|
function registerEngineEmbeddingAdapter(core, name, adapter) {
|
|
@@ -19805,7 +19731,7 @@ async function dropEngineIndex2(core, name) {
|
|
|
19805
19731
|
// src/engine/sync-epoch.ts
|
|
19806
19732
|
async function holdSyncEpochChange(core, indexName) {
|
|
19807
19733
|
if ((core.indexRegistry.get(indexName)?.sync ?? null) === null) return () => void 0;
|
|
19808
|
-
return (await import('./operations-
|
|
19734
|
+
return (await import('./operations-GNRMD6EX.mjs')).holdRenewedSyncEpoch(core, indexName);
|
|
19809
19735
|
}
|
|
19810
19736
|
async function withRenewedSyncEpoch(core, indexName, change) {
|
|
19811
19737
|
const release = await holdSyncEpochChange(core, indexName);
|
|
@@ -19897,6 +19823,9 @@ var engineCores = /* @__PURE__ */ new WeakMap();
|
|
|
19897
19823
|
function bindEngineCore(engine, core) {
|
|
19898
19824
|
engineCores.set(engine, core);
|
|
19899
19825
|
}
|
|
19826
|
+
function engineCoreOf(engine) {
|
|
19827
|
+
return engineCores.get(engine);
|
|
19828
|
+
}
|
|
19900
19829
|
|
|
19901
19830
|
// src/narsil/portability.ts
|
|
19902
19831
|
function portabilityOperations(core, config, engine) {
|
|
@@ -19910,7 +19839,23 @@ function portabilityOperations(core, config, engine) {
|
|
|
19910
19839
|
release();
|
|
19911
19840
|
}
|
|
19912
19841
|
}
|
|
19913
|
-
|
|
19842
|
+
function queueRestore(indexName, data) {
|
|
19843
|
+
const { restoresInFlight } = core;
|
|
19844
|
+
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
19845
|
+
const restored = previous.then(async () => {
|
|
19846
|
+
const { runRestore } = await import('./restore-queue-HSYP2AEC.mjs');
|
|
19847
|
+
await runRestore(core, restoreHost, indexName, data, engine());
|
|
19848
|
+
});
|
|
19849
|
+
const settled2 = restored.then(
|
|
19850
|
+
() => void 0,
|
|
19851
|
+
() => void 0
|
|
19852
|
+
);
|
|
19853
|
+
restoresInFlight.set(indexName, settled2);
|
|
19854
|
+
void settled2.then(() => {
|
|
19855
|
+
if (restoresInFlight.get(indexName) === settled2) restoresInFlight.delete(indexName);
|
|
19856
|
+
});
|
|
19857
|
+
return restored;
|
|
19858
|
+
}
|
|
19914
19859
|
const restoreHost = {
|
|
19915
19860
|
getVectorFieldPaths,
|
|
19916
19861
|
announceIndexCreated: (name, restoredConfig) => announceIndexCreated(core, name, restoredConfig),
|
|
@@ -19927,26 +19872,23 @@ function portabilityOperations(core, config, engine) {
|
|
|
19927
19872
|
};
|
|
19928
19873
|
}
|
|
19929
19874
|
return {
|
|
19930
|
-
snapshot(indexName) {
|
|
19875
|
+
snapshot(indexName, options) {
|
|
19931
19876
|
return withOpenIndex2(indexName, async () => {
|
|
19932
|
-
const { createSnapshot } = await import('./snapshot-
|
|
19933
|
-
return createSnapshot(snapshotDepsOf(indexName));
|
|
19877
|
+
const { createSnapshot } = await import('./snapshot-EZYB6SLF.mjs');
|
|
19878
|
+
return createSnapshot(snapshotDepsOf(indexName), options?.queryHistory === true ? core : null);
|
|
19934
19879
|
});
|
|
19935
19880
|
},
|
|
19936
19881
|
async restore(indexName, data) {
|
|
19937
19882
|
core.guardShutdown();
|
|
19938
19883
|
validateIndexName(indexName);
|
|
19939
|
-
|
|
19940
|
-
({ queueRestore }) => queueRestore(core, restoreHost, restoresInFlight, indexName, data)
|
|
19941
|
-
);
|
|
19942
|
-
await emitWriteEventAfter(core, indexName, restored);
|
|
19884
|
+
await emitWriteEventAfter(core, indexName, queueRestore(indexName, data));
|
|
19943
19885
|
core.heapPressureNotifier.check(indexName);
|
|
19944
19886
|
},
|
|
19945
19887
|
exportDocuments(indexName) {
|
|
19946
19888
|
return withOpenIndex2(indexName, async () => {
|
|
19947
19889
|
const [{ checkpointForArchive }, { documentExportStream }] = await Promise.all([
|
|
19948
|
-
import('./snapshot-
|
|
19949
|
-
import('./write-
|
|
19890
|
+
import('./snapshot-EZYB6SLF.mjs'),
|
|
19891
|
+
import('./write-JUESXHDL.mjs')
|
|
19950
19892
|
]);
|
|
19951
19893
|
const header = indexConfigurationOf(core.requireIndex(indexName));
|
|
19952
19894
|
return documentExportStream(header, await checkpointForArchive(snapshotDepsOf(indexName)));
|
|
@@ -19954,7 +19896,7 @@ function portabilityOperations(core, config, engine) {
|
|
|
19954
19896
|
},
|
|
19955
19897
|
importDocumentExport(indexName, data) {
|
|
19956
19898
|
core.guardShutdown();
|
|
19957
|
-
const imported = import('./import-
|
|
19899
|
+
const imported = import('./import-YVZA4V4V.mjs').then(
|
|
19958
19900
|
({ readDocumentExport }) => readDocumentExport(engine(), indexName, data)
|
|
19959
19901
|
);
|
|
19960
19902
|
return emitWriteEventAfter(core, indexName, imported);
|
|
@@ -21261,7 +21203,7 @@ function requireCursorDepth(cursor, signature, binding) {
|
|
|
21261
21203
|
}
|
|
21262
21204
|
function hybridSearchOf(params, context, limit, offset, cursorDepth) {
|
|
21263
21205
|
if ((params.hybrid?.depth ?? null) === null) return executeHybridSearch(params, context, limit, offset, cursorDepth);
|
|
21264
|
-
return import('./runtime-
|
|
21206
|
+
return import('./runtime-R5E3TB3J.mjs').then(
|
|
21265
21207
|
(runtime) => runtime.searchFixedDepthHybrid(params, context, { cursorDepth: cursorDepth ?? 0, offset, limit }, runtimeHost)
|
|
21266
21208
|
);
|
|
21267
21209
|
}
|
|
@@ -21271,7 +21213,7 @@ function executeQuery(request, callerContext) {
|
|
|
21271
21213
|
if (loadingPhraseCode === null) return runQuery(request, callerContext);
|
|
21272
21214
|
return loadingPhraseCode.then(() => runQuery(request, callerContext));
|
|
21273
21215
|
}
|
|
21274
|
-
return import('./runtime-
|
|
21216
|
+
return import('./runtime-R5E3TB3J.mjs').then(
|
|
21275
21217
|
(runtime) => runtime.executeRerankedQuery(request, callerContext, executeQuery, runtimeHost)
|
|
21276
21218
|
);
|
|
21277
21219
|
}
|
|
@@ -21670,7 +21612,7 @@ async function runEngineQuery(core, indexName, params, options) {
|
|
|
21670
21612
|
const manager = core.requireManager(indexName);
|
|
21671
21613
|
const scoped = scopedParams(params, options);
|
|
21672
21614
|
await core.pluginRegistry.runHook("beforeSearch", { indexName, params: scoped });
|
|
21673
|
-
const rerank = scoped.rerank === void 0 ? void 0 : await import('./runtime-
|
|
21615
|
+
const rerank = scoped.rerank === void 0 ? void 0 : await import('./runtime-R5E3TB3J.mjs');
|
|
21674
21616
|
const resolvedParams = await resolveVectorText(
|
|
21675
21617
|
rerank === void 0 ? scoped : rerank.withRerankQueryText(scoped),
|
|
21676
21618
|
entry.embeddingAdapter,
|
|
@@ -21792,8 +21734,8 @@ async function runEngineListDocuments(core, indexName, params, partitionIds) {
|
|
|
21792
21734
|
// src/narsil/sync.ts
|
|
21793
21735
|
function syncOperations(core) {
|
|
21794
21736
|
return {
|
|
21795
|
-
updateSync: async (indexName, setting) => (await import('./methods-
|
|
21796
|
-
getSync: async (indexName) => (await import('./methods-
|
|
21737
|
+
updateSync: async (indexName, setting) => (await import('./methods-6W5U4C3H.mjs')).updateSyncOf(core, indexName, setting),
|
|
21738
|
+
getSync: async (indexName) => (await import('./methods-6W5U4C3H.mjs')).syncOf(core, indexName)
|
|
21797
21739
|
};
|
|
21798
21740
|
}
|
|
21799
21741
|
|
|
@@ -21975,7 +21917,7 @@ function createNarsilFromCore(core, config) {
|
|
|
21975
21917
|
const entry = requireIndex(indexName);
|
|
21976
21918
|
await withOpenIndexWrite(indexName, async () => {
|
|
21977
21919
|
if (entry.pendingAnalysis === null) return core.analysisRebuild.rebuild(indexName);
|
|
21978
|
-
return (await import('./analysis-change-
|
|
21920
|
+
return (await import('./analysis-change-6BPDPH6K.mjs')).resumeAnalysisChange(core, indexName);
|
|
21979
21921
|
});
|
|
21980
21922
|
},
|
|
21981
21923
|
async changeAnalysis(indexName, change) {
|
|
@@ -21983,7 +21925,7 @@ function createNarsilFromCore(core, config) {
|
|
|
21983
21925
|
requireIndex(indexName);
|
|
21984
21926
|
const changed = withOpenIndex2(
|
|
21985
21927
|
indexName,
|
|
21986
|
-
async () => (await import('./analysis-change-
|
|
21928
|
+
async () => (await import('./analysis-change-6BPDPH6K.mjs')).changeIndexAnalysis(core, indexName, change)
|
|
21987
21929
|
);
|
|
21988
21930
|
await emitWriteEventAfter(core, indexName, changed);
|
|
21989
21931
|
},
|
|
@@ -22018,7 +21960,7 @@ function createNarsilFromCore(core, config) {
|
|
|
22018
21960
|
const rebalanced = withOpenIndex2(
|
|
22019
21961
|
indexName,
|
|
22020
21962
|
() => withRenewedSyncEpoch(core, indexName, async () => {
|
|
22021
|
-
const { executeRebalance } = await import('./analysis-change-
|
|
21963
|
+
const { executeRebalance } = await import('./analysis-change-6BPDPH6K.mjs');
|
|
22022
21964
|
const running = executeRebalance(requireManager(indexName), indexName, targetPartitionCount, rebalanceCtx);
|
|
22023
21965
|
releaseWrites();
|
|
22024
21966
|
await running;
|
|
@@ -22140,10 +22082,14 @@ async function createNarsil(config) {
|
|
|
22140
22082
|
const runnableConfig = await resolveRunnableConfig(config);
|
|
22141
22083
|
const core = await createEngineCore(runnableConfig);
|
|
22142
22084
|
await startEngineCore(core, runnableConfig);
|
|
22143
|
-
|
|
22085
|
+
const engine = createNarsilFromCore(core, runnableConfig);
|
|
22086
|
+
if (runnableConfig?.querySuggestions !== void 0 || core.durability !== null) {
|
|
22087
|
+
await (await import('./engine-hooks-MVRRHH6B.mjs')).startQuerySuggestions(core, engine, runnableConfig);
|
|
22088
|
+
}
|
|
22089
|
+
return engine;
|
|
22144
22090
|
}
|
|
22145
22091
|
|
|
22146
22092
|
// src/index.ts
|
|
22147
22093
|
var VERSION = "0.1.0";
|
|
22148
22094
|
|
|
22149
|
-
export { ARRAY_POSITION_GAP, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, VERSION, arrayPositionsAreStale, assemblePagedFrozenSegment, buildPartialWordTableFrom, buildSegmentPayload, createCompositePartition, createEncodedDocumentSource, createFrozenSegment, createNarsil, createPartitionIndex, createPartitionManager, createPartitionRouter, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, decodeSurfaceTable, deleteNestedValue, emitEngineEvent, encodeIndexConfiguration, encodeSurfaceTable, endOfValue, engineVersionParts, extractVectorFromDoc, fieldIndexRemapOf, freezeSegmentShared, generateId, holdSyncEpochChange, holdsADiscardedField, insertDocumentVectors, isCompositePartition, loadVectorCodeFor, mergeDocFrequencies, mergeFieldIndexes2 as mergeFieldIndexes, mergeFieldLengths, mergePartialWords, mergeSegmentContents, mergeSurfaceForms2 as mergeSurfaceForms, packChecksummedEnvelope, packEnvelopeWithChecksum, partitionStateOf, prepareConfiguredSynonyms, prepareDocumentVectors, prepareStoredSynonyms, readResidentMemory, rebuildTextIndexes, reconstructSchemaFromMetadata, registerPartialWordSearch, registerPatternSearch, registerSynonyms, removeDocumentVectors, requireConfigurationWithinSizeLimit, requireSurfaceFormsForPartialFields, resolvePartialWordAnalysis, resolvePartitionInsertOptions, rewriteSpillOf, rulesOfStoredSynonyms, scanPostingBlocks, segmentArraysOf, selectionKeeps, shareSegmentArrays, storedArrayPositionGap, survivorDocumentsOf, textRebuildTargetOf, toError2 as toError, validateEmbeddingConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, vectorsEqual, wrapFrozenTokenTable, yieldToEventLoop2 as yieldToEventLoop };
|
|
22095
|
+
export { ARRAY_POSITION_GAP, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, VERSION, arrayPositionsAreStale, assemblePagedFrozenSegment, buildPartialWordTableFrom, buildSegmentPayload, 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, holdSyncEpochChange, holdsADiscardedField, insertDocumentVectors, isCompositePartition, loadVectorCodeFor, mergeDocFrequencies, mergeFieldIndexes2 as mergeFieldIndexes, mergeFieldLengths, mergePartialWords, mergeSegmentContents, mergeSurfaceForms2 as mergeSurfaceForms, packChecksummedEnvelope, packEnvelopeWithChecksum, partitionStateOf, prepareConfiguredSynonyms, prepareDocumentVectors, prepareStoredSynonyms, readResidentMemory, rebuildTextIndexes, reconstructSchemaFromMetadata, registerPartialWordSearch, registerPatternSearch, registerSynonyms, removeDocumentBatch2 as removeDocumentBatch, removeDocumentVectors, requireConfigurationWithinSizeLimit, requireSurfaceFormsForPartialFields, resolvePartialWordAnalysis, resolvePartitionInsertOptions, rewriteSpillOf, rulesOfStoredSynonyms, scanPostingBlocks, segmentArraysOf, selectionKeeps, shareSegmentArrays, storedArrayPositionGap, survivorDocumentsOf, textRebuildTargetOf, toError2 as toError, validateEmbeddingConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, vectorsEqual, wrapFrozenTokenTable, yieldToEventLoop2 as yieldToEventLoop };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
2
1
|
import { newSyncEpoch } from './chunk-JWUCMVRK.mjs';
|
|
2
|
+
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
3
|
import { withOpenIndex, emitSyncChange } from './chunk-JDOEEMEF.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
5
5
|
|
|
6
6
|
// src/engine/sync/operations.ts
|
|
7
7
|
function invalidLimit(name, value) {
|
|
@@ -26,6 +26,14 @@ function requireSyncSetting(setting) {
|
|
|
26
26
|
...historyMaxBytes !== void 0 ? { historyMaxBytes } : {}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
+
function requireNoQuerySuggestions(state, indexName) {
|
|
30
|
+
if (state?.querySuggestions?.enabled !== true) return;
|
|
31
|
+
throw new NarsilError(
|
|
32
|
+
ErrorCodes.CONFIG_INVALID,
|
|
33
|
+
`Index "${indexName}" has popular query suggestions on, so it cannot sync to devices: a device receives the whole index of one user, while a suggestion comes from the searches of several people`,
|
|
34
|
+
{ indexName }
|
|
35
|
+
);
|
|
36
|
+
}
|
|
29
37
|
function syncStorageOf(core, indexName) {
|
|
30
38
|
const storage = core.durability?.manager.syncStorage?.();
|
|
31
39
|
if (storage === void 0) {
|
|
@@ -56,6 +64,7 @@ function updateIndexSync(core, indexName, value) {
|
|
|
56
64
|
core,
|
|
57
65
|
indexName,
|
|
58
66
|
() => oneSyncChangeAtATime(core.indexRegistry, indexName, async () => {
|
|
67
|
+
if (setting.enabled) requireNoQuerySuggestions(core.requireIndex(indexName).querySuggestions, indexName);
|
|
59
68
|
const previous = core.requireIndex(indexName).sync;
|
|
60
69
|
if (!setting.enabled) {
|
|
61
70
|
if (previous === null) return;
|
|
@@ -99,4 +108,4 @@ function holdRenewedSyncEpoch(core, indexName) {
|
|
|
99
108
|
});
|
|
100
109
|
}
|
|
101
110
|
|
|
102
|
-
export { holdRenewedSyncEpoch, requireSyncSetting, syncStorageOf, updateIndexSync };
|
|
111
|
+
export { holdRenewedSyncEpoch, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { reactNativeHost } from './chunk-MVXELMJX.mjs';
|
|
1
2
|
import { FNV_PRIME, FNV_OFFSET_BASIS } from './chunk-CHPTFFJM.mjs';
|
|
2
|
-
import { reactNativeHost } from './chunk-IOY2SM2P.mjs';
|
|
3
3
|
|
|
4
4
|
var REFUSAL_COLLECTION_MIN_INTERVAL_MS = 1e3;
|
|
5
5
|
var REFUSAL_COLLECTION_TIME_MULTIPLE = 10;
|