@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,10 +1,11 @@
|
|
|
1
|
-
import { requireAnalysisRebuildMemory } from './chunk-
|
|
2
|
-
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-
|
|
3
|
-
import { resolvePartialWordAnalysis } from './chunk-UGVUW27S.mjs';
|
|
4
|
-
import { createPartitionIndex, ARRAY_POSITION_GAP } from './chunk-3HV7M5OJ.mjs';
|
|
1
|
+
import { requireAnalysisRebuildMemory } from './chunk-KPIV4RUC.mjs';
|
|
2
|
+
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, holdSyncEpochChange, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-KMUNHGBQ.mjs';
|
|
5
3
|
import { ANALYSIS_CHANGE_MEMBERS, ANALYSIS_HOLD_APPLY_INTERVAL_MS } from './chunk-EEBCDP36.mjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { resolvePartialWordAnalysis } from './chunk-Z2BE2MAM.mjs';
|
|
5
|
+
import { createPartitionIndex, ARRAY_POSITION_GAP } from './chunk-ZAUJFLEN.mjs';
|
|
6
|
+
import { configUnderAnalysis, targetOfPending } from './chunk-YEDIDCR7.mjs';
|
|
7
|
+
import { getLanguage, resolveIndexAnalysis } from './chunk-RZWWB2XR.mjs';
|
|
8
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
8
9
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
9
10
|
|
|
10
11
|
// src/engine/analysis-change/run.ts
|
|
@@ -648,7 +649,8 @@ async function buildAndSwitch(scope) {
|
|
|
648
649
|
};
|
|
649
650
|
let partitionsRebuilt = 0;
|
|
650
651
|
let adopt = () => void 0;
|
|
651
|
-
const
|
|
652
|
+
const refusal = { byRestore: null };
|
|
653
|
+
const isCurrent = () => run.stopReason === null && refusal.byRestore === null && !core.shutdownState.isShutdown && core.indexRegistry.get(indexName) === entry && core.executor.getManager(indexName) === manager;
|
|
652
654
|
emit("started", 0);
|
|
653
655
|
const wasPromoted = core.orchestrator.desyncIndex(indexName);
|
|
654
656
|
try {
|
|
@@ -667,18 +669,27 @@ async function buildAndSwitch(scope) {
|
|
|
667
669
|
},
|
|
668
670
|
onSwitch: () => adopt(),
|
|
669
671
|
...hold === null ? {} : { holdBeforeSwitch: (keepCurrent) => waitForRelease(run, hold, keepCurrent) },
|
|
670
|
-
runSwitch(swap) {
|
|
672
|
+
async runSwitch(swap) {
|
|
671
673
|
const swapWithSynonyms = () => {
|
|
672
674
|
if (!isCurrent()) return false;
|
|
675
|
+
if (core.restoresInFlight.has(indexName)) {
|
|
676
|
+
refusal.byRestore = restoreInFlightError(indexName);
|
|
677
|
+
return false;
|
|
678
|
+
}
|
|
673
679
|
adopt = switchIndex(scope);
|
|
674
680
|
return swap();
|
|
675
681
|
};
|
|
676
|
-
|
|
682
|
+
const releaseSyncEpoch = await holdSyncEpochChange(core, indexName);
|
|
683
|
+
try {
|
|
684
|
+
return await (durable?.checkpointAfterSwitch?.(indexName, swapWithSynonyms) ?? swapWithSynonyms());
|
|
685
|
+
} finally {
|
|
686
|
+
releaseSyncEpoch();
|
|
687
|
+
}
|
|
677
688
|
}
|
|
678
689
|
},
|
|
679
690
|
textRebuildTargetOf(run.target.config, run.target.language, run.target.analysis)
|
|
680
691
|
);
|
|
681
|
-
if (!rebuilt) throw run.stopReason ?? stoppedError(core, indexName);
|
|
692
|
+
if (!rebuilt) throw run.stopReason ?? refusal.byRestore ?? stoppedError(core, indexName);
|
|
682
693
|
await spill?.removeUnread(manager);
|
|
683
694
|
if (entry.durableAnalysis !== null) {
|
|
684
695
|
throw new NarsilError(
|
|
@@ -709,6 +720,16 @@ async function clearPending(core, indexName, entry) {
|
|
|
709
720
|
entry.pendingAnalysis = null;
|
|
710
721
|
await core.durability?.manager.persistMetadata(indexName);
|
|
711
722
|
}
|
|
723
|
+
function restoreInFlightError(indexName) {
|
|
724
|
+
return new NarsilError(
|
|
725
|
+
ErrorCodes.ANALYSIS_CHANGE_REPLACED,
|
|
726
|
+
`A restore of index "${indexName}" is in flight and replaces this analysis change, so try the change again once the restore ends`,
|
|
727
|
+
{ indexName }
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
function requireNoRestoreInFlight(core, indexName) {
|
|
731
|
+
if (core.restoresInFlight.has(indexName)) throw restoreInFlightError(indexName);
|
|
732
|
+
}
|
|
712
733
|
function requireNotRebalancing(core, indexName) {
|
|
713
734
|
if (!core.rebalancingIndexes.has(indexName)) return;
|
|
714
735
|
throw new NarsilError(
|
|
@@ -726,6 +747,7 @@ async function driveRun(core, indexName, entry, run, previous, resumedGeneration
|
|
|
726
747
|
if (run.stopReason !== null) return;
|
|
727
748
|
if (core.indexRegistry.get(indexName) !== entry) throw stoppedError(core, indexName);
|
|
728
749
|
requireNotRebalancing(core, indexName);
|
|
750
|
+
requireNoRestoreInFlight(core, indexName);
|
|
729
751
|
if (resumedGeneration === null && holdsSettings(entry.config, run.target)) {
|
|
730
752
|
if (entry.pendingAnalysis !== null) await clearPending(core, indexName, entry);
|
|
731
753
|
run.finish();
|
|
@@ -746,7 +768,8 @@ async function driveRun(core, indexName, entry, run, previous, resumedGeneration
|
|
|
746
768
|
run.finish();
|
|
747
769
|
} catch (error) {
|
|
748
770
|
run.fail(error);
|
|
749
|
-
const
|
|
771
|
+
const refusedByRestore = run.stopReason === null && error instanceof NarsilError && error.code === ErrorCodes.ANALYSIS_CHANGE_REPLACED;
|
|
772
|
+
const keepsPending = !refusedByRestore && (resumedGeneration !== null || core.shutdownState.isShutdown);
|
|
750
773
|
const stillOwnsPending = runs.get(indexName) === run && run.stopReason === null;
|
|
751
774
|
if (!keepsPending && stillOwnsPending && core.indexRegistry.get(indexName) === entry) {
|
|
752
775
|
if (entry.pendingAnalysis !== null) await clearPending(core, indexName, entry).catch(() => void 0);
|
|
@@ -759,6 +782,7 @@ async function driveRun(core, indexName, entry, run, previous, resumedGeneration
|
|
|
759
782
|
async function changeIndexAnalysis(core, indexName, change) {
|
|
760
783
|
const entry = core.requireIndex(indexName);
|
|
761
784
|
requireNotRebalancing(core, indexName);
|
|
785
|
+
requireNoRestoreInFlight(core, indexName);
|
|
762
786
|
const target = resolveAnalysisTarget(indexName, entry.config, change);
|
|
763
787
|
const runs = runsOf(core);
|
|
764
788
|
const previous = runs.get(indexName);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PARSED_FIELD_TYPE_CACHE_ENTRIES, VECTOR_PATTERN, MAX_STORED_VECTOR_DIMENSION } from './chunk-L5ORED7V.mjs';
|
|
2
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
3
3
|
|
|
4
4
|
// src/schema/validator/field-type.ts
|
|
5
5
|
var FIELD_OPTION_ORDER = ["sortable", "pattern", "partial"];
|
|
@@ -114,71 +114,4 @@ function isStringValuedBase(base) {
|
|
|
114
114
|
return base === "string" || base === "string[]" || base === "verbatim" || base === "verbatim[]";
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
var FIRST_SURROGATE = 55296;
|
|
119
|
-
var LAST_SURROGATE = 57343;
|
|
120
|
-
var LAST_BASIC_PLANE_CODE_POINT = 65535;
|
|
121
|
-
function hasSurrogate(text) {
|
|
122
|
-
for (let index = 0; index < text.length; index++) {
|
|
123
|
-
const unit = text.charCodeAt(index);
|
|
124
|
-
if (unit >= FIRST_SURROGATE && unit <= LAST_SURROGATE) return true;
|
|
125
|
-
}
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
function fuzzyPrefixOf(queryTerm, prefixLength) {
|
|
129
|
-
let end = 0;
|
|
130
|
-
for (let counted = 0; counted < prefixLength && end < queryTerm.length; counted++) {
|
|
131
|
-
const codePoint = queryTerm.codePointAt(end);
|
|
132
|
-
end += codePoint !== void 0 && codePoint > LAST_BASIC_PLANE_CODE_POINT ? 2 : 1;
|
|
133
|
-
}
|
|
134
|
-
return queryTerm.slice(0, end);
|
|
135
|
-
}
|
|
136
|
-
function fuzzyTermMatches(queryTerm, indexTerm, tolerance, prefixLength) {
|
|
137
|
-
if (queryTerm === indexTerm) return true;
|
|
138
|
-
if (tolerance <= 0) return false;
|
|
139
|
-
if (!indexTerm.startsWith(fuzzyPrefixOf(queryTerm, prefixLength))) return false;
|
|
140
|
-
return boundedLevenshtein(queryTerm, indexTerm, tolerance).withinTolerance;
|
|
141
|
-
}
|
|
142
|
-
function boundedLevenshtein(a, b, tolerance) {
|
|
143
|
-
if (tolerance < 0) return { distance: -1, withinTolerance: false, cells: 0 };
|
|
144
|
-
if (a === b) return { distance: 0, withinTolerance: true, cells: 0 };
|
|
145
|
-
return tabulatedLevenshtein(a, b, tolerance);
|
|
146
|
-
}
|
|
147
|
-
function tabulatedLevenshtein(a, b, tolerance) {
|
|
148
|
-
if (tolerance < 0) return { distance: -1, withinTolerance: false, cells: 0 };
|
|
149
|
-
if (hasSurrogate(a) || hasSurrogate(b)) return bandedDistance(Array.from(a), Array.from(b), tolerance);
|
|
150
|
-
return bandedDistance(a, b, tolerance);
|
|
151
|
-
}
|
|
152
|
-
function bandedDistance(a, b, tolerance) {
|
|
153
|
-
const m = a.length;
|
|
154
|
-
const n = b.length;
|
|
155
|
-
const beyond = tolerance + 1;
|
|
156
|
-
if (Math.abs(m - n) > tolerance) return { distance: beyond, withinTolerance: false, cells: 0 };
|
|
157
|
-
let previous = new Uint32Array(n + 1).fill(beyond);
|
|
158
|
-
let current = new Uint32Array(n + 1).fill(beyond);
|
|
159
|
-
const firstRowEnd = Math.min(n, tolerance);
|
|
160
|
-
for (let j = 0; j <= firstRowEnd; j++) previous[j] = j;
|
|
161
|
-
let cells = 0;
|
|
162
|
-
for (let i = 1; i <= m; i++) {
|
|
163
|
-
const low = Math.max(1, i - tolerance);
|
|
164
|
-
const high = Math.min(n, i + tolerance);
|
|
165
|
-
current[low - 1] = low === 1 ? i : beyond;
|
|
166
|
-
let rowMin = current[low - 1];
|
|
167
|
-
const character = a[i - 1];
|
|
168
|
-
if (high >= low) cells += high - low + 1;
|
|
169
|
-
for (let j = low; j <= high; j++) {
|
|
170
|
-
const substitution = previous[j - 1] + (character === b[j - 1] ? 0 : 1);
|
|
171
|
-
const cell = Math.min(previous[j] + 1, current[j - 1] + 1, substitution, beyond);
|
|
172
|
-
current[j] = cell;
|
|
173
|
-
if (cell < rowMin) rowMin = cell;
|
|
174
|
-
}
|
|
175
|
-
if (rowMin > tolerance) return { distance: beyond, withinTolerance: false, cells };
|
|
176
|
-
const finished = previous;
|
|
177
|
-
previous = current;
|
|
178
|
-
current = finished;
|
|
179
|
-
}
|
|
180
|
-
const distance = previous[n];
|
|
181
|
-
return { distance, withinTolerance: distance <= tolerance, cells };
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export { boundedLevenshtein, fuzzyPrefixOf, fuzzyTermMatches, isListBase, isSingleStringFieldType, isStringValuedBase, isWordIndexedBase, isWordIndexedFieldType, parseFieldType, parsedTypeOf, tabulatedLevenshtein, withSortableOption };
|
|
117
|
+
export { isListBase, isSingleStringFieldType, isStringValuedBase, isWordIndexedBase, isWordIndexedFieldType, parseFieldType, parsedTypeOf, withSortableOption };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { youngGenerationBytesOfThisV8 } from './chunk-Q2UL2TPC.mjs';
|
|
2
|
+
import { totalmem } from 'os';
|
|
3
|
+
import { getHeapSpaceStatistics, getHeapStatistics } from 'v8';
|
|
4
|
+
|
|
5
|
+
var MEGABYTE_BYTES = 1048576;
|
|
6
|
+
var IN_MEGABYTES = /^--max-old-space-size=(\d+)$/;
|
|
7
|
+
var AS_PERCENTAGE = /^--max-old-space-size-percentage=(\d+(?:\.\d+)?)$/;
|
|
8
|
+
var SEMI_SPACE_IN_MEGABYTES = /^--max-semi-space-size=(\d+)$/;
|
|
9
|
+
var YOUNG_GENERATION_SPACES = /* @__PURE__ */ new Set(["new_space", "new_large_object_space"]);
|
|
10
|
+
var V8_YOUNG_GENERATION_BYTES_PER_SEMI_SPACE_BYTE = 3;
|
|
11
|
+
function flagEntries() {
|
|
12
|
+
const fromNodeOptions = (process.env.NODE_OPTIONS ?? "").split(/\s+/).filter((entry) => entry.length > 0);
|
|
13
|
+
return [...fromNodeOptions, ...process.execArgv];
|
|
14
|
+
}
|
|
15
|
+
function memoryTheHostAllows() {
|
|
16
|
+
const constrained = process.constrainedMemory?.() ?? 0;
|
|
17
|
+
return constrained > 0 ? constrained : totalmem();
|
|
18
|
+
}
|
|
19
|
+
function readConfiguredOldSpaceMegabytes() {
|
|
20
|
+
let megabytes = null;
|
|
21
|
+
for (const entry of flagEntries()) {
|
|
22
|
+
const inMegabytes = IN_MEGABYTES.exec(entry);
|
|
23
|
+
if (inMegabytes !== null) megabytes = Number(inMegabytes[1]);
|
|
24
|
+
if (AS_PERCENTAGE.test(entry)) megabytes = null;
|
|
25
|
+
}
|
|
26
|
+
return megabytes !== null && Number.isFinite(megabytes) && megabytes > 0 ? megabytes : null;
|
|
27
|
+
}
|
|
28
|
+
function readConfiguredLimit() {
|
|
29
|
+
let megabytes = null;
|
|
30
|
+
let percentage = null;
|
|
31
|
+
for (const entry of flagEntries()) {
|
|
32
|
+
const inMegabytes = IN_MEGABYTES.exec(entry);
|
|
33
|
+
if (inMegabytes !== null) {
|
|
34
|
+
megabytes = Number(inMegabytes[1]);
|
|
35
|
+
percentage = null;
|
|
36
|
+
}
|
|
37
|
+
const asPercentage = AS_PERCENTAGE.exec(entry);
|
|
38
|
+
if (asPercentage !== null) {
|
|
39
|
+
percentage = Number(asPercentage[1]);
|
|
40
|
+
megabytes = null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const bytes = megabytes !== null && megabytes > 0 ? megabytes * MEGABYTE_BYTES : percentage !== null && percentage > 0 && percentage <= 100 ? Math.floor(memoryTheHostAllows() * percentage / 100) : null;
|
|
44
|
+
return bytes !== null && Number.isFinite(bytes) && bytes > 0 ? bytes : null;
|
|
45
|
+
}
|
|
46
|
+
var configuredLimit;
|
|
47
|
+
function configuredLimitBytes() {
|
|
48
|
+
if (configuredLimit === void 0) configuredLimit = readConfiguredLimit();
|
|
49
|
+
return configuredLimit;
|
|
50
|
+
}
|
|
51
|
+
function readConfiguredYoungGeneration() {
|
|
52
|
+
let megabytes = 0;
|
|
53
|
+
for (const entry of flagEntries()) {
|
|
54
|
+
const semiSpace = SEMI_SPACE_IN_MEGABYTES.exec(entry);
|
|
55
|
+
if (semiSpace !== null) megabytes = Number(semiSpace[1]);
|
|
56
|
+
}
|
|
57
|
+
if (!Number.isFinite(megabytes) || megabytes <= 0) return null;
|
|
58
|
+
const semiSpaceBytes = 2 ** Math.ceil(Math.log2(megabytes)) * MEGABYTE_BYTES;
|
|
59
|
+
return semiSpaceBytes * V8_YOUNG_GENERATION_BYTES_PER_SEMI_SPACE_BYTE;
|
|
60
|
+
}
|
|
61
|
+
var configuredYoungGeneration;
|
|
62
|
+
function configuredYoungGenerationBytes() {
|
|
63
|
+
if (configuredYoungGeneration === void 0) configuredYoungGeneration = readConfiguredYoungGeneration();
|
|
64
|
+
return configuredYoungGeneration;
|
|
65
|
+
}
|
|
66
|
+
var heapSizeLimit;
|
|
67
|
+
function heapSizeLimitBytes() {
|
|
68
|
+
if (heapSizeLimit === void 0) heapSizeLimit = getHeapStatistics().heap_size_limit;
|
|
69
|
+
return heapSizeLimit;
|
|
70
|
+
}
|
|
71
|
+
function readYoungGenerationCeiling() {
|
|
72
|
+
const fromSemiSpace = configuredYoungGenerationBytes();
|
|
73
|
+
if (fromSemiSpace !== null) return fromSemiSpace;
|
|
74
|
+
const oldSpaceMegabytes = readConfiguredOldSpaceMegabytes();
|
|
75
|
+
if (oldSpaceMegabytes !== null) {
|
|
76
|
+
const beyondOldSpace = heapSizeLimitBytes() - oldSpaceMegabytes * MEGABYTE_BYTES;
|
|
77
|
+
if (beyondOldSpace > 0) return beyondOldSpace;
|
|
78
|
+
}
|
|
79
|
+
return youngGenerationBytesOfThisV8();
|
|
80
|
+
}
|
|
81
|
+
var youngGenerationCeiling;
|
|
82
|
+
function youngGenerationCeilingBytes() {
|
|
83
|
+
if (youngGenerationCeiling === void 0) youngGenerationCeiling = readYoungGenerationCeiling();
|
|
84
|
+
return youngGenerationCeiling;
|
|
85
|
+
}
|
|
86
|
+
function readOldGenerationStatistics() {
|
|
87
|
+
try {
|
|
88
|
+
let usedBytes = 0;
|
|
89
|
+
let committedBytes = 0;
|
|
90
|
+
let youngCapacityBytes = 0;
|
|
91
|
+
let youngUsedBytes = 0;
|
|
92
|
+
for (const space of getHeapSpaceStatistics()) {
|
|
93
|
+
if (YOUNG_GENERATION_SPACES.has(space.space_name)) {
|
|
94
|
+
youngCapacityBytes += space.space_size;
|
|
95
|
+
youngUsedBytes += space.space_used_size;
|
|
96
|
+
} else {
|
|
97
|
+
usedBytes += space.space_used_size;
|
|
98
|
+
committedBytes += space.space_size;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const youngCeilingBytes = youngGenerationCeilingBytes();
|
|
102
|
+
const limitBytes = configuredLimitBytes() ?? heapSizeLimitBytes() - youngCeilingBytes;
|
|
103
|
+
if (!Number.isFinite(usedBytes) || !Number.isFinite(limitBytes) || limitBytes <= 0) return null;
|
|
104
|
+
return {
|
|
105
|
+
usedBytes,
|
|
106
|
+
limitBytes,
|
|
107
|
+
youngUsedBytes: Number.isFinite(youngUsedBytes) ? youngUsedBytes : 0,
|
|
108
|
+
committedBytes: Number.isFinite(committedBytes) ? committedBytes : usedBytes,
|
|
109
|
+
youngReserveBytes: Number.isFinite(youngCapacityBytes) ? Math.max(0, youngCeilingBytes - youngCapacityBytes) : 0,
|
|
110
|
+
youngCeilingBytes
|
|
111
|
+
};
|
|
112
|
+
} catch {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function readHeapStatistics() {
|
|
117
|
+
try {
|
|
118
|
+
const stats = getHeapStatistics();
|
|
119
|
+
const usedBytes = stats.used_heap_size;
|
|
120
|
+
const limitBytes = stats.heap_size_limit;
|
|
121
|
+
if (!Number.isFinite(usedBytes) || !Number.isFinite(limitBytes) || limitBytes <= 0) return null;
|
|
122
|
+
const available = stats.total_available_size;
|
|
123
|
+
const availableBytes = Number.isFinite(available) && available >= 0 ? available : null;
|
|
124
|
+
return { usedBytes, limitBytes, availableBytes, configuredLimitBytes: configuredLimitBytes() };
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export { readHeapStatistics, readOldGenerationStatistics };
|
|
@@ -1,34 +1,15 @@
|
|
|
1
|
-
import { littleEndianBytes, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, KEYWORD_SEGMENT_PAYLOAD_VERSION, uint64Bytes } from './chunk-
|
|
2
|
-
import { readListedFile, requireListedChecksum
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { littleEndianBytes, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, KEYWORD_SEGMENT_PAYLOAD_VERSION, uint64Bytes } from './chunk-KXCVQWOR.mjs';
|
|
2
|
+
import { readListedFile, requireListedChecksum } from './chunk-UHICS3JI.mjs';
|
|
3
|
+
import { segmentKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-NF4DT3IH.mjs';
|
|
4
|
+
import { SEGMENT_FILE_FRAMING_SLACK_BYTES, SEGMENT_TOKEN_TABLE_SHARE_OF_FILE } from './chunk-QDZJM7NI.mjs';
|
|
5
|
+
import { packChecksummedEnvelope } from './chunk-KMUNHGBQ.mjs';
|
|
6
|
+
import { selectionKeeps, segmentArraysOf, mergeSegmentContents } from './chunk-Z2BE2MAM.mjs';
|
|
7
|
+
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-3OH67G7R.mjs';
|
|
8
|
+
import { messagePackUpperBoundBytes } from './chunk-4KRC2APY.mjs';
|
|
6
9
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
7
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
10
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
8
11
|
import { encode } from '@msgpack/msgpack';
|
|
9
12
|
|
|
10
|
-
// src/persistence/durability/constants.ts
|
|
11
|
-
var DEFAULT_CHECKPOINT_INTERVAL_MS = 3e5;
|
|
12
|
-
var DEFAULT_CHECKPOINT_MUTATION_THRESHOLD = 1e5;
|
|
13
|
-
var DEFAULT_ASYNC_FLUSH_INTERVAL_MS = 1e3;
|
|
14
|
-
var DIRECTORY_IDENTITY_CHECK_INTERVAL_MS = 1e3;
|
|
15
|
-
var DIRECTORY_LOCK_ATTEMPTS = 3;
|
|
16
|
-
var DIRECTORY_LOCK_SETTLE_MS = 50;
|
|
17
|
-
var DIRECTORY_LOCK_PROCESS_START_TOLERANCE_MS = 1e3;
|
|
18
|
-
var DEFAULT_SEGMENT_MAX_BYTES = 67108864;
|
|
19
|
-
var DEFAULT_COMPACTION_THRESHOLD = 12;
|
|
20
|
-
var COMPACTION_LARGEST_MERGED_DOCUMENT_COUNT = 2e5;
|
|
21
|
-
var SEGMENT_FILE_FRAMING_SLACK_BYTES = 65536;
|
|
22
|
-
var SEGMENT_TOKEN_TABLE_SHARE_OF_FILE = 0.25;
|
|
23
|
-
var WHOLE_PARTITION_MIN_CHANGED_SHARE = 0.5;
|
|
24
|
-
var WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT = 1e5;
|
|
25
|
-
var LOG_RECORDS_PER_CHECKPOINT = 1e5;
|
|
26
|
-
var WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES = 2147483648;
|
|
27
|
-
var CHECKPOINT_WORKER_TIMEOUT_MS = 6e5;
|
|
28
|
-
var CHECKPOINT_WORKER_HEARTBEAT_MS = 5e3;
|
|
29
|
-
var CHECKPOINT_WORKER_IDLE_MS = 5e3;
|
|
30
|
-
var CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS = 50;
|
|
31
|
-
|
|
32
13
|
// src/persistence/paged/constants.ts
|
|
33
14
|
var THREAD_READ_CACHE_BYTES = 134217728;
|
|
34
15
|
var MERGE_READ_CACHE_BYTES = 33554432;
|
|
@@ -566,7 +547,7 @@ async function writePagedGroup(state, group) {
|
|
|
566
547
|
const tombstones = state.tombstonesWritten ? [] : [...request.tombstones];
|
|
567
548
|
const id = state.nextSegmentId;
|
|
568
549
|
const key = segmentKey(request.indexName, request.partitionId, id);
|
|
569
|
-
const { writePagedSegment } = await import('./module-
|
|
550
|
+
const { writePagedSegment } = await import('./module-DWKPBSMN.mjs');
|
|
570
551
|
const written = await writePagedSegment({
|
|
571
552
|
directory,
|
|
572
553
|
key,
|
|
@@ -650,4 +631,4 @@ async function writeSegmentsOf(request) {
|
|
|
650
631
|
return { segments: state.segments, nextSegmentId: state.nextSegmentId };
|
|
651
632
|
}
|
|
652
633
|
|
|
653
|
-
export {
|
|
634
|
+
export { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, COLD_WALK_NODES_READ_AHEAD, FILE_ASSEMBLY_CHUNK_BYTES, LARGEST_CACHED_ENTRY_SHARE, LARGEST_REMOVAL_BUCKET_COUNT, LIST_VIEWS_HELD_PER_SEGMENT, MAX_THREAD_FILE_NUMBER, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES, MERGE_READ_CACHE_BYTES, MessagePackChunks, READS_AHEAD_AT_ONCE, READ_AHEAD_CHUNK_BYTES, REMOVAL_BUCKET_TARGET_BYTES, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, REWRITE_SPILL_BYTES, SECTION_WRITE_BUFFER_BYTES, STABLE_HEAD_ATTEMPTS, THREAD_READ_CACHE_BYTES, TOMBSTONES_BETWEEN_YIELDS, WRITER_YIELD_INTERVAL_TOKENS, readSegmentFile, writeBooleanColumns, writeEnumColumns, writeFieldLengths, writeGeopointColumns, writePartialWords, writePatternColumns, writeSegmentsOf, writeSurfaceForms, writeValueColumns };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { osqRecordBytes } from './chunk-37CD3OKS.mjs';
|
|
2
2
|
import { MAX_M, EARLIER_RELEASE_MIN_M, MIN_M } from './chunk-ZXX5GZEX.mjs';
|
|
3
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
3
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
4
4
|
|
|
5
5
|
// src/vector/vector-index/dead-bits.ts
|
|
6
6
|
var NO_LIVE_VECTOR_AT_POSITION = -1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead } from './chunk-
|
|
2
|
-
import { readListedFile, requireListedChecksum, requireListedSize } from './chunk-
|
|
3
|
-
import { HEADER_SIZE, openChecksummedEnvelope } from './chunk-
|
|
4
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead } from './chunk-K4ZIGL2O.mjs';
|
|
2
|
+
import { readListedFile, requireListedChecksum, requireListedSize } from './chunk-UHICS3JI.mjs';
|
|
3
|
+
import { HEADER_SIZE, openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
|
|
4
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
5
5
|
import { decode } from '@msgpack/msgpack';
|
|
6
6
|
|
|
7
7
|
var VECTOR_FILE_ENVELOPE_VERSION = 2;
|
|
@@ -64,7 +64,7 @@ function holdsEveryHead(ref) {
|
|
|
64
64
|
async function loadFieldOnDemand(store, ref, vectorIndex, resolvePartition) {
|
|
65
65
|
const { pathOf } = store;
|
|
66
66
|
if (pathOf === void 0 || vectorIndex.storage !== "disk" || !holdsEveryHead(ref)) return false;
|
|
67
|
-
const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-
|
|
67
|
+
const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-7XXCEGTZ.mjs');
|
|
68
68
|
await Promise.all([
|
|
69
69
|
...ref.files.map((file) => requireListedSize(store, file.key, { bytes: file.bytes, what: "vector file" })),
|
|
70
70
|
...ref.graphParts.map((part) => requireListedSize(store, part.key, { bytes: part.bytes, what: "graph part" }))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getIndexMetadata } from './chunk-
|
|
1
|
+
import { getIndexMetadata } from './chunk-RSVULW4Q.mjs';
|
|
2
2
|
import { fnv1a } from './chunk-KAKQ74LS.mjs';
|
|
3
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
3
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
4
4
|
|
|
5
5
|
// src/distribution/cluster-node/routable-allocation.ts
|
|
6
6
|
async function routableAllocation(coordinator, indexName) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { REBUILD_REMOVED_RATIO, BUILD_TURN_HANDOVER_AFTER_MS, DRIFT_CHECK_GROWTH_FACTOR, VECTOR_FILE_REPLACED_ABOVE_DEAD_SHARE, VECTOR_FILE_FIXED_OVERHEAD_BYTES, VECTOR_FILE_CENTROID_BYTES_PER_COMPONENT, VECTOR_FILE_STRING_HEADER_BYTES } from './chunk-VD7J552I.mjs';
|
|
2
|
-
import { VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes } from './chunk-
|
|
3
|
-
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-
|
|
2
|
+
import { VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes } from './chunk-K4ZIGL2O.mjs';
|
|
3
|
+
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-VQEUR6T6.mjs';
|
|
4
4
|
import { osqRecordBytes, writeRecord } from './chunk-37CD3OKS.mjs';
|
|
5
5
|
import { MAX_DOC_ID_LENGTH } from './chunk-EEBCDP36.mjs';
|
|
6
6
|
import { turnsAreBudgeted, backgroundTurnIsSpent, yieldBackgroundTurn } from './chunk-LQG5G2LY.mjs';
|
|
7
7
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
8
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
8
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
9
9
|
|
|
10
10
|
// src/vector/filter-ordinals.ts
|
|
11
11
|
var UNRESOLVED_ORDINAL = -1;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
3
|
+
import { encode, decode } from '@msgpack/msgpack';
|
|
4
|
+
|
|
5
|
+
function damaged(detail) {
|
|
6
|
+
return new NarsilError(ErrorCodes.PERSISTENCE_LOAD_FAILED, `The device sync store is damaged: ${detail}`);
|
|
7
|
+
}
|
|
8
|
+
function isRecord(value) {
|
|
9
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) && !(value instanceof Uint8Array);
|
|
10
|
+
}
|
|
11
|
+
function isCount(value) {
|
|
12
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
13
|
+
}
|
|
14
|
+
function encodeQueueRecord(record) {
|
|
15
|
+
return encode(record, { ignoreUndefined: true });
|
|
16
|
+
}
|
|
17
|
+
function decodeQueueRecord(bytes) {
|
|
18
|
+
const raw = decode(bytes);
|
|
19
|
+
if (!isRecord(raw)) throw damaged("a queue record is not a map");
|
|
20
|
+
if (raw.type === "next" && isCount(raw.sequence)) return { type: "next", sequence: raw.sequence };
|
|
21
|
+
if (raw.type === "removed" && Array.isArray(raw.sequences) && raw.sequences.every(isCount)) {
|
|
22
|
+
return { type: "removed", sequences: raw.sequences };
|
|
23
|
+
}
|
|
24
|
+
if (raw.type === "write" && isRecord(raw.write)) {
|
|
25
|
+
const write = raw.write;
|
|
26
|
+
if (isCount(write.sequence) && typeof write.documentId === "string") {
|
|
27
|
+
if (write.document === null || write.document === void 0) {
|
|
28
|
+
return { type: "write", write: { sequence: write.sequence, documentId: write.documentId, document: null } };
|
|
29
|
+
}
|
|
30
|
+
if (isRecord(write.document)) {
|
|
31
|
+
const document = write.document;
|
|
32
|
+
return { type: "write", write: { sequence: write.sequence, documentId: write.documentId, document } };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
throw damaged("a queue record is invalid");
|
|
37
|
+
}
|
|
38
|
+
function encodeKeptEntries(entries) {
|
|
39
|
+
return encode(entries.map((entry) => [entry.partitionId, entry.seqNo, entry.documentId, entry.document]));
|
|
40
|
+
}
|
|
41
|
+
function decodeKeptEntries(bytes) {
|
|
42
|
+
const raw = decode(bytes);
|
|
43
|
+
if (!Array.isArray(raw)) throw damaged("a kept entry batch is not a list");
|
|
44
|
+
return raw.map((item) => {
|
|
45
|
+
if (!Array.isArray(item) || item.length !== 4) throw damaged("a kept entry is invalid");
|
|
46
|
+
const [partitionId, seqNo, documentId, document] = item;
|
|
47
|
+
if (!isCount(partitionId) || !isCount(seqNo) || typeof documentId !== "string") {
|
|
48
|
+
throw damaged("a kept entry is invalid");
|
|
49
|
+
}
|
|
50
|
+
if (document !== null && !(document instanceof Uint8Array)) throw damaged("a kept entry is invalid");
|
|
51
|
+
return { partitionId, seqNo, documentId, document };
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function encodePosition(position) {
|
|
55
|
+
return encode({ epoch: position.epoch, seqNos: position.seqNos });
|
|
56
|
+
}
|
|
57
|
+
function decodePosition(bytes) {
|
|
58
|
+
const raw = decode(bytes);
|
|
59
|
+
if (!isRecord(raw) || !isSyncEpoch(raw.epoch) || !Array.isArray(raw.seqNos) || !raw.seqNos.every(isCount)) {
|
|
60
|
+
throw damaged("the saved position is invalid");
|
|
61
|
+
}
|
|
62
|
+
return { epoch: raw.epoch, seqNos: raw.seqNos };
|
|
63
|
+
}
|
|
64
|
+
function encodeDownloadTag(entityTag) {
|
|
65
|
+
return encode({ entityTag });
|
|
66
|
+
}
|
|
67
|
+
function decodeDownloadTag(bytes) {
|
|
68
|
+
const raw = decode(bytes);
|
|
69
|
+
if (!isRecord(raw) || typeof raw.entityTag !== "string") throw damaged("the saved download is invalid");
|
|
70
|
+
return raw.entityTag;
|
|
71
|
+
}
|
|
72
|
+
function downloadOutOfOrder(entityTag, offset, saved) {
|
|
73
|
+
return new NarsilError(
|
|
74
|
+
ErrorCodes.PERSISTENCE_SAVE_FAILED,
|
|
75
|
+
`The device sync store holds ${saved} bytes of the download, so the next bytes must start at ${saved} or at 0`,
|
|
76
|
+
{ entityTag, offset, saved }
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function replayQueue(payloads) {
|
|
80
|
+
const writes = /* @__PURE__ */ new Map();
|
|
81
|
+
const recordBytes = /* @__PURE__ */ new Map();
|
|
82
|
+
let nextSequence = 1;
|
|
83
|
+
for (const payload of payloads) {
|
|
84
|
+
const record = decodeQueueRecord(payload);
|
|
85
|
+
if (record.type === "next") {
|
|
86
|
+
nextSequence = Math.max(nextSequence, record.sequence);
|
|
87
|
+
} else if (record.type === "removed") {
|
|
88
|
+
for (const sequence of record.sequences) {
|
|
89
|
+
writes.delete(sequence);
|
|
90
|
+
recordBytes.delete(sequence);
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
writes.set(record.write.sequence, record.write);
|
|
94
|
+
recordBytes.set(record.write.sequence, payload.byteLength);
|
|
95
|
+
nextSequence = Math.max(nextSequence, record.write.sequence + 1);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return { writes, recordBytes, nextSequence };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export { decodeDownloadTag, decodeKeptEntries, decodePosition, downloadOutOfOrder, encodeDownloadTag, encodeKeptEntries, encodePosition, encodeQueueRecord, replayQueue };
|