@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
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-pljAqmrC.js';
|
|
2
|
+
import { Q as QueryParams, h as QueryResult, j as NarsilEventHandlers } from './engine-CFxPYqEk.js';
|
|
3
|
+
import { I as IndexConfig, A as AnyDocument } from './schema-Jwt928nJ.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Hooks that the engine calls alongside its own work, so that an application
|
|
7
|
+
* can add validation, auditing, enrichment, or metrics without forking the
|
|
8
|
+
* engine.
|
|
9
|
+
*
|
|
10
|
+
* Every hook is optional. A `before` hook fires first and rejects the
|
|
11
|
+
* operation by throwing, while an `after` hook fires once the operation
|
|
12
|
+
* succeeds. Where a `before` hook on a write throws a {@link NarsilError}, the
|
|
13
|
+
* engine passes that error to the caller unchanged. It turns any other error
|
|
14
|
+
* into `DOC_VALIDATION_FAILED` with the same message, for a single write and
|
|
15
|
+
* for each entry of a batch alike. The engine awaits a hook that returns a
|
|
16
|
+
* promise, so slow work in one hook slows every write or search that it
|
|
17
|
+
* covers.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
interface NarsilPlugin {
|
|
22
|
+
/** This name identifies the plugin in errors and in event payloads. */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Fires before the engine indexes a document. Throw to reject the write. */
|
|
25
|
+
beforeInsert?(ctx: InsertContext): void | Promise<void>;
|
|
26
|
+
/** Fires once the engine has indexed a document. */
|
|
27
|
+
afterInsert?(ctx: InsertContext): void | Promise<void>;
|
|
28
|
+
/** Fires before the engine removes a document. Throw to reject the removal. */
|
|
29
|
+
beforeRemove?(ctx: RemoveContext): void | Promise<void>;
|
|
30
|
+
/** Fires once the engine has removed a document. */
|
|
31
|
+
afterRemove?(ctx: RemoveContext): void | Promise<void>;
|
|
32
|
+
/** Fires before the engine replaces a document. Throw to reject the update. */
|
|
33
|
+
beforeUpdate?(ctx: UpdateContext): void | Promise<void>;
|
|
34
|
+
/** Fires once the engine has replaced a document. */
|
|
35
|
+
afterUpdate?(ctx: UpdateContext): void | Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Fires before every search, and before every preflight. Throw to reject the
|
|
38
|
+
* query. It fires before the engine embeds a `vector.text` query, so a hook
|
|
39
|
+
* that counts or refuses work stops the call to the embedding provider, and
|
|
40
|
+
* `ctx.params.vector` still holds the text that the caller passed.
|
|
41
|
+
* {@link Narsil.suggest} scans the term dictionary and searches no document,
|
|
42
|
+
* so it fires no hook.
|
|
43
|
+
*/
|
|
44
|
+
beforeSearch?(ctx: SearchContext): void | Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Fires once a search returns. The context holds a copy of the results, so a
|
|
47
|
+
* change that you make here leaves the caller's own result untouched. Where
|
|
48
|
+
* this hook throws, the engine logs a warning and answers the query all the
|
|
49
|
+
* same, because the search is already over.
|
|
50
|
+
*/
|
|
51
|
+
afterSearch?(ctx: SearchContext): void | Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Fires once the engine creates an index, and a `restore` fires it too,
|
|
54
|
+
* because a restore recreates the index that it replaces. Where this hook
|
|
55
|
+
* throws, the engine logs a warning and keeps the index, because the hook
|
|
56
|
+
* fires after the index exists.
|
|
57
|
+
*/
|
|
58
|
+
onIndexCreate?(ctx: IndexContext): void | Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Fires once the engine drops an index, and a `restore` fires it too,
|
|
61
|
+
* because a restore drops the index that it replaces. Where this hook
|
|
62
|
+
* throws, the engine logs a warning, because the hook fires after the index
|
|
63
|
+
* is gone.
|
|
64
|
+
*/
|
|
65
|
+
onIndexDrop?(ctx: IndexContext): void | Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Fires once {@link Narsil.rebalance} moves an index onto a new partition
|
|
68
|
+
* count, which is the only way that the count changes. An index opens with
|
|
69
|
+
* the count that `partitions.maxPartitions` sets, because the engine adds no
|
|
70
|
+
* partition on its own. Subscribe to the `partitionWatermark` event to learn
|
|
71
|
+
* when an index fills its capacity.
|
|
72
|
+
*/
|
|
73
|
+
onPartitionSplit?(ctx: PartitionContext): void | Promise<void>;
|
|
74
|
+
/** Fires once the engine loads worker copies of its indexes. */
|
|
75
|
+
onWorkerPromote?(ctx: WorkerContext): void | Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* What a plugin receives around an insert.
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
interface InsertContext {
|
|
83
|
+
/** The engine writes the document to this index. */
|
|
84
|
+
indexName: string;
|
|
85
|
+
/** The document is stored under this id, which the engine resolves before the `before` hook runs. */
|
|
86
|
+
docId: string;
|
|
87
|
+
/** This is the document itself, and the engine indexes whatever a `before` hook leaves here. */
|
|
88
|
+
document: AnyDocument;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* What a plugin receives around a removal.
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
interface RemoveContext {
|
|
96
|
+
/** The engine removes the document from this index. */
|
|
97
|
+
indexName: string;
|
|
98
|
+
/** The engine removes this document. */
|
|
99
|
+
docId: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* What a plugin receives around an update.
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
interface UpdateContext {
|
|
107
|
+
/** The document belongs to this index. */
|
|
108
|
+
indexName: string;
|
|
109
|
+
/** The engine replaces this document. */
|
|
110
|
+
docId: string;
|
|
111
|
+
/** The index holds this document before the update. */
|
|
112
|
+
oldDocument: AnyDocument;
|
|
113
|
+
/** This document replaces it, and the engine indexes whatever a `before` hook leaves here. */
|
|
114
|
+
newDocument: AnyDocument;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* What a plugin receives around a search.
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
interface SearchContext {
|
|
122
|
+
/** The search runs against this index. */
|
|
123
|
+
indexName: string;
|
|
124
|
+
/** These are the parameters the query runs with, and a `before` hook that changes them rewrites the search. */
|
|
125
|
+
params: QueryParams;
|
|
126
|
+
/**
|
|
127
|
+
* These are the results, which an `after` hook alone receives. A preflight
|
|
128
|
+
* fires `beforeSearch` and stops there, because it answers with a count and
|
|
129
|
+
* no hits. Read this field inside an `afterSearch` hook alone.
|
|
130
|
+
*/
|
|
131
|
+
results?: QueryResult;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* What a plugin receives when the engine creates or drops an index.
|
|
135
|
+
*
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
interface IndexContext {
|
|
139
|
+
/** The engine creates or drops this index. */
|
|
140
|
+
indexName: string;
|
|
141
|
+
/** The index holds this configuration. */
|
|
142
|
+
config: IndexConfig;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* What a plugin receives when a rebalance changes an index's partition count.
|
|
146
|
+
*
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
interface PartitionContext {
|
|
150
|
+
/** The rebalance moved this index. */
|
|
151
|
+
indexName: string;
|
|
152
|
+
/** The index held this many partitions before the rebalance. */
|
|
153
|
+
oldPartitionCount: number;
|
|
154
|
+
/** The index holds this many partitions now. */
|
|
155
|
+
newPartitionCount: number;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* What a plugin receives when the engine moves onto worker threads.
|
|
159
|
+
*
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
interface WorkerContext {
|
|
163
|
+
/** The pool holds this many workers. */
|
|
164
|
+
workerCount: number;
|
|
165
|
+
/** The engine promoted for this reason, such as the threshold that the index crossed. */
|
|
166
|
+
reason: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Everything {@link createNarsil} accepts when it builds an engine.
|
|
171
|
+
*
|
|
172
|
+
* Every field is optional, and an engine created without any of them keeps
|
|
173
|
+
* its indexes in memory alone. Add persistence to survive a restart, add
|
|
174
|
+
* invalidation to share a store with another process, and add durability to
|
|
175
|
+
* recover the writes made since the last snapshot.
|
|
176
|
+
*
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
interface NarsilConfig {
|
|
180
|
+
/** This adapter writes partitions somewhere they outlive the process. */
|
|
181
|
+
persistence?: PersistenceAdapter;
|
|
182
|
+
/** This channel carries partition changes to other instances sharing the store. */
|
|
183
|
+
invalidation?: InvalidationAdapter;
|
|
184
|
+
/** These hooks observe or reject writes, searches, and lifecycle changes. */
|
|
185
|
+
plugins?: NarsilPlugin[];
|
|
186
|
+
/** This supplies the id for a document inserted without one. The engine generates a UUID v7 by default. */
|
|
187
|
+
idGenerator?: () => string;
|
|
188
|
+
/** These settings control when an index gains worker copies, how many threads they share, and when an idle index gives them up. */
|
|
189
|
+
workers?: WorkerConfig;
|
|
190
|
+
/** Every index uses this adapter unless its own config names another. */
|
|
191
|
+
embedding?: EmbeddingAdapter;
|
|
192
|
+
/** Named adapters; names persist in index metadata so recovery can rebind. */
|
|
193
|
+
embeddingAdapters?: Record<string, EmbeddingAdapter>;
|
|
194
|
+
/**
|
|
195
|
+
* These rerank adapters are registered under their keys, so that a query
|
|
196
|
+
* can give a key in `rerank.adapter`. The engine throws
|
|
197
|
+
* `RERANK_CONFIG_INVALID` for an empty key and for an entry without a
|
|
198
|
+
* `rerank` function.
|
|
199
|
+
*/
|
|
200
|
+
rerankAdapters?: Record<string, RerankAdapter>;
|
|
201
|
+
/**
|
|
202
|
+
* The engine waits this many milliseconds for a rerank adapter to score one
|
|
203
|
+
* query, and 30,000 by default. It then cancels the call through the
|
|
204
|
+
* adapter's abort signal and throws `RERANK_FAILED`. Set a whole number of
|
|
205
|
+
* at least 1; {@link createNarsil} throws `CONFIG_INVALID` for any other
|
|
206
|
+
* value.
|
|
207
|
+
*/
|
|
208
|
+
rerankTimeout?: number;
|
|
209
|
+
/**
|
|
210
|
+
* A query may rerank at most this many of its top hits, which caps the
|
|
211
|
+
* documents that one query sends to a model. Set a whole number from 1 to
|
|
212
|
+
* 1,000, or leave it out for 100; {@link createNarsil} throws
|
|
213
|
+
* `CONFIG_INVALID` for any other value.
|
|
214
|
+
*/
|
|
215
|
+
maxRerankWindow?: number;
|
|
216
|
+
/** These settings recover the writes made since the last snapshot. */
|
|
217
|
+
durability?: DurabilityConfig;
|
|
218
|
+
/** These settings control what the engine does when an index's stored analysis differs from its language module. */
|
|
219
|
+
analysis?: AnalysisConfig;
|
|
220
|
+
/** These limits close indexes while keeping their durable files ready to reopen. */
|
|
221
|
+
lifecycle?: IndexLifecycleConfig;
|
|
222
|
+
/**
|
|
223
|
+
* These listeners receive events from the moment that the engine starts.
|
|
224
|
+
* The engine registers each one before it recovers any index, so a listener
|
|
225
|
+
* here receives the `layoutUpgrade` events of that recovery, which come
|
|
226
|
+
* before {@link createNarsil} returns the engine. For a name outside
|
|
227
|
+
* {@link NarsilEventMap}, or an entry that is not a function,
|
|
228
|
+
* {@link createNarsil} throws `CONFIG_INVALID`.
|
|
229
|
+
*/
|
|
230
|
+
events?: NarsilEventHandlers;
|
|
231
|
+
/**
|
|
232
|
+
* This is the most work that the engine may do on the pattern tests and
|
|
233
|
+
* phrases of one search, counted over every partition that it searches. For
|
|
234
|
+
* a phrase, the engine adds one unit for each posting of its starting word
|
|
235
|
+
* that it visits, and one for each position that it compares. For a pattern
|
|
236
|
+
* test, it adds one unit for each run of three code points that it looks up in a pattern
|
|
237
|
+
* index, one for each entry that it reads from a pattern index, and one for
|
|
238
|
+
* each step of its matcher. For a text whose case fold is shorter than three
|
|
239
|
+
* code points, it counts each document that it checks as an entry that it
|
|
240
|
+
* reads. It counts an `in` or `nin` test as one `eq` test for each distinct
|
|
241
|
+
* value in its list. For an `eq` test with a `tolerance`, it also adds one
|
|
242
|
+
* unit for each cell that it fills in the table of edit distances between
|
|
243
|
+
* the text and a value. It also counts the preparation of that test once for
|
|
244
|
+
* a search, however many worker copies prepare it. Once the count passes the
|
|
245
|
+
* cap, the engine throws `SEARCH_WORK_CAP_EXCEEDED`. The cap
|
|
246
|
+
* defaults to 25,000,000 units. For any value other than a whole number from
|
|
247
|
+
* 1 to `Number.MAX_SAFE_INTEGER`, {@link createNarsil} throws
|
|
248
|
+
* `CONFIG_INVALID`.
|
|
249
|
+
*/
|
|
250
|
+
patternWorkCap?: number;
|
|
251
|
+
/**
|
|
252
|
+
* These fractions set the memory levels at which the engine stops and resumes
|
|
253
|
+
* accepting inserts and updates, so that a write cannot take the process past
|
|
254
|
+
* its memory limit. Inside a cluster node, the node's own memory settings
|
|
255
|
+
* apply in place of these. For a fraction outside the range that
|
|
256
|
+
* {@link MemoryConfig} describes, {@link createNarsil} throws `CONFIG_INVALID`
|
|
257
|
+
* on Node.js and on a phone. A browser reports no memory limit, so the
|
|
258
|
+
* engine there ignores this setting and leaves it unchecked.
|
|
259
|
+
*/
|
|
260
|
+
memory?: MemoryConfig;
|
|
261
|
+
/**
|
|
262
|
+
* The secret key that popular query suggestions scramble each person's ID
|
|
263
|
+
* with. Give every node of a cluster the same key. Without it, the engine
|
|
264
|
+
* counts no search and builds no suggestion. Import
|
|
265
|
+
* `@delali/narsil/query-suggestions` to reach the feature.
|
|
266
|
+
*/
|
|
267
|
+
querySuggestions?: QuerySuggestionsConfig;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The engine settings of popular query suggestions.
|
|
271
|
+
*
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
interface QuerySuggestionsConfig {
|
|
275
|
+
/**
|
|
276
|
+
* A secret of at least 32 bytes, as bytes or as text whose UTF-8 bytes the
|
|
277
|
+
* engine takes. No snapshot, backup, or payload holds it.
|
|
278
|
+
*/
|
|
279
|
+
key: string | Uint8Array;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* The memory levels at which an engine stops and resumes accepting inserts and
|
|
283
|
+
* updates.
|
|
284
|
+
*
|
|
285
|
+
* The engine measures its process memory and its heap before a write whenever
|
|
286
|
+
* its latest measurement is more than one second old. It counts as full once
|
|
287
|
+
* either figure passes `blockWritesAbove` of its limit, and as clear again once
|
|
288
|
+
* both fall below `resumeWritesBelow`, so that an engine near the threshold
|
|
289
|
+
* does not switch writes on and off. While the engine is full, it refuses every
|
|
290
|
+
* insert and update with `MEMORY_WRITE_BLOCKED` and the reason `memory_full`,
|
|
291
|
+
* and it accepts removes, searches, and document reads, so that you can free
|
|
292
|
+
* memory by removing documents. It also refuses a document whose indexing could
|
|
293
|
+
* take the memory in use past the block level, with the reason
|
|
294
|
+
* `write_would_fill_memory`. In a batch, it refuses that document and every
|
|
295
|
+
* later one, and it keeps the documents that it has already indexed. A runtime
|
|
296
|
+
* that reports no memory limit, such as a browser, leaves every write
|
|
297
|
+
* unchecked.
|
|
298
|
+
*
|
|
299
|
+
* @public
|
|
300
|
+
*/
|
|
301
|
+
interface MemoryConfig {
|
|
302
|
+
/**
|
|
303
|
+
* The engine counts as full once either memory figure passes this fraction
|
|
304
|
+
* of its limit. It must lie above `resumeWritesBelow` and at most 1, and it
|
|
305
|
+
* is 0.9 where you set none. On Node.js, the engine compares its heap with
|
|
306
|
+
* the smaller of this setting and 0.75, because V8 stops a process after four
|
|
307
|
+
* full collections in a row that each leave the old generation holding at
|
|
308
|
+
* least 0.8 of its limit.
|
|
309
|
+
*/
|
|
310
|
+
blockWritesAbove?: number;
|
|
311
|
+
/**
|
|
312
|
+
* A full engine accepts writes again once both memory figures fall below
|
|
313
|
+
* this fraction of their limits. It must lie above 0 and below
|
|
314
|
+
* `blockWritesAbove`, and it is 0.8 where you set none. On Node.js, the
|
|
315
|
+
* engine compares its heap with the smaller of this setting and 0.65, for the
|
|
316
|
+
* same reason that it caps the heap side of `blockWritesAbove` at 0.75.
|
|
317
|
+
*/
|
|
318
|
+
resumeWritesBelow?: number;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Limits on the indexes one engine keeps open in memory.
|
|
322
|
+
*
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
interface IndexLifecycleConfig {
|
|
326
|
+
/** An index closes after this many milliseconds without activity. */
|
|
327
|
+
idleTimeoutMs?: number;
|
|
328
|
+
/** The engine keeps at most this many indexes open at once. */
|
|
329
|
+
maxOpenIndexes?: number;
|
|
330
|
+
/** Open indexes may use at most this many estimated bytes in total. */
|
|
331
|
+
maxOpenBytes?: number;
|
|
332
|
+
/** At most this many callers may wait behind one index reopen. */
|
|
333
|
+
maxReopenWaiters?: number;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Describes an index whose stored terms came from an older analysis than the
|
|
337
|
+
* one its language module carries today.
|
|
338
|
+
*
|
|
339
|
+
* The engine hands this to {@link AnalysisConfig.onStaleAnalysis} together
|
|
340
|
+
* with the rebuild that fixes it, so you decide when the work runs.
|
|
341
|
+
*
|
|
342
|
+
* @public
|
|
343
|
+
*/
|
|
344
|
+
interface StaleAnalysis {
|
|
345
|
+
/** This index holds terms that are out of date. */
|
|
346
|
+
indexName: string;
|
|
347
|
+
/** The index was built with this language module. */
|
|
348
|
+
language: string;
|
|
349
|
+
/** The index recorded this revision when it was written, and `null` for an index written before revisions existed. */
|
|
350
|
+
storedRevision: string | null;
|
|
351
|
+
/** The language module carries this revision now. */
|
|
352
|
+
currentRevision: string;
|
|
353
|
+
/** The rebuild reindexes this many documents. */
|
|
354
|
+
documentCount: number;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* What the engine does when an index's stored terms no longer match the
|
|
358
|
+
* analysis its language module produces.
|
|
359
|
+
*
|
|
360
|
+
* A stale index answers text queries from terms an older analysis wrote, and
|
|
361
|
+
* every such result reports `analysisStale`. Rebuilding fixes it, and this
|
|
362
|
+
* setting controls whether the engine starts that work itself.
|
|
363
|
+
*
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
interface AnalysisConfig {
|
|
367
|
+
/** `auto` rebuilds a stale index in the background, and `manual` leaves it to you. The engine rebuilds automatically by default. */
|
|
368
|
+
rebuild?: 'auto' | 'manual';
|
|
369
|
+
/**
|
|
370
|
+
* Called once for each stale index the engine finds.
|
|
371
|
+
*
|
|
372
|
+
* @param index - The index that is stale, and how far behind it is.
|
|
373
|
+
* @param rebuild - Starts the rebuild and resolves once every partition
|
|
374
|
+
* carries current terms. Under `manual` nothing rebuilds until you call it.
|
|
375
|
+
*/
|
|
376
|
+
onStaleAnalysis?(index: StaleAnalysis, rebuild: () => Promise<void>): void | Promise<void>;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Write-ahead logging and checkpointing, which recover the writes made since
|
|
380
|
+
* the last snapshot.
|
|
381
|
+
*
|
|
382
|
+
* The `wal` tier logs every mutation before applying it, so a crash costs
|
|
383
|
+
* nothing once the log replays. The `snapshot` tier writes whole partitions on
|
|
384
|
+
* an interval, which is cheaper to run and loses whatever arrived after the
|
|
385
|
+
* last write.
|
|
386
|
+
*
|
|
387
|
+
* @public
|
|
388
|
+
*/
|
|
389
|
+
interface DurabilityConfig {
|
|
390
|
+
/** `wal` logs every mutation, and `snapshot` writes whole partitions on an interval. */
|
|
391
|
+
tier?: 'wal' | 'snapshot';
|
|
392
|
+
/** The engine writes the log and its checkpoints into this directory. */
|
|
393
|
+
directory?: string;
|
|
394
|
+
/** `sync` flushes before a write resolves, and `async` flushes on the interval below. */
|
|
395
|
+
mode?: 'sync' | 'async';
|
|
396
|
+
/** In `async` mode the engine flushes this many milliseconds apart. */
|
|
397
|
+
flushIntervalMs?: number;
|
|
398
|
+
/** The log rolls over to a new segment once it reaches this size. */
|
|
399
|
+
segmentMaxBytes?: number;
|
|
400
|
+
/** The engine checkpoints this many milliseconds apart, which shortens the replay a restart has to do. */
|
|
401
|
+
checkpointIntervalMs?: number;
|
|
402
|
+
/** This many mutations trigger a checkpoint before the interval elapses. */
|
|
403
|
+
checkpointMutationThreshold?: number;
|
|
404
|
+
/**
|
|
405
|
+
* The engine merges a partition's checkpoint segments once that partition
|
|
406
|
+
* holds more than this many of them, 12 by default. The value is a whole
|
|
407
|
+
* number of segments.
|
|
408
|
+
*/
|
|
409
|
+
compactionThreshold?: number;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Which queries the main copy of an index answers once the index holds worker
|
|
413
|
+
* copies. Under `lone`, the main copy answers a query the engine receives
|
|
414
|
+
* while no copy holds one, on an index of at most 50,000 documents. Once
|
|
415
|
+
* every copy is busy, it also answers one query per turn of the event loop.
|
|
416
|
+
* Under `none`, every query on an index that holds copies goes to one of
|
|
417
|
+
* them, while the main copy still answers a query on an index whose copies
|
|
418
|
+
* are loading.
|
|
419
|
+
*
|
|
420
|
+
* @public
|
|
421
|
+
*/
|
|
422
|
+
type MainCopyQueries = 'lone' | 'none';
|
|
423
|
+
/**
|
|
424
|
+
* How the engine holds worker copies of its indexes, and how many threads
|
|
425
|
+
* they may use.
|
|
426
|
+
*
|
|
427
|
+
* A small index answers fastest on the main thread. Once an index holds as
|
|
428
|
+
* many documents as the copy threshold, the engine loads a copy of it onto
|
|
429
|
+
* every worker thread, and each query then runs whole on the copy with the
|
|
430
|
+
* fewest queries in flight. The same switch governs the vector search pool.
|
|
431
|
+
*
|
|
432
|
+
* @public
|
|
433
|
+
*/
|
|
434
|
+
interface WorkerConfig {
|
|
435
|
+
/**
|
|
436
|
+
* Whether the engine may hold worker copies and a vector search pool. It is
|
|
437
|
+
* on everywhere but a browser page. Set it to false to hold the process to
|
|
438
|
+
* one thread, which leaves both pools absent. Where a bundler folds
|
|
439
|
+
* `@delali/narsil` into an application bundle, the engine finds no worker
|
|
440
|
+
* entry: left unset, it answers on one thread and prints one warning, and
|
|
441
|
+
* set to true, `createNarsil` throws `CONFIG_INVALID`.
|
|
442
|
+
*/
|
|
443
|
+
enabled?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* The keyword copies and the vector search pool share this many threads
|
|
446
|
+
* between them, half each, in an embedded engine, so a budget of 4 gives 2
|
|
447
|
+
* keyword copies and 2 vector search workers. The HTTP server holds a copy
|
|
448
|
+
* on every one of them and receives requests there. The engine takes the
|
|
449
|
+
* host's cores minus one by default, between 2 and 8. It caps a value that
|
|
450
|
+
* you set at 31, which is how many scratch slots the shared vector arena
|
|
451
|
+
* reserves.
|
|
452
|
+
*/
|
|
453
|
+
count?: number;
|
|
454
|
+
/** An index gains worker copies once it holds this many documents, 1,000 by default. */
|
|
455
|
+
promotionThreshold?: number;
|
|
456
|
+
/**
|
|
457
|
+
* The engine drops an index's copies after this many milliseconds without a
|
|
458
|
+
* read or a write, five minutes by default, and loads them again on the
|
|
459
|
+
* next request while the main copy answers it. It may not exceed
|
|
460
|
+
* `lifecycle.idleTimeoutMs`, and where it is unset the copies take the
|
|
461
|
+
* smaller of five minutes and that interval.
|
|
462
|
+
*/
|
|
463
|
+
idleTimeoutMs?: number;
|
|
464
|
+
/**
|
|
465
|
+
* Which queries the main copy answers, `lone` by default. Set `none` where
|
|
466
|
+
* the main thread also serves the host's own work, such as HTTP requests,
|
|
467
|
+
* because a query answered on the main copy then delays every other request
|
|
468
|
+
* waiting on that thread. A server created with `createServer` sets `none` on
|
|
469
|
+
* an engine that leaves this unset.
|
|
470
|
+
*/
|
|
471
|
+
mainCopyQueries?: MainCopyQueries;
|
|
472
|
+
/**
|
|
473
|
+
* Each worker imports this module on start-up, which is how a worker reaches
|
|
474
|
+
* a custom tokeniser or language. Give an absolute path or a URL, such as
|
|
475
|
+
* `new URL('./bootstrap.js', import.meta.url).href`, because a worker
|
|
476
|
+
* resolves a relative specifier against Narsil's own directory. A relative
|
|
477
|
+
* value raises `CONFIG_INVALID`.
|
|
478
|
+
*/
|
|
479
|
+
bootstrapModule?: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export type { AnalysisConfig as A, DurabilityConfig as D, IndexContext as I, MainCopyQueries as M, NarsilConfig as N, PartitionContext as P, QuerySuggestionsConfig as Q, RemoveContext as R, SearchContext as S, UpdateContext as U, WorkerConfig as W, IndexLifecycleConfig as a, InsertContext as b, MemoryConfig as c, NarsilPlugin as d, StaleAnalysis as e, WorkerContext as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as NarsilConfig } from './config-CoSig5Ox.js';
|
|
2
2
|
import { P as PersistenceAdapter } from './adapters-pljAqmrC.js';
|
|
3
|
-
import { A as AllocationConstraints, a as AllocationTable, N as NodeRole, b as NodeRegistration, C as ClusterCoordinator, c as NodeCapacity } from './index-
|
|
3
|
+
import { A as AllocationConstraints, a as AllocationTable, N as NodeRole, b as NodeRegistration, C as ClusterCoordinator, c as NodeCapacity } from './index-C4AmUnl1.js';
|
|
4
4
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -63,6 +63,20 @@ interface BackupOperationOptions {
|
|
|
63
63
|
/** Called whenever the operation reports more progress. */
|
|
64
64
|
onProgress?: (progress: BackupProgress) => void;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* How {@link ClusterNamespace.createBackup} backs up an index.
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
interface CreateBackupOptions extends BackupOperationOptions {
|
|
72
|
+
/**
|
|
73
|
+
* Set this to true to add every node's popular query suggestion history of the index to the backup, so that a
|
|
74
|
+
* restore keeps the counts that a build reads. The history holds the scrambled text of what people searched for, and
|
|
75
|
+
* the backup keeps it after `retentionDays` ends, so leave it out unless the restored index needs those counts. A
|
|
76
|
+
* node that gives no answer adds nothing.
|
|
77
|
+
*/
|
|
78
|
+
queryHistory?: boolean;
|
|
79
|
+
}
|
|
66
80
|
/**
|
|
67
81
|
* Where {@link ClusterNamespace.restoreBackup} puts a backup, and how the cluster places the restored copies.
|
|
68
82
|
*
|
|
@@ -533,14 +547,15 @@ interface ClusterNamespace {
|
|
|
533
547
|
* @param indexName - The index to back up.
|
|
534
548
|
* @param backupName - The backup's name, from 1 to 128 letters, digits, `.`, `_`, and `-`, starting with a letter or
|
|
535
549
|
* a digit.
|
|
536
|
-
* @param options - A callback that receives the progress
|
|
550
|
+
* @param options - A callback that receives the progress, and whether the backup adds the index's popular query
|
|
551
|
+
* suggestion history.
|
|
537
552
|
* @returns What the manifest records about the backup.
|
|
538
553
|
* @throws A `NarsilError` with `BACKUP_ALREADY_EXISTS` for a name that the store or a running backup holds,
|
|
539
554
|
* `BACKUP_DURABILITY_REQUIRED` where a primary runs without write-ahead log durability, `BACKUP_STORE_CLAIMED`
|
|
540
555
|
* where another cluster writes under the key prefix, `BACKUP_STORE_NOT_CONFIGURED` on a node without a store, and
|
|
541
556
|
* `BACKUP_NOT_READY` while a node of the cluster runs an earlier release.
|
|
542
557
|
*/
|
|
543
|
-
createBackup(indexName: string, backupName: string, options?:
|
|
558
|
+
createBackup(indexName: string, backupName: string, options?: CreateBackupOptions): Promise<BackupSummary>;
|
|
544
559
|
/**
|
|
545
560
|
* Restores a backup as a new index, on a cluster of any size.
|
|
546
561
|
*
|
|
@@ -584,4 +599,4 @@ interface ClusterNodeInfo {
|
|
|
584
599
|
status: string;
|
|
585
600
|
}
|
|
586
601
|
|
|
587
|
-
export type { BackupListing as B, ClusterNamespace as C, DamagedBackup as D, IndexHealth as I, NodeReadiness as N, PartitionReplicationFigure as P, ReplicaLagFigure as R, VectorRebuildWaitFigure as V, BackupSummary as a, ClusterNodeInfo as b, CreateIndexOptions as c, ClusterNodeConfig as d, BackupOperationOptions as e, BackupProgress as f, ClusterBackupConfig as g, ClusterControllerConfig as h, ClusterHealth as i, ClusterHealthStatus as j, ClusterMemoryConfig as k, ClusterMetrics as l, ClusterQueryConfig as m, CommitPointFigure as n, CoordinatorRequestFigure as o,
|
|
602
|
+
export type { BackupListing as B, ClusterNamespace as C, DamagedBackup as D, IndexHealth as I, NodeReadiness as N, PartitionReplicationFigure as P, ReplicaLagFigure as R, VectorRebuildWaitFigure as V, BackupSummary as a, ClusterNodeInfo as b, CreateIndexOptions as c, ClusterNodeConfig as d, BackupOperationOptions as e, BackupProgress as f, ClusterBackupConfig as g, ClusterControllerConfig as h, ClusterHealth as i, ClusterHealthStatus as j, ClusterMemoryConfig as k, ClusterMetrics as l, ClusterQueryConfig as m, CommitPointFigure as n, CoordinatorRequestFigure as o, CreateBackupOptions as p, ReplicationConfig as q, RestoreBackupOptions as r };
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
export { createDirectExecutor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDirectExecutor } from './chunk-Z2BE2MAM.mjs';
|
|
2
|
+
import './chunk-ZAUJFLEN.mjs';
|
|
3
|
+
import './chunk-IPN7S4KX.mjs';
|
|
3
4
|
import './chunk-KAKQ74LS.mjs';
|
|
4
5
|
import './chunk-Q2UL2TPC.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
+
import './chunk-LC3FDWTX.mjs';
|
|
7
|
+
import './chunk-JUKYYXSP.mjs';
|
|
8
|
+
import './chunk-4KRC2APY.mjs';
|
|
9
|
+
import './chunk-FQBFZAWG.mjs';
|
|
10
|
+
import './chunk-WQRN64Q6.mjs';
|
|
11
|
+
import './chunk-GES7U2PM.mjs';
|
|
12
|
+
import './chunk-I54T6CQP.mjs';
|
|
13
|
+
import './chunk-YEDIDCR7.mjs';
|
|
6
14
|
import './chunk-X5CV2E2B.mjs';
|
|
15
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
16
|
+
import './chunk-RZWWB2XR.mjs';
|
|
7
17
|
import './chunk-TGP5M5R7.mjs';
|
|
18
|
+
import './chunk-4BYWRYPM.mjs';
|
|
19
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
8
20
|
import './chunk-U2BKYEC7.mjs';
|
|
9
|
-
import './chunk-
|
|
21
|
+
import './chunk-HNVVEQP7.mjs';
|
|
10
22
|
import './chunk-ZXNQEW43.mjs';
|
|
23
|
+
import './chunk-L5ORED7V.mjs';
|
|
11
24
|
import './chunk-LQG5G2LY.mjs';
|
|
12
|
-
import './chunk-U46IZNCW.mjs';
|
|
13
|
-
import './chunk-JUKYYXSP.mjs';
|
|
14
|
-
import './chunk-SOUZMPME.mjs';
|
|
15
|
-
import './chunk-FQBFZAWG.mjs';
|
|
16
|
-
import './chunk-65WCV5JO.mjs';
|
|
17
|
-
import './chunk-4UMZ7KQL.mjs';
|
|
18
25
|
import './chunk-ZXX5GZEX.mjs';
|
|
19
|
-
import './chunk-KYVRZAYP.mjs';
|
|
20
|
-
import './chunk-L5ORED7V.mjs';
|
|
21
26
|
import './chunk-U476IXKQ.mjs';
|
|
22
|
-
import './chunk-
|
|
27
|
+
import './chunk-MP7ABPTD.mjs';
|
|
23
28
|
import './chunk-R6A773WK.mjs';
|
|
24
29
|
import './chunk-YTJCGKM4.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClusterCoordinator } from '../../index-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-C4AmUnl1.js';
|
|
2
|
+
import '../../schema-Jwt928nJ.js';
|
|
3
3
|
import '../../adapters-pljAqmrC.js';
|
|
4
4
|
import '../../synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INDEX_METADATA_KEY_PREFIX, indexNameOfMetadataSuffix } from '../../chunk-Q2AP2FSN.mjs';
|
|
2
2
|
import { MAX_NODE_ID_LENGTH, CONTROLLER_LEASE_KEY, MAX_WATCHERS } from '../../chunk-44W3CBNG.mjs';
|
|
3
|
-
import { NarsilError, ErrorCodes, describeError } from '../../chunk-
|
|
3
|
+
import { NarsilError, ErrorCodes, describeError } from '../../chunk-MP7ABPTD.mjs';
|
|
4
4
|
import '../../chunk-R6A773WK.mjs';
|
|
5
5
|
import { compareCodePoints } from '../../chunk-YTJCGKM4.mjs';
|
|
6
6
|
import { encode, decode } from '@msgpack/msgpack';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClusterCoordinator } from '../../index-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-C4AmUnl1.js';
|
|
2
|
+
import '../../schema-Jwt928nJ.js';
|
|
3
3
|
import '../../adapters-pljAqmrC.js';
|
|
4
4
|
import '../../synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-
|
|
2
|
-
import { timeoutsOf, replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-RVGRFOGN.mjs';
|
|
2
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-OIJ64LGT.mjs';
|
|
3
3
|
import { MAX_MESSAGE_SIZE_BYTES, GRPC_KEEPALIVE_TIMEOUT_MS, GRPC_KEEPALIVE_TIME_MS, GRPC_ENVELOPE_OVERHEAD_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
4
|
-
import { TransportError, TransportErrorCodes } from '../../chunk-
|
|
5
|
-
import { NarsilError, ErrorCodes } from '../../chunk-
|
|
4
|
+
import { TransportError, TransportErrorCodes } from '../../chunk-5FLRXF73.mjs';
|
|
5
|
+
import { NarsilError, ErrorCodes } from '../../chunk-MP7ABPTD.mjs';
|
|
6
6
|
|
|
7
7
|
// src/distribution/transport/grpc/codec.ts
|
|
8
8
|
var FIELD_ONE_LENGTH_DELIMITED_KEY = 10;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { timeoutsOf, replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-OIJ64LGT.mjs';
|
|
2
2
|
import { MAX_MESSAGE_SIZE_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
3
|
-
import { DEFAULT_TRANSPORT_CONFIG, TransportError, TransportErrorCodes } from '../../chunk-
|
|
3
|
+
import { DEFAULT_TRANSPORT_CONFIG, TransportError, TransportErrorCodes } from '../../chunk-5FLRXF73.mjs';
|
|
4
4
|
|
|
5
5
|
// src/distribution/transport/in-memory.ts
|
|
6
6
|
function createInMemoryNetwork() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_TCP_CONFIG, encodeTransportMessage, encodeFrame, FRAME_TYPE_REQUEST, FrameParser, FRAME_TYPE_RESPONSE, decodeTransportMessage, FRAME_TYPE_STREAM_CHUNK, FRAME_TYPE_STREAM_END } from '../../chunk-
|
|
2
|
-
import { timeoutsOf, replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { DEFAULT_TCP_CONFIG, encodeTransportMessage, encodeFrame, FRAME_TYPE_REQUEST, FrameParser, FRAME_TYPE_RESPONSE, decodeTransportMessage, FRAME_TYPE_STREAM_CHUNK, FRAME_TYPE_STREAM_END } from '../../chunk-RVGRFOGN.mjs';
|
|
2
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-OIJ64LGT.mjs';
|
|
3
3
|
import { MAX_MESSAGE_SIZE_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
4
|
-
import { TransportError, TransportErrorCodes } from '../../chunk-
|
|
4
|
+
import { TransportError, TransportErrorCodes } from '../../chunk-5FLRXF73.mjs';
|
|
5
5
|
import { connect as connect$1, createServer as createServer$1 } from 'net';
|
|
6
6
|
import { connect, createServer } from 'tls';
|
|
7
7
|
|