@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
package/dist/synonyms.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } from './chunk-YEDIDCR7.mjs';
|
|
2
2
|
import './chunk-X5CV2E2B.mjs';
|
|
3
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
4
|
+
import './chunk-RZWWB2XR.mjs';
|
|
3
5
|
import './chunk-TGP5M5R7.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-65WCV5JO.mjs';
|
|
6
|
+
import './chunk-4BYWRYPM.mjs';
|
|
6
7
|
import './chunk-4UMZ7KQL.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
+
import './chunk-U2BKYEC7.mjs';
|
|
9
|
+
import './chunk-MP7ABPTD.mjs';
|
|
8
10
|
import './chunk-R6A773WK.mjs';
|
|
9
11
|
import './chunk-YTJCGKM4.mjs';
|
|
10
12
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-
|
|
2
|
-
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-DMwffLKn.js';
|
|
2
|
+
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-C4AmUnl1.js';
|
|
3
|
+
import { a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
4
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-CFxPYqEk.js';
|
|
5
|
+
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-Jwt928nJ.js';
|
|
5
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -12,6 +13,11 @@ import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
|
12
13
|
interface CreateBackupBody {
|
|
13
14
|
/** The backup's name, from 1 to 128 letters, digits, `.`, `_`, and `-`, starting with a letter or a digit. */
|
|
14
15
|
backup: string;
|
|
16
|
+
/**
|
|
17
|
+
* Set this to true to add every node's popular query suggestion history of the index to the backup. The history
|
|
18
|
+
* holds the scrambled text of what people searched for, and the backup keeps it after `retentionDays` ends.
|
|
19
|
+
*/
|
|
20
|
+
queryHistory?: boolean;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* The body of `POST /backups/{backup}/_restore`.
|
|
@@ -601,7 +607,7 @@ interface MemoryStatsResponse extends MemoryStats {
|
|
|
601
607
|
*
|
|
602
608
|
* @public
|
|
603
609
|
*/
|
|
604
|
-
type TaskType = 'optimizeVectors' | 'rebalance' | 'restore' | 'import' | 'importExport' | 'rebuildAnalysis' | 'changeAnalysis' | 'backup' | 'backupRestore' | 'backupDelete';
|
|
610
|
+
type TaskType = 'optimizeVectors' | 'rebalance' | 'restore' | 'import' | 'importExport' | 'rebuildAnalysis' | 'changeAnalysis' | 'backup' | 'backupRestore' | 'backupDelete' | 'querySuggestionsBuild';
|
|
605
611
|
/**
|
|
606
612
|
* Where a long-running operation stands.
|
|
607
613
|
*
|
|
@@ -688,6 +694,8 @@ interface TaskRecord {
|
|
|
688
694
|
steps?: TaskStepProgress;
|
|
689
695
|
/** What the work produced, which an `import` or `importExport` task reports once it finishes. */
|
|
690
696
|
result?: ImportResult;
|
|
697
|
+
/** The build that a `querySuggestionsBuild` task ran, once it ends. */
|
|
698
|
+
build?: QuerySuggestionsBuild;
|
|
691
699
|
/** This says why the task failed, and a failed task alone carries it. */
|
|
692
700
|
error?: ErrorDetail;
|
|
693
701
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { closeRequestThread, searchHandler, serveRequests } from './chunk-VGF7CFRP.mjs';
|
|
2
|
+
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
+
import './chunk-DCNKVEDB.mjs';
|
|
4
|
+
import './chunk-KYYABCSW.mjs';
|
|
5
|
+
import './chunk-2MANFZJ3.mjs';
|
|
6
|
+
import './chunk-Q622CTMC.mjs';
|
|
7
|
+
import './chunk-U4BS74YN.mjs';
|
|
8
|
+
import './chunk-SY3EWKQY.mjs';
|
|
9
|
+
import './chunk-K4ZIGL2O.mjs';
|
|
10
|
+
import './chunk-BUMREPLU.mjs';
|
|
11
|
+
import './chunk-DJHHF2L5.mjs';
|
|
12
|
+
import './chunk-37CD3OKS.mjs';
|
|
13
|
+
import './chunk-NF4DT3IH.mjs';
|
|
14
|
+
import './chunk-5YNRKI2C.mjs';
|
|
15
|
+
import './chunk-L7ZD4L3K.mjs';
|
|
16
|
+
import './chunk-HJSN7UYG.mjs';
|
|
17
|
+
import './chunk-XIHUI4KB.mjs';
|
|
18
|
+
import './chunk-EEBCDP36.mjs';
|
|
19
|
+
import './chunk-ZAUJFLEN.mjs';
|
|
20
|
+
import './chunk-3OH67G7R.mjs';
|
|
21
|
+
import './chunk-IPN7S4KX.mjs';
|
|
22
|
+
import './chunk-KAKQ74LS.mjs';
|
|
23
|
+
import './chunk-7GXJUJ24.mjs';
|
|
24
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
25
|
+
import './chunk-LC3FDWTX.mjs';
|
|
26
|
+
import './chunk-JUKYYXSP.mjs';
|
|
27
|
+
import './chunk-4KRC2APY.mjs';
|
|
28
|
+
import './chunk-FQBFZAWG.mjs';
|
|
29
|
+
import './chunk-WQRN64Q6.mjs';
|
|
30
|
+
import './chunk-GES7U2PM.mjs';
|
|
31
|
+
import './chunk-I54T6CQP.mjs';
|
|
32
|
+
import './chunk-X5CV2E2B.mjs';
|
|
33
|
+
import './chunk-4BYWRYPM.mjs';
|
|
34
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
35
|
+
import './chunk-QYRNLLLI.mjs';
|
|
36
|
+
import './chunk-ZXNQEW43.mjs';
|
|
37
|
+
import './chunk-L5ORED7V.mjs';
|
|
38
|
+
import './chunk-Q7G3BV3Y.mjs';
|
|
39
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
40
|
+
import './chunk-LQG5G2LY.mjs';
|
|
41
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
42
|
+
import './chunk-U476IXKQ.mjs';
|
|
43
|
+
import './chunk-MP7ABPTD.mjs';
|
|
44
|
+
import './chunk-R6A773WK.mjs';
|
|
45
|
+
import './chunk-YTJCGKM4.mjs';
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { g as Narsil, N as NarsilError } from './engine-CFxPYqEk.js';
|
|
2
|
+
import { A as AnyDocument } from './schema-Jwt928nJ.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One local write that the device holds until the server accepts it.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
interface QueuedWrite {
|
|
10
|
+
/** The store numbers each write upwards from 1, in the order that the app made them. */
|
|
11
|
+
sequence: number;
|
|
12
|
+
/** The write changes the document with this ID. */
|
|
13
|
+
documentId: string;
|
|
14
|
+
/** This is the whole document after the write, or `null` for a remove. */
|
|
15
|
+
document: AnyDocument | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One feed entry that the device keeps on disk until its index holds the change durably.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
interface KeptEntry {
|
|
23
|
+
/** The entry belongs to this partition of the server's index. */
|
|
24
|
+
partitionId: number;
|
|
25
|
+
/** This is the entry's sequence number in its partition. */
|
|
26
|
+
seqNo: number;
|
|
27
|
+
/** The entry changes the document with this ID. */
|
|
28
|
+
documentId: string;
|
|
29
|
+
/** This holds the MessagePack bytes of the whole document, or `null` for a remove. */
|
|
30
|
+
document: Uint8Array | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The epoch and the position that the device's copy of the index holds durably.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
interface DevicePosition {
|
|
38
|
+
/** The copy belongs to this index epoch, 32 lowercase hexadecimal digits. */
|
|
39
|
+
epoch: string;
|
|
40
|
+
/** Item `i` is the highest sequence number of partition `i` that the copy holds. */
|
|
41
|
+
seqNos: number[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The part of a snapshot download that the device has saved, so that a restart can resume it.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
interface SavedDownload {
|
|
49
|
+
/** The saved bytes belong to the archive with this entity tag. */
|
|
50
|
+
entityTag: string;
|
|
51
|
+
/** The store holds this many bytes from the start of the archive. */
|
|
52
|
+
byteLength: number;
|
|
53
|
+
/** Reads the saved bytes from the first one. */
|
|
54
|
+
chunks(): AsyncIterable<Uint8Array>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Where a synced device keeps its queue, its kept feed entries, its position, and a snapshot download in progress.
|
|
58
|
+
*
|
|
59
|
+
* `@delali/narsil/sync/filesystem` and `@delali/narsil/sync/indexeddb` provide one each. Every method must finish its
|
|
60
|
+
* write durably before its promise resolves, because the device acts on that promise.
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
interface DeviceSyncStore {
|
|
65
|
+
/** Returns the saved position, or `null` before the device holds a copy. */
|
|
66
|
+
readPosition(): Promise<DevicePosition | null>;
|
|
67
|
+
/** Saves the position, or clears it with `null`. */
|
|
68
|
+
writePosition(position: DevicePosition | null): Promise<void>;
|
|
69
|
+
/** Saves one local write at the end of the queue and returns it with its sequence number. */
|
|
70
|
+
appendWrite(write: Omit<QueuedWrite, 'sequence'>): Promise<QueuedWrite>;
|
|
71
|
+
/** Returns every queued write in sequence order. */
|
|
72
|
+
queuedWrites(): Promise<QueuedWrite[]>;
|
|
73
|
+
/** Removes the queued writes with these sequence numbers. */
|
|
74
|
+
removeWrites(sequences: readonly number[]): Promise<void>;
|
|
75
|
+
/** Saves feed entries after the ones that the store already keeps. */
|
|
76
|
+
keepEntries(entries: readonly KeptEntry[]): Promise<void>;
|
|
77
|
+
/** Returns every kept entry in the order that the store saved them. */
|
|
78
|
+
keptEntries(): Promise<KeptEntry[]>;
|
|
79
|
+
/** Removes every kept entry. */
|
|
80
|
+
clearKeptEntries(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Saves the next bytes of a snapshot download. An `offset` of 0 starts a new download and drops the saved one, and
|
|
83
|
+
* any other `offset` must equal the saved length under the same entity tag.
|
|
84
|
+
*/
|
|
85
|
+
appendDownload(entityTag: string, offset: number, chunk: Uint8Array): Promise<void>;
|
|
86
|
+
/** Returns the saved part of a snapshot download, or `null` where the store holds none. */
|
|
87
|
+
readDownload(): Promise<SavedDownload | null>;
|
|
88
|
+
/** Removes the saved snapshot download. */
|
|
89
|
+
clearDownload(): Promise<void>;
|
|
90
|
+
/** Releases the files or the database that the store holds open. */
|
|
91
|
+
close(): Promise<void>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* What became of one queued write that a developer's own backend received.
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
type UploadOutcome = {
|
|
99
|
+
accepted: true;
|
|
100
|
+
} | {
|
|
101
|
+
accepted: false;
|
|
102
|
+
error: NarsilError;
|
|
103
|
+
/**
|
|
104
|
+
* The backend's copy of the document, or `null` where it holds none. The device reads the copy from the
|
|
105
|
+
* server's document routes where this is absent.
|
|
106
|
+
*/
|
|
107
|
+
serverDocument?: AnyDocument | null;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* A local write that the server refused, which the device reports once it has replaced its own copy with the
|
|
111
|
+
* server's.
|
|
112
|
+
*
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
interface RefusedWrite {
|
|
116
|
+
/** The device made this write. */
|
|
117
|
+
write: QueuedWrite;
|
|
118
|
+
/** The server refused it with this error. */
|
|
119
|
+
error: NarsilError;
|
|
120
|
+
/** The device now holds the server's copy of the document, or no document where the server holds none. */
|
|
121
|
+
serverDocument: AnyDocument | null;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* What the device has to download to replace its copy, which {@link DeviceSyncOptions.chooseSnapshotLoad} weighs.
|
|
125
|
+
*
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
interface SnapshotMemoryCheck {
|
|
129
|
+
/** The archive holds this many bytes. */
|
|
130
|
+
archiveBytes: number;
|
|
131
|
+
/** The device estimates that it needs this many bytes of heap to hold the old and the new copy together. */
|
|
132
|
+
requiredBytes: number;
|
|
133
|
+
/** The heap may grow to this many bytes. */
|
|
134
|
+
heapLimitBytes: number;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The state that {@link DeviceSync.status} reports.
|
|
138
|
+
*
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
interface DeviceSyncStatus {
|
|
142
|
+
/** `connected` while the feed is open, `connecting` between attempts, and `stopped` after {@link DeviceSync.stop}. */
|
|
143
|
+
connection: 'connected' | 'connecting' | 'stopped';
|
|
144
|
+
/** The device holds this many local writes that the server has not accepted. */
|
|
145
|
+
queuedWrites: number;
|
|
146
|
+
/** The copy holds this position, or `null` before its first snapshot. */
|
|
147
|
+
position: DevicePosition | null;
|
|
148
|
+
/** This is true while the app has chosen to keep its old copy instead of loading a new snapshot. */
|
|
149
|
+
snapshotDeferred: boolean;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The settings of {@link createDeviceSync}.
|
|
153
|
+
*
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
interface DeviceSyncOptions {
|
|
157
|
+
/** The engine on the device that holds the synced copy. */
|
|
158
|
+
engine: Narsil;
|
|
159
|
+
/** The device syncs the index with this name, which is the same on the device and on the server. */
|
|
160
|
+
indexName: string;
|
|
161
|
+
/** The server's base URL, such as `https://search.example.com`. */
|
|
162
|
+
url: string;
|
|
163
|
+
/** The device keeps its queue, its kept entries, and its position here. */
|
|
164
|
+
store: DeviceSyncStore;
|
|
165
|
+
/**
|
|
166
|
+
* Returns the credential that the device sends with each request, as a bearer token over HTTP and as a
|
|
167
|
+
* `Sec-WebSocket-Protocol` value on the feed. The device calls it again after the server closes the feed at the
|
|
168
|
+
* credential's expiry.
|
|
169
|
+
*/
|
|
170
|
+
credential?: () => string | null | Promise<string | null>;
|
|
171
|
+
/**
|
|
172
|
+
* Sends queued writes through the developer's own backend, which then decides each conflict. The device sends
|
|
173
|
+
* them through the server's document routes where this is absent.
|
|
174
|
+
*/
|
|
175
|
+
upload?: (writes: readonly QueuedWrite[]) => Promise<UploadOutcome[]>;
|
|
176
|
+
/**
|
|
177
|
+
* Makes every change that the engine has applied to the index durable. The device saves its position only after
|
|
178
|
+
* this resolves. It defaults to a checkpoint of the index.
|
|
179
|
+
*/
|
|
180
|
+
makeDurable?: () => Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Decides whether to drop the old copy and load a new snapshot, where the device estimates that the old and the new
|
|
183
|
+
* copy can't both fit in memory. The device drops the old copy where this is absent.
|
|
184
|
+
*/
|
|
185
|
+
chooseSnapshotLoad?: (check: SnapshotMemoryCheck) => Promise<'load' | 'keep'>;
|
|
186
|
+
/** Hears about each local write that the server refused, after the device holds the server's copy. */
|
|
187
|
+
onRefusedWrite?: (refused: RefusedWrite) => void;
|
|
188
|
+
/** Hears about each error that the device recovers from by retrying. */
|
|
189
|
+
onError?: (error: unknown) => void;
|
|
190
|
+
/**
|
|
191
|
+
* The device replays the feed while it is at most this many times the published snapshot's length behind, and it
|
|
192
|
+
* loads the snapshot otherwise. It defaults to 1.
|
|
193
|
+
*/
|
|
194
|
+
replayLimitOfSnapshot?: number;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Keeps one index on a device in step with the server, through local writes that work offline.
|
|
198
|
+
*
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
interface DeviceSync {
|
|
202
|
+
/**
|
|
203
|
+
* Saves a whole document under its ID on the device, where a search sees it at once, and queues it for the server.
|
|
204
|
+
*
|
|
205
|
+
* @param documentId - The document's ID.
|
|
206
|
+
* @param document - The whole document.
|
|
207
|
+
*/
|
|
208
|
+
put(documentId: string, document: AnyDocument): Promise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* Removes a document on the device and queues the remove for the server. Removing a missing document succeeds.
|
|
211
|
+
*
|
|
212
|
+
* @param documentId - The document's ID.
|
|
213
|
+
*/
|
|
214
|
+
remove(documentId: string): Promise<void>;
|
|
215
|
+
/** Connects to the server and keeps reconnecting until {@link DeviceSync.stop}. */
|
|
216
|
+
start(): Promise<void>;
|
|
217
|
+
/** Closes the feed, waits for the device's own work, and leaves the store open. */
|
|
218
|
+
stop(): Promise<void>;
|
|
219
|
+
/** Loads a new snapshot that the app deferred through {@link DeviceSyncOptions.chooseSnapshotLoad}. */
|
|
220
|
+
loadSnapshot(): Promise<void>;
|
|
221
|
+
/** Resolves once the device has sent every queued write and holds every change up to the server's heads. */
|
|
222
|
+
settled(): Promise<void>;
|
|
223
|
+
/** Reports the connection, the queue, and the position. */
|
|
224
|
+
status(): DeviceSyncStatus;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type { DeviceSyncOptions as D, KeptEntry as K, QueuedWrite as Q, RefusedWrite as R, SavedDownload as S, UploadOutcome as U, DeviceSync as a, DevicePosition as b, DeviceSyncStatus as c, DeviceSyncStore as d, SnapshotMemoryCheck as e };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { openSharedVectorField, createVectorStore } from '../chunk-
|
|
1
|
+
import { openSharedVectorField, createVectorStore } from '../chunk-SG3JBNHY.mjs';
|
|
2
2
|
import '../chunk-FOCV4CBZ.mjs';
|
|
3
|
-
import { osqBitsOf, createHNSWIndex, createOsqQuantizer } from '../chunk-
|
|
4
|
-
import { osqRecordBytes } from '../chunk-37CD3OKS.mjs';
|
|
3
|
+
import { osqBitsOf, createHNSWIndex, createOsqQuantizer } from '../chunk-VQEUR6T6.mjs';
|
|
5
4
|
import '../chunk-DJHHF2L5.mjs';
|
|
5
|
+
import { osqRecordBytes } from '../chunk-37CD3OKS.mjs';
|
|
6
6
|
import '../chunk-KOKM4PQN.mjs';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-LQG5G2LY.mjs';
|
|
7
|
+
import '../chunk-Q7G3BV3Y.mjs';
|
|
9
8
|
import { MAX_WORKER_COPIES } from '../chunk-BTPGQC6Z.mjs';
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-LQG5G2LY.mjs';
|
|
11
10
|
import '../chunk-ZXX5GZEX.mjs';
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-RFBLQLLZ.mjs';
|
|
12
|
+
import '../chunk-MP7ABPTD.mjs';
|
|
13
13
|
import '../chunk-R6A773WK.mjs';
|
|
14
14
|
import '../chunk-YTJCGKM4.mjs';
|
|
15
15
|
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { loadVectorCode } from '../chunk-DGRM4EZZ.mjs';
|
|
2
1
|
import { isValidWorkerAction } from '../chunk-QHPYS427.mjs';
|
|
3
2
|
import { startIdleHeapCleanup } from '../chunk-QYRNLLLI.mjs';
|
|
3
|
+
import { loadVectorCode } from '../chunk-HNVVEQP7.mjs';
|
|
4
4
|
import '../chunk-ZXNQEW43.mjs';
|
|
5
|
-
import { threadSlotOfWorker } from '../chunk-RFBLQLLZ.mjs';
|
|
6
5
|
import '../chunk-L5ORED7V.mjs';
|
|
7
|
-
import {
|
|
6
|
+
import { threadSlotOfWorker } from '../chunk-RFBLQLLZ.mjs';
|
|
7
|
+
import { ErrorCodes, NarsilError, isNarsilError } from '../chunk-MP7ABPTD.mjs';
|
|
8
8
|
|
|
9
9
|
// src/workers/action-handler.ts
|
|
10
10
|
function buildErrorResponse(requestId, code, message, details) {
|
|
@@ -22,9 +22,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
22
22
|
await import(moduleUrl);
|
|
23
23
|
}
|
|
24
24
|
async function stopServingRequests() {
|
|
25
|
-
const { closeRequestThread } = await import('../thread-
|
|
25
|
+
const { closeRequestThread } = await import('../thread-6MOXY2KD.mjs');
|
|
26
26
|
closeRequestThread();
|
|
27
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
27
|
+
const { closeLongQueryThread } = await import('../long-query-thread-J4DVRM4A.mjs');
|
|
28
28
|
closeLongQueryThread();
|
|
29
29
|
}
|
|
30
30
|
function holdsCopies(executor) {
|
|
@@ -55,7 +55,7 @@ function createActionHandler(executor) {
|
|
|
55
55
|
if (!holdsCopies(executor)) {
|
|
56
56
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
57
57
|
}
|
|
58
|
-
const starting = import('../thread-
|
|
58
|
+
const starting = import('../thread-6MOXY2KD.mjs').then(
|
|
59
59
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
60
60
|
);
|
|
61
61
|
serving.start = starting.then(
|
|
@@ -72,7 +72,7 @@ function createActionHandler(executor) {
|
|
|
72
72
|
if (!holdsCopies(executor)) {
|
|
73
73
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
74
74
|
}
|
|
75
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
75
|
+
const { serveLongQueries } = await import('../long-query-thread-J4DVRM4A.mjs');
|
|
76
76
|
serveLongQueries(executor, action.settings);
|
|
77
77
|
servingRequests = true;
|
|
78
78
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -118,7 +118,7 @@ async function setup() {
|
|
|
118
118
|
} catch {
|
|
119
119
|
parentPort = null;
|
|
120
120
|
}
|
|
121
|
-
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-
|
|
121
|
+
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-G5TK7NLA.mjs'), loadVectorCode()]);
|
|
122
122
|
const handleAction = createActionHandler(createDirectExecutor({ threadSlot }));
|
|
123
123
|
if (parentPort) {
|
|
124
124
|
const port = parentPort;
|
|
@@ -1,46 +1,54 @@
|
|
|
1
|
-
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
2
|
-
import { encodeExactJson, encodeDocumentJson } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-PCRA7HTI.mjs';
|
|
2
|
+
import { encodeExactJson, encodeDocumentJson } from './chunk-6RC4K46J.mjs';
|
|
3
|
+
import './chunk-TQXHPFWT.mjs';
|
|
4
|
+
import './chunk-INJYO3BU.mjs';
|
|
4
5
|
import './chunk-CZQ33DLW.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-G5KHSM6E.mjs';
|
|
6
|
+
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-K4ZIGL2O.mjs';
|
|
7
7
|
import './chunk-37CD3OKS.mjs';
|
|
8
|
-
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
9
|
-
import
|
|
10
|
-
import './chunk-
|
|
11
|
-
import { decodeStoredDocument } from './chunk-UGVUW27S.mjs';
|
|
12
|
-
import './chunk-3HV7M5OJ.mjs';
|
|
13
|
-
import './chunk-KAKQ74LS.mjs';
|
|
8
|
+
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-KXCVQWOR.mjs';
|
|
9
|
+
import './chunk-KMUNHGBQ.mjs';
|
|
10
|
+
import './chunk-L7ZD4L3K.mjs';
|
|
14
11
|
import './chunk-HJSN7UYG.mjs';
|
|
15
|
-
import './chunk-
|
|
12
|
+
import './chunk-LHKOSI2J.mjs';
|
|
16
13
|
import './chunk-XIHUI4KB.mjs';
|
|
17
|
-
import './chunk-Q2UL2TPC.mjs';
|
|
18
14
|
import './chunk-3MXV3VHR.mjs';
|
|
19
15
|
import { EXPORT_CHUNK_BYTES } from './chunk-EEBCDP36.mjs';
|
|
20
|
-
import './chunk-
|
|
16
|
+
import { decodeStoredDocument } from './chunk-Z2BE2MAM.mjs';
|
|
17
|
+
import './chunk-ZAUJFLEN.mjs';
|
|
18
|
+
import './chunk-GH4WQ22V.mjs';
|
|
19
|
+
import { openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
|
|
20
|
+
import './chunk-IPN7S4KX.mjs';
|
|
21
|
+
import './chunk-KAKQ74LS.mjs';
|
|
22
|
+
import './chunk-7GXJUJ24.mjs';
|
|
23
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
24
|
+
import './chunk-LC3FDWTX.mjs';
|
|
25
|
+
import './chunk-JUKYYXSP.mjs';
|
|
26
|
+
import './chunk-4KRC2APY.mjs';
|
|
27
|
+
import './chunk-FQBFZAWG.mjs';
|
|
28
|
+
import './chunk-WQRN64Q6.mjs';
|
|
29
|
+
import './chunk-GES7U2PM.mjs';
|
|
30
|
+
import './chunk-I54T6CQP.mjs';
|
|
31
|
+
import './chunk-YEDIDCR7.mjs';
|
|
21
32
|
import './chunk-X5CV2E2B.mjs';
|
|
33
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
34
|
+
import './chunk-RZWWB2XR.mjs';
|
|
22
35
|
import './chunk-TGP5M5R7.mjs';
|
|
36
|
+
import './chunk-4BYWRYPM.mjs';
|
|
37
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
23
38
|
import './chunk-U2BKYEC7.mjs';
|
|
24
|
-
import './chunk-DGRM4EZZ.mjs';
|
|
25
39
|
import './chunk-QHPYS427.mjs';
|
|
26
40
|
import './chunk-QYRNLLLI.mjs';
|
|
41
|
+
import './chunk-HNVVEQP7.mjs';
|
|
27
42
|
import './chunk-ZXNQEW43.mjs';
|
|
43
|
+
import './chunk-L5ORED7V.mjs';
|
|
28
44
|
import './chunk-KOKM4PQN.mjs';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-LQG5G2LY.mjs';
|
|
45
|
+
import './chunk-Q7G3BV3Y.mjs';
|
|
31
46
|
import './chunk-BTPGQC6Z.mjs';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-U46IZNCW.mjs';
|
|
34
|
-
import './chunk-JUKYYXSP.mjs';
|
|
35
|
-
import './chunk-SOUZMPME.mjs';
|
|
36
|
-
import './chunk-FQBFZAWG.mjs';
|
|
37
|
-
import './chunk-65WCV5JO.mjs';
|
|
38
|
-
import './chunk-4UMZ7KQL.mjs';
|
|
47
|
+
import './chunk-LQG5G2LY.mjs';
|
|
39
48
|
import './chunk-ZXX5GZEX.mjs';
|
|
40
|
-
import './chunk-
|
|
41
|
-
import './chunk-L5ORED7V.mjs';
|
|
49
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
42
50
|
import './chunk-U476IXKQ.mjs';
|
|
43
|
-
import './chunk-
|
|
51
|
+
import './chunk-MP7ABPTD.mjs';
|
|
44
52
|
import './chunk-R6A773WK.mjs';
|
|
45
53
|
import './chunk-YTJCGKM4.mjs';
|
|
46
54
|
import { decode } from '@msgpack/msgpack';
|
|
@@ -124,7 +132,7 @@ async function wholeFileVectorReads(checkpoint) {
|
|
|
124
132
|
};
|
|
125
133
|
}
|
|
126
134
|
async function* pagedDocumentLines(checkpoint) {
|
|
127
|
-
const { openFileVectorReads, pagedPartitionLines } = await import('./module-
|
|
135
|
+
const { openFileVectorReads, pagedPartitionLines } = await import('./module-DWKPBSMN.mjs');
|
|
128
136
|
const vectors = await openFileVectorReads(checkpoint, () => wholeFileVectorReads(checkpoint));
|
|
129
137
|
try {
|
|
130
138
|
for (const partition of checkpoint.manifest.partitions) {
|