@delali/narsil 0.3.1-next.155 → 0.3.1-next.156

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 (195) hide show
  1. package/NOTICE +45 -0
  2. package/dist/{analysis-change-3TFIHT5E.mjs → analysis-change-5BQOQ4BF.mjs} +25 -18
  3. package/dist/{react-native/chunks/analysis-change-entry-JLL42PH6.mjs → analysis-change-entry-TXX6JSMX.mjs} +1 -1
  4. package/dist/browser/{analysis-change-TC36BU47.mjs → analysis-change-435CUEPZ.mjs} +8 -7
  5. package/dist/{analysis-change-entry-KA6JAO4X.mjs → browser/analysis-change-entry-HZXKPPGV.mjs} +1 -1
  6. package/dist/browser/{chunk-A5KUEGDY.mjs → chunk-2CFI5VVV.mjs} +2 -2
  7. package/dist/browser/{chunk-BXM5XOCA.mjs → chunk-2TI4SSUP.mjs} +2 -2
  8. package/dist/browser/{chunk-CJSYBQ4J.mjs → chunk-3SSRJMFN.mjs} +1 -1
  9. package/dist/browser/{chunk-SMEQ36NT.mjs → chunk-3V7DNNZL.mjs} +458 -622
  10. package/dist/browser/{chunk-RRO3EV4C.mjs → chunk-4NGKC4H4.mjs} +7 -7
  11. package/dist/browser/{chunk-ABCXENU5.mjs → chunk-6LWDPLTB.mjs} +1 -1
  12. package/dist/browser/{chunk-FNIFPFB7.mjs → chunk-7U3WVJUP.mjs} +2 -2
  13. package/dist/browser/{chunk-KKAMCABR.mjs → chunk-BHFQATSC.mjs} +1 -1
  14. package/dist/browser/{chunk-IKDKX5VQ.mjs → chunk-CRE3G7F3.mjs} +3 -3
  15. package/dist/browser/{chunk-56W3HQVJ.mjs → chunk-EA63E3D2.mjs} +4 -4
  16. package/dist/browser/{chunk-K5AXJBLL.mjs → chunk-IZXVW2ZJ.mjs} +3 -3
  17. package/dist/browser/{chunk-RND5CLX3.mjs → chunk-K4Q6KX3R.mjs} +16 -16
  18. package/dist/browser/{chunk-XY4VVBBO.mjs → chunk-KZWSX6BH.mjs} +2 -2
  19. package/dist/browser/{chunk-3UIEB4QF.mjs → chunk-MGI4BCXC.mjs} +2 -2
  20. package/dist/browser/chunk-MOG4OVDK.mjs +51 -0
  21. package/dist/browser/{chunk-RQBUNZQW.mjs → chunk-NQAME3RK.mjs} +2 -2
  22. package/dist/browser/{chunk-LFIWRCEA.mjs → chunk-NXQG7DRA.mjs} +29 -6
  23. package/dist/browser/{chunk-JVBP5EYO.mjs → chunk-SSTPBZZX.mjs} +7 -7
  24. package/dist/browser/{chunk-JIJXMI42.mjs → chunk-STOWQFT3.mjs} +1 -1
  25. package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
  26. package/dist/browser/{chunk-4EWUGZYZ.mjs → chunk-U4YDIBUT.mjs} +2 -2
  27. package/dist/browser/{chunk-K4GCSZLI.mjs → chunk-VLJQW4J6.mjs} +2985 -2985
  28. package/dist/browser/{chunk-SUDNZKPL.mjs → chunk-WI4MR75E.mjs} +1 -1
  29. package/dist/browser/{chunk-5TCXK5SB.mjs → chunk-WN464PTL.mjs} +1 -1
  30. package/dist/browser/{cold-module-NEUGHUPA.mjs → cold-module-2EHCIV4K.mjs} +15 -14
  31. package/dist/browser/{durability-wiring-CVGPRO6D.mjs → durability-wiring-A7BVG2DW.mjs} +20 -19
  32. package/dist/browser/{engine-hooks-YXMPHZKZ.mjs → engine-hooks-E4UD67JD.mjs} +7 -6
  33. package/dist/browser/geo-index-HHWGMNIS.mjs +1386 -0
  34. package/dist/browser/{import-OM6QAW45.mjs → import-DXYB6756.mjs} +8 -7
  35. package/dist/browser/{module-E33X4AOK.mjs → module-NIYMEA5R.mjs} +11 -10
  36. package/dist/browser/{module-3HNFCBJ5.mjs → module-TCT66FWA.mjs} +6 -6
  37. package/dist/browser/{phrase-module-ZXXU7S3B.mjs → phrase-module-HAT3TLZN.mjs} +1 -1
  38. package/dist/browser/{restore-hooks-IF2ZROUP.mjs → restore-hooks-YPN4ZFCY.mjs} +10 -9
  39. package/dist/browser/{restore-queue-ZBS7CJA6.mjs → restore-queue-G3RQGL3Y.mjs} +3 -3
  40. package/dist/browser/{retention-ASWUHAYI.mjs → retention-ZWVMNC3Q.mjs} +9 -8
  41. package/dist/browser/{snapshot-PN7ZW6Q4.mjs → snapshot-VEQNIE6C.mjs} +24 -23
  42. package/dist/browser/{start-ZIRB7MQ2.mjs → start-BM442C6R.mjs} +11 -10
  43. package/dist/browser/{write-HMDYCTV2.mjs → write-2EVMZWDE.mjs} +12 -11
  44. package/dist/{chunk-2MANFZJ3.mjs → chunk-25KDNIZZ.mjs} +1 -1
  45. package/dist/{chunk-3HHQLEEQ.mjs → chunk-2UV4QBHW.mjs} +7 -7
  46. package/dist/{chunk-BY6ZDGYS.mjs → chunk-3HYC4JRF.mjs} +1 -1
  47. package/dist/{chunk-HW5TNXBO.mjs → chunk-46KY2PJD.mjs} +7 -6
  48. package/dist/{chunk-SY3EWKQY.mjs → chunk-4KKXNJM6.mjs} +1 -1
  49. package/dist/{chunk-VQEUR6T6.mjs → chunk-5VV4R6P7.mjs} +3040 -3040
  50. package/dist/chunk-6HTGOXIK.mjs +875 -0
  51. package/dist/{chunk-RSVULW4Q.mjs → chunk-6I6AYAXS.mjs} +4 -4
  52. package/dist/chunk-7GFE3PEY.mjs +40 -0
  53. package/dist/{chunk-3R4UZWQG.mjs → chunk-7LXHHCXZ.mjs} +15 -15
  54. package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
  55. package/dist/{chunk-4BYWRYPM.mjs → chunk-A4L7YTKX.mjs} +52 -89
  56. package/dist/{chunk-WQRN64Q6.mjs → chunk-BU4SAIC4.mjs} +1 -1
  57. package/dist/{chunk-5FVU47TB.mjs → chunk-BWZ3P4MU.mjs} +3 -3
  58. package/dist/{chunk-LC3FDWTX.mjs → chunk-CITFCZKF.mjs} +3 -2
  59. package/dist/{chunk-PCRA7HTI.mjs → chunk-CSLGFPFQ.mjs} +1 -1
  60. package/dist/{chunk-VHBNF4MA.mjs → chunk-DP5C7YFQ.mjs} +2 -2
  61. package/dist/{chunk-3HB3PEC6.mjs → chunk-DWEPMFJE.mjs} +5 -5
  62. package/dist/{chunk-KMUNHGBQ.mjs → chunk-EFBDHH5P.mjs} +29 -28
  63. package/dist/{chunk-DCNKVEDB.mjs → chunk-FAKFUDZZ.mjs} +5 -6
  64. package/dist/chunk-FB6463IN.mjs +1499 -0
  65. package/dist/{chunk-KFLK5NA2.mjs → chunk-FCJ553HS.mjs} +1 -1
  66. package/dist/{chunk-SG3JBNHY.mjs → chunk-FJKKCV4D.mjs} +1 -1
  67. package/dist/{chunk-H6VIGE62.mjs → chunk-FNGAM5B7.mjs} +10 -9
  68. package/dist/{chunk-VGF7CFRP.mjs → chunk-FRBFVQFN.mjs} +5 -4
  69. package/dist/{chunk-QH3YIQP4.mjs → chunk-FYOVBEMM.mjs} +2 -2
  70. package/dist/chunk-G6HRSGOU.mjs +74 -0
  71. package/dist/{chunk-DUOLGBTE.mjs → chunk-HFPMMRQT.mjs} +3 -3
  72. package/dist/{chunk-ZHCUZZE5.mjs → chunk-HHBUCIUY.mjs} +1 -1
  73. package/dist/{chunk-ZTW5WTGG.mjs → chunk-I2KPOLOZ.mjs} +3 -3
  74. package/dist/{chunk-L7ZD4L3K.mjs → chunk-I53G4JAU.mjs} +7 -6
  75. package/dist/{chunk-YEDIDCR7.mjs → chunk-I5B7RXU7.mjs} +91 -22
  76. package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
  77. package/dist/{chunk-S2EQU2GE.mjs → chunk-JDJBQLRO.mjs} +9 -9
  78. package/dist/{chunk-KPIV4RUC.mjs → chunk-JWRUUCWD.mjs} +2 -2
  79. package/dist/{chunk-KBKEXQZA.mjs → chunk-K5QFDYST.mjs} +1 -1
  80. package/dist/{chunk-DIBHI6W5.mjs → chunk-KF4EXSM4.mjs} +2 -2
  81. package/dist/{chunk-Q7G3BV3Y.mjs → chunk-KKQC526K.mjs} +19 -11
  82. package/dist/{chunk-4KRC2APY.mjs → chunk-L6V6BST3.mjs} +6 -19
  83. package/dist/{chunk-U4BS74YN.mjs → chunk-MQOJIO5B.mjs} +1 -1
  84. package/dist/chunk-ORN5BLL7.mjs +11 -0
  85. package/dist/{chunk-ZAUJFLEN.mjs → chunk-P5ZI2P2W.mjs} +122 -1697
  86. package/dist/{chunk-AILVAOLX.mjs → chunk-PWC4VB3Q.mjs} +2 -2
  87. package/dist/{chunk-J4IWBIVY.mjs → chunk-QOW2JPUI.mjs} +5 -5
  88. package/dist/{chunk-PHQNACDT.mjs → chunk-RDXO6JST.mjs} +2 -2
  89. package/dist/chunk-RLOES5SX.mjs +31 -0
  90. package/dist/{chunk-6L3XJXGU.mjs → chunk-SA5LOGO3.mjs} +1 -1
  91. package/dist/chunk-SQJWAIF4.mjs +12 -0
  92. package/dist/{react-native/chunks/chunk-PPEPTUVV.mjs → chunk-TBC3XUL2.mjs} +29 -6
  93. package/dist/chunk-TDIK6NTV.mjs +10 -0
  94. package/dist/{chunk-MT2NRTA6.mjs → chunk-TGS5UXBE.mjs} +3 -3
  95. package/dist/{chunk-KBDBPVLN.mjs → chunk-TZ3355VS.mjs} +1 -1
  96. package/dist/{chunk-Q622CTMC.mjs → chunk-TZTRKM33.mjs} +1 -1
  97. package/dist/{react-native/chunks/chunk-JV6VQY2S.mjs → chunk-U55XJEIG.mjs} +2 -1
  98. package/dist/{chunk-Z2BE2MAM.mjs → chunk-VTTRFF2C.mjs} +28 -15
  99. package/dist/{chunk-KXCVQWOR.mjs → chunk-WX4LAO6M.mjs} +3 -3
  100. package/dist/{chunk-BDRIVYOK.mjs → chunk-XAXKV65G.mjs} +1 -1
  101. package/dist/{chunk-UZRZKNNZ.mjs → chunk-XXHN7J46.mjs} +1 -1
  102. package/dist/{chunk-H4KHPLHJ.mjs → chunk-YTWZVGCB.mjs} +1 -1
  103. package/dist/{chunk-QUJHMPTP.mjs → chunk-Z2KAFCRT.mjs} +2 -2
  104. package/dist/{chunk-SMVH6JBE.mjs → chunk-ZKP7G7TV.mjs} +1 -1
  105. package/dist/{cold-module-7XXCEGTZ.mjs → cold-module-6MO2XJF2.mjs} +29 -23
  106. package/dist/direct-executor-FTMYY3TI.mjs +34 -0
  107. package/dist/distribution/coordinator/etcd.mjs +2 -2
  108. package/dist/distribution/coordinator/in-memory.mjs +2 -2
  109. package/dist/distribution.mjs +57 -51
  110. package/dist/{durability-wiring-NCKUC5EO.mjs → durability-wiring-VIF5MOSY.mjs} +41 -34
  111. package/dist/{engine-hooks-DHCMOADY.mjs → engine-hooks-EGUGNZYE.mjs} +24 -17
  112. package/dist/geo-index-MRH5JMIR.mjs +1387 -0
  113. package/dist/{import-NBFXFCSG.mjs → import-XKDPJQDP.mjs} +24 -17
  114. package/dist/index.browser.mjs +6 -5
  115. package/dist/index.d.ts +127 -2
  116. package/dist/index.mjs +23 -16
  117. package/dist/index.react-native.mjs +12 -10
  118. package/dist/invalidation/filesystem.mjs +2 -2
  119. package/dist/{long-query-thread-J4DVRM4A.mjs → long-query-thread-YA4IAYSY.mjs} +25 -20
  120. package/dist/{module-DWKPBSMN.mjs → module-FQ4JWNQJ.mjs} +26 -19
  121. package/dist/{module-UN76TF7I.mjs → module-N55W4Q5C.mjs} +9 -9
  122. package/dist/{paged-partition-archive-DPNWVSK2.mjs → paged-partition-archive-PXW5XAYU.mjs} +32 -26
  123. package/dist/partial-words.mjs +8 -6
  124. package/dist/pattern.mjs +4 -3
  125. package/dist/persistence/durability/checkpoint-worker.mjs +30 -21
  126. package/dist/{phrase-module-ZI4WSQVH.mjs → phrase-module-XW5MKWP5.mjs} +3 -2
  127. package/dist/query-suggestions/merge-worker.mjs +25 -18
  128. package/dist/query-suggestions.browser.mjs +12 -11
  129. package/dist/query-suggestions.mjs +34 -27
  130. package/dist/react-native/chunks/{analysis-change-6BPDPH6K.mjs → analysis-change-LT5QBQ3H.mjs} +13 -11
  131. package/dist/{browser/analysis-change-entry-4MH3CZXH.mjs → react-native/chunks/analysis-change-entry-SCVWK6OU.mjs} +1 -1
  132. package/dist/react-native/chunks/{chunk-7PXRWYUU.mjs → chunk-2PRHILX3.mjs} +53 -19
  133. package/dist/react-native/chunks/{chunk-C3PTWYKT.mjs → chunk-3JWDECAZ.mjs} +4 -4
  134. package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
  135. package/dist/react-native/chunks/{chunk-CUH5F57W.mjs → chunk-4JYO3JD2.mjs} +2 -2
  136. package/dist/react-native/chunks/{chunk-3JIBF3XT.mjs → chunk-DNXOMPAQ.mjs} +1 -1
  137. package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
  138. package/dist/{chunk-YTJCGKM4.mjs → react-native/chunks/chunk-EJ33LCHV.mjs} +29 -6
  139. package/dist/react-native/chunks/{chunk-EIOYM5TO.mjs → chunk-ENLMYKSX.mjs} +3024 -3054
  140. package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
  141. package/dist/{chunk-4UMZ7KQL.mjs → react-native/chunks/chunk-FTZHMRD2.mjs} +2 -1
  142. package/dist/react-native/chunks/{chunk-OL3WDV53.mjs → chunk-G43IPIDG.mjs} +3 -3
  143. package/dist/react-native/chunks/{chunk-4Y53T4YE.mjs → chunk-GXX3DQXP.mjs} +5 -19
  144. package/dist/react-native/chunks/{chunk-GIZTJXYW.mjs → chunk-KV46CT4D.mjs} +2 -2
  145. package/dist/react-native/chunks/{chunk-HUOYZJ3Q.mjs → chunk-MIP4SOR6.mjs} +1419 -711
  146. package/dist/react-native/chunks/{chunk-ALOIBXWN.mjs → chunk-MUWD2H2S.mjs} +2 -2
  147. package/dist/react-native/chunks/{chunk-4LCEN2IU.mjs → chunk-NB3LP33V.mjs} +2 -2
  148. package/dist/react-native/chunks/{chunk-VXGE4ZXL.mjs → chunk-PDRWWPKV.mjs} +17 -17
  149. package/dist/react-native/chunks/{chunk-N2WUOWLL.mjs → chunk-POPDAGH6.mjs} +7 -7
  150. package/dist/react-native/chunks/{chunk-GJFXPHXI.mjs → chunk-QUKQNI3H.mjs} +3 -3
  151. package/dist/react-native/chunks/{chunk-KTTAU63H.mjs → chunk-SK2PWYDH.mjs} +2 -2
  152. package/dist/react-native/chunks/{chunk-7GRCBBME.mjs → chunk-TP6KCKER.mjs} +2 -2
  153. package/dist/react-native/chunks/{chunk-KJIG57UD.mjs → chunk-UQ4OAXKU.mjs} +7 -7
  154. package/dist/react-native/chunks/{chunk-PEHS2UO3.mjs → chunk-VWUDIOT6.mjs} +3 -3
  155. package/dist/react-native/chunks/{chunk-JLIIWJUV.mjs → chunk-YZW4CHM6.mjs} +50 -11
  156. package/dist/react-native/chunks/{chunk-QJXTNPLQ.mjs → chunk-ZLWVW734.mjs} +1 -1
  157. package/dist/react-native/chunks/{chunk-TYIRMPD3.mjs → chunk-ZXZFN7FI.mjs} +1 -1
  158. package/dist/react-native/chunks/{cold-module-5PHF6DZR.mjs → cold-module-KVZYUGRY.mjs} +19 -17
  159. package/dist/react-native/chunks/{durability-wiring-KO565FZC.mjs → durability-wiring-34OYO32E.mjs} +27 -25
  160. package/dist/react-native/chunks/{engine-hooks-MVRRHH6B.mjs → engine-hooks-M7JV46NH.mjs} +13 -11
  161. package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
  162. package/dist/react-native/chunks/{import-YVZA4V4V.mjs → import-H6AQREWI.mjs} +14 -12
  163. package/dist/react-native/chunks/{module-ZL5ZG6YB.mjs → module-LBZPGOWH.mjs} +15 -13
  164. package/dist/react-native/chunks/{module-H5MVPSP2.mjs → module-TTEVPRCW.mjs} +8 -8
  165. package/dist/react-native/chunks/{phrase-module-RTVKEWJT.mjs → phrase-module-QK22HSQ2.mjs} +1 -1
  166. package/dist/react-native/chunks/{restore-hooks-SILFPU6B.mjs → restore-hooks-IBGIY3DR.mjs} +17 -15
  167. package/dist/react-native/chunks/{restore-queue-HSYP2AEC.mjs → restore-queue-ZZX54AH7.mjs} +3 -3
  168. package/dist/react-native/chunks/{retention-7I7UAWYK.mjs → retention-EW4TTDFB.mjs} +18 -16
  169. package/dist/react-native/chunks/{snapshot-EZYB6SLF.mjs → snapshot-REYVIN3X.mjs} +31 -29
  170. package/dist/react-native/chunks/{start-SHVZ72I5.mjs → start-BQK6KN3R.mjs} +18 -16
  171. package/dist/react-native/chunks/{write-JUESXHDL.mjs → write-FQAYCZF5.mjs} +16 -14
  172. package/dist/react-native/partial-words.mjs +7 -6
  173. package/dist/react-native/pattern.mjs +1 -1
  174. package/dist/react-native/query-suggestions.mjs +19 -17
  175. package/dist/react-native/sync.mjs +7 -7
  176. package/dist/react-native/synonyms.mjs +92 -24
  177. package/dist/{restore-hooks-HZ3ILAMO.mjs → restore-hooks-CDERDEF4.mjs} +28 -21
  178. package/dist/{restore-queue-JVGENGGE.mjs → restore-queue-7NNSTROA.mjs} +3 -3
  179. package/dist/{retention-HROPV2QU.mjs → retention-QSVBBNRM.mjs} +28 -21
  180. package/dist/server.mjs +45 -39
  181. package/dist/{snapshot-4HS2G2UM.mjs → snapshot-RH4NSKIZ.mjs} +44 -38
  182. package/dist/{start-UTWHGH42.mjs → start-MCKCOGIW.mjs} +31 -24
  183. package/dist/sync/filesystem.mjs +3 -3
  184. package/dist/sync.browser.mjs +5 -5
  185. package/dist/sync.mjs +5 -5
  186. package/dist/synonyms.mjs +7 -6
  187. package/dist/{thread-6MOXY2KD.mjs → thread-O4SBJJJS.mjs} +24 -19
  188. package/dist/vector/search-worker.mjs +6 -6
  189. package/dist/workers/entry.mjs +17 -6
  190. package/dist/{write-GTTWWRRG.mjs → write-3FK7NG3Y.mjs} +26 -19
  191. package/package.json +15 -8
  192. package/dist/chunk-DJHHF2L5.mjs +0 -17
  193. package/dist/chunk-HNVVEQP7.mjs +0 -44
  194. package/dist/direct-executor-G5TK7NLA.mjs +0 -29
  195. package/dist/browser/{chunk-4WCVMOU3.mjs → chunk-XAWNZ4G2.mjs} +10 -10
@@ -4,14 +4,14 @@ function holdsChangeWork(entry) {
4
4
  }
5
5
  async function abandonChangeOf(core, indexName) {
6
6
  if (!holdsChangeWork(core.indexRegistry.get(indexName))) return;
7
- const { abandonAnalysisChange } = await import('./analysis-change-6BPDPH6K.mjs');
7
+ const { abandonAnalysisChange } = await import('./analysis-change-LT5QBQ3H.mjs');
8
8
  await abandonAnalysisChange(core, indexName);
9
9
  }
10
10
  async function resumeChangeOf(core, indexName) {
11
11
  if ((core.indexRegistry.get(indexName)?.pendingAnalysis ?? null) === null) return;
12
12
  if (core.mutationCtx.capacityScope === "partition") return;
13
13
  if (core.executor.getManager(indexName) === void 0) return;
14
- const { resumeAnalysisChange } = await import('./analysis-change-6BPDPH6K.mjs');
14
+ const { resumeAnalysisChange } = await import('./analysis-change-LT5QBQ3H.mjs');
15
15
  void resumeAnalysisChange(core, indexName).catch(() => void 0);
16
16
  }
17
17
  async function resumeEveryChange(core) {
@@ -1,6 +1,6 @@
1
- import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-CUH5F57W.mjs';
2
- import { QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-PJHAB5ZY.mjs';
1
+ import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-4JYO3JD2.mjs';
3
2
  import { manifestFileRefs } from './chunk-6WA3C3DV.mjs';
3
+ import { QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-PJHAB5ZY.mjs';
4
4
  import { HEADER_SIZE } from './chunk-YH7QY657.mjs';
5
5
  import { MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
6
6
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
@@ -1,21 +1,21 @@
1
- import { gunzip, gzip } from './chunk-CKNRFDTZ.mjs';
2
1
  import { DEFAULT_VECTOR_METRIC, defaultQuantizationFor } from './chunk-HJBJBH26.mjs';
3
- import { decodeSegmentManifest } from './chunk-CUH5F57W.mjs';
4
- import { isSyncEpoch } from './chunk-JWUCMVRK.mjs';
5
- import { storedStateToWire, storedStateFromWire } from './chunk-QJXTNPLQ.mjs';
6
- import { readListedFile, requireListedChecksum, writeSegmentsOf, readSegmentFile, requireListedSize, SEGMENT_PAGE_BYTES, STABLE_HEAD_ATTEMPTS, RECORD_PAGE_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-C3PTWYKT.mjs';
7
- import { restoreVectorFields } from './chunk-GJFXPHXI.mjs';
2
+ import { gunzip, gzip } from './chunk-CKNRFDTZ.mjs';
3
+ import { readListedFile, requireListedChecksum, writeSegmentsOf, readSegmentFile, requireListedSize, SEGMENT_PAGE_BYTES, STABLE_HEAD_ATTEMPTS, RECORD_PAGE_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-3JWDECAZ.mjs';
4
+ import { restoreVectorFields } from './chunk-QUKQNI3H.mjs';
8
5
  import { DEFAULT_COMPACTION_THRESHOLD, COMPACTION_LARGEST_MERGED_DOCUMENT_COUNT, SEGMENT_FILE_FRAMING_SLACK_BYTES } from './chunk-F753DA54.mjs';
9
- import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, vectorFileKey, MAX_SEGMENTS_PER_PARTITION, graphPartKey } from './chunk-6WA3C3DV.mjs';
6
+ import { decodeSegmentManifest } from './chunk-4JYO3JD2.mjs';
10
7
  import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead } from './chunk-DVDX4SDR.mjs';
11
- import { VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, rulesOfStoredSynonyms, isCompositePartition, packChecksummedEnvelope, reconstructSchemaFromMetadata, engineVersionParts, packEnvelopeWithChecksum, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, decodeMapWithoutFields, prepareDocumentVectors } from './chunk-HUOYZJ3Q.mjs';
12
- import { isQuantizationMode, isStorageMode } from './chunk-4Y53T4YE.mjs';
8
+ import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, vectorFileKey, MAX_SEGMENTS_PER_PARTITION, graphPartKey } from './chunk-6WA3C3DV.mjs';
9
+ import { isSyncEpoch } from './chunk-JWUCMVRK.mjs';
10
+ import { storedStateToWire, storedStateFromWire } from './chunk-ZLWVW734.mjs';
11
+ import { VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, rulesOfStoredSynonyms, isCompositePartition, packChecksummedEnvelope, reconstructSchemaFromMetadata, engineVersionParts, packEnvelopeWithChecksum, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, decodeMapWithoutFields, prepareDocumentVectors } from './chunk-MIP4SOR6.mjs';
12
+ import { isQuantizationMode, isStorageMode } from './chunk-GXX3DQXP.mjs';
13
13
  import { crc32, readHeader, HEADER_SIZE, writeHeader, openChecksummedEnvelope, checksumOfChunks } from './chunk-YH7QY657.mjs';
14
- import { flattenSchema, extractVectorFieldsFromSchema, requireValidFieldTypes, partialFieldsOf } from './chunk-3JIBF3XT.mjs';
14
+ import { flattenSchema, extractVectorFieldsFromSchema, requireValidFieldTypes, partialFieldsOf } from './chunk-DNXOMPAQ.mjs';
15
15
  import { VALID_HNSW_METRICS, MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
16
16
  import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
17
17
  import { getLanguage, resolveIndexAnalysis } from './chunk-MJDQU5MW.mjs';
18
- import { compareCodePoints } from './chunk-PPEPTUVV.mjs';
18
+ import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
19
19
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
20
20
  import { decode, encode } from '@msgpack/msgpack';
21
21
 
@@ -1232,7 +1232,7 @@ function holdsEveryHead(ref) {
1232
1232
  async function loadFieldOnDemand(store, ref, vectorIndex, resolvePartition) {
1233
1233
  const { pathOf } = store;
1234
1234
  if (pathOf === void 0 || vectorIndex.storage !== "disk" || !holdsEveryHead(ref)) return false;
1235
- const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-5PHF6DZR.mjs');
1235
+ const { loadFilesByParts, openColdVectorField, osqBitsOf, waitBeforeColdLoad } = await import('./cold-module-KVZYUGRY.mjs');
1236
1236
  await Promise.all([
1237
1237
  ...ref.files.map((file) => requireListedSize(store, file.key, { bytes: file.bytes, what: "vector file" })),
1238
1238
  ...ref.graphParts.map((part) => requireListedSize(store, part.key, { bytes: part.bytes, what: "graph part" }))
@@ -2036,7 +2036,7 @@ async function compactPartitionSegments(input) {
2036
2036
  if (paged) {
2037
2037
  const { directory } = input.store;
2038
2038
  if (directory === void 0) return { segments, nextSegmentId: input.nextSegmentId };
2039
- const { mergePagedWindow } = await import('./module-ZL5ZG6YB.mjs');
2039
+ const { mergePagedWindow } = await import('./module-LBZPGOWH.mjs');
2040
2040
  return replacing(
2041
2041
  await mergePagedWindow({
2042
2042
  store: input.store,
@@ -2124,7 +2124,7 @@ function pagedSettingsOf(context) {
2124
2124
  async function tombstonesOfDelta(context, older, selections, deleted) {
2125
2125
  const { directory } = context.input.store;
2126
2126
  if (context.input.metadata.textStorage !== "disk" || directory === void 0) return deleted;
2127
- const { pagedTombstonesFor } = await import('./module-ZL5ZG6YB.mjs');
2127
+ const { pagedTombstonesFor } = await import('./module-LBZPGOWH.mjs');
2128
2128
  return pagedTombstonesFor(
2129
2129
  directory,
2130
2130
  older,
@@ -2325,7 +2325,7 @@ function removeFromPartition(manager, partitionId, docIds) {
2325
2325
  }
2326
2326
  }
2327
2327
  async function attachPagedSegment(directory, ref, partitionId, manager, options) {
2328
- const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-ZL5ZG6YB.mjs');
2328
+ const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-LBZPGOWH.mjs');
2329
2329
  if (options.decodesEveryDocument) await checkPagedSegmentFully(directory, ref);
2330
2330
  const snapshot = openPagedSnapshot(await pagedListingOf(directory, ref));
2331
2331
  requireAgreedSchema(options.schema, snapshot.schema, ref.key);
@@ -2339,7 +2339,7 @@ async function loadPartitionSegments(store, partition, manager, options) {
2339
2339
  const { directory } = store;
2340
2340
  for (const ref of partition.segments) {
2341
2341
  if (manager.config.textStorage === "disk" && directory !== void 0) {
2342
- const { isPagedSegmentFile } = await import('./module-ZL5ZG6YB.mjs');
2342
+ const { isPagedSegmentFile } = await import('./module-LBZPGOWH.mjs');
2343
2343
  if (await isPagedSegmentFile(directory, ref.key)) {
2344
2344
  await attachPagedSegment(directory, ref, partition.partitionId, manager, options);
2345
2345
  await yieldToEventLoop();
@@ -2395,7 +2395,7 @@ async function loadSegmentedCheckpoint(store, indexName, manifest, deps, decodes
2395
2395
  (field) => deps.vectorIndexes.get(field.fieldPath)?.storage === "disk" && field.files.some((file) => file.headOffset !== void 0)
2396
2396
  );
2397
2397
  if (!decodesEveryDocument && directory !== void 0 && opensVectorsOnDemand) {
2398
- const { startReadingOpeningSectionsAhead } = await import('./module-ZL5ZG6YB.mjs');
2398
+ const { startReadingOpeningSectionsAhead } = await import('./module-LBZPGOWH.mjs');
2399
2399
  await startReadingOpeningSectionsAhead(directory, manifest);
2400
2400
  }
2401
2401
  for (const partition of manifest.partitions) {
@@ -1,14 +1,14 @@
1
1
  import { encodeDocumentJson } from './chunk-WBYQRHDY.mjs';
2
- import { loadFailed, sectionNamed, PAGED_SEGMENT_ENVELOPE_VERSION, writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, SMALLEST_BLOCK_POSTINGS, DOCUMENT_BLOCK_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, decodeSections, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, ID_SAMPLE_INTERVAL, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, POSITION_WIDTH_BYTES, POSTING_WIDTH_BYTES, RECORD_PAGE_BYTES, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-C3PTWYKT.mjs';
3
- import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns, setNestedValue, littleEndianBytes, uint32sFrom, uint64Bytes, decodeSurfaceForms } from './chunk-GJFXPHXI.mjs';
2
+ import { loadFailed, sectionNamed, PAGED_SEGMENT_ENVELOPE_VERSION, writeSegmentsOf, MessagePackChunks, writeSurfaceForms, writeFieldLengths, writeValueColumns, writeBooleanColumns, writeEnumColumns, writeGeopointColumns, writePatternColumns, writePartialWords, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, REWRITE_SPILL_BYTES, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, SMALLEST_BLOCK_POSTINGS, DOCUMENT_BLOCK_BYTES, LIST_VIEWS_HELD_PER_SEGMENT, TOMBSTONES_BETWEEN_YIELDS, readSegmentFile, decodeSections, READS_AHEAD_AT_ONCE, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, ID_SAMPLE_INTERVAL, LARGEST_CACHED_ENTRY_SHARE, MAX_THREAD_FILE_NUMBER, POSITION_WIDTH_BYTES, POSTING_WIDTH_BYTES, RECORD_PAGE_BYTES, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, SECTION_WRITE_BUFFER_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, READ_AHEAD_CHUNK_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, THREAD_READ_CACHE_BYTES, MERGE_READ_CACHE_BYTES } from './chunk-3JWDECAZ.mjs';
3
+ import { requireOffsets, requireUtf8Entries, requireEntriesAscend, decodeFieldLengths, decodePartialWords, decodePatternColumns, decodeGeopointColumns, decodeEnumColumns, decodeBooleanColumns, decodeValueColumns, setNestedValue, littleEndianBytes, uint32sFrom, uint64Bytes, decodeSurfaceForms } from './chunk-QUKQNI3H.mjs';
4
4
  import { createVectorFileReader } from './chunk-4DII3ZSM.mjs';
5
- import { generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, decodeStoredDocument, isCompositePartition, mergeFieldLengths, mergeSurfaceForms, encodeSurfaceTable, mergePartialWords, buildPartialWordTableFrom, mergeFieldIndexes, engineVersionParts, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, decodeSurfaceTable, mergeDocFrequencies, createSharedFrozenSegment, shareSegmentArrays, selectionKeeps, fieldIndexRemapOf, freezeSegmentShared, createFrozenSegment, scanPostingBlocks, holdsADiscardedField, endOfValue } from './chunk-HUOYZJ3Q.mjs';
5
+ import { generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, decodeStoredDocument, isCompositePartition, mergeFieldLengths, mergeSurfaceForms, encodeSurfaceTable, mergePartialWords, buildPartialWordTableFrom, mergeFieldIndexes, engineVersionParts, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, decodeSurfaceTable, mergeDocFrequencies, createSharedFrozenSegment, shareSegmentArrays, selectionKeeps, fieldIndexRemapOf, freezeSegmentShared, createFrozenSegment, scanPostingBlocks, holdsADiscardedField, endOfValue } from './chunk-MIP4SOR6.mjs';
6
6
  import { reactNativeHost } from './chunk-MVXELMJX.mjs';
7
- import { parseVectorDimension } from './chunk-4Y53T4YE.mjs';
7
+ import { parseVectorDimension } from './chunk-GXX3DQXP.mjs';
8
8
  import { HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, writeHeader, crc32, readHeader } from './chunk-YH7QY657.mjs';
9
- import { flattenSchema, encodeDocument } from './chunk-3JIBF3XT.mjs';
9
+ import { flattenSchema, encodeDocument } from './chunk-DNXOMPAQ.mjs';
10
10
  import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
11
- import { compareCodePoints } from './chunk-PPEPTUVV.mjs';
11
+ import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
12
12
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
13
13
  import { decode, encode } from '@msgpack/msgpack';
14
14
 
@@ -1308,7 +1308,7 @@ async function coldFieldOf(checkpoint, field) {
1308
1308
  const dimension = fieldType === void 0 ? null : parseVectorDimension(fieldType);
1309
1309
  if (dimension === null) return null;
1310
1310
  const withPath = async (ref) => ({ ref, path: await directory.pathOf(ref.key) });
1311
- const { openColdVectorField } = await import('./cold-module-5PHF6DZR.mjs');
1311
+ const { openColdVectorField } = await import('./cold-module-KVZYUGRY.mjs');
1312
1312
  return openColdVectorField({
1313
1313
  fieldPath: field.fieldPath,
1314
1314
  dimension,
@@ -1,6 +1,6 @@
1
- import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-HUOYZJ3Q.mjs';
2
- import { getNestedValue } from './chunk-4Y53T4YE.mjs';
3
- import { requireValidFieldTypes } from './chunk-3JIBF3XT.mjs';
1
+ import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-MIP4SOR6.mjs';
2
+ import { getNestedValue } from './chunk-GXX3DQXP.mjs';
3
+ import { requireValidFieldTypes } from './chunk-DNXOMPAQ.mjs';
4
4
  import { VECTOR_PATTERN } from './chunk-C5G6TJ7A.mjs';
5
5
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
6
6
  import { decode } from '@msgpack/msgpack';
@@ -1,7 +1,7 @@
1
1
  import { REBUILD_REMOVED_RATIO, BUILD_TURN_HANDOVER_AFTER_MS, DRIFT_CHECK_GROWTH_FACTOR, VECTOR_FILE_REPLACED_ABOVE_DEAD_SHARE, VECTOR_FILE_FIXED_OVERHEAD_BYTES, VECTOR_FILE_CENTROID_BYTES_PER_COMPONENT, VECTOR_FILE_STRING_HEADER_BYTES } from './chunk-HJBJBH26.mjs';
2
- import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-EIOYM5TO.mjs';
2
+ import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-ENLMYKSX.mjs';
3
3
  import { osqRecordBytes, VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes, writeRecord } from './chunk-DVDX4SDR.mjs';
4
- import { turnsAreBudgeted, backgroundTurnIsSpent, yieldBackgroundTurn } from './chunk-JLIIWJUV.mjs';
4
+ import { turnsAreBudgeted, backgroundTurnIsSpent, yieldBackgroundTurn } from './chunk-YZW4CHM6.mjs';
5
5
  import { MAX_DOC_ID_LENGTH } from './chunk-AM7RSBPF.mjs';
6
6
  import { MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
7
7
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
@@ -1,5 +1,5 @@
1
1
  import { attachedRuntimeOf } from './chunk-DIYDOIM4.mjs';
2
- import { emitWriteEventAfter, dropEngineIndex } from './chunk-HUOYZJ3Q.mjs';
2
+ import { emitWriteEventAfter, dropEngineIndex } from './chunk-MIP4SOR6.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
4
4
 
5
5
  // src/query-suggestions/engine-hooks.ts
@@ -52,7 +52,7 @@ async function startQuerySuggestions(core, engine, config) {
52
52
  installSuggestionHooks(core);
53
53
  if (config?.querySuggestions === void 0 && !holdsEnabledSetting(core)) return;
54
54
  try {
55
- const { localRuntimeOf } = await import('./start-SHVZ72I5.mjs');
55
+ const { localRuntimeOf } = await import('./start-BQK6KN3R.mjs');
56
56
  await localRuntimeOf(core, engine, config);
57
57
  } catch (error) {
58
58
  await engine.shutdown().catch(() => void 0);
@@ -1,16 +1,16 @@
1
- import { dayOf, DayStore, RestoredHistory, openCountsFile, sameBytes } from './chunk-GIZTJXYW.mjs';
1
+ import { dayOf, DayStore, RestoredHistory, openCountsFile, sameBytes } from './chunk-KV46CT4D.mjs';
2
+ import { installSuggestionHooks } from './chunk-TP6KCKER.mjs';
2
3
  import { listHistoryFolder, historyFileOf, removeHistoryFolder, historyFilesOf, buildRecordKey, removeRestoreLeftovers } from './chunk-ZZT7CEN7.mjs';
3
- import { SHA256_BLOCK_BYTES, sha256, SHA256_INITIAL_STATE, compressSha256Block, paddedSha256Message, sha256Digest } from './chunk-H3MDVPBO.mjs';
4
- import { resolveSetting, isPerson, isGroup, acceptedPhrase, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-TYIRMPD3.mjs';
5
- import { installSuggestionHooks } from './chunk-7GRCBBME.mjs';
6
4
  import { attachedRuntimeOf, attachRuntime } from './chunk-DIYDOIM4.mjs';
5
+ import { SHA256_BLOCK_BYTES, sha256, SHA256_INITIAL_STATE, compressSha256Block, paddedSha256Message, sha256Digest } from './chunk-H3MDVPBO.mjs';
6
+ import { resolveSetting, isPerson, isGroup, acceptedPhrase, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-ZXZFN7FI.mjs';
7
7
  import './chunk-PSWKQVVT.mjs';
8
8
  import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
9
- import { SUGGESTIONS_INDEX_INFIX, BUILD_WRITE_BATCH, DAY_MS, MS_PER_SECOND, MIN_KEY_BYTES, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, MAX_TIMER_DELAY_MS, BUILD_LIST_PAGE } from './chunk-PJHAB5ZY.mjs';
10
- import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-HUOYZJ3Q.mjs';
9
+ import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-MIP4SOR6.mjs';
11
10
  import { withOpenIndex } from './chunk-JDOEEMEF.mjs';
11
+ import { SUGGESTIONS_INDEX_INFIX, BUILD_WRITE_BATCH, DAY_MS, MS_PER_SECOND, MIN_KEY_BYTES, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, MAX_TIMER_DELAY_MS, BUILD_LIST_PAGE } from './chunk-PJHAB5ZY.mjs';
12
12
  import { crc32, openChecksummedEnvelope } from './chunk-YH7QY657.mjs';
13
- import { compareCodePoints } from './chunk-PPEPTUVV.mjs';
13
+ import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
14
14
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
15
15
  import { encode, decode } from '@msgpack/msgpack';
16
16
 
@@ -1,10 +1,10 @@
1
1
  import { restoredConfigFields, restoredEmbedding } from './chunk-LZSLNSUN.mjs';
2
- import { chunksOf } from './chunk-NVVRSRX5.mjs';
3
2
  import { untagDocumentLine } from './chunk-4J74WHQM.mjs';
4
- import { turnsAreBudgeted, turnIsSpent, yieldTurn } from './chunk-JLIIWJUV.mjs';
3
+ import { chunksOf } from './chunk-NVVRSRX5.mjs';
4
+ import { turnsAreBudgeted, turnIsSpent, yieldTurn } from './chunk-YZW4CHM6.mjs';
5
5
  import { MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, MAX_IMPORT_REFUSALS_REPORTED } from './chunk-AM7RSBPF.mjs';
6
6
  import { requireConfigurationShape } from './chunk-YH7QY657.mjs';
7
- import { flattenSchema } from './chunk-3JIBF3XT.mjs';
7
+ import { flattenSchema } from './chunk-DNXOMPAQ.mjs';
8
8
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
9
9
 
10
10
  // src/engine/export/lines.ts
@@ -358,16 +358,6 @@ function collectYoungGeneration() {
358
358
  return false;
359
359
  }
360
360
 
361
- // src/vector/osq/constants.ts
362
- var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
363
- var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
364
- var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
365
- var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
366
- var OSQ_LAMBDA = 0.1;
367
- var OSQ_REFINE_ROUNDS = 5;
368
- var OSQ_REFINE_TOLERANCE = 1e-8;
369
- var MIN_OVERSAMPLE = 1;
370
-
371
361
  // src/workers/thread-slot.ts
372
362
  var goneThreadSlots = /* @__PURE__ */ new Set();
373
363
  function threadSlotOfWorker(workerId) {
@@ -383,6 +373,32 @@ function threadSlotGone(threadSlot) {
383
373
  return goneThreadSlots.has(threadSlot);
384
374
  }
385
375
 
376
+ // src/vector/native/backend.ts
377
+ var nativeSearchCoreEnabled = true;
378
+ function nativeSearchCoreIsEnabled() {
379
+ return nativeSearchCoreEnabled;
380
+ }
381
+ function stopUsingTheNativeSearchCore(error) {
382
+ if (!nativeSearchCoreEnabled) return;
383
+ nativeSearchCoreEnabled = false;
384
+ console.warn(
385
+ "The native search core raised an error, so this thread searches through WebAssembly from now on:",
386
+ error instanceof Error ? error.message : String(error)
387
+ );
388
+ }
389
+ function noteFallback(operation) {
390
+ }
391
+
392
+ // src/vector/osq/constants.ts
393
+ var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
394
+ var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
395
+ var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
396
+ var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
397
+ var OSQ_LAMBDA = 0.1;
398
+ var OSQ_REFINE_ROUNDS = 5;
399
+ var OSQ_REFINE_TOLERANCE = 1e-8;
400
+ var MIN_OVERSAMPLE = 1;
401
+
386
402
  // src/core/doc-id-tables/constants.ts
387
403
  var DOC_ID_TABLE_SHARD_BITS = 6;
388
404
 
@@ -437,6 +453,29 @@ function createDocIdMap() {
437
453
  return new ShardedDocIdMap();
438
454
  }
439
455
 
456
+ // src/vector/native/types.ts
457
+ var NATIVE_CORE_ABI_VERSION = 8;
458
+ var NATIVE_OK = 0;
459
+ var NATIVE_NEEDS_ROOM = 3;
460
+ var NATIVE_GRAPH_NOT_HELD_ALONE = 4;
461
+
462
+ // src/vector/native/loader.react-native.ts
463
+ var loaded;
464
+ function loadNativeCore() {
465
+ if (loaded !== void 0) return loaded;
466
+ const core = reactNativeHost().core;
467
+ const reported = core.abiVersion();
468
+ if (reported !== NATIVE_CORE_ABI_VERSION) {
469
+ console.warn(
470
+ `Narsil searches without its native core on this phone, because the core reports ABI version ${reported} while this build of Narsil needs ${NATIVE_CORE_ABI_VERSION}.`
471
+ );
472
+ loaded = null;
473
+ return loaded;
474
+ }
475
+ loaded = core;
476
+ return loaded;
477
+ }
478
+
440
479
  // src/runtime/detect.ts
441
480
  function detectRuntimeName() {
442
481
  if ("Bun" in globalThis) {
@@ -520,4 +559,4 @@ function collectYoungGenerationBeforeRefusal() {
520
559
  return collectYoungGeneration();
521
560
  }
522
561
 
523
- export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, MIN_OVERSAMPLE, OSQ_GRID, OSQ_LAMBDA, OSQ_PLACEMENT_QUERY_BITS, OSQ_QUERY_BITS, OSQ_REFINE_ROUNDS, OSQ_REFINE_TOLERANCE, OSQ_STEPS, admittedHeapBytes, backgroundTurnIsSpent, changeIndexOutsideExternalWaits, chargeHeapBytes, collectAndReturnPages, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, countWrite, createDocIdMap, detectRuntime, holdWrites, holdWritesAndBackgroundWork, indexChangeOutsideExternalWaits, isSimdAvailable, markSimdUnavailable, noteThreadSlotGone, noteThreadSlotLive, reserveHeapBytes, reservedHeapBytes, threadSlotGone, threadSlotOfWorker, turnIsSpent, turnsAreBudgeted, waitOutsideCountedWrite, yieldBackgroundTurn, yieldTurn };
562
+ export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, MIN_OVERSAMPLE, NATIVE_GRAPH_NOT_HELD_ALONE, NATIVE_NEEDS_ROOM, NATIVE_OK, OSQ_GRID, OSQ_LAMBDA, OSQ_PLACEMENT_QUERY_BITS, OSQ_QUERY_BITS, OSQ_REFINE_ROUNDS, OSQ_REFINE_TOLERANCE, OSQ_STEPS, admittedHeapBytes, backgroundTurnIsSpent, changeIndexOutsideExternalWaits, chargeHeapBytes, collectAndReturnPages, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, countWrite, createDocIdMap, detectRuntime, holdWrites, holdWritesAndBackgroundWork, indexChangeOutsideExternalWaits, isSimdAvailable, loadNativeCore, markSimdUnavailable, nativeSearchCoreIsEnabled, noteFallback, noteThreadSlotGone, noteThreadSlotLive, reserveHeapBytes, reservedHeapBytes, stopUsingTheNativeSearchCore, threadSlotGone, threadSlotOfWorker, turnIsSpent, turnsAreBudgeted, waitOutsideCountedWrite, yieldBackgroundTurn, yieldTurn };
@@ -1,4 +1,4 @@
1
- import { invalidSetting, acceptedPhrase, validateSetting, validateSource, settingToWire, settingFromWire, isNormalPhrase } from './chunk-TYIRMPD3.mjs';
1
+ import { invalidSetting, acceptedPhrase, validateSetting, validateSource, settingToWire, settingFromWire, isNormalPhrase } from './chunk-ZXZFN7FI.mjs';
2
2
  import { MAX_BANNED_PHRASE_CODE_POINTS, MAX_BANNED_PHRASES, MAX_BAN_LIST_BYTES } from './chunk-PJHAB5ZY.mjs';
3
3
  import { encode } from '@msgpack/msgpack';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { MAX_MIN_PEOPLE, MIN_MIN_PEOPLE, DEFAULT_MIN_PEOPLE, MAX_MIN_RESULTS, MIN_MIN_RESULTS, DEFAULT_MIN_RESULTS, MAX_RETENTION_DAYS, MIN_RETENTION_DAYS, DEFAULT_RETENTION_DAYS, MAX_MAX_PHRASES_PER_DAY, DEFAULT_MAX_PHRASES_PER_DAY, MAX_MAX_PHRASES_PER_PERSON, DEFAULT_MAX_PHRASES_PER_PERSON, MAX_MAX_PEOPLE_PER_DAY, DEFAULT_MAX_PEOPLE_PER_DAY, MAX_MAX_GROUPS, DEFAULT_MAX_GROUPS, MAX_MAX_LENGTH, DEFAULT_MAX_LENGTH, DEFAULT_MIN_LETTERS, MAX_MAX_WORDS, DEFAULT_MAX_WORDS, DEFAULT_MAX_DIGITS, MAX_MAX_MERGE_PHRASES, DEFAULT_MAX_MERGE_PHRASES, MAX_MERGE_MEMORY_BYTES, MIN_MERGE_MEMORY_BYTES, DEFAULT_MERGE_MEMORY_BYTES, MAX_SAVE_INTERVAL_MS, MIN_SAVE_INTERVAL_MS, DEFAULT_SAVE_INTERVAL_MS, MAX_RESULT_CHECKS_PER_SECOND, DEFAULT_RESULT_CHECKS_PER_SECOND, MAX_GROUP_LENGTH, MAX_PERSON_UTF16_UNITS, MAX_SCHEDULE_LENGTH, SCHEDULE_LOOKAHEAD_DAYS, DEFAULT_TIME_ZONE, DEFAULT_SCHEDULE, MAX_FIELDS, SCHEDULE_OFF, MAX_SETTING_BYTES, MAX_SOURCE_INDEX_NAME_LENGTH, RAW_PHRASE_UTF16_UNITS_PER_CODE_POINT, MAX_PERSON_PAIRS_PER_DAY, MAX_FILE_PEOPLE_PER_DAY, MAX_MERGE_PEOPLE, DAY_MS } from './chunk-PJHAB5ZY.mjs';
2
- import { flattenSchema } from './chunk-3JIBF3XT.mjs';
2
+ import { flattenSchema } from './chunk-DNXOMPAQ.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
4
4
  import { encode } from '@msgpack/msgpack';
5
5
 
@@ -1,40 +1,42 @@
1
- import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-N2WUOWLL.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-N2WUOWLL.mjs';
1
+ import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-ENLMYKSX.mjs';
2
+ export { createHNSWIndex, osqBitsOf } from './chunk-ENLMYKSX.mjs';
3
+ import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-POPDAGH6.mjs';
4
+ export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-POPDAGH6.mjs';
3
5
  import './chunk-WBYQRHDY.mjs';
4
6
  import './chunk-4J74WHQM.mjs';
5
- import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-C3PTWYKT.mjs';
6
- import './chunk-GJFXPHXI.mjs';
7
+ import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-3JWDECAZ.mjs';
8
+ import './chunk-QUKQNI3H.mjs';
7
9
  import './chunk-F753DA54.mjs';
8
- import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-EIOYM5TO.mjs';
9
- export { createHNSWIndex, osqBitsOf } from './chunk-EIOYM5TO.mjs';
10
10
  import './chunk-4DII3ZSM.mjs';
11
- import './chunk-6WA3C3DV.mjs';
12
11
  import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-DVDX4SDR.mjs';
13
- import { yieldToEventLoop } from './chunk-HUOYZJ3Q.mjs';
12
+ import './chunk-6WA3C3DV.mjs';
13
+ import { yieldToEventLoop } from './chunk-MIP4SOR6.mjs';
14
+ import './chunk-NNE4VDMM.mjs';
14
15
  import './chunk-IO2SMUQD.mjs';
15
- import './chunk-JLIIWJUV.mjs';
16
+ import './chunk-YZW4CHM6.mjs';
17
+ import './chunk-LU3Y3P63.mjs';
16
18
  import './chunk-AM7RSBPF.mjs';
17
19
  import './chunk-MVXELMJX.mjs';
18
- import './chunk-NNE4VDMM.mjs';
19
- import './chunk-LU3Y3P63.mjs';
20
20
  import './chunk-RDWG33MM.mjs';
21
- import './chunk-4Y53T4YE.mjs';
21
+ import './chunk-GXX3DQXP.mjs';
22
22
  import './chunk-UNUFZ2QY.mjs';
23
23
  import './chunk-3NQOVO3K.mjs';
24
24
  import './chunk-JDOEEMEF.mjs';
25
- import './chunk-7PXRWYUU.mjs';
25
+ import './chunk-2PRHILX3.mjs';
26
26
  import { HEADER_SIZE, crc32, readHeader } from './chunk-YH7QY657.mjs';
27
27
  import './chunk-CHPTFFJM.mjs';
28
- import './chunk-3JIBF3XT.mjs';
28
+ import './chunk-DNXOMPAQ.mjs';
29
29
  import './chunk-5CQX3XXV.mjs';
30
30
  import './chunk-6VBXNFLE.mjs';
31
31
  import './chunk-C5G6TJ7A.mjs';
32
32
  import './chunk-MJDQU5MW.mjs';
33
- import './chunk-KWRW5U65.mjs';
34
- import { compareCodePoints } from './chunk-PPEPTUVV.mjs';
33
+ import './chunk-3WI35N75.mjs';
34
+ import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
35
+ import './chunk-FHPW7P2O.mjs';
36
+ import './chunk-DXRSEWA2.mjs';
35
37
  import './chunk-LVIKKAA6.mjs';
36
38
  import './chunk-AAAETEJK.mjs';
37
- import './chunk-JV6VQY2S.mjs';
39
+ import './chunk-FTZHMRD2.mjs';
38
40
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
39
41
  import { decode, decodeMulti } from '@msgpack/msgpack';
40
42
 
@@ -1,44 +1,46 @@
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-VXGE4ZXL.mjs';
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-PDRWWPKV.mjs';
2
2
  import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-SUPXRTMD.mjs';
3
- import './chunk-CKNRFDTZ.mjs';
4
3
  import './chunk-HJBJBH26.mjs';
5
- import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-CUH5F57W.mjs';
4
+ import './chunk-CKNRFDTZ.mjs';
5
+ import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-3JWDECAZ.mjs';
6
+ import { applyDeleteEntry, applyIndexEntry } from './chunk-QUKQNI3H.mjs';
7
+ 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, PHONE_FILE_CHUNK_BYTES, DIRECTORY_LOCK_SETTLE_MS, DIRECTORY_LOCK_PROCESS_START_TOLERANCE_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-F753DA54.mjs';
8
+ import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-4JYO3JD2.mjs';
9
+ import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-DVDX4SDR.mjs';
10
+ import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-6WA3C3DV.mjs';
6
11
  import './chunk-JWUCMVRK.mjs';
7
- import './chunk-QJXTNPLQ.mjs';
12
+ import './chunk-ZLWVW734.mjs';
8
13
  import { sha256 } from './chunk-H3MDVPBO.mjs';
9
- import './chunk-TYIRMPD3.mjs';
14
+ import './chunk-ZXZFN7FI.mjs';
10
15
  import { nodeThreadId } from './chunk-PSWKQVVT.mjs';
11
- import { QUERY_HISTORY_FOLDER } from './chunk-PJHAB5ZY.mjs';
12
- import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-C3PTWYKT.mjs';
13
- import { applyDeleteEntry, applyIndexEntry } from './chunk-GJFXPHXI.mjs';
14
- 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, PHONE_FILE_CHUNK_BYTES, DIRECTORY_LOCK_SETTLE_MS, DIRECTORY_LOCK_PROCESS_START_TOLERANCE_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-F753DA54.mjs';
15
- import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-6WA3C3DV.mjs';
16
- import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-DVDX4SDR.mjs';
17
- import { toError, packChecksummedEnvelope, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-HUOYZJ3Q.mjs';
16
+ import { toError, packChecksummedEnvelope, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-MIP4SOR6.mjs';
17
+ import { createRequestId } from './chunk-NNE4VDMM.mjs';
18
18
  import './chunk-IO2SMUQD.mjs';
19
- import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime } from './chunk-JLIIWJUV.mjs';
19
+ import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime } from './chunk-YZW4CHM6.mjs';
20
+ import './chunk-LU3Y3P63.mjs';
20
21
  import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-AM7RSBPF.mjs';
21
22
  import { reactNativeHost } from './chunk-MVXELMJX.mjs';
22
- import { createRequestId } from './chunk-NNE4VDMM.mjs';
23
- import './chunk-LU3Y3P63.mjs';
24
23
  import './chunk-RDWG33MM.mjs';
25
- import './chunk-4Y53T4YE.mjs';
24
+ import './chunk-GXX3DQXP.mjs';
26
25
  import './chunk-UNUFZ2QY.mjs';
27
26
  import './chunk-3NQOVO3K.mjs';
28
27
  import './chunk-JDOEEMEF.mjs';
29
- import './chunk-7PXRWYUU.mjs';
28
+ import './chunk-2PRHILX3.mjs';
29
+ import { QUERY_HISTORY_FOLDER } from './chunk-PJHAB5ZY.mjs';
30
30
  import { openChecksummedEnvelope, crc32, HEADER_SIZE } from './chunk-YH7QY657.mjs';
31
31
  import { fnv1a } from './chunk-CHPTFFJM.mjs';
32
- import { encodeDocument, requireValidFieldTypes } from './chunk-3JIBF3XT.mjs';
32
+ import { encodeDocument, requireValidFieldTypes } from './chunk-DNXOMPAQ.mjs';
33
33
  import { MIN_M } from './chunk-5CQX3XXV.mjs';
34
34
  import { MAX_FILE_BYTES } from './chunk-6VBXNFLE.mjs';
35
35
  import './chunk-C5G6TJ7A.mjs';
36
36
  import './chunk-MJDQU5MW.mjs';
37
- import './chunk-KWRW5U65.mjs';
38
- import { compareCodePoints } from './chunk-PPEPTUVV.mjs';
37
+ import './chunk-3WI35N75.mjs';
38
+ import { compareCodePoints } from './chunk-EJ33LCHV.mjs';
39
+ import './chunk-FHPW7P2O.mjs';
40
+ import './chunk-DXRSEWA2.mjs';
39
41
  import './chunk-LVIKKAA6.mjs';
40
42
  import './chunk-AAAETEJK.mjs';
41
- import './chunk-JV6VQY2S.mjs';
43
+ import './chunk-FTZHMRD2.mjs';
42
44
  import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
43
45
  import { decode, encode } from '@msgpack/msgpack';
44
46
 
@@ -1585,7 +1587,7 @@ async function writeOneBoundedCheckpoint(input) {
1585
1587
  }
1586
1588
  async function adoptWrittenSegments(input, manager, partitions, changes) {
1587
1589
  const { indexName, indexState, hooks } = input;
1588
- const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-ZL5ZG6YB.mjs');
1590
+ const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-LBZPGOWH.mjs');
1589
1591
  const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
1590
1592
  if (adoption === null) return [];
1591
1593
  const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
@@ -1640,7 +1642,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
1640
1642
  const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
1641
1643
  if (!input.holdsCheckpointFiles()) {
1642
1644
  const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
1643
- const stillRead = metadata.textStorage === "disk" ? (await import('./module-ZL5ZG6YB.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
1645
+ const stillRead = metadata.textStorage === "disk" ? (await import('./module-LBZPGOWH.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
1644
1646
  const keptForSync = await input.keepsCheckpointKey();
1645
1647
  await removeCheckpointGarbage(
1646
1648
  store,
@@ -3671,7 +3673,7 @@ var decoder = new TextDecoder();
3671
3673
  async function countPagedPartition(store, partition) {
3672
3674
  const { directory } = store;
3673
3675
  if (directory === void 0 || partition.segments.length === 0) return null;
3674
- const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-ZL5ZG6YB.mjs');
3676
+ const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-LBZPGOWH.mjs');
3675
3677
  for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
3676
3678
  const scans = [];
3677
3679
  try {
@@ -4932,7 +4934,7 @@ function createDurabilityFromTier(tier, wiring) {
4932
4934
  keepsSyncHistory: (indexName) => wiring.indexRegistry.get(indexName)?.sync?.active === true,
4933
4935
  onHistoryMoved(indexName) {
4934
4936
  if (wiring.indexRegistry.get(indexName)?.sync?.active !== true) return;
4935
- import('./retention-7I7UAWYK.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
4937
+ import('./retention-EW4TTDFB.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
4936
4938
  }
4937
4939
  });
4938
4940
  }
@@ -1,28 +1,30 @@
1
- export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-7GRCBBME.mjs';
1
+ export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-TP6KCKER.mjs';
2
2
  import './chunk-DIYDOIM4.mjs';
3
- import './chunk-HUOYZJ3Q.mjs';
3
+ import './chunk-MIP4SOR6.mjs';
4
+ import './chunk-NNE4VDMM.mjs';
4
5
  import './chunk-IO2SMUQD.mjs';
5
- import './chunk-JLIIWJUV.mjs';
6
+ import './chunk-YZW4CHM6.mjs';
7
+ import './chunk-LU3Y3P63.mjs';
6
8
  import './chunk-AM7RSBPF.mjs';
7
9
  import './chunk-MVXELMJX.mjs';
8
- import './chunk-NNE4VDMM.mjs';
9
- import './chunk-LU3Y3P63.mjs';
10
10
  import './chunk-RDWG33MM.mjs';
11
- import './chunk-4Y53T4YE.mjs';
11
+ import './chunk-GXX3DQXP.mjs';
12
12
  import './chunk-UNUFZ2QY.mjs';
13
13
  import './chunk-3NQOVO3K.mjs';
14
14
  import './chunk-JDOEEMEF.mjs';
15
- import './chunk-7PXRWYUU.mjs';
15
+ import './chunk-2PRHILX3.mjs';
16
16
  import './chunk-YH7QY657.mjs';
17
17
  import './chunk-CHPTFFJM.mjs';
18
- import './chunk-3JIBF3XT.mjs';
18
+ import './chunk-DNXOMPAQ.mjs';
19
19
  import './chunk-5CQX3XXV.mjs';
20
20
  import './chunk-6VBXNFLE.mjs';
21
21
  import './chunk-C5G6TJ7A.mjs';
22
22
  import './chunk-MJDQU5MW.mjs';
23
- import './chunk-KWRW5U65.mjs';
24
- import './chunk-PPEPTUVV.mjs';
23
+ import './chunk-3WI35N75.mjs';
24
+ import './chunk-EJ33LCHV.mjs';
25
+ import './chunk-FHPW7P2O.mjs';
26
+ import './chunk-DXRSEWA2.mjs';
25
27
  import './chunk-LVIKKAA6.mjs';
26
28
  import './chunk-AAAETEJK.mjs';
27
- import './chunk-JV6VQY2S.mjs';
29
+ import './chunk-FTZHMRD2.mjs';
28
30
  import './chunk-DZ7H7D2C.mjs';