@delali/narsil 0.3.1-next.156 → 0.3.1-next.160
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/dist/adapters/filesystem.mjs +3 -3
- package/dist/adapters/gcs.mjs +3 -3
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +3 -3
- package/dist/browser/{chunk-3V7DNNZL.mjs → chunk-4RNSFVWI.mjs} +20997 -19899
- package/dist/browser/chunk-MMHIIL5B.mjs +564 -0
- package/dist/browser/chunk-MZHQ65VI.mjs +1228 -0
- package/dist/browser/chunk-WC2DEXWU.mjs +29 -0
- package/dist/browser/{chunk-VLJQW4J6.mjs → core-leaf-TJAGWPZZ.mjs} +4674 -3102
- package/dist/browser/{durability-config-TIYKW6XX.mjs → durability-config-SGB5ZP5K.mjs} +8 -3
- package/dist/browser/embed-RF2MPGAO.mjs +222 -0
- package/dist/{geo-index-MRH5JMIR.mjs → browser/geo-index-GNHY4PUB.mjs} +190 -93
- package/dist/{react-native/chunks/module-TTEVPRCW.mjs → browser/module-362VSIGR.mjs} +1570 -275
- package/dist/browser/msgpack-leaf-44XNWSSY.mjs +302 -0
- package/dist/browser/optional-reads-XMVPG6HG.mjs +3230 -0
- package/dist/browser/optional-writes-WMZX4OEC.mjs +3196 -0
- package/dist/browser/phrase-module-22TKMXWI.mjs +616 -0
- package/dist/browser/resolve-vector-text-KI65IHMD.mjs +60 -0
- package/dist/{react-native/chunks/restore-hooks-IBGIY3DR.mjs → browser/restore-queue-S4BWOGMU.mjs} +98 -36
- package/dist/{react-native/chunks/runtime-R5E3TB3J.mjs → browser/runtime-NU6VOVH2.mjs} +61 -25
- package/dist/browser/segment-codec-leaf-A427QJUX.mjs +554 -0
- package/dist/browser/segment-merge-leaf-7BZ54JPI.mjs +1636 -0
- package/dist/browser/storage-leaf-X6CNRHJS.mjs +18221 -0
- package/dist/browser/store-leaf-AEMTAVHX.mjs +2069 -0
- package/dist/browser/{chunk-SSTPBZZX.mjs → suggestions-leaf-3Y6MR6OF.mjs} +441 -119
- package/dist/browser/worker-copies-WQCPP3TS.mjs +2750 -0
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-BKDrry0z.d.ts} +2 -2
- package/dist/chunk-2JRERUNZ.mjs +217 -0
- package/dist/chunk-2RIS76RJ.mjs +212 -0
- package/dist/chunk-3B775F3C.mjs +252 -0
- package/dist/{chunk-K5QFDYST.mjs → chunk-3D6RZGJH.mjs} +3 -3
- package/dist/{chunk-INJYO3BU.mjs → chunk-4CAMH7FO.mjs} +1 -1
- package/dist/{chunk-U476IXKQ.mjs → chunk-4PY4JYMY.mjs} +2 -1
- package/dist/chunk-6EZW2GQL.mjs +978 -0
- package/dist/chunk-75UNINFA.mjs +271 -0
- package/dist/chunk-77AUVDQ5.mjs +7 -0
- package/dist/{browser/chunk-23XRXIBW.mjs → chunk-7MWYORQC.mjs} +10 -3
- package/dist/{chunk-TGP5M5R7.mjs → chunk-7T4LAYT4.mjs} +1 -1
- package/dist/{chunk-XIHUI4KB.mjs → chunk-AB27FWZM.mjs} +8 -3
- package/dist/{chunk-XAXKV65G.mjs → chunk-BXM7XM4G.mjs} +7 -3
- package/dist/{chunk-HJJI72X7.mjs → chunk-C7YQHCSO.mjs} +1 -1
- package/dist/{chunk-RVGRFOGN.mjs → chunk-D456ZFPQ.mjs} +2 -1
- package/dist/{chunk-KKQC526K.mjs → chunk-E2F6LZR3.mjs} +19 -21
- package/dist/{chunk-I2KPOLOZ.mjs → chunk-FE3MRIBN.mjs} +104 -13
- package/dist/{chunk-KYYABCSW.mjs → chunk-FETZYCH7.mjs} +15 -1
- package/dist/{chunk-ZKP7G7TV.mjs → chunk-FVZ5DB6Y.mjs} +3 -2
- package/dist/{chunk-2UV4QBHW.mjs → chunk-GF4K7IUK.mjs} +317 -120
- package/dist/chunk-GXCDWLQI.mjs +193 -0
- package/dist/{chunk-25KDNIZZ.mjs → chunk-H64YDF5M.mjs} +3 -3
- package/dist/{browser/chunk-CRE3G7F3.mjs → chunk-HOOR4CP5.mjs} +63 -7
- package/dist/chunk-IB4BYLE3.mjs +127 -0
- package/dist/{chunk-3C7MTCCI.mjs → chunk-IE3Q62QD.mjs} +2 -2
- package/dist/chunk-IH3G6SJO.mjs +40 -0
- package/dist/chunk-JV74RKCY.mjs +3041 -0
- package/dist/{chunk-FRBFVQFN.mjs → chunk-K67I3RF4.mjs} +261 -101
- package/dist/chunk-KLVMK3R5.mjs +47 -0
- package/dist/{chunk-5VV4R6P7.mjs → chunk-LAWIJRMJ.mjs} +4154 -2577
- package/dist/chunk-LF4GB4PO.mjs +281 -0
- package/dist/chunk-NC4QLCZC.mjs +59 -0
- package/dist/chunk-OOO54OVC.mjs +627 -0
- package/dist/chunk-OUWZKNO3.mjs +207 -0
- package/dist/{chunk-FJKKCV4D.mjs → chunk-P5YLI5ED.mjs} +343 -182
- package/dist/{chunk-6I6AYAXS.mjs → chunk-PTTMGRG5.mjs} +9 -10
- package/dist/{browser/chunk-SRMZXJSL.mjs → chunk-Q3ZZH5Z7.mjs} +6 -0
- package/dist/chunk-QBVTYY4J.mjs +54 -0
- package/dist/{react-native/chunks/chunk-GXX3DQXP.mjs → chunk-R4CE4IVU.mjs} +352 -165
- package/dist/chunk-S2POFTLN.mjs +10 -0
- package/dist/{chunk-KJ3RTZDJ.mjs → chunk-S3BSDBF7.mjs} +10 -3
- package/dist/{chunk-FAKFUDZZ.mjs → chunk-SHGN3QIF.mjs} +80 -13
- package/dist/chunk-SXIRM4MX.mjs +3549 -0
- package/dist/{react-native/chunks/chunk-EJ33LCHV.mjs → chunk-TGPKS2UM.mjs} +47 -1
- package/dist/chunk-TINW4BSH.mjs +31301 -0
- package/dist/{cold-module-6MO2XJF2.mjs → chunk-TSLV5P2J.mjs} +397 -79
- package/dist/{chunk-HHBUCIUY.mjs → chunk-TW543F33.mjs} +3 -3
- package/dist/chunk-U6B7DUQW.mjs +788 -0
- package/dist/{chunk-FYOVBEMM.mjs → chunk-V3SGPXWQ.mjs} +8 -9
- package/dist/chunk-W34VJXY7.mjs +4723 -0
- package/dist/chunk-YETKPX5M.mjs +5 -0
- package/dist/chunk-ZQ6QY42L.mjs +59 -0
- package/dist/{client-DRv7UVeY.d.ts → client-CTp8RRiK.d.ts} +16 -4
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +70 -18
- package/dist/{config-DMwffLKn.d.ts → config-PCNzWjHL.d.ts} +6 -3
- package/dist/{config-CoSig5Ox.d.ts → config-_WT5grSL.d.ts} +3 -3
- package/dist/core-leaf-KXFGP74A.mjs +7 -0
- package/dist/digest-leaf-KXBGKYHZ.mjs +1 -0
- package/dist/direct-executor-MKTZBR26.mjs +16 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +7 -4
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +1 -2
- package/dist/distribution/transport/grpc.mjs +7 -2
- package/dist/distribution/transport/tcp.mjs +7 -1
- package/dist/distribution.d.ts +7 -7
- package/dist/distribution.mjs +1192 -1077
- package/dist/{react-native/chunks/durability-config-QXVZEO7T.mjs → durability-config-XV4XR7Y4.mjs} +7 -3
- package/dist/embed-4H7RTBVL.mjs +221 -0
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-CFxPYqEk.d.ts → engine-DBRVR_d-.d.ts} +1252 -1239
- package/dist/{browser/geo-index-HHWGMNIS.mjs → geo-index-2ZMMWWSK.mjs} +190 -92
- package/dist/{index-C4AmUnl1.d.ts → index-Ck9w5WHz.d.ts} +1 -1
- package/dist/index.browser.mjs +4 -15
- package/dist/index.d.ts +1495 -78
- package/dist/index.mjs +14 -50
- package/dist/index.react-native.mjs +11 -28
- package/dist/invalidation/filesystem.mjs +1 -2
- package/dist/languages/albanian.mjs +1 -1
- package/dist/languages/amharic.mjs +1 -1
- package/dist/languages/arabic.mjs +1 -1
- package/dist/languages/armenian.mjs +1 -1
- package/dist/languages/azerbaijani.mjs +1 -1
- package/dist/languages/bambara.mjs +1 -1
- package/dist/languages/basque.mjs +1 -1
- package/dist/languages/belarusian.mjs +1 -1
- package/dist/languages/bengali.mjs +1 -1
- package/dist/languages/bosnian.mjs +1 -1
- package/dist/languages/breton.mjs +1 -1
- package/dist/languages/bulgarian.mjs +1 -1
- package/dist/languages/burmese.mjs +1 -1
- package/dist/languages/catalan.mjs +1 -1
- package/dist/languages/chinese.mjs +1 -1
- package/dist/languages/croatian.mjs +1 -1
- package/dist/languages/czech.mjs +1 -1
- package/dist/languages/dagbani.mjs +1 -1
- package/dist/languages/danish.mjs +1 -1
- package/dist/languages/dutch.mjs +1 -1
- package/dist/languages/english.mjs +1 -1
- package/dist/languages/esperanto.mjs +1 -1
- package/dist/languages/estonian.mjs +1 -1
- package/dist/languages/ewe.mjs +1 -1
- package/dist/languages/faroese.mjs +1 -1
- package/dist/languages/fijian.mjs +1 -1
- package/dist/languages/finnish.mjs +1 -1
- package/dist/languages/french.mjs +1 -1
- package/dist/languages/ga.mjs +1 -1
- package/dist/languages/galician.mjs +1 -1
- package/dist/languages/georgian.mjs +1 -1
- package/dist/languages/german.mjs +1 -1
- package/dist/languages/greek.mjs +1 -1
- package/dist/languages/guarani.mjs +1 -1
- package/dist/languages/gujarati.mjs +1 -1
- package/dist/languages/haitian-creole.mjs +1 -1
- package/dist/languages/hausa.mjs +1 -1
- package/dist/languages/hawaiian.mjs +1 -1
- package/dist/languages/hebrew.mjs +1 -1
- package/dist/languages/hindi.mjs +1 -1
- package/dist/languages/hungarian.mjs +1 -1
- package/dist/languages/icelandic.mjs +1 -1
- package/dist/languages/igbo.mjs +1 -1
- package/dist/languages/indonesian.mjs +1 -1
- package/dist/languages/irish.mjs +1 -1
- package/dist/languages/italian.mjs +1 -1
- package/dist/languages/japanese.mjs +1 -1
- package/dist/languages/kannada.mjs +1 -1
- package/dist/languages/kazakh.mjs +1 -1
- package/dist/languages/khmer.mjs +1 -1
- package/dist/languages/kinyarwanda.mjs +1 -1
- package/dist/languages/kirundi.mjs +1 -1
- package/dist/languages/korean.mjs +1 -1
- package/dist/languages/kurmanji.mjs +1 -1
- package/dist/languages/kyrgyz.mjs +1 -1
- package/dist/languages/lao.mjs +1 -1
- package/dist/languages/latin.mjs +1 -1
- package/dist/languages/latvian.mjs +1 -1
- package/dist/languages/lingala.mjs +1 -1
- package/dist/languages/lithuanian.mjs +1 -1
- package/dist/languages/luxembourgish.mjs +1 -1
- package/dist/languages/macedonian.mjs +1 -1
- package/dist/languages/malagasy.mjs +1 -1
- package/dist/languages/malay.mjs +1 -1
- package/dist/languages/malayalam.mjs +1 -1
- package/dist/languages/maltese.mjs +1 -1
- package/dist/languages/maori.mjs +1 -1
- package/dist/languages/marathi.mjs +1 -1
- package/dist/languages/nepali.mjs +1 -1
- package/dist/languages/norwegian.mjs +1 -1
- package/dist/languages/oromo.mjs +1 -1
- package/dist/languages/persian.mjs +1 -1
- package/dist/languages/polish.mjs +1 -1
- package/dist/languages/portuguese.mjs +1 -1
- package/dist/languages/punjabi.mjs +1 -1
- package/dist/languages/romanian.mjs +1 -1
- package/dist/languages/russian.mjs +1 -1
- package/dist/languages/samoan.mjs +1 -1
- package/dist/languages/sanskrit.mjs +1 -1
- package/dist/languages/scottish-gaelic.mjs +1 -1
- package/dist/languages/serbian.mjs +1 -1
- package/dist/languages/shona.mjs +1 -1
- package/dist/languages/sinhala.mjs +1 -1
- package/dist/languages/slovak.mjs +1 -1
- package/dist/languages/slovenian.mjs +1 -1
- package/dist/languages/sorani.mjs +1 -1
- package/dist/languages/spanish.mjs +1 -1
- package/dist/languages/swahili.mjs +1 -1
- package/dist/languages/swedish.mjs +1 -1
- package/dist/languages/tagalog.mjs +1 -1
- package/dist/languages/tamil.mjs +1 -1
- package/dist/languages/tatar.mjs +1 -1
- package/dist/languages/telugu.mjs +1 -1
- package/dist/languages/thai.mjs +1 -1
- package/dist/languages/tibetan.mjs +1 -1
- package/dist/languages/tigrinya.mjs +1 -1
- package/dist/languages/tongan.mjs +1 -1
- package/dist/languages/turkish.mjs +1 -1
- package/dist/languages/twi.mjs +1 -1
- package/dist/languages/ukrainian.mjs +1 -1
- package/dist/languages/urdu.mjs +1 -1
- package/dist/languages/vietnamese.mjs +1 -1
- package/dist/languages/welsh.mjs +1 -1
- package/dist/languages/wolof.mjs +1 -1
- package/dist/languages/xhosa.mjs +1 -1
- package/dist/languages/yoruba.mjs +1 -1
- package/dist/languages/zulu.mjs +1 -1
- package/dist/{long-query-thread-YA4IAYSY.mjs → long-query-thread-JMGNGF6V.mjs} +74 -58
- package/dist/{module-N55W4Q5C.mjs → module-ZJ6ARG6V.mjs} +444 -111
- package/dist/msgpack-leaf-5WFRP6JM.mjs +9 -0
- package/dist/optional-reads-BR3BOVZW.mjs +3373 -0
- package/dist/optional-writes-DDFHYUOH.mjs +218 -0
- package/dist/{paged-partition-archive-PXW5XAYU.mjs → paged-partition-archive-G576XGVE.mjs} +29 -69
- package/dist/partial-words.browser.mjs +1649 -0
- package/dist/partial-words.mjs +15 -14
- package/dist/{chunk-CITFCZKF.mjs → pattern.browser.mjs} +153 -186
- package/dist/pattern.mjs +6 -8
- package/dist/persistence/durability/checkpoint-worker.d.ts +32 -24
- package/dist/persistence/durability/checkpoint-worker.mjs +27 -58
- package/dist/phrase-module-XK3T44VU.mjs +634 -0
- package/dist/query-actions-OMXJEC2J.mjs +118 -0
- package/dist/query-suggestions/merge-worker.mjs +18 -54
- package/dist/query-suggestions.browser.mjs +26 -226
- package/dist/query-suggestions.d.ts +2 -2
- package/dist/query-suggestions.mjs +16 -67
- package/dist/react-native/chunks/chunk-4EXKQ2IB.mjs +565 -0
- package/dist/react-native/chunks/chunk-52QD7CBJ.mjs +52 -0
- package/dist/react-native/chunks/chunk-72OKYHZL.mjs +969 -0
- package/dist/react-native/chunks/chunk-AQOWRH2C.mjs +802 -0
- package/dist/react-native/chunks/chunk-FTQ7JNMU.mjs +898 -0
- package/dist/react-native/chunks/chunk-G3CUQ333.mjs +42 -0
- package/dist/{chunk-TBC3XUL2.mjs → react-native/chunks/chunk-HRDMIQ63.mjs} +53 -1
- package/dist/react-native/chunks/{chunk-KV46CT4D.mjs → chunk-IY6U6HRA.mjs} +63 -7
- package/dist/react-native/chunks/chunk-J2NQW353.mjs +212 -0
- package/dist/react-native/chunks/chunk-L4R5ITVG.mjs +29047 -0
- package/dist/react-native/chunks/chunk-OK3WUA6N.mjs +54 -0
- package/dist/react-native/chunks/{chunk-MVXELMJX.mjs → chunk-PVMEHBQO.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-DZ7H7D2C.mjs → chunk-TQ26BKBH.mjs} +6 -0
- package/dist/react-native/chunks/{chunk-6VBXNFLE.mjs → chunk-VUJCSQG5.mjs} +3 -1
- package/dist/react-native/chunks/{chunk-ENLMYKSX.mjs → chunk-XEGKQKLY.mjs} +5385 -3114
- package/dist/react-native/chunks/chunk-YOTP2FPE.mjs +232 -0
- package/dist/react-native/chunks/chunk-ZIU6TWXG.mjs +127 -0
- package/dist/react-native/chunks/core-leaf-5B4JXCVA.mjs +6 -0
- package/dist/react-native/chunks/digest-leaf-X6OIFDIU.mjs +1 -0
- package/dist/{durability-config-GE4U7MCZ.mjs → react-native/chunks/durability-config-3IOXIPYZ.mjs} +7 -3
- package/dist/react-native/chunks/embed-3WQ2CCR5.mjs +221 -0
- package/dist/react-native/chunks/{geo-index-PX3BIHAH.mjs → geo-index-QEYKEVPH.mjs} +190 -93
- package/dist/react-native/chunks/{chunk-CKNRFDTZ.mjs → gzip.react-native-DLO4WW27.mjs} +2 -1
- package/dist/{browser/module-TCT66FWA.mjs → react-native/chunks/module-VUA27HZZ.mjs} +1018 -540
- package/dist/react-native/chunks/msgpack-leaf-TR66ZVAX.mjs +7 -0
- package/dist/react-native/chunks/optional-reads-WDTLLHUT.mjs +3364 -0
- package/dist/react-native/chunks/optional-writes-FZV3QW34.mjs +267 -0
- package/dist/react-native/chunks/phrase-module-KCQWVXYZ.mjs +635 -0
- package/dist/react-native/chunks/resolve-vector-text-LXRYXF7M.mjs +59 -0
- package/dist/react-native/chunks/restore-queue-EI2V2I4S.mjs +179 -0
- package/dist/{browser/runtime-OTAGEFQW.mjs → react-native/chunks/runtime-BUCSAK4U.mjs} +61 -25
- package/dist/react-native/chunks/segment-codec-leaf-6ULP7H3I.mjs +12 -0
- package/dist/react-native/chunks/segment-merge-leaf-F4GQZNK6.mjs +13 -0
- package/dist/react-native/chunks/storage-leaf-OAXBU2L6.mjs +18042 -0
- package/dist/react-native/chunks/store-leaf-GY2ZZFXB.mjs +14 -0
- package/dist/react-native/chunks/{chunk-UQ4OAXKU.mjs → suggestions-leaf-SQEZ4IBS.mjs} +332 -118
- package/dist/react-native/chunks/worker-copies-EEHSCFJW.mjs +2627 -0
- package/dist/react-native/partial-words.mjs +954 -35
- package/dist/react-native/pattern.mjs +238 -111
- package/dist/react-native/query-suggestions.mjs +33 -239
- package/dist/react-native/sync.mjs +127 -50
- package/dist/react-native/synonyms.mjs +256 -112
- package/dist/react.d.ts +9 -9
- package/dist/react.mjs +6 -0
- package/dist/{rerank-MQ37IYRV.mjs → rerank-Y6MWBMTT.mjs} +17 -8
- package/dist/rerankers/http.mjs +2 -2
- package/dist/resolve-vector-text-4PDRTPNQ.mjs +2 -0
- package/dist/restore-queue-KPYSRJ4A.mjs +184 -0
- package/dist/runtime-4GKUIAKV.mjs +595 -0
- package/dist/{schema-Jwt928nJ.d.ts → schema-C_7yRJLt.d.ts} +1 -1
- package/dist/segment-codec-leaf-6IFBSBPN.mjs +17 -0
- package/dist/segment-merge-leaf-VE3FUSVE.mjs +17 -0
- package/dist/server.d.ts +35 -13
- package/dist/server.mjs +90 -101
- package/dist/{browser/durability-wiring-A7BVG2DW.mjs → storage-leaf-HMIIOUYN.mjs} +2348 -902
- package/dist/store-leaf-M7T7SUZJ.mjs +19 -0
- package/dist/stored-values-BWIMpiT_.d.ts +25 -0
- package/dist/suggestions-leaf-Q3Q5D6XV.mjs +53 -0
- package/dist/sync/filesystem.d.ts +3 -3
- package/dist/sync/filesystem.mjs +27 -11
- package/dist/sync/indexeddb.browser.mjs +287 -0
- package/dist/sync/indexeddb.d.ts +3 -3
- package/dist/sync/indexeddb.mjs +7 -2
- package/dist/sync.browser.mjs +120 -70
- package/dist/sync.d.ts +4 -4
- package/dist/sync.mjs +121 -57
- package/dist/{chunk-I5B7RXU7.mjs → synonyms.browser.mjs} +248 -135
- package/dist/synonyms.mjs +15 -11
- package/dist/{tasks-qrJojgST.d.ts → tasks-B4tT4vmP.d.ts} +4 -4
- package/dist/thread-SNILJXX3.mjs +30 -0
- package/dist/{types-BZCGjfLn.d.ts → types-CTg0KaMy.d.ts} +2 -2
- package/dist/vector/search-worker.d.ts +7 -1
- package/dist/vector/search-worker.mjs +9 -13
- package/dist/worker-copies-ZLZS2CUM.mjs +2152 -0
- package/dist/workers/entry.mjs +60 -30
- package/openapi.json +137 -50
- package/package.json +233 -8
- package/dist/analysis-change-5BQOQ4BF.mjs +0 -55
- package/dist/analysis-change-entry-TXX6JSMX.mjs +0 -1
- package/dist/archive-history-E4R73RWD.mjs +0 -29
- package/dist/browser/analysis-change-435CUEPZ.mjs +0 -933
- package/dist/browser/analysis-change-entry-HZXKPPGV.mjs +0 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +0 -29
- package/dist/browser/chunk-2CFI5VVV.mjs +0 -241
- package/dist/browser/chunk-2TI4SSUP.mjs +0 -315
- package/dist/browser/chunk-3I27KXQD.mjs +0 -34
- package/dist/browser/chunk-3SSRJMFN.mjs +0 -100
- package/dist/browser/chunk-4NGKC4H4.mjs +0 -2635
- package/dist/browser/chunk-4RD3AFSB.mjs +0 -32
- package/dist/browser/chunk-5W3MMTLG.mjs +0 -19
- package/dist/browser/chunk-6LWDPLTB.mjs +0 -177
- package/dist/browser/chunk-7IGKGWSQ.mjs +0 -79
- package/dist/browser/chunk-7U3WVJUP.mjs +0 -150
- package/dist/browser/chunk-ATEBYXP6.mjs +0 -10
- package/dist/browser/chunk-BHFQATSC.mjs +0 -432
- package/dist/browser/chunk-DSXIBE6N.mjs +0 -78
- package/dist/browser/chunk-EA63E3D2.mjs +0 -857
- package/dist/browser/chunk-ELV4OZOI.mjs +0 -29
- package/dist/browser/chunk-EXQZGUQH.mjs +0 -193
- package/dist/browser/chunk-G64Q6OJF.mjs +0 -96
- package/dist/browser/chunk-GPPOG6PT.mjs +0 -9
- package/dist/browser/chunk-HOZW3PKP.mjs +0 -9
- package/dist/browser/chunk-IZXVW2ZJ.mjs +0 -217
- package/dist/browser/chunk-JPTQZWJQ.mjs +0 -10
- package/dist/browser/chunk-K4Q6KX3R.mjs +0 -2528
- package/dist/browser/chunk-KZWSX6BH.mjs +0 -645
- package/dist/browser/chunk-MGI4BCXC.mjs +0 -63
- package/dist/browser/chunk-ML7THVLJ.mjs +0 -38
- package/dist/browser/chunk-MOG4OVDK.mjs +0 -51
- package/dist/browser/chunk-NLWTBAGB.mjs +0 -111
- package/dist/browser/chunk-NQAME3RK.mjs +0 -21
- package/dist/browser/chunk-NXQG7DRA.mjs +0 -318
- package/dist/browser/chunk-OEDCEZXJ.mjs +0 -92
- package/dist/browser/chunk-OIZS5KIX.mjs +0 -6
- package/dist/browser/chunk-RA6LSBCM.mjs +0 -43
- package/dist/browser/chunk-STOWQFT3.mjs +0 -1829
- package/dist/browser/chunk-TK63WFXK.mjs +0 -90
- package/dist/browser/chunk-TY7L6OXO.mjs +0 -69
- package/dist/browser/chunk-U3JOQGWX.mjs +0 -19
- package/dist/browser/chunk-U4YDIBUT.mjs +0 -653
- package/dist/browser/chunk-VI7BQR4U.mjs +0 -21
- package/dist/browser/chunk-WI4MR75E.mjs +0 -86
- package/dist/browser/chunk-WN464PTL.mjs +0 -375
- package/dist/browser/chunk-WXLBZJMT.mjs +0 -25
- package/dist/browser/chunk-XAWNZ4G2.mjs +0 -151
- package/dist/browser/chunk-ZI2V4VD7.mjs +0 -21
- package/dist/browser/cold-module-2EHCIV4K.mjs +0 -759
- package/dist/browser/engine-hooks-E4UD67JD.mjs +0 -17
- package/dist/browser/gzip-5S7ROJFJ.mjs +0 -1
- package/dist/browser/import-DXYB6756.mjs +0 -19
- package/dist/browser/methods-KTQCSIN4.mjs +0 -30
- package/dist/browser/module-NIYMEA5R.mjs +0 -23
- package/dist/browser/operations-OJ3BXS55.mjs +0 -5
- package/dist/browser/phrase-module-HAT3TLZN.mjs +0 -328
- package/dist/browser/pool-3JLET5RO.mjs +0 -297
- package/dist/browser/release-76MXRPGV.mjs +0 -33
- package/dist/browser/restore-hooks-YPN4ZFCY.mjs +0 -114
- package/dist/browser/restore-queue-G3RQGL3Y.mjs +0 -55
- package/dist/browser/retention-ZWVMNC3Q.mjs +0 -210
- package/dist/browser/snapshot-VEQNIE6C.mjs +0 -963
- package/dist/browser/start-BM442C6R.mjs +0 -25
- package/dist/browser/sync-state-P5XG6LTQ.mjs +0 -15
- package/dist/browser/write-2EVMZWDE.mjs +0 -194
- package/dist/chunk-2NE7VCYE.mjs +0 -212
- package/dist/chunk-37CD3OKS.mjs +0 -87
- package/dist/chunk-3HYC4JRF.mjs +0 -50
- package/dist/chunk-3MXV3VHR.mjs +0 -46
- package/dist/chunk-3OH67G7R.mjs +0 -214
- package/dist/chunk-46KY2PJD.mjs +0 -905
- package/dist/chunk-4KKXNJM6.mjs +0 -242
- package/dist/chunk-5YNRKI2C.mjs +0 -81
- package/dist/chunk-6HTGOXIK.mjs +0 -875
- package/dist/chunk-6OEGXLBX.mjs +0 -57
- package/dist/chunk-6RC4K46J.mjs +0 -86
- package/dist/chunk-7GFE3PEY.mjs +0 -40
- package/dist/chunk-7GXJUJ24.mjs +0 -49
- package/dist/chunk-7LXHHCXZ.mjs +0 -1397
- package/dist/chunk-7V5IUP2T.mjs +0 -63
- package/dist/chunk-A4L7YTKX.mjs +0 -458
- package/dist/chunk-BEZH7VEH.mjs +0 -23
- package/dist/chunk-BTPGQC6Z.mjs +0 -27
- package/dist/chunk-BU4SAIC4.mjs +0 -196
- package/dist/chunk-BWZ3P4MU.mjs +0 -20
- package/dist/chunk-CSLGFPFQ.mjs +0 -218
- package/dist/chunk-CZQ33DLW.mjs +0 -78
- package/dist/chunk-DP5C7YFQ.mjs +0 -543
- package/dist/chunk-DWEPMFJE.mjs +0 -240
- package/dist/chunk-EEBCDP36.mjs +0 -32
- package/dist/chunk-EFBDHH5P.mjs +0 -7081
- package/dist/chunk-FB6463IN.mjs +0 -1499
- package/dist/chunk-FCJ553HS.mjs +0 -655
- package/dist/chunk-FNGAM5B7.mjs +0 -2639
- package/dist/chunk-FOCV4CBZ.mjs +0 -87
- package/dist/chunk-FQBFZAWG.mjs +0 -27
- package/dist/chunk-G6HRSGOU.mjs +0 -74
- package/dist/chunk-GES7U2PM.mjs +0 -68
- package/dist/chunk-GH4WQ22V.mjs +0 -34
- package/dist/chunk-GQPTDQCL.mjs +0 -54
- package/dist/chunk-HFPMMRQT.mjs +0 -206
- package/dist/chunk-HJSN7UYG.mjs +0 -10
- package/dist/chunk-I53G4JAU.mjs +0 -1974
- package/dist/chunk-I54T6CQP.mjs +0 -117
- package/dist/chunk-IPN7S4KX.mjs +0 -130
- package/dist/chunk-J4IJTTEX.mjs +0 -226
- package/dist/chunk-JDJBQLRO.mjs +0 -1126
- package/dist/chunk-JWRUUCWD.mjs +0 -151
- package/dist/chunk-K4ZIGL2O.mjs +0 -290
- package/dist/chunk-KAKQ74LS.mjs +0 -53
- package/dist/chunk-KF4EXSM4.mjs +0 -21
- package/dist/chunk-KHKIRS5D.mjs +0 -113
- package/dist/chunk-KOKM4PQN.mjs +0 -52
- package/dist/chunk-KP7TYHWT.mjs +0 -92
- package/dist/chunk-KZ3NX2P7.mjs +0 -21
- package/dist/chunk-L5ORED7V.mjs +0 -25
- package/dist/chunk-L6V6BST3.mjs +0 -1435
- package/dist/chunk-LHKOSI2J.mjs +0 -58
- package/dist/chunk-LQG5G2LY.mjs +0 -39
- package/dist/chunk-MATMVH65.mjs +0 -9
- package/dist/chunk-MP7ABPTD.mjs +0 -189
- package/dist/chunk-MQOJIO5B.mjs +0 -316
- package/dist/chunk-NF4DT3IH.mjs +0 -85
- package/dist/chunk-ORN5BLL7.mjs +0 -11
- package/dist/chunk-P5ZI2P2W.mjs +0 -7481
- package/dist/chunk-PELHVTO7.mjs +0 -24
- package/dist/chunk-PWC4VB3Q.mjs +0 -106
- package/dist/chunk-Q2UL2TPC.mjs +0 -21
- package/dist/chunk-QHPYS427.mjs +0 -66
- package/dist/chunk-QJVOLKU6.mjs +0 -111
- package/dist/chunk-QOW2JPUI.mjs +0 -634
- package/dist/chunk-QYRNLLLI.mjs +0 -99
- package/dist/chunk-RDXO6JST.mjs +0 -63
- package/dist/chunk-RFBLQLLZ.mjs +0 -16
- package/dist/chunk-RLOES5SX.mjs +0 -31
- package/dist/chunk-RZWWB2XR.mjs +0 -96
- package/dist/chunk-S5LN746F.mjs +0 -10
- package/dist/chunk-SA5LOGO3.mjs +0 -470
- package/dist/chunk-SQJWAIF4.mjs +0 -12
- package/dist/chunk-TDIK6NTV.mjs +0 -10
- package/dist/chunk-TGS5UXBE.mjs +0 -216
- package/dist/chunk-TQXHPFWT.mjs +0 -177
- package/dist/chunk-TZ3355VS.mjs +0 -121
- package/dist/chunk-TZTRKM33.mjs +0 -74
- package/dist/chunk-U55XJEIG.mjs +0 -18
- package/dist/chunk-UHICS3JI.mjs +0 -83
- package/dist/chunk-VD7J552I.mjs +0 -28
- package/dist/chunk-VTTRFF2C.mjs +0 -3711
- package/dist/chunk-WX4LAO6M.mjs +0 -656
- package/dist/chunk-WZ7YV54N.mjs +0 -152
- package/dist/chunk-X5CV2E2B.mjs +0 -1
- package/dist/chunk-XXHN7J46.mjs +0 -101
- package/dist/chunk-Y4WPNHMC.mjs +0 -50
- package/dist/chunk-YEKL4JBK.mjs +0 -96
- package/dist/chunk-YTWZVGCB.mjs +0 -382
- package/dist/chunk-Z2KAFCRT.mjs +0 -30
- package/dist/chunk-ZXNQEW43.mjs +0 -18
- package/dist/chunk-ZYAY26KG.mjs +0 -29
- package/dist/direct-executor-FTMYY3TI.mjs +0 -34
- package/dist/durability-wiring-VIF5MOSY.mjs +0 -4064
- package/dist/engine-hooks-EGUGNZYE.mjs +0 -54
- package/dist/gzip-F4HMIEEQ.mjs +0 -1
- package/dist/import-XKDPJQDP.mjs +0 -56
- package/dist/methods-7IOINERF.mjs +0 -30
- package/dist/module-FQ4JWNQJ.mjs +0 -62
- package/dist/operations-G5EP6JPX.mjs +0 -5
- package/dist/phrase-module-XW5MKWP5.mjs +0 -330
- package/dist/pool-Y4A46T36.mjs +0 -298
- package/dist/react-native/chunks/analysis-change-LT5QBQ3H.mjs +0 -926
- package/dist/react-native/chunks/analysis-change-entry-SCVWK6OU.mjs +0 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +0 -29
- package/dist/react-native/chunks/chunk-2PRHILX3.mjs +0 -529
- package/dist/react-native/chunks/chunk-3JWDECAZ.mjs +0 -858
- package/dist/react-native/chunks/chunk-3NQOVO3K.mjs +0 -1
- package/dist/react-native/chunks/chunk-3WI35N75.mjs +0 -226
- package/dist/react-native/chunks/chunk-4DII3ZSM.mjs +0 -73
- package/dist/react-native/chunks/chunk-4J74WHQM.mjs +0 -177
- package/dist/react-native/chunks/chunk-4JYO3JD2.mjs +0 -242
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +0 -17
- package/dist/react-native/chunks/chunk-6WA3C3DV.mjs +0 -85
- package/dist/react-native/chunks/chunk-AAAETEJK.mjs +0 -27
- package/dist/react-native/chunks/chunk-AM7RSBPF.mjs +0 -32
- package/dist/react-native/chunks/chunk-C5G6TJ7A.mjs +0 -140
- package/dist/react-native/chunks/chunk-CHPTFFJM.mjs +0 -43
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +0 -10
- package/dist/react-native/chunks/chunk-DNXOMPAQ.mjs +0 -191
- package/dist/react-native/chunks/chunk-DVDX4SDR.mjs +0 -375
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +0 -12
- package/dist/react-native/chunks/chunk-F753DA54.mjs +0 -23
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +0 -40
- package/dist/react-native/chunks/chunk-FTZHMRD2.mjs +0 -18
- package/dist/react-native/chunks/chunk-G43IPIDG.mjs +0 -151
- package/dist/react-native/chunks/chunk-HJBJBH26.mjs +0 -34
- package/dist/react-native/chunks/chunk-IO2SMUQD.mjs +0 -10
- package/dist/react-native/chunks/chunk-IYNT75CE.mjs +0 -111
- package/dist/react-native/chunks/chunk-JDOEEMEF.mjs +0 -38
- package/dist/react-native/chunks/chunk-JWUCMVRK.mjs +0 -15
- package/dist/react-native/chunks/chunk-LU3Y3P63.mjs +0 -68
- package/dist/react-native/chunks/chunk-LVIKKAA6.mjs +0 -93
- package/dist/react-native/chunks/chunk-LZSLNSUN.mjs +0 -193
- package/dist/react-native/chunks/chunk-MIP4SOR6.mjs +0 -22803
- package/dist/react-native/chunks/chunk-MJDQU5MW.mjs +0 -1225
- package/dist/react-native/chunks/chunk-MUWD2H2S.mjs +0 -21
- package/dist/react-native/chunks/chunk-NB3LP33V.mjs +0 -315
- package/dist/react-native/chunks/chunk-NNE4VDMM.mjs +0 -8
- package/dist/react-native/chunks/chunk-NVVRSRX5.mjs +0 -78
- package/dist/react-native/chunks/chunk-PB2YXVQW.mjs +0 -29
- package/dist/react-native/chunks/chunk-PDRWWPKV.mjs +0 -2532
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +0 -79
- package/dist/react-native/chunks/chunk-POPDAGH6.mjs +0 -2636
- package/dist/react-native/chunks/chunk-PSWKQVVT.mjs +0 -9
- package/dist/react-native/chunks/chunk-QUKQNI3H.mjs +0 -647
- package/dist/react-native/chunks/chunk-RDWG33MM.mjs +0 -79
- package/dist/react-native/chunks/chunk-SK2PWYDH.mjs +0 -654
- package/dist/react-native/chunks/chunk-SUPXRTMD.mjs +0 -96
- package/dist/react-native/chunks/chunk-TP6KCKER.mjs +0 -63
- package/dist/react-native/chunks/chunk-U4KSKA4Z.mjs +0 -23
- package/dist/react-native/chunks/chunk-UNUFZ2QY.mjs +0 -68
- package/dist/react-native/chunks/chunk-VWUDIOT6.mjs +0 -218
- package/dist/react-native/chunks/chunk-WBYQRHDY.mjs +0 -86
- package/dist/react-native/chunks/chunk-YH7QY657.mjs +0 -288
- package/dist/react-native/chunks/chunk-YZW4CHM6.mjs +0 -562
- package/dist/react-native/chunks/chunk-ZLWVW734.mjs +0 -100
- package/dist/react-native/chunks/chunk-ZXZFN7FI.mjs +0 -432
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +0 -92
- package/dist/react-native/chunks/cold-module-KVZYUGRY.mjs +0 -772
- package/dist/react-native/chunks/durability-wiring-34OYO32E.mjs +0 -4942
- package/dist/react-native/chunks/engine-hooks-M7JV46NH.mjs +0 -30
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +0 -3
- package/dist/react-native/chunks/import-H6AQREWI.mjs +0 -32
- package/dist/react-native/chunks/methods-6W5U4C3H.mjs +0 -30
- package/dist/react-native/chunks/module-LBZPGOWH.mjs +0 -36
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +0 -5
- package/dist/react-native/chunks/phrase-module-QK22HSQ2.mjs +0 -329
- package/dist/react-native/chunks/pool-JR3NJCAF.mjs +0 -297
- package/dist/react-native/chunks/release-D7ZTIANM.mjs +0 -33
- package/dist/react-native/chunks/restore-queue-ZZX54AH7.mjs +0 -55
- package/dist/react-native/chunks/retention-EW4TTDFB.mjs +0 -223
- package/dist/react-native/chunks/snapshot-REYVIN3X.mjs +0 -975
- package/dist/react-native/chunks/start-BQK6KN3R.mjs +0 -38
- package/dist/react-native/chunks/sync-state-PASCIHHT.mjs +0 -15
- package/dist/react-native/chunks/write-FQAYCZF5.mjs +0 -207
- package/dist/release-BH3DKW3T.mjs +0 -33
- package/dist/restore-hooks-CDERDEF4.mjs +0 -153
- package/dist/restore-queue-7NNSTROA.mjs +0 -55
- package/dist/retention-QSVBBNRM.mjs +0 -66
- package/dist/runtime-COIUORCN.mjs +0 -177
- package/dist/snapshot-RH4NSKIZ.mjs +0 -782
- package/dist/start-MCKCOGIW.mjs +0 -66
- package/dist/sync-state-ZWHLAFLE.mjs +0 -15
- package/dist/thread-O4SBJJJS.mjs +0 -50
- package/dist/write-3FK7NG3Y.mjs +0 -232
- /package/dist/browser/{chunk-M3MQE2X7.mjs → digest-leaf-64IPRPZD.mjs} +0 -0
- /package/dist/browser/{chunk-JNOAKDUM.mjs → gzip-JF3S6PPT.mjs} +0 -0
- /package/dist/{chunk-ZXNNR73R.mjs → gzip-2UCZW2MM.mjs} +0 -0
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { requireSearchBackendSettings } from '../chunk-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import { ErrorCodes, NarsilError, isNarsilError } from '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-TBC3XUL2.mjs';
|
|
1
|
+
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-TINW4BSH.mjs';
|
|
2
|
+
import '../chunk-KLVMK3R5.mjs';
|
|
3
|
+
import '../chunk-AB27FWZM.mjs';
|
|
4
|
+
import '../chunk-GXCDWLQI.mjs';
|
|
5
|
+
import '../chunk-BUMREPLU.mjs';
|
|
6
|
+
import '../chunk-7T4LAYT4.mjs';
|
|
7
|
+
import '../chunk-JV74RKCY.mjs';
|
|
8
|
+
import { loadMessagePack } from '../chunk-R4CE4IVU.mjs';
|
|
9
|
+
import '../chunk-U2BKYEC7.mjs';
|
|
10
|
+
import '../chunk-OUWZKNO3.mjs';
|
|
11
|
+
import { threadSlotOfWorker, startIdleHeapCleanup } from '../chunk-3B775F3C.mjs';
|
|
12
|
+
import '../chunk-E2F6LZR3.mjs';
|
|
13
|
+
import '../chunk-ZXX5GZEX.mjs';
|
|
14
|
+
import '../chunk-4PY4JYMY.mjs';
|
|
15
|
+
import { ErrorCodes, NarsilError, isNarsilError } from '../chunk-Q3ZZH5Z7.mjs';
|
|
16
|
+
import '../chunk-TGPKS2UM.mjs';
|
|
18
17
|
|
|
19
18
|
// src/workers/action-handler.ts
|
|
20
19
|
function buildErrorResponse(requestId, code, message, details) {
|
|
@@ -32,9 +31,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
32
31
|
await import(moduleUrl);
|
|
33
32
|
}
|
|
34
33
|
async function stopServingRequests() {
|
|
35
|
-
const { closeRequestThread } = await import('../thread-
|
|
34
|
+
const { closeRequestThread } = await import('../thread-SNILJXX3.mjs');
|
|
36
35
|
closeRequestThread();
|
|
37
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
36
|
+
const { closeLongQueryThread } = await import('../long-query-thread-JMGNGF6V.mjs');
|
|
38
37
|
closeLongQueryThread();
|
|
39
38
|
}
|
|
40
39
|
function holdsCopies(executor) {
|
|
@@ -42,20 +41,42 @@ function holdsCopies(executor) {
|
|
|
42
41
|
}
|
|
43
42
|
function createActionHandler(executor) {
|
|
44
43
|
let servingRequests = false;
|
|
44
|
+
let stopping = false;
|
|
45
45
|
const serving = { start: null };
|
|
46
|
+
const copyChanges = /* @__PURE__ */ new Map();
|
|
47
|
+
function executeCopyAction(action) {
|
|
48
|
+
if (!("indexName" in action)) return executor.execute(action);
|
|
49
|
+
const indexName = action.indexName;
|
|
50
|
+
const previous = copyChanges.get(indexName);
|
|
51
|
+
const result = previous === void 0 ? executor.execute(action) : previous.then(() => executor.execute(action));
|
|
52
|
+
if (action.type === "createIndex" || action.type === "dropIndex") {
|
|
53
|
+
const settled = result.then(
|
|
54
|
+
() => void 0,
|
|
55
|
+
() => void 0
|
|
56
|
+
);
|
|
57
|
+
copyChanges.set(indexName, settled);
|
|
58
|
+
void settled.then(() => {
|
|
59
|
+
if (copyChanges.get(indexName) === settled) copyChanges.delete(indexName);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
46
64
|
async function stopServingOnceStarted() {
|
|
47
65
|
if (serving.start !== null) await serving.start;
|
|
48
66
|
if (servingRequests) await stopServingRequests();
|
|
49
67
|
servingRequests = false;
|
|
50
68
|
}
|
|
51
69
|
return async function handleAction(action, post) {
|
|
52
|
-
if (action.type === "shutdown") {
|
|
53
|
-
await stopServingOnceStarted();
|
|
54
|
-
await executor.shutdown();
|
|
55
|
-
post(buildSuccessResponse(action.requestId, void 0));
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
70
|
try {
|
|
71
|
+
if (stopping) throw new NarsilError(ErrorCodes.WORKER_CRASHED, "The worker is shutting down");
|
|
72
|
+
if (action.type === "shutdown") {
|
|
73
|
+
stopping = true;
|
|
74
|
+
await stopServingOnceStarted();
|
|
75
|
+
await Promise.all(copyChanges.values());
|
|
76
|
+
await executor.shutdown();
|
|
77
|
+
post(buildSuccessResponse(action.requestId, void 0));
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
59
80
|
if (action.type === "bootstrap") {
|
|
60
81
|
await importBootstrapModule(action.moduleUrl);
|
|
61
82
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -65,7 +86,7 @@ function createActionHandler(executor) {
|
|
|
65
86
|
if (!holdsCopies(executor)) {
|
|
66
87
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
67
88
|
}
|
|
68
|
-
const starting = import('../thread-
|
|
89
|
+
const starting = import('../thread-SNILJXX3.mjs').then(
|
|
69
90
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
70
91
|
);
|
|
71
92
|
serving.start = starting.then(
|
|
@@ -82,7 +103,7 @@ function createActionHandler(executor) {
|
|
|
82
103
|
if (!holdsCopies(executor)) {
|
|
83
104
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
84
105
|
}
|
|
85
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
106
|
+
const { serveLongQueries } = await import('../long-query-thread-JMGNGF6V.mjs');
|
|
86
107
|
serveLongQueries(executor, action.settings);
|
|
87
108
|
servingRequests = true;
|
|
88
109
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -93,7 +114,7 @@ function createActionHandler(executor) {
|
|
|
93
114
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
94
115
|
return false;
|
|
95
116
|
}
|
|
96
|
-
const result = await
|
|
117
|
+
const result = await executeCopyAction(action);
|
|
97
118
|
post(buildSuccessResponse(action.requestId, result));
|
|
98
119
|
} catch (err) {
|
|
99
120
|
const failure = isNarsilError(err) ? err : null;
|
|
@@ -129,8 +150,17 @@ async function setup() {
|
|
|
129
150
|
parentPort = null;
|
|
130
151
|
}
|
|
131
152
|
requireSearchBackendSettings();
|
|
132
|
-
const [{ createDirectExecutor }] = await Promise.all([
|
|
133
|
-
|
|
153
|
+
const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
|
|
154
|
+
import('../direct-executor-MKTZBR26.mjs'),
|
|
155
|
+
import('../query-actions-OMXJEC2J.mjs'),
|
|
156
|
+
loadVectorCode(),
|
|
157
|
+
loadGeoCode(),
|
|
158
|
+
importOptionalReads(),
|
|
159
|
+
loadMessagePack()
|
|
160
|
+
]);
|
|
161
|
+
const handleAction = createActionHandler(
|
|
162
|
+
createDirectExecutor({ threadSlot, runQueryAction, publishCopyAction, initializeCopyPublication })
|
|
163
|
+
);
|
|
134
164
|
if (parentPort) {
|
|
135
165
|
const port = parentPort;
|
|
136
166
|
startIdleHeapCleanup();
|
package/openapi.json
CHANGED
|
@@ -2268,6 +2268,39 @@
|
|
|
2268
2268
|
}
|
|
2269
2269
|
},
|
|
2270
2270
|
"/indexes/{name}/sync": {
|
|
2271
|
+
"get": {
|
|
2272
|
+
"operationId": "getSync",
|
|
2273
|
+
"summary": "Report the device sync setting of an index, whether a device has downloaded it, and its epoch",
|
|
2274
|
+
"tags": [
|
|
2275
|
+
"Sync"
|
|
2276
|
+
],
|
|
2277
|
+
"parameters": [
|
|
2278
|
+
{
|
|
2279
|
+
"name": "name",
|
|
2280
|
+
"in": "path",
|
|
2281
|
+
"required": true,
|
|
2282
|
+
"description": "The name of the index.",
|
|
2283
|
+
"schema": {
|
|
2284
|
+
"type": "string"
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
],
|
|
2288
|
+
"responses": {
|
|
2289
|
+
"200": {
|
|
2290
|
+
"description": "The server answered the request.",
|
|
2291
|
+
"content": {
|
|
2292
|
+
"application/json": {
|
|
2293
|
+
"schema": {
|
|
2294
|
+
"$ref": "#/components/schemas/SyncStatus"
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
"default": {
|
|
2300
|
+
"$ref": "#/components/responses/Error"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2271
2304
|
"put": {
|
|
2272
2305
|
"operationId": "updateSync",
|
|
2273
2306
|
"summary": "Replace the device sync setting of an index",
|
|
@@ -3895,39 +3928,6 @@
|
|
|
3895
3928
|
],
|
|
3896
3929
|
"description": "A highlighted field, ready to render."
|
|
3897
3930
|
},
|
|
3898
|
-
"Hit": {
|
|
3899
|
-
"type": "object",
|
|
3900
|
-
"properties": {
|
|
3901
|
-
"id": {
|
|
3902
|
-
"type": "string",
|
|
3903
|
-
"description": "The document is stored under this id."
|
|
3904
|
-
},
|
|
3905
|
-
"score": {
|
|
3906
|
-
"type": "number",
|
|
3907
|
-
"description": "This score ranked the hit. Scores compare within one result set, never across searches. A sorted query ranks by sort values instead and carries no score unless it sets `includeScores`."
|
|
3908
|
-
},
|
|
3909
|
-
"document": {
|
|
3910
|
-
"$ref": "#/components/schemas/AnyDocument",
|
|
3911
|
-
"description": "This is the stored document."
|
|
3912
|
-
},
|
|
3913
|
-
"scoreComponents": {
|
|
3914
|
-
"$ref": "#/components/schemas/ScoreComponents",
|
|
3915
|
-
"description": "These are the parts the score was built from, which arrive when the query asked for them."
|
|
3916
|
-
},
|
|
3917
|
-
"highlights": {
|
|
3918
|
-
"type": "object",
|
|
3919
|
-
"additionalProperties": {
|
|
3920
|
-
"$ref": "#/components/schemas/HighlightMatch"
|
|
3921
|
-
},
|
|
3922
|
-
"description": "These highlighted snippets are keyed by field, and arrive when the query asked for highlighting."
|
|
3923
|
-
}
|
|
3924
|
-
},
|
|
3925
|
-
"required": [
|
|
3926
|
-
"id",
|
|
3927
|
-
"document"
|
|
3928
|
-
],
|
|
3929
|
-
"description": "One matching document, with the score that ranked it."
|
|
3930
|
-
},
|
|
3931
3931
|
"HttpCreateIndexBody": {
|
|
3932
3932
|
"type": "object",
|
|
3933
3933
|
"properties": {
|
|
@@ -3949,24 +3949,69 @@
|
|
|
3949
3949
|
"HttpGroupResult": {
|
|
3950
3950
|
"type": "object",
|
|
3951
3951
|
"properties": {
|
|
3952
|
+
"values": {
|
|
3953
|
+
"type": "object",
|
|
3954
|
+
"additionalProperties": true,
|
|
3955
|
+
"description": "Each grouping field holds this value for the group, keyed by field."
|
|
3956
|
+
},
|
|
3952
3957
|
"hits": {
|
|
3953
3958
|
"type": "array",
|
|
3954
3959
|
"items": {
|
|
3955
|
-
"$ref": "#/components/schemas/
|
|
3960
|
+
"$ref": "#/components/schemas/HttpHit"
|
|
3956
3961
|
},
|
|
3957
|
-
"description": "These hits
|
|
3962
|
+
"description": "These hits retain the scores of the group's ranking."
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
"required": [
|
|
3966
|
+
"values",
|
|
3967
|
+
"hits"
|
|
3968
|
+
],
|
|
3969
|
+
"description": "One group of hits as the server sends it, which is GroupResult with no reducer output, because the server refuses a query with a reducer."
|
|
3970
|
+
},
|
|
3971
|
+
"HttpHit": {
|
|
3972
|
+
"type": "object",
|
|
3973
|
+
"properties": {
|
|
3974
|
+
"document": {
|
|
3975
|
+
"$ref": "#/components/schemas/AnyDocument",
|
|
3976
|
+
"description": "This is the stored document."
|
|
3958
3977
|
},
|
|
3959
|
-
"
|
|
3978
|
+
"id": {
|
|
3979
|
+
"type": "string",
|
|
3980
|
+
"description": "The document is stored under this id."
|
|
3981
|
+
},
|
|
3982
|
+
"scoreComponents": {
|
|
3983
|
+
"$ref": "#/components/schemas/ScoreComponents",
|
|
3984
|
+
"description": "These are the parts the score was built from, which arrive when the query asked for them."
|
|
3985
|
+
},
|
|
3986
|
+
"highlights": {
|
|
3960
3987
|
"type": "object",
|
|
3961
|
-
"additionalProperties":
|
|
3962
|
-
|
|
3988
|
+
"additionalProperties": {
|
|
3989
|
+
"$ref": "#/components/schemas/HighlightMatch"
|
|
3990
|
+
},
|
|
3991
|
+
"description": "These highlighted snippets are keyed by field, and arrive when the query asked for highlighting."
|
|
3992
|
+
},
|
|
3993
|
+
"score": {
|
|
3994
|
+
"anyOf": [
|
|
3995
|
+
{
|
|
3996
|
+
"type": "string",
|
|
3997
|
+
"enum": [
|
|
3998
|
+
"NaN",
|
|
3999
|
+
"Infinity",
|
|
4000
|
+
"-Infinity"
|
|
4001
|
+
]
|
|
4002
|
+
},
|
|
4003
|
+
{
|
|
4004
|
+
"type": "number"
|
|
4005
|
+
}
|
|
4006
|
+
],
|
|
4007
|
+
"description": "The client decodes this value to a numeric score, or leaves it absent when the search returns no score."
|
|
3963
4008
|
}
|
|
3964
4009
|
},
|
|
3965
4010
|
"required": [
|
|
3966
|
-
"
|
|
3967
|
-
"
|
|
4011
|
+
"document",
|
|
4012
|
+
"id"
|
|
3968
4013
|
],
|
|
3969
|
-
"description": "
|
|
4014
|
+
"description": "A search hit whose score uses the HTTP representation of HttpScore."
|
|
3970
4015
|
},
|
|
3971
4016
|
"HttpIndexBody": {
|
|
3972
4017
|
"type": "object",
|
|
@@ -4298,13 +4343,6 @@
|
|
|
4298
4343
|
},
|
|
4299
4344
|
"description": "These facet counts are keyed by the field each facet was asked for."
|
|
4300
4345
|
},
|
|
4301
|
-
"hits": {
|
|
4302
|
-
"type": "array",
|
|
4303
|
-
"items": {
|
|
4304
|
-
"$ref": "#/components/schemas/Hit"
|
|
4305
|
-
},
|
|
4306
|
-
"description": "These documents match, cut to the query's `limit`, best score first or in the query's sort order."
|
|
4307
|
-
},
|
|
4308
4346
|
"count": {
|
|
4309
4347
|
"type": "number",
|
|
4310
4348
|
"description": "This many documents match in total, before the engine applies `limit` and `offset`. For a keyword search the engine counts every match. For a vector search it counts every vector that passes the query's filter and its `similarity` floor, which is every vector in the field where the query sets neither of them. The engine also counts each pinned document that the query does not match, since it places that document among the hits."
|
|
@@ -4329,6 +4367,13 @@
|
|
|
4329
4367
|
"$ref": "#/components/schemas/QueryCoverage",
|
|
4330
4368
|
"description": "The search read this much of the index, which is how you spot a degraded answer."
|
|
4331
4369
|
},
|
|
4370
|
+
"hits": {
|
|
4371
|
+
"type": "array",
|
|
4372
|
+
"items": {
|
|
4373
|
+
"$ref": "#/components/schemas/HttpHit"
|
|
4374
|
+
},
|
|
4375
|
+
"description": "These hits follow the search's ranking, with scores encoded for HTTP."
|
|
4376
|
+
},
|
|
4332
4377
|
"groups": {
|
|
4333
4378
|
"type": "array",
|
|
4334
4379
|
"items": {
|
|
@@ -4338,11 +4383,11 @@
|
|
|
4338
4383
|
}
|
|
4339
4384
|
},
|
|
4340
4385
|
"required": [
|
|
4341
|
-
"hits",
|
|
4342
4386
|
"count",
|
|
4343
4387
|
"countExact",
|
|
4344
4388
|
"elapsed",
|
|
4345
|
-
"coverage"
|
|
4389
|
+
"coverage",
|
|
4390
|
+
"hits"
|
|
4346
4391
|
],
|
|
4347
4392
|
"description": "The body of `POST /indexes/{name}/search`."
|
|
4348
4393
|
},
|
|
@@ -4644,6 +4689,10 @@
|
|
|
4644
4689
|
"schema": {
|
|
4645
4690
|
"$ref": "#/components/schemas/SchemaDefinition",
|
|
4646
4691
|
"description": "The index was created with this field layout."
|
|
4692
|
+
},
|
|
4693
|
+
"heldSearchStates": {
|
|
4694
|
+
"type": "number",
|
|
4695
|
+
"description": "This many searches on this instance's main copy hold a state of the index open right now. Each search holds one state from its start until it answers, fails, or is cancelled, so the figure falls back to 0 once every search has finished. A cluster reports no figure."
|
|
4647
4696
|
}
|
|
4648
4697
|
},
|
|
4649
4698
|
"required": [
|
|
@@ -6062,6 +6111,44 @@
|
|
|
6062
6111
|
],
|
|
6063
6112
|
"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."
|
|
6064
6113
|
},
|
|
6114
|
+
"SyncStatus": {
|
|
6115
|
+
"type": "object",
|
|
6116
|
+
"properties": {
|
|
6117
|
+
"active": {
|
|
6118
|
+
"type": "boolean",
|
|
6119
|
+
"description": "This is true once a device has asked for the published snapshot, from when the server keeps history."
|
|
6120
|
+
},
|
|
6121
|
+
"epoch": {
|
|
6122
|
+
"anyOf": [
|
|
6123
|
+
{
|
|
6124
|
+
"type": "null"
|
|
6125
|
+
},
|
|
6126
|
+
{
|
|
6127
|
+
"type": "string"
|
|
6128
|
+
}
|
|
6129
|
+
],
|
|
6130
|
+
"description": "This is the index epoch, 32 lowercase hexadecimal digits, or `null` while sync is off."
|
|
6131
|
+
},
|
|
6132
|
+
"enabled": {
|
|
6133
|
+
"type": "boolean",
|
|
6134
|
+
"description": "This turns sync on or off. Turning it on gives the index a new epoch, so every synced device loads a new copy."
|
|
6135
|
+
},
|
|
6136
|
+
"historyMaxAgeMs": {
|
|
6137
|
+
"type": "number",
|
|
6138
|
+
"description": "This is the age in milliseconds after which the server deletes a log segment from history. It defaults to 30 days."
|
|
6139
|
+
},
|
|
6140
|
+
"historyMaxBytes": {
|
|
6141
|
+
"type": "number",
|
|
6142
|
+
"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."
|
|
6143
|
+
}
|
|
6144
|
+
},
|
|
6145
|
+
"required": [
|
|
6146
|
+
"active",
|
|
6147
|
+
"epoch",
|
|
6148
|
+
"enabled"
|
|
6149
|
+
],
|
|
6150
|
+
"description": "The device sync state of one index, which SyncOperations.getSync returns."
|
|
6151
|
+
},
|
|
6065
6152
|
"SynonymRule": {
|
|
6066
6153
|
"anyOf": [
|
|
6067
6154
|
{
|