@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.3.1-next.
|
|
3
|
+
"version": "0.3.1-next.154",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
|
|
6
6
|
"author": "Delali (https://sondelali.com)",
|
|
@@ -315,6 +315,26 @@
|
|
|
315
315
|
"import": "./dist/react.mjs",
|
|
316
316
|
"types": "./dist/react.d.ts"
|
|
317
317
|
},
|
|
318
|
+
"./sync": {
|
|
319
|
+
"react-native": {
|
|
320
|
+
"types": "./dist/sync.d.ts",
|
|
321
|
+
"default": "./dist/react-native/sync.mjs"
|
|
322
|
+
},
|
|
323
|
+
"browser": {
|
|
324
|
+
"import": "./dist/sync.browser.mjs",
|
|
325
|
+
"types": "./dist/sync.d.ts"
|
|
326
|
+
},
|
|
327
|
+
"import": "./dist/sync.mjs",
|
|
328
|
+
"types": "./dist/sync.d.ts"
|
|
329
|
+
},
|
|
330
|
+
"./sync/filesystem": {
|
|
331
|
+
"import": "./dist/sync/filesystem.mjs",
|
|
332
|
+
"types": "./dist/sync/filesystem.d.ts"
|
|
333
|
+
},
|
|
334
|
+
"./sync/indexeddb": {
|
|
335
|
+
"import": "./dist/sync/indexeddb.mjs",
|
|
336
|
+
"types": "./dist/sync/indexeddb.d.ts"
|
|
337
|
+
},
|
|
318
338
|
"./openapi.json": "./openapi.json"
|
|
319
339
|
},
|
|
320
340
|
"files": [
|
|
@@ -350,7 +370,7 @@
|
|
|
350
370
|
"tsup": "8.5.1",
|
|
351
371
|
"tsx": "4.21.0",
|
|
352
372
|
"typescript": "5.9.3",
|
|
353
|
-
"uWebSockets.js": "github:uNetworking/uWebSockets.js#
|
|
373
|
+
"uWebSockets.js": "github:uNetworking/uWebSockets.js#b1092c70692ddbcc87464a77da44848614f6342a",
|
|
354
374
|
"vitest": "4.0.18",
|
|
355
375
|
"wabt": "1.0.39"
|
|
356
376
|
},
|
|
@@ -383,11 +403,11 @@
|
|
|
383
403
|
}
|
|
384
404
|
},
|
|
385
405
|
"optionalDependencies": {
|
|
386
|
-
"@delali/narsil-native-darwin-arm64": "0.3.1-next.
|
|
387
|
-
"@delali/narsil-native-darwin-x64": "0.3.1-next.
|
|
388
|
-
"@delali/narsil-native-linux-arm64": "0.3.1-next.
|
|
389
|
-
"@delali/narsil-native-linux-x64": "0.3.1-next.
|
|
390
|
-
"@delali/narsil-native-win32-arm64": "0.3.1-next.
|
|
391
|
-
"@delali/narsil-native-win32-x64": "0.3.1-next.
|
|
406
|
+
"@delali/narsil-native-darwin-arm64": "0.3.1-next.154",
|
|
407
|
+
"@delali/narsil-native-darwin-x64": "0.3.1-next.154",
|
|
408
|
+
"@delali/narsil-native-linux-arm64": "0.3.1-next.154",
|
|
409
|
+
"@delali/narsil-native-linux-x64": "0.3.1-next.154",
|
|
410
|
+
"@delali/narsil-native-win32-arm64": "0.3.1-next.154",
|
|
411
|
+
"@delali/narsil-native-win32-x64": "0.3.1-next.154"
|
|
392
412
|
}
|
|
393
413
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-PM4MUM5N.mjs';
|
|
2
|
-
import './chunk-NVEJJP4R.mjs';
|
|
3
|
-
import './chunk-HT7J73QL.mjs';
|
|
4
|
-
import './chunk-KWYQ6KX4.mjs';
|
|
5
|
-
import './chunk-MPK76GVS.mjs';
|
|
6
|
-
import './chunk-JPTQZWJQ.mjs';
|
|
7
|
-
import './chunk-26A5JFT2.mjs';
|
|
8
|
-
import './chunk-IAXZAVYL.mjs';
|
|
9
|
-
import './chunk-TY7L6OXO.mjs';
|
|
10
|
-
import './chunk-4RD3AFSB.mjs';
|
|
11
|
-
import './chunk-WXLBZJMT.mjs';
|
|
12
|
-
import './chunk-PIS7ZAP7.mjs';
|
package/dist/chunk-7LDMWKP6.mjs
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { packChecksummedEnvelope } from './chunk-2PNYKG2D.mjs';
|
|
2
|
-
import { fnv1a } from './chunk-KAKQ74LS.mjs';
|
|
3
|
-
import { ErrorCodes, NarsilError } from './chunk-MDF6PDIA.mjs';
|
|
4
|
-
import { encode } from '@msgpack/msgpack';
|
|
5
|
-
|
|
6
|
-
// src/persistence/durability/segment/store.ts
|
|
7
|
-
function directoryCheckpointStore(directory) {
|
|
8
|
-
const store = {
|
|
9
|
-
read: (key) => directory.read(key),
|
|
10
|
-
write: (key, chunks) => directory.atomicWrite(key, chunks),
|
|
11
|
-
remove: (key) => directory.remove(key),
|
|
12
|
-
list: (prefix) => directory.list(prefix),
|
|
13
|
-
pathOf: (key) => directory.pathOf(key),
|
|
14
|
-
directory
|
|
15
|
-
};
|
|
16
|
-
const byteLength = directory.byteLength;
|
|
17
|
-
if (byteLength !== void 0) store.byteLength = (key) => byteLength.call(directory, key);
|
|
18
|
-
return store;
|
|
19
|
-
}
|
|
20
|
-
function joined(chunks) {
|
|
21
|
-
if (chunks.length === 1) return chunks[0];
|
|
22
|
-
let total = 0;
|
|
23
|
-
for (const chunk of chunks) total += chunk.byteLength;
|
|
24
|
-
const bytes = new Uint8Array(total);
|
|
25
|
-
let offset = 0;
|
|
26
|
-
for (const chunk of chunks) {
|
|
27
|
-
bytes.set(chunk, offset);
|
|
28
|
-
offset += chunk.byteLength;
|
|
29
|
-
}
|
|
30
|
-
return bytes;
|
|
31
|
-
}
|
|
32
|
-
function adapterFailure(code, verb, key, error) {
|
|
33
|
-
if (error instanceof NarsilError) return error;
|
|
34
|
-
const cause = error instanceof Error ? error.message : String(error);
|
|
35
|
-
return new NarsilError(code, `The persistence adapter failed to ${verb} "${key}": ${cause}`, { key, cause });
|
|
36
|
-
}
|
|
37
|
-
async function guarded(run, code, verb, key) {
|
|
38
|
-
try {
|
|
39
|
-
return await run();
|
|
40
|
-
} catch (error) {
|
|
41
|
-
throw adapterFailure(code, verb, key, error);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function adapterCheckpointStore(adapter) {
|
|
45
|
-
return {
|
|
46
|
-
read: (key) => guarded(() => adapter.load(key), ErrorCodes.PERSISTENCE_LOAD_FAILED, "load", key),
|
|
47
|
-
write: (key, chunks) => guarded(() => adapter.save(key, joined(chunks)), ErrorCodes.PERSISTENCE_SAVE_FAILED, "save", key),
|
|
48
|
-
remove: (key) => guarded(() => adapter.delete(key), ErrorCodes.PERSISTENCE_DELETE_FAILED, "delete", key),
|
|
49
|
-
list: (prefix) => guarded(() => adapter.list(prefix), ErrorCodes.PERSISTENCE_LOAD_FAILED, "list", prefix)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
async function requireListedSize(store, key, expected) {
|
|
53
|
-
const length = store.byteLength === void 0 ? void 0 : await store.byteLength(key);
|
|
54
|
-
if (length === null) missingFile(expected.what, key);
|
|
55
|
-
if (length !== void 0) requireListedLength(expected.what, key, length, expected.bytes);
|
|
56
|
-
}
|
|
57
|
-
async function readListedFile(store, key, expected) {
|
|
58
|
-
await requireListedSize(store, key, expected);
|
|
59
|
-
const bytes = await store.read(key);
|
|
60
|
-
if (bytes === null) missingFile(expected.what, key);
|
|
61
|
-
requireListedLength(expected.what, key, bytes.byteLength, expected.bytes);
|
|
62
|
-
return bytes;
|
|
63
|
-
}
|
|
64
|
-
function missingFile(what, key) {
|
|
65
|
-
throw new NarsilError(ErrorCodes.PERSISTENCE_LOAD_FAILED, `The ${what} "${key}" that the manifest lists is missing`, {
|
|
66
|
-
key
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function requireListedLength(what, key, found, listed) {
|
|
70
|
-
if (found === listed) return;
|
|
71
|
-
throw new NarsilError(
|
|
72
|
-
ErrorCodes.PERSISTENCE_LOAD_FAILED,
|
|
73
|
-
`The ${what} "${key}" holds ${found} bytes where the manifest lists ${listed}`,
|
|
74
|
-
{ key, bytes: found, listed }
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
function requireListedChecksum(what, key, found, listed) {
|
|
78
|
-
if (found === listed) return;
|
|
79
|
-
throw new NarsilError(
|
|
80
|
-
ErrorCodes.PERSISTENCE_LOAD_FAILED,
|
|
81
|
-
`The ${what} "${key}" carries checksum ${found} where the manifest lists ${listed}`,
|
|
82
|
-
{ key, checksum: found, listed }
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// src/persistence/durability/segment/layout.ts
|
|
87
|
-
var SEGMENT_ID_WIDTH = 16;
|
|
88
|
-
function manifestKey(indexName) {
|
|
89
|
-
return `${indexName}/manifest`;
|
|
90
|
-
}
|
|
91
|
-
function snapshotBundleKey(indexName) {
|
|
92
|
-
return `${indexName}/snapshot`;
|
|
93
|
-
}
|
|
94
|
-
function segmentPrefix(indexName, partitionId) {
|
|
95
|
-
return `${indexName}/segments/${partitionId}/`;
|
|
96
|
-
}
|
|
97
|
-
function segmentKey(indexName, partitionId, segmentId) {
|
|
98
|
-
return `${segmentPrefix(indexName, partitionId)}s${formatSegmentId(segmentId)}`;
|
|
99
|
-
}
|
|
100
|
-
function segmentsPrefix(indexName) {
|
|
101
|
-
return `${indexName}/segments/`;
|
|
102
|
-
}
|
|
103
|
-
function vectorFileKey(indexName, fieldPath, fileId) {
|
|
104
|
-
return `${segmentsPrefix(indexName)}vec-${encodeFieldPath(fieldPath)}-f${formatSegmentId(fileId)}`;
|
|
105
|
-
}
|
|
106
|
-
function requireGeneration(generation) {
|
|
107
|
-
if (Number.isSafeInteger(generation) && generation > 0) return;
|
|
108
|
-
throw new NarsilError(
|
|
109
|
-
ErrorCodes.PERSISTENCE_SAVE_FAILED,
|
|
110
|
-
`Vector graph generation ${generation} must be a positive integer`,
|
|
111
|
-
{ generation }
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
function graphPartKey(indexName, fieldPath, generation, part) {
|
|
115
|
-
requireGeneration(generation);
|
|
116
|
-
return `${segmentsPrefix(indexName)}vec-${encodeFieldPath(fieldPath)}-graph-g${generation}-p${formatSegmentId(part)}`;
|
|
117
|
-
}
|
|
118
|
-
function formatSegmentId(segmentId) {
|
|
119
|
-
if (!Number.isInteger(segmentId) || segmentId < 0) {
|
|
120
|
-
throw new NarsilError(
|
|
121
|
-
ErrorCodes.PERSISTENCE_SAVE_FAILED,
|
|
122
|
-
`Segment id ${segmentId} must be a non-negative integer`,
|
|
123
|
-
{ segmentId }
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
return segmentId.toString().padStart(SEGMENT_ID_WIDTH, "0");
|
|
127
|
-
}
|
|
128
|
-
var FIELD_PATH_PATTERN = /^[A-Za-z0-9_.]+$/;
|
|
129
|
-
function encodeFieldPath(fieldPath) {
|
|
130
|
-
if (!FIELD_PATH_PATTERN.test(fieldPath)) {
|
|
131
|
-
throw new NarsilError(
|
|
132
|
-
ErrorCodes.PERSISTENCE_SAVE_FAILED,
|
|
133
|
-
`Vector field path "${fieldPath}" contains characters that cannot be encoded in a segment key`,
|
|
134
|
-
{ fieldPath }
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
const fingerprint = fnv1a(fieldPath).toString(36);
|
|
138
|
-
return `${fieldPath.replace(/\./g, "_")}-${fingerprint}`;
|
|
139
|
-
}
|
|
140
|
-
var SEGMENT_MANIFEST_VERSION = 7;
|
|
141
|
-
var EARLIER_SEGMENT_MANIFEST_VERSION = 6;
|
|
142
|
-
var MANIFEST_ENVELOPE_VERSION = 2;
|
|
143
|
-
var MAX_SEGMENTS_PER_PARTITION = 65536;
|
|
144
|
-
var MAX_SEGMENT_ID = 281474976710655;
|
|
145
|
-
function fileRefOnTheWire(ref) {
|
|
146
|
-
return {
|
|
147
|
-
key: ref.key,
|
|
148
|
-
bytes: ref.bytes,
|
|
149
|
-
checksum: ref.checksum,
|
|
150
|
-
...ref.headOffset === void 0 ? {} : { headOffset: ref.headOffset, headLength: ref.headLength, headChecksum: ref.headChecksum }
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function encodeSegmentManifest(manifest) {
|
|
154
|
-
const payload = encode({
|
|
155
|
-
version: SEGMENT_MANIFEST_VERSION,
|
|
156
|
-
schema: manifest.schema,
|
|
157
|
-
language: manifest.language,
|
|
158
|
-
...manifest.analysisGeneration ? { analysisGeneration: manifest.analysisGeneration } : {},
|
|
159
|
-
checkpoint: manifest.checkpoint.map((c) => ({
|
|
160
|
-
partitionId: c.partitionId,
|
|
161
|
-
lastSeqNo: c.lastSeqNo,
|
|
162
|
-
primaryTerm: c.primaryTerm,
|
|
163
|
-
...c.termHistory === void 0 ? {} : {
|
|
164
|
-
termHistory: c.termHistory.map((start) => ({ primaryTerm: start.primaryTerm, firstSeqNo: start.firstSeqNo }))
|
|
165
|
-
}
|
|
166
|
-
})),
|
|
167
|
-
partitions: manifest.partitions.map((p) => ({
|
|
168
|
-
partitionId: p.partitionId,
|
|
169
|
-
nextSegmentId: p.nextSegmentId,
|
|
170
|
-
segments: p.segments.map((s) => ({
|
|
171
|
-
id: s.id,
|
|
172
|
-
key: s.key,
|
|
173
|
-
docCount: s.docCount,
|
|
174
|
-
tombstoneCount: s.tombstoneCount,
|
|
175
|
-
bytes: s.bytes,
|
|
176
|
-
checksum: s.checksum
|
|
177
|
-
}))
|
|
178
|
-
})),
|
|
179
|
-
vectors: manifest.vectors.map((v) => ({
|
|
180
|
-
fieldPath: v.fieldPath,
|
|
181
|
-
nextFileId: v.nextFileId,
|
|
182
|
-
files: v.files.map((f) => ({ id: f.id, ...fileRefOnTheWire(f), count: f.count, dead: f.dead })),
|
|
183
|
-
graphGeneration: v.graphGeneration,
|
|
184
|
-
graphParts: v.graphParts.map(fileRefOnTheWire)
|
|
185
|
-
}))
|
|
186
|
-
});
|
|
187
|
-
return packChecksummedEnvelope([payload], MANIFEST_ENVELOPE_VERSION, "segment manifest");
|
|
188
|
-
}
|
|
189
|
-
function manifestReferencedKeys(manifest) {
|
|
190
|
-
const keys = /* @__PURE__ */ new Set();
|
|
191
|
-
for (const partition of manifest.partitions) {
|
|
192
|
-
for (const segment of partition.segments) {
|
|
193
|
-
keys.add(segment.key);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
for (const vector of manifest.vectors) {
|
|
197
|
-
for (const file of vector.files) keys.add(file.key);
|
|
198
|
-
for (const part of vector.graphParts) keys.add(part.key);
|
|
199
|
-
}
|
|
200
|
-
return keys;
|
|
201
|
-
}
|
|
202
|
-
function manifestFileRefs(manifest) {
|
|
203
|
-
const refs = [];
|
|
204
|
-
for (const partition of manifest.partitions) refs.push(...partition.segments);
|
|
205
|
-
for (const vector of manifest.vectors) refs.push(...vector.files, ...vector.graphParts);
|
|
206
|
-
return refs;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export { EARLIER_SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION, MAX_SEGMENTS_PER_PARTITION, MAX_SEGMENT_ID, SEGMENT_MANIFEST_VERSION, adapterCheckpointStore, directoryCheckpointStore, encodeSegmentManifest, graphPartKey, manifestFileRefs, manifestKey, manifestReferencedKeys, readListedFile, requireListedChecksum, requireListedSize, segmentKey, segmentsPrefix, snapshotBundleKey, vectorFileKey };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// src/core/hash.ts
|
|
2
|
-
var FNV_OFFSET_BASIS = 2166136261;
|
|
3
|
-
var FNV_PRIME = 16777619;
|
|
4
|
-
var encoder = new TextEncoder();
|
|
5
|
-
function fnv1aBytes(bytes) {
|
|
6
|
-
return fnv1aContinue(FNV_OFFSET_BASIS, bytes, bytes.length) >>> 0;
|
|
7
|
-
}
|
|
8
|
-
function fnv1aContinue(start, bytes, length) {
|
|
9
|
-
let hash = start;
|
|
10
|
-
for (let i = 0; i < length; i++) {
|
|
11
|
-
hash = Math.imul(hash ^ bytes[i], FNV_PRIME);
|
|
12
|
-
}
|
|
13
|
-
return hash;
|
|
14
|
-
}
|
|
15
|
-
var scratchNumber = new Float64Array(1);
|
|
16
|
-
var scratchBytes = new Uint8Array(scratchNumber.buffer);
|
|
17
|
-
var HOST_IS_LITTLE_ENDIAN = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
|
|
18
|
-
function fnv1aContinueTaggedNumbers(start, tag, numbers) {
|
|
19
|
-
let hash = start;
|
|
20
|
-
const b = scratchBytes;
|
|
21
|
-
for (let i = 0; i < numbers.length; i++) {
|
|
22
|
-
scratchNumber[0] = Math.fround(numbers[i]);
|
|
23
|
-
hash = Math.imul(hash ^ tag, FNV_PRIME);
|
|
24
|
-
if (HOST_IS_LITTLE_ENDIAN) {
|
|
25
|
-
hash = Math.imul(hash ^ b[7], FNV_PRIME);
|
|
26
|
-
hash = Math.imul(hash ^ b[6], FNV_PRIME);
|
|
27
|
-
hash = Math.imul(hash ^ b[5], FNV_PRIME);
|
|
28
|
-
hash = Math.imul(hash ^ b[4], FNV_PRIME);
|
|
29
|
-
hash = Math.imul(hash ^ b[3], FNV_PRIME);
|
|
30
|
-
hash = Math.imul(hash ^ b[2], FNV_PRIME);
|
|
31
|
-
hash = Math.imul(hash ^ b[1], FNV_PRIME);
|
|
32
|
-
hash = Math.imul(hash ^ b[0], FNV_PRIME);
|
|
33
|
-
} else {
|
|
34
|
-
for (let at = 0; at < 8; at++) hash = Math.imul(hash ^ b[at], FNV_PRIME);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return hash;
|
|
38
|
-
}
|
|
39
|
-
function fnv1a(input) {
|
|
40
|
-
return fnv1aBytes(encoder.encode(input));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// src/workers/constants.ts
|
|
44
|
-
var WORKER_YOUNG_GENERATION_MB = 24;
|
|
45
|
-
var MIN_WORKER_COUNT = 2;
|
|
46
|
-
var MAX_WORKER_COUNT = 8;
|
|
47
|
-
var FALLBACK_CPU_COUNT = 4;
|
|
48
|
-
var MIN_CORES_FOR_SEVERAL_REQUEST_THREADS = 3;
|
|
49
|
-
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
50
|
-
var SHUTDOWN_TIMEOUT_MS = 5e3;
|
|
51
|
-
|
|
52
|
-
// src/vector/constants.ts
|
|
53
|
-
var WASM_PAGE_BYTES = 65536;
|
|
54
|
-
var MAX_WASM_PAGES = 65536;
|
|
55
|
-
var VECTOR_STORE_INITIAL_CAPACITY = 16;
|
|
56
|
-
var VECTOR_BLOCK_INITIAL_SLOTS = 256;
|
|
57
|
-
var DISK_STORAGE_BLOCK_BYTES = 67108864;
|
|
58
|
-
var UNPLACED_FLAG_CHUNK_ORDINALS = 1024;
|
|
59
|
-
var VECTOR_SCRATCH_SLOTS = 64;
|
|
60
|
-
var SCRATCH_SLOTS_PER_THREAD_POOL = 31;
|
|
61
|
-
var NATIVE_THREAD_SEARCH_SLOTS = 4;
|
|
62
|
-
var NATIVE_THREAD_SCAN_CHUNK_ORDINALS = 16384;
|
|
63
|
-
var MAX_VECTOR_ORDINALS_ON_A_PHONE = 1048576;
|
|
64
|
-
var MAX_DOC_ID_TABLE_BYTES_ON_A_PHONE = 67108864;
|
|
65
|
-
var VECTOR_BLOCK_BYTES_ON_A_PHONE = 67108864;
|
|
66
|
-
var VECTOR_SEARCH_TIMEOUT_MS = 3e4;
|
|
67
|
-
var VECTOR_SEARCH_LOAD_TIMEOUT_MS = 3e5;
|
|
68
|
-
var VECTOR_INSERT_TIMEOUT_MS = 6e5;
|
|
69
|
-
var NATIVE_ATTACH_RETRY_MS = 1e3;
|
|
70
|
-
var MAX_RENUMBERED_SEARCH_ATTEMPTS = 3;
|
|
71
|
-
var LOCK_SPIN_ITERATIONS = 128;
|
|
72
|
-
var LOCK_WAIT_SLICE_MS = 20;
|
|
73
|
-
var GRAPH_LOCK_WAIT_SLICE_MS = 1;
|
|
74
|
-
var GRAPH_LOCK_WAIT_DEADLINE_MS = 1e4;
|
|
75
|
-
var GRAPH_BUILD_DISPATCH_CHUNK = 64;
|
|
76
|
-
var GRAPH_BUILD_CHUNKS_IN_FLIGHT_PER_WORKER = 2;
|
|
77
|
-
|
|
78
|
-
// src/workers/worker-count.ts
|
|
79
|
-
function detectCpuCount() {
|
|
80
|
-
try {
|
|
81
|
-
if (navigator?.hardwareConcurrency) {
|
|
82
|
-
return navigator.hardwareConcurrency;
|
|
83
|
-
}
|
|
84
|
-
if (typeof process !== "undefined") {
|
|
85
|
-
const ap = process.availableParallelism;
|
|
86
|
-
if (typeof ap === "function") {
|
|
87
|
-
return ap();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
} catch {
|
|
91
|
-
return FALLBACK_CPU_COUNT;
|
|
92
|
-
}
|
|
93
|
-
return FALLBACK_CPU_COUNT;
|
|
94
|
-
}
|
|
95
|
-
function resolveWorkerCount(requested) {
|
|
96
|
-
if (requested !== void 0 && requested > 0) {
|
|
97
|
-
return Math.min(requested, SCRATCH_SLOTS_PER_THREAD_POOL);
|
|
98
|
-
}
|
|
99
|
-
return Math.max(MIN_WORKER_COUNT, Math.min(MAX_WORKER_COUNT, detectCpuCount() - 1));
|
|
100
|
-
}
|
|
101
|
-
function resolveRequestThreadCount(requested) {
|
|
102
|
-
if (detectCpuCount() < MIN_CORES_FOR_SEVERAL_REQUEST_THREADS) return 1;
|
|
103
|
-
return resolveWorkerCount(requested);
|
|
104
|
-
}
|
|
105
|
-
function splitWorkerBudget(total) {
|
|
106
|
-
const keyword = Math.ceil(total / 2);
|
|
107
|
-
return { keyword, vector: total - keyword };
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export { DEFAULT_REQUEST_TIMEOUT_MS, DISK_STORAGE_BLOCK_BYTES, FNV_OFFSET_BASIS, FNV_PRIME, GRAPH_BUILD_CHUNKS_IN_FLIGHT_PER_WORKER, GRAPH_BUILD_DISPATCH_CHUNK, GRAPH_LOCK_WAIT_DEADLINE_MS, GRAPH_LOCK_WAIT_SLICE_MS, LOCK_SPIN_ITERATIONS, LOCK_WAIT_SLICE_MS, MAX_DOC_ID_TABLE_BYTES_ON_A_PHONE, MAX_RENUMBERED_SEARCH_ATTEMPTS, MAX_VECTOR_ORDINALS_ON_A_PHONE, MAX_WASM_PAGES, NATIVE_ATTACH_RETRY_MS, NATIVE_THREAD_SCAN_CHUNK_ORDINALS, NATIVE_THREAD_SEARCH_SLOTS, SHUTDOWN_TIMEOUT_MS, UNPLACED_FLAG_CHUNK_ORDINALS, VECTOR_BLOCK_BYTES_ON_A_PHONE, VECTOR_BLOCK_INITIAL_SLOTS, VECTOR_INSERT_TIMEOUT_MS, VECTOR_SCRATCH_SLOTS, VECTOR_SEARCH_LOAD_TIMEOUT_MS, VECTOR_SEARCH_TIMEOUT_MS, VECTOR_STORE_INITIAL_CAPACITY, WASM_PAGE_BYTES, WORKER_YOUNG_GENERATION_MB, fnv1a, fnv1aContinue, fnv1aContinueTaggedNumbers, resolveRequestThreadCount, resolveWorkerCount, splitWorkerBudget };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-UCJU6WNH.mjs';
|
|
2
|
-
import './chunk-QC4ZRBSX.mjs';
|
|
3
|
-
import './chunk-BRNAVOKP.mjs';
|
|
4
|
-
import './chunk-IDFMNRIC.mjs';
|
|
5
|
-
import './chunk-LQAKO5QV.mjs';
|
|
6
|
-
import './chunk-NNE4VDMM.mjs';
|
|
7
|
-
import './chunk-L4M7QJNP.mjs';
|
|
8
|
-
import './chunk-IO2SMUQD.mjs';
|
|
9
|
-
import './chunk-AM7RSBPF.mjs';
|
|
10
|
-
import './chunk-ZCKNBPQ4.mjs';
|
|
11
|
-
import './chunk-PU55IOG4.mjs';
|
|
12
|
-
import './chunk-TJMSKBEM.mjs';
|
|
13
|
-
import './chunk-DKJTZ625.mjs';
|
|
14
|
-
import './chunk-3CTWSQRW.mjs';
|
|
15
|
-
import './chunk-2J2727V4.mjs';
|
|
16
|
-
import './chunk-KWRW5U65.mjs';
|
|
17
|
-
import './chunk-PPEPTUVV.mjs';
|
|
18
|
-
import './chunk-LVIKKAA6.mjs';
|
|
19
|
-
import './chunk-AAAETEJK.mjs';
|
|
20
|
-
import './chunk-JV6VQY2S.mjs';
|
|
21
|
-
import './chunk-NFGBOI46.mjs';
|
|
22
|
-
import './chunk-YH7W556M.mjs';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-D7LFYPYI.mjs';
|
|
2
|
-
import './chunk-R4OPUZQ5.mjs';
|
|
3
|
-
import './chunk-BRNAVOKP.mjs';
|
|
4
|
-
import './chunk-UFNCLEQM.mjs';
|
|
5
|
-
import './chunk-FS7BYE23.mjs';
|
|
6
|
-
import './chunk-CLE3LZ77.mjs';
|
|
7
|
-
import './chunk-IDFMNRIC.mjs';
|
|
8
|
-
import './chunk-LQAKO5QV.mjs';
|
|
9
|
-
import './chunk-NNE4VDMM.mjs';
|
|
10
|
-
import './chunk-L4M7QJNP.mjs';
|
|
11
|
-
import './chunk-IO2SMUQD.mjs';
|
|
12
|
-
import './chunk-AM7RSBPF.mjs';
|
|
13
|
-
import './chunk-ZCKNBPQ4.mjs';
|
|
14
|
-
import './chunk-PU55IOG4.mjs';
|
|
15
|
-
import './chunk-TJMSKBEM.mjs';
|
|
16
|
-
import './chunk-DKJTZ625.mjs';
|
|
17
|
-
import './chunk-3CTWSQRW.mjs';
|
|
18
|
-
import './chunk-2J2727V4.mjs';
|
|
19
|
-
import './chunk-KWRW5U65.mjs';
|
|
20
|
-
import './chunk-PPEPTUVV.mjs';
|
|
21
|
-
import './chunk-LVIKKAA6.mjs';
|
|
22
|
-
import './chunk-AAAETEJK.mjs';
|
|
23
|
-
import './chunk-JV6VQY2S.mjs';
|
|
24
|
-
import './chunk-NFGBOI46.mjs';
|
|
25
|
-
import './chunk-YH7W556M.mjs';
|
package/dist/thread-I7DVHHW7.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { closeRequestThread, searchHandler, serveRequests } from './chunk-TTCKT2RT.mjs';
|
|
2
|
-
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import './chunk-5WB2A3XU.mjs';
|
|
4
|
-
import './chunk-LDGGR7YT.mjs';
|
|
5
|
-
import './chunk-DJHHF2L5.mjs';
|
|
6
|
-
import './chunk-6F6USYII.mjs';
|
|
7
|
-
import './chunk-3HV7M5OJ.mjs';
|
|
8
|
-
import './chunk-KAKQ74LS.mjs';
|
|
9
|
-
import './chunk-HJSN7UYG.mjs';
|
|
10
|
-
import './chunk-XIHUI4KB.mjs';
|
|
11
|
-
import './chunk-Q2UL2TPC.mjs';
|
|
12
|
-
import './chunk-EEBCDP36.mjs';
|
|
13
|
-
import './chunk-X5CV2E2B.mjs';
|
|
14
|
-
import './chunk-QYRNLLLI.mjs';
|
|
15
|
-
import './chunk-ZXNQEW43.mjs';
|
|
16
|
-
import './chunk-NVTFQFUL.mjs';
|
|
17
|
-
import './chunk-LQG5G2LY.mjs';
|
|
18
|
-
import './chunk-BTPGQC6Z.mjs';
|
|
19
|
-
import './chunk-U46IZNCW.mjs';
|
|
20
|
-
import './chunk-JUKYYXSP.mjs';
|
|
21
|
-
import './chunk-SOUZMPME.mjs';
|
|
22
|
-
import './chunk-FQBFZAWG.mjs';
|
|
23
|
-
import './chunk-65WCV5JO.mjs';
|
|
24
|
-
import './chunk-4UMZ7KQL.mjs';
|
|
25
|
-
import './chunk-ZXX5GZEX.mjs';
|
|
26
|
-
import './chunk-KYVRZAYP.mjs';
|
|
27
|
-
import './chunk-L5ORED7V.mjs';
|
|
28
|
-
import './chunk-U476IXKQ.mjs';
|
|
29
|
-
import './chunk-MDF6PDIA.mjs';
|
|
30
|
-
import './chunk-R6A773WK.mjs';
|
|
31
|
-
import './chunk-YTJCGKM4.mjs';
|