@delali/narsil 0.3.1-next.153 → 0.3.1-next.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/{analysis-change-2OYM7ARW.mjs → analysis-change-3TFIHT5E.mjs} +32 -23
- package/dist/{react-native/chunks/analysis-change-entry-CXNRW324.mjs → analysis-change-entry-KA6JAO4X.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-2V2HZ2NY.mjs → analysis-change-TC36BU47.mjs} +39 -10
- package/dist/{analysis-change-entry-QD7YNDEE.mjs → browser/analysis-change-entry-4MH3CZXH.mjs} +1 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
- package/dist/browser/chunk-23XRXIBW.mjs +85 -0
- package/dist/browser/chunk-3UIEB4QF.mjs +63 -0
- package/dist/browser/{chunk-CSCKZBVJ.mjs → chunk-4EWUGZYZ.mjs} +4 -4
- package/dist/browser/chunk-4WCVMOU3.mjs +151 -0
- package/dist/browser/{chunk-QJCO3TJU.mjs → chunk-56W3HQVJ.mjs} +9 -150
- package/dist/{react-native/chunks/chunk-VGUWIZFQ.mjs → browser/chunk-5TCXK5SB.mjs} +2 -2
- package/dist/browser/chunk-5W3MMTLG.mjs +19 -0
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/chunk-A5KUEGDY.mjs +241 -0
- package/dist/browser/{chunk-HT7J73QL.mjs → chunk-ABCXENU5.mjs} +2 -2
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/browser/chunk-BXM5XOCA.mjs +315 -0
- package/dist/browser/chunk-CJSYBQ4J.mjs +100 -0
- package/dist/browser/chunk-DSXIBE6N.mjs +78 -0
- package/dist/browser/chunk-ELV4OZOI.mjs +29 -0
- package/dist/{react-native/chunks/chunk-QC4ZRBSX.mjs → browser/chunk-EXQZGUQH.mjs} +2 -79
- package/dist/browser/{chunk-2A2IPRC3.mjs → chunk-FNIFPFB7.mjs} +5 -31
- package/dist/browser/chunk-G64Q6OJF.mjs +96 -0
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/chunk-IKDKX5VQ.mjs +1007 -0
- package/dist/browser/chunk-JIJXMI42.mjs +1829 -0
- package/dist/browser/chunk-JVBP5EYO.mjs +1106 -0
- package/dist/browser/{chunk-TQ5UMFG5.mjs → chunk-K4GCSZLI.mjs} +15 -6
- package/dist/browser/{chunk-PM4MUM5N.mjs → chunk-K5AXJBLL.mjs} +6 -5
- package/dist/browser/chunk-KKAMCABR.mjs +432 -0
- package/dist/browser/{chunk-IAXZAVYL.mjs → chunk-LFIWRCEA.mjs} +1 -159
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/chunk-ML7THVLJ.mjs +38 -0
- package/dist/browser/chunk-NLWTBAGB.mjs +111 -0
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/browser/{chunk-MPK76GVS.mjs → chunk-RA6LSBCM.mjs} +1 -21
- package/dist/browser/{chunk-GJKXW3SF.mjs → chunk-RND5CLX3.mjs} +147 -253
- package/dist/{react-native/chunks/chunk-DFQJ4IJB.mjs → browser/chunk-RQBUNZQW.mjs} +2 -2
- package/dist/browser/{chunk-VD7JEUIR.mjs → chunk-RRO3EV4C.mjs} +9 -8
- package/dist/browser/{chunk-KWYQ6KX4.mjs → chunk-SMEQ36NT.mjs} +162 -2019
- package/dist/{chunk-MDF6PDIA.mjs → browser/chunk-SRMZXJSL.mjs} +8 -1
- package/dist/browser/{chunk-7ZJTRUVW.mjs → chunk-SUDNZKPL.mjs} +2 -2
- package/dist/browser/{chunk-LURXVCHG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/chunk-VI7BQR4U.mjs +21 -0
- package/dist/browser/{chunk-B3JM6Z74.mjs → chunk-XY4VVBBO.mjs} +3 -2
- package/dist/browser/chunk-YJHGOJAC.mjs +15 -0
- package/dist/browser/chunk-ZI2V4VD7.mjs +21 -0
- package/dist/browser/{cold-module-YECAK4MN.mjs → cold-module-NEUGHUPA.mjs} +21 -14
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-LM7WFL6X.mjs → durability-wiring-CVGPRO6D.mjs} +1299 -881
- package/dist/browser/engine-hooks-YXMPHZKZ.mjs +16 -0
- package/dist/browser/import-OM6QAW45.mjs +18 -0
- package/dist/browser/methods-KTQCSIN4.mjs +30 -0
- package/dist/browser/{module-XQLEOYNM.mjs → module-3HNFCBJ5.mjs} +10 -8
- package/dist/browser/{module-KAMRAJLE.mjs → module-E33X4AOK.mjs} +17 -10
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-CNKMUY4U.mjs → phrase-module-ZXXU7S3B.mjs} +1 -1
- package/dist/browser/{pool-DTYSPBMQ.mjs → pool-3JLET5RO.mjs} +3 -2
- package/dist/browser/restore-hooks-IF2ZROUP.mjs +113 -0
- package/dist/browser/restore-queue-ZBS7CJA6.mjs +55 -0
- package/dist/browser/retention-ASWUHAYI.mjs +209 -0
- package/dist/browser/{runtime-D2ULZGCN.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-UGZVMP4H.mjs → snapshot-PN7ZW6Q4.mjs} +80 -315
- package/dist/browser/start-ZIRB7MQ2.mjs +24 -0
- package/dist/browser/sync-state-P5XG6LTQ.mjs +15 -0
- package/dist/browser/{write-I5P5MW4O.mjs → write-HMDYCTV2.mjs} +17 -11
- package/dist/{capabilities-BT-HLDC8.d.ts → capabilities-Da4ywVVl.d.ts} +94 -7
- package/dist/{chunk-LDGGR7YT.mjs → chunk-2MANFZJ3.mjs} +2 -2
- package/dist/{chunk-IZT3G24Q.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/{chunk-3TVDTACC.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/chunk-3HB3PEC6.mjs +240 -0
- package/dist/chunk-3HHQLEEQ.mjs +1092 -0
- package/dist/chunk-3OH67G7R.mjs +214 -0
- package/dist/{chunk-ZS6CMXAE.mjs → chunk-3R4UZWQG.mjs} +98 -250
- package/dist/{chunk-65WCV5JO.mjs → chunk-4BYWRYPM.mjs} +1 -1
- package/dist/{chunk-SOUZMPME.mjs → chunk-4KRC2APY.mjs} +7 -194
- package/dist/{chunk-5QMHMELB.mjs → chunk-5FLRXF73.mjs} +8 -1
- package/dist/chunk-5FVU47TB.mjs +20 -0
- package/dist/chunk-5YNRKI2C.mjs +81 -0
- package/dist/chunk-6L3XJXGU.mjs +470 -0
- package/dist/chunk-6MSZ543Y.mjs +32 -0
- package/dist/{chunk-T4CJDBBE.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{chunk-3SBJVQLL.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/chunk-7GXJUJ24.mjs +49 -0
- package/dist/{chunk-FNBNZCGP.mjs → chunk-AILVAOLX.mjs} +2 -2
- package/dist/chunk-BDRIVYOK.mjs +72 -0
- package/dist/chunk-BUMREPLU.mjs +15 -0
- package/dist/chunk-BY6ZDGYS.mjs +50 -0
- package/dist/{chunk-5WB2A3XU.mjs → chunk-DCNKVEDB.mjs} +511 -27
- package/dist/{chunk-NITCPDFL.mjs → chunk-DIBHI6W5.mjs} +2 -2
- package/dist/{chunk-4QCSHLNM.mjs → chunk-DUOLGBTE.mjs} +3 -3
- package/dist/chunk-GES7U2PM.mjs +68 -0
- package/dist/chunk-GH4WQ22V.mjs +34 -0
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/chunk-H4KHPLHJ.mjs +382 -0
- package/dist/{chunk-7TE2AJIH.mjs → chunk-H6VIGE62.mjs} +13 -10
- package/dist/{chunk-J7M73VY7.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-DGRM4EZZ.mjs → chunk-HNVVEQP7.mjs} +1 -1
- package/dist/{chunk-RBEHLIKX.mjs → chunk-HW5TNXBO.mjs} +35 -11
- package/dist/{chunk-KYVRZAYP.mjs → chunk-I54T6CQP.mjs} +2 -69
- package/dist/{chunk-IRWP524D.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/chunk-IPN7S4KX.mjs +130 -0
- package/dist/{chunk-CSHHU7PA.mjs → chunk-J4IWBIVY.mjs} +11 -30
- package/dist/{chunk-G5KHSM6E.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-6RKSY3BX.mjs → chunk-KBDBPVLN.mjs} +5 -5
- package/dist/{chunk-J4BDAH2W.mjs → chunk-KBKEXQZA.mjs} +2 -2
- package/dist/{chunk-IJSFWGVW.mjs → chunk-KFLK5NA2.mjs} +3 -3
- package/dist/{chunk-YGQOPB2Z.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/chunk-KJ3RTZDJ.mjs +101 -0
- package/dist/{chunk-2PNYKG2D.mjs → chunk-KMUNHGBQ.mjs} +139 -432
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-VP6XRMWR.mjs → chunk-KPIV4RUC.mjs} +6 -32
- package/dist/{chunk-NPXVQS33.mjs → chunk-KXCVQWOR.mjs} +4 -3
- package/dist/chunk-KYYABCSW.mjs +72 -0
- package/dist/{chunk-6F6USYII.mjs → chunk-L7ZD4L3K.mjs} +267 -265
- package/dist/{chunk-U46IZNCW.mjs → chunk-LC3FDWTX.mjs} +3 -2
- package/dist/{chunk-6BWLDLS3.mjs → chunk-LHKOSI2J.mjs} +1 -1
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/{react-native/chunks/chunk-YH7W556M.mjs → chunk-MP7ABPTD.mjs} +12 -2
- package/dist/chunk-MT2NRTA6.mjs +216 -0
- package/dist/chunk-NF4DT3IH.mjs +85 -0
- package/dist/{chunk-POUYICOU.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/{chunk-SEAJS664.mjs → chunk-PCRA7HTI.mjs} +5 -5
- package/dist/chunk-PHQNACDT.mjs +63 -0
- package/dist/chunk-Q622CTMC.mjs +74 -0
- package/dist/{chunk-NVTFQFUL.mjs → chunk-Q7G3BV3Y.mjs} +1 -1
- package/dist/chunk-QDZJM7NI.mjs +23 -0
- package/dist/{chunk-52QQWEBS.mjs → chunk-QH3YIQP4.mjs} +36 -7
- package/dist/chunk-QJVOLKU6.mjs +111 -0
- package/dist/chunk-QUJHMPTP.mjs +30 -0
- package/dist/{chunk-3E4RRF5J.mjs → chunk-RSVULW4Q.mjs} +100 -8
- package/dist/{chunk-IJPK5PGM.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/chunk-RZWWB2XR.mjs +96 -0
- package/dist/{chunk-KQJVNPRM.mjs → chunk-S2EQU2GE.mjs} +19 -16
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/{chunk-LJ4ENXOD.mjs → chunk-SG3JBNHY.mjs} +2 -2
- package/dist/{chunk-B2FTZNNF.mjs → chunk-SMVH6JBE.mjs} +34 -14
- package/dist/chunk-SY3EWKQY.mjs +242 -0
- package/dist/{chunk-NYSONUB7.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-ZHAXP7SD.mjs → chunk-U4BS74YN.mjs} +26 -238
- package/dist/chunk-UHICS3JI.mjs +83 -0
- package/dist/chunk-UZRZKNNZ.mjs +101 -0
- package/dist/chunk-V6EUBAIT.mjs +19 -0
- package/dist/{chunk-TTCKT2RT.mjs → chunk-VGF7CFRP.mjs} +134 -11
- package/dist/chunk-VHBNF4MA.mjs +543 -0
- package/dist/{chunk-AWNHDBKV.mjs → chunk-VQEUR6T6.mjs} +16 -8
- package/dist/chunk-WQRN64Q6.mjs +196 -0
- package/dist/{chunk-DMNPYF54.mjs → chunk-WZ7YV54N.mjs} +2 -2
- package/dist/chunk-Y4WPNHMC.mjs +50 -0
- package/dist/{chunk-2HJWQPR6.mjs → chunk-YEDIDCR7.mjs} +6 -122
- package/dist/chunk-YEKL4JBK.mjs +96 -0
- package/dist/{chunk-UGVUW27S.mjs → chunk-Z2BE2MAM.mjs} +14 -10
- package/dist/{chunk-3HV7M5OJ.mjs → chunk-ZAUJFLEN.mjs} +11 -135
- package/dist/{chunk-FDG4KXX5.mjs → chunk-ZHCUZZE5.mjs} +6 -4
- package/dist/chunk-ZTW5WTGG.mjs +167 -0
- package/dist/chunk-ZYAY26KG.mjs +29 -0
- package/dist/{client-Cn3gNxUU.d.ts → client-DRv7UVeY.d.ts} +193 -11
- package/dist/client.d.ts +9 -7
- package/dist/client.mjs +120 -7
- package/dist/{cold-module-PYSSBIL7.mjs → cold-module-7XXCEGTZ.mjs} +43 -33
- package/dist/config-CoSig5Ox.d.ts +482 -0
- package/dist/{config-CfhH1IWQ.d.ts → config-DMwffLKn.d.ts} +20 -5
- package/dist/{direct-executor-WYALQSMD.mjs → direct-executor-G5TK7NLA.mjs} +18 -13
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +4 -4
- package/dist/distribution/transport/in-memory.mjs +2 -2
- package/dist/distribution/transport/tcp.mjs +3 -3
- package/dist/distribution.d.ts +41 -9
- package/dist/distribution.mjs +9304 -7271
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-7VBZEJLG.mjs → durability-wiring-NCKUC5EO.mjs} +1293 -872
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{config-aIsy7mcL.d.ts → engine-CFxPYqEk.d.ts} +716 -407
- package/dist/engine-hooks-DHCMOADY.mjs +47 -0
- package/dist/{import-GJOMB2HC.mjs → import-NBFXFCSG.mjs} +32 -24
- package/dist/{index-MsF7e5hL.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +9 -4
- package/dist/index.d.ts +7 -6
- package/dist/index.mjs +29 -21
- package/dist/index.react-native.mjs +19 -12
- package/dist/{long-query-thread-SCUE62TO.mjs → long-query-thread-J4DVRM4A.mjs} +33 -19
- package/dist/methods-7IOINERF.mjs +30 -0
- package/dist/{module-6RLIKSZQ.mjs → module-DWKPBSMN.mjs} +38 -28
- package/dist/{module-AVQEIB7O.mjs → module-UN76TF7I.mjs} +14 -14
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-KGRW366Y.mjs → paged-partition-archive-DPNWVSK2.mjs} +46 -31
- package/dist/partial-words.mjs +7 -5
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +16 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +40 -29
- package/dist/{phrase-module-OUQIRUQU.mjs → phrase-module-ZI4WSQVH.mjs} +1 -1
- package/dist/{pool-UPV5PVPY.mjs → pool-Y4A46T36.mjs} +2 -2
- package/dist/query-suggestions/merge-worker.d.ts +55 -0
- package/dist/query-suggestions/merge-worker.mjs +81 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +246 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +62 -0
- package/dist/react-native/chunks/{analysis-change-DXPZRGWF.mjs → analysis-change-6BPDPH6K.mjs} +50 -19
- package/dist/{browser/analysis-change-entry-JL5U2N3Q.mjs → react-native/chunks/analysis-change-entry-JLL42PH6.mjs} +1 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
- package/dist/react-native/chunks/chunk-3JIBF3XT.mjs +191 -0
- package/dist/react-native/chunks/chunk-3NQOVO3K.mjs +1 -0
- package/dist/react-native/chunks/{chunk-UFNCLEQM.mjs → chunk-4DII3ZSM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-BRNAVOKP.mjs → chunk-4J74WHQM.mjs} +2 -2
- package/dist/react-native/chunks/chunk-4LCEN2IU.mjs +315 -0
- package/dist/react-native/chunks/{chunk-PU55IOG4.mjs → chunk-4Y53T4YE.mjs} +6 -190
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +17 -0
- package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +9 -0
- package/dist/react-native/chunks/chunk-6WA3C3DV.mjs +85 -0
- package/dist/react-native/chunks/chunk-7GRCBBME.mjs +63 -0
- package/dist/react-native/chunks/{chunk-2J2727V4.mjs → chunk-7PXRWYUU.mjs} +1 -1
- package/dist/{browser/chunk-VBX2TI5V.mjs → react-native/chunks/chunk-ALOIBXWN.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-FS7BYE23.mjs → chunk-C3PTWYKT.mjs} +10 -153
- package/dist/react-native/chunks/{chunk-DKJTZ625.mjs → chunk-C5G6TJ7A.mjs} +2 -69
- package/dist/react-native/chunks/chunk-CHPTFFJM.mjs +43 -0
- package/dist/react-native/chunks/{chunk-LRGWK367.mjs → chunk-CKNRFDTZ.mjs} +1 -1
- package/dist/react-native/chunks/chunk-CUH5F57W.mjs +242 -0
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/{browser/chunk-55WYRLDZ.mjs → react-native/chunks/chunk-DVDX4SDR.mjs} +2 -2
- package/dist/{browser/chunk-PIS7ZAP7.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +12 -2
- package/dist/react-native/chunks/{chunk-KOCTCUXW.mjs → chunk-EIOYM5TO.mjs} +17 -9
- package/dist/react-native/chunks/chunk-F753DA54.mjs +23 -0
- package/dist/react-native/chunks/chunk-GIZTJXYW.mjs +1007 -0
- package/dist/react-native/chunks/{chunk-CLE3LZ77.mjs → chunk-GJFXPHXI.mjs} +5 -4
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-IDFMNRIC.mjs → chunk-HUOYZJ3Q.mjs} +140 -430
- package/dist/react-native/chunks/chunk-IYNT75CE.mjs +111 -0
- package/dist/react-native/chunks/chunk-JDOEEMEF.mjs +38 -0
- package/dist/react-native/chunks/{chunk-LQAKO5QV.mjs → chunk-JLIIWJUV.mjs} +2 -2
- package/dist/react-native/chunks/chunk-JWUCMVRK.mjs +15 -0
- package/dist/react-native/chunks/chunk-KJIG57UD.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-KLZGAOLT.mjs → chunk-KTTAU63H.mjs} +5 -5
- package/dist/react-native/chunks/chunk-LU3Y3P63.mjs +68 -0
- package/dist/{browser/chunk-NVEJJP4R.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +2 -79
- package/dist/react-native/chunks/{chunk-3CTWSQRW.mjs → chunk-MJDQU5MW.mjs} +4 -30
- package/dist/react-native/chunks/{chunk-NFGBOI46.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-D7LFYPYI.mjs → chunk-N2WUOWLL.mjs} +12 -10
- package/dist/react-native/chunks/chunk-NVVRSRX5.mjs +78 -0
- package/dist/react-native/chunks/{chunk-JYL35A4A.mjs → chunk-OL3WDV53.mjs} +7 -33
- package/dist/react-native/chunks/chunk-PB2YXVQW.mjs +29 -0
- package/dist/react-native/chunks/{chunk-UCJU6WNH.mjs → chunk-PEHS2UO3.mjs} +7 -6
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/chunk-Q32DDFKX.mjs +19 -0
- package/dist/react-native/chunks/chunk-QJXTNPLQ.mjs +100 -0
- package/dist/react-native/chunks/{chunk-ZCKNBPQ4.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/chunk-SUPXRTMD.mjs +96 -0
- package/dist/react-native/chunks/chunk-TYIRMPD3.mjs +432 -0
- package/dist/react-native/chunks/{chunk-TLYD7IJ2.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/chunk-UNUFZ2QY.mjs +68 -0
- package/dist/react-native/chunks/{chunk-7IQR3SZO.mjs → chunk-VXGE4ZXL.mjs} +151 -257
- package/dist/react-native/chunks/{chunk-R4OPUZQ5.mjs → chunk-WBYQRHDY.mjs} +2 -2
- package/dist/react-native/chunks/chunk-YH7QY657.mjs +288 -0
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-KFGEWYEL.mjs → cold-module-5PHF6DZR.mjs} +31 -22
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-QKJB2QBT.mjs → durability-wiring-KO565FZC.mjs} +1309 -889
- package/dist/react-native/chunks/engine-hooks-MVRRHH6B.mjs +28 -0
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
- package/dist/react-native/chunks/import-YVZA4V4V.mjs +30 -0
- package/dist/react-native/chunks/methods-6W5U4C3H.mjs +30 -0
- package/dist/react-native/chunks/{module-UJ5VUARS.mjs → module-H5MVPSP2.mjs} +13 -11
- package/dist/react-native/chunks/module-ZL5ZG6YB.mjs +34 -0
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-76UAPPSG.mjs → phrase-module-RTVKEWJT.mjs} +1 -1
- package/dist/react-native/chunks/{pool-CD4ANYUI.mjs → pool-JR3NJCAF.mjs} +3 -2
- package/dist/react-native/chunks/restore-hooks-SILFPU6B.mjs +125 -0
- package/dist/react-native/chunks/restore-queue-HSYP2AEC.mjs +55 -0
- package/dist/react-native/chunks/retention-7I7UAWYK.mjs +221 -0
- package/dist/react-native/chunks/{runtime-3MCDLJAF.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-KVBD4LRC.mjs → snapshot-EZYB6SLF.mjs} +90 -323
- package/dist/react-native/chunks/start-SHVZ72I5.mjs +36 -0
- package/dist/react-native/chunks/sync-state-PASCIHHT.mjs +15 -0
- package/dist/react-native/chunks/{write-ES5A3WUA.mjs → write-JUESXHDL.mjs} +27 -19
- package/dist/react-native/partial-words.mjs +8 -5
- package/dist/react-native/pattern.mjs +4 -3
- package/dist/react-native/query-suggestions.mjs +258 -0
- package/dist/react-native/sync.mjs +2299 -0
- package/dist/react-native/synonyms.mjs +7 -4
- package/dist/react.d.ts +11 -10
- package/dist/react.mjs +8 -1
- package/dist/{rerank-3W54N6P2.mjs → rerank-MQ37IYRV.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-hooks-HZ3ILAMO.mjs +146 -0
- package/dist/restore-queue-JVGENGGE.mjs +55 -0
- package/dist/retention-HROPV2QU.mjs +59 -0
- package/dist/{runtime-L2DZYY6N.mjs → runtime-COIUORCN.mjs} +5 -5
- package/dist/{schema-D33CyXCy.d.ts → schema-Jwt928nJ.d.ts} +1 -1
- package/dist/server.d.ts +119 -20
- package/dist/server.mjs +1123 -58
- package/dist/{snapshot-WMX6JCLP.mjs → snapshot-4HS2G2UM.mjs} +106 -49
- package/dist/start-UTWHGH42.mjs +59 -0
- package/dist/sync/filesystem.d.ts +30 -0
- package/dist/sync/filesystem.mjs +271 -0
- package/dist/sync/indexeddb.d.ts +30 -0
- package/dist/sync/indexeddb.mjs +237 -0
- package/dist/sync-state-ZWHLAFLE.mjs +15 -0
- package/dist/sync.browser.mjs +2294 -0
- package/dist/sync.d.ts +23 -0
- package/dist/sync.mjs +2268 -0
- package/dist/synonyms.mjs +6 -4
- package/dist/{tasks-C4ElXr4P.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/thread-6MOXY2KD.mjs +45 -0
- package/dist/types-BZCGjfLn.d.ts +227 -0
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +7 -7
- package/dist/workers/entry.mjs +8 -8
- package/dist/{write-SKJ6HW7O.mjs → write-GTTWWRRG.mjs} +36 -28
- package/openapi.json +912 -5
- package/package.json +45 -8
- package/dist/browser/import-QOY6ZH6X.mjs +0 -12
- package/dist/browser/restore-queue-UQ6AAUVX.mjs +0 -41
- package/dist/chunk-7LDMWKP6.mjs +0 -209
- package/dist/engine-CJRUHXgf.d.ts +0 -664
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +0 -110
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
- package/dist/react-native/chunks/gzip.react-native-7JWCLVOB.mjs +0 -3
- package/dist/react-native/chunks/import-XFBCCENV.mjs +0 -22
- package/dist/react-native/chunks/module-FHJ2GOBI.mjs +0 -25
- package/dist/react-native/chunks/restore-queue-H5VCN453.mjs +0 -41
- package/dist/restore-queue-AOF5OTQV.mjs +0 -41
- package/dist/thread-I7DVHHW7.mjs +0 -31
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { encodeJson, SYNC_CLOSE_SERVER_ERROR, SYNC_SUBPROTOCOL } from './chunk-KYYABCSW.mjs';
|
|
2
|
+
import { answerRefusalOf } from './chunk-2MANFZJ3.mjs';
|
|
3
|
+
import { archiveRange } from './chunk-Q622CTMC.mjs';
|
|
2
4
|
import { nativeSearchCoreIsEnabled } from './chunk-DJHHF2L5.mjs';
|
|
3
|
-
import { readRecentMemoryFigures, readMemoryFigures } from './chunk-
|
|
5
|
+
import { readRecentMemoryFigures, readMemoryFigures } from './chunk-L7ZD4L3K.mjs';
|
|
4
6
|
import { DEFAULT_RERANK_WINDOW } from './chunk-HJSN7UYG.mjs';
|
|
5
7
|
import { collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, reportRefusalAfterCollection, reservedHeapBytes, admitHeapBytes } from './chunk-XIHUI4KB.mjs';
|
|
6
8
|
import { ANALYSIS_CHANGE_MEMBERS } from './chunk-EEBCDP36.mjs';
|
|
7
|
-
import {
|
|
8
|
-
import { loadNativeCore } from './chunk-NVTFQFUL.mjs';
|
|
9
|
-
import { MAX_FILTER_DEPTH } from './chunk-U46IZNCW.mjs';
|
|
9
|
+
import { MAX_FILTER_DEPTH } from './chunk-LC3FDWTX.mjs';
|
|
10
10
|
import { MAX_SORT_FIELDS } from './chunk-FQBFZAWG.mjs';
|
|
11
|
-
import {
|
|
11
|
+
import { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-ZXNQEW43.mjs';
|
|
12
|
+
import { loadNativeCore } from './chunk-Q7G3BV3Y.mjs';
|
|
13
|
+
import { NarsilError, ServerErrorCodes, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
12
14
|
import { randomUUID } from 'crypto';
|
|
13
15
|
import { mkdtemp, open, rm } from 'fs/promises';
|
|
14
16
|
import { tmpdir } from 'os';
|
|
@@ -228,6 +230,12 @@ var STATUS_BY_CODE = {
|
|
|
228
230
|
BACKUP_STORE_CLAIMED: 409,
|
|
229
231
|
BACKUP_STORE_NOT_CONFIGURED: 501,
|
|
230
232
|
BACKUP_NOT_READY: 503,
|
|
233
|
+
SYNC_DURABILITY_REQUIRED: 409,
|
|
234
|
+
SYNC_BACKUP_STORE_REQUIRED: 409,
|
|
235
|
+
SYNC_NOT_READY: 503,
|
|
236
|
+
SYNC_NOT_ENABLED: 404,
|
|
237
|
+
SYNC_SNAPSHOT_PREPARING: 503,
|
|
238
|
+
QUERY_SUGGESTIONS_NOT_ENABLED: 404,
|
|
231
239
|
EMBEDDING_FAILED: 503,
|
|
232
240
|
RERANK_FAILED: 503,
|
|
233
241
|
QUERY_ROUTING_FAILED: 503,
|
|
@@ -500,23 +508,13 @@ function bodyRefusalOf(bodyBytes, kind) {
|
|
|
500
508
|
return refusal(429, bodyBytes, leastParseBytes, settled, collectedGarbage, line);
|
|
501
509
|
}
|
|
502
510
|
|
|
503
|
-
// src/json-encoding.ts
|
|
504
|
-
function toPlainNumbers(key, value) {
|
|
505
|
-
if (ArrayBuffer.isView(value) && !(value instanceof DataView)) {
|
|
506
|
-
return Array.from(value);
|
|
507
|
-
}
|
|
508
|
-
return value;
|
|
509
|
-
}
|
|
510
|
-
function encodeJson(value) {
|
|
511
|
-
return JSON.stringify(value, toPlainNumbers);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
511
|
// src/server/response.ts
|
|
515
512
|
var STATUS_TEXT = {
|
|
516
513
|
200: "200 OK",
|
|
517
514
|
201: "201 Created",
|
|
518
515
|
202: "202 Accepted",
|
|
519
516
|
204: "204 No Content",
|
|
517
|
+
206: "206 Partial Content",
|
|
520
518
|
400: "400 Bad Request",
|
|
521
519
|
401: "401 Unauthorized",
|
|
522
520
|
403: "403 Forbidden",
|
|
@@ -525,6 +523,7 @@ var STATUS_TEXT = {
|
|
|
525
523
|
409: "409 Conflict",
|
|
526
524
|
413: "413 Payload Too Large",
|
|
527
525
|
415: "415 Unsupported Media Type",
|
|
526
|
+
416: "416 Range Not Satisfiable",
|
|
528
527
|
429: "429 Too Many Requests",
|
|
529
528
|
500: "500 Internal Server Error",
|
|
530
529
|
503: "503 Service Unavailable"
|
|
@@ -560,11 +559,13 @@ function sendEncodedJson(res, payload, status = 200, abort) {
|
|
|
560
559
|
res.writeStatus(statusLine(status)).writeHeader("Content-Type", "application/json").end(payload);
|
|
561
560
|
});
|
|
562
561
|
}
|
|
563
|
-
function sendError(res, status, code, message, details) {
|
|
562
|
+
function sendError(res, status, code, message, details, headers = []) {
|
|
564
563
|
const body = { error: details ? { code, message, details } : { code, message } };
|
|
565
564
|
const payload = encodeJson(body);
|
|
566
565
|
res.cork(() => {
|
|
567
|
-
res.writeStatus(statusLine(status)).writeHeader("Content-Type", "application/json")
|
|
566
|
+
res.writeStatus(statusLine(status)).writeHeader("Content-Type", "application/json");
|
|
567
|
+
for (const [name, value] of headers) res.writeHeader(name, value);
|
|
568
|
+
res.end(payload);
|
|
568
569
|
});
|
|
569
570
|
}
|
|
570
571
|
function sendText(res, text, contentType, abort) {
|
|
@@ -633,6 +634,68 @@ function sendRelayed(res, abort, status, headers, body) {
|
|
|
633
634
|
res.end(body);
|
|
634
635
|
});
|
|
635
636
|
}
|
|
637
|
+
function writeSizedChunk(res, abort, wait, chunk, totalSize, begin) {
|
|
638
|
+
let startOffset = 0;
|
|
639
|
+
let written = true;
|
|
640
|
+
res.cork(() => {
|
|
641
|
+
begin();
|
|
642
|
+
startOffset = res.getWriteOffset();
|
|
643
|
+
written = res.tryEnd(chunk, totalSize)[0];
|
|
644
|
+
});
|
|
645
|
+
if (written || abort.aborted) return Promise.resolve();
|
|
646
|
+
return new Promise((resolve) => {
|
|
647
|
+
wait.wake = () => {
|
|
648
|
+
wait.wake = null;
|
|
649
|
+
resolve();
|
|
650
|
+
};
|
|
651
|
+
res.onWritable((offset) => {
|
|
652
|
+
if (abort.aborted) {
|
|
653
|
+
wait.wake?.();
|
|
654
|
+
return true;
|
|
655
|
+
}
|
|
656
|
+
const [retried] = res.tryEnd(chunk.subarray(offset - startOffset), totalSize);
|
|
657
|
+
if (retried) wait.wake?.();
|
|
658
|
+
return retried;
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
async function sendSizedStream(res, abort, status, headers, totalSize, chunks) {
|
|
663
|
+
let started = false;
|
|
664
|
+
const begin = () => {
|
|
665
|
+
if (started) return;
|
|
666
|
+
started = true;
|
|
667
|
+
res.writeStatus(statusLine(status));
|
|
668
|
+
for (const [key, value] of headers) res.writeHeader(key, value);
|
|
669
|
+
};
|
|
670
|
+
const wait = { wake: null };
|
|
671
|
+
abort.onAbort(() => wait.wake?.());
|
|
672
|
+
let sent = 0;
|
|
673
|
+
try {
|
|
674
|
+
for await (const chunk of chunks) {
|
|
675
|
+
if (abort.aborted) return;
|
|
676
|
+
const bounded = chunk.subarray(0, Math.max(0, totalSize - sent));
|
|
677
|
+
if (bounded.byteLength === 0) continue;
|
|
678
|
+
await writeSizedChunk(res, abort, wait, bounded, totalSize, begin);
|
|
679
|
+
sent += bounded.byteLength;
|
|
680
|
+
}
|
|
681
|
+
} catch (err) {
|
|
682
|
+
if (abort.aborted) return;
|
|
683
|
+
if (!started) throw err;
|
|
684
|
+
res.cork(() => {
|
|
685
|
+
res.close();
|
|
686
|
+
});
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
if (abort.aborted || sent === totalSize && started) return;
|
|
690
|
+
res.cork(() => {
|
|
691
|
+
if (totalSize > 0) {
|
|
692
|
+
res.close();
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
begin();
|
|
696
|
+
res.end();
|
|
697
|
+
});
|
|
698
|
+
}
|
|
636
699
|
|
|
637
700
|
// src/server/handler-utils.ts
|
|
638
701
|
function refusesParse(ctx, raw, kind) {
|
|
@@ -928,7 +991,8 @@ var TASK_TYPE_SET = {
|
|
|
928
991
|
changeAnalysis: true,
|
|
929
992
|
backup: true,
|
|
930
993
|
backupRestore: true,
|
|
931
|
-
backupDelete: true
|
|
994
|
+
backupDelete: true,
|
|
995
|
+
querySuggestionsBuild: true
|
|
932
996
|
};
|
|
933
997
|
var TASK_TYPES = Object.keys(TASK_TYPE_SET);
|
|
934
998
|
var TASK_STATUSES = ["running", "succeeded", "failed", "cancelled"];
|
|
@@ -1409,6 +1473,16 @@ function decodePathParameter(raw) {
|
|
|
1409
1473
|
return null;
|
|
1410
1474
|
}
|
|
1411
1475
|
}
|
|
1476
|
+
var NO_HEADERS = Object.freeze({});
|
|
1477
|
+
function capturedHeaders(req, names) {
|
|
1478
|
+
if (names === void 0 || names.length === 0) return NO_HEADERS;
|
|
1479
|
+
const headers = {};
|
|
1480
|
+
for (const name of names) {
|
|
1481
|
+
const value = req.getHeader(name);
|
|
1482
|
+
if (value !== "") headers[name] = value;
|
|
1483
|
+
}
|
|
1484
|
+
return headers;
|
|
1485
|
+
}
|
|
1412
1486
|
function sinkWritingAfterStatus(res, headers) {
|
|
1413
1487
|
if (headers.length === 0) return res;
|
|
1414
1488
|
const sink = {
|
|
@@ -1473,12 +1547,19 @@ function sinkWritingAfterStatus(res, headers) {
|
|
|
1473
1547
|
function isDenial(value) {
|
|
1474
1548
|
return typeof value === "object" && value !== null && "status" in value;
|
|
1475
1549
|
}
|
|
1550
|
+
function expiryOf(value) {
|
|
1551
|
+
if (typeof value !== "object" || value === null || !("expiresAt" in value)) return null;
|
|
1552
|
+
const { expiresAt } = value;
|
|
1553
|
+
return typeof expiresAt === "number" && Number.isFinite(expiresAt) ? expiresAt : void 0;
|
|
1554
|
+
}
|
|
1476
1555
|
function authorizerFor(hook) {
|
|
1477
1556
|
return async (context) => {
|
|
1478
1557
|
try {
|
|
1479
1558
|
const result = await hook(context);
|
|
1480
1559
|
if (isDenial(result)) return { allowed: false, denial: result };
|
|
1481
|
-
|
|
1560
|
+
const expiresAt = expiryOf(result);
|
|
1561
|
+
if (expiresAt === void 0) return { allowed: false, denial: null };
|
|
1562
|
+
return { allowed: true, expiresAt };
|
|
1482
1563
|
} catch {
|
|
1483
1564
|
return { allowed: false, denial: null };
|
|
1484
1565
|
}
|
|
@@ -1513,9 +1594,10 @@ function createRouteRunner(deps) {
|
|
|
1513
1594
|
}
|
|
1514
1595
|
const query = new URLSearchParams(req.getQuery() ?? "");
|
|
1515
1596
|
const contentType = req.getHeader("content-type");
|
|
1597
|
+
const requestHeaders = capturedHeaders(req, opts.headers);
|
|
1516
1598
|
const declaredBytes = needsBody ? declaredBodyBytes(req.getHeader("content-length")) : null;
|
|
1517
1599
|
let hookContext = null;
|
|
1518
|
-
if (useHook) {
|
|
1600
|
+
if (useHook || opts.capturesContext === true) {
|
|
1519
1601
|
const headers = {};
|
|
1520
1602
|
req.forEach((key, value) => {
|
|
1521
1603
|
headers[key] = value;
|
|
@@ -1546,7 +1628,7 @@ function createRouteRunner(deps) {
|
|
|
1546
1628
|
bodyRefusal = err.refusal;
|
|
1547
1629
|
return null;
|
|
1548
1630
|
}) : Promise.resolve(null);
|
|
1549
|
-
const hookPromise = hookContext !== null && authorize !== void 0 ? authorize(hookContext) : Promise.resolve({ allowed: true });
|
|
1631
|
+
const hookPromise = hookContext !== null && authorize !== void 0 ? authorize(hookContext) : Promise.resolve({ allowed: true, expiresAt: null });
|
|
1550
1632
|
const spoolPromise = opts.spoolsBody === true ? spoolBody(
|
|
1551
1633
|
res,
|
|
1552
1634
|
opts.maxBytes,
|
|
@@ -1573,7 +1655,18 @@ function createRouteRunner(deps) {
|
|
|
1573
1655
|
return;
|
|
1574
1656
|
}
|
|
1575
1657
|
try {
|
|
1576
|
-
await handler({
|
|
1658
|
+
await handler({
|
|
1659
|
+
res,
|
|
1660
|
+
params,
|
|
1661
|
+
query,
|
|
1662
|
+
contentType,
|
|
1663
|
+
rawBody,
|
|
1664
|
+
bodyRefusal,
|
|
1665
|
+
spooledBody,
|
|
1666
|
+
abort,
|
|
1667
|
+
hookContext,
|
|
1668
|
+
requestHeaders
|
|
1669
|
+
});
|
|
1577
1670
|
} catch (err) {
|
|
1578
1671
|
if (!abort.aborted) {
|
|
1579
1672
|
sendError(res, 500, ServerErrorCodes.INTERNAL_ERROR, "An unexpected error occurred");
|
|
@@ -2126,6 +2219,7 @@ function maintenanceRoutes(shared) {
|
|
|
2126
2219
|
summary: "Stream a snapshot archive of an index",
|
|
2127
2220
|
tags: ["Maintenance"],
|
|
2128
2221
|
request: null,
|
|
2222
|
+
query: "SnapshotQuery",
|
|
2129
2223
|
responses: { 200: { contentType: SNAPSHOT_ARCHIVE_CONTENT_TYPE } }
|
|
2130
2224
|
},
|
|
2131
2225
|
{
|
|
@@ -2365,6 +2459,238 @@ function sharedRouteOptions(limits) {
|
|
|
2365
2459
|
};
|
|
2366
2460
|
}
|
|
2367
2461
|
|
|
2462
|
+
// src/server/routes/query-suggestions.ts
|
|
2463
|
+
function querySuggestionRoutes(shared) {
|
|
2464
|
+
const { named, namedBody } = shared;
|
|
2465
|
+
return [
|
|
2466
|
+
{
|
|
2467
|
+
method: "put",
|
|
2468
|
+
path: "/indexes/:name/query-suggestions",
|
|
2469
|
+
handler: "updateQuerySuggestions",
|
|
2470
|
+
options: namedBody,
|
|
2471
|
+
operationId: "updateQuerySuggestions",
|
|
2472
|
+
summary: "Replace the popular query suggestions setting of an index",
|
|
2473
|
+
tags: ["QuerySuggestions"],
|
|
2474
|
+
request: "QuerySuggestionsSetting",
|
|
2475
|
+
responses: { 200: "OkResponse" }
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
method: "get",
|
|
2479
|
+
path: "/indexes/:name/query-suggestions",
|
|
2480
|
+
handler: "querySuggestionsStatus",
|
|
2481
|
+
options: named,
|
|
2482
|
+
operationId: "querySuggestionsStatus",
|
|
2483
|
+
summary: "Report the setting, the last build, and the next build of popular query suggestions",
|
|
2484
|
+
tags: ["QuerySuggestions"],
|
|
2485
|
+
request: null,
|
|
2486
|
+
responses: { 200: "QuerySuggestionsStatus" }
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
method: "post",
|
|
2490
|
+
path: "/indexes/:name/query-suggestions/record",
|
|
2491
|
+
handler: "recordQuery",
|
|
2492
|
+
options: { ...namedBody, capturesContext: true },
|
|
2493
|
+
operationId: "recordQuery",
|
|
2494
|
+
summary: "Count a search that a person followed with a click, for the person that the server identifies",
|
|
2495
|
+
tags: ["QuerySuggestions"],
|
|
2496
|
+
request: "RecordQueryBody",
|
|
2497
|
+
responses: { 200: "RecordQueryResult" }
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
method: "post",
|
|
2501
|
+
path: "/indexes/:name/query-suggestions/build",
|
|
2502
|
+
handler: "buildQuerySuggestions",
|
|
2503
|
+
options: named,
|
|
2504
|
+
operationId: "buildQuerySuggestions",
|
|
2505
|
+
summary: "Build the popular query suggestions of an index, as a task",
|
|
2506
|
+
tags: ["QuerySuggestions"],
|
|
2507
|
+
request: null,
|
|
2508
|
+
responses: { 202: "TaskRecord" }
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
method: "get",
|
|
2512
|
+
path: "/indexes/:name/query-suggestions/preview",
|
|
2513
|
+
handler: "previewQuerySuggestions",
|
|
2514
|
+
options: named,
|
|
2515
|
+
operationId: "previewQuerySuggestions",
|
|
2516
|
+
summary: "List the phrases that the next build would publish",
|
|
2517
|
+
tags: ["QuerySuggestions"],
|
|
2518
|
+
request: null,
|
|
2519
|
+
query: "QuerySuggestionsPreviewQuery",
|
|
2520
|
+
responses: { 200: "QuerySuggestionsPreview" }
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
method: "get",
|
|
2524
|
+
path: "/indexes/:name/query-suggestions/bans",
|
|
2525
|
+
handler: "readQueryBans",
|
|
2526
|
+
options: named,
|
|
2527
|
+
operationId: "readQueryBans",
|
|
2528
|
+
summary: "Read the ban list of popular query suggestions",
|
|
2529
|
+
tags: ["QuerySuggestions"],
|
|
2530
|
+
request: null,
|
|
2531
|
+
responses: { 200: "QueryBansBody" }
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
method: "put",
|
|
2535
|
+
path: "/indexes/:name/query-suggestions/bans",
|
|
2536
|
+
handler: "replaceQueryBans",
|
|
2537
|
+
options: namedBody,
|
|
2538
|
+
operationId: "replaceQueryBans",
|
|
2539
|
+
summary: "Replace the ban list, and remove each newly banned phrase from every suggestions index",
|
|
2540
|
+
tags: ["QuerySuggestions"],
|
|
2541
|
+
request: "QueryBansBody",
|
|
2542
|
+
responses: { 200: "QueryBansBody" }
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
method: "post",
|
|
2546
|
+
path: "/indexes/:name/query-suggestions/remove",
|
|
2547
|
+
handler: "removeQuery",
|
|
2548
|
+
options: namedBody,
|
|
2549
|
+
operationId: "removeQuery",
|
|
2550
|
+
summary: "Ban a phrase and remove it from every suggestions index of an index",
|
|
2551
|
+
tags: ["QuerySuggestions"],
|
|
2552
|
+
request: "RemoveQueryBody",
|
|
2553
|
+
responses: { 200: "RemoveQueryResponse" }
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
method: "post",
|
|
2557
|
+
path: "/indexes/:name/query-suggestions/manual",
|
|
2558
|
+
handler: "addManualSuggestion",
|
|
2559
|
+
options: namedBody,
|
|
2560
|
+
operationId: "addManualSuggestion",
|
|
2561
|
+
summary: "Add a suggestion by hand, which a build leaves in place",
|
|
2562
|
+
tags: ["QuerySuggestions"],
|
|
2563
|
+
request: "ManualQuerySuggestion",
|
|
2564
|
+
responses: { 200: "ManualSuggestionResponse" }
|
|
2565
|
+
}
|
|
2566
|
+
];
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
// src/server/sync/range.ts
|
|
2570
|
+
var WHOLE = { kind: "whole" };
|
|
2571
|
+
var UNSATISFIABLE = { kind: "unsatisfiable" };
|
|
2572
|
+
var SINGLE_BYTE_RANGE = /^bytes=(\d{0,20})-(\d{0,20})$/;
|
|
2573
|
+
function ifRangeMatches(ifRange, entityTag) {
|
|
2574
|
+
return ifRange === void 0 || ifRange.trim() === `"${entityTag}"`;
|
|
2575
|
+
}
|
|
2576
|
+
function rangeOf(range, ifRange, entityTag, length) {
|
|
2577
|
+
if (range === void 0 || !ifRangeMatches(ifRange, entityTag)) return WHOLE;
|
|
2578
|
+
const match = SINGLE_BYTE_RANGE.exec(range.trim());
|
|
2579
|
+
if (match === null) return WHOLE;
|
|
2580
|
+
const [, first, last] = match;
|
|
2581
|
+
if (first === "" && last === "") return WHOLE;
|
|
2582
|
+
if (first === "") {
|
|
2583
|
+
const suffix = Number(last);
|
|
2584
|
+
if (suffix === 0 || length === 0) return UNSATISFIABLE;
|
|
2585
|
+
return { kind: "partial", start: Math.max(0, length - suffix), endExclusive: length };
|
|
2586
|
+
}
|
|
2587
|
+
const start = Number(first);
|
|
2588
|
+
if (last !== "" && Number(last) < start) return WHOLE;
|
|
2589
|
+
if (start >= length) return UNSATISFIABLE;
|
|
2590
|
+
const endExclusive = last === "" ? length : Math.min(length, Number(last) + 1);
|
|
2591
|
+
return { kind: "partial", start, endExclusive };
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
// src/server/sync/snapshot-handler.ts
|
|
2595
|
+
var SYNC_SNAPSHOT_REQUEST_HEADERS = ["range", "if-range"];
|
|
2596
|
+
function refuseRange(ctx, length, entityTag) {
|
|
2597
|
+
ctx.res.cork(() => {
|
|
2598
|
+
ctx.res.writeStatus(statusLine(416)).writeHeader("Content-Range", `bytes */${length}`).writeHeader("ETag", `"${entityTag}"`).writeHeader("Cache-Control", "no-store").end();
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
function retryAfterSecondsOf(err) {
|
|
2602
|
+
if (!(err instanceof NarsilError) || err.code !== ErrorCodes.SYNC_SNAPSHOT_PREPARING) return null;
|
|
2603
|
+
const retryAfterMs = err.details?.retryAfterMs;
|
|
2604
|
+
return typeof retryAfterMs === "number" && retryAfterMs > 0 ? Math.ceil(retryAfterMs / 1e3) : 1;
|
|
2605
|
+
}
|
|
2606
|
+
function refuseSnapshot(ctx, err) {
|
|
2607
|
+
const retryAfterSeconds = retryAfterSecondsOf(err);
|
|
2608
|
+
if (retryAfterSeconds === null || ctx.abort.aborted) {
|
|
2609
|
+
respondError(ctx, err);
|
|
2610
|
+
return;
|
|
2611
|
+
}
|
|
2612
|
+
const { status, body } = toHttpError(err);
|
|
2613
|
+
sendError(ctx.res, status, body.code, body.message, body.details, [["Retry-After", String(retryAfterSeconds)]]);
|
|
2614
|
+
}
|
|
2615
|
+
function createSyncSnapshotHandler(serving) {
|
|
2616
|
+
return async (ctx) => {
|
|
2617
|
+
const sync = serving();
|
|
2618
|
+
if (sync === null) {
|
|
2619
|
+
sendError(ctx.res, 404, ServerErrorCodes.NOT_FOUND, "Route not found");
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
let download;
|
|
2623
|
+
try {
|
|
2624
|
+
download = await sync.snapshot(ctx.params[0]);
|
|
2625
|
+
} catch (err) {
|
|
2626
|
+
refuseSnapshot(ctx, err);
|
|
2627
|
+
return;
|
|
2628
|
+
}
|
|
2629
|
+
try {
|
|
2630
|
+
if (ctx.abort.aborted) return;
|
|
2631
|
+
const { layout, entityTag } = download;
|
|
2632
|
+
const length = layout.byteLength;
|
|
2633
|
+
const answer = rangeOf(ctx.requestHeaders.range, ctx.requestHeaders["if-range"], entityTag, length);
|
|
2634
|
+
if (answer.kind === "unsatisfiable") {
|
|
2635
|
+
refuseRange(ctx, length, entityTag);
|
|
2636
|
+
return;
|
|
2637
|
+
}
|
|
2638
|
+
const start = answer.kind === "partial" ? answer.start : 0;
|
|
2639
|
+
const endExclusive = answer.kind === "partial" ? answer.endExclusive : length;
|
|
2640
|
+
const headers = [
|
|
2641
|
+
["Content-Type", SNAPSHOT_ARCHIVE_CONTENT_TYPE],
|
|
2642
|
+
["ETag", `"${entityTag}"`],
|
|
2643
|
+
["Accept-Ranges", "bytes"],
|
|
2644
|
+
["Cache-Control", "no-store"]
|
|
2645
|
+
];
|
|
2646
|
+
if (answer.kind === "partial") headers.push(["Content-Range", `bytes ${start}-${endExclusive - 1}/${length}`]);
|
|
2647
|
+
await sendSizedStream(
|
|
2648
|
+
ctx.res,
|
|
2649
|
+
ctx.abort,
|
|
2650
|
+
answer.kind === "partial" ? 206 : 200,
|
|
2651
|
+
headers,
|
|
2652
|
+
endExclusive - start,
|
|
2653
|
+
archiveRange(layout, start, endExclusive)
|
|
2654
|
+
);
|
|
2655
|
+
} catch (err) {
|
|
2656
|
+
respondError(ctx, err);
|
|
2657
|
+
} finally {
|
|
2658
|
+
download.release();
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
// src/server/routes/sync.ts
|
|
2664
|
+
function syncRoutes(shared) {
|
|
2665
|
+
return [
|
|
2666
|
+
{
|
|
2667
|
+
method: "put",
|
|
2668
|
+
path: "/indexes/:name/sync",
|
|
2669
|
+
handler: "updateSync",
|
|
2670
|
+
options: shared.namedBody,
|
|
2671
|
+
operationId: "updateSync",
|
|
2672
|
+
summary: "Replace the device sync setting of an index",
|
|
2673
|
+
tags: ["Sync"],
|
|
2674
|
+
request: "SyncSetting",
|
|
2675
|
+
responses: { 200: "OkResponse" }
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
method: "get",
|
|
2679
|
+
path: "/indexes/:name/sync/snapshot",
|
|
2680
|
+
handler: "syncSnapshot",
|
|
2681
|
+
options: { ...shared.named, headers: SYNC_SNAPSHOT_REQUEST_HEADERS },
|
|
2682
|
+
operationId: "syncSnapshot",
|
|
2683
|
+
summary: "Download the published snapshot of an index with device sync on, whole or as one byte range",
|
|
2684
|
+
tags: ["Sync"],
|
|
2685
|
+
request: null,
|
|
2686
|
+
responses: {
|
|
2687
|
+
200: { contentType: SNAPSHOT_ARCHIVE_CONTENT_TYPE },
|
|
2688
|
+
206: { contentType: SNAPSHOT_ARCHIVE_CONTENT_TYPE }
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
];
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2368
2694
|
// src/server/routes/table.ts
|
|
2369
2695
|
function serverRoutes(limits) {
|
|
2370
2696
|
const shared = sharedRouteOptions(limits);
|
|
@@ -2374,7 +2700,9 @@ function serverRoutes(limits) {
|
|
|
2374
2700
|
...documentRoutes(shared),
|
|
2375
2701
|
...searchRoutes(shared),
|
|
2376
2702
|
...maintenanceRoutes(shared),
|
|
2377
|
-
...backupRoutes(shared)
|
|
2703
|
+
...backupRoutes(shared),
|
|
2704
|
+
...syncRoutes(shared),
|
|
2705
|
+
...querySuggestionRoutes(shared)
|
|
2378
2706
|
];
|
|
2379
2707
|
}
|
|
2380
2708
|
|
|
@@ -2415,12 +2743,146 @@ async function loadUWebSockets() {
|
|
|
2415
2743
|
} catch (err) {
|
|
2416
2744
|
throw new NarsilError(
|
|
2417
2745
|
ErrorCodes.CONFIG_INVALID,
|
|
2418
|
-
"The `uWebSockets.js` package is required to run the Narsil HTTP server. Install it with `pnpm add github:uNetworking/uWebSockets.js#v20.
|
|
2746
|
+
"The `uWebSockets.js` package is required to run the Narsil HTTP server. Install it with `pnpm add github:uNetworking/uWebSockets.js#v20.70.0` (or the npm or yarn equivalent).",
|
|
2419
2747
|
{ cause: err instanceof Error ? err.message : String(err) }
|
|
2420
2748
|
);
|
|
2421
2749
|
}
|
|
2422
2750
|
}
|
|
2423
2751
|
|
|
2752
|
+
// src/sync/feed/constants.ts
|
|
2753
|
+
var DEFAULT_FEED_WINDOW_BYTES = 8388608;
|
|
2754
|
+
var ENTRIES_MESSAGE_LIMIT_BYTES = 1048576;
|
|
2755
|
+
var DEFAULT_MAX_FEED_CONNECTIONS = 1e4;
|
|
2756
|
+
var DEFAULT_MAX_FEED_CATCH_UPS = 32;
|
|
2757
|
+
var DEFAULT_MAX_FEED_BUFFERED_BYTES = 268435456;
|
|
2758
|
+
var FEED_HEAD_RETRY_MS = 200;
|
|
2759
|
+
var TIMER_DELAY_LIMIT_MS = 2147483647;
|
|
2760
|
+
var FEED_SOCKET_MAX_PAYLOAD_BYTES = 131072;
|
|
2761
|
+
var FEED_SOCKET_MAX_BACKPRESSURE_BYTES = 1073741824;
|
|
2762
|
+
|
|
2763
|
+
// src/server/sync/feed-route.ts
|
|
2764
|
+
var SYNC_FEED_PATH = "/indexes/:name/sync/feed";
|
|
2765
|
+
function offersSubprotocol(header) {
|
|
2766
|
+
return header.split(",").some((value) => value.trim() === SYNC_SUBPROTOCOL);
|
|
2767
|
+
}
|
|
2768
|
+
function indexNameOf(raw) {
|
|
2769
|
+
if (!raw.includes("%")) return raw;
|
|
2770
|
+
try {
|
|
2771
|
+
return decodeURIComponent(raw);
|
|
2772
|
+
} catch {
|
|
2773
|
+
return null;
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
function socketOf(ws) {
|
|
2777
|
+
const data = ws.getUserData();
|
|
2778
|
+
return {
|
|
2779
|
+
send(bytes) {
|
|
2780
|
+
if (data.closed) return;
|
|
2781
|
+
ws.cork(() => {
|
|
2782
|
+
ws.send(bytes, true);
|
|
2783
|
+
});
|
|
2784
|
+
},
|
|
2785
|
+
bufferedAmount: () => data.closed ? 0 : ws.getBufferedAmount(),
|
|
2786
|
+
close(code, reason) {
|
|
2787
|
+
if (data.closed) return;
|
|
2788
|
+
data.closed = true;
|
|
2789
|
+
ws.end(code, reason);
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
function refuse(res, err) {
|
|
2794
|
+
const { status, body } = toHttpError(err);
|
|
2795
|
+
sendError(res, status, body.code, body.message, body.details);
|
|
2796
|
+
}
|
|
2797
|
+
async function upgradeFeed(gateway, res, context, indexName, handshake) {
|
|
2798
|
+
const abort = initAbortHandler(res);
|
|
2799
|
+
let authorization;
|
|
2800
|
+
try {
|
|
2801
|
+
authorization = await gateway.authorize(context);
|
|
2802
|
+
} catch {
|
|
2803
|
+
authorization = { allowed: false, denial: null };
|
|
2804
|
+
}
|
|
2805
|
+
if (abort.aborted) return;
|
|
2806
|
+
if (!authorization.allowed) {
|
|
2807
|
+
const { denial } = authorization;
|
|
2808
|
+
if (denial === null) sendError(res, 500, ServerErrorCodes.HOOK_ERROR, "The onRequest hook threw an error");
|
|
2809
|
+
else sendError(res, denial.status, denial.code, denial.message);
|
|
2810
|
+
return;
|
|
2811
|
+
}
|
|
2812
|
+
let ticket;
|
|
2813
|
+
try {
|
|
2814
|
+
ticket = await gateway.admit(indexName, authorization.expiresAt);
|
|
2815
|
+
} catch (err) {
|
|
2816
|
+
if (!abort.aborted) refuse(res, err);
|
|
2817
|
+
return;
|
|
2818
|
+
}
|
|
2819
|
+
if (abort.aborted) {
|
|
2820
|
+
ticket.cancel();
|
|
2821
|
+
return;
|
|
2822
|
+
}
|
|
2823
|
+
const userData = { ticket, endpoint: null, closed: false };
|
|
2824
|
+
res.cork(() => {
|
|
2825
|
+
res.upgrade(userData, handshake.key, SYNC_SUBPROTOCOL, handshake.extensions, handshake.socketContext);
|
|
2826
|
+
});
|
|
2827
|
+
}
|
|
2828
|
+
function registerFeedRoute(app, gateway) {
|
|
2829
|
+
app.ws(SYNC_FEED_PATH, {
|
|
2830
|
+
maxPayloadLength: FEED_SOCKET_MAX_PAYLOAD_BYTES,
|
|
2831
|
+
maxBackpressure: FEED_SOCKET_MAX_BACKPRESSURE_BYTES,
|
|
2832
|
+
upgrade(res, req, socketContext) {
|
|
2833
|
+
const rawName = req.getParameter(0) ?? "";
|
|
2834
|
+
const protocols = req.getHeader("sec-websocket-protocol");
|
|
2835
|
+
const handshake = {
|
|
2836
|
+
key: req.getHeader("sec-websocket-key"),
|
|
2837
|
+
extensions: req.getHeader("sec-websocket-extensions"),
|
|
2838
|
+
socketContext
|
|
2839
|
+
};
|
|
2840
|
+
const headers = {};
|
|
2841
|
+
req.forEach((key, value) => {
|
|
2842
|
+
headers[key] = value;
|
|
2843
|
+
});
|
|
2844
|
+
const context = {
|
|
2845
|
+
method: req.getMethod().toUpperCase(),
|
|
2846
|
+
path: req.getUrl(),
|
|
2847
|
+
headers,
|
|
2848
|
+
remoteAddress: Buffer.from(res.getRemoteAddressAsText()).toString()
|
|
2849
|
+
};
|
|
2850
|
+
const indexName = indexNameOf(rawName);
|
|
2851
|
+
if (indexName === null || !offersSubprotocol(protocols)) {
|
|
2852
|
+
res.onAborted(() => void 0);
|
|
2853
|
+
sendError(
|
|
2854
|
+
res,
|
|
2855
|
+
400,
|
|
2856
|
+
ServerErrorCodes.INVALID_REQUEST,
|
|
2857
|
+
indexName === null ? "A path segment holds a percent-escape the server cannot decode" : `The upgrade must offer the subprotocol ${SYNC_SUBPROTOCOL}`
|
|
2858
|
+
);
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2861
|
+
void upgradeFeed(gateway, res, context, indexName, handshake).catch(() => void 0);
|
|
2862
|
+
},
|
|
2863
|
+
open(ws) {
|
|
2864
|
+
const data = ws.getUserData();
|
|
2865
|
+
try {
|
|
2866
|
+
data.endpoint = data.ticket.open(socketOf(ws));
|
|
2867
|
+
} catch {
|
|
2868
|
+
data.closed = true;
|
|
2869
|
+
ws.end(SYNC_CLOSE_SERVER_ERROR, "feed unavailable");
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
message(ws, message, isBinary) {
|
|
2873
|
+
ws.getUserData().endpoint?.receive(new Uint8Array(message.slice(0)), isBinary);
|
|
2874
|
+
},
|
|
2875
|
+
drain(ws) {
|
|
2876
|
+
ws.getUserData().endpoint?.drained();
|
|
2877
|
+
},
|
|
2878
|
+
close(ws) {
|
|
2879
|
+
const data = ws.getUserData();
|
|
2880
|
+
data.closed = true;
|
|
2881
|
+
data.endpoint?.closedByPeer();
|
|
2882
|
+
}
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2424
2886
|
// src/server/request-threads/acceptor.ts
|
|
2425
2887
|
function acceptorOf(app) {
|
|
2426
2888
|
const candidate = app;
|
|
@@ -2468,6 +2930,28 @@ async function closeWhenTheProcessExits(word, close) {
|
|
|
2468
2930
|
}
|
|
2469
2931
|
}
|
|
2470
2932
|
|
|
2933
|
+
// src/server/sync/feed-messages.ts
|
|
2934
|
+
var THREAD_FEED_NOTES = /* @__PURE__ */ new Set([
|
|
2935
|
+
"feed-open",
|
|
2936
|
+
"feed-cancel",
|
|
2937
|
+
"feed-message",
|
|
2938
|
+
"feed-sent",
|
|
2939
|
+
"feed-closed"
|
|
2940
|
+
]);
|
|
2941
|
+
function typeAndFeedId(message) {
|
|
2942
|
+
if (typeof message !== "object" || message === null) return null;
|
|
2943
|
+
const { type, feedId } = message;
|
|
2944
|
+
return { type, feedId };
|
|
2945
|
+
}
|
|
2946
|
+
function isThreadFeedNote(message) {
|
|
2947
|
+
const fields = typeAndFeedId(message);
|
|
2948
|
+
return fields !== null && typeof fields.feedId === "number" && THREAD_FEED_NOTES.has(String(fields.type));
|
|
2949
|
+
}
|
|
2950
|
+
function isMainFeedNote(message) {
|
|
2951
|
+
const fields = typeAndFeedId(message);
|
|
2952
|
+
return fields !== null && typeof fields.feedId === "number" && (fields.type === "feed-send" || fields.type === "feed-close");
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2471
2955
|
// src/server/request-threads/departure.ts
|
|
2472
2956
|
var DEPARTURE_WORD = 0;
|
|
2473
2957
|
var AWAITING_DEPARTURE = 0;
|
|
@@ -2490,4 +2974,4 @@ async function departureConfirmation(word) {
|
|
|
2490
2974
|
if (waiting.async) await waiting.value;
|
|
2491
2975
|
}
|
|
2492
2976
|
|
|
2493
|
-
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_RETAINED_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_TASK_PAGE_SIZE, DOCUMENT_EXPORT_CAPABILITY, DOCUMENT_EXPORT_CONTENT_TYPE, IMPORT_FLUSHES_IN_FLIGHT, INDEX_LIFECYCLE_CAPABILITY, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, MAIN_THREAD_GATE_SLOT, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, MAX_INDEX_TOUCH_INTERVAL_MS, MAX_LONG_QUERIES_IN_FLIGHT, MIN_COUNTED_SERVER_LIMIT, MIN_UNBOUNDED_SERVER_LIMIT, PROMETHEUS_TEXT_CONTENT_TYPE, REBUILD_ANALYSIS_CAPABILITY, RELAY_STREAM_CHUNKS_IN_FLIGHT, REQUEST_THREAD_CLOSE_AT_EXIT_MS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, REQUEST_THREAD_MOVE_AFTER_MS, RUNNING_TASK_TTL_MS, SEARCH_CLOCK_SAMPLE_UNITS, SERVER_CAPABILITIES, SNAPSHOT_ARCHIVE_CONTENT_TYPE, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, TASK_PROGRESS_WRITE_INTERVAL_MS, TERMINAL_TASK_TTL_MS, acceptorOf, authorizerFor, awaitDepartureConfirmation, badRequest, childAppOf, clearBodyBudgetSlot, clearGateSlot, closeEveryThreadAtExit, closeWhenTheProcessExits, confirmDeparture, corsHeaderReader, createBodyBudgetBuffer, createCloseAtExitWords, createDepartureWord, createDocumentReadHandlers, createRouteRunner, createSharedBodyBudget, createSharedGateBuffer, createSharedRequestGate, createVersionHandler, departureConfirmation, departureConfirmed,
|
|
2977
|
+
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DEFAULT_FEED_WINDOW_BYTES, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_RETAINED_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_TASK_PAGE_SIZE, DOCUMENT_EXPORT_CAPABILITY, DOCUMENT_EXPORT_CONTENT_TYPE, ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, IMPORT_FLUSHES_IN_FLIGHT, INDEX_LIFECYCLE_CAPABILITY, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, MAIN_THREAD_GATE_SLOT, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, MAX_INDEX_TOUCH_INTERVAL_MS, MAX_LONG_QUERIES_IN_FLIGHT, MIN_COUNTED_SERVER_LIMIT, MIN_UNBOUNDED_SERVER_LIMIT, PROMETHEUS_TEXT_CONTENT_TYPE, REBUILD_ANALYSIS_CAPABILITY, RELAY_STREAM_CHUNKS_IN_FLIGHT, REQUEST_THREAD_CLOSE_AT_EXIT_MS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, REQUEST_THREAD_MOVE_AFTER_MS, RUNNING_TASK_TTL_MS, SEARCH_CLOCK_SAMPLE_UNITS, SERVER_CAPABILITIES, SNAPSHOT_ARCHIVE_CONTENT_TYPE, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, TASK_PROGRESS_WRITE_INTERVAL_MS, TERMINAL_TASK_TTL_MS, TIMER_DELAY_LIMIT_MS, acceptorOf, authorizerFor, awaitDepartureConfirmation, badRequest, childAppOf, clearBodyBudgetSlot, clearGateSlot, closeEveryThreadAtExit, closeWhenTheProcessExits, confirmDeparture, corsHeaderReader, createBodyBudgetBuffer, createCloseAtExitWords, createDepartureWord, createDocumentReadHandlers, createRouteRunner, createSharedBodyBudget, createSharedGateBuffer, createSharedRequestGate, createSyncSnapshotHandler, createVersionHandler, departureConfirmation, departureConfirmed, gateSlotOfWorker, httpStatusForNarsilError, isMainFeedNote, isRemoveOnlyBatch, isThreadFeedNote, loadUWebSockets, parseJson, parseJsonOptional, parseRefusalOf, parseTaskListQuery, parseWriteJson, refuseRegex, registerFeedRoute, registerServerRoutes, rejectInvalid, resolveCors, respondAnswer, respondError, respondJson, sendError, sendRelayed, sendStream, sendText, serializeBatchResult, serializeNarsilError, serverRoutes, statusLine, toHttpError, validateBatch, validateChangeAnalysis, validateCreateIndex, validateDocumentBody, validateQuery, validateRebalance, validateSuggest, versionReport, withServerRerankWindow };
|