@delali/narsil 0.3.1-next.153 → 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 +3 -1
- 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-2OYM7ARW.mjs → analysis-change-3TFIHT5E.mjs} +32 -23
- package/dist/{react-native/chunks/analysis-change-entry-CXNRW324.mjs → analysis-change-entry-KA6JAO4X.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-2V2HZ2NY.mjs → analysis-change-TC36BU47.mjs} +39 -10
- package/dist/{analysis-change-entry-QD7YNDEE.mjs → browser/analysis-change-entry-4MH3CZXH.mjs} +1 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
- package/dist/browser/chunk-23XRXIBW.mjs +85 -0
- package/dist/browser/chunk-3UIEB4QF.mjs +63 -0
- package/dist/browser/{chunk-CSCKZBVJ.mjs → chunk-4EWUGZYZ.mjs} +4 -4
- package/dist/browser/chunk-4WCVMOU3.mjs +151 -0
- package/dist/browser/{chunk-QJCO3TJU.mjs → chunk-56W3HQVJ.mjs} +9 -150
- package/dist/{react-native/chunks/chunk-VGUWIZFQ.mjs → browser/chunk-5TCXK5SB.mjs} +2 -2
- package/dist/browser/chunk-5W3MMTLG.mjs +19 -0
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/chunk-A5KUEGDY.mjs +241 -0
- package/dist/browser/{chunk-HT7J73QL.mjs → chunk-ABCXENU5.mjs} +2 -2
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/browser/chunk-BXM5XOCA.mjs +315 -0
- package/dist/browser/chunk-CJSYBQ4J.mjs +100 -0
- package/dist/browser/chunk-DSXIBE6N.mjs +78 -0
- package/dist/browser/chunk-ELV4OZOI.mjs +29 -0
- package/dist/{react-native/chunks/chunk-QC4ZRBSX.mjs → browser/chunk-EXQZGUQH.mjs} +2 -79
- package/dist/browser/{chunk-2A2IPRC3.mjs → chunk-FNIFPFB7.mjs} +5 -31
- package/dist/browser/chunk-G64Q6OJF.mjs +96 -0
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/chunk-IKDKX5VQ.mjs +1007 -0
- package/dist/browser/chunk-JIJXMI42.mjs +1829 -0
- package/dist/browser/chunk-JVBP5EYO.mjs +1106 -0
- package/dist/browser/{chunk-TQ5UMFG5.mjs → chunk-K4GCSZLI.mjs} +15 -6
- package/dist/browser/{chunk-PM4MUM5N.mjs → chunk-K5AXJBLL.mjs} +6 -5
- package/dist/browser/chunk-KKAMCABR.mjs +432 -0
- package/dist/browser/{chunk-IAXZAVYL.mjs → chunk-LFIWRCEA.mjs} +1 -159
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/chunk-ML7THVLJ.mjs +38 -0
- package/dist/browser/chunk-NLWTBAGB.mjs +111 -0
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/browser/{chunk-MPK76GVS.mjs → chunk-RA6LSBCM.mjs} +1 -21
- package/dist/browser/{chunk-GJKXW3SF.mjs → chunk-RND5CLX3.mjs} +147 -253
- package/dist/{react-native/chunks/chunk-DFQJ4IJB.mjs → browser/chunk-RQBUNZQW.mjs} +2 -2
- package/dist/browser/{chunk-VD7JEUIR.mjs → chunk-RRO3EV4C.mjs} +9 -8
- package/dist/browser/{chunk-KWYQ6KX4.mjs → chunk-SMEQ36NT.mjs} +162 -2019
- package/dist/{chunk-MDF6PDIA.mjs → browser/chunk-SRMZXJSL.mjs} +8 -1
- package/dist/browser/{chunk-7ZJTRUVW.mjs → chunk-SUDNZKPL.mjs} +2 -2
- package/dist/browser/{chunk-LURXVCHG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/chunk-VI7BQR4U.mjs +21 -0
- package/dist/browser/{chunk-B3JM6Z74.mjs → chunk-XY4VVBBO.mjs} +3 -2
- package/dist/browser/chunk-YJHGOJAC.mjs +15 -0
- package/dist/browser/chunk-ZI2V4VD7.mjs +21 -0
- package/dist/browser/{cold-module-YECAK4MN.mjs → cold-module-NEUGHUPA.mjs} +21 -14
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-LM7WFL6X.mjs → durability-wiring-CVGPRO6D.mjs} +1299 -881
- package/dist/browser/engine-hooks-YXMPHZKZ.mjs +16 -0
- package/dist/browser/import-OM6QAW45.mjs +18 -0
- package/dist/browser/methods-KTQCSIN4.mjs +30 -0
- package/dist/browser/{module-XQLEOYNM.mjs → module-3HNFCBJ5.mjs} +10 -8
- package/dist/browser/{module-KAMRAJLE.mjs → module-E33X4AOK.mjs} +17 -10
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-CNKMUY4U.mjs → phrase-module-ZXXU7S3B.mjs} +1 -1
- package/dist/browser/{pool-DTYSPBMQ.mjs → pool-3JLET5RO.mjs} +3 -2
- package/dist/browser/restore-hooks-IF2ZROUP.mjs +113 -0
- package/dist/browser/restore-queue-ZBS7CJA6.mjs +55 -0
- package/dist/browser/retention-ASWUHAYI.mjs +209 -0
- package/dist/browser/{runtime-D2ULZGCN.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-UGZVMP4H.mjs → snapshot-PN7ZW6Q4.mjs} +80 -315
- package/dist/browser/start-ZIRB7MQ2.mjs +24 -0
- package/dist/browser/sync-state-P5XG6LTQ.mjs +15 -0
- package/dist/browser/{write-I5P5MW4O.mjs → write-HMDYCTV2.mjs} +17 -11
- package/dist/{capabilities-BT-HLDC8.d.ts → capabilities-Da4ywVVl.d.ts} +94 -7
- package/dist/{chunk-LDGGR7YT.mjs → chunk-2MANFZJ3.mjs} +2 -2
- package/dist/{chunk-IZT3G24Q.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/{chunk-3TVDTACC.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/chunk-3HB3PEC6.mjs +240 -0
- package/dist/chunk-3HHQLEEQ.mjs +1092 -0
- package/dist/chunk-3OH67G7R.mjs +214 -0
- package/dist/{chunk-ZS6CMXAE.mjs → chunk-3R4UZWQG.mjs} +98 -250
- package/dist/{chunk-65WCV5JO.mjs → chunk-4BYWRYPM.mjs} +1 -1
- package/dist/{chunk-SOUZMPME.mjs → chunk-4KRC2APY.mjs} +7 -194
- package/dist/{chunk-5QMHMELB.mjs → chunk-5FLRXF73.mjs} +8 -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-6MSZ543Y.mjs +32 -0
- package/dist/{chunk-T4CJDBBE.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{chunk-3SBJVQLL.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/chunk-7GXJUJ24.mjs +49 -0
- package/dist/{chunk-FNBNZCGP.mjs → chunk-AILVAOLX.mjs} +2 -2
- package/dist/chunk-BDRIVYOK.mjs +72 -0
- package/dist/chunk-BUMREPLU.mjs +15 -0
- package/dist/chunk-BY6ZDGYS.mjs +50 -0
- package/dist/{chunk-5WB2A3XU.mjs → chunk-DCNKVEDB.mjs} +511 -27
- package/dist/{chunk-NITCPDFL.mjs → chunk-DIBHI6W5.mjs} +2 -2
- package/dist/{chunk-4QCSHLNM.mjs → chunk-DUOLGBTE.mjs} +3 -3
- package/dist/chunk-GES7U2PM.mjs +68 -0
- package/dist/chunk-GH4WQ22V.mjs +34 -0
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/chunk-H4KHPLHJ.mjs +382 -0
- package/dist/{chunk-7TE2AJIH.mjs → chunk-H6VIGE62.mjs} +13 -10
- package/dist/{chunk-J7M73VY7.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-DGRM4EZZ.mjs → chunk-HNVVEQP7.mjs} +1 -1
- package/dist/{chunk-RBEHLIKX.mjs → chunk-HW5TNXBO.mjs} +35 -11
- package/dist/{chunk-KYVRZAYP.mjs → chunk-I54T6CQP.mjs} +2 -69
- package/dist/{chunk-IRWP524D.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/chunk-IPN7S4KX.mjs +130 -0
- package/dist/{chunk-CSHHU7PA.mjs → chunk-J4IWBIVY.mjs} +11 -30
- package/dist/{chunk-G5KHSM6E.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-6RKSY3BX.mjs → chunk-KBDBPVLN.mjs} +5 -5
- package/dist/{chunk-J4BDAH2W.mjs → chunk-KBKEXQZA.mjs} +2 -2
- package/dist/{chunk-IJSFWGVW.mjs → chunk-KFLK5NA2.mjs} +3 -3
- package/dist/{chunk-YGQOPB2Z.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/chunk-KJ3RTZDJ.mjs +101 -0
- package/dist/{chunk-2PNYKG2D.mjs → chunk-KMUNHGBQ.mjs} +139 -432
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-VP6XRMWR.mjs → chunk-KPIV4RUC.mjs} +6 -32
- package/dist/{chunk-NPXVQS33.mjs → chunk-KXCVQWOR.mjs} +4 -3
- package/dist/chunk-KYYABCSW.mjs +72 -0
- package/dist/{chunk-6F6USYII.mjs → chunk-L7ZD4L3K.mjs} +267 -265
- package/dist/{chunk-U46IZNCW.mjs → chunk-LC3FDWTX.mjs} +3 -2
- package/dist/{chunk-6BWLDLS3.mjs → chunk-LHKOSI2J.mjs} +1 -1
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/{react-native/chunks/chunk-YH7W556M.mjs → chunk-MP7ABPTD.mjs} +12 -2
- package/dist/chunk-MT2NRTA6.mjs +216 -0
- package/dist/chunk-NF4DT3IH.mjs +85 -0
- package/dist/{chunk-POUYICOU.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/{chunk-SEAJS664.mjs → chunk-PCRA7HTI.mjs} +5 -5
- package/dist/chunk-PHQNACDT.mjs +63 -0
- package/dist/chunk-Q622CTMC.mjs +74 -0
- package/dist/{chunk-NVTFQFUL.mjs → chunk-Q7G3BV3Y.mjs} +1 -1
- package/dist/chunk-QDZJM7NI.mjs +23 -0
- package/dist/{chunk-52QQWEBS.mjs → chunk-QH3YIQP4.mjs} +36 -7
- package/dist/chunk-QJVOLKU6.mjs +111 -0
- package/dist/chunk-QUJHMPTP.mjs +30 -0
- package/dist/{chunk-3E4RRF5J.mjs → chunk-RSVULW4Q.mjs} +100 -8
- package/dist/{chunk-IJPK5PGM.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/chunk-RZWWB2XR.mjs +96 -0
- package/dist/{chunk-KQJVNPRM.mjs → chunk-S2EQU2GE.mjs} +19 -16
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/{chunk-LJ4ENXOD.mjs → chunk-SG3JBNHY.mjs} +2 -2
- package/dist/{chunk-B2FTZNNF.mjs → chunk-SMVH6JBE.mjs} +34 -14
- package/dist/chunk-SY3EWKQY.mjs +242 -0
- package/dist/{chunk-NYSONUB7.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-ZHAXP7SD.mjs → chunk-U4BS74YN.mjs} +26 -238
- package/dist/chunk-UHICS3JI.mjs +83 -0
- package/dist/chunk-UZRZKNNZ.mjs +101 -0
- package/dist/chunk-V6EUBAIT.mjs +19 -0
- package/dist/{chunk-TTCKT2RT.mjs → chunk-VGF7CFRP.mjs} +134 -11
- package/dist/chunk-VHBNF4MA.mjs +543 -0
- package/dist/{chunk-AWNHDBKV.mjs → chunk-VQEUR6T6.mjs} +16 -8
- package/dist/chunk-WQRN64Q6.mjs +196 -0
- package/dist/{chunk-DMNPYF54.mjs → chunk-WZ7YV54N.mjs} +2 -2
- package/dist/chunk-Y4WPNHMC.mjs +50 -0
- package/dist/{chunk-2HJWQPR6.mjs → chunk-YEDIDCR7.mjs} +6 -122
- package/dist/chunk-YEKL4JBK.mjs +96 -0
- package/dist/{chunk-UGVUW27S.mjs → chunk-Z2BE2MAM.mjs} +14 -10
- package/dist/{chunk-3HV7M5OJ.mjs → chunk-ZAUJFLEN.mjs} +11 -135
- package/dist/{chunk-FDG4KXX5.mjs → chunk-ZHCUZZE5.mjs} +6 -4
- package/dist/chunk-ZTW5WTGG.mjs +167 -0
- package/dist/chunk-ZYAY26KG.mjs +29 -0
- package/dist/{client-Cn3gNxUU.d.ts → client-DRv7UVeY.d.ts} +193 -11
- package/dist/client.d.ts +9 -7
- package/dist/client.mjs +120 -7
- package/dist/{cold-module-PYSSBIL7.mjs → cold-module-7XXCEGTZ.mjs} +43 -33
- package/dist/config-CoSig5Ox.d.ts +482 -0
- package/dist/{config-CfhH1IWQ.d.ts → config-DMwffLKn.d.ts} +20 -5
- package/dist/{direct-executor-WYALQSMD.mjs → direct-executor-G5TK7NLA.mjs} +18 -13
- 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 +41 -9
- package/dist/distribution.mjs +9304 -7271
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-7VBZEJLG.mjs → durability-wiring-NCKUC5EO.mjs} +1293 -872
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{config-aIsy7mcL.d.ts → engine-CFxPYqEk.d.ts} +716 -407
- package/dist/engine-hooks-DHCMOADY.mjs +47 -0
- package/dist/{import-GJOMB2HC.mjs → import-NBFXFCSG.mjs} +32 -24
- package/dist/{index-MsF7e5hL.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +9 -4
- package/dist/index.d.ts +7 -6
- package/dist/index.mjs +29 -21
- package/dist/index.react-native.mjs +19 -12
- package/dist/{long-query-thread-SCUE62TO.mjs → long-query-thread-J4DVRM4A.mjs} +33 -19
- package/dist/methods-7IOINERF.mjs +30 -0
- package/dist/{module-6RLIKSZQ.mjs → module-DWKPBSMN.mjs} +38 -28
- package/dist/{module-AVQEIB7O.mjs → module-UN76TF7I.mjs} +14 -14
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-KGRW366Y.mjs → paged-partition-archive-DPNWVSK2.mjs} +46 -31
- package/dist/partial-words.mjs +7 -5
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +16 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +40 -29
- package/dist/{phrase-module-OUQIRUQU.mjs → phrase-module-ZI4WSQVH.mjs} +1 -1
- package/dist/{pool-UPV5PVPY.mjs → pool-Y4A46T36.mjs} +2 -2
- 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-DXPZRGWF.mjs → analysis-change-6BPDPH6K.mjs} +50 -19
- package/dist/{browser/analysis-change-entry-JL5U2N3Q.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-3JIBF3XT.mjs +191 -0
- package/dist/react-native/chunks/chunk-3NQOVO3K.mjs +1 -0
- package/dist/react-native/chunks/{chunk-UFNCLEQM.mjs → chunk-4DII3ZSM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-BRNAVOKP.mjs → chunk-4J74WHQM.mjs} +2 -2
- package/dist/react-native/chunks/chunk-4LCEN2IU.mjs +315 -0
- package/dist/react-native/chunks/{chunk-PU55IOG4.mjs → chunk-4Y53T4YE.mjs} +6 -190
- 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-6WA3C3DV.mjs +85 -0
- package/dist/react-native/chunks/chunk-7GRCBBME.mjs +63 -0
- package/dist/react-native/chunks/{chunk-2J2727V4.mjs → chunk-7PXRWYUU.mjs} +1 -1
- package/dist/{browser/chunk-VBX2TI5V.mjs → react-native/chunks/chunk-ALOIBXWN.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-FS7BYE23.mjs → chunk-C3PTWYKT.mjs} +10 -153
- package/dist/react-native/chunks/{chunk-DKJTZ625.mjs → chunk-C5G6TJ7A.mjs} +2 -69
- package/dist/react-native/chunks/chunk-CHPTFFJM.mjs +43 -0
- package/dist/react-native/chunks/{chunk-LRGWK367.mjs → chunk-CKNRFDTZ.mjs} +1 -1
- package/dist/react-native/chunks/chunk-CUH5F57W.mjs +242 -0
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/{browser/chunk-55WYRLDZ.mjs → react-native/chunks/chunk-DVDX4SDR.mjs} +2 -2
- package/dist/{browser/chunk-PIS7ZAP7.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +12 -2
- package/dist/react-native/chunks/{chunk-KOCTCUXW.mjs → chunk-EIOYM5TO.mjs} +17 -9
- package/dist/react-native/chunks/chunk-F753DA54.mjs +23 -0
- package/dist/react-native/chunks/chunk-GIZTJXYW.mjs +1007 -0
- package/dist/react-native/chunks/{chunk-CLE3LZ77.mjs → chunk-GJFXPHXI.mjs} +5 -4
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-IDFMNRIC.mjs → chunk-HUOYZJ3Q.mjs} +140 -430
- package/dist/react-native/chunks/chunk-IYNT75CE.mjs +111 -0
- package/dist/react-native/chunks/chunk-JDOEEMEF.mjs +38 -0
- package/dist/react-native/chunks/{chunk-LQAKO5QV.mjs → chunk-JLIIWJUV.mjs} +2 -2
- package/dist/react-native/chunks/chunk-JWUCMVRK.mjs +15 -0
- package/dist/react-native/chunks/chunk-KJIG57UD.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-KLZGAOLT.mjs → chunk-KTTAU63H.mjs} +5 -5
- package/dist/react-native/chunks/chunk-LU3Y3P63.mjs +68 -0
- package/dist/{browser/chunk-NVEJJP4R.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +2 -79
- package/dist/react-native/chunks/{chunk-3CTWSQRW.mjs → chunk-MJDQU5MW.mjs} +4 -30
- package/dist/react-native/chunks/{chunk-NFGBOI46.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-D7LFYPYI.mjs → chunk-N2WUOWLL.mjs} +12 -10
- package/dist/react-native/chunks/chunk-NVVRSRX5.mjs +78 -0
- package/dist/react-native/chunks/{chunk-JYL35A4A.mjs → chunk-OL3WDV53.mjs} +7 -33
- package/dist/react-native/chunks/chunk-PB2YXVQW.mjs +29 -0
- package/dist/react-native/chunks/{chunk-UCJU6WNH.mjs → chunk-PEHS2UO3.mjs} +7 -6
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/chunk-Q32DDFKX.mjs +19 -0
- package/dist/react-native/chunks/chunk-QJXTNPLQ.mjs +100 -0
- package/dist/react-native/chunks/{chunk-ZCKNBPQ4.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/chunk-SUPXRTMD.mjs +96 -0
- package/dist/react-native/chunks/chunk-TYIRMPD3.mjs +432 -0
- package/dist/react-native/chunks/{chunk-TLYD7IJ2.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/chunk-UNUFZ2QY.mjs +68 -0
- package/dist/react-native/chunks/{chunk-7IQR3SZO.mjs → chunk-VXGE4ZXL.mjs} +151 -257
- package/dist/react-native/chunks/{chunk-R4OPUZQ5.mjs → chunk-WBYQRHDY.mjs} +2 -2
- package/dist/react-native/chunks/chunk-YH7QY657.mjs +288 -0
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-KFGEWYEL.mjs → cold-module-5PHF6DZR.mjs} +31 -22
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-QKJB2QBT.mjs → durability-wiring-KO565FZC.mjs} +1309 -889
- 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-6W5U4C3H.mjs +30 -0
- package/dist/react-native/chunks/{module-UJ5VUARS.mjs → module-H5MVPSP2.mjs} +13 -11
- package/dist/react-native/chunks/module-ZL5ZG6YB.mjs +34 -0
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-76UAPPSG.mjs → phrase-module-RTVKEWJT.mjs} +1 -1
- package/dist/react-native/chunks/{pool-CD4ANYUI.mjs → pool-JR3NJCAF.mjs} +3 -2
- 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-7I7UAWYK.mjs +221 -0
- package/dist/react-native/chunks/{runtime-3MCDLJAF.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-KVBD4LRC.mjs → snapshot-EZYB6SLF.mjs} +90 -323
- package/dist/react-native/chunks/start-SHVZ72I5.mjs +36 -0
- package/dist/react-native/chunks/sync-state-PASCIHHT.mjs +15 -0
- package/dist/react-native/chunks/{write-ES5A3WUA.mjs → write-JUESXHDL.mjs} +27 -19
- package/dist/react-native/partial-words.mjs +8 -5
- package/dist/react-native/pattern.mjs +4 -3
- package/dist/react-native/query-suggestions.mjs +258 -0
- package/dist/react-native/sync.mjs +2299 -0
- package/dist/react-native/synonyms.mjs +7 -4
- package/dist/react.d.ts +11 -10
- package/dist/react.mjs +8 -1
- package/dist/{rerank-3W54N6P2.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-HROPV2QU.mjs +59 -0
- package/dist/{runtime-L2DZYY6N.mjs → runtime-COIUORCN.mjs} +5 -5
- package/dist/{schema-D33CyXCy.d.ts → schema-Jwt928nJ.d.ts} +1 -1
- package/dist/server.d.ts +119 -20
- package/dist/server.mjs +1123 -58
- package/dist/{snapshot-WMX6JCLP.mjs → snapshot-4HS2G2UM.mjs} +106 -49
- package/dist/start-UTWHGH42.mjs +59 -0
- package/dist/sync/filesystem.d.ts +30 -0
- package/dist/sync/filesystem.mjs +271 -0
- package/dist/sync/indexeddb.d.ts +30 -0
- package/dist/sync/indexeddb.mjs +237 -0
- package/dist/sync-state-ZWHLAFLE.mjs +15 -0
- package/dist/sync.browser.mjs +2294 -0
- package/dist/sync.d.ts +23 -0
- package/dist/sync.mjs +2268 -0
- package/dist/synonyms.mjs +6 -4
- package/dist/{tasks-C4ElXr4P.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/thread-6MOXY2KD.mjs +45 -0
- package/dist/types-BZCGjfLn.d.ts +227 -0
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +7 -7
- package/dist/workers/entry.mjs +8 -8
- package/dist/{write-SKJ6HW7O.mjs → write-GTTWWRRG.mjs} +36 -28
- package/openapi.json +912 -5
- package/package.json +45 -8
- package/dist/browser/import-QOY6ZH6X.mjs +0 -12
- package/dist/browser/restore-queue-UQ6AAUVX.mjs +0 -41
- package/dist/chunk-7LDMWKP6.mjs +0 -209
- package/dist/engine-CJRUHXgf.d.ts +0 -664
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +0 -110
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
- package/dist/react-native/chunks/gzip.react-native-7JWCLVOB.mjs +0 -3
- package/dist/react-native/chunks/import-XFBCCENV.mjs +0 -22
- package/dist/react-native/chunks/module-FHJ2GOBI.mjs +0 -25
- package/dist/react-native/chunks/restore-queue-H5VCN453.mjs +0 -41
- package/dist/restore-queue-AOF5OTQV.mjs +0 -41
- package/dist/thread-I7DVHHW7.mjs +0 -31
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-LZSLNSUN.mjs';
|
|
2
|
+
import { indexMetadataOf, writeCheckpointSegments, writeLiveVectors, commitCheckpointManifest, SINGLE_NODE_PRIMARY_TERM, partitionContentsOf, unpackIndexSnapshotEnvelope, encodeSegmentManifest, loadSegmentedCheckpoint, writeMetadataEnvelope, readVectorFile, readGraphParts, documentsOfPayloadV2, deserializePayloadV1 } from './chunk-VXGE4ZXL.mjs';
|
|
3
|
+
import './chunk-CKNRFDTZ.mjs';
|
|
4
|
+
import { vectorsPerFile } from './chunk-KTTAU63H.mjs';
|
|
5
5
|
import './chunk-HJBJBH26.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import './chunk-
|
|
9
|
-
import {
|
|
10
|
-
import './chunk-
|
|
11
|
-
import {
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
6
|
+
import { requireRestoreMemory, earlierSnapshotFootprint, storedBytesOfSegments, archiveFootprint } from './chunk-OL3WDV53.mjs';
|
|
7
|
+
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-PB2YXVQW.mjs';
|
|
8
|
+
import { createByteReader } from './chunk-NVVRSRX5.mjs';
|
|
9
|
+
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, readSnapshotArchive, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-4LCEN2IU.mjs';
|
|
10
|
+
import { decodeSegmentManifest } from './chunk-CUH5F57W.mjs';
|
|
11
|
+
import { newSyncEpoch } from './chunk-JWUCMVRK.mjs';
|
|
12
|
+
import { storedStateOf } from './chunk-QJXTNPLQ.mjs';
|
|
13
|
+
import './chunk-TYIRMPD3.mjs';
|
|
14
|
+
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
15
|
+
import './chunk-PJHAB5ZY.mjs';
|
|
16
|
+
import { readSegmentFile } from './chunk-C3PTWYKT.mjs';
|
|
17
|
+
import './chunk-GJFXPHXI.mjs';
|
|
18
|
+
import { DEFAULT_COMPACTION_THRESHOLD } from './chunk-F753DA54.mjs';
|
|
19
|
+
import './chunk-EIOYM5TO.mjs';
|
|
20
|
+
import { manifestKey, manifestFileRefs } from './chunk-6WA3C3DV.mjs';
|
|
21
|
+
import { decodeVectorIndexParts, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors } from './chunk-DVDX4SDR.mjs';
|
|
22
|
+
import { encodeIndexConfiguration, ARRAY_POSITION_GAP, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, prepareStoredSynonyms, loadVectorCodeFor, decodeEveryStoredDocument, isCompositePartition, arrayPositionsAreStale, insertDocumentVectors } from './chunk-HUOYZJ3Q.mjs';
|
|
15
23
|
import './chunk-IO2SMUQD.mjs';
|
|
24
|
+
import './chunk-JLIIWJUV.mjs';
|
|
16
25
|
import './chunk-AM7RSBPF.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import './chunk-
|
|
21
|
-
import {
|
|
22
|
-
import './chunk-
|
|
26
|
+
import './chunk-MVXELMJX.mjs';
|
|
27
|
+
import './chunk-NNE4VDMM.mjs';
|
|
28
|
+
import './chunk-LU3Y3P63.mjs';
|
|
29
|
+
import './chunk-RDWG33MM.mjs';
|
|
30
|
+
import { raiseEarlierReleaseGraphSetting, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension } from './chunk-4Y53T4YE.mjs';
|
|
31
|
+
import './chunk-UNUFZ2QY.mjs';
|
|
32
|
+
import './chunk-3NQOVO3K.mjs';
|
|
33
|
+
import { emitSyncChange } from './chunk-JDOEEMEF.mjs';
|
|
34
|
+
import './chunk-7PXRWYUU.mjs';
|
|
35
|
+
import { hasNrslMagic, HEADER_SIZE, readHeader, decodeIndexConfiguration } from './chunk-YH7QY657.mjs';
|
|
36
|
+
import './chunk-CHPTFFJM.mjs';
|
|
37
|
+
import { validateSchema, flattenSchema } from './chunk-3JIBF3XT.mjs';
|
|
38
|
+
import './chunk-5CQX3XXV.mjs';
|
|
39
|
+
import { MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
|
|
40
|
+
import './chunk-C5G6TJ7A.mjs';
|
|
41
|
+
import { getLanguage, resolveIndexAnalysis } from './chunk-MJDQU5MW.mjs';
|
|
23
42
|
import './chunk-KWRW5U65.mjs';
|
|
24
43
|
import './chunk-PPEPTUVV.mjs';
|
|
25
44
|
import './chunk-LVIKKAA6.mjs';
|
|
26
45
|
import './chunk-AAAETEJK.mjs';
|
|
27
46
|
import './chunk-JV6VQY2S.mjs';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import { NarsilError, ErrorCodes } from './chunk-YH7W556M.mjs';
|
|
47
|
+
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
30
48
|
import { decode } from '@msgpack/msgpack';
|
|
31
49
|
|
|
32
50
|
// src/persistence/archive/memory-store.ts
|
|
@@ -181,297 +199,6 @@ async function buildArchiveFromMemory(input) {
|
|
|
181
199
|
};
|
|
182
200
|
}
|
|
183
201
|
|
|
184
|
-
// src/persistence/archive/constants.ts
|
|
185
|
-
var MAX_PAX_HEADER_BYTES = 65536;
|
|
186
|
-
var ARCHIVE_FILE_CHUNK_BYTES = 4194304;
|
|
187
|
-
|
|
188
|
-
// src/persistence/archive/tar.ts
|
|
189
|
-
var TAR_BLOCK_BYTES = 512;
|
|
190
|
-
var NAME_OFFSET = 0;
|
|
191
|
-
var NAME_BYTES = 100;
|
|
192
|
-
var MODE_OFFSET = 100;
|
|
193
|
-
var OWNER_OFFSET = 108;
|
|
194
|
-
var GROUP_OFFSET = 116;
|
|
195
|
-
var ID_FIELD_BYTES = 8;
|
|
196
|
-
var SIZE_OFFSET = 124;
|
|
197
|
-
var SIZE_FIELD_BYTES = 12;
|
|
198
|
-
var SIZE_FIELD_DIGITS = 11;
|
|
199
|
-
var MTIME_OFFSET = 136;
|
|
200
|
-
var MTIME_FIELD_BYTES = 12;
|
|
201
|
-
var CHECKSUM_FIELD_OFFSET = 148;
|
|
202
|
-
var CHECKSUM_FIELD_BYTES = 8;
|
|
203
|
-
var CHECKSUM_DIGITS = 6;
|
|
204
|
-
var TYPEFLAG_OFFSET = 156;
|
|
205
|
-
var MAGIC_OFFSET = 257;
|
|
206
|
-
var MAGIC_BYTES = 6;
|
|
207
|
-
var VERSION_OFFSET = 263;
|
|
208
|
-
var VERSION_BYTES = 2;
|
|
209
|
-
var PREFIX_OFFSET = 345;
|
|
210
|
-
var PREFIX_BYTES = 155;
|
|
211
|
-
var MODE_OCTAL = "0000644";
|
|
212
|
-
var ZERO_OCTAL_7 = "0000000";
|
|
213
|
-
var ZERO_OCTAL_11 = "00000000000";
|
|
214
|
-
var REGULAR_FILE = 48;
|
|
215
|
-
var OLD_REGULAR_FILE = 0;
|
|
216
|
-
var PAX_EXTENDED_HEADER = 120;
|
|
217
|
-
var PAX_HEADER_NAME = "PaxHeader";
|
|
218
|
-
var encoder = new TextEncoder();
|
|
219
|
-
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
220
|
-
function writeString(block, offset, length, value) {
|
|
221
|
-
const bytes = encoder.encode(value);
|
|
222
|
-
block.set(bytes.subarray(0, length), offset);
|
|
223
|
-
}
|
|
224
|
-
function writeOctal(block, offset, digits, value) {
|
|
225
|
-
writeString(block, offset, digits, value.toString(8).padStart(digits, "0"));
|
|
226
|
-
}
|
|
227
|
-
function headerChecksum(block) {
|
|
228
|
-
let sum = 0;
|
|
229
|
-
const checksumEnd = CHECKSUM_FIELD_OFFSET + CHECKSUM_FIELD_BYTES;
|
|
230
|
-
for (let at = 0; at < TAR_BLOCK_BYTES; at++) {
|
|
231
|
-
sum += at >= CHECKSUM_FIELD_OFFSET && at < checksumEnd ? 32 : block[at];
|
|
232
|
-
}
|
|
233
|
-
return sum;
|
|
234
|
-
}
|
|
235
|
-
function ustarBlock(name, prefix, size, typeflag) {
|
|
236
|
-
const block = new Uint8Array(TAR_BLOCK_BYTES);
|
|
237
|
-
writeString(block, NAME_OFFSET, NAME_BYTES, name);
|
|
238
|
-
writeString(block, MODE_OFFSET, ID_FIELD_BYTES, MODE_OCTAL);
|
|
239
|
-
writeString(block, OWNER_OFFSET, ID_FIELD_BYTES, ZERO_OCTAL_7);
|
|
240
|
-
writeString(block, GROUP_OFFSET, ID_FIELD_BYTES, ZERO_OCTAL_7);
|
|
241
|
-
writeOctal(block, SIZE_OFFSET, SIZE_FIELD_DIGITS, size);
|
|
242
|
-
writeString(block, MTIME_OFFSET, MTIME_FIELD_BYTES, ZERO_OCTAL_11);
|
|
243
|
-
block[TYPEFLAG_OFFSET] = typeflag;
|
|
244
|
-
writeString(block, MAGIC_OFFSET, MAGIC_BYTES, "ustar");
|
|
245
|
-
writeString(block, VERSION_OFFSET, VERSION_BYTES, "00");
|
|
246
|
-
writeString(block, PREFIX_OFFSET, PREFIX_BYTES, prefix);
|
|
247
|
-
const checksum = headerChecksum(block);
|
|
248
|
-
writeString(block, CHECKSUM_FIELD_OFFSET, CHECKSUM_DIGITS, checksum.toString(8).padStart(CHECKSUM_DIGITS, "0"));
|
|
249
|
-
block[CHECKSUM_FIELD_OFFSET + CHECKSUM_DIGITS] = 0;
|
|
250
|
-
block[CHECKSUM_FIELD_OFFSET + CHECKSUM_DIGITS + 1] = 32;
|
|
251
|
-
return block;
|
|
252
|
-
}
|
|
253
|
-
function splitForUstar(name) {
|
|
254
|
-
if (encoder.encode(name).byteLength <= NAME_BYTES) return { name, prefix: "" };
|
|
255
|
-
for (let slash = name.indexOf("/"); slash >= 0; slash = name.indexOf("/", slash + 1)) {
|
|
256
|
-
const prefix = name.slice(0, slash);
|
|
257
|
-
const rest = name.slice(slash + 1);
|
|
258
|
-
if (encoder.encode(prefix).byteLength <= PREFIX_BYTES && encoder.encode(rest).byteLength <= NAME_BYTES) {
|
|
259
|
-
return { name: rest, prefix };
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return null;
|
|
263
|
-
}
|
|
264
|
-
function paxRecord(key, value) {
|
|
265
|
-
const body = ` ${key}=${value}
|
|
266
|
-
`;
|
|
267
|
-
const bodyBytes = encoder.encode(body).byteLength;
|
|
268
|
-
let digits = 1;
|
|
269
|
-
while (String(bodyBytes + digits).length !== digits) digits += 1;
|
|
270
|
-
return `${bodyBytes + digits}${body}`;
|
|
271
|
-
}
|
|
272
|
-
function tarPadding(size) {
|
|
273
|
-
const remainder = size % TAR_BLOCK_BYTES;
|
|
274
|
-
return new Uint8Array(remainder === 0 ? 0 : TAR_BLOCK_BYTES - remainder);
|
|
275
|
-
}
|
|
276
|
-
function tarEntryHeaders(name, size) {
|
|
277
|
-
const split = splitForUstar(name);
|
|
278
|
-
if (split !== null) return [ustarBlock(split.name, split.prefix, size, REGULAR_FILE)];
|
|
279
|
-
const record = encoder.encode(paxRecord("path", name));
|
|
280
|
-
return [
|
|
281
|
-
ustarBlock(PAX_HEADER_NAME, "", record.byteLength, PAX_EXTENDED_HEADER),
|
|
282
|
-
record,
|
|
283
|
-
tarPadding(record.byteLength),
|
|
284
|
-
ustarBlock(name.slice(-NAME_BYTES).replace(/^[^/]*\//, ""), "", size, REGULAR_FILE)
|
|
285
|
-
];
|
|
286
|
-
}
|
|
287
|
-
function tarEnd() {
|
|
288
|
-
return new Uint8Array(TAR_BLOCK_BYTES * 2);
|
|
289
|
-
}
|
|
290
|
-
function invalidArchive(message, details) {
|
|
291
|
-
throw new NarsilError(ErrorCodes.PERSISTENCE_LOAD_FAILED, `Invalid snapshot archive: ${message}`, details);
|
|
292
|
-
}
|
|
293
|
-
function readString(block, offset, length) {
|
|
294
|
-
let end = offset;
|
|
295
|
-
while (end < offset + length && block[end] !== 0) end++;
|
|
296
|
-
try {
|
|
297
|
-
return decoder.decode(block.subarray(offset, end));
|
|
298
|
-
} catch {
|
|
299
|
-
invalidArchive("an entry header holds a name that is not UTF-8");
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
function readOctal(block, offset, length, what) {
|
|
303
|
-
const text = readString(block, offset, length).trim();
|
|
304
|
-
if (!/^[0-7]+$/.test(text)) invalidArchive(`an entry header holds an invalid ${what}`);
|
|
305
|
-
const value = Number.parseInt(text, 8);
|
|
306
|
-
if (!Number.isSafeInteger(value)) invalidArchive(`an entry header holds an invalid ${what}`);
|
|
307
|
-
return value;
|
|
308
|
-
}
|
|
309
|
-
function isZeroBlock(block) {
|
|
310
|
-
for (let at = 0; at < block.length; at++) if (block[at] !== 0) return false;
|
|
311
|
-
return true;
|
|
312
|
-
}
|
|
313
|
-
function parseTarHeader(block) {
|
|
314
|
-
if (readOctal(block, CHECKSUM_FIELD_OFFSET, CHECKSUM_FIELD_BYTES, "checksum") !== headerChecksum(block)) {
|
|
315
|
-
invalidArchive("an entry header fails its checksum");
|
|
316
|
-
}
|
|
317
|
-
const typeflag = block[TYPEFLAG_OFFSET];
|
|
318
|
-
if (typeflag !== REGULAR_FILE && typeflag !== OLD_REGULAR_FILE && typeflag !== PAX_EXTENDED_HEADER) {
|
|
319
|
-
invalidArchive(`an entry has type ${String.fromCharCode(typeflag)}, while an archive holds regular files alone`);
|
|
320
|
-
}
|
|
321
|
-
const name = readString(block, NAME_OFFSET, NAME_BYTES);
|
|
322
|
-
const prefix = readString(block, PREFIX_OFFSET, PREFIX_BYTES);
|
|
323
|
-
return {
|
|
324
|
-
name: prefix.length > 0 ? `${prefix}/${name}` : name,
|
|
325
|
-
size: readOctal(block, SIZE_OFFSET, SIZE_FIELD_BYTES, "size"),
|
|
326
|
-
isPaxHeader: typeflag === PAX_EXTENDED_HEADER
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
var SPACE = 32;
|
|
330
|
-
var EQUALS = 61;
|
|
331
|
-
var NEWLINE = 10;
|
|
332
|
-
function decodeRecordText(bytes) {
|
|
333
|
-
try {
|
|
334
|
-
return decoder.decode(bytes);
|
|
335
|
-
} catch {
|
|
336
|
-
invalidArchive("a pax extended header is not UTF-8");
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
function parsePaxRecords(body) {
|
|
340
|
-
const records = /* @__PURE__ */ new Map();
|
|
341
|
-
let at = 0;
|
|
342
|
-
while (at < body.length) {
|
|
343
|
-
const space = body.indexOf(SPACE, at);
|
|
344
|
-
if (space < 0) invalidArchive("a pax extended header holds a malformed record");
|
|
345
|
-
const length = Number.parseInt(decodeRecordText(body.subarray(at, space)), 10);
|
|
346
|
-
if (!Number.isSafeInteger(length) || length <= space - at || at + length > body.length) {
|
|
347
|
-
invalidArchive("a pax extended header holds a malformed record");
|
|
348
|
-
}
|
|
349
|
-
const record = body.subarray(space + 1, at + length);
|
|
350
|
-
const equals = record.indexOf(EQUALS);
|
|
351
|
-
if (equals < 0 || record[record.length - 1] !== NEWLINE) {
|
|
352
|
-
invalidArchive("a pax extended header holds a record without a value");
|
|
353
|
-
}
|
|
354
|
-
records.set(decodeRecordText(record.subarray(0, equals)), decodeRecordText(record.subarray(equals + 1, -1)));
|
|
355
|
-
at += length;
|
|
356
|
-
}
|
|
357
|
-
return records;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// src/persistence/archive/read.ts
|
|
361
|
-
var ARCHIVE_CONFIG_ENTRY = "config";
|
|
362
|
-
var ARCHIVE_MANIFEST_ENTRY = "manifest";
|
|
363
|
-
var SEGMENTS_MARKER = "/segments/";
|
|
364
|
-
var CHECKSUM_OFFSET = 14;
|
|
365
|
-
async function readBlock(reader) {
|
|
366
|
-
const block = await reader.readExactly(TAR_BLOCK_BYTES);
|
|
367
|
-
if (block === null) return null;
|
|
368
|
-
if (block.byteLength < TAR_BLOCK_BYTES) invalidArchive("the archive ends inside an entry header");
|
|
369
|
-
return block;
|
|
370
|
-
}
|
|
371
|
-
async function skipPadding(reader, size) {
|
|
372
|
-
const remainder = size % TAR_BLOCK_BYTES;
|
|
373
|
-
if (remainder === 0) return;
|
|
374
|
-
const padding = await reader.readExactly(TAR_BLOCK_BYTES - remainder);
|
|
375
|
-
if (padding === null || padding.byteLength < TAR_BLOCK_BYTES - remainder) {
|
|
376
|
-
invalidArchive("the archive ends inside the padding of an entry");
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
async function readPadded(reader, size) {
|
|
380
|
-
const body = await reader.readExactly(size) ?? new Uint8Array(0);
|
|
381
|
-
if (body.byteLength < size) invalidArchive("the archive ends inside an entry");
|
|
382
|
-
await skipPadding(reader, size);
|
|
383
|
-
return body;
|
|
384
|
-
}
|
|
385
|
-
function entryBody(reader, size) {
|
|
386
|
-
let remaining = size;
|
|
387
|
-
async function* chunks() {
|
|
388
|
-
while (remaining > 0) {
|
|
389
|
-
const length = Math.min(ARCHIVE_FILE_CHUNK_BYTES, remaining);
|
|
390
|
-
const chunk = await reader.readExactly(length);
|
|
391
|
-
if (chunk === null || chunk.byteLength < length) invalidArchive("the archive ends inside an entry");
|
|
392
|
-
remaining -= length;
|
|
393
|
-
yield chunk;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return chunks();
|
|
397
|
-
}
|
|
398
|
-
async function nextEntryHeader(reader) {
|
|
399
|
-
const block = await readBlock(reader);
|
|
400
|
-
if (block === null || isZeroBlock(block)) return null;
|
|
401
|
-
const header = parseTarHeader(block);
|
|
402
|
-
if (!header.isPaxHeader) return { name: header.name, size: header.size };
|
|
403
|
-
if (header.size > MAX_PAX_HEADER_BYTES) invalidArchive("a pax extended header is too long");
|
|
404
|
-
const records = parsePaxRecords(await readPadded(reader, header.size));
|
|
405
|
-
const next = await readBlock(reader);
|
|
406
|
-
if (next === null || isZeroBlock(next)) invalidArchive("a pax extended header precedes no entry");
|
|
407
|
-
const entry = parseTarHeader(next);
|
|
408
|
-
if (entry.isPaxHeader) invalidArchive("a pax extended header follows another");
|
|
409
|
-
const path = records.get("path");
|
|
410
|
-
const size = records.get("size");
|
|
411
|
-
const parsedSize = size === void 0 ? entry.size : Number.parseInt(size, 10);
|
|
412
|
-
if (!Number.isSafeInteger(parsedSize) || parsedSize < 0) invalidArchive("a pax extended header holds an invalid size");
|
|
413
|
-
return { name: path ?? entry.name, size: parsedSize };
|
|
414
|
-
}
|
|
415
|
-
async function readNamedEntry(reader, expected) {
|
|
416
|
-
const header = await nextEntryHeader(reader);
|
|
417
|
-
if (header === null) invalidArchive(`the archive ends before its ${expected} entry`);
|
|
418
|
-
if (header.name !== expected) invalidArchive(`the archive holds "${header.name}" where its ${expected} entry belongs`);
|
|
419
|
-
if (header.size > MAX_FILE_BYTES) invalidArchive(`the ${expected} entry passes the file size limit`);
|
|
420
|
-
return readPadded(reader, header.size);
|
|
421
|
-
}
|
|
422
|
-
function sourceIndexNameOf(keys) {
|
|
423
|
-
const first = keys[0];
|
|
424
|
-
if (first === void 0) return "archive";
|
|
425
|
-
const at = first.indexOf(SEGMENTS_MARKER);
|
|
426
|
-
if (at <= 0) invalidArchive(`the manifest lists the key "${first}" outside any index`);
|
|
427
|
-
return first.slice(0, at);
|
|
428
|
-
}
|
|
429
|
-
function headerChecksumOf(bytes) {
|
|
430
|
-
if (bytes.byteLength < HEADER_SIZE) return -1;
|
|
431
|
-
return new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getUint32(CHECKSUM_OFFSET, false);
|
|
432
|
-
}
|
|
433
|
-
async function readSnapshotArchive(reader, handlers) {
|
|
434
|
-
await handlers.config(await readNamedEntry(reader, ARCHIVE_CONFIG_ENTRY));
|
|
435
|
-
const raw = await openManifestPayload(await readNamedEntry(reader, ARCHIVE_MANIFEST_ENTRY));
|
|
436
|
-
const sourceIndexName = sourceIndexNameOf(listedKeysOf(raw));
|
|
437
|
-
const decoded = decodeManifestPayload(raw, sourceIndexName);
|
|
438
|
-
if (decoded.kind !== "current") invalidArchive("the manifest holds the layout of an earlier release");
|
|
439
|
-
const manifest = decoded.manifest;
|
|
440
|
-
await handlers.manifest(manifest, sourceIndexName);
|
|
441
|
-
const files = manifestFileRefs(manifest);
|
|
442
|
-
const prefix = `${sourceIndexName}/`;
|
|
443
|
-
const listedNames = new Set(files.map((file) => file.key.slice(prefix.length)));
|
|
444
|
-
const seen = /* @__PURE__ */ new Set();
|
|
445
|
-
for (const ref of files) {
|
|
446
|
-
const expected = ref.key.slice(prefix.length);
|
|
447
|
-
const header = await nextEntryHeader(reader);
|
|
448
|
-
if (header === null) invalidArchive(`the archive ends before it holds "${expected}"`);
|
|
449
|
-
if (header.name !== expected) {
|
|
450
|
-
const why = !listedNames.has(header.name) ? "that the manifest does not list" : seen.has(header.name) ? "twice" : "out of order";
|
|
451
|
-
invalidArchive(`the archive holds the entry "${header.name}" ${why}`, { entry: header.name });
|
|
452
|
-
}
|
|
453
|
-
if (header.size !== ref.bytes) {
|
|
454
|
-
invalidArchive(`the entry "${expected}" holds ${header.size} bytes where the manifest lists ${ref.bytes}`);
|
|
455
|
-
}
|
|
456
|
-
const start = await reader.peek(Math.min(HEADER_SIZE, header.size));
|
|
457
|
-
if (headerChecksumOf(start) !== ref.checksum) {
|
|
458
|
-
invalidArchive(`the entry "${expected}" carries a checksum other than the manifest lists`, { entry: expected });
|
|
459
|
-
}
|
|
460
|
-
seen.add(expected);
|
|
461
|
-
const entry = entryBody(reader, header.size);
|
|
462
|
-
await handlers.file(expected, ref, entry);
|
|
463
|
-
let unread = await entry.next();
|
|
464
|
-
while (unread.done !== true) unread = await entry.next();
|
|
465
|
-
await skipPadding(reader, header.size);
|
|
466
|
-
}
|
|
467
|
-
const trailing = await nextEntryHeader(reader);
|
|
468
|
-
if (trailing !== null) {
|
|
469
|
-
invalidArchive(`the archive holds the entry "${trailing.name}" that the manifest does not list`, {
|
|
470
|
-
entry: trailing.name
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
202
|
// src/persistence/archive/write.ts
|
|
476
203
|
function entryChunks(name, bytes) {
|
|
477
204
|
return [...tarEntryHeaders(name, bytes.byteLength), bytes, tarPadding(bytes.byteLength)].filter(
|
|
@@ -493,6 +220,9 @@ async function* archiveChunks(source) {
|
|
|
493
220
|
for (const ref of manifestFileRefs(source.manifest)) {
|
|
494
221
|
yield* fileEntryChunks(source, ref.key.slice(prefix.length), ref);
|
|
495
222
|
}
|
|
223
|
+
if (source.trailingEntries !== void 0) {
|
|
224
|
+
for await (const entry of source.trailingEntries()) yield* entryChunks(entry.name, entry.bytes);
|
|
225
|
+
}
|
|
496
226
|
yield tarEnd();
|
|
497
227
|
}
|
|
498
228
|
function archiveStream(source) {
|
|
@@ -571,7 +301,7 @@ async function validateStagedCheckpoint(store, manifest) {
|
|
|
571
301
|
for (const ref of partition.segments) {
|
|
572
302
|
const { directory } = store;
|
|
573
303
|
if (directory !== void 0) {
|
|
574
|
-
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-
|
|
304
|
+
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-ZL5ZG6YB.mjs');
|
|
575
305
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
576
306
|
requireSchemaOfManifest(ref.key, await checkPagedSegmentFully(directory, ref), manifest);
|
|
577
307
|
continue;
|
|
@@ -668,7 +398,8 @@ function prepareRestoredIndex(configuration, deps, reject) {
|
|
|
668
398
|
storedRevision,
|
|
669
399
|
analysisGeneration,
|
|
670
400
|
storedArrayPositionGap: storedArrayPositionGap(configuration.arrayPositionGap),
|
|
671
|
-
synonyms
|
|
401
|
+
synonyms,
|
|
402
|
+
querySuggestions: storedStateOf(configuration)
|
|
672
403
|
};
|
|
673
404
|
}
|
|
674
405
|
function restoredSynonyms(raw, config, language, reject) {
|
|
@@ -704,7 +435,9 @@ function restoredRegistryEntry(prepared, manager, deps) {
|
|
|
704
435
|
synonyms: prepared.synonyms?.encoded ?? null,
|
|
705
436
|
analysisGeneration: prepared.analysisGeneration,
|
|
706
437
|
pendingAnalysis: null,
|
|
707
|
-
durableAnalysis: null
|
|
438
|
+
durableAnalysis: null,
|
|
439
|
+
sync: null,
|
|
440
|
+
querySuggestions: prepared.querySuggestions
|
|
708
441
|
};
|
|
709
442
|
}
|
|
710
443
|
|
|
@@ -817,6 +550,7 @@ async function replaceExisting(indexName, restored, entry, deps) {
|
|
|
817
550
|
for (const vectorIndex of vectorIndexes) await vectorIndex.releaseVectorFiles();
|
|
818
551
|
await commitToStorage(indexName, restored, previous?.partitionCount ?? 0, deps);
|
|
819
552
|
activate(indexName, restored, entry, deps);
|
|
553
|
+
await deps.querySuggestions?.afterActivate(entry);
|
|
820
554
|
});
|
|
821
555
|
} finally {
|
|
822
556
|
const ending = endRelease(indexName, release, deps).catch(() => void 0);
|
|
@@ -831,6 +565,7 @@ async function createFresh(indexName, restored, entry, deps) {
|
|
|
831
565
|
await deps.indexState.registerReplacing(indexName, async () => {
|
|
832
566
|
await commitToStorage(indexName, restored, 0, deps);
|
|
833
567
|
activate(indexName, restored, entry, deps);
|
|
568
|
+
await deps.querySuggestions?.afterActivate(entry);
|
|
834
569
|
});
|
|
835
570
|
} catch (error) {
|
|
836
571
|
if (deps.indexRegistry.get(indexName) === entry) deps.indexRegistry.delete(indexName);
|
|
@@ -843,10 +578,14 @@ async function stageMetadata(indexName, staging, entry) {
|
|
|
843
578
|
const metadata = indexMetadataOf(indexName, entry, entry.partitionCount);
|
|
844
579
|
await staging.store.write(`${indexName}/meta`, [await writeMetadataEnvelope(metadata, { checksum: true })]);
|
|
845
580
|
}
|
|
846
|
-
async function installRestoredIndex(indexName, restored, deps) {
|
|
581
|
+
async function installRestoredIndex(indexName, restored, deps, history = null) {
|
|
847
582
|
const entry = restoredRegistryEntry(restored.prepared, restored.detached.manager, deps);
|
|
583
|
+
const previousSync = deps.indexRegistry.get(indexName)?.sync ?? null;
|
|
584
|
+
if (previousSync !== null) entry.sync = { ...previousSync, active: false, epoch: newSyncEpoch() };
|
|
848
585
|
let replaced;
|
|
849
586
|
try {
|
|
587
|
+
if (deps.indexRegistry.has(indexName)) await deps.abandonAnalysisChange(indexName);
|
|
588
|
+
await deps.querySuggestions?.beforeInstall(entry, deps.indexRegistry.get(indexName));
|
|
850
589
|
if (restored.staging !== null) await stageMetadata(indexName, restored.staging, entry);
|
|
851
590
|
replaced = deps.indexRegistry.get(indexName);
|
|
852
591
|
if (replaced !== void 0) await replaceExisting(indexName, restored, entry, deps);
|
|
@@ -862,9 +601,17 @@ async function installRestoredIndex(indexName, restored, deps) {
|
|
|
862
601
|
await durable.persistMetadata(indexName);
|
|
863
602
|
await durable.checkpoint(indexName);
|
|
864
603
|
}
|
|
604
|
+
if (previousSync !== null) {
|
|
605
|
+
const storage = durable?.syncStorage?.();
|
|
606
|
+
if (storage !== void 0)
|
|
607
|
+
await oneSyncChangeAtATime(deps.indexRegistry, indexName, () => storage.release(indexName));
|
|
608
|
+
emitSyncChange(deps.indexRegistry, { kind: "epoch", indexName });
|
|
609
|
+
}
|
|
610
|
+
await deps.querySuggestions?.afterInstall(entry, history);
|
|
865
611
|
if (replaced !== void 0) await deps.announceIndexDropped(indexName, replaced.config);
|
|
866
612
|
await deps.announceIndexCreated(indexName, restored.prepared.config);
|
|
867
613
|
for (const vectorIndex of restored.detached.manager.getVectorIndexes().values()) {
|
|
614
|
+
vectorIndex.scheduleBuild();
|
|
868
615
|
vectorIndex.startShuffledRebuildWhenDue();
|
|
869
616
|
}
|
|
870
617
|
}
|
|
@@ -911,9 +658,14 @@ function missingPart(what) {
|
|
|
911
658
|
function keepsTextOnDisk(prepared, staging) {
|
|
912
659
|
return prepared.config.textStorage === "disk" && staging.directory !== void 0;
|
|
913
660
|
}
|
|
914
|
-
async function stageArchive(indexName, reader, staging, deps) {
|
|
915
|
-
const staged = { prepared: null, manifest: null };
|
|
661
|
+
async function stageArchive(indexName, reader, staging, deps, staged) {
|
|
916
662
|
await readSnapshotArchive(reader, {
|
|
663
|
+
history: async (chunks) => {
|
|
664
|
+
if (staged.history === void 0) {
|
|
665
|
+
staged.history = await deps.querySuggestions?.historySink(staged.prepared?.querySuggestions ?? null) ?? null;
|
|
666
|
+
}
|
|
667
|
+
await staged.history?.add(chunks);
|
|
668
|
+
},
|
|
917
669
|
config: async (bytes) => {
|
|
918
670
|
staged.prepared = prepareRestoredIndex(await decodeIndexConfiguration(bytes), deps, rejectConfiguration);
|
|
919
671
|
},
|
|
@@ -939,7 +691,7 @@ async function stageArchive(indexName, reader, staging, deps) {
|
|
|
939
691
|
if (manifest === null) missingPart("manifest");
|
|
940
692
|
const { directory } = staging;
|
|
941
693
|
if (keepsTextOnDisk(prepared, staging) && directory !== void 0) {
|
|
942
|
-
const { bytesThatSegmentsHoldInMemory } = await import('./module-
|
|
694
|
+
const { bytesThatSegmentsHoldInMemory } = await import('./module-ZL5ZG6YB.mjs');
|
|
943
695
|
const replacesIndex = deps.indexRegistry.has(indexName);
|
|
944
696
|
const segmentBytes = await bytesThatSegmentsHoldInMemory(directory, manifest);
|
|
945
697
|
requireRestoreMemory(indexName, archiveFootprint(prepared, manifest, replacesIndex, segmentBytes), replacesIndex);
|
|
@@ -968,9 +720,14 @@ async function loadStagedIndex(indexName, staged, staging, store, deps) {
|
|
|
968
720
|
async function restoreArchive(indexName, reader, deps) {
|
|
969
721
|
const staging = deps.durability?.manager.stageRestore?.(indexName) ?? null;
|
|
970
722
|
const store = staging?.store ?? memoryCheckpointStore();
|
|
723
|
+
const archive = { prepared: null, manifest: null, history: void 0 };
|
|
971
724
|
try {
|
|
972
|
-
const staged = await stageArchive(indexName, reader, store, deps);
|
|
973
|
-
|
|
725
|
+
const staged = await stageArchive(indexName, reader, store, deps, archive);
|
|
726
|
+
const restored = await loadStagedIndex(indexName, staged, staging, store, deps);
|
|
727
|
+
await installRestoredIndex(indexName, restored, deps, archive.history ?? null);
|
|
728
|
+
} catch (error) {
|
|
729
|
+
await archive.history?.abandon().catch(() => void 0);
|
|
730
|
+
throw error;
|
|
974
731
|
} finally {
|
|
975
732
|
await staging?.discard().catch(() => void 0);
|
|
976
733
|
await reader.close();
|
|
@@ -1125,13 +882,23 @@ async function checkpointForArchive(deps) {
|
|
|
1125
882
|
partitionId: null
|
|
1126
883
|
});
|
|
1127
884
|
}
|
|
1128
|
-
async function
|
|
885
|
+
async function* queryHistoryEntries(core, indexName) {
|
|
886
|
+
const { historyArchiveEntries } = await import('./archive-history-MJKUQLSU.mjs');
|
|
887
|
+
yield* historyArchiveEntries(core, indexName);
|
|
888
|
+
}
|
|
889
|
+
async function createSnapshot(deps, coreWithAddedHistory) {
|
|
890
|
+
const trailingEntries = coreWithAddedHistory === null ? void 0 : () => queryHistoryEntries(coreWithAddedHistory, deps.indexName);
|
|
1129
891
|
for (let attempt = 0; attempt < MAX_SNAPSHOT_ANALYSIS_ATTEMPTS; attempt += 1) {
|
|
1130
892
|
const checkpoint = await checkpointForArchive(deps);
|
|
1131
893
|
try {
|
|
1132
894
|
if ((checkpoint.manifest.analysisGeneration ?? 0) === deps.entry.analysisGeneration) {
|
|
1133
895
|
const config = await encodeIndexConfiguration(deps.entry);
|
|
1134
|
-
return archiveStream({
|
|
896
|
+
return archiveStream({
|
|
897
|
+
...checkpoint,
|
|
898
|
+
config,
|
|
899
|
+
sourceIndexName: deps.indexName,
|
|
900
|
+
...trailingEntries !== void 0 ? { trailingEntries } : {}
|
|
901
|
+
});
|
|
1135
902
|
}
|
|
1136
903
|
} catch (error) {
|
|
1137
904
|
checkpoint.release();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { localRuntimeOf } from './chunk-KJIG57UD.mjs';
|
|
2
|
+
import './chunk-GIZTJXYW.mjs';
|
|
3
|
+
import './chunk-ZZT7CEN7.mjs';
|
|
4
|
+
import './chunk-H3MDVPBO.mjs';
|
|
5
|
+
import './chunk-TYIRMPD3.mjs';
|
|
6
|
+
import './chunk-7GRCBBME.mjs';
|
|
7
|
+
import './chunk-DIYDOIM4.mjs';
|
|
8
|
+
import './chunk-PSWKQVVT.mjs';
|
|
9
|
+
import './chunk-Q32DDFKX.mjs';
|
|
10
|
+
import './chunk-PJHAB5ZY.mjs';
|
|
11
|
+
import './chunk-HUOYZJ3Q.mjs';
|
|
12
|
+
import './chunk-IO2SMUQD.mjs';
|
|
13
|
+
import './chunk-JLIIWJUV.mjs';
|
|
14
|
+
import './chunk-AM7RSBPF.mjs';
|
|
15
|
+
import './chunk-MVXELMJX.mjs';
|
|
16
|
+
import './chunk-NNE4VDMM.mjs';
|
|
17
|
+
import './chunk-LU3Y3P63.mjs';
|
|
18
|
+
import './chunk-RDWG33MM.mjs';
|
|
19
|
+
import './chunk-4Y53T4YE.mjs';
|
|
20
|
+
import './chunk-UNUFZ2QY.mjs';
|
|
21
|
+
import './chunk-3NQOVO3K.mjs';
|
|
22
|
+
import './chunk-JDOEEMEF.mjs';
|
|
23
|
+
import './chunk-7PXRWYUU.mjs';
|
|
24
|
+
import './chunk-YH7QY657.mjs';
|
|
25
|
+
import './chunk-CHPTFFJM.mjs';
|
|
26
|
+
import './chunk-3JIBF3XT.mjs';
|
|
27
|
+
import './chunk-5CQX3XXV.mjs';
|
|
28
|
+
import './chunk-6VBXNFLE.mjs';
|
|
29
|
+
import './chunk-C5G6TJ7A.mjs';
|
|
30
|
+
import './chunk-MJDQU5MW.mjs';
|
|
31
|
+
import './chunk-KWRW5U65.mjs';
|
|
32
|
+
import './chunk-PPEPTUVV.mjs';
|
|
33
|
+
import './chunk-LVIKKAA6.mjs';
|
|
34
|
+
import './chunk-AAAETEJK.mjs';
|
|
35
|
+
import './chunk-JV6VQY2S.mjs';
|
|
36
|
+
import './chunk-DZ7H7D2C.mjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isSyncEpoch, newSyncEpoch } from './chunk-JWUCMVRK.mjs';
|
|
2
|
+
|
|
3
|
+
// src/engine/sync-state.ts
|
|
4
|
+
function syncStateOfMetadata(metadata) {
|
|
5
|
+
if (metadata.sync?.enabled !== true) return null;
|
|
6
|
+
const epoch = isSyncEpoch(metadata.syncEpoch) ? metadata.syncEpoch : null;
|
|
7
|
+
return {
|
|
8
|
+
...metadata.sync.historyMaxAgeMs !== void 0 ? { historyMaxAgeMs: metadata.sync.historyMaxAgeMs } : {},
|
|
9
|
+
...metadata.sync.historyMaxBytes !== void 0 ? { historyMaxBytes: metadata.sync.historyMaxBytes } : {},
|
|
10
|
+
active: epoch !== null && metadata.syncActive === true,
|
|
11
|
+
epoch: epoch ?? newSyncEpoch()
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { syncStateOfMetadata };
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import
|
|
4
|
-
import { encodeExactJson, encodeDocumentJson } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-NNE4VDMM.mjs';
|
|
10
|
-
import './chunk-L4M7QJNP.mjs';
|
|
1
|
+
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-PEHS2UO3.mjs';
|
|
2
|
+
import './chunk-LZSLNSUN.mjs';
|
|
3
|
+
import './chunk-NVVRSRX5.mjs';
|
|
4
|
+
import { encodeExactJson, encodeDocumentJson } from './chunk-WBYQRHDY.mjs';
|
|
5
|
+
import './chunk-4J74WHQM.mjs';
|
|
6
|
+
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-GJFXPHXI.mjs';
|
|
7
|
+
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-DVDX4SDR.mjs';
|
|
8
|
+
import { decodeStoredDocument } from './chunk-HUOYZJ3Q.mjs';
|
|
11
9
|
import './chunk-IO2SMUQD.mjs';
|
|
10
|
+
import './chunk-JLIIWJUV.mjs';
|
|
12
11
|
import { EXPORT_CHUNK_BYTES } from './chunk-AM7RSBPF.mjs';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
12
|
+
import './chunk-MVXELMJX.mjs';
|
|
13
|
+
import './chunk-NNE4VDMM.mjs';
|
|
14
|
+
import './chunk-LU3Y3P63.mjs';
|
|
15
|
+
import './chunk-RDWG33MM.mjs';
|
|
16
|
+
import './chunk-4Y53T4YE.mjs';
|
|
17
|
+
import './chunk-UNUFZ2QY.mjs';
|
|
18
|
+
import './chunk-3NQOVO3K.mjs';
|
|
19
|
+
import './chunk-JDOEEMEF.mjs';
|
|
20
|
+
import './chunk-7PXRWYUU.mjs';
|
|
21
|
+
import { openChecksummedEnvelope } from './chunk-YH7QY657.mjs';
|
|
22
|
+
import './chunk-CHPTFFJM.mjs';
|
|
23
|
+
import './chunk-3JIBF3XT.mjs';
|
|
24
|
+
import './chunk-5CQX3XXV.mjs';
|
|
25
|
+
import './chunk-6VBXNFLE.mjs';
|
|
26
|
+
import './chunk-C5G6TJ7A.mjs';
|
|
27
|
+
import './chunk-MJDQU5MW.mjs';
|
|
19
28
|
import './chunk-KWRW5U65.mjs';
|
|
20
29
|
import './chunk-PPEPTUVV.mjs';
|
|
21
30
|
import './chunk-LVIKKAA6.mjs';
|
|
22
31
|
import './chunk-AAAETEJK.mjs';
|
|
23
32
|
import './chunk-JV6VQY2S.mjs';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-YH7W556M.mjs';
|
|
33
|
+
import './chunk-DZ7H7D2C.mjs';
|
|
26
34
|
import { decode } from '@msgpack/msgpack';
|
|
27
35
|
|
|
28
36
|
var VECTOR_FILE_ENVELOPE_VERSION = 2;
|
|
@@ -104,7 +112,7 @@ async function wholeFileVectorReads(checkpoint) {
|
|
|
104
112
|
};
|
|
105
113
|
}
|
|
106
114
|
async function* pagedDocumentLines(checkpoint) {
|
|
107
|
-
const { openFileVectorReads, pagedPartitionLines } = await import('./module-
|
|
115
|
+
const { openFileVectorReads, pagedPartitionLines } = await import('./module-ZL5ZG6YB.mjs');
|
|
108
116
|
const vectors = await openFileVectorReads(checkpoint, () => wholeFileVectorReads(checkpoint));
|
|
109
117
|
try {
|
|
110
118
|
for (const partition of checkpoint.manifest.partitions) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { spellingCountsOf, encodePartialSpellings, countSpelling, PARTIAL_WORD_RUN_CODE_POINTS, FROZEN_PARTIAL_REMOVED_ENTRY_BYTES, sameFields, countDocumentSpellings, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { spellingCountsOf, encodePartialSpellings, countSpelling, PARTIAL_WORD_RUN_CODE_POINTS, FROZEN_PARTIAL_REMOVED_ENTRY_BYTES, sameFields, countDocumentSpellings, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY } from './chunks/chunk-4Y53T4YE.mjs';
|
|
2
|
+
import { fuzzyTermMatches } from './chunks/chunk-UNUFZ2QY.mjs';
|
|
3
|
+
import { encodeStringBlob, tokenize, resolveStopWords, transformToken } from './chunks/chunk-7PXRWYUU.mjs';
|
|
4
|
+
import './chunks/chunk-3JIBF3XT.mjs';
|
|
5
|
+
import './chunks/chunk-5CQX3XXV.mjs';
|
|
6
|
+
import './chunks/chunk-6VBXNFLE.mjs';
|
|
7
|
+
import './chunks/chunk-C5G6TJ7A.mjs';
|
|
5
8
|
import './chunks/chunk-KWRW5U65.mjs';
|
|
6
9
|
import { compareCodePoints, codePointCount } from './chunks/chunk-PPEPTUVV.mjs';
|
|
7
10
|
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunks/chunk-AAAETEJK.mjs';
|
|
8
11
|
import './chunks/chunk-JV6VQY2S.mjs';
|
|
9
|
-
import './chunks/chunk-
|
|
12
|
+
import './chunks/chunk-DZ7H7D2C.mjs';
|
|
10
13
|
|
|
11
14
|
// src/core/partition/partial-words/text.ts
|
|
12
15
|
var encoder = new TextEncoder();
|