@delali/narsil 0.3.1-next.155 → 0.3.1-next.157
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/NOTICE +45 -0
- package/dist/{analysis-change-3TFIHT5E.mjs → analysis-change-CKEMM2MC.mjs} +25 -18
- package/dist/{react-native/chunks/analysis-change-entry-JLL42PH6.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
- package/dist/browser/{analysis-change-TC36BU47.mjs → analysis-change-ZKGJFENM.mjs} +42 -32
- package/dist/{analysis-change-entry-KA6JAO4X.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
- package/dist/browser/{chunk-KKAMCABR.mjs → chunk-25MTVDYD.mjs} +1 -1
- package/dist/browser/{chunk-K5AXJBLL.mjs → chunk-3NLMB5CC.mjs} +3 -3
- package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
- package/dist/browser/chunk-AI5UI46D.mjs +12 -0
- package/dist/browser/{chunk-A5KUEGDY.mjs → chunk-BLT4RHCJ.mjs} +3 -3
- package/dist/browser/{chunk-RRO3EV4C.mjs → chunk-C26SPCGQ.mjs} +8 -7
- package/dist/browser/{chunk-ABCXENU5.mjs → chunk-C4FJ3WDY.mjs} +1 -1
- package/dist/browser/{chunk-3UIEB4QF.mjs → chunk-CXNTHHA7.mjs} +2 -2
- package/dist/browser/{chunk-JIJXMI42.mjs → chunk-DUH6QUVU.mjs} +547 -2
- package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
- package/dist/browser/{chunk-JVBP5EYO.mjs → chunk-GFAZPSWK.mjs} +7 -7
- package/dist/browser/{chunk-CJSYBQ4J.mjs → chunk-HUCSHDTB.mjs} +1 -1
- package/dist/browser/{chunk-RND5CLX3.mjs → chunk-K3IPRX6D.mjs} +52 -21
- package/dist/browser/chunk-MY2XKH22.mjs +40 -0
- package/dist/browser/{chunk-SMEQ36NT.mjs → chunk-N23GL72Q.mjs} +629 -1416
- package/dist/browser/{chunk-LFIWRCEA.mjs → chunk-NXQG7DRA.mjs} +29 -6
- package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
- package/dist/browser/{chunk-4EWUGZYZ.mjs → chunk-U4YDIBUT.mjs} +2 -2
- package/dist/browser/{chunk-RQBUNZQW.mjs → chunk-UATIJ4KU.mjs} +2 -2
- package/dist/browser/{chunk-BXM5XOCA.mjs → chunk-UKOWD2K5.mjs} +3 -3
- package/dist/browser/{chunk-FNIFPFB7.mjs → chunk-UTMHUHUV.mjs} +2 -2
- package/dist/browser/{chunk-56W3HQVJ.mjs → chunk-V43N6TZO.mjs} +5 -5
- package/dist/browser/{chunk-K4GCSZLI.mjs → chunk-VLJQW4J6.mjs} +2985 -2985
- package/dist/browser/{chunk-IKDKX5VQ.mjs → chunk-VY5KW3HN.mjs} +3 -3
- package/dist/browser/{chunk-5TCXK5SB.mjs → chunk-WN464PTL.mjs} +1 -1
- package/dist/browser/{chunk-SUDNZKPL.mjs → chunk-X7TXYUKO.mjs} +1 -1
- package/dist/browser/{chunk-XY4VVBBO.mjs → chunk-Y6IBAUNO.mjs} +2 -86
- package/dist/browser/{cold-module-NEUGHUPA.mjs → cold-module-YNUUDNOM.mjs} +18 -15
- package/dist/browser/{durability-wiring-CVGPRO6D.mjs → durability-wiring-GVZEE46O.mjs} +71 -27
- package/dist/browser/{engine-hooks-YXMPHZKZ.mjs → engine-hooks-HBVS6YM4.mjs} +8 -6
- package/dist/browser/geo-index-OTV7VPIR.mjs +1387 -0
- package/dist/browser/{import-OM6QAW45.mjs → import-5ESVMFDJ.mjs} +9 -7
- package/dist/browser/{module-E33X4AOK.mjs → module-NDSQLPMQ.mjs} +14 -11
- package/dist/browser/{module-3HNFCBJ5.mjs → module-TCT66FWA.mjs} +6 -6
- package/dist/browser/{phrase-module-ZXXU7S3B.mjs → phrase-module-HAT3TLZN.mjs} +1 -1
- package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
- package/dist/browser/{restore-hooks-IF2ZROUP.mjs → restore-hooks-IE3GGYHG.mjs} +11 -9
- package/dist/browser/{restore-queue-ZBS7CJA6.mjs → restore-queue-LQBBTODR.mjs} +3 -3
- package/dist/browser/{retention-ASWUHAYI.mjs → retention-TY3L3BFN.mjs} +11 -9
- package/dist/browser/{snapshot-PN7ZW6Q4.mjs → snapshot-5FHPPCNZ.mjs} +27 -24
- package/dist/browser/{start-ZIRB7MQ2.mjs → start-2UZTOBG5.mjs} +12 -10
- package/dist/browser/{write-HMDYCTV2.mjs → write-ULXAN5B4.mjs} +14 -11
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
- package/dist/{chunk-KBKEXQZA.mjs → chunk-24FNVRKB.mjs} +1 -1
- package/dist/{chunk-VHBNF4MA.mjs → chunk-2ROUFMQX.mjs} +2 -2
- package/dist/{chunk-AILVAOLX.mjs → chunk-4B7JIGQD.mjs} +2 -2
- package/dist/{chunk-DCNKVEDB.mjs → chunk-4LMSZAK6.mjs} +16 -6
- package/dist/{chunk-RSVULW4Q.mjs → chunk-4ZTHGTVX.mjs} +4 -4
- package/dist/{chunk-VQEUR6T6.mjs → chunk-5VV4R6P7.mjs} +3040 -3040
- package/dist/chunk-6HTGOXIK.mjs +875 -0
- package/dist/chunk-7GFE3PEY.mjs +40 -0
- package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
- package/dist/{chunk-4BYWRYPM.mjs → chunk-A4L7YTKX.mjs} +52 -89
- package/dist/{chunk-J4IWBIVY.mjs → chunk-BNL5OPRV.mjs} +6 -6
- package/dist/{chunk-BY6ZDGYS.mjs → chunk-C7XQYG6U.mjs} +2 -2
- package/dist/{chunk-LC3FDWTX.mjs → chunk-CITFCZKF.mjs} +3 -2
- package/dist/{chunk-KXCVQWOR.mjs → chunk-CQZXZ75V.mjs} +3 -97
- package/dist/{chunk-SY3EWKQY.mjs → chunk-CWS55TEX.mjs} +2 -2
- package/dist/{chunk-3HHQLEEQ.mjs → chunk-EYD7K3H6.mjs} +7 -7
- package/dist/chunk-FB6463IN.mjs +1499 -0
- package/dist/{chunk-KFLK5NA2.mjs → chunk-FCJ553HS.mjs} +1 -1
- package/dist/{chunk-KMUNHGBQ.mjs → chunk-FEZVDOWX.mjs} +169 -253
- package/dist/{chunk-SG3JBNHY.mjs → chunk-FJKKCV4D.mjs} +1 -1
- package/dist/{chunk-BDRIVYOK.mjs → chunk-FUD5XSZ5.mjs} +1 -1
- package/dist/chunk-G6HRSGOU.mjs +74 -0
- package/dist/{chunk-S2EQU2GE.mjs → chunk-GPWMUPCA.mjs} +10 -10
- package/dist/{chunk-ZHCUZZE5.mjs → chunk-HHBUCIUY.mjs} +1 -1
- package/dist/{chunk-YEDIDCR7.mjs → chunk-I5B7RXU7.mjs} +91 -22
- package/dist/{chunk-2MANFZJ3.mjs → chunk-IIRIG7H5.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
- package/dist/{chunk-Q622CTMC.mjs → chunk-JSV6OQ4C.mjs} +1 -1
- package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
- package/dist/chunk-KCQYFO4K.mjs +62 -0
- package/dist/{chunk-Q7G3BV3Y.mjs → chunk-KKQC526K.mjs} +19 -11
- package/dist/{chunk-PCRA7HTI.mjs → chunk-LDNCLRZU.mjs} +1 -1
- package/dist/{chunk-U4BS74YN.mjs → chunk-MW6BR4QP.mjs} +2 -2
- package/dist/{chunk-DIBHI6W5.mjs → chunk-MWD5VPN7.mjs} +2 -2
- package/dist/{chunk-UZRZKNNZ.mjs → chunk-ODYKO5TO.mjs} +1 -1
- package/dist/{chunk-PHQNACDT.mjs → chunk-OG7UGJ6F.mjs} +2 -2
- package/dist/{chunk-QH3YIQP4.mjs → chunk-OQLD2BSW.mjs} +2 -2
- package/dist/chunk-ORN5BLL7.mjs +11 -0
- package/dist/{chunk-L7ZD4L3K.mjs → chunk-OYABFKTW.mjs} +7 -6
- package/dist/{chunk-KBDBPVLN.mjs → chunk-P5LANSH6.mjs} +1 -1
- package/dist/{chunk-ZAUJFLEN.mjs → chunk-PIH5SJ4N.mjs} +122 -1697
- package/dist/{chunk-DUOLGBTE.mjs → chunk-PSZI4O24.mjs} +51 -4
- package/dist/{chunk-4KRC2APY.mjs → chunk-PV2CG7EJ.mjs} +5 -567
- package/dist/{chunk-6L3XJXGU.mjs → chunk-PWGYQXML.mjs} +1 -1
- package/dist/{chunk-5FVU47TB.mjs → chunk-QLDABJZM.mjs} +3 -3
- package/dist/{chunk-KPIV4RUC.mjs → chunk-RCX4WNLC.mjs} +2 -2
- package/dist/{chunk-3HB3PEC6.mjs → chunk-RIHIVFIQ.mjs} +6 -6
- package/dist/chunk-RLOES5SX.mjs +31 -0
- package/dist/{chunk-H6VIGE62.mjs → chunk-RWURUDSP.mjs} +10 -9
- package/dist/{chunk-ZTW5WTGG.mjs → chunk-SMOOSIAW.mjs} +4 -4
- package/dist/{chunk-MT2NRTA6.mjs → chunk-SOI6LTHM.mjs} +3 -3
- package/dist/chunk-SQJWAIF4.mjs +12 -0
- package/dist/{react-native/chunks/chunk-PPEPTUVV.mjs → chunk-TBC3XUL2.mjs} +29 -6
- package/dist/chunk-TDIK6NTV.mjs +10 -0
- package/dist/{react-native/chunks/chunk-JV6VQY2S.mjs → chunk-U55XJEIG.mjs} +2 -1
- package/dist/{chunk-H4KHPLHJ.mjs → chunk-UD5HIS4U.mjs} +1 -1
- package/dist/{chunk-HW5TNXBO.mjs → chunk-UJDJB3NE.mjs} +40 -31
- package/dist/{chunk-QUJHMPTP.mjs → chunk-VSLSGASN.mjs} +2 -2
- package/dist/{chunk-Z2BE2MAM.mjs → chunk-VZ2ONHEE.mjs} +32 -15
- package/dist/chunk-W5EB5XKI.mjs +741 -0
- package/dist/{chunk-3R4UZWQG.mjs → chunk-W7OSSKH5.mjs} +50 -20
- package/dist/{chunk-SMVH6JBE.mjs → chunk-XXJZMTZT.mjs} +1 -1
- package/dist/{chunk-VGF7CFRP.mjs → chunk-ZPZ3YGXV.mjs} +5 -4
- package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -0
- package/dist/{cold-module-7XXCEGTZ.mjs → cold-module-VOJXMNZB.mjs} +31 -24
- package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
- package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
- package/dist/direct-executor-V5DRIECI.mjs +34 -0
- package/dist/distribution/coordinator/etcd.mjs +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +94 -80
- package/dist/{durability-wiring-NCKUC5EO.mjs → durability-wiring-3TD62MBI.mjs} +57 -42
- package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
- package/dist/{engine-hooks-DHCMOADY.mjs → engine-hooks-HA3SBOBR.mjs} +24 -17
- package/dist/geo-index-MRH5JMIR.mjs +1387 -0
- package/dist/{import-NBFXFCSG.mjs → import-GPKLTSKA.mjs} +24 -17
- package/dist/index.browser.mjs +7 -5
- package/dist/index.d.ts +131 -6
- package/dist/index.mjs +23 -16
- package/dist/index.react-native.mjs +12 -10
- package/dist/invalidation/filesystem.mjs +2 -2
- package/dist/{long-query-thread-J4DVRM4A.mjs → long-query-thread-QDFQSJD6.mjs} +26 -21
- package/dist/{module-DWKPBSMN.mjs → module-JYHFTVPS.mjs} +28 -20
- package/dist/{module-UN76TF7I.mjs → module-N55W4Q5C.mjs} +9 -9
- package/dist/{paged-partition-archive-DPNWVSK2.mjs → paged-partition-archive-RLRGOXDX.mjs} +33 -27
- package/dist/partial-words.mjs +8 -6
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +32 -22
- package/dist/{phrase-module-ZI4WSQVH.mjs → phrase-module-XW5MKWP5.mjs} +3 -2
- package/dist/query-suggestions/merge-worker.mjs +25 -18
- package/dist/query-suggestions.browser.mjs +13 -11
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +34 -27
- package/dist/react-native/chunks/{analysis-change-6BPDPH6K.mjs → analysis-change-QUVDNABS.mjs} +46 -36
- package/dist/{browser/analysis-change-entry-4MH3CZXH.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-7PXRWYUU.mjs → chunk-2PRHILX3.mjs} +53 -19
- package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GIZTJXYW.mjs → chunk-4AV5PPH6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-4Y53T4YE.mjs → chunk-4COWCEY7.mjs} +189 -178
- package/dist/react-native/chunks/{chunk-OL3WDV53.mjs → chunk-4NWR3NGS.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-C3PTWYKT.mjs → chunk-5MSX5FRT.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
- package/dist/react-native/chunks/{chunk-4LCEN2IU.mjs → chunk-6ZELFCK5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-CUH5F57W.mjs → chunk-BITYFZSZ.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-TYIRMPD3.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
- package/dist/{chunk-YTJCGKM4.mjs → react-native/chunks/chunk-EJ33LCHV.mjs} +29 -6
- package/dist/react-native/chunks/{chunk-EIOYM5TO.mjs → chunk-ENLMYKSX.mjs} +3024 -3054
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
- package/dist/{chunk-4UMZ7KQL.mjs → react-native/chunks/chunk-FTZHMRD2.mjs} +2 -1
- package/dist/react-native/chunks/{chunk-ALOIBXWN.mjs → chunk-IAENKE2D.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-QJXTNPLQ.mjs → chunk-KSBYEMCB.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
- package/dist/react-native/chunks/{chunk-HUOYZJ3Q.mjs → chunk-OCSLSH27.mjs} +1561 -933
- package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
- package/dist/react-native/chunks/{chunk-KTTAU63H.mjs → chunk-SK2PWYDH.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-PEHS2UO3.mjs → chunk-TORU2OHQ.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-VXGE4ZXL.mjs → chunk-WVWJNUMN.mjs} +51 -21
- package/dist/react-native/chunks/{chunk-KJIG57UD.mjs → chunk-WW2X2AEI.mjs} +7 -7
- package/dist/react-native/chunks/{chunk-JLIIWJUV.mjs → chunk-YZW4CHM6.mjs} +50 -11
- package/dist/react-native/chunks/{chunk-GJFXPHXI.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
- package/dist/react-native/chunks/{chunk-7GRCBBME.mjs → chunk-ZVQMBF2H.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-N2WUOWLL.mjs → chunk-ZWAIN4GG.mjs} +7 -7
- package/dist/react-native/chunks/{cold-module-5PHF6DZR.mjs → cold-module-N6KFNNZA.mjs} +20 -17
- package/dist/react-native/chunks/{durability-wiring-KO565FZC.mjs → durability-wiring-RN64S2TL.mjs} +76 -32
- package/dist/react-native/chunks/{engine-hooks-MVRRHH6B.mjs → engine-hooks-CWA5CKCA.mjs} +13 -11
- package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
- package/dist/react-native/chunks/{import-YVZA4V4V.mjs → import-5UAWBRJP.mjs} +14 -12
- package/dist/react-native/chunks/{module-ZL5ZG6YB.mjs → module-6RP4ZCBW.mjs} +17 -14
- package/dist/react-native/chunks/{module-H5MVPSP2.mjs → module-TTEVPRCW.mjs} +8 -8
- package/dist/react-native/chunks/{phrase-module-RTVKEWJT.mjs → phrase-module-QK22HSQ2.mjs} +1 -1
- package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
- package/dist/react-native/chunks/{restore-hooks-SILFPU6B.mjs → restore-hooks-ENFMDTWC.mjs} +17 -15
- package/dist/react-native/chunks/{restore-queue-HSYP2AEC.mjs → restore-queue-4R6AASE5.mjs} +3 -3
- package/dist/react-native/chunks/{retention-7I7UAWYK.mjs → retention-5GTFT3GR.mjs} +18 -16
- package/dist/react-native/chunks/{snapshot-EZYB6SLF.mjs → snapshot-5LGPQXFS.mjs} +32 -29
- package/dist/react-native/chunks/{start-SHVZ72I5.mjs → start-ZQJVZ5DN.mjs} +18 -16
- package/dist/react-native/chunks/{write-JUESXHDL.mjs → write-6BRYIIZ7.mjs} +17 -14
- package/dist/react-native/partial-words.mjs +7 -6
- package/dist/react-native/pattern.mjs +1 -1
- package/dist/react-native/query-suggestions.mjs +19 -17
- package/dist/react-native/sync.mjs +47 -13
- package/dist/react-native/synonyms.mjs +92 -24
- package/dist/react.d.ts +7 -7
- package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
- package/dist/{restore-hooks-HZ3ILAMO.mjs → restore-hooks-HXLIEB4A.mjs} +28 -21
- package/dist/{restore-queue-JVGENGGE.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
- package/dist/{retention-HROPV2QU.mjs → retention-3K7ARGAG.mjs} +29 -22
- package/dist/server.d.ts +10 -8
- package/dist/server.mjs +55 -41
- package/dist/{snapshot-4HS2G2UM.mjs → snapshot-O7ICP7NJ.mjs} +46 -39
- package/dist/{start-UTWHGH42.mjs → start-S4PFP6RS.mjs} +31 -24
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/filesystem.mjs +3 -3
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +46 -12
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +46 -12
- package/dist/synonyms.mjs +7 -6
- package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
- package/dist/{thread-6MOXY2KD.mjs → thread-YLJ3ZPQ3.mjs} +25 -20
- package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
- package/dist/vector/search-worker.mjs +6 -6
- package/dist/workers/entry.mjs +17 -6
- package/dist/{write-GTTWWRRG.mjs → write-2OBJGLFS.mjs} +27 -19
- package/openapi.json +71 -0
- package/package.json +15 -8
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/chunk-HNVVEQP7.mjs +0 -44
- package/dist/chunk-WQRN64Q6.mjs +0 -196
- package/dist/direct-executor-G5TK7NLA.mjs +0 -29
- package/dist/react-native/chunks/chunk-3JIBF3XT.mjs +0 -191
- package/dist/browser/{chunk-4WCVMOU3.mjs → chunk-XAWNZ4G2.mjs} +10 -10
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { writeLiveVectors, SINGLE_NODE_PRIMARY_TERM } from './chunk-
|
|
2
|
-
import { vectorsPerFile } from './chunk-
|
|
3
|
-
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-
|
|
4
|
-
import { decodeSegmentManifest } from './chunk-
|
|
1
|
+
import { writeLiveVectors, SINGLE_NODE_PRIMARY_TERM } from './chunk-W7OSSKH5.mjs';
|
|
2
|
+
import { vectorsPerFile } from './chunk-FCJ553HS.mjs';
|
|
3
|
+
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-MW6BR4QP.mjs';
|
|
4
|
+
import { decodeSegmentManifest } from './chunk-CWS55TEX.mjs';
|
|
5
5
|
import { vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-K4ZIGL2O.mjs';
|
|
6
|
-
import { writeCheckpointSegments, commitCheckpointManifest, partitionContentsOf } from './chunk-
|
|
7
|
-
import { manifestKey, manifestFileRefs } from './chunk-
|
|
6
|
+
import { writeCheckpointSegments, commitCheckpointManifest, partitionContentsOf } from './chunk-GPWMUPCA.mjs';
|
|
7
|
+
import { manifestKey, manifestFileRefs } from './chunk-JTYPJF3T.mjs';
|
|
8
8
|
import { DEFAULT_COMPACTION_THRESHOLD } from './chunk-QDZJM7NI.mjs';
|
|
9
9
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
10
10
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/core/partition/growable-uint32.ts
|
|
2
|
+
var GrowableUint32 = class {
|
|
3
|
+
values;
|
|
4
|
+
length = 0;
|
|
5
|
+
constructor(capacity) {
|
|
6
|
+
this.values = new Uint32Array(capacity);
|
|
7
|
+
}
|
|
8
|
+
growTo(needed, kept) {
|
|
9
|
+
let capacity = this.values.length * 2;
|
|
10
|
+
while (capacity < needed) capacity *= 2;
|
|
11
|
+
const next = new Uint32Array(capacity);
|
|
12
|
+
next.set(this.values.subarray(0, kept));
|
|
13
|
+
this.values = next;
|
|
14
|
+
}
|
|
15
|
+
reserve(extra) {
|
|
16
|
+
const needed = this.length + extra;
|
|
17
|
+
if (needed > this.values.length) this.growTo(needed, this.length);
|
|
18
|
+
}
|
|
19
|
+
push(value) {
|
|
20
|
+
if (this.length === this.values.length) this.growTo(this.length + 1, this.length);
|
|
21
|
+
this.values[this.length++] = value;
|
|
22
|
+
}
|
|
23
|
+
ensureIndex(index) {
|
|
24
|
+
if (index >= this.values.length) this.growTo(index + 1, this.values.length);
|
|
25
|
+
}
|
|
26
|
+
clear() {
|
|
27
|
+
this.length = 0;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { GrowableUint32 };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { encodeDocumentJson } from './chunk-6RC4K46J.mjs';
|
|
2
2
|
import { loadFailed, sectionNamed, PAGED_SEGMENT_ENVELOPE_VERSION, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, SMALLEST_BLOCK_POSTINGS, DOCUMENT_BLOCK_BYTES, decodeSections, DOCUMENT_BLOCK_MIN_RAW_BYTES, ID_SAMPLE_INTERVAL, POSITION_WIDTH_BYTES, POSTING_WIDTH_BYTES, RECORD_PAGE_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES } from './chunk-WZ7YV54N.mjs';
|
|
3
3
|
import { createVectorFileReader } from './chunk-FOCV4CBZ.mjs';
|
|
4
|
-
import { writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-
|
|
5
|
-
import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-BNL5OPRV.mjs';
|
|
5
|
+
import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns, littleEndianBytes, uint32sFrom, uint64Bytes, decodeSurfaceForms } from './chunk-CQZXZ75V.mjs';
|
|
6
|
+
import { setNestedValue } from './chunk-KCQYFO4K.mjs';
|
|
7
|
+
import { engineVersionParts } from './chunk-FEZVDOWX.mjs';
|
|
8
|
+
import { generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, decodeStoredDocument, mergeFieldLengths, mergeSurfaceForms, encodeSurfaceTable, mergePartialWords, mergeFieldIndexes, resolvePartitionInsertOptions, decodeSurfaceTable, createSharedFrozenSegment, shareSegmentArrays, selectionKeeps, fieldIndexRemapOf, freezeSegmentShared, createFrozenSegment, holdsADiscardedField, endOfValue } from './chunk-VZ2ONHEE.mjs';
|
|
9
|
+
import { isCompositePartition, buildPartialWordTableFrom, createPartitionIndex, createCompositePartition, mergeDocFrequencies } from './chunk-PIH5SJ4N.mjs';
|
|
9
10
|
import { HEADER_SIZE, requireWithinFileLimit, writeHeader, readHeader } from './chunk-3OH67G7R.mjs';
|
|
10
11
|
import { crc32Init, crc32Update, crc32Final, crc32 } from './chunk-7GXJUJ24.mjs';
|
|
11
|
-
import { parseVectorDimension } from './chunk-
|
|
12
|
-
import {
|
|
12
|
+
import { flattenSchema, parseVectorDimension, encodeDocument } from './chunk-W5EB5XKI.mjs';
|
|
13
|
+
import { scanPostingBlocks } from './chunk-FB6463IN.mjs';
|
|
13
14
|
import { VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
14
15
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
15
|
-
import { compareCodePoints } from './chunk-
|
|
16
|
+
import { compareCodePoints } from './chunk-TBC3XUL2.mjs';
|
|
16
17
|
import { decode, encode } from '@msgpack/msgpack';
|
|
17
18
|
import { deflateRawSync, inflateRawSync } from 'zlib';
|
|
18
19
|
|
|
@@ -1310,7 +1311,7 @@ async function coldFieldOf(checkpoint, field) {
|
|
|
1310
1311
|
const dimension = fieldType === void 0 ? null : parseVectorDimension(fieldType);
|
|
1311
1312
|
if (dimension === null) return null;
|
|
1312
1313
|
const withPath = async (ref) => ({ ref, path: await directory.pathOf(ref.key) });
|
|
1313
|
-
const { openColdVectorField } = await import('./cold-module-
|
|
1314
|
+
const { openColdVectorField } = await import('./cold-module-VOJXMNZB.mjs');
|
|
1314
1315
|
return openColdVectorField({
|
|
1315
1316
|
fieldPath: field.fieldPath,
|
|
1316
1317
|
dimension,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { unrefInterval, DEFAULT_HISTORY_MAX_AGE_MS } from './chunk-YEKL4JBK.mjs';
|
|
2
|
-
import { archiveLayout } from './chunk-
|
|
3
|
-
import { syncStorageOf } from './chunk-QJVOLKU6.mjs';
|
|
2
|
+
import { archiveLayout } from './chunk-JSV6OQ4C.mjs';
|
|
4
3
|
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ZYAY26KG.mjs';
|
|
4
|
+
import { syncStorageOf } from './chunk-QJVOLKU6.mjs';
|
|
5
5
|
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
6
|
-
import { manifestFileRefs } from './chunk-
|
|
6
|
+
import { manifestFileRefs } from './chunk-JTYPJF3T.mjs';
|
|
7
7
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
8
|
-
import { emitEngineEvent, encodeIndexConfiguration } from './chunk-
|
|
8
|
+
import { emitEngineEvent, encodeIndexConfiguration } from './chunk-FEZVDOWX.mjs';
|
|
9
9
|
import { INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-GH4WQ22V.mjs';
|
|
10
10
|
import { openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
|
|
11
11
|
import { withOpenIndex } from './chunk-Y4WPNHMC.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { suggestionsIndexName, markedSuggestionIndexes, ensureSuggestionsIndex, suggestionDocument, ORIGIN_MANUAL, removeSuggestions, enabledSetting, mergeHistory, groupsToWrite, meetsMinResults } from './chunk-
|
|
2
|
-
import { normaliseBan, banListFromInput, withState } from './chunk-
|
|
3
|
-
import { invalidSetting, resolveSetting, validateSetting, requireFieldsInSchema } from './chunk-
|
|
1
|
+
import { suggestionsIndexName, markedSuggestionIndexes, ensureSuggestionsIndex, suggestionDocument, ORIGIN_MANUAL, removeSuggestions, enabledSetting, mergeHistory, groupsToWrite, meetsMinResults } from './chunk-EYD7K3H6.mjs';
|
|
2
|
+
import { normaliseBan, banListFromInput, withState } from './chunk-ODYKO5TO.mjs';
|
|
3
|
+
import { invalidSetting, resolveSetting, validateSetting, requireFieldsInSchema } from './chunk-UD5HIS4U.mjs';
|
|
4
4
|
import { isGroup, GROUP_FORMAT, acceptedPhrase } from './chunk-GQPTDQCL.mjs';
|
|
5
5
|
import { MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT } from './chunk-5YNRKI2C.mjs';
|
|
6
6
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/geo/constants.ts
|
|
2
|
+
var DEG_TO_RAD = Math.PI / 180;
|
|
3
|
+
var MAX_LATITUDE_DEGREES = 90;
|
|
4
|
+
var MAX_LONGITUDE_DEGREES = 180;
|
|
5
|
+
var MIN_POLYGON_POINTS = 3;
|
|
6
|
+
var ANTIMERIDIAN_SPAN_DEGREES = 180;
|
|
7
|
+
var FULL_TURN_DEGREES = 360;
|
|
8
|
+
var EARTH_RADIUS_METERS = 63710088e-1;
|
|
9
|
+
var LOCATION_CODE_BITS_PER_AXIS = 26;
|
|
10
|
+
var MAX_COVERING_CELLS = 16;
|
|
11
|
+
|
|
12
|
+
export { ANTIMERIDIAN_SPAN_DEGREES, DEG_TO_RAD, EARTH_RADIUS_METERS, FULL_TURN_DEGREES, LOCATION_CODE_BITS_PER_AXIS, MAX_COVERING_CELLS, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES, MIN_POLYGON_POINTS };
|
|
@@ -16,17 +16,40 @@ function exceedsCodePoints(value, maximum) {
|
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
var SURROGATE_UNIT = /[\ud800-\udfff]/;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
var REPLACEMENT_CHARACTER = "\uFFFD";
|
|
20
|
+
function firstUnpairedSurrogate(value) {
|
|
21
21
|
for (let i = 0; i < value.length; i++) {
|
|
22
22
|
const unit = value.charCodeAt(i);
|
|
23
23
|
if (unit < 55296 || unit >= 57344) continue;
|
|
24
|
-
if (unit >= 56320) return
|
|
24
|
+
if (unit >= 56320) return i;
|
|
25
25
|
const low = value.charCodeAt(i + 1);
|
|
26
|
-
if (!(low >= 56320 && low < 57344)) return
|
|
26
|
+
if (!(low >= 56320 && low < 57344)) return i;
|
|
27
27
|
i++;
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return -1;
|
|
30
|
+
}
|
|
31
|
+
function holdsUnpairedSurrogate(value) {
|
|
32
|
+
return SURROGATE_UNIT.test(value) && firstUnpairedSurrogate(value) >= 0;
|
|
33
|
+
}
|
|
34
|
+
function withUnpairedSurrogatesReplaced(value) {
|
|
35
|
+
const first = firstUnpairedSurrogate(value);
|
|
36
|
+
if (first < 0) return value;
|
|
37
|
+
let repaired = value.slice(0, first);
|
|
38
|
+
for (let i = first; i < value.length; i++) {
|
|
39
|
+
const unit = value.charCodeAt(i);
|
|
40
|
+
if (unit < 55296 || unit >= 57344) {
|
|
41
|
+
repaired += value[i];
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const low = value.charCodeAt(i + 1);
|
|
45
|
+
if (unit < 56320 && low >= 56320 && low < 57344) {
|
|
46
|
+
repaired += value.slice(i, i + 2);
|
|
47
|
+
i++;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
repaired += REPLACEMENT_CHARACTER;
|
|
51
|
+
}
|
|
52
|
+
return repaired;
|
|
30
53
|
}
|
|
31
54
|
function codePointCount(value) {
|
|
32
55
|
let counted = 0;
|
|
@@ -53,4 +76,4 @@ function compareCodePoints(a, b) {
|
|
|
53
76
|
return adjustUtf16Unit(a.charCodeAt(i)) - adjustUtf16Unit(b.charCodeAt(i));
|
|
54
77
|
}
|
|
55
78
|
|
|
56
|
-
export { codePointCount, compareCodePoints, exceedsCodePoints, holdsUnpairedSurrogate };
|
|
79
|
+
export { codePointCount, compareCodePoints, exceedsCodePoints, holdsUnpairedSurrogate, withUnpairedSurrogatesReplaced };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { codeLoader } from './chunk-FB6463IN.mjs';
|
|
2
|
+
|
|
3
|
+
// src/workers/vector-code.ts
|
|
4
|
+
var vectorCode = codeLoader(() => import('./module-N55W4Q5C.mjs'), "vector");
|
|
5
|
+
var loadedVectorCode = vectorCode.loaded;
|
|
6
|
+
var requireLoadedVectorCode = vectorCode.require;
|
|
7
|
+
var loadVectorCode = vectorCode.load;
|
|
8
|
+
var loadVectorCodeFor = vectorCode.loadFor;
|
|
9
|
+
|
|
10
|
+
export { loadVectorCode, loadVectorCodeFor, loadedVectorCode, requireLoadedVectorCode };
|
|
@@ -4,6 +4,7 @@ var PRUNING_REJECTION_SLACK = 1e-12;
|
|
|
4
4
|
var SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY = 1024;
|
|
5
5
|
var SEGMENT_TOKEN_TABLE_START = 1 << 12;
|
|
6
6
|
var PHRASE_ROWS_START = 16;
|
|
7
|
+
var FIELD_RUN_ENTRIES_START = 8;
|
|
7
8
|
var PHRASE_SORT_RADIX_BITS = 11;
|
|
8
9
|
var PHRASE_SORT_CLOCK_ROWS = 65536;
|
|
9
10
|
var SEGMENT_POSTING_LOG_START = 1 << 14;
|
|
@@ -14,4 +15,4 @@ var FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION = 0.9;
|
|
|
14
15
|
var SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD = 1024;
|
|
15
16
|
var SORT_COLUMN_REBUILD_FRACTION_SHIFT = 2;
|
|
16
17
|
|
|
17
|
-
export { FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION, LOOKUP_KEY_SCRATCH_BYTES, PHRASE_ROWS_START, PHRASE_SORT_CLOCK_ROWS, PHRASE_SORT_RADIX_BITS, PRUNING_REJECTION_SLACK, SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY, SEGMENT_FIELD_SCRATCH_START, SEGMENT_POSITION_POOL_START, SEGMENT_POSTING_LOG_START, SEGMENT_TOKEN_TABLE_START, SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD, SORT_COLUMN_REBUILD_FRACTION_SHIFT, TARGET_BLOCK_ENTRIES };
|
|
18
|
+
export { FIELD_RUN_ENTRIES_START, FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION, LOOKUP_KEY_SCRATCH_BYTES, PHRASE_ROWS_START, PHRASE_SORT_CLOCK_ROWS, PHRASE_SORT_RADIX_BITS, PRUNING_REJECTION_SLACK, SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY, SEGMENT_FIELD_SCRATCH_START, SEGMENT_POSITION_POOL_START, SEGMENT_POSTING_LOG_START, SEGMENT_TOKEN_TABLE_START, SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD, SORT_COLUMN_REBUILD_FRACTION_SHIFT, TARGET_BLOCK_ENTRIES };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isGroup } from './chunk-GQPTDQCL.mjs';
|
|
2
2
|
import { MAX_MIN_PEOPLE, MIN_MIN_PEOPLE, DEFAULT_MIN_PEOPLE, MAX_MIN_RESULTS, MIN_MIN_RESULTS, DEFAULT_MIN_RESULTS, MAX_RETENTION_DAYS, MIN_RETENTION_DAYS, DEFAULT_RETENTION_DAYS, MAX_MAX_PHRASES_PER_DAY, DEFAULT_MAX_PHRASES_PER_DAY, MAX_MAX_PHRASES_PER_PERSON, DEFAULT_MAX_PHRASES_PER_PERSON, MAX_MAX_PEOPLE_PER_DAY, DEFAULT_MAX_PEOPLE_PER_DAY, MAX_MAX_GROUPS, DEFAULT_MAX_GROUPS, MAX_MAX_LENGTH, DEFAULT_MAX_LENGTH, DEFAULT_MIN_LETTERS, MAX_MAX_WORDS, DEFAULT_MAX_WORDS, DEFAULT_MAX_DIGITS, MAX_MAX_MERGE_PHRASES, DEFAULT_MAX_MERGE_PHRASES, MAX_MERGE_MEMORY_BYTES, MIN_MERGE_MEMORY_BYTES, DEFAULT_MERGE_MEMORY_BYTES, MAX_SAVE_INTERVAL_MS, MIN_SAVE_INTERVAL_MS, DEFAULT_SAVE_INTERVAL_MS, MAX_RESULT_CHECKS_PER_SECOND, DEFAULT_RESULT_CHECKS_PER_SECOND, MAX_SCHEDULE_LENGTH, SCHEDULE_LOOKAHEAD_DAYS, DEFAULT_TIME_ZONE, DEFAULT_SCHEDULE, MAX_FIELDS, SCHEDULE_OFF, MAX_SETTING_BYTES, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_PERSON_PAIRS_PER_DAY, MAX_FILE_PEOPLE_PER_DAY, MAX_MERGE_PEOPLE, DAY_MS } from './chunk-5YNRKI2C.mjs';
|
|
3
|
-
import { flattenSchema } from './chunk-
|
|
3
|
+
import { flattenSchema } from './chunk-W5EB5XKI.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
5
5
|
import { encode } from '@msgpack/msgpack';
|
|
6
6
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { requireAnalysisRebuildMemory } from './chunk-
|
|
2
|
-
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, holdSyncEpochChange, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-
|
|
1
|
+
import { requireAnalysisRebuildMemory } from './chunk-RCX4WNLC.mjs';
|
|
2
|
+
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, holdSyncEpochChange, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-FEZVDOWX.mjs';
|
|
3
3
|
import { ANALYSIS_CHANGE_MEMBERS, ANALYSIS_HOLD_APPLY_INTERVAL_MS } from './chunk-EEBCDP36.mjs';
|
|
4
|
-
import { resolvePartialWordAnalysis } from './chunk-
|
|
5
|
-
import { createPartitionIndex
|
|
6
|
-
import { configUnderAnalysis, targetOfPending } from './chunk-
|
|
4
|
+
import { resolvePartialWordAnalysis } from './chunk-VZ2ONHEE.mjs';
|
|
5
|
+
import { createPartitionIndex } from './chunk-PIH5SJ4N.mjs';
|
|
6
|
+
import { configUnderAnalysis, targetOfPending } from './chunk-I5B7RXU7.mjs';
|
|
7
7
|
import { getLanguage, resolveIndexAnalysis } from './chunk-RZWWB2XR.mjs';
|
|
8
|
+
import { ARRAY_POSITION_GAP } from './chunk-FB6463IN.mjs';
|
|
8
9
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
9
|
-
import { compareCodePoints } from './chunk-
|
|
10
|
+
import { compareCodePoints } from './chunk-TBC3XUL2.mjs';
|
|
10
11
|
|
|
11
12
|
// src/engine/analysis-change/run.ts
|
|
12
13
|
function createHold(generation) {
|
|
@@ -358,6 +359,15 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
358
359
|
manager.remove(entry.docId, removedSpellings);
|
|
359
360
|
}
|
|
360
361
|
manager.insert(entry.docId, partitionDoc);
|
|
362
|
+
const replicated = {
|
|
363
|
+
indexName,
|
|
364
|
+
docId: entry.docId,
|
|
365
|
+
document: entry.document,
|
|
366
|
+
requestId: `replicate-insert-${entry.docId}`
|
|
367
|
+
};
|
|
368
|
+
ctx.orchestrator.recordMainWrite(
|
|
369
|
+
overwrote ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
370
|
+
);
|
|
361
371
|
if (extractedVectors.size > 0) {
|
|
362
372
|
insertDocumentVectors(entry.docId, extractedVectors, vecIndexes, manager.partitionIdOf(entry.docId));
|
|
363
373
|
for (const fieldPath of extractedVectors.keys()) {
|
|
@@ -369,44 +379,49 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
369
379
|
} catch (err) {
|
|
370
380
|
warnHookError("afterInsert", err);
|
|
371
381
|
}
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
docId: entry.docId,
|
|
375
|
-
document: entry.document,
|
|
376
|
-
requestId: `replicate-insert-${entry.docId}`
|
|
377
|
-
};
|
|
378
|
-
await ctx.orchestrator.replicateToWorkers(
|
|
379
|
-
overwrote ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
380
|
-
);
|
|
382
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName);
|
|
383
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
381
384
|
return;
|
|
382
385
|
}
|
|
383
386
|
if (entry.action === "remove") {
|
|
384
387
|
const removedSpellings = manager.removedSpellingsOf(entry.docId);
|
|
385
388
|
manager.remove(entry.docId, removedSpellings);
|
|
386
|
-
|
|
387
|
-
try {
|
|
388
|
-
await ctx.pluginRegistry.runHook("afterRemove", { indexName, docId: entry.docId });
|
|
389
|
-
} catch (err) {
|
|
390
|
-
warnHookError("afterRemove", err);
|
|
391
|
-
}
|
|
392
|
-
await ctx.orchestrator.replicateToWorkers({
|
|
389
|
+
ctx.orchestrator.recordMainWrite({
|
|
393
390
|
type: "remove",
|
|
394
391
|
indexName,
|
|
395
392
|
docId: entry.docId,
|
|
396
393
|
requestId: `replicate-remove-${entry.docId}`,
|
|
397
394
|
removedSpellings
|
|
398
395
|
});
|
|
396
|
+
removeDocumentVectors(entry.docId, vecIndexes);
|
|
397
|
+
try {
|
|
398
|
+
await ctx.pluginRegistry.runHook("afterRemove", { indexName, docId: entry.docId });
|
|
399
|
+
} catch (err) {
|
|
400
|
+
warnHookError("afterRemove", err);
|
|
401
|
+
}
|
|
402
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName, "none");
|
|
403
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
399
404
|
return;
|
|
400
405
|
}
|
|
401
406
|
if (entry.action === "update" && entry.document) {
|
|
402
407
|
const oldDocument = manager.get(entry.docId);
|
|
403
408
|
const { updateDoc, updateVectors } = applyReplayUpdateVectors(entry, vectorFieldPaths);
|
|
404
409
|
const removedSpellings = manager.removedSpellingsOf(entry.docId);
|
|
405
|
-
|
|
410
|
+
const held = manager.has(entry.docId);
|
|
411
|
+
if (held) {
|
|
406
412
|
manager.update(entry.docId, updateDoc, void 0, removedSpellings);
|
|
407
413
|
} else {
|
|
408
414
|
manager.insert(entry.docId, updateDoc);
|
|
409
415
|
}
|
|
416
|
+
const replicated = {
|
|
417
|
+
indexName,
|
|
418
|
+
docId: entry.docId,
|
|
419
|
+
document: entry.document,
|
|
420
|
+
requestId: `replicate-update-${entry.docId}`
|
|
421
|
+
};
|
|
422
|
+
ctx.orchestrator.recordMainWrite(
|
|
423
|
+
held ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
424
|
+
);
|
|
410
425
|
for (const [fieldPath, newVec] of updateVectors) {
|
|
411
426
|
const vecIndex = vecIndexes.get(fieldPath);
|
|
412
427
|
if (!vecIndex) continue;
|
|
@@ -435,14 +450,8 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
435
450
|
} catch (err) {
|
|
436
451
|
warnHookError("afterUpdate", err);
|
|
437
452
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
indexName,
|
|
441
|
-
docId: entry.docId,
|
|
442
|
-
document: entry.document,
|
|
443
|
-
requestId: `replicate-update-${entry.docId}`,
|
|
444
|
-
removedSpellings
|
|
445
|
-
});
|
|
453
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName);
|
|
454
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
446
455
|
}
|
|
447
456
|
}
|
|
448
457
|
async function replayQueued(manager, indexName, waq, ctx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { installSuggestionHooks } from './chunk-
|
|
1
|
+
import { installSuggestionHooks } from './chunk-OG7UGJ6F.mjs';
|
|
2
2
|
import { attachedRuntimeOf, attachRuntime } from './chunk-S5LN746F.mjs';
|
|
3
|
-
import { keyBytesOf, QuerySuggestionsRuntime, createLocalHost } from './chunk-
|
|
3
|
+
import { keyBytesOf, QuerySuggestionsRuntime, createLocalHost } from './chunk-EYD7K3H6.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/start.ts
|
|
6
6
|
var starting = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, buildPartialWordTableFrom, createSurfaceRegistry, encodePartialSpellingsOf, recordValueSize, patternIndexOf, encodeFieldIndexes, countPartialSpelling,
|
|
1
|
+
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, buildPartialWordTableFrom, createSurfaceRegistry, encodePartialSpellingsOf, recordValueSize, patternIndexOf, encodeFieldIndexes, countPartialSpelling, documentWithOwnBuffers, readProjectedPath, copyVectorsInto, isCompositePartition, partialSpellingsOfDocuments, createFrozenPartialWords, requirePatternSearch, documentValueBytes, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, createNumericIndex, createBooleanIndex, createEnumIndex, ValueAffixes, readResidentMemory, createCompositePartition } from './chunk-PIH5SJ4N.mjs';
|
|
2
2
|
import { readHeapStatistics } from './chunk-IPN7S4KX.mjs';
|
|
3
3
|
import { fnv1a } from './chunk-KAKQ74LS.mjs';
|
|
4
|
-
import { GrowableUint32
|
|
5
|
-
import {
|
|
6
|
-
import { partialFieldsOf, schemaFieldsOf, encodeDocument, extractVectorFieldsFromSchema } from './chunk-
|
|
4
|
+
import { GrowableUint32 } from './chunk-RLOES5SX.mjs';
|
|
5
|
+
import { sameFields, visitDocumentSurfaceSpellings, visitDocumentSpellings } from './chunk-PV2CG7EJ.mjs';
|
|
6
|
+
import { partialFieldsOf, getNestedValue, schemaFieldsOf, tokenizeOptions, encodeDocument, validateDocument, validateDocumentStrict, extractVectorFieldsFromSchema } from './chunk-W5EB5XKI.mjs';
|
|
7
7
|
import { fuzzyPrefixOf, boundedLevenshtein } from './chunk-GES7U2PM.mjs';
|
|
8
8
|
import { isWordIndexedBase } from './chunk-I54T6CQP.mjs';
|
|
9
|
-
import { synonymSearchModule } from './chunk-
|
|
9
|
+
import { synonymSearchModule } from './chunk-I5B7RXU7.mjs';
|
|
10
10
|
import { resolveIndexAnalysis, getLanguage } from './chunk-RZWWB2XR.mjs';
|
|
11
|
-
import { encodeStringBlob, encodeLookupKey,
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { encodeStringBlob, encodeLookupKey, codePointOrder } from './chunk-G6HRSGOU.mjs';
|
|
12
|
+
import { loadVectorCodeFor, loadedVectorCode, loadVectorCode, requireLoadedVectorCode } from './chunk-TDIK6NTV.mjs';
|
|
13
|
+
import { loadGeoCodeFor, ARRAY_POSITION_GAP, MAX_TERM_FREQUENCY, loadPhraseCodeFor, createLoadedGeoIndex } from './chunk-FB6463IN.mjs';
|
|
14
|
+
import { bitsetHas, bitsetSet, createBitSet } from './chunk-7V5IUP2T.mjs';
|
|
14
15
|
import { PROTOTYPE_POLLUTION_KEYS } from './chunk-L5ORED7V.mjs';
|
|
16
|
+
import { visitTokens } from './chunk-A4L7YTKX.mjs';
|
|
17
|
+
import { SEGMENT_TOKEN_TABLE_START, SEGMENT_POSTING_LOG_START, SEGMENT_POSITION_POOL_START, SEGMENT_FIELD_SCRATCH_START, FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION } from './chunk-U55XJEIG.mjs';
|
|
15
18
|
import { createDocIdMap } from './chunk-LQG5G2LY.mjs';
|
|
16
19
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
17
|
-
import { compareCodePoints } from './chunk-
|
|
20
|
+
import { compareCodePoints } from './chunk-TBC3XUL2.mjs';
|
|
18
21
|
import { Decoder, decode } from '@msgpack/msgpack';
|
|
19
22
|
|
|
20
23
|
// src/core/synonyms/platform.ts
|
|
@@ -648,6 +651,15 @@ async function runQueryAction(entry, action) {
|
|
|
648
651
|
return { count: result.totalMatched };
|
|
649
652
|
}
|
|
650
653
|
|
|
654
|
+
// src/workers/schema-code.ts
|
|
655
|
+
function loadSchemaCodeFor(schema) {
|
|
656
|
+
const vectorCode = loadVectorCodeFor(schema);
|
|
657
|
+
const geoCode = loadGeoCodeFor(schema);
|
|
658
|
+
if (vectorCode === null) return geoCode;
|
|
659
|
+
if (geoCode === null) return vectorCode;
|
|
660
|
+
return Promise.all([vectorCode, geoCode]);
|
|
661
|
+
}
|
|
662
|
+
|
|
651
663
|
// src/core/id-generator.ts
|
|
652
664
|
function generateId() {
|
|
653
665
|
const bytes = new Uint8Array(16);
|
|
@@ -2248,7 +2260,7 @@ function storedFrequenciesOf(source) {
|
|
|
2248
2260
|
function buildGeoReaders(entries) {
|
|
2249
2261
|
const readers = /* @__PURE__ */ new Map();
|
|
2250
2262
|
for (const entry of entries) {
|
|
2251
|
-
const index =
|
|
2263
|
+
const index = createLoadedGeoIndex();
|
|
2252
2264
|
for (let i = 0; i < entry.docIds.length; i++) {
|
|
2253
2265
|
index.insert(entry.docIds[i], entry.latitudes[i], entry.longitudes[i]);
|
|
2254
2266
|
}
|
|
@@ -2304,6 +2316,7 @@ function assembleFrozenSegment(segmentId, source, documentSource, sharedSnapshot
|
|
|
2304
2316
|
sharedSnapshot,
|
|
2305
2317
|
paged: pagedParts?.access ?? null,
|
|
2306
2318
|
arrays: source,
|
|
2319
|
+
tombstones,
|
|
2307
2320
|
invertedIdx: createFrozenInvertedReader(source.tokenTable, postingViews, counts),
|
|
2308
2321
|
docStore,
|
|
2309
2322
|
stats: buildStatsView(counts),
|
|
@@ -3087,7 +3100,7 @@ function indexFilterValue(indexes, ordinal, fieldPath, fieldType, value) {
|
|
|
3087
3100
|
for (const entry of fieldType === "enum" ? [value] : value) index.insert(ordinal, entry);
|
|
3088
3101
|
} else if (fieldType === "geopoint") {
|
|
3089
3102
|
const point = value;
|
|
3090
|
-
indexOf(indexes.geoIndexes, fieldPath,
|
|
3103
|
+
indexOf(indexes.geoIndexes, fieldPath, createLoadedGeoIndex).insert(ordinal, point.lat, point.lon);
|
|
3091
3104
|
}
|
|
3092
3105
|
}
|
|
3093
3106
|
function refuseRepeatedDocIds(documents) {
|
|
@@ -3238,7 +3251,7 @@ async function attachSegments(entry, action) {
|
|
|
3238
3251
|
growPartitionsTo(entry.manager, segment.partitionId);
|
|
3239
3252
|
const surfaceForms = segment.survivingSurfaceForms;
|
|
3240
3253
|
const spellings = surfaceForms === void 0 ? void 0 : NO_REMOVED_SPELLINGS;
|
|
3241
|
-
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-
|
|
3254
|
+
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-JYHFTVPS.mjs')).createPagedFrozenSegment(segment.snapshot) : createSharedFrozenSegment(segment.snapshot, surfaceForms);
|
|
3242
3255
|
for (const docId of segment.tombstonedDocIds ?? []) frozen.tombstoneDocument(docId, spellings);
|
|
3243
3256
|
entry.manager.attachFrozenSegment(segment.partitionId, frozen);
|
|
3244
3257
|
}
|
|
@@ -3293,7 +3306,7 @@ function runSegmentAction(entry, action) {
|
|
|
3293
3306
|
case "attachSegments":
|
|
3294
3307
|
return attachSegments(entry, action);
|
|
3295
3308
|
case "adoptDiskSegments":
|
|
3296
|
-
return import('./module-
|
|
3309
|
+
return import('./module-JYHFTVPS.mjs').then((code) => code.adoptSegmentsOnWorker(entry.manager, action));
|
|
3297
3310
|
case "compactSegments": {
|
|
3298
3311
|
const partition = requireComposite(entry, action.indexName, action.partitionId, "compact");
|
|
3299
3312
|
return mergeFrozenSegments(
|
|
@@ -3532,7 +3545,7 @@ function createDirectExecutor(options) {
|
|
|
3532
3545
|
);
|
|
3533
3546
|
}
|
|
3534
3547
|
case "createIndex": {
|
|
3535
|
-
const loading =
|
|
3548
|
+
const loading = loadSchemaCodeFor(action.config.schema);
|
|
3536
3549
|
if (loading !== null) await loading;
|
|
3537
3550
|
const language = getLanguage(action.config.language ?? "english");
|
|
3538
3551
|
const manager = addIndex(
|
|
@@ -3584,16 +3597,19 @@ function createDirectExecutor(options) {
|
|
|
3584
3597
|
case "insert": {
|
|
3585
3598
|
const entry = requireIndex(action.indexName);
|
|
3586
3599
|
entry.manager.insert(action.docId, action.document, action.skipClone ? { skipClone: true } : void 0);
|
|
3600
|
+
options?.onDocumentWrite?.(action);
|
|
3587
3601
|
return void 0;
|
|
3588
3602
|
}
|
|
3589
3603
|
case "remove": {
|
|
3590
3604
|
const entry = requireIndex(action.indexName);
|
|
3591
3605
|
entry.manager.remove(action.docId, action.removedSpellings);
|
|
3606
|
+
options?.onDocumentWrite?.(action);
|
|
3592
3607
|
return void 0;
|
|
3593
3608
|
}
|
|
3594
3609
|
case "update": {
|
|
3595
3610
|
const entry = requireIndex(action.indexName);
|
|
3596
3611
|
entry.manager.update(action.docId, action.document, void 0, action.removedSpellings);
|
|
3612
|
+
options?.onDocumentWrite?.(action);
|
|
3597
3613
|
return void 0;
|
|
3598
3614
|
}
|
|
3599
3615
|
case "query":
|
|
@@ -3640,6 +3656,7 @@ function createDirectExecutor(options) {
|
|
|
3640
3656
|
entry.manager.resetVectorIndexes(vectorIndexesFor(action.indexName, entry.config));
|
|
3641
3657
|
entry.vectorIndexes = entry.manager.getVectorIndexes();
|
|
3642
3658
|
entry.vectorCopies = createHeldVectorCopies();
|
|
3659
|
+
options?.onDocumentWrite?.(action);
|
|
3643
3660
|
return void 0;
|
|
3644
3661
|
}
|
|
3645
3662
|
case "serialize": {
|
|
@@ -3695,4 +3712,4 @@ function createDirectExecutor(options) {
|
|
|
3695
3712
|
};
|
|
3696
3713
|
}
|
|
3697
3714
|
|
|
3698
|
-
export { assemblePagedFrozenSegment, availableSynonymModule, buildSegmentPayload, createDirectExecutor, createEncodedDocumentSource, createFrozenSegment, createPartitionManager, createPartitionRouter, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, decodeSurfaceTable, encodeSurfaceTable, endOfValue, fieldIndexRemapOf, freezeSegmentShared, generateId, holdsADiscardedField, isEmptySynonymSet, mergeFieldIndexes, mergeFieldLengths, mergeFrozenSegments, mergePartialWords, mergeSegmentContents, mergeSurfaceForms, registerSynonyms, resolvePartialWordAnalysis, resolvePartitionInsertOptions, segmentArraysOf, selectionKeeps, shareSegmentArrays, synonymModule, wrapFrozenTokenTable };
|
|
3715
|
+
export { assemblePagedFrozenSegment, availableSynonymModule, buildSegmentPayload, createDirectExecutor, createEncodedDocumentSource, createFrozenSegment, createPartitionManager, createPartitionRouter, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, decodeSurfaceTable, encodeSurfaceTable, endOfValue, fieldIndexRemapOf, freezeSegmentShared, generateId, holdsADiscardedField, isEmptySynonymSet, loadSchemaCodeFor, mergeFieldIndexes, mergeFieldLengths, mergeFrozenSegments, mergePartialWords, mergeSegmentContents, mergeSurfaceForms, registerSynonyms, resolvePartialWordAnalysis, resolvePartitionInsertOptions, segmentArraysOf, selectionKeeps, shareSegmentArrays, synonymModule, wrapFrozenTokenTable };
|