@delali/narsil 0.3.1-next.152 → 0.3.1-next.154
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 +2 -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-4GCRVRBW.mjs} +27 -18
- package/dist/{react-native/chunks/analysis-change-entry-CXNRW324.mjs → analysis-change-entry-KYGSXW4K.mjs} +1 -1
- package/dist/browser/{analysis-change-2V2HZ2NY.mjs → analysis-change-IXWPXXJJ.mjs} +17 -7
- package/dist/{analysis-change-entry-QD7YNDEE.mjs → browser/analysis-change-entry-FCSHFQSS.mjs} +1 -1
- package/dist/browser/{chunk-TQ5UMFG5.mjs → chunk-2FX6ROWR.mjs} +15 -6
- package/dist/browser/{chunk-KWYQ6KX4.mjs → chunk-2SHAKW2Z.mjs} +119 -1922
- package/dist/browser/{chunk-55WYRLDZ.mjs → chunk-3U3QR5YP.mjs} +2 -2
- package/dist/browser/chunk-4PD752F6.mjs +85 -0
- package/dist/browser/chunk-5W3MMTLG.mjs +19 -0
- package/dist/browser/{chunk-IAXZAVYL.mjs → chunk-7MEYN7V6.mjs} +1 -151
- package/dist/browser/chunk-7TTWXUH6.mjs +1828 -0
- package/dist/browser/{chunk-CSCKZBVJ.mjs → chunk-AJ4HHOVT.mjs} +4 -4
- package/dist/{react-native/chunks/chunk-DFQJ4IJB.mjs → browser/chunk-AYY6PIKL.mjs} +2 -2
- package/dist/browser/{chunk-VD7JEUIR.mjs → chunk-C4KS2QNF.mjs} +9 -8
- package/dist/browser/chunk-DSXIBE6N.mjs +78 -0
- package/dist/browser/chunk-ELV4OZOI.mjs +29 -0
- package/dist/browser/{chunk-PM4MUM5N.mjs → chunk-EUNBNLKM.mjs} +6 -5
- package/dist/browser/{chunk-GJKXW3SF.mjs → chunk-G7LUMBSG.mjs} +137 -253
- package/dist/browser/{chunk-B3JM6Z74.mjs → chunk-H6QFBMVE.mjs} +3 -2
- package/dist/browser/chunk-J433A7P3.mjs +241 -0
- package/dist/browser/chunk-ML6HY7T7.mjs +96 -0
- package/dist/browser/chunk-ML7THVLJ.mjs +38 -0
- package/dist/{chunk-MDF6PDIA.mjs → browser/chunk-MYITLCHT.mjs} +7 -1
- package/dist/browser/{chunk-QJCO3TJU.mjs → chunk-QXTPSX2H.mjs} +9 -150
- package/dist/browser/{chunk-MPK76GVS.mjs → chunk-RA6LSBCM.mjs} +1 -21
- package/dist/browser/{chunk-7ZJTRUVW.mjs → chunk-SIR3LMTV.mjs} +2 -2
- package/dist/browser/{chunk-LURXVCHG.mjs → chunk-SJB6VIZG.mjs} +1 -1
- package/dist/browser/chunk-TTD27VXX.mjs +298 -0
- package/dist/browser/chunk-U2E3HMYW.mjs +151 -0
- package/dist/browser/{chunk-2A2IPRC3.mjs → chunk-VCOYGVP7.mjs} +5 -31
- package/dist/browser/chunk-VI7BQR4U.mjs +21 -0
- package/dist/browser/chunk-W5X2UFWQ.mjs +102 -0
- package/dist/browser/{chunk-HT7J73QL.mjs → chunk-XRV72TJD.mjs} +2 -2
- package/dist/browser/chunk-YJHGOJAC.mjs +15 -0
- package/dist/browser/chunk-ZI2V4VD7.mjs +21 -0
- package/dist/{react-native/chunks/chunk-QC4ZRBSX.mjs → browser/chunk-ZPTA75ZC.mjs} +2 -79
- package/dist/browser/{cold-module-YECAK4MN.mjs → cold-module-VTUGDYNY.mjs} +20 -14
- package/dist/browser/{durability-wiring-LM7WFL6X.mjs → durability-wiring-GL4A7KDV.mjs} +1886 -1364
- package/dist/browser/import-YI5GNB4H.mjs +17 -0
- package/dist/browser/methods-LMUTS7OI.mjs +30 -0
- package/dist/browser/{module-XQLEOYNM.mjs → module-EC3FYW7N.mjs} +9 -8
- package/dist/browser/{module-KAMRAJLE.mjs → module-M4JNBV6V.mjs} +16 -10
- package/dist/browser/operations-WVYLF72Q.mjs +5 -0
- package/dist/browser/{phrase-module-CNKMUY4U.mjs → phrase-module-NPYUVX75.mjs} +1 -1
- package/dist/browser/{pool-DTYSPBMQ.mjs → pool-WCGDZHJP.mjs} +3 -2
- package/dist/{restore-queue-AOF5OTQV.mjs → browser/restore-queue-TYIGDL5L.mjs} +2 -2
- package/dist/browser/retention-6QMRS5VK.mjs +207 -0
- package/dist/browser/{runtime-D2ULZGCN.mjs → runtime-3EW2AGB6.mjs} +1 -1
- package/dist/browser/{snapshot-UGZVMP4H.mjs → snapshot-DN3CRVUQ.mjs} +38 -307
- package/dist/browser/sync-state-P5XG6LTQ.mjs +15 -0
- package/dist/browser/{write-I5P5MW4O.mjs → write-WAWAFGKQ.mjs} +16 -11
- package/dist/{capabilities-BT-HLDC8.d.ts → capabilities-B3Brs1Rc.d.ts} +62 -7
- package/dist/{chunk-DGRM4EZZ.mjs → chunk-37IVJLP6.mjs} +1 -1
- package/dist/{chunk-KYVRZAYP.mjs → chunk-3A5KI24C.mjs} +2 -69
- package/dist/{chunk-POUYICOU.mjs → chunk-3OFU3NJT.mjs} +1 -1
- package/dist/{chunk-3TVDTACC.mjs → chunk-3Y3J4V2R.mjs} +1 -1
- package/dist/{chunk-FNBNZCGP.mjs → chunk-466PYR4P.mjs} +2 -2
- package/dist/{chunk-SEAJS664.mjs → chunk-4HWZV5MK.mjs} +5 -5
- package/dist/{chunk-UGVUW27S.mjs → chunk-5FUOVJKG.mjs} +13 -9
- package/dist/{chunk-ZHAXP7SD.mjs → chunk-5KGYQT6W.mjs} +6 -235
- package/dist/{chunk-NPXVQS33.mjs → chunk-62G63NMH.mjs} +4 -3
- package/dist/chunk-6MSZ543Y.mjs +32 -0
- package/dist/chunk-7GXJUJ24.mjs +49 -0
- package/dist/{chunk-3E4RRF5J.mjs → chunk-7HCZWC7B.mjs} +58 -8
- package/dist/{chunk-6RKSY3BX.mjs → chunk-7NTMUDC5.mjs} +5 -5
- package/dist/chunk-7QUGDVFC.mjs +101 -0
- package/dist/{chunk-G5KHSM6E.mjs → chunk-AO2FAYIZ.mjs} +1 -1
- package/dist/chunk-B7S6YEBP.mjs +102 -0
- package/dist/{chunk-AWNHDBKV.mjs → chunk-BPSKLCS7.mjs} +15 -7
- package/dist/chunk-BUMREPLU.mjs +15 -0
- package/dist/{chunk-T4CJDBBE.mjs → chunk-C6ASEFZI.mjs} +1 -1
- package/dist/{chunk-NITCPDFL.mjs → chunk-C73JLU4E.mjs} +2 -2
- package/dist/{chunk-NYSONUB7.mjs → chunk-CP5RRPJR.mjs} +1 -1
- package/dist/{chunk-TTCKT2RT.mjs → chunk-DMQPFLGI.mjs} +134 -11
- package/dist/{chunk-3SBJVQLL.mjs → chunk-DVWYODEB.mjs} +2 -2
- package/dist/chunk-ECX4SGX6.mjs +167 -0
- package/dist/chunk-GES7U2PM.mjs +68 -0
- package/dist/{chunk-NVTFQFUL.mjs → chunk-HVKXNBFL.mjs} +1 -1
- package/dist/chunk-HVYICDY3.mjs +214 -0
- package/dist/{chunk-3HV7M5OJ.mjs → chunk-HWEDFLB7.mjs} +9 -133
- package/dist/{chunk-52QQWEBS.mjs → chunk-IBNLW3AV.mjs} +21 -6
- package/dist/chunk-IJU7LL7D.mjs +242 -0
- package/dist/chunk-IPN7S4KX.mjs +130 -0
- package/dist/{chunk-5QMHMELB.mjs → chunk-IQ4R2I6N.mjs} +4 -1
- package/dist/chunk-JCLTESFN.mjs +96 -0
- package/dist/{chunk-J4BDAH2W.mjs → chunk-JFNKIBDT.mjs} +2 -2
- package/dist/{chunk-LDGGR7YT.mjs → chunk-K4B7OH65.mjs} +2 -2
- package/dist/{chunk-7TE2AJIH.mjs → chunk-K7KLL263.mjs} +13 -10
- package/dist/{chunk-CSHHU7PA.mjs → chunk-KCUIFVVW.mjs} +11 -30
- package/dist/{react-native/chunks/chunk-YH7W556M.mjs → chunk-KUZKUONM.mjs} +11 -2
- package/dist/chunk-KYYABCSW.mjs +72 -0
- package/dist/{chunk-B2FTZNNF.mjs → chunk-LKUE5GXS.mjs} +34 -14
- package/dist/{chunk-2PNYKG2D.mjs → chunk-LSM2YTKM.mjs} +100 -335
- package/dist/{chunk-DMNPYF54.mjs → chunk-LTUGDMV4.mjs} +2 -2
- package/dist/{chunk-FDG4KXX5.mjs → chunk-MLHNSAPK.mjs} +5 -3
- package/dist/{chunk-VP6XRMWR.mjs → chunk-MMBEANB2.mjs} +6 -32
- package/dist/{chunk-LJ4ENXOD.mjs → chunk-MMEMEUOO.mjs} +2 -2
- package/dist/{chunk-2HJWQPR6.mjs → chunk-NTZOXVUZ.mjs} +6 -122
- package/dist/{chunk-5WB2A3XU.mjs → chunk-NZMAXR2S.mjs} +397 -24
- package/dist/{chunk-IZT3G24Q.mjs → chunk-O43Z4MS6.mjs} +2 -2
- package/dist/{chunk-U46IZNCW.mjs → chunk-OKX2BBNW.mjs} +3 -2
- package/dist/{chunk-RBEHLIKX.mjs → chunk-PFKM7VNZ.mjs} +14 -8
- package/dist/chunk-PGVPE7GJ.mjs +96 -0
- package/dist/chunk-Q3TCTQCC.mjs +85 -0
- package/dist/chunk-Q7MS6P2J.mjs +74 -0
- package/dist/chunk-QDZJM7NI.mjs +23 -0
- package/dist/{chunk-ZS6CMXAE.mjs → chunk-QKZHLADX.mjs} +89 -250
- package/dist/{chunk-IJSFWGVW.mjs → chunk-REL7LFLR.mjs} +3 -3
- package/dist/chunk-RVKFI3A2.mjs +237 -0
- package/dist/chunk-S2N75OTN.mjs +83 -0
- package/dist/chunk-TRISKD4Q.mjs +50 -0
- package/dist/{chunk-6F6USYII.mjs → chunk-TV2L3BN7.mjs} +13 -11
- package/dist/{chunk-6BWLDLS3.mjs → chunk-URPCYQVJ.mjs} +1 -1
- package/dist/chunk-USR7FQRZ.mjs +34 -0
- package/dist/chunk-V6EUBAIT.mjs +19 -0
- package/dist/{chunk-SOUZMPME.mjs → chunk-VMXSVVXG.mjs} +7 -194
- package/dist/{chunk-4QCSHLNM.mjs → chunk-VREK3MYG.mjs} +3 -3
- package/dist/{chunk-YGQOPB2Z.mjs → chunk-WCBA2LVZ.mjs} +1 -1
- package/dist/{chunk-KQJVNPRM.mjs → chunk-X6NSJYQ3.mjs} +19 -16
- package/dist/chunk-Y4WPNHMC.mjs +50 -0
- package/dist/{chunk-IRWP524D.mjs → chunk-YBJDOA2T.mjs} +1 -1
- package/dist/{chunk-IJPK5PGM.mjs → chunk-YPUEV6ZC.mjs} +1 -1
- package/dist/{chunk-J7M73VY7.mjs → chunk-YROWNOMH.mjs} +1 -1
- package/dist/chunk-Z3TNWCI5.mjs +196 -0
- package/dist/{chunk-65WCV5JO.mjs → chunk-ZIFJXCKA.mjs} +1 -1
- package/dist/chunk-ZYAY26KG.mjs +29 -0
- package/dist/{client-Cn3gNxUU.d.ts → client-Df76GNKm.d.ts} +76 -6
- package/dist/client.d.ts +8 -7
- package/dist/client.mjs +56 -5
- package/dist/{cold-module-PYSSBIL7.mjs → cold-module-YLWMTTZG.mjs} +38 -28
- package/dist/{config-CfhH1IWQ.d.ts → config-05G_hy-1.d.ts} +3 -3
- package/dist/config-B8DP2VwR.d.ts +463 -0
- package/dist/{direct-executor-WYALQSMD.mjs → direct-executor-FI5GJHWX.mjs} +14 -9
- package/dist/distribution/coordinator/etcd.d.ts +11 -2
- package/dist/distribution/coordinator/etcd.mjs +268 -107
- 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 +1296 -117
- package/dist/{durability-wiring-7VBZEJLG.mjs → durability-wiring-RHLXDIVF.mjs} +1751 -1226
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-CJRUHXgf.d.ts → engine-DYu-e0oR.d.ts} +50 -40
- package/dist/{import-GJOMB2HC.mjs → import-SRBNC6TE.mjs} +27 -19
- package/dist/{index-MsF7e5hL.d.ts → index-nRqDM6uS.d.ts} +1 -1
- package/dist/index.browser.mjs +8 -4
- package/dist/index.d.ts +7 -6
- package/dist/index.mjs +24 -16
- package/dist/index.react-native.mjs +17 -11
- package/dist/{long-query-thread-SCUE62TO.mjs → long-query-thread-EMYTGSJP.mjs} +28 -15
- package/dist/methods-ABM5ELBR.mjs +30 -0
- package/dist/{module-AVQEIB7O.mjs → module-3OMJZUFT.mjs} +12 -12
- package/dist/{module-6RLIKSZQ.mjs → module-MG7JMV2U.mjs} +33 -23
- package/dist/operations-PGOAY2KS.mjs +5 -0
- package/dist/{paged-partition-archive-KGRW366Y.mjs → paged-partition-archive-UOLHOEZJ.mjs} +37 -26
- package/dist/partial-words.mjs +6 -4
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +9 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +34 -23
- package/dist/{phrase-module-OUQIRUQU.mjs → phrase-module-O3MDRQXP.mjs} +1 -1
- package/dist/{pool-UPV5PVPY.mjs → pool-CQXYPFLG.mjs} +2 -2
- package/dist/react-native/chunks/{analysis-change-DXPZRGWF.mjs → analysis-change-EAYO3Y6Q.mjs} +27 -15
- package/dist/{browser/analysis-change-entry-JL5U2N3Q.mjs → react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-D7LFYPYI.mjs → chunk-2CGSQM4O.mjs} +12 -10
- package/dist/react-native/chunks/chunk-3NQOVO3K.mjs +1 -0
- package/dist/react-native/chunks/{chunk-R4OPUZQ5.mjs → chunk-3O57C2ZO.mjs} +2 -2
- package/dist/react-native/chunks/chunk-3XKMRNRE.mjs +298 -0
- package/dist/react-native/chunks/{chunk-IDFMNRIC.mjs → chunk-63YSZOXB.mjs} +97 -333
- package/dist/react-native/chunks/{chunk-UFNCLEQM.mjs → chunk-75VWIY35.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-2J2727V4.mjs → chunk-7GWPJDOA.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-PU55IOG4.mjs → chunk-AUT7PMA4.mjs} +6 -190
- package/dist/react-native/chunks/chunk-C2H2QQFW.mjs +288 -0
- package/dist/react-native/chunks/chunk-CHPTFFJM.mjs +43 -0
- package/dist/{browser/chunk-PIS7ZAP7.mjs → react-native/chunks/chunk-CUNGPR5R.mjs} +11 -2
- package/dist/{browser/chunk-NVEJJP4R.mjs → react-native/chunks/chunk-DCKMICOB.mjs} +2 -79
- package/dist/react-native/chunks/chunk-DH3TVWWK.mjs +102 -0
- package/dist/react-native/chunks/{chunk-ZCKNBPQ4.mjs → chunk-EH5CFV6Z.mjs} +2 -2
- package/dist/react-native/chunks/chunk-F753DA54.mjs +23 -0
- package/dist/{browser/chunk-VBX2TI5V.mjs → react-native/chunks/chunk-GFYFQLJD.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-7IQR3SZO.mjs → chunk-I5PGWQJF.mjs} +142 -257
- package/dist/react-native/chunks/{chunk-NFGBOI46.mjs → chunk-IOY2SM2P.mjs} +1 -1
- package/dist/react-native/chunks/chunk-JDOEEMEF.mjs +38 -0
- package/dist/react-native/chunks/{chunk-TLYD7IJ2.mjs → chunk-JPAJWO6D.mjs} +1 -1
- package/dist/react-native/chunks/chunk-JWUCMVRK.mjs +15 -0
- package/dist/react-native/chunks/{chunk-KLZGAOLT.mjs → chunk-JX2RIAXH.mjs} +4 -4
- package/dist/react-native/chunks/chunk-LU3Y3P63.mjs +68 -0
- package/dist/react-native/chunks/{chunk-LQAKO5QV.mjs → chunk-NCJS3WIY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-BRNAVOKP.mjs → chunk-NKIZX26F.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-CLE3LZ77.mjs → chunk-NP7DD4G5.mjs} +5 -4
- package/dist/react-native/chunks/chunk-NVVRSRX5.mjs +78 -0
- package/dist/react-native/chunks/chunk-O32RB3BL.mjs +191 -0
- package/dist/react-native/chunks/{chunk-DKJTZ625.mjs → chunk-OQQVRWZ2.mjs} +2 -69
- package/dist/react-native/chunks/chunk-PB2YXVQW.mjs +29 -0
- package/dist/react-native/chunks/chunk-Q32DDFKX.mjs +19 -0
- package/dist/react-native/chunks/{chunk-LRGWK367.mjs → chunk-RVAEBN74.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-KOCTCUXW.mjs → chunk-RYMDHGL4.mjs} +16 -8
- package/dist/react-native/chunks/chunk-SJWDBRNP.mjs +85 -0
- package/dist/react-native/chunks/chunk-UNUFZ2QY.mjs +68 -0
- package/dist/react-native/chunks/chunk-UWDNZDWK.mjs +242 -0
- package/dist/react-native/chunks/{chunk-FS7BYE23.mjs → chunk-VQSKZ3EZ.mjs} +9 -152
- package/dist/react-native/chunks/{chunk-UCJU6WNH.mjs → chunk-VVFYOADG.mjs} +7 -6
- package/dist/react-native/chunks/{chunk-VGUWIZFQ.mjs → chunk-YBEW6YTR.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-JYL35A4A.mjs → chunk-YHKZSLOC.mjs} +7 -33
- package/dist/react-native/chunks/{chunk-3CTWSQRW.mjs → chunk-ZBSWRSBG.mjs} +4 -30
- package/dist/react-native/chunks/chunk-ZYDKJXQJ.mjs +96 -0
- package/dist/react-native/chunks/{cold-module-KFGEWYEL.mjs → cold-module-TJL6AFAD.mjs} +29 -21
- package/dist/react-native/chunks/{durability-wiring-QKJB2QBT.mjs → durability-wiring-RRDYJLLM.mjs} +1882 -1358
- package/dist/react-native/chunks/gzip.react-native-DNB5YNFA.mjs +3 -0
- package/dist/react-native/chunks/import-JYBMEJPQ.mjs +29 -0
- package/dist/react-native/chunks/methods-X6F36SJE.mjs +30 -0
- package/dist/react-native/chunks/module-QT5HZAY4.mjs +33 -0
- package/dist/react-native/chunks/{module-UJ5VUARS.mjs → module-S4DKSWMF.mjs} +10 -9
- package/dist/react-native/chunks/operations-RYKTSZQA.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-76UAPPSG.mjs → phrase-module-JZ37TB7N.mjs} +1 -1
- package/dist/react-native/chunks/{pool-CD4ANYUI.mjs → pool-RTGXJXPU.mjs} +3 -2
- package/dist/{browser/restore-queue-UQ6AAUVX.mjs → react-native/chunks/restore-queue-ZBVIKJWI.mjs} +2 -2
- package/dist/react-native/chunks/retention-PPCTP2VY.mjs +219 -0
- package/dist/react-native/chunks/{runtime-3MCDLJAF.mjs → runtime-KUATOLYB.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-KVBD4LRC.mjs → snapshot-ZBIEOZTZ.mjs} +47 -314
- package/dist/react-native/chunks/sync-state-PASCIHHT.mjs +15 -0
- package/dist/react-native/chunks/{write-ES5A3WUA.mjs → write-2W4FTX7J.mjs} +25 -18
- package/dist/react-native/partial-words.mjs +6 -4
- package/dist/react-native/pattern.mjs +4 -3
- package/dist/react-native/sync.mjs +2236 -0
- package/dist/react-native/synonyms.mjs +7 -4
- package/dist/react.d.ts +10 -9
- package/dist/react.mjs +7 -1
- package/dist/{rerank-3W54N6P2.mjs → rerank-IZOB6NII.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{react-native/chunks/restore-queue-H5VCN453.mjs → restore-queue-COI2GSSK.mjs} +2 -2
- package/dist/retention-55WA7GPU.mjs +58 -0
- package/dist/{runtime-L2DZYY6N.mjs → runtime-UZOC3NPY.mjs} +5 -5
- package/dist/{schema-D33CyXCy.d.ts → schema-DDauvDOv.d.ts} +1 -1
- package/dist/server.d.ts +22 -19
- package/dist/server.mjs +868 -50
- package/dist/{snapshot-WMX6JCLP.mjs → snapshot-NFX2EYN2.mjs} +62 -36
- 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/{config-aIsy7mcL.d.ts → sync-uXR7MmM7.d.ts} +53 -444
- package/dist/sync.browser.mjs +2231 -0
- package/dist/sync.d.ts +23 -0
- package/dist/sync.mjs +2206 -0
- package/dist/synonyms.mjs +5 -3
- package/dist/{tasks-C4ElXr4P.d.ts → tasks-BShx8pdK.d.ts} +4 -4
- package/dist/thread-P2G2FWM2.mjs +44 -0
- package/dist/types-SnO7_tAI.d.ts +228 -0
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +6 -6
- package/dist/workers/entry.mjs +7 -7
- package/dist/{write-SKJ6HW7O.mjs → write-FGB62BHQ.mjs} +31 -23
- package/openapi.json +119 -3
- package/package.json +28 -8
- package/dist/browser/import-QOY6ZH6X.mjs +0 -12
- package/dist/chunk-7LDMWKP6.mjs +0 -209
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +0 -110
- 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/thread-I7DVHHW7.mjs +0 -31
package/dist/synonyms.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } from './chunk-NTZOXVUZ.mjs';
|
|
2
2
|
import './chunk-X5CV2E2B.mjs';
|
|
3
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
4
|
+
import './chunk-JCLTESFN.mjs';
|
|
3
5
|
import './chunk-TGP5M5R7.mjs';
|
|
4
6
|
import './chunk-U2BKYEC7.mjs';
|
|
5
|
-
import './chunk-
|
|
7
|
+
import './chunk-ZIFJXCKA.mjs';
|
|
6
8
|
import './chunk-4UMZ7KQL.mjs';
|
|
7
|
-
import './chunk-
|
|
9
|
+
import './chunk-KUZKUONM.mjs';
|
|
8
10
|
import './chunk-R6A773WK.mjs';
|
|
9
11
|
import './chunk-YTJCGKM4.mjs';
|
|
10
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-
|
|
2
|
-
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-
|
|
3
|
-
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './
|
|
4
|
-
import { A as AnyDocument,
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-05G_hy-1.js';
|
|
2
|
+
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-nRqDM6uS.js';
|
|
3
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './sync-uXR7MmM7.js';
|
|
4
|
+
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-DDauvDOv.js';
|
|
5
5
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { closeRequestThread, searchHandler, serveRequests } from './chunk-DMQPFLGI.mjs';
|
|
2
|
+
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
+
import './chunk-NZMAXR2S.mjs';
|
|
4
|
+
import './chunk-KYYABCSW.mjs';
|
|
5
|
+
import './chunk-K4B7OH65.mjs';
|
|
6
|
+
import './chunk-Q7MS6P2J.mjs';
|
|
7
|
+
import './chunk-5KGYQT6W.mjs';
|
|
8
|
+
import './chunk-IJU7LL7D.mjs';
|
|
9
|
+
import './chunk-BUMREPLU.mjs';
|
|
10
|
+
import './chunk-AO2FAYIZ.mjs';
|
|
11
|
+
import './chunk-DJHHF2L5.mjs';
|
|
12
|
+
import './chunk-37CD3OKS.mjs';
|
|
13
|
+
import './chunk-Q3TCTQCC.mjs';
|
|
14
|
+
import './chunk-TV2L3BN7.mjs';
|
|
15
|
+
import './chunk-HJSN7UYG.mjs';
|
|
16
|
+
import './chunk-XIHUI4KB.mjs';
|
|
17
|
+
import './chunk-EEBCDP36.mjs';
|
|
18
|
+
import './chunk-HWEDFLB7.mjs';
|
|
19
|
+
import './chunk-HVYICDY3.mjs';
|
|
20
|
+
import './chunk-IPN7S4KX.mjs';
|
|
21
|
+
import './chunk-KAKQ74LS.mjs';
|
|
22
|
+
import './chunk-7GXJUJ24.mjs';
|
|
23
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
24
|
+
import './chunk-X5CV2E2B.mjs';
|
|
25
|
+
import './chunk-QYRNLLLI.mjs';
|
|
26
|
+
import './chunk-ZXNQEW43.mjs';
|
|
27
|
+
import './chunk-HVKXNBFL.mjs';
|
|
28
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
29
|
+
import './chunk-LQG5G2LY.mjs';
|
|
30
|
+
import './chunk-OKX2BBNW.mjs';
|
|
31
|
+
import './chunk-JUKYYXSP.mjs';
|
|
32
|
+
import './chunk-VMXSVVXG.mjs';
|
|
33
|
+
import './chunk-Z3TNWCI5.mjs';
|
|
34
|
+
import './chunk-FQBFZAWG.mjs';
|
|
35
|
+
import './chunk-ZIFJXCKA.mjs';
|
|
36
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
37
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
38
|
+
import './chunk-GES7U2PM.mjs';
|
|
39
|
+
import './chunk-3A5KI24C.mjs';
|
|
40
|
+
import './chunk-L5ORED7V.mjs';
|
|
41
|
+
import './chunk-U476IXKQ.mjs';
|
|
42
|
+
import './chunk-KUZKUONM.mjs';
|
|
43
|
+
import './chunk-R6A773WK.mjs';
|
|
44
|
+
import './chunk-YTJCGKM4.mjs';
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { N as NarsilError } from './sync-uXR7MmM7.js';
|
|
2
|
+
import { A as AnyDocument } from './schema-DDauvDOv.js';
|
|
3
|
+
import { N as Narsil } from './engine-DYu-e0oR.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* One local write that the device holds until the server accepts it.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
interface QueuedWrite {
|
|
11
|
+
/** The store numbers each write upwards from 1, in the order that the app made them. */
|
|
12
|
+
sequence: number;
|
|
13
|
+
/** The write changes the document with this ID. */
|
|
14
|
+
documentId: string;
|
|
15
|
+
/** This is the whole document after the write, or `null` for a remove. */
|
|
16
|
+
document: AnyDocument | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* One feed entry that the device keeps on disk until its index holds the change durably.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
interface KeptEntry {
|
|
24
|
+
/** The entry belongs to this partition of the server's index. */
|
|
25
|
+
partitionId: number;
|
|
26
|
+
/** This is the entry's sequence number in its partition. */
|
|
27
|
+
seqNo: number;
|
|
28
|
+
/** The entry changes the document with this ID. */
|
|
29
|
+
documentId: string;
|
|
30
|
+
/** This holds the MessagePack bytes of the whole document, or `null` for a remove. */
|
|
31
|
+
document: Uint8Array | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The epoch and the position that the device's copy of the index holds durably.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
interface DevicePosition {
|
|
39
|
+
/** The copy belongs to this index epoch, 32 lowercase hexadecimal digits. */
|
|
40
|
+
epoch: string;
|
|
41
|
+
/** Item `i` is the highest sequence number of partition `i` that the copy holds. */
|
|
42
|
+
seqNos: number[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The part of a snapshot download that the device has saved, so that a restart can resume it.
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
interface SavedDownload {
|
|
50
|
+
/** The saved bytes belong to the archive with this entity tag. */
|
|
51
|
+
entityTag: string;
|
|
52
|
+
/** The store holds this many bytes from the start of the archive. */
|
|
53
|
+
byteLength: number;
|
|
54
|
+
/** Reads the saved bytes from the first one. */
|
|
55
|
+
chunks(): AsyncIterable<Uint8Array>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Where a synced device keeps its queue, its kept feed entries, its position, and a snapshot download in progress.
|
|
59
|
+
*
|
|
60
|
+
* `@delali/narsil/sync/filesystem` and `@delali/narsil/sync/indexeddb` provide one each. Every method must finish its
|
|
61
|
+
* write durably before its promise resolves, because the device acts on that promise.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
interface DeviceSyncStore {
|
|
66
|
+
/** Returns the saved position, or `null` before the device holds a copy. */
|
|
67
|
+
readPosition(): Promise<DevicePosition | null>;
|
|
68
|
+
/** Saves the position, or clears it with `null`. */
|
|
69
|
+
writePosition(position: DevicePosition | null): Promise<void>;
|
|
70
|
+
/** Saves one local write at the end of the queue and returns it with its sequence number. */
|
|
71
|
+
appendWrite(write: Omit<QueuedWrite, 'sequence'>): Promise<QueuedWrite>;
|
|
72
|
+
/** Returns every queued write in sequence order. */
|
|
73
|
+
queuedWrites(): Promise<QueuedWrite[]>;
|
|
74
|
+
/** Removes the queued writes with these sequence numbers. */
|
|
75
|
+
removeWrites(sequences: readonly number[]): Promise<void>;
|
|
76
|
+
/** Saves feed entries after the ones that the store already keeps. */
|
|
77
|
+
keepEntries(entries: readonly KeptEntry[]): Promise<void>;
|
|
78
|
+
/** Returns every kept entry in the order that the store saved them. */
|
|
79
|
+
keptEntries(): Promise<KeptEntry[]>;
|
|
80
|
+
/** Removes every kept entry. */
|
|
81
|
+
clearKeptEntries(): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Saves the next bytes of a snapshot download. An `offset` of 0 starts a new download and drops the saved one, and
|
|
84
|
+
* any other `offset` must equal the saved length under the same entity tag.
|
|
85
|
+
*/
|
|
86
|
+
appendDownload(entityTag: string, offset: number, chunk: Uint8Array): Promise<void>;
|
|
87
|
+
/** Returns the saved part of a snapshot download, or `null` where the store holds none. */
|
|
88
|
+
readDownload(): Promise<SavedDownload | null>;
|
|
89
|
+
/** Removes the saved snapshot download. */
|
|
90
|
+
clearDownload(): Promise<void>;
|
|
91
|
+
/** Releases the files or the database that the store holds open. */
|
|
92
|
+
close(): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* What became of one queued write that a developer's own backend received.
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
type UploadOutcome = {
|
|
100
|
+
accepted: true;
|
|
101
|
+
} | {
|
|
102
|
+
accepted: false;
|
|
103
|
+
error: NarsilError;
|
|
104
|
+
/**
|
|
105
|
+
* The backend's copy of the document, or `null` where it holds none. The device reads the copy from the
|
|
106
|
+
* server's document routes where this is absent.
|
|
107
|
+
*/
|
|
108
|
+
serverDocument?: AnyDocument | null;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* A local write that the server refused, which the device reports once it has replaced its own copy with the
|
|
112
|
+
* server's.
|
|
113
|
+
*
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
interface RefusedWrite {
|
|
117
|
+
/** The device made this write. */
|
|
118
|
+
write: QueuedWrite;
|
|
119
|
+
/** The server refused it with this error. */
|
|
120
|
+
error: NarsilError;
|
|
121
|
+
/** The device now holds the server's copy of the document, or no document where the server holds none. */
|
|
122
|
+
serverDocument: AnyDocument | null;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* What the device has to download to replace its copy, which {@link DeviceSyncOptions.chooseSnapshotLoad} weighs.
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
interface SnapshotMemoryCheck {
|
|
130
|
+
/** The archive holds this many bytes. */
|
|
131
|
+
archiveBytes: number;
|
|
132
|
+
/** The device estimates that it needs this many bytes of heap to hold the old and the new copy together. */
|
|
133
|
+
requiredBytes: number;
|
|
134
|
+
/** The heap may grow to this many bytes. */
|
|
135
|
+
heapLimitBytes: number;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The state that {@link DeviceSync.status} reports.
|
|
139
|
+
*
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
interface DeviceSyncStatus {
|
|
143
|
+
/** `connected` while the feed is open, `connecting` between attempts, and `stopped` after {@link DeviceSync.stop}. */
|
|
144
|
+
connection: 'connected' | 'connecting' | 'stopped';
|
|
145
|
+
/** The device holds this many local writes that the server has not accepted. */
|
|
146
|
+
queuedWrites: number;
|
|
147
|
+
/** The copy holds this position, or `null` before its first snapshot. */
|
|
148
|
+
position: DevicePosition | null;
|
|
149
|
+
/** This is true while the app has chosen to keep its old copy instead of loading a new snapshot. */
|
|
150
|
+
snapshotDeferred: boolean;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The settings of {@link createDeviceSync}.
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
interface DeviceSyncOptions {
|
|
158
|
+
/** The engine on the device that holds the synced copy. */
|
|
159
|
+
engine: Narsil;
|
|
160
|
+
/** The device syncs the index with this name, which is the same on the device and on the server. */
|
|
161
|
+
indexName: string;
|
|
162
|
+
/** The server's base URL, such as `https://search.example.com`. */
|
|
163
|
+
url: string;
|
|
164
|
+
/** The device keeps its queue, its kept entries, and its position here. */
|
|
165
|
+
store: DeviceSyncStore;
|
|
166
|
+
/**
|
|
167
|
+
* Returns the credential that the device sends with each request, as a bearer token over HTTP and as a
|
|
168
|
+
* `Sec-WebSocket-Protocol` value on the feed. The device calls it again after the server closes the feed at the
|
|
169
|
+
* credential's expiry.
|
|
170
|
+
*/
|
|
171
|
+
credential?: () => string | null | Promise<string | null>;
|
|
172
|
+
/**
|
|
173
|
+
* Sends queued writes through the developer's own backend, which then decides each conflict. The device sends
|
|
174
|
+
* them through the server's document routes where this is absent.
|
|
175
|
+
*/
|
|
176
|
+
upload?: (writes: readonly QueuedWrite[]) => Promise<UploadOutcome[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Makes every change that the engine has applied to the index durable. The device saves its position only after
|
|
179
|
+
* this resolves. It defaults to a checkpoint of the index.
|
|
180
|
+
*/
|
|
181
|
+
makeDurable?: () => Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* Decides whether to drop the old copy and load a new snapshot, where the device estimates that the old and the new
|
|
184
|
+
* copy can't both fit in memory. The device drops the old copy where this is absent.
|
|
185
|
+
*/
|
|
186
|
+
chooseSnapshotLoad?: (check: SnapshotMemoryCheck) => Promise<'load' | 'keep'>;
|
|
187
|
+
/** Hears about each local write that the server refused, after the device holds the server's copy. */
|
|
188
|
+
onRefusedWrite?: (refused: RefusedWrite) => void;
|
|
189
|
+
/** Hears about each error that the device recovers from by retrying. */
|
|
190
|
+
onError?: (error: unknown) => void;
|
|
191
|
+
/**
|
|
192
|
+
* The device replays the feed while it is at most this many times the published snapshot's length behind, and it
|
|
193
|
+
* loads the snapshot otherwise. It defaults to 1.
|
|
194
|
+
*/
|
|
195
|
+
replayLimitOfSnapshot?: number;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Keeps one index on a device in step with the server, through local writes that work offline.
|
|
199
|
+
*
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
interface DeviceSync {
|
|
203
|
+
/**
|
|
204
|
+
* Saves a whole document under its ID on the device, where a search sees it at once, and queues it for the server.
|
|
205
|
+
*
|
|
206
|
+
* @param documentId - The document's ID.
|
|
207
|
+
* @param document - The whole document.
|
|
208
|
+
*/
|
|
209
|
+
put(documentId: string, document: AnyDocument): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* Removes a document on the device and queues the remove for the server. Removing a missing document succeeds.
|
|
212
|
+
*
|
|
213
|
+
* @param documentId - The document's ID.
|
|
214
|
+
*/
|
|
215
|
+
remove(documentId: string): Promise<void>;
|
|
216
|
+
/** Connects to the server and keeps reconnecting until {@link DeviceSync.stop}. */
|
|
217
|
+
start(): Promise<void>;
|
|
218
|
+
/** Closes the feed, waits for the device's own work, and leaves the store open. */
|
|
219
|
+
stop(): Promise<void>;
|
|
220
|
+
/** Loads a new snapshot that the app deferred through {@link DeviceSyncOptions.chooseSnapshotLoad}. */
|
|
221
|
+
loadSnapshot(): Promise<void>;
|
|
222
|
+
/** Resolves once the device has sent every queued write and holds every change up to the server's heads. */
|
|
223
|
+
settled(): Promise<void>;
|
|
224
|
+
/** Reports the connection, the queue, and the position. */
|
|
225
|
+
status(): DeviceSyncStatus;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type { DeviceSyncOptions as D, KeptEntry as K, QueuedWrite as Q, RefusedWrite as R, SavedDownload as S, UploadOutcome as U, DeviceSync as a, DevicePosition as b, DeviceSyncStatus as c, DeviceSyncStore as d, SnapshotMemoryCheck as e };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { openSharedVectorField, createVectorStore } from '../chunk-
|
|
1
|
+
import { openSharedVectorField, createVectorStore } from '../chunk-MMEMEUOO.mjs';
|
|
2
2
|
import '../chunk-FOCV4CBZ.mjs';
|
|
3
|
-
import { osqBitsOf, createHNSWIndex, createOsqQuantizer } from '../chunk-
|
|
4
|
-
import { osqRecordBytes } from '../chunk-37CD3OKS.mjs';
|
|
3
|
+
import { osqBitsOf, createHNSWIndex, createOsqQuantizer } from '../chunk-BPSKLCS7.mjs';
|
|
5
4
|
import '../chunk-DJHHF2L5.mjs';
|
|
5
|
+
import { osqRecordBytes } from '../chunk-37CD3OKS.mjs';
|
|
6
6
|
import '../chunk-KOKM4PQN.mjs';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-LQG5G2LY.mjs';
|
|
7
|
+
import '../chunk-HVKXNBFL.mjs';
|
|
9
8
|
import { MAX_WORKER_COPIES } from '../chunk-BTPGQC6Z.mjs';
|
|
9
|
+
import '../chunk-LQG5G2LY.mjs';
|
|
10
10
|
import '../chunk-RFBLQLLZ.mjs';
|
|
11
11
|
import '../chunk-ZXX5GZEX.mjs';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-KUZKUONM.mjs';
|
|
13
13
|
import '../chunk-R6A773WK.mjs';
|
|
14
14
|
import '../chunk-YTJCGKM4.mjs';
|
|
15
15
|
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { loadVectorCode } from '../chunk-DGRM4EZZ.mjs';
|
|
2
1
|
import { isValidWorkerAction } from '../chunk-QHPYS427.mjs';
|
|
3
2
|
import { startIdleHeapCleanup } from '../chunk-QYRNLLLI.mjs';
|
|
3
|
+
import { loadVectorCode } from '../chunk-37IVJLP6.mjs';
|
|
4
4
|
import '../chunk-ZXNQEW43.mjs';
|
|
5
5
|
import { threadSlotOfWorker } from '../chunk-RFBLQLLZ.mjs';
|
|
6
6
|
import '../chunk-L5ORED7V.mjs';
|
|
7
|
-
import { ErrorCodes, NarsilError, isNarsilError } from '../chunk-
|
|
7
|
+
import { ErrorCodes, NarsilError, isNarsilError } from '../chunk-KUZKUONM.mjs';
|
|
8
8
|
|
|
9
9
|
// src/workers/action-handler.ts
|
|
10
10
|
function buildErrorResponse(requestId, code, message, details) {
|
|
@@ -22,9 +22,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
22
22
|
await import(moduleUrl);
|
|
23
23
|
}
|
|
24
24
|
async function stopServingRequests() {
|
|
25
|
-
const { closeRequestThread } = await import('../thread-
|
|
25
|
+
const { closeRequestThread } = await import('../thread-P2G2FWM2.mjs');
|
|
26
26
|
closeRequestThread();
|
|
27
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
27
|
+
const { closeLongQueryThread } = await import('../long-query-thread-EMYTGSJP.mjs');
|
|
28
28
|
closeLongQueryThread();
|
|
29
29
|
}
|
|
30
30
|
function holdsCopies(executor) {
|
|
@@ -55,7 +55,7 @@ function createActionHandler(executor) {
|
|
|
55
55
|
if (!holdsCopies(executor)) {
|
|
56
56
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
57
57
|
}
|
|
58
|
-
const starting = import('../thread-
|
|
58
|
+
const starting = import('../thread-P2G2FWM2.mjs').then(
|
|
59
59
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
60
60
|
);
|
|
61
61
|
serving.start = starting.then(
|
|
@@ -72,7 +72,7 @@ function createActionHandler(executor) {
|
|
|
72
72
|
if (!holdsCopies(executor)) {
|
|
73
73
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
74
74
|
}
|
|
75
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
75
|
+
const { serveLongQueries } = await import('../long-query-thread-EMYTGSJP.mjs');
|
|
76
76
|
serveLongQueries(executor, action.settings);
|
|
77
77
|
servingRequests = true;
|
|
78
78
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -118,7 +118,7 @@ async function setup() {
|
|
|
118
118
|
} catch {
|
|
119
119
|
parentPort = null;
|
|
120
120
|
}
|
|
121
|
-
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-
|
|
121
|
+
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-FI5GJHWX.mjs'), loadVectorCode()]);
|
|
122
122
|
const handleAction = createActionHandler(createDirectExecutor({ threadSlot }));
|
|
123
123
|
if (parentPort) {
|
|
124
124
|
const port = parentPort;
|
|
@@ -1,46 +1,54 @@
|
|
|
1
|
-
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
2
|
-
import { encodeExactJson, encodeDocumentJson } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-4HWZV5MK.mjs';
|
|
2
|
+
import { encodeExactJson, encodeDocumentJson } from './chunk-DVWYODEB.mjs';
|
|
3
|
+
import './chunk-CP5RRPJR.mjs';
|
|
4
|
+
import './chunk-YBJDOA2T.mjs';
|
|
4
5
|
import './chunk-CZQ33DLW.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-G5KHSM6E.mjs';
|
|
6
|
+
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-AO2FAYIZ.mjs';
|
|
7
7
|
import './chunk-37CD3OKS.mjs';
|
|
8
|
-
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
9
|
-
import
|
|
10
|
-
import './chunk-
|
|
11
|
-
import { decodeStoredDocument } from './chunk-UGVUW27S.mjs';
|
|
12
|
-
import './chunk-3HV7M5OJ.mjs';
|
|
13
|
-
import './chunk-KAKQ74LS.mjs';
|
|
8
|
+
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-62G63NMH.mjs';
|
|
9
|
+
import './chunk-LSM2YTKM.mjs';
|
|
10
|
+
import './chunk-TV2L3BN7.mjs';
|
|
14
11
|
import './chunk-HJSN7UYG.mjs';
|
|
15
|
-
import './chunk-
|
|
12
|
+
import './chunk-URPCYQVJ.mjs';
|
|
16
13
|
import './chunk-XIHUI4KB.mjs';
|
|
17
|
-
import './chunk-Q2UL2TPC.mjs';
|
|
18
14
|
import './chunk-3MXV3VHR.mjs';
|
|
19
15
|
import { EXPORT_CHUNK_BYTES } from './chunk-EEBCDP36.mjs';
|
|
20
|
-
import './chunk-
|
|
16
|
+
import { decodeStoredDocument } from './chunk-5FUOVJKG.mjs';
|
|
17
|
+
import './chunk-HWEDFLB7.mjs';
|
|
18
|
+
import './chunk-USR7FQRZ.mjs';
|
|
19
|
+
import { openChecksummedEnvelope } from './chunk-HVYICDY3.mjs';
|
|
20
|
+
import './chunk-IPN7S4KX.mjs';
|
|
21
|
+
import './chunk-KAKQ74LS.mjs';
|
|
22
|
+
import './chunk-7GXJUJ24.mjs';
|
|
23
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
24
|
+
import './chunk-NTZOXVUZ.mjs';
|
|
21
25
|
import './chunk-X5CV2E2B.mjs';
|
|
26
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
27
|
+
import './chunk-JCLTESFN.mjs';
|
|
22
28
|
import './chunk-TGP5M5R7.mjs';
|
|
23
29
|
import './chunk-U2BKYEC7.mjs';
|
|
24
|
-
import './chunk-DGRM4EZZ.mjs';
|
|
25
30
|
import './chunk-QHPYS427.mjs';
|
|
26
31
|
import './chunk-QYRNLLLI.mjs';
|
|
32
|
+
import './chunk-37IVJLP6.mjs';
|
|
27
33
|
import './chunk-ZXNQEW43.mjs';
|
|
28
34
|
import './chunk-KOKM4PQN.mjs';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-LQG5G2LY.mjs';
|
|
35
|
+
import './chunk-HVKXNBFL.mjs';
|
|
31
36
|
import './chunk-BTPGQC6Z.mjs';
|
|
37
|
+
import './chunk-LQG5G2LY.mjs';
|
|
32
38
|
import './chunk-RFBLQLLZ.mjs';
|
|
33
|
-
import './chunk-
|
|
39
|
+
import './chunk-OKX2BBNW.mjs';
|
|
34
40
|
import './chunk-JUKYYXSP.mjs';
|
|
35
|
-
import './chunk-
|
|
41
|
+
import './chunk-VMXSVVXG.mjs';
|
|
42
|
+
import './chunk-Z3TNWCI5.mjs';
|
|
36
43
|
import './chunk-FQBFZAWG.mjs';
|
|
37
|
-
import './chunk-
|
|
44
|
+
import './chunk-ZIFJXCKA.mjs';
|
|
38
45
|
import './chunk-4UMZ7KQL.mjs';
|
|
39
46
|
import './chunk-ZXX5GZEX.mjs';
|
|
40
|
-
import './chunk-
|
|
47
|
+
import './chunk-GES7U2PM.mjs';
|
|
48
|
+
import './chunk-3A5KI24C.mjs';
|
|
41
49
|
import './chunk-L5ORED7V.mjs';
|
|
42
50
|
import './chunk-U476IXKQ.mjs';
|
|
43
|
-
import './chunk-
|
|
51
|
+
import './chunk-KUZKUONM.mjs';
|
|
44
52
|
import './chunk-R6A773WK.mjs';
|
|
45
53
|
import './chunk-YTJCGKM4.mjs';
|
|
46
54
|
import { decode } from '@msgpack/msgpack';
|
|
@@ -124,7 +132,7 @@ async function wholeFileVectorReads(checkpoint) {
|
|
|
124
132
|
};
|
|
125
133
|
}
|
|
126
134
|
async function* pagedDocumentLines(checkpoint) {
|
|
127
|
-
const { openFileVectorReads, pagedPartitionLines } = await import('./module-
|
|
135
|
+
const { openFileVectorReads, pagedPartitionLines } = await import('./module-MG7JMV2U.mjs');
|
|
128
136
|
const vectors = await openFileVectorReads(checkpoint, () => wholeFileVectorReads(checkpoint));
|
|
129
137
|
try {
|
|
130
138
|
for (const partition of checkpoint.manifest.partitions) {
|
package/openapi.json
CHANGED
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "Maintenance"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Sync"
|
|
33
36
|
}
|
|
34
37
|
],
|
|
35
38
|
"paths": {
|
|
@@ -2247,6 +2250,98 @@
|
|
|
2247
2250
|
}
|
|
2248
2251
|
}
|
|
2249
2252
|
}
|
|
2253
|
+
},
|
|
2254
|
+
"/indexes/{name}/sync": {
|
|
2255
|
+
"put": {
|
|
2256
|
+
"operationId": "updateSync",
|
|
2257
|
+
"summary": "Replace the device sync setting of an index",
|
|
2258
|
+
"tags": [
|
|
2259
|
+
"Sync"
|
|
2260
|
+
],
|
|
2261
|
+
"parameters": [
|
|
2262
|
+
{
|
|
2263
|
+
"name": "name",
|
|
2264
|
+
"in": "path",
|
|
2265
|
+
"required": true,
|
|
2266
|
+
"description": "The name of the index.",
|
|
2267
|
+
"schema": {
|
|
2268
|
+
"type": "string"
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
],
|
|
2272
|
+
"requestBody": {
|
|
2273
|
+
"required": true,
|
|
2274
|
+
"content": {
|
|
2275
|
+
"application/json": {
|
|
2276
|
+
"schema": {
|
|
2277
|
+
"$ref": "#/components/schemas/SyncSetting"
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"responses": {
|
|
2283
|
+
"200": {
|
|
2284
|
+
"description": "The server answered the request.",
|
|
2285
|
+
"content": {
|
|
2286
|
+
"application/json": {
|
|
2287
|
+
"schema": {
|
|
2288
|
+
"$ref": "#/components/schemas/OkResponse"
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
"default": {
|
|
2294
|
+
"$ref": "#/components/responses/Error"
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
"/indexes/{name}/sync/snapshot": {
|
|
2300
|
+
"get": {
|
|
2301
|
+
"operationId": "syncSnapshot",
|
|
2302
|
+
"summary": "Download the published snapshot of an index with device sync on, whole or as one byte range",
|
|
2303
|
+
"tags": [
|
|
2304
|
+
"Sync"
|
|
2305
|
+
],
|
|
2306
|
+
"parameters": [
|
|
2307
|
+
{
|
|
2308
|
+
"name": "name",
|
|
2309
|
+
"in": "path",
|
|
2310
|
+
"required": true,
|
|
2311
|
+
"description": "The name of the index.",
|
|
2312
|
+
"schema": {
|
|
2313
|
+
"type": "string"
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
],
|
|
2317
|
+
"responses": {
|
|
2318
|
+
"200": {
|
|
2319
|
+
"description": "The server answered the request.",
|
|
2320
|
+
"content": {
|
|
2321
|
+
"application/x-tar": {
|
|
2322
|
+
"schema": {
|
|
2323
|
+
"type": "string",
|
|
2324
|
+
"format": "binary"
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"206": {
|
|
2330
|
+
"description": "The server answered with the byte range that the request asked for.",
|
|
2331
|
+
"content": {
|
|
2332
|
+
"application/x-tar": {
|
|
2333
|
+
"schema": {
|
|
2334
|
+
"type": "string",
|
|
2335
|
+
"format": "binary"
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2340
|
+
"default": {
|
|
2341
|
+
"$ref": "#/components/responses/Error"
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2250
2345
|
}
|
|
2251
2346
|
},
|
|
2252
2347
|
"components": {
|
|
@@ -5160,6 +5255,27 @@
|
|
|
5160
5255
|
],
|
|
5161
5256
|
"description": "What Narsil.suggest returns: the indexed terms that complete a prefix, ready to offer as you-type suggestions."
|
|
5162
5257
|
},
|
|
5258
|
+
"SyncSetting": {
|
|
5259
|
+
"type": "object",
|
|
5260
|
+
"properties": {
|
|
5261
|
+
"enabled": {
|
|
5262
|
+
"type": "boolean",
|
|
5263
|
+
"description": "This turns sync on or off. Turning it on gives the index a new epoch, so every synced device loads a new copy."
|
|
5264
|
+
},
|
|
5265
|
+
"historyMaxAgeMs": {
|
|
5266
|
+
"type": "number",
|
|
5267
|
+
"description": "This is the age in milliseconds after which the server deletes a log segment from history. It defaults to 30 days."
|
|
5268
|
+
},
|
|
5269
|
+
"historyMaxBytes": {
|
|
5270
|
+
"type": "number",
|
|
5271
|
+
"description": "This is the byte count above which the server deletes the oldest log segment from history. It defaults to the length of the published snapshot."
|
|
5272
|
+
}
|
|
5273
|
+
},
|
|
5274
|
+
"required": [
|
|
5275
|
+
"enabled"
|
|
5276
|
+
],
|
|
5277
|
+
"description": "The device sync setting of one index, which SyncOperations.updateSync takes. Turn sync on only for an index whose every document belongs to one user, because every device that syncs the index receives the whole index. Create one index for each user, and leave sync off for a public index or for an index that holds the data of several users."
|
|
5278
|
+
},
|
|
5163
5279
|
"SynonymRule": {
|
|
5164
5280
|
"anyOf": [
|
|
5165
5281
|
{
|
|
@@ -5503,11 +5619,11 @@
|
|
|
5503
5619
|
},
|
|
5504
5620
|
"estimatedCompactMs": {
|
|
5505
5621
|
"type": "number",
|
|
5506
|
-
"description": "
|
|
5622
|
+
"description": "VectorMaintenanceOperations.compactVectors would take about this many milliseconds."
|
|
5507
5623
|
},
|
|
5508
5624
|
"estimatedOptimizeMs": {
|
|
5509
5625
|
"type": "number",
|
|
5510
|
-
"description": "
|
|
5626
|
+
"description": "VectorMaintenanceOperations.optimizeVectors would take about this many milliseconds."
|
|
5511
5627
|
}
|
|
5512
5628
|
},
|
|
5513
5629
|
"required": [
|
|
@@ -5521,7 +5637,7 @@
|
|
|
5521
5637
|
"estimatedCompactMs",
|
|
5522
5638
|
"estimatedOptimizeMs"
|
|
5523
5639
|
],
|
|
5524
|
-
"description": "The state of one vector field, and what maintenance would cost, as
|
|
5640
|
+
"description": "The state of one vector field, and what maintenance would cost, as VectorMaintenanceOperations.vectorMaintenanceStatus reports it. Removing a vector leaves a tombstone in the graph, and enough of them slow a search down. Read this to decide when compaction earns its cost."
|
|
5525
5641
|
},
|
|
5526
5642
|
"VectorQueryConfig": {
|
|
5527
5643
|
"type": "object",
|