@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.
Files changed (224) hide show
  1. package/NOTICE +45 -0
  2. package/dist/{analysis-change-3TFIHT5E.mjs → analysis-change-CKEMM2MC.mjs} +25 -18
  3. package/dist/{react-native/chunks/analysis-change-entry-JLL42PH6.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
  4. package/dist/browser/{analysis-change-TC36BU47.mjs → analysis-change-ZKGJFENM.mjs} +42 -32
  5. package/dist/{analysis-change-entry-KA6JAO4X.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
  6. package/dist/browser/{chunk-KKAMCABR.mjs → chunk-25MTVDYD.mjs} +1 -1
  7. package/dist/browser/{chunk-K5AXJBLL.mjs → chunk-3NLMB5CC.mjs} +3 -3
  8. package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
  9. package/dist/browser/chunk-AI5UI46D.mjs +12 -0
  10. package/dist/browser/{chunk-A5KUEGDY.mjs → chunk-BLT4RHCJ.mjs} +3 -3
  11. package/dist/browser/{chunk-RRO3EV4C.mjs → chunk-C26SPCGQ.mjs} +8 -7
  12. package/dist/browser/{chunk-ABCXENU5.mjs → chunk-C4FJ3WDY.mjs} +1 -1
  13. package/dist/browser/{chunk-3UIEB4QF.mjs → chunk-CXNTHHA7.mjs} +2 -2
  14. package/dist/browser/{chunk-JIJXMI42.mjs → chunk-DUH6QUVU.mjs} +547 -2
  15. package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
  16. package/dist/browser/{chunk-JVBP5EYO.mjs → chunk-GFAZPSWK.mjs} +7 -7
  17. package/dist/browser/{chunk-CJSYBQ4J.mjs → chunk-HUCSHDTB.mjs} +1 -1
  18. package/dist/browser/{chunk-RND5CLX3.mjs → chunk-K3IPRX6D.mjs} +52 -21
  19. package/dist/browser/chunk-MY2XKH22.mjs +40 -0
  20. package/dist/browser/{chunk-SMEQ36NT.mjs → chunk-N23GL72Q.mjs} +629 -1416
  21. package/dist/browser/{chunk-LFIWRCEA.mjs → chunk-NXQG7DRA.mjs} +29 -6
  22. package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
  23. package/dist/browser/{chunk-4EWUGZYZ.mjs → chunk-U4YDIBUT.mjs} +2 -2
  24. package/dist/browser/{chunk-RQBUNZQW.mjs → chunk-UATIJ4KU.mjs} +2 -2
  25. package/dist/browser/{chunk-BXM5XOCA.mjs → chunk-UKOWD2K5.mjs} +3 -3
  26. package/dist/browser/{chunk-FNIFPFB7.mjs → chunk-UTMHUHUV.mjs} +2 -2
  27. package/dist/browser/{chunk-56W3HQVJ.mjs → chunk-V43N6TZO.mjs} +5 -5
  28. package/dist/browser/{chunk-K4GCSZLI.mjs → chunk-VLJQW4J6.mjs} +2985 -2985
  29. package/dist/browser/{chunk-IKDKX5VQ.mjs → chunk-VY5KW3HN.mjs} +3 -3
  30. package/dist/browser/{chunk-5TCXK5SB.mjs → chunk-WN464PTL.mjs} +1 -1
  31. package/dist/browser/{chunk-SUDNZKPL.mjs → chunk-X7TXYUKO.mjs} +1 -1
  32. package/dist/browser/{chunk-XY4VVBBO.mjs → chunk-Y6IBAUNO.mjs} +2 -86
  33. package/dist/browser/{cold-module-NEUGHUPA.mjs → cold-module-YNUUDNOM.mjs} +18 -15
  34. package/dist/browser/{durability-wiring-CVGPRO6D.mjs → durability-wiring-GVZEE46O.mjs} +71 -27
  35. package/dist/browser/{engine-hooks-YXMPHZKZ.mjs → engine-hooks-HBVS6YM4.mjs} +8 -6
  36. package/dist/browser/geo-index-OTV7VPIR.mjs +1387 -0
  37. package/dist/browser/{import-OM6QAW45.mjs → import-5ESVMFDJ.mjs} +9 -7
  38. package/dist/browser/{module-E33X4AOK.mjs → module-NDSQLPMQ.mjs} +14 -11
  39. package/dist/browser/{module-3HNFCBJ5.mjs → module-TCT66FWA.mjs} +6 -6
  40. package/dist/browser/{phrase-module-ZXXU7S3B.mjs → phrase-module-HAT3TLZN.mjs} +1 -1
  41. package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
  42. package/dist/browser/{restore-hooks-IF2ZROUP.mjs → restore-hooks-IE3GGYHG.mjs} +11 -9
  43. package/dist/browser/{restore-queue-ZBS7CJA6.mjs → restore-queue-LQBBTODR.mjs} +3 -3
  44. package/dist/browser/{retention-ASWUHAYI.mjs → retention-TY3L3BFN.mjs} +11 -9
  45. package/dist/browser/{snapshot-PN7ZW6Q4.mjs → snapshot-5FHPPCNZ.mjs} +27 -24
  46. package/dist/browser/{start-ZIRB7MQ2.mjs → start-2UZTOBG5.mjs} +12 -10
  47. package/dist/browser/{write-HMDYCTV2.mjs → write-ULXAN5B4.mjs} +14 -11
  48. package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
  49. package/dist/{chunk-KBKEXQZA.mjs → chunk-24FNVRKB.mjs} +1 -1
  50. package/dist/{chunk-VHBNF4MA.mjs → chunk-2ROUFMQX.mjs} +2 -2
  51. package/dist/{chunk-AILVAOLX.mjs → chunk-4B7JIGQD.mjs} +2 -2
  52. package/dist/{chunk-DCNKVEDB.mjs → chunk-4LMSZAK6.mjs} +16 -6
  53. package/dist/{chunk-RSVULW4Q.mjs → chunk-4ZTHGTVX.mjs} +4 -4
  54. package/dist/{chunk-VQEUR6T6.mjs → chunk-5VV4R6P7.mjs} +3040 -3040
  55. package/dist/chunk-6HTGOXIK.mjs +875 -0
  56. package/dist/chunk-7GFE3PEY.mjs +40 -0
  57. package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
  58. package/dist/{chunk-4BYWRYPM.mjs → chunk-A4L7YTKX.mjs} +52 -89
  59. package/dist/{chunk-J4IWBIVY.mjs → chunk-BNL5OPRV.mjs} +6 -6
  60. package/dist/{chunk-BY6ZDGYS.mjs → chunk-C7XQYG6U.mjs} +2 -2
  61. package/dist/{chunk-LC3FDWTX.mjs → chunk-CITFCZKF.mjs} +3 -2
  62. package/dist/{chunk-KXCVQWOR.mjs → chunk-CQZXZ75V.mjs} +3 -97
  63. package/dist/{chunk-SY3EWKQY.mjs → chunk-CWS55TEX.mjs} +2 -2
  64. package/dist/{chunk-3HHQLEEQ.mjs → chunk-EYD7K3H6.mjs} +7 -7
  65. package/dist/chunk-FB6463IN.mjs +1499 -0
  66. package/dist/{chunk-KFLK5NA2.mjs → chunk-FCJ553HS.mjs} +1 -1
  67. package/dist/{chunk-KMUNHGBQ.mjs → chunk-FEZVDOWX.mjs} +169 -253
  68. package/dist/{chunk-SG3JBNHY.mjs → chunk-FJKKCV4D.mjs} +1 -1
  69. package/dist/{chunk-BDRIVYOK.mjs → chunk-FUD5XSZ5.mjs} +1 -1
  70. package/dist/chunk-G6HRSGOU.mjs +74 -0
  71. package/dist/{chunk-S2EQU2GE.mjs → chunk-GPWMUPCA.mjs} +10 -10
  72. package/dist/{chunk-ZHCUZZE5.mjs → chunk-HHBUCIUY.mjs} +1 -1
  73. package/dist/{chunk-YEDIDCR7.mjs → chunk-I5B7RXU7.mjs} +91 -22
  74. package/dist/{chunk-2MANFZJ3.mjs → chunk-IIRIG7H5.mjs} +1 -1
  75. package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
  76. package/dist/{chunk-Q622CTMC.mjs → chunk-JSV6OQ4C.mjs} +1 -1
  77. package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
  78. package/dist/chunk-KCQYFO4K.mjs +62 -0
  79. package/dist/{chunk-Q7G3BV3Y.mjs → chunk-KKQC526K.mjs} +19 -11
  80. package/dist/{chunk-PCRA7HTI.mjs → chunk-LDNCLRZU.mjs} +1 -1
  81. package/dist/{chunk-U4BS74YN.mjs → chunk-MW6BR4QP.mjs} +2 -2
  82. package/dist/{chunk-DIBHI6W5.mjs → chunk-MWD5VPN7.mjs} +2 -2
  83. package/dist/{chunk-UZRZKNNZ.mjs → chunk-ODYKO5TO.mjs} +1 -1
  84. package/dist/{chunk-PHQNACDT.mjs → chunk-OG7UGJ6F.mjs} +2 -2
  85. package/dist/{chunk-QH3YIQP4.mjs → chunk-OQLD2BSW.mjs} +2 -2
  86. package/dist/chunk-ORN5BLL7.mjs +11 -0
  87. package/dist/{chunk-L7ZD4L3K.mjs → chunk-OYABFKTW.mjs} +7 -6
  88. package/dist/{chunk-KBDBPVLN.mjs → chunk-P5LANSH6.mjs} +1 -1
  89. package/dist/{chunk-ZAUJFLEN.mjs → chunk-PIH5SJ4N.mjs} +122 -1697
  90. package/dist/{chunk-DUOLGBTE.mjs → chunk-PSZI4O24.mjs} +51 -4
  91. package/dist/{chunk-4KRC2APY.mjs → chunk-PV2CG7EJ.mjs} +5 -567
  92. package/dist/{chunk-6L3XJXGU.mjs → chunk-PWGYQXML.mjs} +1 -1
  93. package/dist/{chunk-5FVU47TB.mjs → chunk-QLDABJZM.mjs} +3 -3
  94. package/dist/{chunk-KPIV4RUC.mjs → chunk-RCX4WNLC.mjs} +2 -2
  95. package/dist/{chunk-3HB3PEC6.mjs → chunk-RIHIVFIQ.mjs} +6 -6
  96. package/dist/chunk-RLOES5SX.mjs +31 -0
  97. package/dist/{chunk-H6VIGE62.mjs → chunk-RWURUDSP.mjs} +10 -9
  98. package/dist/{chunk-ZTW5WTGG.mjs → chunk-SMOOSIAW.mjs} +4 -4
  99. package/dist/{chunk-MT2NRTA6.mjs → chunk-SOI6LTHM.mjs} +3 -3
  100. package/dist/chunk-SQJWAIF4.mjs +12 -0
  101. package/dist/{react-native/chunks/chunk-PPEPTUVV.mjs → chunk-TBC3XUL2.mjs} +29 -6
  102. package/dist/chunk-TDIK6NTV.mjs +10 -0
  103. package/dist/{react-native/chunks/chunk-JV6VQY2S.mjs → chunk-U55XJEIG.mjs} +2 -1
  104. package/dist/{chunk-H4KHPLHJ.mjs → chunk-UD5HIS4U.mjs} +1 -1
  105. package/dist/{chunk-HW5TNXBO.mjs → chunk-UJDJB3NE.mjs} +40 -31
  106. package/dist/{chunk-QUJHMPTP.mjs → chunk-VSLSGASN.mjs} +2 -2
  107. package/dist/{chunk-Z2BE2MAM.mjs → chunk-VZ2ONHEE.mjs} +32 -15
  108. package/dist/chunk-W5EB5XKI.mjs +741 -0
  109. package/dist/{chunk-3R4UZWQG.mjs → chunk-W7OSSKH5.mjs} +50 -20
  110. package/dist/{chunk-SMVH6JBE.mjs → chunk-XXJZMTZT.mjs} +1 -1
  111. package/dist/{chunk-VGF7CFRP.mjs → chunk-ZPZ3YGXV.mjs} +5 -4
  112. package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
  113. package/dist/client.d.ts +6 -6
  114. package/dist/client.mjs +4 -0
  115. package/dist/{cold-module-7XXCEGTZ.mjs → cold-module-VOJXMNZB.mjs} +31 -24
  116. package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
  117. package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
  118. package/dist/direct-executor-V5DRIECI.mjs +34 -0
  119. package/dist/distribution/coordinator/etcd.mjs +2 -2
  120. package/dist/distribution/coordinator/in-memory.mjs +2 -2
  121. package/dist/distribution.d.ts +4 -4
  122. package/dist/distribution.mjs +94 -80
  123. package/dist/{durability-wiring-NCKUC5EO.mjs → durability-wiring-3TD62MBI.mjs} +57 -42
  124. package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
  125. package/dist/{engine-hooks-DHCMOADY.mjs → engine-hooks-HA3SBOBR.mjs} +24 -17
  126. package/dist/geo-index-MRH5JMIR.mjs +1387 -0
  127. package/dist/{import-NBFXFCSG.mjs → import-GPKLTSKA.mjs} +24 -17
  128. package/dist/index.browser.mjs +7 -5
  129. package/dist/index.d.ts +131 -6
  130. package/dist/index.mjs +23 -16
  131. package/dist/index.react-native.mjs +12 -10
  132. package/dist/invalidation/filesystem.mjs +2 -2
  133. package/dist/{long-query-thread-J4DVRM4A.mjs → long-query-thread-QDFQSJD6.mjs} +26 -21
  134. package/dist/{module-DWKPBSMN.mjs → module-JYHFTVPS.mjs} +28 -20
  135. package/dist/{module-UN76TF7I.mjs → module-N55W4Q5C.mjs} +9 -9
  136. package/dist/{paged-partition-archive-DPNWVSK2.mjs → paged-partition-archive-RLRGOXDX.mjs} +33 -27
  137. package/dist/partial-words.mjs +8 -6
  138. package/dist/pattern.mjs +4 -3
  139. package/dist/persistence/durability/checkpoint-worker.mjs +32 -22
  140. package/dist/{phrase-module-ZI4WSQVH.mjs → phrase-module-XW5MKWP5.mjs} +3 -2
  141. package/dist/query-suggestions/merge-worker.mjs +25 -18
  142. package/dist/query-suggestions.browser.mjs +13 -11
  143. package/dist/query-suggestions.d.ts +1 -1
  144. package/dist/query-suggestions.mjs +34 -27
  145. package/dist/react-native/chunks/{analysis-change-6BPDPH6K.mjs → analysis-change-QUVDNABS.mjs} +46 -36
  146. package/dist/{browser/analysis-change-entry-4MH3CZXH.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
  147. package/dist/react-native/chunks/{chunk-7PXRWYUU.mjs → chunk-2PRHILX3.mjs} +53 -19
  148. package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
  149. package/dist/react-native/chunks/{chunk-GIZTJXYW.mjs → chunk-4AV5PPH6.mjs} +2 -2
  150. package/dist/react-native/chunks/{chunk-4Y53T4YE.mjs → chunk-4COWCEY7.mjs} +189 -178
  151. package/dist/react-native/chunks/{chunk-OL3WDV53.mjs → chunk-4NWR3NGS.mjs} +3 -3
  152. package/dist/react-native/chunks/{chunk-C3PTWYKT.mjs → chunk-5MSX5FRT.mjs} +5 -5
  153. package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
  154. package/dist/react-native/chunks/{chunk-4LCEN2IU.mjs → chunk-6ZELFCK5.mjs} +2 -2
  155. package/dist/react-native/chunks/{chunk-CUH5F57W.mjs → chunk-BITYFZSZ.mjs} +2 -2
  156. package/dist/react-native/chunks/{chunk-TYIRMPD3.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
  157. package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
  158. package/dist/{chunk-YTJCGKM4.mjs → react-native/chunks/chunk-EJ33LCHV.mjs} +29 -6
  159. package/dist/react-native/chunks/{chunk-EIOYM5TO.mjs → chunk-ENLMYKSX.mjs} +3024 -3054
  160. package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
  161. package/dist/{chunk-4UMZ7KQL.mjs → react-native/chunks/chunk-FTZHMRD2.mjs} +2 -1
  162. package/dist/react-native/chunks/{chunk-ALOIBXWN.mjs → chunk-IAENKE2D.mjs} +2 -2
  163. package/dist/react-native/chunks/{chunk-QJXTNPLQ.mjs → chunk-KSBYEMCB.mjs} +1 -1
  164. package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
  165. package/dist/react-native/chunks/{chunk-HUOYZJ3Q.mjs → chunk-OCSLSH27.mjs} +1561 -933
  166. package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
  167. package/dist/react-native/chunks/{chunk-KTTAU63H.mjs → chunk-SK2PWYDH.mjs} +2 -2
  168. package/dist/react-native/chunks/{chunk-PEHS2UO3.mjs → chunk-TORU2OHQ.mjs} +3 -3
  169. package/dist/react-native/chunks/{chunk-VXGE4ZXL.mjs → chunk-WVWJNUMN.mjs} +51 -21
  170. package/dist/react-native/chunks/{chunk-KJIG57UD.mjs → chunk-WW2X2AEI.mjs} +7 -7
  171. package/dist/react-native/chunks/{chunk-JLIIWJUV.mjs → chunk-YZW4CHM6.mjs} +50 -11
  172. package/dist/react-native/chunks/{chunk-GJFXPHXI.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
  173. package/dist/react-native/chunks/{chunk-7GRCBBME.mjs → chunk-ZVQMBF2H.mjs} +2 -2
  174. package/dist/react-native/chunks/{chunk-N2WUOWLL.mjs → chunk-ZWAIN4GG.mjs} +7 -7
  175. package/dist/react-native/chunks/{cold-module-5PHF6DZR.mjs → cold-module-N6KFNNZA.mjs} +20 -17
  176. package/dist/react-native/chunks/{durability-wiring-KO565FZC.mjs → durability-wiring-RN64S2TL.mjs} +76 -32
  177. package/dist/react-native/chunks/{engine-hooks-MVRRHH6B.mjs → engine-hooks-CWA5CKCA.mjs} +13 -11
  178. package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
  179. package/dist/react-native/chunks/{import-YVZA4V4V.mjs → import-5UAWBRJP.mjs} +14 -12
  180. package/dist/react-native/chunks/{module-ZL5ZG6YB.mjs → module-6RP4ZCBW.mjs} +17 -14
  181. package/dist/react-native/chunks/{module-H5MVPSP2.mjs → module-TTEVPRCW.mjs} +8 -8
  182. package/dist/react-native/chunks/{phrase-module-RTVKEWJT.mjs → phrase-module-QK22HSQ2.mjs} +1 -1
  183. package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
  184. package/dist/react-native/chunks/{restore-hooks-SILFPU6B.mjs → restore-hooks-ENFMDTWC.mjs} +17 -15
  185. package/dist/react-native/chunks/{restore-queue-HSYP2AEC.mjs → restore-queue-4R6AASE5.mjs} +3 -3
  186. package/dist/react-native/chunks/{retention-7I7UAWYK.mjs → retention-5GTFT3GR.mjs} +18 -16
  187. package/dist/react-native/chunks/{snapshot-EZYB6SLF.mjs → snapshot-5LGPQXFS.mjs} +32 -29
  188. package/dist/react-native/chunks/{start-SHVZ72I5.mjs → start-ZQJVZ5DN.mjs} +18 -16
  189. package/dist/react-native/chunks/{write-JUESXHDL.mjs → write-6BRYIIZ7.mjs} +17 -14
  190. package/dist/react-native/partial-words.mjs +7 -6
  191. package/dist/react-native/pattern.mjs +1 -1
  192. package/dist/react-native/query-suggestions.mjs +19 -17
  193. package/dist/react-native/sync.mjs +47 -13
  194. package/dist/react-native/synonyms.mjs +92 -24
  195. package/dist/react.d.ts +7 -7
  196. package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
  197. package/dist/{restore-hooks-HZ3ILAMO.mjs → restore-hooks-HXLIEB4A.mjs} +28 -21
  198. package/dist/{restore-queue-JVGENGGE.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
  199. package/dist/{retention-HROPV2QU.mjs → retention-3K7ARGAG.mjs} +29 -22
  200. package/dist/server.d.ts +10 -8
  201. package/dist/server.mjs +55 -41
  202. package/dist/{snapshot-4HS2G2UM.mjs → snapshot-O7ICP7NJ.mjs} +46 -39
  203. package/dist/{start-UTWHGH42.mjs → start-S4PFP6RS.mjs} +31 -24
  204. package/dist/sync/filesystem.d.ts +2 -2
  205. package/dist/sync/filesystem.mjs +3 -3
  206. package/dist/sync/indexeddb.d.ts +2 -2
  207. package/dist/sync.browser.mjs +46 -12
  208. package/dist/sync.d.ts +3 -3
  209. package/dist/sync.mjs +46 -12
  210. package/dist/synonyms.mjs +7 -6
  211. package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
  212. package/dist/{thread-6MOXY2KD.mjs → thread-YLJ3ZPQ3.mjs} +25 -20
  213. package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
  214. package/dist/vector/search-worker.mjs +6 -6
  215. package/dist/workers/entry.mjs +17 -6
  216. package/dist/{write-GTTWWRRG.mjs → write-2OBJGLFS.mjs} +27 -19
  217. package/openapi.json +71 -0
  218. package/package.json +15 -8
  219. package/dist/chunk-DJHHF2L5.mjs +0 -17
  220. package/dist/chunk-HNVVEQP7.mjs +0 -44
  221. package/dist/chunk-WQRN64Q6.mjs +0 -196
  222. package/dist/direct-executor-G5TK7NLA.mjs +0 -29
  223. package/dist/react-native/chunks/chunk-3JIBF3XT.mjs +0 -191
  224. package/dist/browser/{chunk-4WCVMOU3.mjs → chunk-XAWNZ4G2.mjs} +10 -10
@@ -1,104 +1,111 @@
1
- import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-KBKEXQZA.mjs';
2
- import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, writeArchiveFile } from './chunk-3HB3PEC6.mjs';
1
+ import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-24FNVRKB.mjs';
2
+ import { applyDeleteEntry, applyIndexEntry, closePartitionWriter, validateReplicationEntry, replaySyncedWal } from './chunk-PSZI4O24.mjs';
3
+ import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, writeArchiveFile } from './chunk-RIHIVFIQ.mjs';
4
+ import { indexMetadataOf, loadPartitionSegments, readSegmentManifest } from './chunk-W7OSSKH5.mjs';
5
+ import { readVectorFile } from './chunk-P5LANSH6.mjs';
6
+ import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-UJDJB3NE.mjs';
7
+ import { requireRestoreMemory, archiveFootprint, storedBytesOfSegments } from './chunk-RCX4WNLC.mjs';
3
8
  import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-6OEGXLBX.mjs';
4
- import { closePartitionWriter, replaySyncedWal } from './chunk-DUOLGBTE.mjs';
5
- import { indexMetadataOf, loadPartitionSegments, readSegmentManifest } from './chunk-3R4UZWQG.mjs';
6
- import { readVectorFile } from './chunk-KBDBPVLN.mjs';
7
- import './chunk-ZXNNR73R.mjs';
8
- import './chunk-WZ7YV54N.mjs';
9
9
  import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
10
- import './chunk-KFLK5NA2.mjs';
10
+ import './chunk-FCJ553HS.mjs';
11
11
  import './chunk-MATMVH65.mjs';
12
12
  import './chunk-VD7J552I.mjs';
13
- import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-HW5TNXBO.mjs';
14
- import { requireRestoreMemory, archiveFootprint, storedBytesOfSegments } from './chunk-KPIV4RUC.mjs';
13
+ import './chunk-ZXNNR73R.mjs';
14
+ import './chunk-WZ7YV54N.mjs';
15
15
  import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
16
- import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-QH3YIQP4.mjs';
17
- import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-2MANFZJ3.mjs';
18
- export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-2MANFZJ3.mjs';
19
- import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-RSVULW4Q.mjs';
16
+ import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-OQLD2BSW.mjs';
17
+ import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-IIRIG7H5.mjs';
18
+ export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-IIRIG7H5.mjs';
19
+ import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-4ZTHGTVX.mjs';
20
20
  import { restoredConfigFields, restoredEmbedding } from './chunk-INJYO3BU.mjs';
21
- import { estimatedArchiveBytes, archiveLayout } from './chunk-Q622CTMC.mjs';
22
- import { requireSyncSetting, requireNoQuerySuggestions } from './chunk-QJVOLKU6.mjs';
21
+ import { estimatedArchiveBytes, archiveLayout } from './chunk-JSV6OQ4C.mjs';
23
22
  import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ZYAY26KG.mjs';
23
+ import { requireSyncSetting, requireNoQuerySuggestions } from './chunk-QJVOLKU6.mjs';
24
24
  import { createByteReader } from './chunk-CZQ33DLW.mjs';
25
- import { readSnapshotArchive, sourceIndexNameOf } from './chunk-U4BS74YN.mjs';
26
- import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-SY3EWKQY.mjs';
25
+ import { readSnapshotArchive, sourceIndexNameOf } from './chunk-MW6BR4QP.mjs';
26
+ import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-CWS55TEX.mjs';
27
27
  import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-K4ZIGL2O.mjs';
28
28
  import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
29
29
  import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
30
- import './chunk-VQEUR6T6.mjs';
31
- import './chunk-DJHHF2L5.mjs';
30
+ import './chunk-5VV4R6P7.mjs';
32
31
  import './chunk-37CD3OKS.mjs';
33
- import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-S2EQU2GE.mjs';
34
- import { encodeSegmentManifest } from './chunk-BY6ZDGYS.mjs';
35
- import './chunk-J4IWBIVY.mjs';
36
- import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-KXCVQWOR.mjs';
32
+ import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-GPWMUPCA.mjs';
33
+ import { encodeSegmentManifest } from './chunk-C7XQYG6U.mjs';
34
+ import './chunk-BNL5OPRV.mjs';
35
+ import './chunk-CQZXZ75V.mjs';
37
36
  import { directoryCheckpointStore, readListedFile } from './chunk-UHICS3JI.mjs';
38
37
  import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
39
38
  import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
40
- import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-NF4DT3IH.mjs';
39
+ import './chunk-KCQYFO4K.mjs';
40
+ import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-JTYPJF3T.mjs';
41
41
  import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
42
42
  import './chunk-QDZJM7NI.mjs';
43
- import { boundQuerySuggestionsOf, bindQuerySuggestions, querySuggestionsOf } from './chunk-MT2NRTA6.mjs';
44
- import { keyBytesOf, QuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-3HHQLEEQ.mjs';
45
- import { RestoredHistory } from './chunk-VHBNF4MA.mjs';
46
- import { historyFilesOf, removeHistoryFolder, historyFolderOf, listHistoryFolder, historyFileOf, restoreStagingPrefix } from './chunk-KP7TYHWT.mjs';
43
+ import { boundQuerySuggestionsOf, bindQuerySuggestions, querySuggestionsOf } from './chunk-SOI6LTHM.mjs';
44
+ import { keyBytesOf, QuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-EYD7K3H6.mjs';
47
45
  import './chunk-LNGE7SLY.mjs';
48
- import { storedStateOf } from './chunk-UZRZKNNZ.mjs';
49
- import './chunk-H4KHPLHJ.mjs';
46
+ import { RestoredHistory } from './chunk-2ROUFMQX.mjs';
47
+ import { historyFilesOf, removeHistoryFolder, historyFolderOf, listHistoryFolder, historyFileOf, restoreStagingPrefix } from './chunk-KP7TYHWT.mjs';
48
+ import { storedStateOf } from './chunk-ODYKO5TO.mjs';
49
+ import './chunk-UD5HIS4U.mjs';
50
50
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
51
51
  import './chunk-BEZH7VEH.mjs';
52
- import './chunk-BDRIVYOK.mjs';
53
- import './chunk-6L3XJXGU.mjs';
52
+ import './chunk-FUD5XSZ5.mjs';
53
+ import './chunk-PWGYQXML.mjs';
54
54
  import './chunk-GQPTDQCL.mjs';
55
55
  import { QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES } from './chunk-5YNRKI2C.mjs';
56
- import { bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, memoryFractionsOf, createMemoryMonitor, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, yieldToEventLoop, packChecksummedEnvelope, providedDocId, engineCoreOf } from './chunk-KMUNHGBQ.mjs';
57
- import { runtimeHost, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, readRecentMemoryFigures, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, now, listBindingOf, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-L7ZD4L3K.mjs';
56
+ import { bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, memoryFractionsOf, createMemoryMonitor, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, yieldToEventLoop, packChecksummedEnvelope, providedDocId, engineCoreOf } from './chunk-FEZVDOWX.mjs';
57
+ import { runtimeHost, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, readRecentMemoryFigures, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, now, listBindingOf, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-OYABFKTW.mjs';
58
58
  import './chunk-HJSN7UYG.mjs';
59
59
  import './chunk-LHKOSI2J.mjs';
60
60
  import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-XIHUI4KB.mjs';
61
61
  import './chunk-3MXV3VHR.mjs';
62
62
  import { BATCH_CHUNK_SIZE, MAX_DOC_ID_LENGTH, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-EEBCDP36.mjs';
63
- import { synonymModule, generateId } from './chunk-Z2BE2MAM.mjs';
64
- import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, holdsQuotedText, sortSignatureEntry, mergePartitionStats } from './chunk-ZAUJFLEN.mjs';
63
+ import { synonymModule, generateId } from './chunk-VZ2ONHEE.mjs';
64
+ import { oversampledShardSize, normalizeSort, sortModesOf, readSortValues, resolveProjection, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, mergePartitionStats } from './chunk-PIH5SJ4N.mjs';
65
65
  import { decodeIndexConfiguration, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-GH4WQ22V.mjs';
66
66
  import { openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
67
67
  import './chunk-IPN7S4KX.mjs';
68
68
  import { fnv1a, fnv1aUint32s } from './chunk-KAKQ74LS.mjs';
69
69
  import { crc32Init, crc32Final, crc32Update } from './chunk-7GXJUJ24.mjs';
70
70
  import './chunk-Q2UL2TPC.mjs';
71
- import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE } from './chunk-LC3FDWTX.mjs';
72
- import './chunk-JUKYYXSP.mjs';
73
- import { getNestedValue, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-4KRC2APY.mjs';
71
+ import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE } from './chunk-CITFCZKF.mjs';
72
+ import './chunk-RLOES5SX.mjs';
73
+ import './chunk-PV2CG7EJ.mjs';
74
74
  import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
75
- import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf } from './chunk-WQRN64Q6.mjs';
75
+ import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, getNestedValue, isLatitude, isLongitude } from './chunk-W5EB5XKI.mjs';
76
+ import { MIN_POLYGON_POINTS, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES } from './chunk-SQJWAIF4.mjs';
76
77
  import './chunk-GES7U2PM.mjs';
77
78
  import './chunk-I54T6CQP.mjs';
78
- import { configOfNamedSettings } from './chunk-YEDIDCR7.mjs';
79
- import './chunk-X5CV2E2B.mjs';
79
+ import { configOfNamedSettings } from './chunk-I5B7RXU7.mjs';
80
80
  import './chunk-Y4WPNHMC.mjs';
81
81
  import { getLanguage, resolveIndexAnalysis, hasLanguage } from './chunk-RZWWB2XR.mjs';
82
82
  import './chunk-TGP5M5R7.mjs';
83
- import { visitTokens } from './chunk-4BYWRYPM.mjs';
84
- import './chunk-4UMZ7KQL.mjs';
83
+ import './chunk-G6HRSGOU.mjs';
85
84
  import './chunk-U2BKYEC7.mjs';
85
+ import './chunk-6HTGOXIK.mjs';
86
86
  import './chunk-QHPYS427.mjs';
87
87
  import { collectAndReturnPages } from './chunk-QYRNLLLI.mjs';
88
- import './chunk-HNVVEQP7.mjs';
88
+ import './chunk-TDIK6NTV.mjs';
89
+ import { bm25SetsValue, holdsQuotedText } from './chunk-FB6463IN.mjs';
90
+ import './chunk-7GFE3PEY.mjs';
89
91
  import './chunk-ZXNQEW43.mjs';
92
+ import './chunk-7V5IUP2T.mjs';
90
93
  import { MAX_NESTING_DEPTH, MAX_STORED_VECTOR_DIMENSION } from './chunk-L5ORED7V.mjs';
94
+ import './chunk-X5CV2E2B.mjs';
95
+ import { visitTokens } from './chunk-A4L7YTKX.mjs';
96
+ import './chunk-U55XJEIG.mjs';
91
97
  import './chunk-KOKM4PQN.mjs';
92
- import { MIN_OVERSAMPLE } from './chunk-Q7G3BV3Y.mjs';
98
+ import { MIN_OVERSAMPLE } from './chunk-ORN5BLL7.mjs';
93
99
  import './chunk-BTPGQC6Z.mjs';
94
100
  import './chunk-LQG5G2LY.mjs';
95
101
  import './chunk-ZXX5GZEX.mjs';
96
102
  import './chunk-RFBLQLLZ.mjs';
103
+ import './chunk-KKQC526K.mjs';
97
104
  import { joinChunks, readWhole } from './chunk-3C7MTCCI.mjs';
98
105
  import { MAX_DOCUMENT_ENCODING_DEPTH } from './chunk-U476IXKQ.mjs';
99
106
  import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-MP7ABPTD.mjs';
100
- import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-R6A773WK.mjs';
101
- import { compareCodePoints, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
107
+ import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-J4IJTTEX.mjs';
108
+ import { compareCodePoints, exceedsCodePoints } from './chunk-TBC3XUL2.mjs';
102
109
  import { encode, decode } from '@msgpack/msgpack';
103
110
  import { randomUUID, createHash } from 'crypto';
104
111
  import { mkdtemp, rm, mkdir, open } from 'fs/promises';
@@ -14555,7 +14562,7 @@ async function openOnce(core, indexName, partitionId) {
14555
14562
  if (directory === void 0) throw durabilityRequired(indexName, partitionId);
14556
14563
  if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
14557
14564
  const config = await encodeIndexConfiguration(entry);
14558
- const { openPagedPartitionArchive } = await import('./paged-partition-archive-DPNWVSK2.mjs');
14565
+ const { openPagedPartitionArchive } = await import('./paged-partition-archive-RLRGOXDX.mjs');
14559
14566
  const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
14560
14567
  handedOver = true;
14561
14568
  try {
@@ -15031,6 +15038,27 @@ async function seedReopenedPrimaryLogs(input) {
15031
15038
  );
15032
15039
  }
15033
15040
  }
15041
+ function requestIdOf(kind, entry) {
15042
+ return `replicate-entry-${kind}-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`;
15043
+ }
15044
+ function applyIndexEntryToCopies(core, manager, entry, vectorFieldPaths, vecIndexes) {
15045
+ const { indexName, documentId: docId } = entry;
15046
+ const held = manager.has(docId);
15047
+ const removedSpellings = held && entry.document !== null ? manager.removedSpellingsOf(docId) : void 0;
15048
+ try {
15049
+ applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes);
15050
+ } catch (err) {
15051
+ if (held && !manager.has(docId)) {
15052
+ core.orchestrator.recordMainWrite({ type: "remove", indexName, docId, requestId: requestIdOf("remove", entry) });
15053
+ }
15054
+ throw err;
15055
+ }
15056
+ const document = entry.document === null ? void 0 : manager.getRef(docId);
15057
+ if (document === void 0) return;
15058
+ core.orchestrator.recordMainWrite(
15059
+ held ? { type: "update", indexName, docId, document, removedSpellings, requestId: requestIdOf("update", entry) } : { type: "insert", indexName, docId, document, requestId: requestIdOf("insert", entry) }
15060
+ );
15061
+ }
15034
15062
  async function applyLocalReplicationEntry(core, entry, writeRecords) {
15035
15063
  const { applied, error } = await applyLocalReplicationEntries(core, [entry], writeRecords);
15036
15064
  if (applied === 0) throw error;
@@ -15044,17 +15072,25 @@ async function applyLocalReplicationEntries(core, entries, writeRecords) {
15044
15072
  const indexEntry = core.requireIndex(first.indexName);
15045
15073
  const manager = core.requireManager(first.indexName);
15046
15074
  const vecIndexes = manager.getVectorIndexes();
15047
- const removedSpellings = [];
15048
15075
  let stopped = null;
15049
15076
  const applyAt = (position) => {
15050
15077
  if (stopped !== null) throw stopped;
15051
15078
  const entry = entries[position];
15052
15079
  try {
15053
15080
  if (entry.operation === "INDEX") {
15054
- applyIndexEntry(entry, manager, indexEntry.vectorFieldPaths, vecIndexes);
15081
+ applyIndexEntryToCopies(core, manager, entry, indexEntry.vectorFieldPaths, vecIndexes);
15055
15082
  } else {
15056
- removedSpellings[position] = manager.removedSpellingsOf(entry.documentId);
15057
- applyDeleteEntry(entry, manager, vecIndexes, removedSpellings[position]);
15083
+ const held = manager.has(entry.documentId);
15084
+ const removedSpellings = manager.removedSpellingsOf(entry.documentId);
15085
+ applyDeleteEntry(entry, manager, vecIndexes, removedSpellings);
15086
+ if (held)
15087
+ core.orchestrator.recordMainWrite({
15088
+ type: "remove",
15089
+ indexName: entry.indexName,
15090
+ docId: entry.documentId,
15091
+ requestId: requestIdOf("remove", entry),
15092
+ removedSpellings
15093
+ });
15058
15094
  }
15059
15095
  writeRecords.applied(entry);
15060
15096
  } catch (err) {
@@ -15091,35 +15127,13 @@ async function applyLocalReplicationEntries(core, entries, writeRecords) {
15091
15127
  applied++;
15092
15128
  }
15093
15129
  }
15094
- for (let position = 0; position < applied; position++) {
15095
- await replicateEntryToWorkers(core, manager, entries[position], removedSpellings[position]);
15096
- }
15130
+ const roomForCopies = core.orchestrator.settleMainWrites(first.indexName);
15131
+ if (roomForCopies !== null) await roomForCopies;
15097
15132
  return { applied, error };
15098
15133
  } finally {
15099
15134
  release();
15100
15135
  }
15101
15136
  }
15102
- async function replicateEntryToWorkers(core, manager, entry, removedSpellings) {
15103
- if (entry.operation === "INDEX") {
15104
- const appliedDocument = manager.getRef(entry.documentId);
15105
- if (appliedDocument === void 0) return;
15106
- await core.orchestrator.replicateToWorkers({
15107
- type: "insert",
15108
- indexName: entry.indexName,
15109
- docId: entry.documentId,
15110
- document: appliedDocument,
15111
- requestId: `replicate-entry-insert-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`
15112
- });
15113
- return;
15114
- }
15115
- await core.orchestrator.replicateToWorkers({
15116
- type: "remove",
15117
- indexName: entry.indexName,
15118
- docId: entry.documentId,
15119
- requestId: `replicate-entry-remove-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`,
15120
- removedSpellings
15121
- });
15122
- }
15123
15137
 
15124
15138
  // src/distribution/cluster-node/replication-index.ts
15125
15139
  function isNestedSchema(value) {
@@ -15234,7 +15248,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
15234
15248
  );
15235
15249
  }
15236
15250
  try {
15237
- const { openPagedPartitionArchive } = await import('./paged-partition-archive-DPNWVSK2.mjs');
15251
+ const { openPagedPartitionArchive } = await import('./paged-partition-archive-RLRGOXDX.mjs');
15238
15252
  const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
15239
15253
  return {
15240
15254
  stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
@@ -15443,7 +15457,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
15443
15457
  if (directory !== null) {
15444
15458
  const durable = core.durability?.manager;
15445
15459
  await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
15446
- const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-DPNWVSK2.mjs');
15460
+ const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-RLRGOXDX.mjs');
15447
15461
  await removeReceivedFilesNothingReads(
15448
15462
  directory,
15449
15463
  core.requireManager(indexName),
@@ -1,78 +1,86 @@
1
- import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-AILVAOLX.mjs';
1
+ import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-4B7JIGQD.mjs';
2
2
  import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-YEKL4JBK.mjs';
3
- import { closePartitionWriter, listPersistedIndexes, removeLeftoverRewriteFiles, drainIndexStateForUnload, loadMetadata, snapshotCheckpointFor, replayWal, createMarkerWriter } from './chunk-DUOLGBTE.mjs';
4
- import { writeMetadataEnvelope, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, readMetadataEnvelope, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, unpackEnvelopeBytes, writeLiveVectors, growPartitionsTo, metadataConfigOf, durableMetadataConfigOf } from './chunk-3R4UZWQG.mjs';
5
- import { VECTOR_FILE_ENVELOPE_VERSION } from './chunk-KBDBPVLN.mjs';
6
- import './chunk-ZXNNR73R.mjs';
7
- import './chunk-WZ7YV54N.mjs';
3
+ import { closePartitionWriter, listPersistedIndexes, removeLeftoverRewriteFiles, drainIndexStateForUnload, loadMetadata, snapshotCheckpointFor, replayWal, createMarkerWriter } from './chunk-PSZI4O24.mjs';
4
+ import { writeMetadataEnvelope, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, readMetadataEnvelope, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, unpackEnvelopeBytes, writeLiveVectors, growPartitionsTo, metadataConfigOf, durableMetadataConfigOf } from './chunk-W7OSSKH5.mjs';
5
+ import { VECTOR_FILE_ENVELOPE_VERSION } from './chunk-P5LANSH6.mjs';
8
6
  import './chunk-MATMVH65.mjs';
9
7
  import './chunk-VD7J552I.mjs';
10
- import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-SY3EWKQY.mjs';
8
+ import './chunk-ZXNNR73R.mjs';
9
+ import './chunk-WZ7YV54N.mjs';
10
+ import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-CWS55TEX.mjs';
11
11
  import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-K4ZIGL2O.mjs';
12
12
  import './chunk-BUMREPLU.mjs';
13
13
  import './chunk-37CD3OKS.mjs';
14
- import { createDurableDirectory } from './chunk-ZHCUZZE5.mjs';
15
- import { SEGMENT_HEADER_SIZE, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, writeSegmentHeader, buildEntry, captureWholePartition, checkpointLastSeqNo } from './chunk-S2EQU2GE.mjs';
16
- import './chunk-BY6ZDGYS.mjs';
17
- import { readSegmentFile } from './chunk-J4IWBIVY.mjs';
18
- import './chunk-KXCVQWOR.mjs';
14
+ import { createDurableDirectory } from './chunk-HHBUCIUY.mjs';
15
+ import { SEGMENT_HEADER_SIZE, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, writeSegmentHeader, buildEntry, captureWholePartition, checkpointLastSeqNo } from './chunk-GPWMUPCA.mjs';
16
+ import './chunk-C7XQYG6U.mjs';
17
+ import { readSegmentFile } from './chunk-BNL5OPRV.mjs';
18
+ import './chunk-CQZXZ75V.mjs';
19
19
  import { adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-UHICS3JI.mjs';
20
20
  import './chunk-5FLRXF73.mjs';
21
21
  import './chunk-JDDXV6UF.mjs';
22
- import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-NF4DT3IH.mjs';
22
+ import './chunk-KCQYFO4K.mjs';
23
+ import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION, manifestWithinPartitionCount } from './chunk-JTYPJF3T.mjs';
23
24
  import { getFs } from './chunk-HLPRHOSO.mjs';
24
25
  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, 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-QDZJM7NI.mjs';
25
26
  import { sha256 } from './chunk-LNGE7SLY.mjs';
26
- import './chunk-UZRZKNNZ.mjs';
27
- import './chunk-H4KHPLHJ.mjs';
27
+ import './chunk-ODYKO5TO.mjs';
28
+ import './chunk-UD5HIS4U.mjs';
28
29
  import { spawnNodeWorker } from './chunk-BEZH7VEH.mjs';
29
30
  import './chunk-GQPTDQCL.mjs';
30
31
  import { QUERY_HISTORY_FOLDER } from './chunk-5YNRKI2C.mjs';
31
- import { toError, packChecksummedEnvelope } from './chunk-KMUNHGBQ.mjs';
32
- import './chunk-L7ZD4L3K.mjs';
32
+ import { toError, packChecksummedEnvelope } from './chunk-FEZVDOWX.mjs';
33
+ import './chunk-OYABFKTW.mjs';
33
34
  import './chunk-HJSN7UYG.mjs';
34
35
  import { detectRuntime, resolveWorkerEntry } from './chunk-LHKOSI2J.mjs';
35
36
  import './chunk-XIHUI4KB.mjs';
36
37
  import './chunk-3MXV3VHR.mjs';
37
38
  import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-EEBCDP36.mjs';
38
- import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-Z2BE2MAM.mjs';
39
- import './chunk-ZAUJFLEN.mjs';
39
+ import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-VZ2ONHEE.mjs';
40
+ import './chunk-PIH5SJ4N.mjs';
40
41
  import './chunk-GH4WQ22V.mjs';
41
42
  import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-3OH67G7R.mjs';
42
43
  import './chunk-IPN7S4KX.mjs';
43
44
  import { fnv1a } from './chunk-KAKQ74LS.mjs';
44
45
  import { crc32 } from './chunk-7GXJUJ24.mjs';
45
46
  import './chunk-Q2UL2TPC.mjs';
46
- import './chunk-LC3FDWTX.mjs';
47
- import './chunk-JUKYYXSP.mjs';
48
- import './chunk-4KRC2APY.mjs';
47
+ import './chunk-CITFCZKF.mjs';
48
+ import './chunk-RLOES5SX.mjs';
49
+ import './chunk-PV2CG7EJ.mjs';
49
50
  import './chunk-FQBFZAWG.mjs';
50
- import { encodeDocument, requireValidFieldTypes } from './chunk-WQRN64Q6.mjs';
51
+ import { encodeDocument, requireValidFieldTypes } from './chunk-W5EB5XKI.mjs';
52
+ import './chunk-SQJWAIF4.mjs';
51
53
  import './chunk-GES7U2PM.mjs';
52
54
  import './chunk-I54T6CQP.mjs';
53
- import './chunk-YEDIDCR7.mjs';
54
- import './chunk-X5CV2E2B.mjs';
55
+ import './chunk-I5B7RXU7.mjs';
55
56
  import './chunk-Y4WPNHMC.mjs';
56
57
  import './chunk-RZWWB2XR.mjs';
57
58
  import './chunk-TGP5M5R7.mjs';
58
- import './chunk-4BYWRYPM.mjs';
59
- import './chunk-4UMZ7KQL.mjs';
59
+ import './chunk-G6HRSGOU.mjs';
60
60
  import './chunk-U2BKYEC7.mjs';
61
+ import './chunk-6HTGOXIK.mjs';
61
62
  import { createRequestId } from './chunk-QHPYS427.mjs';
62
63
  import './chunk-QYRNLLLI.mjs';
63
- import './chunk-HNVVEQP7.mjs';
64
+ import './chunk-TDIK6NTV.mjs';
65
+ import './chunk-FB6463IN.mjs';
66
+ import './chunk-7GFE3PEY.mjs';
64
67
  import './chunk-ZXNQEW43.mjs';
68
+ import './chunk-7V5IUP2T.mjs';
65
69
  import './chunk-L5ORED7V.mjs';
70
+ import './chunk-X5CV2E2B.mjs';
71
+ import './chunk-A4L7YTKX.mjs';
72
+ import './chunk-U55XJEIG.mjs';
66
73
  import './chunk-KOKM4PQN.mjs';
67
- import './chunk-Q7G3BV3Y.mjs';
74
+ import './chunk-ORN5BLL7.mjs';
68
75
  import './chunk-BTPGQC6Z.mjs';
69
76
  import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite } from './chunk-LQG5G2LY.mjs';
70
77
  import { MIN_M } from './chunk-ZXX5GZEX.mjs';
71
78
  import './chunk-RFBLQLLZ.mjs';
79
+ import './chunk-KKQC526K.mjs';
72
80
  import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
73
81
  import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
74
- import './chunk-R6A773WK.mjs';
75
- import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
82
+ import './chunk-J4IJTTEX.mjs';
83
+ import { compareCodePoints } from './chunk-TBC3XUL2.mjs';
76
84
  import { decode, encode } from '@msgpack/msgpack';
77
85
 
78
86
  // src/persistence/durability/sync/layout.ts
@@ -683,7 +691,8 @@ async function writeOneBoundedCheckpoint(input) {
683
691
  const store = directoryCheckpointStore(input.directory);
684
692
  const writeRecords = input.hooks.writeRecords ?? null;
685
693
  const { indexName } = input;
686
- const priorManifest = await readCurrentManifest(store, input.indexName);
694
+ const storedManifest = await readCurrentManifest(store, input.indexName);
695
+ const priorManifest = storedManifest === null ? null : manifestWithinPartitionCount(storedManifest, manager.partitionCount);
687
696
  const textOnDisk = metadata.textStorage === "disk";
688
697
  const wholePartitionsOf = wholePartitionsWhereMostChanged(manager, {
689
698
  priorCheckpoint: priorManifest?.checkpoint ?? [],
@@ -720,7 +729,7 @@ async function writeOneBoundedCheckpoint(input) {
720
729
  }
721
730
  async function adoptWrittenSegments(input, manager, partitions, changes) {
722
731
  const { indexName, indexState, hooks } = input;
723
- const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-DWKPBSMN.mjs');
732
+ const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-JYHFTVPS.mjs');
724
733
  const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
725
734
  if (adoption === null) return [];
726
735
  const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
@@ -775,7 +784,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
775
784
  const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
776
785
  if (!input.holdsCheckpointFiles()) {
777
786
  const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
778
- const stillRead = metadata.textStorage === "disk" ? (await import('./module-DWKPBSMN.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
787
+ const stillRead = metadata.textStorage === "disk" ? (await import('./module-JYHFTVPS.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
779
788
  const keptForSync = await input.keepsCheckpointKey();
780
789
  await removeCheckpointGarbage(
781
790
  store,
@@ -2788,7 +2797,7 @@ var decoder = new TextDecoder();
2788
2797
  async function countPagedPartition(store, partition) {
2789
2798
  const { directory } = store;
2790
2799
  if (directory === void 0 || partition.segments.length === 0) return null;
2791
- const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-DWKPBSMN.mjs');
2800
+ const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-JYHFTVPS.mjs');
2792
2801
  for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
2793
2802
  const scans = [];
2794
2803
  try {
@@ -3531,11 +3540,7 @@ function capture(input, prior) {
3531
3540
  return { targets, plans, documentCount: input.manager.countDocuments(), contents };
3532
3541
  }
3533
3542
  async function writeCaptured(input, store, prior, captured) {
3534
- const partitionCount = input.manager.partitionCount;
3535
- const priorWithinCount = prior === null ? null : {
3536
- checkpoint: prior.checkpoint.filter((entry) => entry.partitionId < partitionCount),
3537
- partitions: prior.partitions.filter((partition) => partition.partitionId < partitionCount)
3538
- };
3543
+ const priorWithinCount = prior === null ? null : manifestWithinPartitionCount(prior, input.manager.partitionCount);
3539
3544
  const written = await writeCheckpointSegments({
3540
3545
  store,
3541
3546
  metadata: input.metadata,
@@ -4049,9 +4054,19 @@ function createDurabilityFromTier(tier, wiring) {
4049
4054
  keepsSyncHistory: (indexName) => wiring.indexRegistry.get(indexName)?.sync?.active === true,
4050
4055
  onHistoryMoved(indexName) {
4051
4056
  if (wiring.indexRegistry.get(indexName)?.sync?.active !== true) return;
4052
- import('./retention-HROPV2QU.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
4057
+ import('./retention-3K7ARGAG.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
4053
4058
  }
4054
4059
  });
4055
4060
  }
4061
+ async function reloadIndexAndCopies(orchestrator, durability, indexName) {
4062
+ const manager = durability?.manager;
4063
+ if (manager?.reloadIndex === void 0) return;
4064
+ const wasScaledOut = orchestrator.desyncIndex(indexName);
4065
+ try {
4066
+ await manager.reloadIndex(indexName);
4067
+ } finally {
4068
+ await orchestrator.resyncIndex(indexName, wasScaledOut);
4069
+ }
4070
+ }
4056
4071
 
4057
- export { createDurabilityFromTier };
4072
+ export { createDurabilityFromTier, reloadIndexAndCopies };
@@ -2555,4 +2555,4 @@ interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, Syno
2555
2555
  shutdown(): Promise<void>;
2556
2556
  }
2557
2557
 
2558
- export { type IndexLifecycleOperations as $, type AnalysisChange as A, type BatchResult as B, type ClientErrorCode as C, type DocumentImportResult as D, type ErrorCode as E, type FacetConfig as F, type GroupResult as G, type FacetResult as H, type IndexInfo as I, type FieldFilter as J, type FilterExpression as K, type ListParams as L, type MemoryStats as M, NarsilError as N, type GeoFilter as O, type PartitionStatsResult as P, type QueryParams as Q, type GeoPolygonFilter as R, type ServerErrorCode as S, type GeoRadiusFilter as T, type GroupReducer as U, type VectorMaintenanceResult as V, type HeldCheckpointReport as W, type HighlightConfig as X, type HighlightMatch as Y, type Hit as Z, type HybridConfig as _, ClientErrorCodes as a, type ListedDocument as a0, type PresenceFilter as a1, type ProcessMemoryReport as a2, type QueryCoverage as a3, type RerankConfig as a4, type ScoreComponents as a5, type SearchMode as a6, type SortField as a7, type SortSpec as a8, type StringFilter as a9, type SyncOperations as aa, type SynonymOperations as ab, type TermMatchPolicy as ac, type VectorMaintenanceOperations as ad, type VectorQueryConfig as ae, type WorkerCopyReport as af, ErrorCodes as b, type NarsilErrorCode as c, ServerErrorCodes as d, type SnapshotOptions as e, type SyncSetting as f, type Narsil as g, type QueryResult as h, isNarsilError as i, type NarsilEventHandlers as j, type SyncStatus as k, type ListResult as l, type SuggestParams as m, type SuggestResult as n, type PreflightResult as o, type IndexStats as p, type NarsilEventMap as q, type GroupConfig as r, type AdapterRegistrationOperations as s, type AnalysisOperations as t, type ArrayFilter as u, type BM25Operations as v, type ByteSource as w, type ComparisonFilter as x, type DocumentProjection as y, type DocumentWriteOperations as z };
2558
+ export { type IndexLifecycleOperations as $, type AnalysisChange as A, type BatchResult as B, type ClientErrorCode as C, type DocumentImportResult as D, type ErrorCode as E, type FacetConfig as F, type GroupResult as G, type FacetResult as H, type IndexInfo as I, type FieldFilter as J, type FilterExpression as K, type ListParams as L, type MemoryStats as M, NarsilError as N, type GeoFilter as O, type PartitionStatsResult as P, type QueryParams as Q, type GeoPolygonFilter as R, type ServerErrorCode as S, type GeoRadiusFilter as T, type GroupReducer as U, type VectorMaintenanceResult as V, type HeldCheckpointReport as W, type HighlightConfig as X, type HighlightMatch as Y, type Hit as Z, type HybridConfig as _, ClientErrorCodes as a, type ListedDocument as a0, type PresenceFilter as a1, type ProcessMemoryReport as a2, type QueryCoverage as a3, type RerankConfig as a4, type ScoreComponents as a5, type SearchMode as a6, type SortField as a7, type SortSpec as a8, type StringFilter as a9, type SyncOperations as aa, type SynonymOperations as ab, type TermMatchPolicy as ac, type VectorMaintenanceOperations as ad, type VectorQueryConfig as ae, type WorkerCopyReport as af, ErrorCodes as b, type NarsilErrorCode as c, ServerErrorCodes as d, type SnapshotOptions as e, type SyncSetting as f, type SyncStatus as g, type Narsil as h, isNarsilError as i, type QueryResult as j, type NarsilEventHandlers as k, type ListResult as l, type SuggestParams as m, type SuggestResult as n, type PreflightResult as o, type IndexStats as p, type NarsilEventMap as q, type GroupConfig as r, type AdapterRegistrationOperations as s, type AnalysisOperations as t, type ArrayFilter as u, type BM25Operations as v, type ByteSource as w, type ComparisonFilter as x, type DocumentProjection as y, type DocumentWriteOperations as z };
@@ -1,47 +1,54 @@
1
- export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-PHQNACDT.mjs';
1
+ export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-OG7UGJ6F.mjs';
2
2
  import './chunk-S5LN746F.mjs';
3
- import './chunk-KMUNHGBQ.mjs';
4
- import './chunk-L7ZD4L3K.mjs';
3
+ import './chunk-FEZVDOWX.mjs';
4
+ import './chunk-OYABFKTW.mjs';
5
5
  import './chunk-HJSN7UYG.mjs';
6
6
  import './chunk-LHKOSI2J.mjs';
7
7
  import './chunk-XIHUI4KB.mjs';
8
8
  import './chunk-3MXV3VHR.mjs';
9
9
  import './chunk-EEBCDP36.mjs';
10
- import './chunk-Z2BE2MAM.mjs';
11
- import './chunk-ZAUJFLEN.mjs';
10
+ import './chunk-VZ2ONHEE.mjs';
11
+ import './chunk-PIH5SJ4N.mjs';
12
12
  import './chunk-GH4WQ22V.mjs';
13
13
  import './chunk-3OH67G7R.mjs';
14
14
  import './chunk-IPN7S4KX.mjs';
15
15
  import './chunk-KAKQ74LS.mjs';
16
16
  import './chunk-7GXJUJ24.mjs';
17
17
  import './chunk-Q2UL2TPC.mjs';
18
- import './chunk-LC3FDWTX.mjs';
19
- import './chunk-JUKYYXSP.mjs';
20
- import './chunk-4KRC2APY.mjs';
18
+ import './chunk-CITFCZKF.mjs';
19
+ import './chunk-RLOES5SX.mjs';
20
+ import './chunk-PV2CG7EJ.mjs';
21
21
  import './chunk-FQBFZAWG.mjs';
22
- import './chunk-WQRN64Q6.mjs';
22
+ import './chunk-W5EB5XKI.mjs';
23
+ import './chunk-SQJWAIF4.mjs';
23
24
  import './chunk-GES7U2PM.mjs';
24
25
  import './chunk-I54T6CQP.mjs';
25
- import './chunk-YEDIDCR7.mjs';
26
- import './chunk-X5CV2E2B.mjs';
26
+ import './chunk-I5B7RXU7.mjs';
27
27
  import './chunk-Y4WPNHMC.mjs';
28
28
  import './chunk-RZWWB2XR.mjs';
29
29
  import './chunk-TGP5M5R7.mjs';
30
- import './chunk-4BYWRYPM.mjs';
31
- import './chunk-4UMZ7KQL.mjs';
30
+ import './chunk-G6HRSGOU.mjs';
32
31
  import './chunk-U2BKYEC7.mjs';
32
+ import './chunk-6HTGOXIK.mjs';
33
33
  import './chunk-QHPYS427.mjs';
34
34
  import './chunk-QYRNLLLI.mjs';
35
- import './chunk-HNVVEQP7.mjs';
35
+ import './chunk-TDIK6NTV.mjs';
36
+ import './chunk-FB6463IN.mjs';
37
+ import './chunk-7GFE3PEY.mjs';
36
38
  import './chunk-ZXNQEW43.mjs';
39
+ import './chunk-7V5IUP2T.mjs';
37
40
  import './chunk-L5ORED7V.mjs';
41
+ import './chunk-X5CV2E2B.mjs';
42
+ import './chunk-A4L7YTKX.mjs';
43
+ import './chunk-U55XJEIG.mjs';
38
44
  import './chunk-KOKM4PQN.mjs';
39
- import './chunk-Q7G3BV3Y.mjs';
45
+ import './chunk-ORN5BLL7.mjs';
40
46
  import './chunk-BTPGQC6Z.mjs';
41
47
  import './chunk-LQG5G2LY.mjs';
42
48
  import './chunk-ZXX5GZEX.mjs';
43
49
  import './chunk-RFBLQLLZ.mjs';
50
+ import './chunk-KKQC526K.mjs';
44
51
  import './chunk-U476IXKQ.mjs';
45
52
  import './chunk-MP7ABPTD.mjs';
46
- import './chunk-R6A773WK.mjs';
47
- import './chunk-YTJCGKM4.mjs';
53
+ import './chunk-J4IJTTEX.mjs';
54
+ import './chunk-TBC3XUL2.mjs';