@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,8 +1,8 @@
|
|
|
1
|
+
import { resolveSetting, isGroup, isNormalPhrase } from './chunk-25MTVDYD.mjs';
|
|
1
2
|
import { dayFileKey, restoreStagingPrefix, restoredFileKey, listHistoryFolder, historyFileOf } from './chunk-OEDCEZXJ.mjs';
|
|
2
|
-
import { resolveSetting, isGroup, isNormalPhrase } from './chunk-KKAMCABR.mjs';
|
|
3
3
|
import { MAX_HISTORY_FILE_BYTES, KEY_FINGERPRINT_BYTES, DAY_MS, SCRAMBLED_ID_BYTES, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_INDEX_UUID_LENGTH, MAX_MAX_LENGTH, MAX_MAX_WORDS, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-7IGKGWSQ.mjs';
|
|
4
|
-
import { packEnvelopeWithChecksum } from './chunk-
|
|
5
|
-
import { openChecksummedEnvelope, HEADER_SIZE, crc32 } from './chunk-
|
|
4
|
+
import { packEnvelopeWithChecksum } from './chunk-N23GL72Q.mjs';
|
|
5
|
+
import { openChecksummedEnvelope, HEADER_SIZE, crc32 } from './chunk-DUH6QUVU.mjs';
|
|
6
6
|
|
|
7
7
|
// src/query-suggestions/msgpack-cursor.ts
|
|
8
8
|
var MalformedPayload = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-
|
|
1
|
+
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-C4FJ3WDY.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/engine/export/json-line.ts
|
|
@@ -1,91 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-JIJXMI42.mjs';
|
|
1
|
+
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-DUH6QUVU.mjs';
|
|
3
2
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
4
3
|
import { decode } from '@msgpack/msgpack';
|
|
5
4
|
|
|
6
|
-
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
7
|
-
if (entry.document === null) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const document = decode(entry.document);
|
|
11
|
-
restoreVectorFields(document, vectorFieldPaths);
|
|
12
|
-
const documentId = entry.documentId;
|
|
13
|
-
if (manager.has(documentId)) {
|
|
14
|
-
removeDocumentVectors(documentId, vecIndexes);
|
|
15
|
-
manager.remove(documentId);
|
|
16
|
-
}
|
|
17
|
-
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
18
|
-
manager.insert(documentId, partitionDoc);
|
|
19
|
-
try {
|
|
20
|
-
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
21
|
-
} catch (err) {
|
|
22
|
-
manager.remove(documentId);
|
|
23
|
-
throw err;
|
|
24
|
-
}
|
|
25
|
-
if (!schedulesGraphBuild) return;
|
|
26
|
-
for (const fieldPath of extractedVectors.keys()) {
|
|
27
|
-
const vecIndex = vecIndexes.get(fieldPath);
|
|
28
|
-
if (vecIndex) {
|
|
29
|
-
vecIndex.scheduleBuild();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
34
|
-
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
35
|
-
if (!manager.has(entry.documentId)) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
manager.remove(entry.documentId, removedSpellings);
|
|
39
|
-
}
|
|
40
|
-
function restoreVectorFields(document, vectorFieldPaths) {
|
|
41
|
-
for (const fieldPath of vectorFieldPaths) {
|
|
42
|
-
const value = getNestedValue(document, fieldPath);
|
|
43
|
-
if (value instanceof Uint8Array && !(value instanceof Float32Array)) {
|
|
44
|
-
if (value.byteLength % 4 !== 0) {
|
|
45
|
-
throw new Error(
|
|
46
|
-
`Vector field "${fieldPath}" has invalid byte length ${value.byteLength} (must be divisible by 4)`
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
const elementCount = value.byteLength / 4;
|
|
50
|
-
const float32 = new Float32Array(elementCount);
|
|
51
|
-
const dataView = new DataView(value.buffer, value.byteOffset, value.byteLength);
|
|
52
|
-
for (let i = 0; i < elementCount; i += 1) {
|
|
53
|
-
float32[i] = dataView.getFloat32(i * 4, true);
|
|
54
|
-
}
|
|
55
|
-
setNestedValue(document, fieldPath, float32);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
60
|
-
function setNestedValue(obj, path, value) {
|
|
61
|
-
if (!path.includes(".")) {
|
|
62
|
-
if (FORBIDDEN_KEYS.has(path)) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
obj[path] = value;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const segments = path.split(".");
|
|
69
|
-
let current = obj;
|
|
70
|
-
for (let i = 0; i < segments.length - 1; i += 1) {
|
|
71
|
-
const segment = segments[i];
|
|
72
|
-
if (segment === void 0 || FORBIDDEN_KEYS.has(segment)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
let next = current[segment];
|
|
76
|
-
if (next === null || next === void 0 || typeof next !== "object") {
|
|
77
|
-
next = {};
|
|
78
|
-
current[segment] = next;
|
|
79
|
-
}
|
|
80
|
-
current = next;
|
|
81
|
-
}
|
|
82
|
-
const finalSegment = segments.at(-1);
|
|
83
|
-
if (finalSegment === void 0 || FORBIDDEN_KEYS.has(finalSegment)) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
current[finalSegment] = value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
5
|
// src/serialization/keyword-segment/types.ts
|
|
90
6
|
var KEYWORD_SEGMENT_PAYLOAD_VERSION = 1;
|
|
91
7
|
var KEYWORD_SEGMENT_ENVELOPE_VERSION = 4;
|
|
@@ -642,4 +558,4 @@ function decodeKeywordSegment(payload, shared) {
|
|
|
642
558
|
return writeRecords === null ? { schema, tombstones, arrays } : { schema, tombstones, arrays, writeRecords };
|
|
643
559
|
}
|
|
644
560
|
|
|
645
|
-
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION,
|
|
561
|
+
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION, decodeBooleanColumns, decodeEnumColumns, decodeFieldLengths, decodeGeopointColumns, decodeKeywordSegment, decodePartialWords, decodePatternColumns, decodeSurfaceForms, decodeValueColumns, littleEndianBytes, requireEntriesAscend, requireOffsets, requireUtf8Entries, uint32sFrom, uint64Bytes };
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-
|
|
2
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-C26SPCGQ.mjs';
|
|
2
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-C26SPCGQ.mjs';
|
|
3
|
+
import './chunk-X7TXYUKO.mjs';
|
|
4
|
+
import './chunk-C4FJ3WDY.mjs';
|
|
5
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-V43N6TZO.mjs';
|
|
6
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
7
7
|
import './chunk-ZI2V4VD7.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import
|
|
8
|
+
import './chunk-EKMGCRSR.mjs';
|
|
9
|
+
import './chunk-5YWB3E2W.mjs';
|
|
10
|
+
import { yieldToEventLoop } from './chunk-N23GL72Q.mjs';
|
|
10
11
|
import './chunk-ML7THVLJ.mjs';
|
|
11
12
|
import './chunk-VI7BQR4U.mjs';
|
|
12
13
|
import './chunk-JPTQZWJQ.mjs';
|
|
13
|
-
import { HEADER_SIZE, crc32, readHeader } from './chunk-
|
|
14
|
+
import { HEADER_SIZE, crc32, readHeader } from './chunk-DUH6QUVU.mjs';
|
|
14
15
|
import './chunk-RA6LSBCM.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import {
|
|
16
|
+
import './chunk-MY2XKH22.mjs';
|
|
17
|
+
import './chunk-AI5UI46D.mjs';
|
|
18
|
+
import './chunk-TK63WFXK.mjs';
|
|
19
|
+
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-VLJQW4J6.mjs';
|
|
20
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-VLJQW4J6.mjs';
|
|
19
21
|
import './chunk-U3JOQGWX.mjs';
|
|
20
|
-
import './chunk-
|
|
22
|
+
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-WN464PTL.mjs';
|
|
23
|
+
import './chunk-XAWNZ4G2.mjs';
|
|
21
24
|
import './chunk-TY7L6OXO.mjs';
|
|
22
25
|
import './chunk-4RD3AFSB.mjs';
|
|
23
|
-
import { compareCodePoints } from './chunk-
|
|
26
|
+
import { compareCodePoints } from './chunk-NXQG7DRA.mjs';
|
|
24
27
|
import './chunk-GPPOG6PT.mjs';
|
|
25
28
|
import './chunk-WXLBZJMT.mjs';
|
|
26
29
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
+
import { writeMetadataEnvelope, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, readMetadataEnvelope, createSeqOwner, SEGMENT_HEADER_SIZE, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, checkpointLastSeqNo, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, deserializePayloadV2, unpackEnvelopeBytes, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, writeLiveVectors, commitCheckpointManifest, removeCheckpointGarbage, readWalSegments, durableRecordMissing, growPartitionsTo, writeSegmentHeader, VECTOR_FILE_ENVELOPE_VERSION, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, documentsOfPayloadV2, metadataConfigOf, durableMetadataConfigOf, buildEntry, captureWholePartition } from './chunk-K3IPRX6D.mjs';
|
|
1
2
|
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-G64Q6OJF.mjs';
|
|
2
|
-
import {
|
|
3
|
-
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-A5KUEGDY.mjs';
|
|
3
|
+
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-BLT4RHCJ.mjs';
|
|
4
4
|
import './chunk-YJHGOJAC.mjs';
|
|
5
5
|
import { sha256 } from './chunk-M3MQE2X7.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HUCSHDTB.mjs';
|
|
7
|
+
import './chunk-25MTVDYD.mjs';
|
|
8
8
|
import { QUERY_HISTORY_FOLDER } from './chunk-7IGKGWSQ.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import './chunk-3I27KXQD.mjs';
|
|
10
|
+
import { nodeThreadId, spawnNodeWorker } from './chunk-HOZW3PKP.mjs';
|
|
11
|
+
import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-V43N6TZO.mjs';
|
|
12
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
12
13
|
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, DIRECTORY_LOCK_ATTEMPTS, DIRECTORY_LOCK_SETTLE_MS, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-ZI2V4VD7.mjs';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
14
|
+
import { restoreVectorFields } from './chunk-EKMGCRSR.mjs';
|
|
15
|
+
import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION, manifestWithinPartitionCount } from './chunk-5YWB3E2W.mjs';
|
|
16
|
+
import { toError, packChecksummedEnvelope, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-N23GL72Q.mjs';
|
|
15
17
|
import './chunk-ML7THVLJ.mjs';
|
|
16
18
|
import { createRequestId } from './chunk-VI7BQR4U.mjs';
|
|
17
19
|
import './chunk-JPTQZWJQ.mjs';
|
|
18
|
-
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-
|
|
20
|
+
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-DUH6QUVU.mjs';
|
|
19
21
|
import { fnv1a } from './chunk-RA6LSBCM.mjs';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import
|
|
23
|
-
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-
|
|
24
|
-
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime, resolveWorkerEntry } from './chunk-
|
|
22
|
+
import './chunk-MY2XKH22.mjs';
|
|
23
|
+
import './chunk-AI5UI46D.mjs';
|
|
24
|
+
import './chunk-TK63WFXK.mjs';
|
|
25
|
+
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-WN464PTL.mjs';
|
|
26
|
+
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime, resolveWorkerEntry } from './chunk-XAWNZ4G2.mjs';
|
|
25
27
|
import './chunk-TY7L6OXO.mjs';
|
|
26
28
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-4RD3AFSB.mjs';
|
|
27
|
-
import { compareCodePoints, MIN_M } from './chunk-
|
|
29
|
+
import { compareCodePoints, MIN_M } from './chunk-NXQG7DRA.mjs';
|
|
28
30
|
import { MAX_FILE_BYTES } from './chunk-GPPOG6PT.mjs';
|
|
29
31
|
import './chunk-WXLBZJMT.mjs';
|
|
30
32
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
33
|
+
import './chunk-JNOAKDUM.mjs';
|
|
31
34
|
import { decode, encode } from '@msgpack/msgpack';
|
|
32
35
|
|
|
33
36
|
// src/persistence/durability/node-fs.browser.ts
|
|
@@ -690,6 +693,40 @@ function parseSegmentStartSeqNo(key, prefix) {
|
|
|
690
693
|
function formatSegmentStart(startSeqNo) {
|
|
691
694
|
return startSeqNo.toString().padStart(16, "0");
|
|
692
695
|
}
|
|
696
|
+
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
697
|
+
if (entry.document === null) {
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
const document = decode(entry.document);
|
|
701
|
+
restoreVectorFields(document, vectorFieldPaths);
|
|
702
|
+
const documentId = entry.documentId;
|
|
703
|
+
if (manager.has(documentId)) {
|
|
704
|
+
removeDocumentVectors(documentId, vecIndexes);
|
|
705
|
+
manager.remove(documentId);
|
|
706
|
+
}
|
|
707
|
+
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
708
|
+
manager.insert(documentId, partitionDoc);
|
|
709
|
+
try {
|
|
710
|
+
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
711
|
+
} catch (err) {
|
|
712
|
+
manager.remove(documentId);
|
|
713
|
+
throw err;
|
|
714
|
+
}
|
|
715
|
+
if (!schedulesGraphBuild) return;
|
|
716
|
+
for (const fieldPath of extractedVectors.keys()) {
|
|
717
|
+
const vecIndex = vecIndexes.get(fieldPath);
|
|
718
|
+
if (vecIndex) {
|
|
719
|
+
vecIndex.scheduleBuild();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
724
|
+
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
725
|
+
if (!manager.has(entry.documentId)) {
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
manager.remove(entry.documentId, removedSpellings);
|
|
729
|
+
}
|
|
693
730
|
|
|
694
731
|
// src/persistence/durability/marker-writer.ts
|
|
695
732
|
function markerKey(indexName, partitionId) {
|
|
@@ -1280,7 +1317,8 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1280
1317
|
const store = directoryCheckpointStore(input.directory);
|
|
1281
1318
|
const writeRecords = input.hooks.writeRecords ?? null;
|
|
1282
1319
|
const { indexName } = input;
|
|
1283
|
-
const
|
|
1320
|
+
const storedManifest = await readCurrentManifest(store, input.indexName);
|
|
1321
|
+
const priorManifest = storedManifest === null ? null : manifestWithinPartitionCount(storedManifest, manager.partitionCount);
|
|
1284
1322
|
const textOnDisk = metadata.textStorage === "disk";
|
|
1285
1323
|
const wholePartitionsOf = wholePartitionsWhereMostChanged(manager, {
|
|
1286
1324
|
priorCheckpoint: priorManifest?.checkpoint ?? [],
|
|
@@ -1317,7 +1355,7 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1317
1355
|
}
|
|
1318
1356
|
async function adoptWrittenSegments(input, manager, partitions, changes) {
|
|
1319
1357
|
const { indexName, indexState, hooks } = input;
|
|
1320
|
-
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-
|
|
1358
|
+
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-NDSQLPMQ.mjs');
|
|
1321
1359
|
const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
|
|
1322
1360
|
if (adoption === null) return [];
|
|
1323
1361
|
const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
|
|
@@ -1372,7 +1410,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
|
|
|
1372
1410
|
const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
|
|
1373
1411
|
if (!input.holdsCheckpointFiles()) {
|
|
1374
1412
|
const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
|
|
1375
|
-
const stillRead = metadata.textStorage === "disk" ? (await import('./module-
|
|
1413
|
+
const stillRead = metadata.textStorage === "disk" ? (await import('./module-NDSQLPMQ.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
|
|
1376
1414
|
const keptForSync = await input.keepsCheckpointKey();
|
|
1377
1415
|
await removeCheckpointGarbage(
|
|
1378
1416
|
store,
|
|
@@ -3403,7 +3441,7 @@ var decoder = new TextDecoder();
|
|
|
3403
3441
|
async function countPagedPartition(store, partition) {
|
|
3404
3442
|
const { directory } = store;
|
|
3405
3443
|
if (directory === void 0 || partition.segments.length === 0) return null;
|
|
3406
|
-
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-
|
|
3444
|
+
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-NDSQLPMQ.mjs');
|
|
3407
3445
|
for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
|
|
3408
3446
|
const scans = [];
|
|
3409
3447
|
try {
|
|
@@ -4146,11 +4184,7 @@ function capture(input, prior) {
|
|
|
4146
4184
|
return { targets, plans, documentCount: input.manager.countDocuments(), contents };
|
|
4147
4185
|
}
|
|
4148
4186
|
async function writeCaptured(input, store, prior, captured) {
|
|
4149
|
-
const
|
|
4150
|
-
const priorWithinCount = prior === null ? null : {
|
|
4151
|
-
checkpoint: prior.checkpoint.filter((entry) => entry.partitionId < partitionCount),
|
|
4152
|
-
partitions: prior.partitions.filter((partition) => partition.partitionId < partitionCount)
|
|
4153
|
-
};
|
|
4187
|
+
const priorWithinCount = prior === null ? null : manifestWithinPartitionCount(prior, input.manager.partitionCount);
|
|
4154
4188
|
const written = await writeCheckpointSegments({
|
|
4155
4189
|
store,
|
|
4156
4190
|
metadata: input.metadata,
|
|
@@ -4664,9 +4698,19 @@ function createDurabilityFromTier(tier, wiring) {
|
|
|
4664
4698
|
keepsSyncHistory: (indexName) => wiring.indexRegistry.get(indexName)?.sync?.active === true,
|
|
4665
4699
|
onHistoryMoved(indexName) {
|
|
4666
4700
|
if (wiring.indexRegistry.get(indexName)?.sync?.active !== true) return;
|
|
4667
|
-
import('./retention-
|
|
4701
|
+
import('./retention-TY3L3BFN.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
|
|
4668
4702
|
}
|
|
4669
4703
|
});
|
|
4670
4704
|
}
|
|
4705
|
+
async function reloadIndexAndCopies(orchestrator, durability, indexName) {
|
|
4706
|
+
const manager = durability?.manager;
|
|
4707
|
+
if (manager?.reloadIndex === void 0) return;
|
|
4708
|
+
const wasScaledOut = orchestrator.desyncIndex(indexName);
|
|
4709
|
+
try {
|
|
4710
|
+
await manager.reloadIndex(indexName);
|
|
4711
|
+
} finally {
|
|
4712
|
+
await orchestrator.resyncIndex(indexName, wasScaledOut);
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4671
4715
|
|
|
4672
|
-
export { createDurabilityFromTier };
|
|
4716
|
+
export { createDurabilityFromTier, reloadIndexAndCopies };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-CXNTHHA7.mjs';
|
|
2
2
|
import './chunk-ATEBYXP6.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-N23GL72Q.mjs';
|
|
4
4
|
import './chunk-ML7THVLJ.mjs';
|
|
5
5
|
import './chunk-VI7BQR4U.mjs';
|
|
6
6
|
import './chunk-JPTQZWJQ.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-DUH6QUVU.mjs';
|
|
8
8
|
import './chunk-RA6LSBCM.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-MY2XKH22.mjs';
|
|
10
|
+
import './chunk-AI5UI46D.mjs';
|
|
11
|
+
import './chunk-TK63WFXK.mjs';
|
|
12
|
+
import './chunk-XAWNZ4G2.mjs';
|
|
11
13
|
import './chunk-TY7L6OXO.mjs';
|
|
12
14
|
import './chunk-4RD3AFSB.mjs';
|
|
13
|
-
import './chunk-
|
|
15
|
+
import './chunk-NXQG7DRA.mjs';
|
|
14
16
|
import './chunk-GPPOG6PT.mjs';
|
|
15
17
|
import './chunk-WXLBZJMT.mjs';
|
|
16
18
|
import './chunk-SRMZXJSL.mjs';
|